Let me explain my issue: I have a 128mb-nand 3.5lcd mini2440 board here, and every time I try to load u-boot into RAM (according to http://bill.station51.net/index.php?post/2010/01/16/U-Boot-on-Mini2440 ) and jumping into it I get the following error: Supervivi> go 0x32000000 go to 0x32000000 argument 0 = 0x00000000 argument 1 = 0x00000000 argument 2 = 0x00000000 argument 3 = 0x00000000 ---hang--- I've already tried different memory locations and setting the definition of CONFIG_USE_IRQ to 0, 1 and just leaving it commented, in all cases I end up hanging at that same stage. The only solution I came to was to flashing u-boot to nand, switching from NOR to NAND and then booting it, but then the following happens: U-Boot 1.3.2-mini2440 (May 25 2010 - 17:46:04) I2C: ready DRAM: 64 MB NOR Flash not found. Use hardware switch and 'flinit' Flash: 0 kB NAND: 128 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 Hit any key to stop autoboot: 0 MINI2440 # protect off all 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> Erasing at 0x7a0000 -- 6% complete. NAND 128MiB 3,3V 8-bit: MTD Erase failure: -5 Erasing at 0xb80000 -- 9% complete. NAND 128MiB 3,3V 8-bit: MTD Erase failure: -5 Erasing at 0x7fe0000 -- 100% complete. Bad block table not found for chip 0 Bad block table not found for chip 0 OK MINI2440 # nand createbbt Create BBT and erase everything ? <y/N> Skipping bad block at 0x00800000 Skipping bad block at 0x00c20000 Skipping bad block at 0x07f80000 Skipping bad block at 0x07fa0000 Skipping bad block at 0x07fc0000 Skipping bad block at 0x07fe0000 Creating BBT. Please wait ...Bad block table not found for chip 0 Bad block table not found for chip 0 Bad block table written to 0x07fe0000, version 0x01 Bad block table written to 0x07fc0000, version 0x01 MINI2440 # nand info Device 0: NAND 128MiB 3,3V 8-bit, page size 2048, sector size 128 KiB MINI2440 # nand write.e 0x32000000 0x0 39E50 NAND write: device 0 offset 0x0, size 0x39e50 Writing data at 0x39800 -- 100% complete. 237136 bytes written: OK MINI2440 # dynpart mtdparts mtdparts=mini2440-nand:0x00040000(u-boot),0x00020000(u-boot_env),0x00500000(kern el),0x07aa0000(rootfs) MINI2440 # dynenv set u-boot_env device 0 offset 0x40000, size 0x20000 45 4e 56 30 - 00 00 04 00 MINI2440 # setenv ipaddr 192.168.2.77 MINI2440 # setenv serverip 192.168.2.9 MINI2440 # setenv ethaddr 08:08:10:11:12:13 MINI2440 # saveenv Saving Environment to NAND... Erasing Nand...Writing to Nand... done MINI2440 # --- switch off --- IMPORTANT NOTE: Before doing that, I've copied my u-boot image from 0x0 to 0x32000000 so that "nand write.e" would not copy dummy data! (I just skipped that part to avoid copying more logs here) Here's a link for the image files I've used in to u-boot: http://www.megaupload.com/?d=MZI495GX (I'm using u-boot.config_use_irq_1.bin) Then, after switching it on back again I get nothing in serial, ethernet or anything..... What am I doing wrong? Curious thing: if I switch back from NAND to NOR, after about 1 second supervivi comes up, no reset needed!
u-boot issues
HI there, You followed the directions on my blog correctly. There's a problem I believe with the current U-boot version.... Please see the update at the bottom of my post here.. http://billforums.station51.net/viewtopic.php?f=1&t=2 It outlines a messy way to fix the issue until the source is fixed. :) Thanks, Bill
Yes, I'm over that part now. In fact, a much much easier way to work around this issue is to simply get an ancient u-boot version that will work either written to nand (as you've said) or to ram (the traditional way). http://depositfiles.com/files/xeayrz0hm this u-boot shall work for people with 128mb 'headache' boards. (I've taken that from other topic..) The only sad part of the history is that somehow I often can't write to nand, as for now my u-boot is refusing to perform "saveenv" commands (it works, but after reset I get a bad crc at env)
Hi I have a 128mb-nand 3.5lcd mini2440 board here I compiled for U-boot-1.1.6 version sbc2410x_config: unconfig @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0 Can you suggest me which u-boot version,you compiled. What is the "ancient u-boot version" Thanks Alex
Hey, Alex. check out the source code from http://repo.or.cz/w/u-boot-openmoko/mini2440.git and make it with "make mini2440_config". The "ancient u-boot version" could be the prebuilt version released on this site. Take a look here http://www.friendlyarm.net/dl.php?file=u-boot.zip /Adam
Sorry, Can you give the direct path where can i get u-boot source code. I used the http://repo.or.cz/w/u-boot-openmoko/mini2440.git but still i could not,it is navigating. Thanks Alex
Hey guys, I had this problem with the 1Gb one and solved it. If you compile as per this: http://bill.station51.net/index.php?post/2010/01/16/U-Boot-on-Mini2440 once its built, you will find u-boot.bin, u-boot-nand4k.bin and u-boot-nand16k.bin forget the u-boot one. I got them working like this: u-boot-nand4k.bin -> 4k pagefiles so mini2440 64Mb & 128Mb u-boot-nand16k.bin -> 16k pagefiles so mini2440 256Mb+ Let me know if it works Cheers Paul
Hey Paul, I have the 256mb mini2440 and my findings are none (u-boot.bin,u-boot-nand4k.bin,u-boot-nand16k.bin) will run from ram. If I load u-boot-nand16k.bin straight to NAND, it will boot, but still has the errors: U-Boot 1.3.2-mini2440 (Nov 15 2010 - 15:24:44) I2C: ready DRAM: 64 MB NOR Flash not found. Use hardware switch and 'flinit' Flash: 0 kB NAND: 256 MiB *** Warning - bad CRC or NAND, using default environment So it would seem there still is an issue here. Did you find any of those u-boot files worked in ram? Did you get the NOR errors when running from NAND? Hope this gets resolved soon.
http://bill.station51.net/?post/2010/01/16/U-Boot-on-Mini2440 I have followed the steps of above link to load u-boot in to my board.It works fine..But when i reset and put switch to nand flash memory nothing appears...what could be the problem???