|
|
 |
« on: March 08, 2011, 11:14:20 PM » |
|
I've got uboot 1.1.4 (Jul 14 2009 - 06:46:57) Marvell version: 3.4.16 & I'm looking to upgrade via usb. Using OSX disk utility, I've formatted my 4 gig usb thumb drive with 3 Fat partitions named sda1, sda2 and sda3. On SDA1, I placed the files from Sheevaplug installer 1.0 2 and uboot.bin there as well. I interrupt the boot process and get the Marvell>> prompt and type: fatload usb 0:1 0x08000000 uboot.bin
I've entered: setenv mainlineLinux yes setenv arcNumber 2097 saveenv reset
and
setenv bootargs_console console=ttyS0,115200 setenv bootargs_root 'root=/dev/sda2 rootdelay=10' setenv bootcmd_usb 'usb start; ext2load usb 0:1 0x0800000 /uImage; ext2load usb 0:1 0x01100000 /uInitrd' setenv bootcmd 'setenv bootargs $(bootargs_console) $(bootargs_root); run bootcmd_usb; bootm 0x0800000 0x01100000' saveenv
run bootcmd returns the following:
(Re)start USB... USB: scanning bus for devices... 1 USB Device(s) found scanning bus for storage devices... 0 Storage Device(s) found ** Bad partition 1 ** ** Bad partition 1 ** ## Booting image at 00800000 ... Bad Magic Number
I don't know where to go from here re: the bad partition & I'm confused where 008000000 is coming from, shouldn't it be 08000000?
|
|
|
|
|
Logged
|
|
|
|
|
radael
Jr. Member

Karma: 1
Posts: 57
|
 |
« Reply #1 on: March 09, 2011, 09:19:25 AM » |
|
Don't know the answer to the problem, but the numbers are fine. (Leading zeros can generally be ignored on input.)
It is a 4-Byte address: 00 80 00 00,
So, the leading zeros are included for a complete report.
|
|
|
|
|
Logged
|
|
|
|
|
|
|
 |
« Reply #2 on: March 09, 2011, 05:30:42 PM » |
|
3 Fat partitions
setenv bootcmd_usb 'usb start; ext2load usb 0:1 0x0800000 /uImage; ext2load usb 0:1 0x01100000 /uInitrd'
(Re)start USB... USB: scanning bus for devices... 1 USB Device(s) found scanning bus for storage devices... 0 Storage Device(s) found ** Bad partition 1 ** ** Bad partition 1 ** ## Booting image at 00800000 ... Bad Magic Number Try fatload instead?
|
|
|
|
|
Logged
|
|
|
|
|
|
|
 |
« Reply #3 on: March 09, 2011, 07:53:24 PM » |
|
run fatload returns "## Error: "fatload" not defined"
|
|
|
|
|
Logged
|
|
|
|
|
marcus
Jr. Member

Karma: 5
Posts: 83
|
 |
« Reply #4 on: March 10, 2011, 02:18:05 AM » |
|
Try fatload in place of ext2load
run fatload didn't work because fatload isn't an environment variable; it's a command.
|
|
|
|
|
Logged
|
|
|
|
|
|
|
 |
« Reply #5 on: March 10, 2011, 02:57:38 AM » |
|
OK. I was trying to point out that you are using ext2load from a fat device. Either make it ext2 or use fatload
|
|
|
|
|
Logged
|
|
|
|
|
|
|
 |
« Reply #6 on: March 16, 2011, 07:27:02 PM » |
|
# So I went back in & replaced ext2load with fatload as follows:
setenv bootargs_console console=ttyS0,115200 setenv bootargs_root 'root=/dev/sda2 rootdelay=10' setenv bootcmd_usb 'usb start; fatload usb 0:1 0x0800000 /uImage; fatload usb 0:1 0x01100000 /uInitrd' setenv bootcmd 'setenv bootargs $(bootargs_console) $(bootargs_root); run bootcmd_usb; bootm 0x0800000 0x01100000' saveenv
#run bootcmd returns the following:
Re)start USB... USB: scanning bus for devices... 2 USB Device(s) found scanning bus for storage devices... 1 Storage Device(s) found Failed to mount ext2 filesystem... ** Bad ext2 partition or disk - usb 0:1 ** Failed to mount ext2 filesystem... ** Bad ext2 partition or disk - usb 0:1 ** ## Booting image at 00800000 ... Bad Magic Number
#The SanDisk USB flash drive with the 3 fat partitions created in OSX's disk utility begins blinking it's LED. #Also, "fatload usb 0:1 0x080000 uboot.bin" returns:
** Can't read from device 0 **
** Unable to use usb 0:1 for fatload **
#Huh?
|
|
|
|
|
Logged
|
|
|
|
|
|
|
 |
« Reply #7 on: March 17, 2011, 12:53:45 PM » |
|
First of all, I think you have failed to upgrade u-boot. from your early post, you state that you load u-boot.bin in memory but I did not see any description you write it back to nand. I could give you instruction on how to write the u-boot.bin in mmeory to NAND but I am not in front of plug, I don't trust my memory to give the right instruction so please search this fourms, I think you can find the right command sequence on how to write the uboot back to NAND. the reset of message most likly because uboot 1.1.4 (3.4.16) have problem with USB device, so once you succeed upgrade u-boot you should have no problem. Good luck 
|
|
|
|
|
Logged
|
Good Luck 
|
|
|
|
crunch
Newbie
Karma: 0
Posts: 28
|
 |
« Reply #8 on: March 17, 2011, 01:42:46 PM » |
|
fatload usb 0:1 0x01100000 /uInitrd'
I've used fatload usb 0 0x800000 /myimage successfully from the Marvell shell. Device 0:1 might be your problem there. Also, a few on the forums here say to use FAT16 partitions. I believe this prevents you from accidentally creating partitions larger than 2GB, and possibly improves compatibility for the tools.
|
|
|
|
|
Logged
|
|
|
|
|
|
|
 |
« Reply #9 on: March 17, 2011, 04:27:55 PM » |
|
First of all, I think you have failed to upgrade u-boot. from your early post, you state that you load u-boot.bin in memory but I did not see any description you write it back to nand. Related to this, can I test a new uboot by loading it and the running commands, but not the ones() to save it back to nand. By test I mean try it, and if it fails then a power off/on will take me back to where I was with the previous, working uboot. And, if I do update uboot, do I lose environment variables and have to reset them?
|
|
|
|
|
Logged
|
|
|
|
|
|
|
 |
« Reply #10 on: March 17, 2011, 04:40:04 PM » |
|
# I'm thinking that the problem may be that OSX's disk utility formats to FAT32, hence the bad partition. So I used to Disk Utility to simply erase the existing partitions and reformat the drive to FAT32 "Unfortunately, when I try to repartition the USB thumb drive with:
diskutil partitiondisk /dev/disk2 1 MBRFormat "MS-DOS FAT16" "SDA1" 1000M
#I get the following error:
Started partitioning on disk2 Unmounting disk Creating partition map [ \ 0%..10%..20%......................................... ] Waiting for disks to reappear Formatting disk2s1 as MS-DOS (FAT16) with name SDA1 Error: -9962: The chosen size is not valid for the chosen filesystem
#I was thinking that the size might be too big, so I tried the same command with 250M, but got the same -9962 error. Any ideas?
|
|
|
|
|
Logged
|
|
|
|
|
|
|
|
|
 |
« Reply #12 on: March 18, 2011, 07:43:27 AM » |
|
You can test u-boot without writing it in to storage. you will need to have access to u-boot elf file, not the .kwb file. I use openond to load it into ram. I think the procedure is: openocd -f /path/to/broad/sheevaplug.conf than from second windows telnet localhost 4444 sheevaplug_init load_image /path/to/u-boot.elf resume 0x60000
I could be wrong since I don't have access to my plug now. Good luck  First of all, I think you have failed to upgrade u-boot. from your early post, you state that you load u-boot.bin in memory but I did not see any description you write it back to nand. Related to this, can I test a new uboot by loading it and the running commands, but not the ones() to save it back to nand. By test I mean try it, and if it fails then a power off/on will take me back to where I was with the previous, working uboot. And, if I do update uboot, do I lose environment variables and have to reset them?
|
|
|
|
|
Logged
|
Good Luck 
|
|
|
|
|
|
 |
« Reply #13 on: March 18, 2011, 05:34:37 PM » |
|
You can test u-boot without writing it in to storage. you will need to have access to u-boot elf file, not the .kwb file. I use openond to load it into ram. Thanks. But those instruction seemed to be a way of testing it on a running kernel!?! I was really just wondering whether it could be tested at the "console prompt" ( i.e. before any kernel had booted) without writing it to nand.
|
|
|
|
|
Logged
|
|
|
|
|
|
|
 |
« Reply #14 on: March 18, 2011, 08:43:48 PM » |
|
Read my code again, I said load u-boot.elf 
|
|
|
|
|
Logged
|
Good Luck 
|
|
|
|
|