[GoFlex Home] Start on a USB key

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

Re: [GoFlex Home] Start on a USB key

Postby pepedog » Fri Aug 17, 2012 10:54 am

$this->bbcode_second_pass_quote('wild', '[')code]
# fw_printenv
-bash: fw_printenv : commande introuvable
[/code]

Command not found

within the stock NAND Linux, not archlinuxarm
/usr/sbin/fw_printenv
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: [GoFlex Home] Start on a USB key

Postby moonman » Fri Aug 17, 2012 11:04 am

I dont think one can boot into stock nand linux after installation of u-boot/ubit. I think you need to reboot for the command to work or run /usr/bin/fw_printenv or /usr/sbin/fw_printenv - I dont know what path it is exactly as mine came with the doozan's u-boot installation script.
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 Home] Start on a USB key

Postby Guest » Fri Aug 17, 2012 11:06 am

$this->bbcode_second_pass_quote('bz31', 'T')ry $this->bbcode_second_pass_code('', '/dev/mtd0 0xa0000 0x20000 0x20000') in your /etc/fw_env.config


Thanks you bz31 ;)

$this->bbcode_second_pass_quote('moonman', 'T')ry setting rootdelay to 10 or longer
$this->bbcode_second_pass_code('', 'fw_setenv usb_rootdelay 10')

$this->bbcode_second_pass_quote('moonman', 'W')hat's the output of fw_printenv. As I said you probably need to increase rootdelay


Original 0.6
$this->bbcode_second_pass_code('', '# fw_printenv')
$this->bbcode_second_pass_code('', 'addr_rd=0x1100000
arcNumber=3089
baudrate=115200
boot_auto=rd_args='rootfstype=auto'; run boot_rdaddr_kern=0x680000
boot_kern=run set_bootargs; bootm $addr_kern
boot_rd=run set_bootargs; bootm $addr_kern $addr_rd
bootdelay=3
chain=nand read.e 0x800000 0x480000 0x80000; go 0x800200
console=ttyS0,115200
ethact=egiga0
ethaddr=02:50:43:26:87:63
ext2_auto=ext2load $boot_dev $addr_rd /boot/uInitrd
ext2_boot=run ext2_rd boot_rd; run ext2_auto boot_auto; 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.10.10.6
led_error=orange blinking
led_exit=green off
led_init=green blinking
mtddevname=u-boot
mtddevnum=0
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(pogoplug),-(root)
nc_start=setenv stdin nc; setenv stdout nc; setenv stderr nc; version
nc_test=ping $ncip
ncip=10.10.10.5
ncipk=10.10.10.4
partition=nand0,0
preboot=run ubi_start silent_boot; run nc_test nc_start; run usb_start
rescue=dev_args='ubi.mtd=root rootfstype=preboot'; boot_dev='usb 0:1'; run ext2_kern ext2_auto boot_rd; boot_dev='ide 0:1'; run ide_start ext2_kern ext2_auto boot_rd; run silent_rd 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
stderr=nc
stdin=nc
stdout=nc
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=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_start=usb start
bootcmd=addr_kern='0x800000'; run fast_boot; run hd_boot; run usb_boot; run ubi_boot;')

So ?

Analyse :

$this->bbcode_second_pass_quote('Original 0.6 fw_printenv', '
')bootcmd=addr_kern='0x800000'; run fast_boot; run hd_boot; run usb_boot; run ubi_boot;

$this->bbcode_second_pass_code('', '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=
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')



Corrections : (In a shell with SSH)
$this->bbcode_second_pass_code('', '

fw_setenv usb_args_0 "boot_dev='usb 0:1'; dev_args='root=/dev/sda1 rootdelay=20'"
fw_setenv usb_args_1 "boot_dev='usb 1:1'; dev_args='root=/dev/sdb1 rootdelay=20'"
fw_setenv usb_args_2 "boot_dev='usb 2:1'; dev_args='root=/dev/sdc1 rootdelay=20'"
fw_setenv usb_args_3 "boot_dev='usb 3:1'; dev_args='root=/dev/sdd1 rootdelay=20'"
fw_setenv 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'
fw_setenv usb_start 'usb start'
fw_setenv bootcmd 'addr_kern='0x800000'; run fast_boot; run hd_boot; run usb_boot; run ubi_boot;'
')

Before Reboot

$this->bbcode_second_pass_code('', '
# fw_printenv
')
$this->bbcode_second_pass_code('', '
addr_rd=0x1100000
arcNumber=3089
baudrate=115200
boot_auto=rd_args='rootfstype=auto'; run boot_rdaddr_kern=0x680000
boot_kern=run set_bootargs; bootm $addr_kern
boot_rd=run set_bootargs; bootm $addr_kern $addr_rd
bootdelay=3
chain=nand read.e 0x800000 0x480000 0x80000; go 0x800200
console=ttyS0,115200
ethact=egiga0
ethaddr=02:50:43:26:87:63
ext2_auto=ext2load $boot_dev $addr_rd /boot/uInitrd
ext2_boot=run ext2_rd boot_rd; run ext2_auto boot_auto; 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.10.10.6
led_error=orange blinking
led_exit=green off
led_init=green blinking
mtddevname=u-boot
mtddevnum=0
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(pogoplug),-(root)
nc_start=setenv stdin nc; setenv stdout nc; setenv stderr nc; version
nc_test=ping $ncip
ncip=10.10.10.5
ncipk=10.10.10.4
partition=nand0,0
preboot=run ubi_start silent_boot; run nc_test nc_start; run usb_start
rescue=dev_args='ubi.mtd=root rootfstype=preboot'; boot_dev='usb 0:1'; run ext2_kern ext2_auto boot_rd; boot_dev='ide 0:1'; run ide_start ext2_kern ext2_auto boot_rd; run silent_rd 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
stderr=nc
stdin=nc
stdout=nc
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=20'
usb_args_1=boot_dev='usb 1:1'; dev_args='root=/dev/sdb1 rootdelay=20'
usb_args_2=boot_dev='usb 2:1'; dev_args='root=/dev/sdc1 rootdelay=20'
usb_args_3=boot_dev='usb 3:1'; dev_args='root=/dev/sdd1 rootdelay=20'
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_start=usb start
bootcmd=addr_kern='0x800000'; run fast_boot; run hd_boot; run usb_boot; run ubi_boot;
')

Same trouble :roll:

Analyse :

$this->bbcode_second_pass_quote('Original 0.6 fw_printenv', '
')bootcmd=addr_kern='0x800000'; run fast_boot; run hd_boot; run usb_boot; run ubi_boot;


Correction : (In a shell with SSH)

$this->bbcode_second_pass_quote('', '
')fw_setenv bootcmd 'addr_kern='0x800000'; run fast_boot; run usb_boot; run hd_boot; run ubi_boot;'

Same trouble :roll:


Well ...

$this->bbcode_second_pass_quote('moonman', '
')
GoFlex Home/Net

I do not own GoFlex Net myself so I do not know how well this will work with booting off of the sata drive. Probably only one sata port will work for booting:

$this->bbcode_second_pass_code('', 'cd /tmp
wget http://projects.doozan.com/uboot/install_uboot_mtd0.sh
chmod +x install_uboot_mtd0.sh
./install_uboot_mtd0.sh --no-uboot-check')

It will say that it can't recognize your device. Choose the one that you have from the list. If you choose wrong model you will probably brick your device.

After it is done DO NOT REBOOT!!!



$this->bbcode_second_pass_code('', '
[root@Seagate_GoFlex_Home /]# cd /tmp/
[root@Seagate_GoFlex_Home tmp]# wget http://projects.doozan.com/uboot/install_uboot_mtd0.sh
--2012-08-17 21:25:45-- http://projects.doozan.com/uboot/install_uboot_mtd0.sh
Résolution de projects.doozan.com (projects.doozan.com)... 50.116.34.13
Connexion vers projects.doozan.com (projects.doozan.com)|50.116.34.13|:80...connecté.
requête HTTP transmise, en attente de la réponse...200 OK
Longueur: 18406 (18K) [text/x-sh]
Sauvegarde en : «install_uboot_mtd0.sh»

100%[================================================================================================>] 18 406 46,3KB/s ds 0,4s

2012-08-17 21:25:47 (46,3 KB/s) - «install_uboot_mtd0.sh» sauvegardé [18406/18406]

[root@Seagate_GoFlex_Home tmp]# chmod +x install_uboot_mtd0.sh
')
$this->bbcode_second_pass_code('', '
[root@Seagate_GoFlex_Home tmp]# ./install_uboot_mtd0.sh --no-uboot-check
')
$this->bbcode_second_pass_code('', '
!!!!!! DANGER DANGER DANGER DANGER DANGER DANGER !!!!!!

If you lose power to your device while running this script,
it could be left in an unusable state.

This script will replace the bootloader on /dev/mtd0.

This installer will only work on the following devices:
Seagate Dockstar
Seagate GoFlex Net
Seagate GoFlex Home
Pogoplug v1
Pogoplug Pink (v2)
Do not run this installer on any other device.

By typing ok, you agree to assume all liabilities and risks
associated with running this installer.

If you agree, type 'ok' and press ENTER to continue: ok
')

$this->bbcode_second_pass_code('', '
# checking for /usr/sbin/nandwrite...
# checking for /usr/sbin/nanddump...
# checking for /usr/sbin/flash_erase...
# checking for /usr/sbin/fw_printenv...
# checking for /etc/fw_env.config...

# Validating existing uBoot...
Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x00000000 and ending at 0x00080000...
--2012-08-17 21:33:57-- http://jeff.doozan.com/uboot/valid-uboot.md5
Résolution de jeff.doozan.com (jeff.doozan.com)... 50.116.34.13
Connexion vers jeff.doozan.com (jeff.doozan.com)|50.116.34.13|:80...connecté.
requête HTTP transmise, en attente de la réponse...301 Moved Permanently
Emplacement: http://projects.doozan.com/uboot/valid-uboot.md5 [suivant]
--2012-08-17 21:33:57-- http://projects.doozan.com/uboot/valid-uboot.md5
Résolution de projects.doozan.com (projects.doozan.com)... 50.116.34.13
Connexion vers projects.doozan.com (projects.doozan.com)|50.116.34.13|:80...connecté.
requête HTTP transmise, en attente de la réponse...200 OK
Longueur: 1133 (1,1K) [text/plain]
Sauvegarde en : «/tmp/valid-uboot.md5»

100%[==============================================================================================================================>] 1 133 --.-K/s ds 0s

2012-08-17 21:33:58 (30,1 MB/s) - «/tmp/valid-uboot.md5» sauvegardé [1133/1133]

## Valid uBoot detected: [goflexnet davygravy-2012-04-19-current]
## The newest uBoot is already installed on mtd0.


You are already running the latest uBoot.
Your current uBoot environment should be reasonable. However, if you're having
any probems booting, you can reset the environment variables to know good values.
Would you like to reset the uBoot environment? [N/y] N

# uBoot installation has completed successfully.
')

$this->bbcode_second_pass_code('', '
[root@Seagate_GoFlex_Home tmp]# fw_printenv
Cannot parse config file: Invalid argument
')

$this->bbcode_second_pass_code('', '
[root@Seagate_GoFlex_Home tmp]# /usr/sbin/fw_setenv usb_rootfstype ext3
Cannot parse config file: Invalid argument
')

$this->bbcode_second_pass_code('', '
[root@Seagate_GoFlex_Home /]# cat /etc/fw_env.config
# Configuration file for fw_(printenv/saveenv) utility.
# Up to two entries are valid, in this case the redundand
# environment sector is assumed present.
# MTD device name Device offset Env. size Flash sector size
#/dev/mtd2 0x0000 0x20000 0x20000

# segate dockstar:
# /dev/mtd0 0xc0000 0x20000 0x20000

# iomega iconnect
# /dev/mtd0 0xa0000 0x20000 0x20000
')

$this->bbcode_second_pass_code('', '
nano /etc/fw_env.config
')
$this->bbcode_second_pass_code('', '
[root@Seagate_GoFlex_Home /]# cat /etc/fw_env.config
# Configuration file for fw_(printenv/saveenv) utility.
# Up to two entries are valid, in this case the redundand
# environment sector is assumed present.
# MTD device name Device offset Env. size Flash sector size
#/dev/mtd2 0x0000 0x20000 0x20000

# segate dockstar:
/dev/mtd0 0xc0000 0x20000 0x20000

# iomega iconnect
# /dev/mtd0 0xa0000 0x20000 0x20000
')

$this->bbcode_second_pass_code('', '
[root@Seagate_GoFlex_Home /]# fw_printenv
')
$this->bbcode_second_pass_code('', '
ethact=egiga0
bootdelay=3
baudrate=115200
arcNumber=2097
mainlineLinux=yes
console=ttyS0,115200
led_init=green blinking
led_exit=green off
led_error=orange blinking
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
mtdids=nand0=orion_nand
partition=nand0,2
stdin=serial
stdout=serial
stderr=serial
rescue_installed=0
rescue_set_bootargs=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts $rescue_custom_params
rescue_bootcmd=if test $rescue_installed -eq 1; then run rescue_set_bootargs; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000; else run pogo_bootcmd; fi
pogo_bootcmd=if fsload uboot-original-mtd0.kwb; then go 0x800200; fi
force_rescue=0
force_rescue_bootcmd=if test $force_rescue -eq 1 || ext2load usb 0:1 0x1700000 /rescueme 1 || fatload usb 0:1 0x1700000 /rescueme.txt 1; then run rescue_bootcmd; fi
ubifs_mtd=3
ubifs_set_bootargs=setenv bootargs console=$console ubi.mtd=$ubifs_mtd root=ubi0:rootfs rootfstype=ubifs $mtdparts $ubifs_custom_params
ubifs_bootcmd=run ubifs_set_bootargs; if ubi part data && ubifsmount rootfs && ubifsload 0x800000 /boot/uImage && ubifsload 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; fi
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_list=1 2 3 4
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_init=run usb_scan
usb_device=0:1
usb_root=/dev/sda1
usb_rootfstype=ext2
usb_rootdelay=10
usb_set_bootargs=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts $usb_custom_params
usb_bootcmd=run usb_init; run usb_set_bootargs; run usb_boot
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
bootcmd=usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run rescue_bootcmd; run pogo_bootcmd; reset
')

$this->bbcode_second_pass_quote('moonman', '
')
GoFlex Home/Net
...
After it is done DO NOT REBOOT!!!

Now, depending if you have rootfs on USB or SATA you need to do run different commands.

USB:
$this->bbcode_second_pass_code('', '/usr/sbin/fw_setenv usb_rootfstype ext3')

SATA:
$this->bbcode_second_pass_code('', '/usr/sbin/fw_setenv sata_device '0:1'
/usr/sbin/fw_setenv sata_root '/dev/sda1'
/usr/sbin/fw_setenv sata_rootfstype 'ext3'
/usr/sbin/fw_setenv sata_rootdelay '10'
/usr/sbin/fw_setenv sata_set_bootargs 'setenv bootargs console=$console root=$sata_root rootdelay=$sata_rootdelay rootfstype=$sata_rootfstype $mtdparts $sata_custom_params'
/usr/sbin/fw_setenv sata_boot 'ide reset; mw 0x800000 0 1; ext2load ide $sata_device 0x800000 /boot/uImage; if ext2load ide $sata_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi'
/usr/sbin/fw_setenv sata_bootcmd 'run sata_set_bootargs; run sata_boot'
/usr/sbin/fw_setenv bootcmd 'usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run sata_bootcmd; run rescue_bootcmd; run pogo_bootcmd; reset'')

Activating netconsole (optional):
$this->bbcode_second_pass_code('', '/usr/sbin/fw_setenv ipaddr '10.0.10.6'
/usr/sbin/fw_setenv ncip '10.10.10.5'
/usr/sbin/fw_setenv ncipk '10.10.10.4'
/usr/sbin/fw_setenv serverip '10.10.10.3'
/usr/sbin/fw_setenv preboot 'run nc_test nc_start'
/usr/sbin/fw_setenv nc_test 'ping $ncip'
/usr/sbin/fw_setenv nc_start 'setenv stdin nc; setenv stdout nc; setenv stderr nc; version'
')

modif

/usr/sbin/fw_setenv usb_rootfstype ext3
/usr/sbin/fw_setenv usb_rootdelay 60
/usr/sbin/fw_setenv usb_set_bootargs 'setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts $usb_custom_params'
/usr/sbin/fw_setenv usb_bootcmd 'run usb_init; run usb_set_bootargs; run usb_boot'
/usr/sbin/fw_setenv 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'
/usr/sbin/fw_setenv bootcmd 'usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run rescue_bootcmd; run pogo_bootcmd; reset'

before reboot

$this->bbcode_second_pass_code('', '[root@Seagate_GoFlex_Home tmp]# fw_printenv
ethact=egiga0
bootdelay=3
baudrate=115200
arcNumber=2097
mainlineLinux=yes
console=ttyS0,115200
led_init=green blinking
led_exit=green off
led_error=orange blinking
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
mtdids=nand0=orion_nand
partition=nand0,2
stdin=serial
stdout=serial
stderr=serial
rescue_installed=0
rescue_set_bootargs=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts $rescue_custom_params
rescue_bootcmd=if test $rescue_installed -eq 1; then run rescue_set_bootargs; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000; else run pogo_bootcmd; fi
pogo_bootcmd=if fsload uboot-original-mtd0.kwb; then go 0x800200; fi
force_rescue=0
force_rescue_bootcmd=if test $force_rescue -eq 1 || ext2load usb 0:1 0x1700000 /rescueme 1 || fatload usb 0:1 0x1700000 /rescueme.txt 1; then run rescue_bootcmd; fi
ubifs_mtd=3
ubifs_set_bootargs=setenv bootargs console=$console ubi.mtd=$ubifs_mtd root=ubi0:rootfs rootfstype=ubifs $mtdparts $ubifs_custom_params
ubifs_bootcmd=run ubifs_set_bootargs; if ubi part data && ubifsmount rootfs && ubifsload 0x800000 /boot/uImage && ubifsload 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; fi
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_list=1 2 3 4
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_init=run usb_scan
usb_device=0:1
usb_root=/dev/sda1
usb_rootfstype=ext3
usb_rootdelay=60
usb_set_bootargs=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts $usb_custom_params
usb_bootcmd=run usb_init; run usb_set_bootargs; run usb_boot
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
bootcmd=usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run rescue_bootcmd; run pogo_bootcmd; reset

')


$this->bbcode_second_pass_quote('moonman', '
')
GoFlex Home/Net

I do not own GoFlex Net myself so I do not know how well this will work with booting off of the sata drive. Probably only one sata port will work for booting:

$this->bbcode_second_pass_code('', 'cd /tmp
wget http://projects.doozan.com/uboot/install_uboot_mtd0.sh
chmod +x install_uboot_mtd0.sh
./install_uboot_mtd0.sh --no-uboot-check')

It will say that it can't recognize your device. Choose the one that you have from the list. If you choose wrong model you will probably brick your device.

After it is done DO NOT REBOOT!!!



I have choose the correct number for goflex home but :

?????
U-Boot 0.6 : arcNumber=3089
New U-bOOT : arcNumber=2097

Is it ok like this before i reboot my goflex home ?
Last edited by Guest on Fri Aug 17, 2012 8:41 pm, edited 1 time in total.
Guest
 
Top

Re: [GoFlex Home] Start on a USB key

Postby moonman » Fri Aug 17, 2012 8:39 pm

You are OK to reboot, Hovewer neither UBIT nor U-Boot have the correct arc number. It is only needed for correct led behavior.

$this->bbcode_second_pass_code('', 'fw_setenv arcNumber 3338 #this is the correct one for goflex home')
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 Home] Start on a USB key

Postby Guest » Fri Aug 17, 2012 8:52 pm

$this->bbcode_second_pass_code('', '

login as: root
root@192.168.0.101's password:
/etc/ubit/images:
/etc/ubit/ubimounts:
/etc/ubit/extramounts:

Current cached ethaddr value: XX:XX:XX:XX:XX:XX
You need to reboot once to let U-Boot set its default environment
before you update the ethaddr setting with this cached value.
UBIT v0.6 by peaslaker 2010.11-00125-ga21bcca
ubit0-6:~#
')

What must i do, i am connected with SSH (fright during startup, the green LED does not light). I think i am on usb key
Guest
 

Re: [GoFlex Home] Start on a USB key

Postby Guest » Fri Aug 17, 2012 9:33 pm

Well, I wrote then still reboot this screen ubit 06 but nothing else, by ssh it allways go back to this screen of ubit.

Understanding nothing, I removed the hard drive and the power cable leaving the usb then I reconnected the power cable, my router has informed me of the new IP address and a home goflexe started on the nand because I found the original system with Seagate. I think I will proceed to a factory reset and start the installation of archlinux.
Guest
 

Re: [GoFlex Home] Start on a USB key

Postby Guest » Fri Aug 17, 2012 11:07 pm

$this->bbcode_second_pass_code('', '

bash-3.2# cd /tmp/
bash-3.2# ls
0db config_plugin.log tmpmount
0external eaccelerator uInitrd
AdServerCookieJar logfiles ubit_start
AxUSBDeviceListRESTResourceGET.cache minidlna update
albumcache mt-daapd update_check_response.html
apache_tmp oe-update-checker.log utility_plugin.log
appserver systemproxy_plugins.log webUpdates
atalk templates_c
bash-3.2# ./ubit_start
tar: etc/resolv.conf: time stamp 2012-08-18 03:38:36 is 11669 s in the future
Entering UBIT environment
No valid U-Boot environment exists.
You need to reboot once to let U-Boot set its default environment
before the ethaddr setting can be updated, either directly or
with a cached value.

To cache a value, run:
ethaddr uu:vv:ww:xx:yy:zz
UBIT v0.6 by peaslaker 2010.11-00125-ga21bcca
ubit0-6:~# chain_install goflexhome
UBIT.CHAIN:goflexhome
UBIT.CHAIN:/usr/share/ubit/original/goflexhome.kwb writing to 0x380000 of /dev/mtd1
1+0 records in
1+0 records out
UBIT:bl: /usr/share/ubit/original/goflexhome.kwb checksum 9b940e0b3b5a523f8b50ef0fa50af97f -
Erase Total 4 Units
Performing Flash Erase of length 131072 at offset 0x3e0000 done
Writing data to block 28 at offset 0x380000
Writing data to block 29 at offset 0x3a0000
Writing data to block 30 at offset 0x3c0000
Writing data to block 31 at offset 0x3e0000
1+0 records in
1+0 records out
Writing data to block 32 at offset 0x400000
UBIT:bl: u-boot checksum match OK.
ubit0-6:~#

ubit0-6:~# chain_install goflexhome
UBIT.CHAIN:goflexhome
UBIT.CHAIN:/usr/share/ubit/original/goflexhome.kwb writing to 0x380000 of /dev/mtd1
1+0 records in
1+0 records out
UBIT:bl: /usr/share/ubit/original/goflexhome.kwb checksum 9b940e0b3b5a523f8b50ef0fa50af97f -
Erase Total 4 Units
Performing Flash Erase of length 131072 at offset 0x3e0000 done
Writing data to block 28 at offset 0x380000
Writing data to block 29 at offset 0x3a0000
Writing data to block 30 at offset 0x3c0000
Writing data to block 31 at offset 0x3e0000
1+0 records in
1+0 records out
Writing data to block 32 at offset 0x400000
UBIT:bl: u-boot checksum match OK.
ubit0-6:~#
ubit0-6:~# chain_revert
/usr/share/ubit/original/goflexhome.kwb.md5
1+0 records in
1+0 records out
UBIT:bl: u-boot.9b940e0b3b5a523f8b50ef0fa50af97f.kwb checksum 9b940e0b3b5a523f8b50ef0fa50af97f -
Erase Total 4 Units
Performing Flash Erase of length 131072 at offset 0x60000 done
Writing data to block 0 at offset 0x0
Writing data to block 1 at offset 0x20000
Writing data to block 2 at offset 0x40000
Writing data to block 3 at offset 0x60000
1+0 records in
1+0 records out
Writing data to block 4 at offset 0x80000
UBIT:bl: u-boot checksum match OK.
ubit0-6:~# uboot_uptodate
Existing firmware identified as matching: /usr/share/ubit/original/goflexhome.kwb.md5
UBIT:bl: u-boot checksum did not match.
Writing latest goflexhome firmware to /dev/mtd0
0+1 records in
1+0 records out
UBIT:bl: /usr/share/ubit/firmware/goflexhome.kwb checksum 24a6be4b581bffb170062f3b6f99e703 -
Erase Total 4 Units
Performing Flash Erase of length 131072 at offset 0x60000 done
Writing data to block 0 at offset 0x0
Writing data to block 1 at offset 0x20000
Writing data to block 2 at offset 0x40000
Writing data to block 3 at offset 0x60000
0+1 records in
1+0 records out
Writing data to block 4 at offset 0x80000
UBIT:bl: u-boot checksum match OK.
ubit0-6:~# ethaddr xx:xx:xx:xx:xx:xx
No valid U-Boot environment exists.
You need to reboot once to let U-Boot set its default environment
before the ethaddr setting can be updated, either directly or
with a cached value.

Cached ethaddr value set to: xx:xx:xx:xx:xx:xx
ubit0-6:~# on /dev/sdb1 ubit_write
UBIT:operating on /dev/sdb1
Writing ramdisk to /tmp/d901f17a5e35ece7d950d4f08c97033e/boot/uInitrd
Image Name: UBIT-2010.11-00125-ga21bcca
Created: Fri Aug 17 22:28:41 2012
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 2643548 Bytes = 2581.59 kB = 2.52 MB
Load Address: 00000000
Entry Point: 00000000

ubit0-6:~# tune2fs -L "rootfs" /dev/sdb1
tune2fs 1.41.12 (17-May-2010)
ubit0-6:~# fw_
fw_printenv fw_setenv
ubit0-6:~# fw_printenv
Warning: Bad CRC, using default environment
bootcmd=bootp; setenv bootargs root=/dev/nfs nfsroot=${serverip}:${rootpath} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; bootm
bootdelay=5
baudrate=115200

ubit0-6:~# exit
umount: can't umount /sys: Invalid argument
umount: can't umount /proc: Invalid argument
Exiting UBIT environment
bash-3.2# /sbin/halt


Wait for the machine to shut down (about 1-2 minutes). Then physically power cycle the unit using the power switch on back or unplugging the unit.

coldboot with usb key and sata hard drive, it boot on esata drive (no ip in router)
no ssh acces so :
Coldboot without usb key and only hard drive, it boot on esata drive (no ip in router)
no ssh acces so :
(nocold)boot with usb key without hard drive, it boot on usb key (ip in router and succefull ssh acces)

well :

cd /tmp
wget http://projects.doozan.com/uboot/install_uboot_mtd0.sh

--2012-08-18 00:49:12-- http://projects.doozan.com/uboot/install_uboot_mtd0.sh
Résolution de projects.doozan.com (projects.doozan.com)... 50.116.34.13
Connexion vers projects.doozan.com (projects.doozan.com)|50.116.34.13|:80...connecté.
requête HTTP transmise, en attente de la réponse...200 OK
Longueur: 18406 (18K) [text/x-sh]
Sauvegarde en : «install_uboot_mtd0.sh»

100%[======================================>] 18 406 46,3KB/s ds 0,4s

2012-08-18 00:49:13 (46,3 KB/s) - «install_uboot_mtd0.sh» sauvegardé [18406/18406]


chmod +x install_uboot_mtd0.sh

./install_uboot_mtd0.sh --no-uboot-check

[root@Seagate_GoFlex_Home tmp]# ./install_uboot_mtd0.sh --no-uboot-check


!!!!!! DANGER DANGER DANGER DANGER DANGER DANGER !!!!!!

If you lose power to your device while running this script,
it could be left in an unusable state.

This script will replace the bootloader on /dev/mtd0.

This installer will only work on the following devices:
Seagate Dockstar
Seagate GoFlex Net
Seagate GoFlex Home
Pogoplug v1
Pogoplug Pink (v2)
Do not run this installer on any other device.

By typing ok, you agree to assume all liabilities and risks
associated with running this installer.

If you agree, type 'ok' and press ENTER to continue: ok

# checking for /usr/sbin/nandwrite...

# Installing /usr/sbin/nandwrite...
--2012-08-18 00:51:09-- http://download.doozan.com/uboot/nandwrite.md5
Résolution de download.doozan.com (download.doozan.com)... 50.116.34.13
Connexion vers download.doozan.com (download.doozan.com)|50.116.34.13|:80...connecté.
requête HTTP transmise, en attente de la réponse...200 OK
Longueur: non spécifié [text/html]
Sauvegarde en : «/usr/sbin/nandwrite.md5»

[ <=> ] 32 --.-K/s ds 0s

2012-08-18 00:51:15 (357 KB/s) - «/usr/sbin/nandwrite.md5» sauvegardé [32]

--2012-08-18 00:51:15-- http://download.doozan.com/uboot/nandwrite
Résolution de download.doozan.com (download.doozan.com)... 50.116.34.13
Connexion vers download.doozan.com (download.doozan.com)|50.116.34.13|:80...connecté.
requête HTTP transmise, en attente de la réponse...200 OK
Longueur: 11500 (11K) []
Sauvegarde en : «/usr/sbin/nandwrite»

100%[======================================>] 11 500 43,1KB/s ds 0,3s

2012-08-18 00:51:15 (43,1 KB/s) - «/usr/sbin/nandwrite» sauvegardé [11500/11500]

# Successfully installed /usr/sbin/nandwrite.
# checking for /usr/sbin/nanddump...

# Installing /usr/sbin/nanddump...
--2012-08-18 00:51:15-- http://download.doozan.com/uboot/nanddump.md5
Résolution de download.doozan.com (download.doozan.com)... 50.116.34.13
Connexion vers download.doozan.com (download.doozan.com)|50.116.34.13|:80...connecté.
requête HTTP transmise, en attente de la réponse...200 OK
Longueur: non spécifié [text/html]
Sauvegarde en : «/usr/sbin/nanddump.md5»

[ <=> ] 32 --.-K/s ds 0s

2012-08-18 00:51:16 (358 KB/s) - «/usr/sbin/nanddump.md5» sauvegardé [32]

--2012-08-18 00:51:16-- http://download.doozan.com/uboot/nanddump
Résolution de download.doozan.com (download.doozan.com)... 50.116.34.13
Connexion vers download.doozan.com (download.doozan.com)|50.116.34.13|:80...connecté.
requête HTTP transmise, en attente de la réponse...200 OK
Longueur: 21286 (21K) []
Sauvegarde en : «/usr/sbin/nanddump»

100%[======================================>] 21 286 45,8KB/s ds 0,5s

2012-08-18 00:51:17 (45,8 KB/s) - «/usr/sbin/nanddump» sauvegardé [21286/21286]

# Successfully installed /usr/sbin/nanddump.
# checking for /usr/sbin/flash_erase...

# Installing /usr/sbin/flash_erase...
--2012-08-18 00:51:17-- http://download.doozan.com/uboot/flash_erase.md5
Résolution de download.doozan.com (download.doozan.com)... 50.116.34.13
Connexion vers download.doozan.com (download.doozan.com)|50.116.34.13|:80...connecté.
requête HTTP transmise, en attente de la réponse...200 OK
Longueur: non spécifié [text/html]
Sauvegarde en : «/usr/sbin/flash_erase.md5»

[ <=> ] 32 --.-K/s ds 0s

2012-08-18 00:51:18 (349 KB/s) - «/usr/sbin/flash_erase.md5» sauvegardé [32]

--2012-08-18 00:51:18-- http://download.doozan.com/uboot/flash_erase
Résolution de download.doozan.com (download.doozan.com)... 50.116.34.13
Connexion vers download.doozan.com (download.doozan.com)|50.116.34.13|:80...connecté.
requête HTTP transmise, en attente de la réponse...200 OK
Longueur: 12819 (13K) []
Sauvegarde en : «/usr/sbin/flash_erase»

100%[======================================>] 12 819 46,3KB/s ds 0,3s

2012-08-18 00:51:18 (46,3 KB/s) - «/usr/sbin/flash_erase» sauvegardé [12819/12819]

# Successfully installed /usr/sbin/flash_erase.
# checking for /usr/sbin/fw_printenv...

# Installing /usr/sbin/fw_printenv...
--2012-08-18 00:51:18-- http://download.doozan.com/uboot/fw_printenv.md5
Résolution de download.doozan.com (download.doozan.com)... 50.116.34.13
Connexion vers download.doozan.com (download.doozan.com)|50.116.34.13|:80...connecté.
requête HTTP transmise, en attente de la réponse...200 OK
Longueur: non spécifié [text/html]
Sauvegarde en : «/usr/sbin/fw_printenv.md5»

[ <=> ] 32 --.-K/s ds 0s

2012-08-18 00:51:19 (348 KB/s) - «/usr/sbin/fw_printenv.md5» sauvegardé [32]

--2012-08-18 00:51:19-- http://download.doozan.com/uboot/fw_printenv
Résolution de download.doozan.com (download.doozan.com)... 50.116.34.13
Connexion vers download.doozan.com (download.doozan.com)|50.116.34.13|:80...connecté.
requête HTTP transmise, en attente de la réponse...200 OK
Longueur: 668497 (653K) []
Sauvegarde en : «/usr/sbin/fw_printenv»

100%[======================================>] 668 497 57,1KB/s ds 12s

2012-08-18 00:51:37 (53,3 KB/s) - «/usr/sbin/fw_printenv» sauvegardé [668497/668497]

# Successfully installed /usr/sbin/fw_printenv.
# checking for /etc/fw_env.config...

# Validating existing uBoot...
Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x00000000 and ending at 0x00080000...
--2012-08-18 00:51:37-- http://jeff.doozan.com/uboot/valid-uboot.md5
Résolution de jeff.doozan.com (jeff.doozan.com)... 50.116.34.13
Connexion vers jeff.doozan.com (jeff.doozan.com)|50.116.34.13|:80...connecté.
requête HTTP transmise, en attente de la réponse...301 Moved Permanently
Emplacement: http://projects.doozan.com/uboot/valid-uboot.md5 [suivant]
--2012-08-18 00:51:43-- http://projects.doozan.com/uboot/valid-uboot.md5
Résolution de projects.doozan.com (projects.doozan.com)... 50.116.34.13
Connexion vers projects.doozan.com (projects.doozan.com)|50.116.34.13|:80...connecté.
requête HTTP transmise, en attente de la réponse...200 OK
Longueur: 1133 (1,1K) [text/plain]
Sauvegarde en : «/tmp/valid-uboot.md5»

100%[======================================>] 1 133 --.-K/s ds 0s

2012-08-18 00:51:43 (30,1 MB/s) - «/tmp/valid-uboot.md5» sauvegardé [1133/1133]

## Unknown uBoot detected on mtd0: 56f801cb02808f406045ffa58d770976
##
## --no-uboot-check flag detected, continuing installation

############################################
Your device could not be auto-detected.

You must be using a device listed below to run this installer.

What device are you using? Type the number of your device and press ENTER.
1 - Seagate Dockstar
2 - Seagate GoFlex Net
3 - Seagate GoFlex Home
4 - Pogoplug v1
5 - Pogoplug v2 - Pink
6 - Other

[size=150]3[/size]

Selected Seagate GoFlex Home

# Installing uBoot
## Installing goflexhome davygravy-2012-04-19
--2012-08-18 00:53:09-- http://download.doozan.com/uboot/files/uboot/uboot.mtd0.goflexhome.davygravy-2012-04-19.kwb.md5
Résolution de download.doozan.com (download.doozan.com)... 50.116.34.13
Connexion vers download.doozan.com (download.doozan.com)|50.116.34.13|:80...connecté.
requête HTTP transmise, en attente de la réponse...200 OK
Longueur: non spécifié [text/html]
Sauvegarde en : «/tmp/uboot.mtd0.kwb.md5»

[ <=> ] 32 --.-K/s ds 0s

2012-08-18 00:53:10 (225 KB/s) - «/tmp/uboot.mtd0.kwb.md5» sauvegardé [32]

--2012-08-18 00:53:10-- http://download.doozan.com/uboot/files/uboot/uboot.mtd0.goflexhome.davygravy-2012-04-19.kwb
Résolution de download.doozan.com (download.doozan.com)... 50.116.34.13
Connexion vers download.doozan.com (download.doozan.com)|50.116.34.13|:80...connecté.
requête HTTP transmise, en attente de la réponse...200 OK
Longueur: 524288 (512K) []
Sauvegarde en : «/tmp/uboot.mtd0.kwb»

100%[======================================>] 524 288 63,4KB/s ds 8,7s

2012-08-18 00:53:19 (59,1 KB/s) - «/tmp/uboot.mtd0.kwb» sauvegardé [524288/524288]

Erase Total 4 Units
Performing Flash Erase of length 131072 at offset 0x60000 done
Writing data to block 0 at offset 0x0
Writing data to block 1 at offset 0x20000
Writing data to block 2 at offset 0x40000
Writing data to block 3 at offset 0x60000
Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x00000000 and ending at 0x00080000...
## Verifying new uBoot...
--2012-08-18 00:53:19-- http://download.doozan.com/uboot/files/uboot/uboot.mtd0.goflexhome.davygravy-2012-04-19.kwb.md5
Résolution de download.doozan.com (download.doozan.com)... 50.116.34.13
Connexion vers download.doozan.com (download.doozan.com)|50.116.34.13|:80...connecté.
requête HTTP transmise, en attente de la réponse...200 OK
Longueur: non spécifié [text/html]
Sauvegarde en : «/tmp/uboot.mtd0.kwb.md5»

[ <=> ] 32 --.-K/s ds 0s

2012-08-18 00:53:20 (340 KB/s) - «/tmp/uboot.mtd0.kwb.md5» sauvegardé [32]

# Verified successfully!

# Installing uBoot environment
--2012-08-18 00:53:20-- http://download.doozan.com/uboot/files/environment/uboot.environment.md5
Résolution de download.doozan.com (download.doozan.com)... 50.116.34.13
Connexion vers download.doozan.com (download.doozan.com)|50.116.34.13|:80...connecté.
requête HTTP transmise, en attente de la réponse...200 OK
Longueur: non spécifié [text/html]
Sauvegarde en : «/tmp/uboot.environment.md5»

[ <=> ] 32 --.-K/s ds 0s

2012-08-18 00:53:21 (240 KB/s) - «/tmp/uboot.environment.md5» sauvegardé [32]

--2012-08-18 00:53:21-- http://download.doozan.com/uboot/files/environment/uboot.environment
Résolution de download.doozan.com (download.doozan.com)... 50.116.34.13
Connexion vers download.doozan.com (download.doozan.com)|50.116.34.13|:80...connecté.
requête HTTP transmise, en attente de la réponse...200 OK
Longueur: 131072 (128K) []
Sauvegarde en : «/tmp/uboot.environment»

100%[======================================>] 131 072 59,5KB/s ds 2,2s

2012-08-18 00:53:23 (59,5 KB/s) - «/tmp/uboot.environment» sauvegardé [131072/131072]

Erase Total 1 Units
Performing Flash Erase of length 131072 at offset 0xc0000 done
Writing data to block 6 at offset 0xc0000

# Verifying uBoot environment
Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x000c0000 and ending at 0x000e0000...
--2012-08-18 00:53:23-- http://download.doozan.com/uboot/files/environment/uboot.environment.md5
Résolution de download.doozan.com (download.doozan.com)... 50.116.34.13
Connexion vers download.doozan.com (download.doozan.com)|50.116.34.13|:80...connecté.
requête HTTP transmise, en attente de la réponse...200 OK
Longueur: non spécifié [text/html]
Sauvegarde en : «/tmp/uboot.environment.md5»

[ <=> ] 32 --.-K/s ds 0s

2012-08-18 00:53:24 (352 KB/s) - «/tmp/uboot.environment.md5» sauvegardé [32]


# uBoot installation has completed successfully.
[root@Seagate_GoFlex_Home tmp]#

/usr/sbin/fw_setenv usb_rootfstype ext3
/usr/sbin/fw_setenv usb_rootdelay 60
/usr/sbin/fw_setenv usb_set_bootargs 'setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts $usb_custom_params'
/usr/sbin/fw_setenv usb_bootcmd 'run usb_init; run usb_set_bootargs; run usb_boot'
/usr/sbin/fw_setenv 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'
/usr/sbin/fw_setenv bootcmd 'usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run rescue_bootcmd; run pogo_bootcmd; reset'

[root@Seagate_GoFlex_Home tmp]# reboot

(no cold boot and without sata drive)

usb key stop activity (led off) and no green led on

NEW Ip in router

succefull connexion in ssh

login as: root
root@192.168.0.103's password:
/etc/ubit/images:
/etc/ubit/ubimounts:
/etc/ubit/extramounts:

Current cached ethaddr value: xx:xx:xx:xx:xx:xx
You need to reboot once to let U-Boot set its default environment
before you update the ethaddr setting with this cached value.
UBIT v0.6 by peaslaker 2010.11-00125-ga21bcca
ubit0-6:~#

')

??????
Guest
 

Re: [GoFlex Home] Start on a USB key

Postby moonman » Sat Aug 18, 2012 2:23 am

remove everything (usb and sata drives) and see if you get the same thing. If it doesnt boot, then you probably overwrote the uImage with the ubit one on your usb flashdrive/sata
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 Home] Start on a USB key

Postby Guest » Sat Aug 18, 2012 7:22 am

I removed all and try boot but nothing happen. no ip in router was give.

My only way to boot is to use my usb key and have this :

$this->bbcode_second_pass_quote('', '
')
login as: root
root@192.168.0.104's password:
/etc/ubit/images:
/etc/ubit/ubimounts:
/etc/ubit/extramounts:

Current cached ethaddr value: xx:xx:xx:xx:xx:xx
You need to reboot once to let U-Boot set its default environment
before you update the ethaddr setting with this cached value.
UBIT v0.6 by peaslaker 2010.11-00125-ga21bcca
ubit0-6:~# fw_
fw_printenv fw_setenv
ubit0-6:~# fw_printenv
Warning: Bad CRC, using default environment
bootcmd=bootp; setenv bootargs root=/dev/nfs nfsroot=${serverip}:${rootpath} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; bootm
bootdelay=5
baudrate=115200
ubit0-6:~#



I have try to set manually the environment but no success :roll:

$this->bbcode_second_pass_quote('', '
')login as: root
root@192.168.0.105's password:
/etc/ubit/images:
/etc/ubit/ubimounts:
/etc/ubit/extramounts:

Current cached ethaddr value: XX:XX:XX:XX:XX:XX
You need to reboot once to let U-Boot set its default environment
before you update the ethaddr setting with this cached value.
UBIT v0.6 by peaslaker 2010.11-00125-ga21bcca
ubit0-6:~# fw_printenv
ethact=egiga0
bootdelay=3
baudrate=115200
arcNumber=3338
mainlineLinux=yes
console=ttyS0,115200
led_init=green blinking
led_exit=green off
led_error=orange blinking
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
mtdids=nand0=orion_nand
partition=nand0,2
stdin=serial
stdout=serial
stderr=serial
rescue_installed=0
rescue_set_bootargs=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro
rescue_bootcmd=if test $rescue_installed -eq 1; then run rescue_set_bootargs; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000; else run pogo_bootcmd; fi
pogo_bootcmd=if fsload uboot-original-mtd0.kwb; then go 0x800200; fi
force_rescue=0
force_rescue_bootcmd=if test $force_rescue -eq 1 || ext2load usb 0:1 0x1700000 /rescueme 1 || fatload usb 0:1 0x1700000 /rescueme.txt 1; then run rescue_bootcmd; fi
ubifs_mtd=3
ubifs_set_bootargs=setenv bootargs console=$console ubi.mtd=$ubifs_mtd root=ubi0:rootfs rootfstype=ubifs $mtdparts $ubifs_custom_params
ubifs_bootcmd=run ubifs_set_bootargs; if ubi part data && ubifsmount rootfs && ubifsload 0x800000 /boot/uImage && ubifsload 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; fi
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_list=1 2 3 4
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_init=run usb_scan
usb_device=0:1
usb_root=/dev/sda1
usb_rootfstype=ext3
usb_rootdelay=60
usb_set_bootargs=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay
rootfstype=$usb_rootfstype $mtdparts $usb_custom_params
usb_bootcmd=run usb_init; run usb_set_bootargs; run usb_boot
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
bootcmd=usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run rescue_bootcmd; run pogo_bootcmd; reset
ubit0-6:~#


$this->bbcode_second_pass_quote('moonman', 'I')f it doesnt boot, then you probably overwrote the uImage with the ubit one on your usb flashdrive/sata


How to ?
Guest
 
Top

Re: [GoFlex Home] Start on a USB key

Postby moonman » Sat Aug 18, 2012 9:28 am

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 4 guests