2440 NAND BootLoader

kamejoko80
I don't know why the mini2440 use both NOR and NAND Flash for Bootloader,
which increase the board cost, while at a time, we can use one of the two
for booting the system.

I tried to find some information about the NAND Flash bootloader from
Google and couldn't find any manual, guide doccument disscus about this
problem. Can we use the u-boot (with NAND Flash)instead using supervivi
(NOR) for booting the mini2440 board ?

Errol
NOR is for recovery if the boot loader in NAND is damamged. 
NOR is also to transfer images into NAND.

NAND is for OS and OS's own bootloader.

Yes, you should be able to use u-boot in NAND altough Linux isn't my area.
Use Superviv to load u-boot into NAND.

If NOR wasn't there then you would need J-TAG every time to change
bootloader, now you just switch to NOR and update the bootloader in NAND

kamejoko80
Hi Mr Errol,

Thanks in advance.
You're right, using NOR is the fastest way to recovery the damaged NAND
boot. Because I plan to build my own S3C2440 CPU module based on mini2440
development kit. And I'll remove the NOR Flash to reduce hardware cost.
Maybe some comercial products do not need NOR Flash that job.

I tried to learn how to port u-boot into the mini2440 (without using NOR
Flash), follow the steps below:

(1) Install HJTAG
(2) Erase all the NAND and load u-boot.bin into the NAND at block0
(3) Reset the board to run the u-boot
(4) Run the command : u-boot> nand scrub
(5) Run the command : u-boot> nand createbbt

At this time, The NAND FLash is erased, we need to load u-boot again
(Use TFTP server in order to share the u-boot.bin)

(6) tftp 0x32000000 u-boot.bin
(7) nand write.e 0x32000000 0x0 <u-boot.bin size in hex>
(8) Run the command : u-boot> dynpart
(9) Run the command : u-boot> dynenv set u-boot_env
(10) Run the command : u-boot> saveenv

OK, my mini2440 can run the u-boot bootloader, but I don't understand where
is the location of the 2440's steppingstone image after loading u-boot.bin
(use HJTAG) at the step (2) above ?
  
Thanks in advance

Best regard.

kjames
Hi everyone.

I am trying to do as above the procedure.

I made u-boot.bin file and done step (2)
but My board is not working since step (3)

I try to download same u-boot image file to NOR flash.
Board is working.

I wonder about image file.
May I modify file before makeing image file?

Could you tell me how in detail?

thaks you for reading.

kamejoko80
Hi,

Firstly you should try the u-boot images from friendlyarm.net. What type of
NAND Flash on your board ? If using K9F2G08U0M you must remove the NR5
resistor on the board so the iROM can dectect NAND Flash and execute
bootloader.

Rahul Khurana
@ kamejoko80 : i hav 1gb nand flash ( K9F8G08 ) on my board . u-boot is
only available for 128M and 256M . i tried with both of them and it got
flashed but on restart it shows the following text :

U-Boot 1.3.2-mini2440 (May 25 2010 - 19:15:21)



I2C:   ready

DRAM:  64 MB

Flash:  2 MB

NAND:  Bad block table not found for chip 0

Bad block table not found for chip 0

1024 MiB

*** Warning - bad CRC or NAND, using default environment



USB:   S3C2410 USB Deviced

In:    serial

Out:   serial

Err:   serial

MAC: 08:08:11:18:12:27




So, wat could be the reason for this :
"NAND:  Bad block table not found for chip 0

Bad block table not found for chip 0"

message ???

Also, do you have any documents about u-boot commands ????

Juergen Beisert
Bad block table:
http://www.linux-mtd.infradead.org/tech/mtdnand/x144.html

U-Boot:
http://www.denx.de/wiki/DULG

davef
You can safely ignore that warning.

What happens after that?

Rahul Khurana
After that i proceed to next step and it fails :

Following is the response received on serial window :

**********************************************************************
*  MINI2440 # nand scrub                                        *
*                                                               *
*  NAND scrub: device 0 whole chip                              *
*                                                               *
*  Warning: scrub option will erase all factory set bad blocks! *
*                                                               *
*           There is no reliable way to recover them.           *
*                                                               *
*           Use this command only for testing purposes if you   *
*                                                               *
*           are sure of what you are doing!                     *
*                                                               *
*  Really scrub this NAND flash? <y/N>                          *
*                                                               *
*  scrub aborted                                                *
*                                                               *
*  MINI2440 #                                                   *
**********************************************************************

vinod
I installed all the image via nor as per the manual..after that the OS is
getting run..now i switch of my mini2440 kit then i select nand flash..this
time i can see only the boot logo is coming and its not going inside the
OS.. Whats the problem...my terminal says"load windows CE image"..

chetan TB
Attachment: failed linux install.TXT (175.84 KB)
hi am not able to install the linux into mini2440, i have attached the log.
please go through it
hope the needful is done

thanks in advance

thanks & regards
chetan