Welcome! Log In Create A New Profile

Advanced

Replace Ubit v0.5 with Uboot and a good kernel for GoFlex Net

Posted by enki 
Re: Replace Ubit v0.5 with Uboot and a good kernel for GoFlex Net
September 07, 2013 08:50PM
Enki,

The Goflex Net arc Number is:
3089 Seagate Goflex Net

So at Debian command line, set it
fw_setenv arcNumber 3089

And reboot.

However, it's best to that you try either UART booting or netconsole first before changing uBoot envs (because a typo would lock you out of the box).

Addendum:

To setup netconsole: http://forum.doozan.com/read.php?3,14
But if you already have working serial console as before, then go ahead with setting arcNumber.



Edited 1 time(s). Last edit at 09/08/2013 12:12AM by bodhi.
shv
Re: Replace Ubit v0.5 with Uboot and a good kernel for GoFlex Net
September 08, 2013 12:32AM
It might be recommended to use ext3 instead of ext2 for the rootfs.
usb_rootfstype=ext3
In case you wan't to boot from SATA drive you could try this:
fw_setenv arcNumber 3089
fw_setenv usb_init 'run usb_scan; setenv usb_root LABEL=rootfs'
fw_setenv ide_scan 'ide_scan_done=0;for scan in $ide_scan_list; do run ide_scan_$scan; if test $ide_scan_done -eq 0 && ext2load ide $ide 0x800000 /boot/uImage 1; then ide_scan_done=1; echo "Found bootable drive on ide $ide"; setenv ide_device $ide; setenv ide_root /dev/$dev; fi; done'
fw_setenv ide_init 'ide reset; run ide_scan'
fw_setenv ide_scan_list '1 2'
fw_setenv ide_scan_1 'ide=0:1 dev=sda2'
fw_setenv ide_scan_2 'ide=1:1 dev=sdb2'
fw_setenv ide_rootfstype ext3
fw_setenv ide_rootdelay 10
fw_setenv ide_root_label rootfs
fw_setenv ide_set_bootargs 'setenv bootargs console=$console root=LABEL=$ide_root_label rootdelay=$ide_rootdelay rootfstype=$ide_rootfstype $mtdparts $ide_custom_params'
fw_setenv ide_boot 'ext2load ide $ide_device 0x800000 /boot/uImage; ext2load ide $ide_device 0x1100000 /boot/uInitrd; run ide_set_bootargs; bootm 0x800000 0x1100000'
fw_setenv ide_bootcmd 'run ide_init; run ide_boot'
fw_setenv bootcmd 'usb reset; usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run ide_bootcmd; run rescue_bootcmd; run pogo_bootcmd; reset'



Edited 4 time(s). Last edit at 09/08/2013 12:48AM by shv.
Re: Replace Ubit v0.5 with Uboot and a good kernel for GoFlex Net
September 10, 2013 08:00AM
Cool. However, will your recommendation work with a GoFLEX Net running on an OpenWRT OS? The reason I asked is the setenv usb_root LABEL=rootfs.

shv Wrote:
-------------------------------------------------------
> It might be recommended to use ext3 instead of
> ext2 for the rootfs.
>
> usb_rootfstype=ext3
>
> In case you wan't to boot from SATA drive you
> could try this:
>
> fw_setenv arcNumber 3089
> fw_setenv usb_init 'run usb_scan; setenv usb_root
> LABEL=rootfs'
> fw_setenv ide_scan 'ide_scan_done=0;for scan in
> $ide_scan_list; do run ide_scan_$scan; if test
> $ide_scan_done -eq 0 && ext2load ide $ide 0x800000
> /boot/uImage 1; then ide_scan_done=1; echo "Found
> bootable drive on ide $ide"; setenv ide_device
> $ide; setenv ide_root /dev/$dev; fi; done'
> fw_setenv ide_init 'ide reset; run ide_scan'
> fw_setenv ide_scan_list '1 2'
> fw_setenv ide_scan_1 'ide=0:1 dev=sda2'
> fw_setenv ide_scan_2 'ide=1:1 dev=sdb2'
> fw_setenv ide_rootfstype ext3
> fw_setenv ide_rootdelay 10
> fw_setenv ide_root_label rootfs
> fw_setenv ide_set_bootargs 'setenv bootargs
> console=$console root=LABEL=$ide_root_label
> rootdelay=$ide_rootdelay
> rootfstype=$ide_rootfstype $mtdparts
> $ide_custom_params'
> fw_setenv ide_boot 'ext2load ide $ide_device
> 0x800000 /boot/uImage; ext2load ide $ide_device
> 0x1100000 /boot/uInitrd; run ide_set_bootargs;
> bootm 0x800000 0x1100000'
> fw_setenv ide_bootcmd 'run ide_init; run
> ide_boot'
> fw_setenv bootcmd 'usb reset; usb start; run
> force_rescue_bootcmd; run ubifs_bootcmd; run
> usb_bootcmd; usb stop; run ide_bootcmd; run
> rescue_bootcmd; run pogo_bootcmd; reset'
> 
shv
Re: Replace Ubit v0.5 with Uboot and a good kernel for GoFlex Net
September 10, 2013 11:12AM
OpenWRT is just another OS. Therefore I would expect that booting from IDE can also be used with it. The command setenv usb_root LABEL=rootfs is used for USB booting to indicate which partition shall be used for booting. It is not really necessary for booting from IDE.
Re: Replace Ubit v0.5 with Uboot and a good kernel for GoFlex Net
September 10, 2013 12:14PM
shv Wrote:
-------------------------------------------------------
> OpenWRT is just another OS. Therefore I would
> expect that booting from IDE can also be used with
> it. The command setenv usb_root LABEL=rootfs is
> used for USB booting to indicate which partition
> shall be used for booting. It is not really
> necessary for booting from IDE.


Actually it does, in case you have both USB and HDD attached. In that case the disk you want to boot with should be labeled rootfs. Remember usb_root here is just an environment variable, it could be named anything. As long as it is placed at the right place in the bootargs.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 2 time(s). Last edit at 09/10/2013 12:17PM by bodhi.
Re: Replace Ubit v0.5 with Uboot and a good kernel for GoFlex Net
September 11, 2013 10:49AM
Thank you for your clarifications.

bodhi Wrote:
-------------------------------------------------------
> shv Wrote:
> --------------------------------------------------
> -----
> > OpenWRT is just another OS. Therefore I would
> > expect that booting from IDE can also be used
> with
> > it. The command setenv usb_root LABEL=rootfs is
> > used for USB booting to indicate which
> partition
> > shall be used for booting. It is not really
> > necessary for booting from IDE.
>
>
> Actually it does, in case you have both USB and
> HDD attached. In that case the disk you want to
> boot with should be labeled rootfs.
> Remember usb_root here is just an environment
> variable, it could be named anything. As long as
> it is placed at the right place in the bootargs.
[solved] Re: Replace Ubit v0.5 with Uboot and a good kernel for GoFlex Net
September 29, 2013 03:25AM
Thanks everyone who contributed to this post.
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: