Welcome! Log In Create A New Profile

Advanced

can't boot up openwrt in USB stick

Posted by kermit 
can't boot up openwrt in USB stick
August 31, 2011 05:44PM
Dear:
Just follow jeff's instruction to update the latest uBoot. And open netconsole, compile the latest source code in openwrt's trunk, format a 2G usb stick to ext2, then mount the usbstick to my linux machine, mkdir boot directoyr, cp the openwrt-kirkwood-uImage to boot, cp openwrt-kirkwood-rootfs.tar.gz to usb stick, untar it. Plug in the usb stick in dockstar, and get those log information on nc.It seems the uImage is passed, and starting kernel, but I can't ping the dockstar, the led is yellow flashing very fast. Would you pls help to identify what's the problem?



U-Boot 2010.09 (Oct 23 2010 - 11:49:22)
Marvell-Dockstar/Pogoplug by Jeff Doozan
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... 1 Storage Device(s) found
Loading file "/rescueme" from usb device 0:1 (usbda1)
** File not found /rescueme
reading /rescueme.txt

** Unable to read "/rescueme.txt" from usb 0:1 **
Creating 1 MTD partitions on "nand0":
0x000002500000-0x000010000000 : "mtd=3"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    129024 bytes
UBI: smallest flash I/O unit:    2048
UBI: sub-page size:              512
UBI: VID header offset:          512 (aligned 512)
UBI: data offset:                2048
UBI: attached mtd1 to ubi0
UBI: MTD device name:            "mtd=3"
UBI: MTD device size:            219 MiB
UBI: number of good PEBs:        1751
UBI: number of bad PEBs:         1
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     0
UBI: available PEBs:             1730
UBI: total number of reserved PEBs: 21
UBI: number of PEBs reserved for bad PEB handling: 17
UBI: max/mean erase counter: 1/1
UBIFS error (pid 0): ubifs_get_sb: cannot open "ubi:rootfs", error -19
Error reading superblock on volume 'ubi:rootfs'!
Loading file "/boot/uImage" from usb device 0:1 (usbda1)
1 bytes read
Found bootable drive on usb 0:1
Loading file "/boot/uImage" from usb device 0:1 (usbda1)
1195424 bytes read
Loading file "/boot/uInitrd" from usb device 0:1 (usbda1)
** File not found /boot/uInitrd
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-2.6.30.10
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1195360 Bytes = 1.1 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...
Re: can't boot up openwrt in USB stick
September 01, 2011 03:09PM
You'll need serial console access to further debug.
Re: can't boot up openwrt in USB stick
September 01, 2011 10:58PM
I already order the CA-42 serial cable, Now I just need waiting......

But today, I install the archlinux on usb stick, it works great. I don't know why. But when I change to openwrt, always fail to boot..
Re: can't boot up openwrt in USB stick
September 06, 2011 04:44PM
** File not found /boot/uInitrd

There are no silly questions
Re: can't boot up openwrt in USB stick
September 06, 2011 07:28PM
Well, you don't necessarily need an initrd image to boot. It provides some helpers, mostly to load the root fs if the kernel doesn't have those modules built in. I don't know where your OpenWrt expects to find its root filesystem. Everything I've read today seems to state that it should be in the nand but you're likely passing it a root=/dev/sda1 parameter from jeff's uboot.

** edit **
why don't you post the link to the instructions you attempted to follow?



Edited 1 time(s). Last edit at 09/06/2011 08:04PM by kraqh3d.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: