Can not boot from a SSD disk in the esata slot.

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

Re: Can not boot from a SSD disk in the esata slot.

Postby moonman » Wed Aug 29, 2012 9:03 pm

What's your environment:

at Marvell>> type in "printenv"
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: Can not boot from a SSD disk in the esata slot.

Postby phatkiller » Wed Aug 29, 2012 9:12 pm

$this->bbcode_second_pass_code('', 'Marvell>> printenv
printenv
bootcmd=run fast_boot; run usb_boot; run hd_boot; run ubi_boot
bootdelay=3
baudrate=115200
ide_start=ide reset
ubi_start=ubi part root
usb_start=usb start
nc_test=ping $ncip
nc_start=setenv stdin nc; setenv stdout nc; setenv stderr nc; version
silent_boot=run silent_rd ubi_args ubi_fallback
fast_boot=run fast_rd ubi_args ubi_fallback
usb_boot=for scan in 0 1 2 3; do run usb_args_$scan ext2_kern ext2_boot; run ext2_rd ubi_fallback; run fat_kern fat_boot; run fat_rd ubi_fallback;done
usb_args_0=boot_dev='usb 0:1'; dev_args='root=/dev/sda1 rootdelay=10'
usb_args_1=boot_dev='usb 1:1'; dev_args='root=/dev/sdb1 rootdelay=10'
usb_args_2=boot_dev='usb 2:1'; dev_args='root=/dev/sdc1 rootdelay=10'
usb_args_3=boot_dev='usb 3:1'; dev_args='root=/dev/sdd1 rootdelay=10'
hd_boot=run ide_start; for scan in 0 1; do run hd_args_$scan ext2_kern ext2_boot; run ext2_rd ubi_fallback; run fat_kern fat_boot; run fat_rd ubi_fallback; done')

After I do that it disconnects

also here is uboot version
$this->bbcode_second_pass_code('', 'Marvell>> version
version

U-Boot 2010.09 (Feb 16 2011 - 18:44:23)
UBIT v0.6 by Jeff Doozan and Peter Carmichael
')
phatkiller
 
Posts: 9
Joined: Wed Jun 13, 2012 6:45 am

Re: Can not boot from a SSD disk in the esata slot.

Postby moonman » Thu Aug 30, 2012 1:27 am

Yes your environment is messed up.
Can someone post a working environment for ubit please?

What's the reason you wanted to revert to old u-bit?
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: Can not boot from a SSD disk in the esata slot.

Postby phatkiller » Thu Aug 30, 2012 2:08 am

hey thanks for the all the replies/help moonman very much appreciated Im trying a few things I will update what i do just incase it fixes it and anyone else is in the same boat.

I had followed your post on how to update uboot to beable to update to the latest linux kernal with the hopes that i would be able to boot from sata or boot from usb with sata plugged in. After I updated everything, i lost access to the sata HD it wouldnt show up at all not with dmesg or fdisk -l. So i wanted to revert back to linux 3.1 and old uboot.
phatkiller
 
Posts: 9
Joined: Wed Jun 13, 2012 6:45 am

Re: Can not boot from a SSD disk in the esata slot.

Postby moonman » Thu Aug 30, 2012 2:16 am

Have you tried putting ide reset in bootargs in the new u-boot to see if the hdd would be detected after this?
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: Can not boot from a SSD disk in the esata slot.

Postby moonman » Thu Aug 30, 2012 2:21 am

I think I found the environment that works here

$this->bbcode_second_pass_code('', 'addr_kern=0x680000
addr_rd=0x1100000
arcNumber=3089
baudrate=115200
bootcmd=run usb_boot; run fast_boot; run hd_boot; run ubi_boot
bootdelay=3
boot_kern=run set_bootargs; bootm $addr_kern
boot_rd=run set_bootargs; bootm $addr_kern $addr_rd
chain=nand read.e 0x800000 0x480000 0x80000; go 0x800200
console=ttyS0,115200
ethact=egiga0
ethaddr=AA:BB:CC:DD:EE:FF
ext2_boot=run ext2_rd boot_rd; run boot_kern
ext2_kern=ext2load $boot_dev $addr_kern /boot/uImage
ext2_rd=ext2load $boot_dev $addr_rd /uInitrd
fast_boot=run fast_rd ubi_args ubi_fallback
fast_rd=ubifsmount fast; ubifsload $addr_rd /uInitrd
fat_boot=run fat_rd boot_rd
fat_kern=fatload $boot_dev $addr_kern /boot/uImage
fat_rd=fatload $boot_dev $addr_rd /uInitrd
hd_args_0=boot_dev='ide 0:1'; dev_args='root=/dev/sda1'
hd_args_1=boot_dev='ide 1:1'; dev_args='root=/dev/sdb1'
hd_boot=run ide_start; for scan in 0 1; do run hd_args_$scan ext2_kern ext2_boot; run ext2_rd ubi_fallback; run fat_kern fat_boot; run fat_rd ubi_fallback; done
ide_start=ide reset
ipaddr=10.0.10.6
led_error=orange blinking
led_exit=green off
led_init=green blinking
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
ncip=10.10.10.5
ncipk=10.10.10.4
nc_start=setenv stdin nc; setenv stdout nc; setenv stderr nc; version
nc_test=ping $ncip
preboot=run nc_test nc_start
rescue=dev_args='ubi.mtd=root rootfstype=preboot';run silent_hd ubi_fallback; run fast_rd ubi_fallback; run ubi_rd ubi_fallback
serverip=10.10.10.3
set_bootargs=setenv bootargs console=$console $mtdparts $dev_args $rd_args netconsole=@$ipaddr/eth0,@$ncipk/
silent_boot=run silent_rd ubi_args ubi_fallback
silent_rd=ubifsmount silent; ubifsload $addr_rd /uInitrd
ubi_args=dev_args='ubi.mtd=root'
ubi_boot=run ubi_rd ubi_args ubi_fallback
ubi_fallback=run ubi_kern boot_rd
ubi_kern=ubifsmount boot; ubifsload $addr_kern /boot/uImage
ubi_rd=ubifsmount ramdisk; ubifsload $addr_rd /uInitrd
ubi_start=ubi part root
usb_args_0=boot_dev='usb 0:1'; dev_args='root=/dev/sda1 rootdelay=10'
usb_args_1=boot_dev='usb 1:1'; dev_args='root=/dev/sdb1 rootdelay=10'
usb_args_2=boot_dev='usb 2:1'; dev_args='root=/dev/sdc1 rootdelay=10'
usb_args_3=boot_dev='usb 3:1'; dev_args='root=/dev/sdd1 rootdelay=10'
usb_boot=run usb_start; for scan in 0 1 2 3; do run usb_args_$scan ext2_kern ext2_boot; run ext2_rd ubi_fallback; run fat_kern fat_boot; run fat_rd ubi_fallback;done
usb_rootfstype=ext2
usb_start=usb start')

It needs to be adapted for setenv though (i.e. remove "=" after each variable name and add setenv in front of each line)
Last edited by moonman on Thu Aug 30, 2012 3:54 am, edited 1 time in total.
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: Can not boot from a SSD disk in the esata slot.

Postby phatkiller » Thu Aug 30, 2012 2:26 am

Yeah and it didnt work thats why i tried to go back by doing:
$this->bbcode_second_pass_code('', '
wget http://jeff.doozan.com/debian/goflex/v0.6/uInitrd
wget http://jeff.doozan.com/debian/goflex/v0.6/ubit_start
chmod +x ubit_start
./ubit_start
chain_install goflexhome
chain_revert
exit
reboot
')

so being the genius(totally sarcastic) that i am i went in through netconsole and issued

$this->bbcode_second_pass_code('', '
Marvell>> setenv bootcmd 'ide reset; usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run rescue_bootcmd; run pogo_bootcmd; reset'

setenv bootcmd 'ide reset; usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run rescue_bootcmd; run pogo_bootcmd; reset'

Marvell>> saveenv
saveenv
Saving Environment to NAND...
Erasing Nand...
Erasing at 0x60000 -- 100% complete.
Writing to Nand... done
Marvell>> reset
reset
resetting ...

U-Boot 2010.09 (Feb 16 2011 - 18:44:23)
UBIT v0.6 by Jeff Doozan and Peter Carmichael
(Re)start USB...
USB: Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 1 USB Device(s) found
scanning bus for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot: 0

Reset IDE: Bus 0: not available Bus 1: not available
(Re)start USB...
USB: Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 1 USB Device(s) found
scanning bus for storage devices... 0 Storage Device(s) found
## Error: "force_rescue_bootcmd" not defined
## Error: "ubifs_bootcmd" not defined
## Error: "usb_bootcmd" not defined
stopping USB..
## Error: "rescue_bootcmd" not defined
## Error: "pogo_bootcmd" not defined
resetting ...

U-Boot 2010.09 (Feb 16 2011 - 18:44:23)
UBIT v0.6 by Jeff Doozan and Peter Carmichael
(Re)start USB...
USB: Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 1 USB Device(s) found
scanning bus for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot: 0

Reset IDE: Bus 0: not available Bus 1: not available
(Re)start USB...
USB: Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 1 USB Device(s) found
scanning bus for storage devices... 0 Storage Device(s) found
## Error: "force_rescue_bootcmd" not defined
## Error: "ubifs_bootcmd" not defined
## Error: "usb_bootcmd" not defined
stopping USB..
## Error: "rescue_bootcmd" not defined
## Error: "pogo_bootcmd" not defined
resetting ...
')

Now im stuck with it resetting itself not allowing me to reach the Marvell>> prompt anymore. netconsole stays connected just keeps showing this over and over and over and over :(

update:
ok i was able to get Marvell>> prompt again by pressing CTRL+T gonna try those settings you posted above.
phatkiller
 
Posts: 9
Joined: Wed Jun 13, 2012 6:45 am

Re: Can not boot from a SSD disk in the esata slot.

Postby moonman » Thu Aug 30, 2012 4:58 am

K, I formatted this thing for you. Just copy-paste into Marvell prompt and then "saveenv". Don't forget to edith your mac address under ethaddr variable.
$this->bbcode_second_pass_code('', '
setenv addr_kern 0x680000
setenv addr_rd 0x1100000
setenv arcNumber 3089
setenv baudrate 115200
setenv bootcmd 'run usb_boot; run fast_boot; run hd_boot; run ubi_boot'
setenv bootdelay 3
setenv boot_kern 'run set_bootargs; bootm $addr_kern'
setenv boot_rd 'run set_bootargs; bootm $addr_kern $addr_rd'
setenv chain 'nand read.e 0x800000 0x480000 0x80000; go 0x800200'
setenv console 'ttyS0,115200'
setenv ethact egiga0
setenv ethaddr AA:BB:CC:DD:EE:FF
setenv ext2_boot 'run ext2_rd boot_rd; run boot_kern'
setenv ext2_kern 'ext2load $boot_dev $addr_kern /boot/uImage'
setenv ext2_rd 'ext2load $boot_dev $addr_rd /uInitrd'
setenv fast_boot 'run fast_rd ubi_args ubi_fallback'
setenv fast_rd 'ubifsmount fast; ubifsload $addr_rd /uInitrd'
setenv fat_boot 'run fat_rd boot_rd'
setenv fat_kern 'fatload $boot_dev $addr_kern /boot/uImage'
setenv fat_rd 'fatload $boot_dev $addr_rd /uInitrd'
setenv hd_args_0 "boot_dev='ide 0:1'; dev_args='root=/dev/sda1'"
setenv hd_args_1 "boot_dev='ide 1:1'; dev_args='root=/dev/sdb1'"
setenv hd_boot 'run ide_start; for scan in 0 1; do run hd_args_$scan ext2_kern ext2_boot; run ext2_rd ubi_fallback; run fat_kern fat_boot; run fat_rd ubi_fallback; done'
setenv ide_start 'ide reset'
setenv ipaddr '10.0.10.6'
setenv led_error 'orange blinking'
setenv led_exit 'green off'
setenv led_init 'green blinking'
setenv mtdids 'nand0=orion_nand'
setenv mtdparts 'mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)'
setenv ncip '10.10.10.5'
setenv ncipk '10.10.10.4'
setenv nc_start 'setenv stdin nc; setenv stdout nc; setenv stderr nc; version'
setenv nc_test 'ping $ncip'
setenv preboot 'run nc_test nc_start'
setenv rescue "dev_args='ubi.mtd=root rootfstype=preboot';run silent_hd ubi_fallback; run fast_rd ubi_fallback; run ubi_rd ubi_fallback"
setenv serverip '10.10.10.3'
setenv set_bootargs 'setenv bootargs console=$console $mtdparts $dev_args $rd_args netconsole=@$ipaddr/eth0,@$ncipk/'
setenv silent_boot 'run silent_rd ubi_args ubi_fallback'
setenv silent_rd 'ubifsmount silent; ubifsload $addr_rd /uInitrd'
setenv ubi_args "dev_args='ubi.mtd=root'"
setenv ubi_boot 'run ubi_rd ubi_args ubi_fallback'
setenv ubi_fallback 'run ubi_kern boot_rd'
setenv ubi_kern 'ubifsmount boot; ubifsload $addr_kern /boot/uImage'
setenv ubi_rd 'ubifsmount ramdisk; ubifsload $addr_rd /uInitrd'
setenv ubi_start 'ubi part root'
setenv usb_args_0 "boot_dev='usb 0:1'; dev_args='root=/dev/sda1 rootdelay=10'"
setenv usb_args_1 "boot_dev='usb 1:1'; dev_args='root=/dev/sdb1 rootdelay=10'"
setenv usb_args_2 "boot_dev='usb 2:1'; dev_args='root=/dev/sdc1 rootdelay=10'"
setenv usb_args_3 "boot_dev='usb 3:1'; dev_args='root=/dev/sdd1 rootdelay=10'"
setenv usb_boot 'run usb_start; for scan in 0 1 2 3; do run usb_args_$scan ext2_kern ext2_boot; run ext2_rd ubi_fallback; run fat_kern fat_boot; run fat_rd ubi_fallback;done'
setenv usb_rootfstype 'ext2'
setenv usb_start 'usb start'')
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: Can not boot from a SSD disk in the esata slot.

Postby phatkiller » Sat Sep 01, 2012 4:01 am

Ok so I couldnt copy and paste the whole thing so i did it one by one. I left out these twobecause when i did this it would reset or hang.
$this->bbcode_second_pass_code('', '
setenv ethaddr MYMAC
setenv ipaddr '10.0.10.6'
')

This is printenv after

$this->bbcode_second_pass_code('', '
Marvell>> printenv
printenv
baudrate=115200
ext2_auto=ext2load $boot_dev $addr_rd /boot/uInitrd
boot_auto=rd_args='rootfstype=auto'; run boot_rd
')



The whole thing wouldnt print in just one nc terminal so before i ran "PRINTENV" command i would open another terminal running nc again and got this as part of the printenv
$this->bbcode_second_pass_code('', 'ipaddr=10.10.10.6
ethaddr=02:50:43:a3:a6:43
partition=nand0,0
mtddevnum=0
mtddevname=u-boot
addr_rd=0x1100000
arcNumber=3089
bootcmd=run usb_boot; run fast_boot; run hd_boot; run ubi_boot
bootdelay=3
boot_kern=run set_bootargs; bootm $addr_kern
boot_rd=run set_bootargs; bootm $addr_kern $addr_rd
chain=nand read.e 0x800000 0x480000 0x80000; go 0x800200
console=ttyS0,115200
ethact=egiga0
ext2_boot=run ext2_rd boot_rd; run boot_kern
ext2_kern=ext2load $boot_dev $addr_kern /boot/uImage
ext2_rd=ext2load $boot_dev $addr_rd /uInitrd
fast_boot=run fast_rd ubi_args ubi_fallback
fast_rd=ubifsmount fast; ubifsload $addr_rd /uInitrd
fat_boot=run fat_rd boot_rd
fat_kern=fatload $boot_dev $addr_kern /boot/uImage
fat_rd=fatload $boot_dev $addr_rd /uInitrd
hd_args_0=boot_dev=ide 0:1; dev_args=root=/dev/sda1
hd_args_1=boot_dev=ide 1:1; dev_args=root=/dev/sdb1
hd_boot=run ide_start; for scan in 0 1; do run hd_args_$scan ext2_kern ext2_boot; run ext2_rd ubi_fallback; run fat_kern fat_boot; run fat_rd ubi_fallback; done')

Still wont boot from usb any ideas ?
phatkiller
 
Posts: 9
Joined: Wed Jun 13, 2012 6:45 am

Re: Can not boot from a SSD disk in the esata slot.

Postby moonman » Sat Sep 01, 2012 4:44 am

are you going through the router or direct crossover connection? seems strange that you don't get full output.
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

PreviousNext

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 1 guest