Welcome! Log In Create A New Profile

Advanced

stuck at uBoot with wrong env settings

Posted by jola55o 
jola55o
stuck at uBoot with wrong env settings
July 31, 2014 12:37PM
Hi all,

I have a goflex net and something went amiss during my last ARCH linux installation following the provided docs. Before that I had a working debian system - but unfortunately (maybe too confident in myself) I did no backups!

After that I tried a couple of things - sure to be able to solve it myself. I even tryed to install to NAND (openwrt) - only to get a running system. But now it seems I am hoplessly lost in a mixed uBoot env setting unable to boot from usb and unable to resolve it myself.

I have:
  • a goflex net with presumably wrong environment settings
  • a working serial connection (cable! not netconsole)
  • a working network connection
  • a running TFTP server - and able to load and boot images
  • a running UART boot setung with kwboot-tool
  • a bootable (tested) usb stick with ext2 with the rescue system from http://forum.doozan.com/read.php?4,8277

Although I am able to boot from tftp I am lacking a bootable uImage/Initrd.

This is what my boot up and env look like:
GoFlexNet> printenv
arcNumber=3089
baudrate=115200
bootcmd=${x_bootcmd_kernel}; setenv bootargs ${x_bootargs} ${x_bootargs_root}; ${x_bootcmd_usb}; bootm 0x6400000;
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:26:8C:AD
ipaddr=192.168.178.111
led_error=orange blinking
led_exit=green off
led_init=green blinking
machid=c11
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
partition=nand0,2
serverip=192.168.178.29
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=if ext2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000;else bootm 0x800000;fi;
usb_device=0:1
usb_init=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=ext2
x_bootargs=console=ttyS0,115200 mtdparts=orion_nand:1M(u-boot),1M@1M(second_stage_u-boot),3M@2M(kernel),251M@5M(rootfs) rw
x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2
x_bootcmd_kernel=nand read 0x6400000 0x200000 0x300000
x_bootcmd_usb=usb start

Environment size: 1397/131068 bytes


This is my succesful uBoot UART booting with kwboot:
sudo ./kwboot-tool/kwboot -t -B 115200 /dev/ttyUSB0  -b uboot.2014.07-tld-1.goflexnet.mtd0.kwb -p
[sudo] 
Sending boot message. Please reboot the target...-
Sending boot image...
  0 % [......................................................................]
  <snip>
 99 % [....................................]
[Type Ctrl-\ + c to quit]


U-Boot 2014.07-tld-1 (Jul 18 2014 - 00:35:50)
Seagate GoFlex Net

SoC:   Kirkwood 88F6281_A1
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 
GoFlexNet>


This is my succesful tftp transfer with failed boot:
tftp 0x800000 uImage    
Using egiga0 device
TFTP from server 192.168.178.29; our IP address is 192.168.178.111
Filename 'uImage'.
Load address: 0x800000
Loading: #################################################################
	 #################################################################
	 #################################################################
	 #####################################################
	 6.9 MiB/s
done
Bytes transferred = 3627880 (375b68 hex)
GoFlexNet> go 0x800000
## Starting application at 0x00800000 ...
<device hangs - nothing happens here>

I'm just stuck at my uBoot with working uart and tftp but still unable to take the next step. Maybe all I need is a proper uImage/Initrd and working uBoot env settings.

Help appreciated.

Regards
Re: stuck at uBoot with wrong env settings
July 31, 2014 02:15PM
jola55o,

Your envs is little messed up!

- Plug your Arch rootfs USB in the GF Net.
- Start UART booting on the other box. And then power up the GoFlex Net.
- Interrupt U-Boot at countdown, and then
setenv bootcmd 'run bootcmd_usb'
boot

Once you booted into Arch, set the bootcmd for real:
fw_setenv bootcmd 'run bootcmd_usb'

If you still can't boot Arch, pls post the log here.

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 2 time(s). Last edit at 07/31/2014 02:22PM by bodhi.
jola55o
Re: stuck at uBoot with wrong env settings
August 04, 2014 03:33PM
I was able to boot into my rescue system (on usb) with
setenv bootcmd 'run bootcmd_usb'
boot

kudhos @bodhi. You saved my day. It so simple if you know how :)
Author:

Your Email:


Subject:


Spam prevention:
Please, solve the mathematical question and enter the answer in the input field below. This is for blocking bots that try to post this form automatically.
Question: how much is 3 plus 4?
Message: