GoFlex Net can't find anything to boot

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

GoFlex Net can't find anything to boot

Postby dtitzer » Sat May 03, 2014 3:44 pm

I'm trying to recover from borking the process, and have gotten back to a uboot that at least tries to do something other than tftpboot. I put the Arch Linux ARM armv5te tar file on a 16G flash drive, after using a Ubuntu system to partition, format it, and label it. All I seem to get at boot is:

$this->bbcode_second_pass_code('', '
U-Boot 2011.12 (Apr 18 2012 - 23:08:20)
Seagate GoFlexNet

SoC: Kirkwood 88F6281_A0
DRAM: 128 MiB
WARNING: Caches not enabled
NAND: 256 MiB
In: serial
Out: serial
Err: serial
Net: egiga0
88E1116 Initialized on egiga0
Hit any key to stop autoboot: 0
** Block device usb 0 not supported
** Block device usb 1 not supported
** Block device usb 2 not supported
** Block device usb 3 not supported
** Block device usb 0 not supported
** Block device usb 0 not supported
** Block device usb 0 not supported
Wrong Image Format for bootm command
ERROR: can't get kernel image!
stopping USB..
### JFFS2 loading 'uboot-original-mtd0.kwb' to 0x800000
Scanning JFFS2 FS: ..... done.
find_inode failed for name=uboot-original-mtd0.kwb
load: Failed to find inode
### JFFS2 LOAD ERROR<0> for uboot-original-mtd0.kwb!
## Starting application at 0x00800200 ...
')

and that's where it stops.

My environment:

$this->bbcode_second_pass_code('', '
arcNumber=2678
baudrate=115200
bootcmd=run bootcmd_usb; usb stop; run bootcmd_pogo; reset
bootcmd_pogo=fsload uboot-original-mtd0.kwb; go 0x800200
bootcmd_usb=run usb_init; run usb_load_uimage; run set_bootargs_usb; run usb_boot;
bootdelay=3
console=ttyS0,115200
ethact=egiga0
ethaddr=00:10:75:36:31:a4
led_error=orange blinking
led_exit=green off
led_init=green blinking
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
partition=nand0,2
set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts
stderr=serial
stdin=serial
stdout=serial
usb_boot=mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage; if ext2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
usb_device=0:1
usb_init=run usb_scan
usb_init_save=usb start
usb_load_uimage=mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage
usb_root=/dev/sda1
usb_rootdelay=10
usb_rootfstype=ext3
usb_scan=usb_scan_done=0;for scan in $usb_scan_list; do run usb_scan_$scan; if test $usb_scan_done -eq 0 && ext2load usb $usb 0x800000 /boot/uImage 1; then usb_scan_done=1; echo "Found bootable drive on usb $usb"; setenv usb_device $usb; setenv usb_root /dev/$dev; fi; done
usb_scan_1=usb=0:1 dev=sda1
usb_scan_2=usb=1:1 dev=sdb1
usb_scan_3=usb=2:1 dev=sdc1
usb_scan_4=usb=3:1 dev=sdd1
usb_scan_list=1 2 3 4
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=/dev/disk/by-label/urootfs rootdelay=10 rootfstype=ext3 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)

Environment size: 1706/131068 bytes
')

I have the feeling I'm awfully close, but I'm still learning this bootloader. Also, I'm wondering if I'm formatting the flash drive wrong. Is it possible that using mke2fs on Ubuntu is slightly off from what the bootloader can read?

Thanks!

Dave
dtitzer
 
Posts: 4
Joined: Sat May 03, 2014 3:28 pm

Re: GoFlex Net can't find anything to boot

Postby moonman » Sun May 04, 2014 10:38 am

You either have a wrong filesystem or (according to your environment it needs to be ext3) or try a different flash drive.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: GoFlex Net can't find anything to boot

Postby dtitzer » Sun May 04, 2014 10:23 pm

I've recreated the filesystem as ext2, and fsck'ed it. I also went in and changed the environment so that all filesystem type references are ext2, but no change. What does the error

$this->bbcode_second_pass_code('', '
Wrong Image Format for bootm command
')

mean? See the environment line:

$this->bbcode_second_pass_code('', '
usb_boot=mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage; if ext2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
')

from my initial post. If I understand this, it clears 0x800000 and loads uImage there, then tries to load uInitrd to 0x1100000. If that succeeds, calls bootm with both addresses, otherwise just runs bootm on the uImage location. Now, I know the filesystem has only uImage, no uInitrd, so it always falls through to the 'else' block.

--Dave
dtitzer
 
Posts: 4
Joined: Sat May 03, 2014 3:28 pm

Re: GoFlex Net can't find anything to boot

Postby bodhi » Mon May 05, 2014 2:45 am

You need usb start in bootcmd:
$this->bbcode_second_pass_code('', 'bootcmd=usb start; run bootcmd_usb; usb stop; run bootcmd_pogo; reset
')
bodhi
 
Posts: 225
Joined: Sat Aug 13, 2011 10:06 am

Re: GoFlex Net can't find anything to boot

Postby dtitzer » Mon May 05, 2014 9:41 am

Interesting that you say that, I did actually try that manually along with other commands to initiate load and boot of uImage from the boot loader prompt. I got farther along, which started to feel encouraging, but then I got an error saying something like "RTC isn't ticking" and then a kernel panic mentioning something about the rtc. Sorry, I'm on another computer, and all my hacking stuff is put away right now or I'd cut/paste that in to show you

I started to search on that new issue, but the info I was getting didn't quite match what I was seeing. I have a GoFlex Net, and I have only the flash drive attached, but some of the search hits mentioned having SATA drives attached, or mentioned getting what looked like the same rootfs tar file that I already have.
dtitzer
 
Posts: 4
Joined: Sat May 03, 2014 3:28 pm

Re: GoFlex Net can't find anything to boot

Postby dtitzer » Tue May 06, 2014 11:42 pm

Thanks, bohdi, that took care of it. I just wasn't seeing it. I can't explain the error I got when I manually ran some commands, but all is well now.
dtitzer
 
Posts: 4
Joined: Sat May 03, 2014 3:28 pm


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 10 guests