All of lore.kernel.org
 help / color / mirror / Atom feed
From: Himanshu Chauhan <himanshu@symmetricore.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH][RESEND]: Fix for U-Boot build failure with CONFIG_SYS_NO_FLASH defined for qemu-mips.
Date: Sun, 20 Dec 2009 12:13:58 +0530	[thread overview]
Message-ID: <4B2DC7AE.9020302@symmetricore.com> (raw)
In-Reply-To: <4B2D9FB3.3010308@pobox.com>

Shinya Kuribayashi wrote:
> Hi,
> 
> On 12/19/09 3:57 PM, Himanshu Chauhan wrote:
>> U-Boot hangs with qemu-system-mips with ##unknown flash error.
> 
> Do you have any idea what's the root cause of that unknown flash
> error?  Is this U-Boot CFI driver issue, or Qemu-side problem?
> 
> Using CONFIG_SYS_NO_FLASH is a quick, enough workaround for your
> trial, but does not fix anything.  Could you sort out the issue?
> I don't think I can help regarding debugging Qemu (sorry!), but
> u-boot/doc/README.qemu_mips and U-Boot/Qemu community will help.

May be I really want that CONFIG_SYS_NO_FLASH defined then build should at least not break. Isn't it?

> 
>> Disabling flash using CONFIG_SYS_NO_FLASH breaks the build.
>> This patch fixes the issue. Don't know if its okay.
>>
>> Signed-off-by: Himanshu Chauhan<himanshu@symmetricore.com>
> 
> Heh, let's use git-format-patch when preparing patches.
> 
> $ git format-patch HEAD^..
> $ git format-patch --no-thread HEAD^^..
> $ mkdir foo && git format-patch -o foo/ HEAD~3..
> and so on.
> 
Thanks, I will take care of that next time.

>> diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c
>> index efd6aec..5bd3af0 100644
>> --- a/common/cmd_bootm.c
>> +++ b/common/cmd_bootm.c
>> @@ -76,7 +76,7 @@ extern void bz_internal_error(int);
>>   static int image_info (unsigned long addr);
>>   #endif
>>
>> -#if defined(CONFIG_CMD_IMLS)
>> +#if !defined(CONFIG_SYS_NO_FLASH)&&  defined(CONFIG_CMD_IMLS)
>>   #include<flash.h>
>>   extern flash_info_t flash_info[]; /* info for FLASH chips */
>>   static int do_imls (cmd_tbl_t *cmdtp, int flag, int argc, char
>> *argv[]);
>> @@ -1153,7 +1153,7 @@ U_BOOT_CMD(
>>   /*******************************************************************/
>>   /* imls - list all images found in flash */
>>   /*******************************************************************/
>> -#if defined(CONFIG_CMD_IMLS)
>> +#if !defined(CONFIG_SYS_NO_FLASH)&&  defined(CONFIG_CMD_IMLS)
>>   int do_imls (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
>>   {
>>       flash_info_t *info;
> 
> Disabling IMLS command in configs/qemu_mips.h?
This should have been disabled anyways if this patch was applied:
http://www.mail-archive.com/u-boot at lists.denx.de/msg07407.html

> 
>> diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c
>> index 24eb33f..06c7271 100644
>> --- a/drivers/mtd/cfi_flash.c
>> +++ b/drivers/mtd/cfi_flash.c
>> @@ -41,6 +41,7 @@
>>   #include<environment.h>
>>   #include<mtd/cfi_flash.h>
>>
>> +#ifndef CONFIG_SYS_NO_FLASH
>>   /*
>>    * This file implements a Common Flash Interface (CFI) driver for
>>    * U-Boot.
>> @@ -2020,3 +2021,5 @@ unsigned long flash_init (void)
>>
>>       return (size);
>>   }
>> +
>> +#endif
> 
> Removing CONFIG_CFI_DRIVER from configs/qemu_mips.h?
If CONFIG_SYS_NO_FLASH is defined should it be compiled?

Regards
Himanshu

  reply	other threads:[~2009-12-20  6:43 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-18  6:58 [U-Boot] Build breakage in qemu-mips Himanshu Chauhan
2009-12-18 10:32 ` [U-Boot] [PATCH] MIPS: qemu_mips: Fix a build failure caused by missing <asm/unaligned.h> Shinya Kuribayashi
2009-12-18 11:50   ` Himanshu Chauhan
2009-12-18 12:01   ` Stefan Roese
2009-12-18 12:04     ` Himanshu Chauhan
2009-12-18 12:20       ` Stefan Roese
2009-12-18 12:27         ` Stefan Roese
2009-12-18 12:46           ` Himanshu Chauhan
2009-12-19  0:04             ` Wolfgang Denk
2009-12-19  6:56               ` Himanshu Chauhan
2009-12-19 12:52               ` [U-Boot] [OT] List for sending patches Himanshu Chauhan
2009-12-19 13:54                 ` Mike Frysinger
2009-12-19 19:04                 ` Wolfgang Denk
2009-12-18 13:02         ` [U-Boot] [PATCH] MIPS: qemu_mips: Fix a build failure caused by missing <asm/unaligned.h> Shinya Kuribayashi
2009-12-18 13:06           ` Stefan Roese
2009-12-20  3:59             ` Shinya Kuribayashi
2009-12-18 13:03   ` [U-Boot] [PATCH]: U-Boot build failure with CONFIG_SYS_NO_FLASH defined for qemu-mips Himanshu Chauhan
2009-12-18 13:09   ` [U-Boot] [PATCH] MIPS: qemu_mips: Fix a build failure caused by missing <asm/unaligned.h> Himanshu Chauhan
2009-12-18 13:18     ` Shinya Kuribayashi
2009-12-19  6:57   ` [U-Boot] [PATCH][RESEND]: Fix for U-Boot build failure with CONFIG_SYS_NO_FLASH defined for qemu-mips Himanshu Chauhan
2009-12-20  3:53     ` Shinya Kuribayashi
2009-12-20  6:43       ` Himanshu Chauhan [this message]
2009-12-21  4:40         ` Shinya Kuribayashi
2010-03-20 22:58     ` Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B2DC7AE.9020302@symmetricore.com \
    --to=himanshu@symmetricore.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.