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 » Tue Feb 22, 2011 9:52 pm

$this->bbcode_second_pass_quote('peaslaker', 'I')t took 43 minutes from start to finish. Working.

Hi peaslaker, that means that you did exactly the commands you posted and it works??? So I'm wondering what I do wrong. If you don't mind I'll try again tomorrow and tell you the result. As far as I understood the kernel and the ramdisk are both loaded from NAND because you haven't these files on USB, right? So that's per design and not a bug, right?

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 » Tue Feb 22, 2011 10:19 pm

$this->bbcode_second_pass_quote('squeezeplug', 'H')i peaslaker, that means that you did exactly the commands you posted and it works??? So I'm wondering what I do wrong. If you don't mind I'll try again tomorrow and tell you the result.


That's right. I started by reformatting my USB stick and I followed the commands. Now it is possible that my dev system has some ramdisk changes compared to the published v0.5. At the moment v0.6 is pretty well tested but only partially documented. It has quite a few new features so the documentation needs to be right before I release it.

$this->bbcode_second_pass_quote('', 'A')s far as I understood the kernel and the ramdisk are both loaded from NAND because you haven't these files on USB, right? So that's per design and not a bug, right?


They load from NAND. This is using the "UBIT kernel in NAND" style of install, which was a new feature in version 0.5 of UBIT. The v0.5 ramdisk behaves differently depending on whether it is booted from NAND or from external drive. If external drive, then it runs in "installer" mode only. To help with mounting a root filesystem the v0.5 ramdisk needs to be run from NAND. This changes in (the yet to be released) v0.6.
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 Feb 23, 2011 8:53 pm

Hi peaslaker,
just tried it once more and everything works fine till the last steps:

$this->bbcode_second_pass_code('', 'I have no name!@Arch Linux ARM install:/# cp -pr /mnt/lib/modules/2.6.37-ubit-01711-g50c16ad/ /lib/modules/
I have no name!@Arch Linux ARM install:/# umount /mnt
warning: can't open /etc/mtab: No such file or directory
I have no name!@Arch Linux ARM install:/# tune2fs -L "rootfs" /dev/sda1
tune2fs 1.41.12 (17-May-2010)
ext2fs_check_if_mount: Can't check if filesystem is mounted due to missing mtab file while determining whether /dev/sda1 is mounted.
')

I'll try to boot now and inform you soon.

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 » Wed Feb 23, 2011 9:02 pm

And now the output from u-boot:

$this->bbcode_second_pass_code('', 'U-Boot 2010.09 (Feb 06 2011 - 19:25:33)
UBIT v0.5 for Seagate GoFlex Net by 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)
** File not found /boot/uImage
Loading file "/uInitrd" from usb device 0:1 (usbda1)
** File not found /uInitrd
reading /boot/uImage

** Unable to read "/boot/uImage" from usb 0:1 **
reading /uInitrd

** Unable to read "/uInitrd" from usb 0:1 **

Reset IDE: Bus 0: not available Bus 1: not available
** Bad partition 1 **
** Bad partition 1 **
UBIFS: mounted UBI device 0, volume 5, name "ramdisk"
UBIFS: mounted read-only
UBIFS: file system size: 2967552 bytes (2898 KiB, 2 MiB, 23 LEBs)
UBIFS: journal size: 1161217 bytes (1134 KiB, 1 MiB, 8 LEBs)
UBIFS: media format: w4/r0 (latest is w4/r0)
UBIFS: default compressor: LZO
UBIFS: reserved for root: 0 bytes (0 KiB)
Loading file '/uInitrd' to addr 0x01100000 with size 2630377 (0x002822e9)...
Done
UBIFS: mounted UBI device 0, volume 4, name "boot"
UBIFS: mounted read-only
UBIFS: file system size: 3354624 bytes (3276 KiB, 3 MiB, 26 LEBs)
UBIFS: journal size: 1161217 bytes (1134 KiB, 1 MiB, 8 LEBs)
UBIFS: media format: w4/r0 (latest is w4/r0)
UBIFS: default compressor: LZO
UBIFS: reserved for root: 0 bytes (0 KiB)
Loading file '/boot/uImage' to addr 0x00680000 with size 2940876 (0x002cdfcc)...
Done
## Booting kernel from Legacy Image at 00680000 ...
Image Name: Linux-2.6.37-ubit-01711-g50c16ad
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2940812 Bytes = 2.8 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
Image Name: UBIT-2010.11-00080-g45d63a5
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 2630313 Bytes = 2.5 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK

Starting kernel ...')

And from the kernel:

$this->bbcode_second_pass_code('', 'Linux version 2.6.37-ubit-01711-g50c16ad (root@vmdebian-cli) (gcc version 4.3.5 (Buildroot 2010.11-00070-g82ec21e) ) #1 Tue Feb 1 14:11:22 GMT 2011
CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
CPU: VIVT data cache, VIVT instruction cache
Machine: Seagate GoFlex Net
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
Kernel command line: console=ttyS0,115200 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(pogoplug),-(root) ubi.mtd=root netconsole=@10.10.10.6/eth0,@10.10.10.4/
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 128MB = 128MB total
Memory: 120672k/120672k available, 10400k reserved, 0K highmem
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
DMA : 0xffc00000 - 0xffe00000 ( 2 MB)
vmalloc : 0xc8800000 - 0xfe800000 ( 864 MB)
lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
.init : 0xc0008000 - 0xc0031000 ( 164 kB)
.text : 0xc0031000 - 0xc057d9b4 (5427 kB)
.data : 0xc057e000 - 0xc05b66a0 ( 226 kB)
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:114
Console: colour dummy device 80x30
Calibrating delay loop... 1192.75 BogoMIPS (lpj=5963776)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
Kirkwood: MV88F6281-A1, TCLK=200000000.
Feroceon L2: Cache support initialised.
bio: create slab <bio-0> at 0
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
cfg80211: Calling CRDA to update world regulatory domain
Switching to clocksource orion_clocksource
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 2568K
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
aufs 2.1-37
msgmni has been set to 240
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
console [ttyS0] enabled
brd: module loaded
loop: module loaded
sata_mv sata_mv.0: version 1.28
sata_mv sata_mv.0: slots 32 ports 2
scsi0 : sata_mv
scsi1 : sata_mv
ata1: SATA max UDMA/133 irq 21
ata2: SATA max UDMA/133 irq 21
ONFI flash detected
ONFI param page 0 valid
NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron NAND 256MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 513 at 0x000004020000
4 cmdlinepart partitions found on MTD device orion_nand
Creating 4 MTD partitions on "orion_nand":
0x000000000000-0x000000100000 : "u-boot"
0x000000100000-0x000000500000 : "uImage"
0x000000500000-0x000002500000 : "pogoplug"
0x000002500000-0x000010000000 : "root"
UBI: attaching mtd3 to ubi0
UBI: physical eraseblock size: 131072 bytes (128 KiB)
UBI: logical eraseblock size: 129024 bytes
UBI: smallest flash I/O unit: 2048
UBI: sub-page size: 512
UBI: VID header offset: 512 (aligned 512)
UBI: data offset: 2048
ata1: SATA link down (SStatus 0 SControl F300)
UBI: max. sequence number: 1392
UBI: attached mtd3 to ubi0
UBI: MTD device name: "root"
UBI: MTD device size: 219 MiB
UBI: number of good PEBs: 1751
UBI: number of bad PEBs: 1
UBI: number of corrupted PEBs: 0
UBI: max. allowed volumes: 128
UBI: wear-leveling threshold: 128
UBI: number of internal volumes: 1
UBI: number of user volumes: 6
UBI: available PEBs: 337
UBI: total number of reserved PEBs: 1414
UBI: number of PEBs reserved for bad PEB handling: 17
UBI: max/mean erase counter: 39/3
UBI: image sequence number: 167184378
UBI: background thread "ubi_bgt0d" started, PID 511
MV-643xx 10/100/1000 ethernet driver version 1.4
mv643xx_eth smi: probed
net eth0: port 0 with MAC address 00:10:75:26:3d:4e
netconsole: local port 6665
netconsole: local IP 10.10.10.6
netconsole: interface 'eth0'
netconsole: remote port 6666
netconsole: remote IP 10.10.10.4
netconsole: remote ethernet address ff:ff:ff:ff:ff:ff
netconsole: device eth0 not up yet, forcing it
ata2: SATA link down (SStatus 0 SControl F300)
eth0: link up, 1000 Mb/s, full duplex, flow control disabled
console [netcon0] enabled
netconsole: network logging started
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
orion-ehci orion-ehci.0: Marvell Orion EHCI
orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver ums-freecom
usbcore: registered new interface driver ums-jumpshot
usbcore: registered new interface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
mice: PS/2 mouse device common for all mice
usb 1-1: new high speed USB device using orion-ehci and address 2
scsi2 : usb-storage 1-1:1.0
rtc-mv rtc-mv: internal RTC not ticking
i2c /dev entries driver
cpuidle: using governor ladder
cpuidle: using governor menu
mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
mv_xor mv_xor.2: Marvell XOR: ( xor cpy )
mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
oprofile: hardware counters not available
oprofile: using timer interrupt.
TCP cubic registered
NET: Registered protocol family 17
lib80211: common routines for IEEE802.11 drivers
Registering the dns_resolver key type
registered taskstats version 1
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
Freeing init memory: 164K
scsi 2:0:0:0: Direct-Access KINGSTON DataTraveler G3 1.00 PQ: 0 ANSI: 2
sd 2:0:0:0: [sda] 7815168 512-byte logical blocks: (4.00 GB/3.72 GiB)
sd 2:0:0:0: Attached scsi generic sg0 type 0
sd 2:0:0:0: [sda] Write Protect is off
sd 2:0:0:0: [sda] Assuming drive cache: write through
sd 2:0:0:0: [sda] Assuming drive cache: write through
sda: sda1 sda2
sd 2:0:0:0: [sda] Assuming drive cache: write through
sd 2:0:0:0: [sda] Attached SCSI removable disk
UBIFS: mounted UBI device 0, volume 2, name "modules"
UBIFS: mounted read-only
UBIFS: file system size: 16257024 bytes (15876 KiB, 15 MiB, 126 LEBs)
UBIFS: journal size: 2580480 bytes (2520 KiB, 2 MiB, 20 LEBs)
UBIFS: media format: w4/r0 (latest is w4/r0)
UBIFS: default compressor: lzo
UBIFS: reserved for root: 0 bytes (0 KiB)
UBIFS: mounted UBI device 0, volume 0, name "rootfs"
UBIFS: mounted read-only
UBIFS: file system size: 118831104 bytes (116046 KiB, 113 MiB, 921 LEBs)
UBIFS: journal size: 9033728 bytes (8822 KiB, 8 MiB, 71 LEBs)
UBIFS: media format: w4/r0 (latest is w4/r0)
UBIFS: default compressor: lzo
UBIFS: reserved for root: 0 bytes (0 KiB)
UBIFS: mounted UBI device 0, volume 1, name "pkg"
UBIFS: mounted read-only
UBIFS: file system size: 5160960 bytes (5040 KiB, 4 MiB, 40 LEBs)
UBIFS: journal size: 1161217 bytes (1134 KiB, 1 MiB, 9 LEBs)
UBIFS: media format: w4/r0 (latest is w4/r0)
UBIFS: default compressor: lzo
UBIFS: reserved for root: 0 bytes (0 KiB)
UBIFS: mounted UBI device 0, volume 3, name "doc"
UBIFS: mounted read-only
UBIFS: file system size: 25288704 bytes (24696 KiB, 24 MiB, 196 LEBs)
UBIFS: journal size: 3612672 bytes (3528 KiB, 3 MiB, 28 LEBs)
UBIFS: media format: w4/r0 (latest is w4/r0)
UBIFS: default compressor: lzo
UBIFS: reserved for root: 0 bytes (0 KiB)
udev[941]: starting version 164
NET: Registered protocol family 10
sshd (1682): /proc/1682/oom_adj is deprecated, please use /proc/1682/oom_score_adj instead.
')

The result is the same, no IP and no SSH-Connection.

Maybe I'm to dump but it seems that it will not work!

Did someone else try it??? Maybe John???

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

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

Postby JohnH » Wed Feb 23, 2011 9:54 pm

$this->bbcode_second_pass_quote('squeezeplug', '
')
Did someone else try it??? Maybe John???



No I have not tried it. I only have version 0.4 of UBIT and with that version it is not possible to do it.
JohnH
 
Posts: 9
Joined: Tue Jan 25, 2011 7:01 pm
Top

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

Postby peaslaker » Wed Feb 23, 2011 11:23 pm

OK. The serious missing step appears to be the running of tune2fs to label the disk partition. This has worked fine in my testing,but if you don't get that label in place, the ramdisk won't know which disk to set up as the root filesystem. However, this gets totally weird because those commands run without error following the instructions I have laid out. i can't explain that. The netconsole sessions don't really help because they don't help debug the state of the root filesystem.

I'm a bit stuck because I really did set mine up using cut and paste. No errors. That tune2fs command and the umount worked perfectly in my setup. don't know what to suggest. At the setup stage i'm booting the goflex net with no drives plugged in and then subsequently I plug in the working drive. This is the only area where what we are doing might be different. I've run it rhrough twice now from starting with a formatted drive. The commands run without error on my setup.
peaslaker
 
Posts: 101
Joined: Tue Sep 07, 2010 10:40 pm

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

Postby squeezeplug » Thu Feb 24, 2011 10:41 am

$this->bbcode_second_pass_quote('peaslaker', 'A')t the setup stage i'm booting the goflex net with no drives plugged in and then subsequently I plug in the working drive. This is the only area where what we are doing might be different.

I did exactly the same.

Next step for me will be to setup a PlugBoxLinux on USB to see whether this works for me. As far as I understood should it be possible to replace the rootfs from PlugBoxLinux with a Debian rootfs, is that right?

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 squeezeplug » Sun Feb 27, 2011 7:52 pm

Hi peaslaker,
I obviously have no luck with the GoFlex Net device. My Dockstars runs very well. I tried to update my 0.5 U-BIT version to 0.6, but that don't work with the steps described here. I also tied to install Arch Linux ARM install Linux on USB, that also don't work. Please remember that I've installed PBL on NAND an I've U-BIT 0.5 on the device.

Do you ore someone else has an idea??? :?:

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 » Sun Feb 27, 2011 10:57 pm

UBIT v0.6 has sort of sneaked out because it got written into the install documentation on the new site and then the "site" released. I've been testing it thoroughly for my limited scenarios, but there are a lot of changes and the whole documentation is not up to date. That is what happens when pre-release software gets out in the wild.

I have rigged up Debian with UBIT v0.6 on both my GoFlex Home and GoFlex Net. There isn't really any need to have Arch Linux ARM install in NAND you can chroot into the part-built Debian environment from the ramdisk or anywhere where the kernel is running. At the moment you are just telling me "this stuff doesn't work". It works on my environment, so... the usual suspect is whatever USB device you are using. Here is it working on my environment: http://peaslaker.fastmail.co.uk/plugapp ... debian.mov

I've run this about 8 times now. The documentation and the method work. I've even used UBIT to put Debian into NAND memory. It all works.

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.
peaslaker
 
Posts: 101
Joined: Tue Sep 07, 2010 10:40 pm

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

Postby JohnH » Mon Feb 28, 2011 9:52 am

$this->bbcode_second_pass_quote('peaslaker', ' ') It works on my environment, so... the usual suspect is whatever USB device you are using.


I would also suggest to try another USB-drive. It is really weird what you are experiencing.
JohnH
 
Posts: 9
Joined: Tue Jan 25, 2011 7:01 pm
Top

PreviousNext

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 11 guests