Hi all, I have a new mini2440 board. While I am switching to NOR, am able to get choices and can enter into supervivi. I have a compiled u-boot and also the u-boot.bin provided with the board. I tried to load u-boot into Ram by load command in supervivi as given below. > load ram 0x33f80000 179444 u and in the terminal I passes uboot by s3c_2410_bootusb filename It is successfully getting loaded. But if I tried to do `go 0x33f80000` the output is as given below. argument 0 = 0x00000000 argument 1 = 0x00000000 argument 2 = 0x00000000 argument 3 = 0x00000000 and standing as hanged.. .. I tried with 0x30000000 address also. But the result is same. While I tried to switch to NAND flash, nothing is displayed. May be NAND flash contents got erased (not sure). Can anyone please give a solution for this issue. Unless I am loading the Uboot, I cant proceed further. So expecting your help.
Not able to run u-boot
I think, it's a known issue with u-boot. you need to install it to NAND with the download-option in vivi and start it directly from nand. If you just google for your problem, you should find a tutorial for that.
By "hanged" do you mean you see a prompt waiting for the next input or ? http://narnia.cs.ttu.edu/drupal/node/131
It was not showing any response after above mentioned lines. Even if I typed anything , no change. Only option was to restart.
I tried download and run option from NOR flash. The output was Enter your selection: d Clear the free memory USB host is connected. Waiting a download. Now, Downloading [ADDRESS:33f80000h,TOTAL:179454] RECEIVED FILE SIZE: 179454 (175KB/S, 1S) Downloaded file at 0x30000000, size = 179444 bytes U-Boot 1.1.6 (Oct 27 2008 - 06:45:29) DRAM: 64 MB Flash: 1 MB NAND: 1024 MiB *** Warning - bad CRC, using default environment In: serial Out: serial Err: serial Use these steps to program the image to flash: 1. In OpenOCD Run the 'halt' command to halt u-boot Run the 'load_image <file> <address>' command to load file to SDRAM Run the 'resume' command to resume u-boot 2. In u-boot, use the flash commands to program the image to flash Or, use the tftp or nfs command to download file, and then program the flash. FA24x0> FA24x0> FA24x0> nand info Device 0: NAND 1GiB 3,3V 8-bit, sector size 128 KiB while I tried nand scrub , It was getting erased. But when I did nand createbbt - > FA24x0> nand createbbt Usage: nand - NAND sub-system FA24x0> mtdparts device nand0 <nandflash0>, # parts = 3 #: name size offset mask_flags 0: kernel 0x00200000 0x00000000 0 1: jffs2 0x00800000 0x00200000 0 2: yaffs 0x3f600000 0x00a00000 0 active partition: nand0,0 - (kernel) 0x00200000 @ 0x00000000 FAFA24x0> pri bootargs=noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0 bootcmd=nand read.jffs2 0x32000000 kernel; bootm 0x32000000 bootdelay=3 baudrate=115200 ethaddr=08:00:3e:26:0a:5b ipaddr=192.168.1.70 serverip=192.168.1.1 netmask=255.255.255.0 stdin=serial stdout=serial stderr=serial mtdids=nand0=nandflash0 mtdparts=mtdparts=nandflash0:2m@0(kernel),8m(jffs2),-(yaffs) partition=nand0,0 mtddevnum=0 mtddevname=kernel Environment size: 419/65532 bytes As I was not able to use load command in supervivi, I used d option. But I am not able to create partition for Uboot. So that option is also getting failed. I am not sure whether this is the correct method. But whatever methods mentioned in the links are not able to load Uboot in my case.
Perhaps if you follow the tutorial in the link I mentioned and when something doesn't work as expected from there, I might be able to help. Maybe, you need to start from square one and JTAG Supervivi into NOR. Can you load the pre-built YAFFS2 images from FriendlyArm?
Go here: http://billforums.station51.net/viewforum.php?f=1 If you look at my previously mentioned link you might find that the software he links to is not there. The u-boot.bin version you want is 239016 bytes. As Dirk mentioned people have had grief trying to get their own u-boot to work. If you can't find the required u-boot send a PM to: dave underscore festing at hotmail dot com.
Hi davef , I followed the link which you mentioned above. It was working till nand createbbt. At that moment its showing as MINI2440 # nand createbbt Create BBT and erase everything ? <y/N> --------- ---------skipped bad blocks .... Skipping bad block at 0x3ffe0000 Creating BBT. Please wait ...Bad block table not found for chip 0 Bad block table not found for chip 0 --- and getting hanged. I switched to NOR flash and followed the link. But the errors on switching back to nand after loading is not changed. Its as below , U-Boot 1.3.2-mini2440 (Jul 26 2011 - 20:59:08) I2C: ready DRAM: 64 MB NOR Flash not found. Use hardware switch and 'flinit' Flash: 0 kB 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 Hit any key to stop autoboot: 0 MINI2440 # The same error was getting earlier. Is this a big issue, which will stop my further steps ? Can I continue with this error ?
--- and getting hanged. I switched to NOR flash and followed the link. But the errors on switching back to nand after loading is not changed. A 1Gb machine takes minutes to create the BBT. Leave it for 5 minutes. Also, you start off in the NOR position and only change to NAND position later on.
Thank a lot davef. Its able to use Uboot now. But I have to upload u-boot.bin each time from NOR and then switching back to NAND. While I am trying to boot directly from NAND without loading anything from NOR, its not showing anything. I tried nand write.e command from Uboot, but its still same. Whether is this the procedure we have to follow, or is it a problem only for me.
Think what are seeing in a common problem for mini2440 greater than 64M. Must be something about it here: http://billforums.station51.net/viewforum.php?f=1 Another place to search is: http://groups.google.com/group/mini2440 and look for <256M> as that is when the problem surfaced.