reading from sd

dragilla
MINI2440 # fatls mmc 0:1
   239636   u-boot.bin 

1 file(s), 0 dir(s)
MINI2440 # fatload mmc 0:1 0x31000000 u-boot.img
reading u-boot.img

** Unable to read "u-boot.img" from mmc 0:1 **
MINI2440 # fatload mmc 0:1 0x31000000 u-boot.img 239636
reading u-boot.img

** Unable to read "u-boot.img" from mmc 0:1 **
MINI2440 #

Any ideas what I'm doing wrong?

dragilla
This is what I run prior fatls:

MINI2440 # mmc
mmc: Probing for SDHC ...
mmc: SD 2.0 or later card found
trying to detect SD Card...
Manufacturer:       0x1f, OEM "SK"
Product name:       "SD2GB", revision 1.0
Serial number:      601886659
Manufacturing date: 9/2006
CRC:                0x56, b0 = 1
READ_BL_LEN=15, C_SIZE_MULT=7, C_SIZE=3453
size = 2329935872
SD Card detected RCA: 0x2 type: SD
MINI2440 #

I also tried with 64meg sd card - same result.

da vef
Boy, you are a busy chap!

As per the tutorial at:
http://narnia.cs.ttu.edu/drupal/node/131

u-boot was not placed on the machine with the command "fatload".

Are you trying to something different?

dragilla
Well I tried to follow this tutorial, but I got it all around and I'm now
with uboot in NOR, and cleared NAND. How do I put uboot in NAND now?
Or maybe there's a way to restore vivi in NOR?

dragilla
Ok. I can read from sd. It's just a matter of filename. When I renamed it
to uboot I can read it. But when I write it to nand:

MINI2440 # fatload mmc 0:1 0x31000000 uboot
reading uboot

239636 bytes read
MINI2440 # nand write 0x31000000 u-boot    

NAND write: device 0 offset 0x0, size 0x40000
 262144 bytes written: OK
MINI2440 # 

And reboot from nand - nothing happens :(
HELP :(

dragilla
Ok. I managed to put the uboot on nand through tftpd and booted the kernel
as well. Hopefully I will have something working finally!

davef
You want Supervivi in NOR using H-JTAG and then place u-boot in NAND using
usbpush.

dragilla
It's cool. I don't really need supervivi, do I?