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 » Sat Mar 05, 2011 4:33 pm

The modules are in the download package from: http://jeff.doozan.com/debian/goflex/v0 ... les.tar.gz

This should be unpacked in the root directory. The instruction to do so is in the original instructions. Perhaps that instruction wasn't performed in the chroot.
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 4:55 pm

$this->bbcode_second_pass_quote('peaslaker', 'T')he modules are in the download package from: http://jeff.doozan.com/debian/goflex/v0 ... les.tar.gz

This should be unpacked in the root directory. The instruction to do so is in the original instructions. Perhaps that instruction wasn't performed in the chroot.


Hi Peter, I've tried, but still the same.

uname -a gives:
uname -a
Linux goflex 2.6.37-ubit-01711-g50c16ad #1 Tue Feb 1 14:11:22 GMT 2011 armv5tel GNU/Linux

The modules path is:
lib/modules/2.6.37-ubit-01715-g1e5cda0

So kernel and modules does not match. I've downloaded the modules from Jeff's site as you instructed me.

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 » Sat Mar 05, 2011 5:45 pm

The downloads under v0.6/v2.6.37 match. At some point you must have missed the download of the boot.tar.gz.

This is the one you need. Watch out for having a file named boot.tar.gz in you download directory already. The download file will rename itself if this is the case and you end up the mismatch you have now.
peaslaker
 
Posts: 101
Joined: Tue Sep 07, 2010 10:40 pm

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

Postby squeezeplug » Sun Mar 06, 2011 8:58 am

$this->bbcode_second_pass_quote('peaslaker', 'T')he downloads under v0.6/v2.6.37 match. At some point you must have missed the download of the boot.tar.gz.

This is the one you need. Watch out for having a file named boot.tar.gz in you download directory already. The download file will rename itself if this is the case and you end up the mismatch you have now.


Hi Peter,
yes, you are right. Everything works fine now: CIFS support and USB-Sound!

Great!

One more question (maybe not the last!) I'm wondering about the easiest way to get all running with a new and untouched GoFlex Net device (out of the box). Is it possible to install only U-BIT without altering the PogoPlug SW? So that PogoPlug boots when no USB-Stick with Debian is attached, otherwise Debian from stick or HD will be booted?

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 Mar 06, 2011 1:52 pm

$this->bbcode_second_pass_quote('squeezeplug', ' ')Is it possible to install only U-BIT without altering the PogoPlug SW? So that PogoPlug boots when no USB-Stick with Debian is attached,


The only alteration that UBIT makes that replaces or alters any part of the Pogoplug system is the U-Boot install.

Unfortunately, the GoFlex Net U-Boot does not chain boot in the way that the Dockstar U-Boot does so I have not found a simple way to boot into the Pogoplug system from the UBIT U-Boot. I haven't either had success in booting the Pogoplug kernel directly from the UBIT U-Boot. At the moment, the U-Boot loads up a particular CPU register with the expected machine type at boot time. This is inappropriate for the Pogoplug kernel, so the kernel never starts properly.
peaslaker
 
Posts: 101
Joined: Tue Sep 07, 2010 10:40 pm
Top

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

Postby squeezeplug » Sun Mar 06, 2011 6:55 pm

$this->bbcode_second_pass_quote('peaslaker', '')$this->bbcode_second_pass_quote('squeezeplug', ' ')Is it possible to install only U-BIT without altering the PogoPlug SW? So that PogoPlug boots when no USB-Stick with Debian is attached,


The only alteration that UBIT makes that replaces or alters any part of the Pogoplug system is the U-Boot install.

Unfortunately, the GoFlex Net U-Boot does not chain boot in the way that the Dockstar U-Boot does so I have not found a simple way to boot into the Pogoplug system from the UBIT U-Boot. I haven't either had success in booting the Pogoplug kernel directly from the UBIT U-Boot. At the moment, the U-Boot loads up a particular CPU register with the expected machine type at boot time. This is inappropriate for the Pogoplug kernel, so the kernel never starts properly.


O.K. If I got you right we need to install U-BIT to run Debian but we can't run PogoPlug anymore, right? We can then decide to install PlugBoxLinux in NAND ore leave this. If we don't do so we have no bootable system on the NAND, right?

Sorry But I'm a little bit confused. Next days I'll get my new GoFlex Net and I want to start from scratch and document every single step for my wiki.

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 h3rd3r » Mon Mar 07, 2011 3:41 am

$this->bbcode_second_pass_quote('squeezeplug', 'N')ext days I'll get my new GoFlex Net and I want to start from scratch and document every single step for my wiki.

Greetings,
Thomas


Great!! I'm eager to read and apply your doc/wiki.. my fresh GoFlexNet on the table is waiting ... :)
h3rd3r
 
Posts: 1
Joined: Sun Mar 06, 2011 8:37 pm
Top

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

Postby squeezeplug » Mon Mar 07, 2011 7:22 pm

Hi peaslaker,
I did some more tests and found this issue: If I boot Debian from a stick with one more USB-Sick attached by a hub, Debian will not be started. I tried to boot with two eSata (GoFlex) drives attached and that works fine. Here is the output from netconsole. I tried several times every time with the same result. Attaching two USB drives is important for my project, because normally the music files resists on an second drive directly attached to the device. Did someone else saw this behavior?

$this->bbcode_second_pass_code('', 'root@ubuntu:/home/thomas# nc -lu 10.10.10.5 6666

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... 4 USB Device(s) found
scanning bus for storage devices... error in inquiry
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 **
** Block device usb 1 not supported
** Block device usb 1 not supported

** Invalid boot device **

** Invalid boot device **
** Block device usb 2 not supported
** Block device usb 2 not supported

** Invalid boot device **

** Invalid boot device **
** Block device usb 3 not supported
** Block device usb 3 not supported

** Invalid boot device **

** Invalid boot device **

Reset IDE: Bus 0: not available Bus 1: not available
** Bad partition 1 **
** Bad partition 1 **
No Powersaving mode 7F
Error (no IRQ) dev 0 blk 0: status 0x7f
** Can't read from device 0 **

** Unable to use ide 0:1 for fatload **
No Powersaving mode 7F
Error (no IRQ) dev 0 blk 0: status 0x7f
** Can't read from device 0 **

** Unable to use ide 0:1 for fatload **
** Bad partition 1 **
** Bad partition 1 **
No Powersaving mode 7F
Error (no IRQ) dev 1 blk 0: status 0x7f
** Can't read from device 1 **

** Unable to use ide 1:1 for fatload **
No Powersaving mode 7F
Error (no IRQ) dev 1 blk 0: status 0x7f
** Can't read from device 1 **

** Unable to use ide 1:1 for fatload **
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 ...
')


$this->bbcode_second_pass_code('', 'root@ubuntu:/home/thomas# nc -lu 10.10.10.4 6666
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: 1398
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 02:50:43:e2:e0:cf
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
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
usb 1-1.3: new high speed USB device using orion-ehci and address 3
scsi2 : usb-storage 1-1.3:1.0
usb 1-1.4: new high speed USB device using orion-ehci and address 4
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 )
scsi3 : usb-storage 1-1.4:1.0
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 410 1.00 PQ: 0 ANSI: 2
sd 2:0:0:0: [sda] 7571944 512-byte logical blocks: (3.87 GB/3.61 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
sd 2:0:0:0: [sda] Assuming drive cache: write through
sd 2:0:0:0: [sda] Attached SCSI removable disk
EXT2-fs (sda1): warning: mounting unchecked fs, running e2fsck is recommended
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)')

Thx 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 » Tue Mar 08, 2011 10:25 pm

This is the same old USB initiation problem for U-Boot. With a hub, the USB initiation takes more time than the standard U-Boot "usb start" process allows. You can probably fix this with U-Boot parameter changes. You need to change bootdelay to a longer value and submit an extra "usb start" command at the start of the "bootcmd" instruction. This will probably allow for the USB hub to initialise correctly.

With a copy of the UBIT v0.6 uInitrd located at /boot/uInitrd on your root filesystem (on USB), and with:

$this->bbcode_second_pass_code('', 'tune2fs -L rootfs /dev/<usb drive partition>')

The UBIT ramdisk will always "find" the root filesystem. This can only work though if the U-Boot finds the USB storage device at boot time.

There are no guarantees for USB storage device initiation and this is why USB booting SUCKS!!!! All proper embedded devices boot from NAND for a very good reason. If your final solution is not NAND installed, then boot problems are a fact of life for somebody booting with a wacky USB scenario.
peaslaker
 
Posts: 101
Joined: Tue Sep 07, 2010 10:40 pm

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

Postby squeezeplug » Wed Mar 09, 2011 12:28 pm

$this->bbcode_second_pass_quote('peaslaker', '.').. You need to change bootdelay to a longer value and submit an extra "usb start" command at the start of the "bootcmd" instruction.

How can I do this? At my Dockstar I've had a simular problem. When I attach 2 USB drives I must be lucky to find the right device at boot time. Sometime the stick gets sda1 sometime sda2. To fix this I put the UUID in the fstab instead of the device names sda1 or sdb1. I did the same with the GoFlex.

Did you see my other question?
One more question (maybe not the last!) I'm wondering about the easiest way to get all running with a new and untouched GoFlex Net device (out of the box). Is it possible to install only U-BIT without altering the PogoPlug SW? So that PogoPlug boots when no USB-Stick with Debian is attached, otherwise Debian from stick or HD will be booted?

Thanks a lot again,
Thomas
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 25 guests