Welcome! Log In Create A New Profile

Advanced

Quick and Dirty Debian -> Goflex home/net

Posted by KF_ND 
KF_ND
Quick and Dirty Debian -> Goflex home/net
March 16, 2011 10:55AM
get Ubit uboot v0.5 or above and be shure you have it installed to the nand.
if you have already an partitined drive with swap and root filesystem skip to step 2

Step 1:form the running Plugbox Linux in the Nand now format the drive with fdisk for example
if there are no Partitions available the first (sda1) your new root and sda2 your later used swap

Step 2:
in /#
mkdir /tmp/debian
mount /dev/sda1 /tmp/debian
mkdir /tmp/debootstrap

cd /tmp/debootstrap
wget -O debootstrap.deb http://cdn.debian.net/debian/pool/main/d/debootstrap/debootstrap_1.0.28_all.deb
ar xv debootstrap.deb
tar -xzvf data.tar.gz

mv ./usr/sbin/debootstrap /usr/sbin
mv ./usr/share/debootstrap /usr/share

/usr/sbin/debootstrap --verbose --arch=armel --variant=minbase --include=flash-kernel,module-init-tools,udev,netbase,ifupdown,iproute,openssh-server,dhcpcd,iputils-ping,wget,net-tools,ntpdate,uboot-mkimage,uboot-envtools,vim-tiny,mc squeeze /tmp/debian http://cdn.debian.net/debian

#now it's time to use your install

LANG=C chroot /mnt/debian /bin/bash
export TERM=xterm-color

#now download the kernel parts for a running System or install an working kernel
wget http://jeff.doozan.com/debian/goflex/v0.6/v2.6.37/boot.tar.gz
wget http://jeff.doozan.com/debian/goflex/v0.6/v2.6.37/modules.tar.gz
mkdir -p /boot
tar -C /boot -xvzf boot.tar.gz
tar -C / -xvzf modules.tar.gz
wget http://jeff.doozan.com/debian/goflex/v0.6/uInitrd -O /boot/uInitrd

#now setup your fstab, hostname and root pw ...
# your fstab should lock like this use mc oder vi to do this /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
/dev/root      /               ext2    noatime,errors=remount-ro 0 1
$SWAP_DEV      none            swap    sw                0       0
tmpfs          /tmp            tmpfs   defaults          0       0

#the same way
echo "armdebian" > /etc/hostname
HWCLOCKACCESS=no >> /etc/default/rcS
CONCURRENCY=shell >> /etc/default/rcS

#setup eth0 /etc/network/interfaces
auto lo eth0
iface lo inet loopback
iface eth0 inet dhcp

# edit you etc/apt/source.list if you like
#then set you now root pw
passwd

exit
reboot
#should boot you into your new debian
Re: Quick and Dirty Debian -> Goflex home/net
March 16, 2011 11:04AM
@chroot tmp not mnt

and in fstab set $SWAP_DEV to the /dev/sdax yyour swap will be
Re: Quick and Dirty Debian -> Goflex home/net
March 16, 2011 11:25AM
Alternatively, you can skip all the ubit stuff and just install Debian like you would on a Dockstar.

The only thing holding back Debian from running on the Goflex is that the default Debian kernel does not have support for the Goflex arcNumber. If you install uboot/debian just like you would on a Dockstar, you can then use the Sheevaplug + SATA arcNumber (which Debian does support) or install the kernel you referenced above if you want to use the Goflex arcNumber.

-- Jeff
Re: Quick and Dirty Debian -> Goflex home/net
March 16, 2011 12:55PM
i don't think that this will work

1. uboot from your script dosn't support boot from an SATA drive from allone
2. the script always flashes an new uboot to mtd0
3. maby the standard OS from Net/home in the flash has no chroot available

or did i miss something?
Re: Quick and Dirty Debian -> Goflex home/net
March 16, 2011 02:02PM
The uBoot from my script is capable of booting from an SATA drive, but it may need an adjustment to the bootcmd string.

To be honest, the lack of Goflex support in Debian's kernel has kept me from doing much work on this, but I think it would be easier to adapt the existing scripts for installing Debian instead of installing UBIT.

I'm happy that you've put the effort into working on this; I hope we can come up with a process that is just a quick but perhaps a little less dirty.

-- Jeff
Re: Quick and Dirty Debian -> Goflex home/net
March 16, 2011 03:57PM
> The uBoot from my script is capable of booting
> from an SATA drive, but it may need an adjustment
> to the bootcmd string.

that's why i used Ubit because on first try the script didn't worked fore me and
after that. my box was completly dead and i had taken ubit for resurect from JTAG because it was much more simple.
to take an uboot that will be sata ready then to find out what i have to change in the env.

why it didn't worked fore me is not easy to say maybe there was before something wrong with the firmware on my box.

> To be honest, the lack of Goflex support in
> Debian's kernel has kept me from doing much work
> on this, but I think it would be easier to adapt
> the existing scripts for installing Debian instead
> of installing UBIT.

yes the standard kernel are not compiled for goflex net support
even the kernel from SID

> I'm happy that you've put the effort into working
> on this; I hope we can come up with a process that
> is just a quick but perhaps a little less dirty.
>
> -- Jeff

at all it's based on your script but i think not everything what is done there is realy needed.
and i don't know the deeper sense of everything you are doing there.
sreeram
Re: Quick and Dirty Debian -> Goflex home/net
July 27, 2012 11:18AM
plz any one can help me to install arch linux or Debian in my goflex home .i am new to linux
See:
http://archlinuxarm.org/platforms/armv5/seagate-goflex-home

Or search this forum for debian install.

It is a minimum two part process.

TJ
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: