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 peaslaker » Tue Dec 14, 2010 2:51 pm

If you're monitoring the boot over netconsole, you need to run a different address for u-boot and for the kernel. That is why the boot log stops at "Starting kernel..."

U-boot netconsole session transmits to a machine on 10.10.10.5

Kernel netconsole session transmits to a machine on 10.10.10.4

You can have these addresses aliased on the same machine.
peaslaker
 
Posts: 101
Joined: Tue Sep 07, 2010 10:40 pm

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

Postby tomcheng76 » Tue Dec 14, 2010 4:52 pm

$this->bbcode_second_pass_quote('peaslaker', 'I')f you're monitoring the boot over netconsole, you need to run a different address for u-boot and for the kernel. That is why the boot log stops at "Starting kernel..."

U-boot netconsole session transmits to a machine on 10.10.10.5

Kernel netconsole session transmits to a machine on 10.10.10.4

You can have these addresses aliased on the same machine.


I get the kernel message now, this time i use the Arch Linux ARM install rootfs stored in sda3. ssh is not working though.
http://debian.pastebin.com/EQsNznmW

This is the kernel message if no storage is attached
http://debian.pastebin.com/LZ3USgBR

This is the uboot env, i just learnt i can tried different command in net console :)
http://debian.pastebin.com/tDFktB5q
tomcheng76
 
Posts: 130
Joined: Mon Dec 13, 2010 11:24 am

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

Postby playdude » Wed Dec 15, 2010 4:31 am

Might be a silly question, but have you extracted the Arch Linux ARM install file system to sda3?
playdude
 
Posts: 4
Joined: Sun Oct 03, 2010 1:09 am

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

Postby tomcheng76 » Wed Dec 15, 2010 5:21 am

$this->bbcode_second_pass_quote('playdude', 'M')ight be a silly question, but have you extracted the Arch Linux ARM install file system to sda3?

Do you mean the tarball? yes, i extracted the Arch Linux ARM install root tarball to sda3. Here is the layout in my usb drive (MBR partition table)
sda1 ext2 512MB bootable
sda2 swap 1GB
sda3 ext3 6.9GB
tomcheng76
 
Posts: 130
Joined: Mon Dec 13, 2010 11:24 am

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

Postby jedie » Wed Dec 15, 2010 8:11 am

$this->bbcode_second_pass_quote('peaslaker', 'U')-boot netconsole session transmits to a machine on 10.10.10.5

Kernel netconsole session transmits to a machine on 10.10.10.4

You can have these addresses aliased on the same machine.


Hey, that's new to me ;)

I add this to http://Arch Linux ARM.com/index.php5?title=Net_console ;)

One question: How to setup two netconsole at one time? (e.g. in two open terminals)

Is this right:
$this->bbcode_second_pass_code('', 'sudo ifconfig eth0:0 10.10.10.5
sudo ifconfig eth0:1 10.10.10.4')

And how to use socat? Or must i only start socat one time?
jedie
 
Posts: 2
Joined: Thu Oct 14, 2010 8:44 pm
Top

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

Postby tomcheng76 » Wed Dec 15, 2010 2:22 pm

if I first alias 10.10.10.5 and then alias 10.10.10.4, I can only get the kernel message, even I run two socat instance. I guess it is because they are both listening 6666? but that is not my concern :)

this is my fdisk
$this->bbcode_second_pass_code('', 'Disk /dev/sdd: 8220 MB, 8220835840 bytes
253 heads, 62 sectors/track, 1023 cylinders
Units = cylinders of 15686 * 512 = 8031232 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0009281f

Device Boot Start End Blocks Id System
/dev/sdd1 * 1 64 501921 83 Linux
/dev/sdd2 65 189 980375 82 Linux swap / Solaris
/dev/sdd3 190 1023 6541062 83 Linux
Partition 3 has different physical/logical endings:
phys=(1023, 252, 62) logical=(1022, 252, 62)')

Let me tell you my exact procedure so that debugging is easier.

1. extracted http://jeff.doozan.com/debian/goflex/2.6.36/boot.tar.gz to sdd1 using tar xvpf.
2. downloaded http://jeff.doozan.com/debian/goflex/v0.3/uInitrd and put to sdd1
3. extracted http://Arch Linux ARM.com/os/1.1/Plugbox-Linu ... tfs.tar.gz to sdd3 using tar xvpf.
4. extracted http://jeff.doozan.com/debian/goflex/2. ... les.tar.gz to sdd3 using tar xvpf.

thats all...may be i am missing some step :?:
I do this in my desktop, so it is sdd, but it should be sda on goflex net since there is no there external storage.

btw, i tried another two 16GB usb drive, it is different story, they don't boot, showing ** Bad partition 1 ** in short :o
This is the boot log, so I guess I am out of luck :oops:
http://debian.pastebin.com/LCShFsbD
tomcheng76
 
Posts: 130
Joined: Mon Dec 13, 2010 11:24 am

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

Postby tomcheng76 » Thu Dec 16, 2010 2:57 pm

I followed this guide with little changes and it works :lol:
http://peterwong.net/blog/?p=115

same fdisk as the previous post and then

$this->bbcode_second_pass_code('', ' sudo apt-get install debootstrap
sudo mount /dev/sdd3 /mnt
sudo /usr/sbin/debootstrap --foreign --arch=armel \
--include=ntp,usbmount,openssh-server,uboot-mkimage,linux-image-2.6.32-5-kirkwood \
squeeze /mnt http://ftp.us.debian.org/debian
sudo umount /mnt')

startup your goflex net, wait it boot to the Arch Linux ARM install linux, and then insert the USB drive. Then,

$this->bbcode_second_pass_code('', ' //unmount your usb drive first because it is auto-mounted.
mkdir -p /mnt/goflex
mount /dev/sda3 /mnt/goflex
mount /dev/sda1 /mnt/goflex/boot
mount -t proc none /mnt/goflex/proc
mount -o bind /dev /mnt/goflex/dev
/usr/sbin/chroot /mnt/goflex /bin/bash
PATH=/usr/sbin:/sbin:$PATH
/debootstrap/debootstrap --second-stage')

$this->bbcode_second_pass_code('', ' mkimage -A arm -O linux -T kernel -C none -a 0x8000 -e 0x8000 \
-n "vmlinuz-2.6.32-5-kirkwood" -d /vmlinuz /boot/uImage
mkimage -A arm -O linux -T ramdisk -C gzip -a 0 -e 0 \
-n "initrd.img-2.6.32-5-kirkwood" -d /initrd.img /boot/uInitrd')

$this->bbcode_second_pass_code('', ' echo "goflex" > /etc/hostname
echo "LANG=C" > /etc/default/locale
echo "/dev/sda1 /boot ext2 defaults 0 0" >> /etc/fstab
echo "/dev/sda2 none swap sw 0 0" >> /etc/fstab
echo "/dev/sda3 / ext3 defaults 0 1" >> /etc/fstab
echo "none /proc proc defaults 0 0" >> /etc/fstab
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 http://ftp.us.debian.org/debian squeeze main" >> /etc/apt/sources.list
echo "deb-src http://ftp.us.debian.org/debian squeeze main" >> /etc/apt/sources.list
echo "Asia/Hong_Kong" > /etc/timezone
cp /usr/share/zoneinfo/Asia/Hong_Kong /etc/localtime
passwd root')

$this->bbcode_second_pass_code('', ' exit
umount /mnt/goflex/boot
umount /mnt/goflex
poweroff')

Now startup again :P

this is my kernel message, Iooks good :?:
http://debian.pastebin.com/fp0XQLGd

Seems like it still using 2.6.36-kirkwood-aufs-00003-gbf84e2c on NAND ?
$this->bbcode_second_pass_code('', 'root@goflex:~# uname -a
Linux goflex 2.6.36-kirkwood-aufs-00003-gbf84e2c #1 PREEMPT Sun Dec 5 17:35:31 GMT 2010 armv5tel GNU/Linux')
Last edited by tomcheng76 on Fri Dec 17, 2010 2:26 pm, edited 1 time in total.
tomcheng76
 
Posts: 130
Joined: Mon Dec 13, 2010 11:24 am

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

Postby peaslaker » Fri Dec 17, 2010 11:32 am

$this->bbcode_second_pass_quote('tomcheng76', 'i')f I first alias 10.10.10.5 and then alias 10.10.10.4, I can only get the kernel message, even I run two socat instance. I guess it is because they are both listening 6666? but that is not my concern :)


On most implementations of netcat you can specify which IP address to listen on. There are variations on the implementation so check the man page. Just listening on 6666 does get stuck at the U-Boot/Kernel transition.

For instance on OSX this listens specifically on 10.10.10.5:6666
[code]nc -luk 10.10.10.5 6666[code]

On Debian:
[code]nc -lus 10.10.10.5 -p 6666[code]

Good news that you've got it running. When I get the time I'll look at what it has taken and I'll see if I can help support it.
peaslaker
 
Posts: 101
Joined: Tue Sep 07, 2010 10:40 pm
Top

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

Postby tomcheng76 » Sat Dec 18, 2010 9:28 pm

Update: my usb flash get corruption after one day running. too bad
So i tried install it on the goflex 1TB and it worls too, much faster
in short, just install uboot and Arch Linux ARM install linux to nand and then debian, then you have a perfect server :)
tomcheng76
 
Posts: 130
Joined: Mon Dec 13, 2010 11:24 am

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

Postby tomcheng76 » Fri Dec 31, 2010 5:26 pm

Hi, I have new question now.
I discovered the Arch Linux ARM install linux doesn't have any kernel module shipped. so I tried to build a kernel using this guide to build the kernel.
I have mkinitramfs and make the uImage/uIninitrd again...however, it is still loading the Arch Linux ARM install kernel. The boot log is saying
$this->bbcode_second_pass_code('', 'Loading file "/boot/uImage" from ide device 0:1 (hda1)
** File not found /boot/uImage')
,uInitrd seems works. boot log is here.

Is this wrong? hope some Linux expert can answer so that i can write a complete working guide :)
$this->bbcode_second_pass_code('', '
cd /boot
mkimage -A arm -O linux -T kernel -C none -a 0x8000 -e 0x8000 -n "vmlinuz-2.6.35.4" -d /vmlinuz /boot/uImage
mkimage -A arm -O linux -T ramdisk -C gzip -a 0 -e 0 -n "initrd.img-2.6.35.4" -d initrd.img-2.6.35.4 /boot/uInitrd
')

------------------------------------------Edit-----------------------------------------------
Fixed: create boot/uImage on the boot partition....boot directory is needed...
tomcheng76
 
Posts: 130
Joined: Mon Dec 13, 2010 11:24 am

PreviousNext

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 11 guests