Debian on GoFlex net - any full noob how to?

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

Re: Debian on GoFlex net - any full noob how to?

Postby squeezeplug » Mon Feb 28, 2011 9:53 am

$this->bbcode_second_pass_quote('peaslaker', '.').. The possibility is therefore that something changed between UBIT v0.5 and v0.6. Running in a mixed environment isn't going to help. If you really want to get into the brave new world, you need the UBIT v0.6 U-Boot to match the ramdisk. You would also be safest to ignore the kernel and modules in NAND and put the latest 2.6.37 UBIT kernel in the root filesystem.


Hi peaslaker,
please don't get me wrong! I think you've done a great job! I'm sure your method works and by the way I like this method very much. I would be very happy if I would get it to work. As you might have recognized I'm the initiator of the SqueezePlug-Project [url]squeezeplug.de[/url]. This project massivly depends on getting Debian working on GoFlex Net, because you can't get Dockstars any more. So I'm still searching for a working solution for this device. I'm sure there is only on little step to success with your method.

My status is:
U-BIT 0.5 installed on NAND
PlugBoxLinux installed on NAND
I've tried your method serveral times with different USB-Stick
I don't get an IP by DHCP, Booting from NAND into PlugBoxLinux works fine.

So if I got you right I should install U-BIT version 0.6 in the NAND first, right? I tried to do this following this: http://www.Arch Linux ARM.com/index.php5/Official_install_on_Seagate_GoFlex_Net. That don't work, I think because I've PlugBoxLinux and U-BIT 0.5 already on the NAND. So what should I do now?

The whole SqueezePlug-Community and me would be very happy if we could find a working solution! That only works with your help.

Thanks a lot,
Greetings Thomas
squeezeplug
 
Posts: 27
Joined: Thu Feb 17, 2011 6:42 am

Re: Debian on GoFlex net - any full noob how to?

Postby peaslaker » Mon Feb 28, 2011 1:34 pm

The NAND install is a distraction. It can quite happily sit on version v0.5 while a USB Debian uses UBIT v0.6. The thing that must be updated is the UBIT U-Boot.

I assume a starting point here of a Arch Linux ARM install Linux booted from NAND without a hard drive so all changes are temporary.

Arch Linux ARM install Linux (rather annoyingly) doesn't include 'cpio'. This updates the U-Boot:
$this->bbcode_second_pass_code('', '
pacman -Sy cpio
cd /tmp
wget http://jeff.doozan.com/debian/goflex/v0.6/uInitrd -O uInitrd
wget http://jeff.doozan.com/debian/goflex/v0.6/ubit_start -O ubit_start
chmod +x ubit_start
./ubit_start

# the prompt should read 'ubit0-6:~#'
uboot_uptodate
# As long as this installed OK, you are done. The U-Boot is up to date and the NAND
# installed Arch Linux ARM install should still work fine.

chain_install goflexnet # (optional) write copy of pogoplug U-boot to spare space on /dev/mtd1

exit # return to Arch Linux ARM install

')

Next up we can do the Debian thing purely from within Arch Linux ARM install. Now plug in the hard drive/USB stick you want to install Debian to (which should turn up as /dev/sda1 and get automatically mounted at /media/...

$this->bbcode_second_pass_code('', '
cd /tmp
wget http://ftp.debian.org/debian/pool/main/d/debootstrap/debootstrap_1.0.28_all.deb
ar -xf debootstrap_1.0.28_all.deb
tar -C / -xvzf data.tar.gz

cd /tmp
umount /dev/sda1
mke2fs -j /dev/sda1 # warning. this deletes the current contents
tune2fs -L "rootfs" /dev/sda1
mkdir -p installdisk
mount /dev/sda1 installdisk

time debootstrap --arch=armel --include=ntp,openssh-server squeeze \
/tmp/installdisk http://ftp.us.debian.org/debian

time chroot /tmp/installdisk /bin/bash
echo "armdebian" > /etc/hostname
echo "auto lo" >> /etc/network/interfaces
echo "iface lo inet loopback" >> /etc/network/interfaces
echo "auto eth0" >> /etc/network/interfaces
echo "iface eth0 inet dhcp" >> /etc/network/interfaces
echo "deb-src http://ftp.us.debian.org/debian squeeze main" >> /etc/apt/sources.list
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
passwd root # this requires your input of a new password.

')
$this->bbcode_second_pass_code('', '
exit # exit the chroot
reboot

')

On a USB hard disk, I get a full working setup in 15 mins.
peaslaker
 
Posts: 101
Joined: Tue Sep 07, 2010 10:40 pm

Re: Debian on GoFlex net - any full noob how to?

Postby squeezeplug » Tue Mar 01, 2011 9:02 am

$this->bbcode_second_pass_quote('peaslaker', '.')..On a USB hard disk, I get a full working setup in 15 mins.

Hi peaslaker,
thanks again for your assistence. I hope I can try this tonight. I'll inform you about the result!

Greetings,
Thomas
squeezeplug
 
Posts: 27
Joined: Thu Feb 17, 2011 6:42 am

Re: Debian on GoFlex net - any full noob how to?

Postby squeezeplug » Tue Mar 01, 2011 6:53 pm

Hi peaslaker,
I did the first commands and it only works till to the command: ./ubit_start. ???

$this->bbcode_second_pass_quote('peaslaker', 'T')he NAND install is a distraction. It can quite happily sit on version v0.5 while a USB Debian uses UBIT v0.6. The thing that must be updated is the UBIT U-Boot.

I assume a starting point here of a Arch Linux ARM install Linux booted from NAND without a hard drive so all changes are temporary.

Arch Linux ARM install Linux (rather annoyingly) doesn't include 'cpio'. This updates the U-Boot:
$this->bbcode_second_pass_code('', '
pacman -Sy cpio
cd /tmp
wget http://jeff.doozan.com/debian/goflex/v0.6/uInitrd -O uInitrd
wget http://jeff.doozan.com/debian/goflex/v0.6/ubit_start -O ubit_start
chmod +x ubit_start
./ubit_start')


The U-BIT start does not work, see this output:

$this->bbcode_second_pass_code('', '[root@Arch Linux ARM install tmp]# ./ubit_start
No installed UBIT ramdisk could be found.
'ubit_start' needs to be run from the directory containing the UBIT ramdisk
or on a system with a UBIT ramdisk installed either at '/boot/uInitrd' or in
echo a UBIFS partition named 'fast', 'silent' or 'ramdisk'')


Greetings, Thomas
squeezeplug
 
Posts: 27
Joined: Thu Feb 17, 2011 6:42 am
Top

Re: Debian on GoFlex net - any full noob how to?

Postby peaslaker » Wed Mar 02, 2011 12:46 am

$this->bbcode_second_pass_quote('squeezeplug', 'H')i peaslaker,
I did the first commands and it only works till to the command: ./ubit_start. ???

$this->bbcode_second_pass_code('', '
pacman -Sy cpio
cd /tmp
wget http://jeff.doozan.com/debian/goflex/v0.6/uInitrd -O uInitrd
wget http://jeff.doozan.com/debian/goflex/v0.6/ubit_start -O ubit_start
chmod +x ubit_start
./ubit_start')

The U-BIT start does not work, see this output:

$this->bbcode_second_pass_code('', '[root@Arch Linux ARM install tmp]# ./ubit_start
No installed UBIT ramdisk could be found.
'ubit_start' needs to be run from the directory containing the UBIT ramdisk
or on a system with a UBIT ramdisk installed either at '/boot/uInitrd' or in
echo a UBIFS partition named 'fast', 'silent' or 'ramdisk'')


Having just run 'wget' to obtain the v0.6 UBIT ramdisk, have you or have you not got a file named '/tmp/uInitrd'? Make sure it didn't rename it to 'uInitrd.1' or anything like that. Are you running the ./ubit_start command from the same directory as the location of the ramdisk file?

The only unusual dependency I know about is the 'cpio' one. Have you stripped out other packages from the system and left it too minimal to boot? If all else fails, set up a UBIT install disk and reboot.
peaslaker
 
Posts: 101
Joined: Tue Sep 07, 2010 10:40 pm
Top

Re: Debian on GoFlex net - any full noob how to?

Postby squeezeplug » Wed Mar 02, 2011 7:30 am

Hi peaslaker,
I think we are playing Ping Pong! Do you think it would be possible for you to take a look at my GoFlex?
I could give you SSH access to the device or to a Linux machine you could hop to the device to see what I'm doing wrong. What do you think?

Greetings,
Thomas
squeezeplug
 
Posts: 27
Joined: Thu Feb 17, 2011 6:42 am

Re: Debian on GoFlex net - any full noob how to?

Postby aleksarias » Fri Mar 04, 2011 7:17 pm

Hello,

I am completely new at this. I have minimal terminal command knowledge. I attempted to install the system following these instructions:

http://www.Arch Linux ARM.com/index.php5/Offi ... GoFlex_Net

Everything went fine and until I got to "./ubit_start".
At that point I read a message that said something about the environment... not sure exactly. I continued anyway and formated my usb flash drive. Then when time came to download the packages, I lost my network connection. I tried to ping http://www.google.com and no response. So like a smart-### I reset the goflex net.

Now, the green light on the front of the device is constantly flashing green unless I reboot with the flash drive installed in which case the light just turns off after a while.... Maybe the system is trying to access a bad startup file?

Is there an easy fix for this? I tried getting to the consol but I didn't see anything. I'm not 100% sure I'm doing this right. Thanks everyone! Your help is greatly appreciated.

EDIT:

I was able to get the consol to work. Here what it read:

U-Boot 2010.09 (Feb 16 2011 - 18:42:02)
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... 2 USB Device(s) found
scanning bus for storage devices... 1 Storage Device(s) found
Hit any key to stop autoboot: 0
UBIFS error (pid 0): ubifs_get_sb: cannot open "ubi:fast", error -19
Error reading superblock on volume 'ubi:fast'!
UBIFS not mounted, use ubifs mount to mount volume first!
Loading file "/boot/uImage" from usb device 0:1 (usbda1)
2357352 bytes read
Loading file "/uInitrd" from usb device 0:1 (usbda1)
** File not found /uInitrd
Loading file "/boot/uInitrd" from usb device 0:1 (usbda1)
** File not found /boot/uInitrd
## Booting kernel from Legacy Image at 00680000 ...
Image Name: Linux-2.6.35.7-kirkwood-aufs-dir
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2357288 Bytes = 2.2 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK

Starting kernel ...
--------
UPDATE:

I was able to get into UBIT v0.6 again... using the recovery USB... I'm not sure what I should do next? Maybe downgrade? I've been reading people are having problems with v0.6
I don't know which guide to follow to get things working...

FINALLY:
Got everything working. Just looked around the forum and figured it out. Now to get this hosting files!
aleksarias
 
Posts: 1
Joined: Fri Mar 04, 2011 6:55 pm

Re: Debian on GoFlex net - any full noob how to?

Postby squeezeplug » Sat Mar 05, 2011 8:22 am

Hi all,
I just like to inform you that Peters documentation for Debian on GoFlex Net works!!! My problem was that I ran a corrupted PlugBoxLinux with U-BIT 0.4. Now running U-BIT 0.6 and everything works fine. The only issue I have is that mounting Samba-Shares fails because of missing support for CIFS in the kernel.

I like to thank Peter a lot for his enormous help to get me up and running.

One more hint to Peter: I'm not sure that everyone will find the right posts in this thread to get GoFlex Net to fly. Maybe it's a good idea to put it all together so that everyone can easily follow.

Greetings,
Thomas

update:
Sound-Support is not working as well maybe it's also missing in the kernel?
squeezeplug
 
Posts: 27
Joined: Thu Feb 17, 2011 6:42 am

Re: Debian on GoFlex net - any full noob how to?

Postby peaslaker » Sat Mar 05, 2011 12:25 pm

All the sound modules are in place. Cifs also.

Just check your kernel version compared to the contents of /lib/modules. It might be that there is a mismatch.

$this->bbcode_second_pass_code('', '
find /lib/modules/`uname -r`
')

If you don't get a list of modules then there is a mismatch. If the modules are missing, the kernel and modules are both still available on Jeff's ftp site and that might mean there is a missing step in the documentation. If there is a specific sound module that is missing that is something I can add relatively easily, but I've had easy success with the current kernel for USB sound over alsa.

I know there is a lot of catching up to do on the documentation. UBIT v0.6 is still "pre-release" but it is a bit too much "out there" for me to pretend that it isn't released.

The mechanism for running 'ubit_start' is a source of multiple problems because of dependencies. It works in Pogoplug and Axentra HipServ, so it works for installing on OE Dockstars, Pogoplugs and GoFlex Net/Home. It needs 'cpio' on Arch Linux ARM install Linux.

I have investigated running the Debian installer within UBIT but this won't work because 'debootstrap' requires glibc and UBIT is based on uclibc.
peaslaker
 
Posts: 101
Joined: Tue Sep 07, 2010 10:40 pm

Re: Debian on GoFlex net - any full noob how to?

Postby squeezeplug » Sat Mar 05, 2011 1:14 pm

$this->bbcode_second_pass_quote('peaslaker', 'A')ll the sound modules are in place. Cifs also.

Just check your kernel version compared to the contents of /lib/modules. It might be that there is a mismatch.

$this->bbcode_second_pass_code('', '
find /lib/modules/`uname -r`
')

If you don't get a list of modules then there is a mismatch.


Hi Peter,
yes, there obviously is a mismatch:

root@goflex:~# find /lib/modules/`uname -r`
find: `/lib/modules/2.6.37-ubit-01711-g50c16ad': No such file or directory

How to fix this?

Thx a lot again for your great support!!!
squeezeplug
 
Posts: 27
Joined: Thu Feb 17, 2011 6:42 am
Top

PreviousNext

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 13 guests