From: kevin.morfitt at fearnside-systems.co.uk <kevin.morfitt@fearnside-systems.co.uk>
To: u-boot@lists.denx.de
Subject: [U-Boot] nand_scan() in ARM9 S3C2410
Date: Mon, 21 Sep 2009 09:04:34 +0100 [thread overview]
Message-ID: <4AB73392.2050501@fearnside-systems.co.uk> (raw)
In-Reply-To: <1f3430fb0909210024r5cacaac2l31136dbf808894a7@mail.gmail.com>
Minkyu Kang wrote:
> Dear J.Hwan.Kim
>
> 2009/9/20 J.Hwan.Kim <frog1120@gmail.com>:
>> Hi, everyone
>>
>> I'm using u-boot for ARM9 S3C2410.
>> My tool chain is ELDK4.2.
>>
>> I defined configuration "CONFIG_NAND_CMD,
>> CONFIG_SYS_MAX_NAND_DEVICE 1,
>> and CONFIG_SYS_NAND_BASE 0x4E00000C" for nand_init().
>>
>> It works well until the routine reaches nand_scan() which is in nand_base.c
>> When nand_scan() is called, the system hangs.
>>
>> For test, When I written dummy function is nand_base.c and
>> called the dummy function from nand.c, the system is down.
>>
>> My u-boot is using relocation to SDRAM from NAND.
>> The address of nand_scan() is 0x31F85894.
>> (TEXT_BASE is 0x31F80000 and SDRAM start from 0x30000000)
>> I'm sured that the binary data of u-boot.bin (address 0x5894) is same
>> with SDRAM data in 0x31F85894.
>> I think the relocation is OK.
>>
>> When I attached the routines of nand_base.c to nand.c,
>> the nand_scan() function passed.
>>
>> Is there any hint for this problem?
>>
>> Thanks in advnace.
>>
>> Regards,
>> J.Hwan Kim
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> U-Boot mailing list
>> U-Boot at lists.denx.de
>> http://lists.denx.de/mailman/listinfo/u-boot
>>
>
> Did you check the kevin's mail?
> He said "u-boot for s3c2410 doesn't support".
> http://lists.denx.de/pipermail/u-boot/2009-September/060855.html
>
u-boot for s3c2410 doesn't support booting from NAND flash, but assuming you
boot from NOR flash and have NAND enabled properly in the board config file it
does support the use of NAND flash.
In the NAND config you show in your email, it's probably a typo but it should be
CONFIG_CMD_NAND not CONFIG_NAND_CMD.
If that's not the problem - I'm not sure what board you're using. If you're
using an existing config file post the name of it, or if you're using one you've
created post the board config file itself.
Regards
Kevin Morfitt
> And I think.. you can trace nand_scan() step by step.
> please try it and do more detailed question.
>
> Thanks
> Minkyu Kang
next prev parent reply other threads:[~2009-09-21 8:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-19 22:08 [U-Boot] nand_scan() in ARM9 S3C2410 J.Hwan.Kim
2009-09-21 7:24 ` Minkyu Kang
2009-09-21 8:04 ` kevin.morfitt at fearnside-systems.co.uk [this message]
2009-09-21 13:10 ` J.Hwan.Kim
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=4AB73392.2050501@fearnside-systems.co.uk \
--to=kevin.morfitt@fearnside-systems.co.uk \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox