• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: new uboot doesn't load from MicroSD  (Read 2467 times)
bad_gui
Jr. Member
**

Karma: 0
Posts: 50


View Profile
« on: October 30, 2012, 06:44:54 PM »

I looked at other posts describing problems with the DENX uboot and microSD but I see something different
when I try installing on my Guruplug Server Plus.  I had a previous version of uboot load from a microSD but
had to replace due to I/O errors corrupting it.

I followed these instructions to install Debian Squeeze on a new microSD

http://www.cyrius.com/debian/kirkwood/sheevaplug/install.html

Everything went well until I tried booting from the new SD.  I tried both a USB boot and the SD instructions.

Code:
U-Boot 2011.12 (Mar 11 2012 - 18:53:15)
Marvell-GuruPlug

SoC:   Kirkwood 88F6281_A1
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  512 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0, egiga1
88E1121 Initialized on egiga0
88E1121 Initialized on egiga1
Hit any key to stop autoboot:  0
(Re)start USB...
USB:   Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 3 USB Device(s) found
       scanning bus for storage devices... Device NOT ready
   Request Sense returned 02 3A 00
2 Storage Device(s) found
** Bad partition 1 **
** Bad partition 1 **
Wrong Image Format for bootm command
ERROR: can't get kernel image!

Code:
baudrate=115200
bootargs=console=ttyS0,115200
bootargs_console=console=ttyS0,115200
bootcmd=setenv bootargs $(bootargs_console); run bootcmd_usb; bootm 0x00800000 0x01100000
bootcmd_mmc=mmc init; ext2load mmc 0:1 0x00800000 /uImage; ext2load mmc 0:1 0x01100000 /uInitrd
bootcmd_usb=usb start; ext2load usb 0:1 0x00800000 /uImage; ext2load usb 0:1 0x01100000 /uInitrd
bootdelay=3
eth1addr=02:50:43:e8:c0:6c
ethact=egiga0
ethaddr=02:50:43:2b:78:54
stderr=serial
stdin=serial
stdout=serial
x_bootargs=console=ttyS0,115200
x_bootargs_root=ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs
x_bootcmd_ethernet=ping 192.168.2.1
x_bootcmd_kernel=nand read.e 0x6400000 0x100000 0x400000
x_bootcmd_usb=usb start

I tried both usb and SD (it was unclear from the instructions whether Guruplug always sees SD as USB or just during install).

I don't understand why mmc init isn't in uboot help menu and I get "command not recognized."
Logged

bad_gui
Jr. Member
**

Karma: 0
Posts: 50


View Profile
« Reply #1 on: October 30, 2012, 07:42:02 PM »

When I ran usb tree, my SD showed up as number 3 and that was what I was mistakenly using.

This is what I should have done:

Code:
Marvell>> usb devices

USB device 0: Vendor: Generic  Rev: 9909 Prod: STORAGE DEVICE 
            Type: Removable Hard Disk
            Capacity: not available
Marvell>> usb partitions
## Unknown partition table


Partition Map for USB device 1  --   Partition Type: DOS

Partition     Start Sector     Num Sectors     Type
    1                 2048          440320      83
    2               442368         6887424      83
    3              7331838          440322       5 Extd
    5              7331840          440320      82


Partition Map for USB device 2  --   Partition Type: DOS

Partition     Start Sector     Num Sectors     Type
    1               625088       124679744       c


Device 1 is the SD card and device 2 is a usb stick

So I changed the device number to 1 and now the guruplug boots up.

bootcmd_usb=usb start; ext2load usb 1:1 0x00800000 /uImage; ext2load usb 1:1 0x01100000 /uInitrd
Logged

Pages: [1]
Print
Jump to: