Tearing whats left of my hair out over Dockstar

Posted by HenryOz 
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
Now, this forum is in read-only mode. You find details Details hereContinue on /r/PirateBox
Tearing whats left of my hair out over Dockstar
April 11, 2012 12:00AM
Hi all

I have been trying for several weeks now to build a PirateBox using a Dockstar, my pride has finally given way to my sanity, I'm desparately seeking help please!

I have been successfully designing hardware circuits for the past 40+ years, so Linux is very new to me. I'm sure its some simple problem that somebody hopefully has found a solution to.

I have tried with 2 Dockstars and countless USB sticks (including SanDisk as recommended by many), the results are the same in all cases.

Like many threads I have read, I too have followed David's instructions to the letter but appear to have similar symptoms to others:

1. It is only possible to SSH into the Dockstar when the USB stick is removed. Without the USB stick the LED flashes orange continuously.
2. With the USB stick the Dockstar LED flashes green continously with arcNumber set to 2097. I have changed the arcNumber to 2998 in accordance with Jeff Doozan's instructions so now the Dockstar flashes green and then turns to a solid green.
3. I haven't yet re-flashed the wifi router with DD-WRT, for the moment I am trying to get the PirateBox to work with the home network router. The PC (running Ubuntu) and Dockstar IP addresses must be correct because I can ping in both directions without the USB stick inserted. The router IP address is definately 192.168.1.1
4. The USB sticks all have the ext2 (piratebox) partition flag set to boot.

I have a serial connection to the first Dockstar and have reloaded the original kernel image thinking this was the problem. I purchased a second Dockstar and followed the build instructions very carefully, it is behaving exactly the same as the first.

I have included the complete serial dump of the startup sequence below. This is from a SanDisk USB stick containing the PirateBox files. There appears to be a problem with the USB drive mounting but I don't have sufficient experience to be able to isolate this problem further.

Could somebody please help while I still have some sanity and hair left?

Many thanks

HenryOz



U-Boot 2010.09 (Oct 23 2010 - 11:49:22)
Marvell-Dockstar/Pogoplug by Jeff Doozan

SoC: Kirkwood 88F6281_A0
DRAM: 128 MiB
NAND: 256 MiB
In: serial
Out: serial
Err: serial
Net: egiga0
88E1116 Initialized on egiga0
Hit any key to stop autoboot: 0
(Re)start USB...
USB: Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 3 USB Device(s) found
scanning bus for storage devices... 1 Storage Device(s) found
Loading file "/rescueme" from usb device 0:1 (usbda1)
** File not found /rescueme
reading /rescueme.txt

** Unable to read "/rescueme.txt" from usb 0:1 **
Creating 1 MTD partitions on "nand0":
0x000002500000-0x000010000000 : "mtd=3"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size: 131072 bytes (128 Kicool smiley
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
UBI: attached mtd1 to ubi0
UBI: MTD device name: "mtd=3"
UBI: MTD device size: 219 MiB
UBI: number of good PEBs: 1751
UBI: number of bad PEBs: 1
UBI: max. allowed volumes: 128
UBI: wear-leveling threshold: 4096
UBI: number of internal volumes: 1
UBI: number of user volumes: 0
UBI: available PEBs: 1730
UBI: total number of reserved PEBs: 21
UBI: number of PEBs reserved for bad PEB handling: 17
UBI: max/mean erase counter: 1/1
UBIFS error (pid 0): ubifs_get_sb: cannot open "ubi:rootfs", error -19
Error reading superblock on volume 'ubi:rootfs'!
stopping USB..
(Re)start USB...
USB: Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 3 USB Device(s) found
scanning bus for storage devices... 1 Storage Device(s) found
Loading file "/boot/uImage" from usb device 0:1 (usbda1)
1 bytes read
Found bootable drive on usb 0:1
Loading file "/boot/uImage" from usb device 0:1 (usbda1)
1431936 bytes read
Loading file "/boot/uInitrd" from usb device 0:1 (usbda1)
4738342 bytes read
## Booting kernel from Legacy Image at 00800000 ...
Image Name: Linux-2.6.32-5-kirkwood
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1431872 Bytes = 1.4 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
Image Name: initramfs-2.6.32-5-kirkwood
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 4738278 Bytes = 4.5 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 2.6.32-5-kirkwood (Debian 2.6.32-30) (ben@decadent.org.uk) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 Wed Jan 12 15:27:07 UTC 2011
[ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
[ 0.000000] CPU: VIVT data cache, VIVT instruction cache
[ 0.000000] Machine: Seagate FreeAgent DockStar
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
[ 0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=10 rootfstype=ext2 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
[ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Memory: 128MB = 128MB total
[ 0.000000] Memory: 120844KB available (3512K code, 583K data, 124K init, 0K highmem)
[ 0.000000] SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] NR_IRQS:114
[ 0.000000] Console: colour dummy device 80x30
[ 21.474958] Calibrating delay loop... 1192.75 BogoMIPS (lpj=5963776)
[ 21.714914] Security Framework initialized
[ 21.714933] SELinux: Disabled at boot.
[ 21.714954] Mount-cache hash table entries: 512
[ 21.715206] Initializing cgroup subsys ns
[ 21.715218] Initializing cgroup subsys cpuacct
[ 21.715227] Initializing cgroup subsys devices
[ 21.715235] Initializing cgroup subsys freezer
[ 21.715243] Initializing cgroup subsys net_cls
[ 21.715283] CPU: Testing write buffer coherency: ok
[ 21.715837] devtmpfs: initialized
[ 21.717265] regulator: core version 0.5
[ 21.717433] NET: Registered protocol family 16
[ 21.717816] Kirkwood: MV88F6281-A0, TCLK=200000000.
[ 21.717829] Feroceon L2: Cache support initialised.
[ 21.719593] bio: create slab <bio-0> at 0
[ 21.719875] vgaarb: loaded
[ 21.720335] Switching to clocksource orion_clocksource
[ 21.724183] NET: Registered protocol family 2
[ 21.724425] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 21.725259] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[ 21.725359] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[ 21.725411] TCP: Hash tables configured (established 4096 bind 4096)
[ 21.725420] TCP reno registered
[ 21.725570] NET: Registered protocol family 1
[ 21.725751] Unpacking initramfs...
[ 22.048486] Freeing initrd memory: 4624K
[ 22.048594] NetWinder Floating Point Emulator V0.97 (double precision)
[ 22.048846] audit: initializing netlink socket (disabled)
[ 22.048881] type=2000 audit(0.560:1): initialized
[ 22.055366] VFS: Disk quotas dquot_6.5.2
[ 22.055637] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 22.055732] JFFS2 version 2.2. (NAND) (SUMMARY) �© 2001-2006 Red Hat, Inc.
[ 22.056385] msgmni has been set to 245
[ 22.058109] alg: No test for stdrng (krng)
[ 22.058232] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[ 22.058244] io scheduler noop registered
[ 22.058251] io scheduler anticipatory registered
[ 22.058259] io scheduler deadline registered
[ 22.058438] io scheduler cfq registered (default)
[ 22.064443] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 22.064917] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
[ 22.387715] console [ttyS0] enabled
[ 22.391804] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron NAND 256MiB 3,3V 8-bit)
[ 22.400415] Scanning device for bad blocks
[ 22.479900] Bad eraseblock 2033 at 0x00000fe20000
[ 22.485169] 4 cmdlinepart partitions found on MTD device orion_nand
[ 22.491483] Creating 4 MTD partitions on "orion_nand":
[ 22.496646] 0x000000000000-0x000000100000 : "u-boot"
[ 22.502208] 0x000000100000-0x000000500000 : "uImage"
[ 22.507654] 0x000000500000-0x000002500000 : "rootfs"
[ 22.513159] 0x000002500000-0x000010000000 : "data"
[ 22.519155] mice: PS/2 mouse device common for all mice
[ 23.530376] rtc-mv rtc-mv: internal RTC not ticking
[ 23.535369] i2c /dev entries driver
[ 23.539040] cpuidle: using governor ladder
[ 23.543287] cpuidle: using governor menu
[ 23.547320] Registered led device: dockstar:green:health
[ 23.552743] Registered led device: dockstaryawning smileyrange:misc
[ 23.558046] mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
[ 23.564464] mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
[ 23.610403] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[ 23.650403] mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
[ 23.690400] mv_xor mv_xor.2: Marvell XOR: ( xor cpy )
[ 23.730403] mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )
[ 23.737078] TCP cubic registered
[ 23.740323] NET: Registered protocol family 17
[ 23.745153] registered taskstats version 1
[ 23.749930] /build/buildd-linux-2.6_2.6.32-30-armel-ts6pG9/linux-2.6-2.6.32/debian/build/source_armel_none/drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 23.764541] Initalizing network drop monitor service
[ 23.769588] Freeing init memory: 124K
Loading, please wait...
[ 23.820830] udev[44]: starting version 164
[ 24.102745] usbcore: registered new interface driver usbfs
[ 24.117850] usbcore: registered new interface driver hub
[ 24.124593] MV-643xx 10/100/1000 ethernet driver version 1.4
[ 24.130656] usbcore: registered new device driver usb
[ 24.136666] mv643xx_eth smi: probed
[ 24.154466] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 24.167131] net eth0: port 0 with MAC address c2:00:00:00:00:00
[ 24.173707] orion-ehci orion-ehci.0: Marvell Orion EHCI
[ 24.179009] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[ 24.210388] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[ 24.230389] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[ 24.237912] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 24.244774] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 24.252041] usb usb1: Product: Marvell Orion EHCI
[ 24.256764] usb usb1: Manufacturer: Linux 2.6.32-5-kirkwood ehci_hcd
[ 24.263157] usb usb1: SerialNumber: orion-ehci.0
[ 24.269065] usb usb1: configuration #1 chosen from 1 choice
[ 24.275421] hub 1-0:1.0: USB hub found
[ 24.279225] hub 1-0:1.0: 1 port detected
[ 24.600381] usb 1-1: new high speed USB device using orion-ehci and address 2
[ 24.751781] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[ 24.758515] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 24.765694] usb 1-1: Product: USB2.0 Hub
[ 24.771032] usb 1-1: configuration #1 chosen from 1 choice
[ 24.779943] hub 1-1:1.0: USB hub found
[ 24.784038] hub 1-1:1.0: 4 ports detected
[ 25.060693] usb 1-1.2: new high speed USB device using orion-ehci and address 3
[ 25.171281] usb 1-1.2: New USB device found, idVendor=0781, idProduct=5567
[ 25.178191] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 25.185545] usb 1-1.2: Product: Cruzer Blade
[ 25.189830] usb 1-1.2: Manufacturer: SanDisk
[ 25.194158] usb 1-1.2: SerialNumber: 2005153560051B01AE4B
[ 25.200950] usb 1-1.2: configuration #1 chosen from 1 choice
[ 25.288067] SCSI subsystem initialized
[ 25.315056] Initializing USB Mass Storage driver...
[ 25.320239] scsi0 : SCSI emulation for USB Mass Storage devices
[ 25.326957] usbcore: registered new interface driver usb-storage
[ 25.333652] USB Mass Storage support registered.
[ 30.331374] scsi 0:0:0:0: Direct-Access SanDisk Cruzer Blade 1.26 PQ: 0 ANSI: 5
[ 30.368687] sd 0:0:0:0: [sda] 7821312 512-byte logical blocks: (4.00 GB/3.72 Gicool smiley
[ 30.377674] sd 0:0:0:0: [sda] Write Protect is off
[ 30.382520] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 30.391795] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 30.397922] sda: sda1 sda2 sda3
[ 30.406172] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 30.412330] sd 0:0:0:0: [sda] Attached SCSI removable disk
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Running /scripts/local-bottom ... done.
done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
Using makefile-style concurrent boot in runlevel S.
mount: only root can do that (effective UID is 1000)
touch: cannot touch `/lib/init/rw/.ramfs': Read-only file system
mkdir: cannot create directory `/lib/init/rw/sendsigs.omit.d/': Read-only file system
Starting the hotplug events dispatcher: udevd[ 34.990800] udev[167]: starting version 164
.
Synthesizing the initial hotplug events...done.
Waiting for /dev to be fully populated...done.
mount: only root can do that (effective UID is 1000)
Activating swap...[ 35.761196] Adding 262136k swap on /dev/sda2. Priority:-1 extents:1 across:262136k
done.
mount: only root can do that (effective UID is 1000)
Cannot check root file system because it is not mounted read-only. ... failed!
mount: only root can do that (effective UID is 1000)
Loading kernel modules...done.
Cleaning up ifupdown....
Setting up networking.../etc/init.d/ifupdown: 113: cannot create /etc/network/run/ifstate: Read-only file system
Activating lvm and md swap...done.
Checking file systems...fsck from util-linux-ng 2.17.2
done.
Mounting local filesystems...mount: only root can do that (effective UID is 1000)
failed.
Activating swapfile swap...done.
Cleaning up temporary files.../lib/init/bootclean.sh: 186: cannot create /tmp/.clean: Read-only file system
Setting kernel variables ...done.
Configuring network interfaces...ifup: failed to open statefile /etc/network/run/ifstate: Read-only file system
failed.
rm: cannot remove `/var/lib/urandom/random-seed': Read-only file system
Cleaning up temporary files.../lib/init/bootclean.sh: 186: cannot create /tmp/.clean: Read-only file system
/etc/init.d/bootmisc.sh: 63: cannot create /var/run/utmp: Read-only file system
startpar: service(s) returned failure: ifupdown mountall-bootclean.sh mountnfs-bootclean.sh bootmisc.sh ... failed!
INIT: Entering runlevel: 2
Using makefile-style concurrent boot in runlevel 2.
cd: 20: can't cd to /mnt/share/piratebox
rm: cannot remove `/mnt/share/piratebox/tmp*': No such file or directory
/etc/init.d/piratebox_start: 28: cannot create /opt/piratebox/chat/cgi-bin/data.pso: Read-only file system
Removing stale PID file /var/run/dbus/pid..
rm: cannot remove `/var/run/dbus/pid': Read-only file system
Starting NTP server: ntpd.
[ 37.163741] NET: Registered protocol family 10
[ 37.170342] lo: Disabled Privacy Extensions
Starting OpenBSD Secure Shell server: sshd/var/run/sshd must be owned by root and not group or world-writable.
failed!
/etc/init.d/bootlogs: 74: cannot create /var/run/motd: Read-only file system
/etc/init.d/bootlogs: 74: cannot create /var/run/motd: Read-only file system
rm: cannot remove `/var/log//dmesg.4.gz': Read-only file system
mv: cannot move `/var/log//dmesg.3.gz' to `/var/log//dmesg.4.gz': Read-only file system
mv: cannot move `/var/log//dmesg.2.gz' to `/var/log//dmesg.3.gz': Read-only file system
mv: cannot move `/var/log//dmesg.1.gz' to `/var/log//dmesg.2.gz': Read-only file system
gzip: /var/log//dmesg.0.gz: Read-only file system
mv: cannot stat `/var/log//dmesg.0.gz': No such file or directory
touch: cannot touch `/var/log/dmesg.new': Read-only file system
chown: cannot access `/var/log/dmesg.new': No such file or directory
chmod: cannot access `/var/log/dmesg.new': No such file or directory
ln: cannot remove `/var/log//dmesg.0': Read-only file system
Error hardlinking /var/log/dmesg to /var/log//dmesg.0
/etc/init.d/bootlogs: 74: cannot create /var/log/dmesg: Read-only file system
chgrp: changing group of `/var/log/dmesg': Read-only file system
Starting Avahi mDNS/DNS-SD Daemon: avahi-daemonpython: can't open file 'webserver.py': [Errno 2] No such file or directory
_____
| \.----.-----.-----.-----.--.--.
| -- | _| _ | _ | _ | | |
|_____/|__| |_____|_____| __|___ |
|__| |_____|

No configuration file found.
Files will be uploaded to /mnt/share/piratebox

HTTP server running... Check it out at [localhost]
webdir: ".", port 8002
Timeout reached while wating for return value
Could not receive return value from daemon process.
(warning).
startpar: service(s) returned failure: dbus piratebox_start ssh ... failed!

Debian GNU/Linux 6.0 piratebox ttyS0

piratebox login:
Re: Tearing whats left of my hair out over Dockstar
April 11, 2012 03:13AM
I haven't messed with any of this at all so no promises, first things first: You used sudo correct? or is this a script?
Re: Tearing whats left of my hair out over Dockstar
April 11, 2012 12:46PM
TerrorByte

The Dockstar has a modified uBoot boot loader supplied by Jeff Doozan that supports booting from USB drives. The printout above was generated using Linux minicom to capture the serial interface with the Dockstar as it attempts to boot from a USB drive containing the PirateBox files.

Thanks

HenryOz
Re: Tearing whats left of my hair out over Dockstar
April 12, 2012 02:25PM
Following on from my serial dump above it was suggested elsewhere that there appeared to be a problem with file permissions because of the 'only root can do that' messages.

As an experiment I changed the permission of all files on the PirateBox USB stick using the chmod 777 command (read/write), however, this did not solve the problem.

Can anybody with a working system suggest if the uid and gid of the files should be 'root'? Maybe this can be changed globally for the files on the USB stick with the setuid and setgid commands?

I observe that at least one other person (jussi) is having exactly the same problem as can be seen from his/her serial dump. This suggests that it's not just my clumsy dealings but perhaps a systemic problem with the files??

Maybe David Darts or somebody else with intimate knowledge of the PirateBox development could comment please.

Thanks

HenryOz
Re: Tearing whats left of my hair out over Dockstar
April 12, 2012 03:12PM
Sorry, I want to help you, but I don't have any idea how the pogo-plug PirateBox gets installed and what problems can come up with it sad smiley
Re: Tearing whats left of my hair out over Dockstar
April 12, 2012 04:42PM
I had a look into your trace above.
As you already mentioned, it looks like that it is the Permission problem. You boot fails on the first important step after kernel-loading: remount / to read-write mode.

Silly question: Do your USB stick have a read-only switch winking smiley)

Can you please post the howto, which you used? I'll have alook into it, if i have time
Re: Tearing whats left of my hair out over Dockstar
April 12, 2012 06:40PM
I will also help, I may get a Pogoplug soon just for this project because the development of that is lacking.
Re: Tearing whats left of my hair out over Dockstar
April 12, 2012 06:46PM
TerrorByte Wrote:
-------------------------------------------------------
> I will also help, I may get a Pogoplug soon just
> for this project because the development of that
> is lacking.
I can imaging this.. look what happend since I recieved my MR3020 winking smiley
Re: Tearing whats left of my hair out over Dockstar
April 12, 2012 07:12PM
My TP-Link comes today smiling bouncing smiley so maybe I can actually help you out xD
Re: Tearing whats left of my hair out over Dockstar
April 12, 2012 10:59PM
Matthias

Nice thought about the read/write switch, unfortunately this is not the case. I have tried 7 different USB sticks ranging from a 2 G cheapo to a 32 G SanDisk. In each case I have mounted the drives in a PC (running Ubuntu) loaded the files iaw David Dart's instructions on [wiki.daviddarts.com] and then used the drives in the Dockstar modified with Jeff Doozan's U-boot loader.

I appreciate your help.

TerrorByte

Thanks for your interest and help. It would be good to get this sorted out for the Dockstar as it is a relatively powerful device. Looking forward to seeing PirateBox run on Raspberry pi too when they become available.
Re: Tearing whats left of my hair out over Dockstar
April 13, 2012 12:54AM
@HenryOz,

Very sorry to hear you've been having so much trouble. Here are a few things to try...

1. Mount your USB drive on your computer and as a root user, navigate to the following file - comment out any lines you find. Save and then try plugging the drive into your Dockstar and rebooting.
/etc/udev/rules.d/70-persistent-net.rules

2. Make sure the PirateBox's nameserver IP address matches your gateway router's IP. The default nameserver address for the PirateBox is 192.168.1.1. If this differs from your router's IP address, you should mount the USB drive on your computer and navigate to:
/etc/resolv.conf

Update the nameserver address to match your gateway router and save. Mount the USB drive, connect to your router and try booting.

3. Assuming the two tricks above don't help, try installing Debian as a "sanity" test. You can follow this tutorial on the wiki. It's technically for the Pogoplug V2 but it should work just fine for the Dockstar. Assuming you can install and run Debian on the Dockstar, you'll at least know that your Dockstar and USB drive are functioning as they should be...
Re: Tearing whats left of my hair out over Dockstar
April 13, 2012 11:36PM
Hi David

Thanks for your suggestion, but I had tried all your points previously without luck.

I had a similar posting on Jeff Doozan's site and it has yielded positive results, refer to posting [forum.doozan.com] (you need to scroll down to the HenryOz posting).

It appeared that the file system permissions on the piratebox partition were not getting set correctly when I was doing the steps 3 & 4 of the piratebox wiki instructions. Following laprjns suggestion, I tried setting the file owner and groups to root by doing the following as super users (root);

# chown -R root:root /media/piratebox/

This appears to have solved the problem, although I will not get a chance to do extensive testing for a few days.

David, I would respectfully suggest that your wiki could be modified to show this additional step because I have read a few posting where the authors have reported similar problems.

Regards

HenryOz
Re: Tearing whats left of my hair out over Dockstar
April 14, 2012 02:21AM
@HenryOz,

Ok, glad you were able to figure this out - thanks for sharing the fix. I've updated steps 3 & 4 on the PirateBox Plug Computer wiki page.
Re: Tearing whats left of my hair out over Dockstar
April 14, 2012 05:24AM
Hi David

Not sure if the wiki change is totally correct? I had to make the change to the files in the /media/piratebox/ partition to get it to boot. However, I did notice that the small icon on the home page didn't display (but the large icon on the information page did). So it may make sense to change the 6 files in /media/share/piratebox as well to 'root' ownership?

When I tried to change the files in /media/share/piratebox/ from the # prompt I get the 'Operation not permitted' response.

Appears there is still some work to do.

Regards

HenryOz
Re: Tearing whats left of my hair out over Dockstar
April 15, 2012 03:41AM
Hello all,

I have read and tried all the things that have been suggested here with no success. sad smiley

I am also getting the operation not permitted when I attempt to give root ownership to the directories. I went so far as to reformat the USB stick with the same result.

I am however getting different results upon boot, even though it still fails. Here is the log:

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2012.04.10 18:35:47 =~=~=~=~=~=~=~=~=~=~=~=


U-Boot 2010.09 (Oct 23 2010 - 11:49:22)
Marvell-Dockstar/Pogoplug by Jeff Doozan

SoC: Kirkwood 88F6281_A0
DRAM: 128 MiB
NAND: 256 MiB
In: serial
Out: serial
Err: serial
Net: egiga0
88E1116 Initialized on egiga0
Using egiga0 device
ping failed; host 192.168.1.181 is not alive
Hit any key to stop autoboot: 3  2  1  0
(Re)start USB...
USB: Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 3 USB Device(s) found
scanning bus for storage devices... 1 Storage Device(s) found
Loading file "/rescueme" from usb device 0:1 (usbda1)
** File not found /rescueme
reading /rescueme.txt

** Unable to read "/rescueme.txt" from usb 0:1 **
Creating 1 MTD partitions on "nand0":
0x000002500000-0x000010000000 : "mtd=3"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size: 131072 bytes (128 Kicool smiley
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
UBI: attached mtd1 to ubi0
UBI: MTD device name: "mtd=3"
UBI: MTD device size: 219 MiB
UBI: number of good PEBs: 1750
UBI: number of bad PEBs: 2
UBI: max. allowed volumes: 128
UBI: wear-leveling threshold: 4096
UBI: number of internal volumes: 1
UBI: number of user volumes: 0
UBI: available PEBs: 1729
UBI: total number of reserved PEBs: 21
UBI: number of PEBs reserved for bad PEB handling: 17
UBI: max/mean erase counter: 1/1
UBIFS error (pid 0): ubifs_get_sb: cannot open "ubi:rootfs", error -19
Error reading superblock on volume 'ubi:rootfs'!
Loading file "/boot/uImage" from usb device 0:1 (usbda1)
1 bytes read
Found bootable drive on usb 0:1
Loading file "/boot/uImage" from usb device 0:1 (usbda1)
1431936 bytes read
Loading file "/boot/uInitrd" from usb device 0:1 (usbda1)
4738342 bytes read
## Booting kernel from Legacy Image at 00800000 ...
Image Name: Linux-2.6.32-5-kirkwood
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1431872 Bytes = 1.4 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
Image Name: initramfs-2.6.32-5-kirkwood
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 4738278 Bytes = 4.5 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 2.6.32-5-kirkwood (Debian 2.6.32-30) (ben@decadent.org.uk) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 Wed Jan 12 15:27:07 UTC 2011
[ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
[ 0.000000] CPU: VIVT data cache, VIVT instruction cache
[ 0.000000] Machine: Marvell SheevaPlug Reference Board
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
[ 0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=10 rootfstype=ext2 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
[ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Memory: 128MB = 128MB total
[ 0.000000] Memory: 120844KB available (3512K code, 583K data, 124K init, 0K highmem)
[ 0.000000] SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] NR_IRQS:114
[ 0.000000] Console: colour dummy device 80x30
[ 0.000123] Calibrating delay loop... 1192.75 BogoMIPS (lpj=5963776)
[ 0.240078] Security Framework initialized
[ 0.240096] SELinux: Disabled at boot.
[ 0.240117] Mount-cache hash table entries: 512
[ 0.240369] Initializing cgroup subsys ns
[ 0.240381] Initializing cgroup subsys cpuacct
[ 0.240390] Initializing cgroup subsys devices
[ 0.240399] Initializing cgroup subsys freezer
[ 0.240406] Initializing cgroup subsys net_cls
[ 0.240447] CPU: Testing write buffer coherency: ok
[ 0.241001] devtmpfs: initialized
[ 0.242424] regulator: core version 0.5
[ 0.242594] NET: Registered protocol family 16
[ 0.242977] Kirkwood: MV88F6281-A0, TCLK=200000000.
[ 0.242989] Feroceon L2: Cache support initialised.
[ 0.244796] bio: create slab <bio-0> at 0
[ 0.245076] vgaarb: loaded
[ 0.245544] Switching to clocksource orion_clocksource
[ 0.249376] NET: Registered protocol family 2
[ 0.249616] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.250446] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.250546] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.250598] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.250607] TCP reno registered
[ 0.250759] NET: Registered protocol family 1
[ 0.250939] Unpacking initramfs...
[ 0.573628] Freeing initrd memory: 4624K
[ 0.573735] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.573984] audit: initializing netlink socket (disabled)
[ 0.574020] type=2000 audit(0.560:1): initialized
[ 0.580510] VFS: Disk quotas dquot_6.5.2
[ 0.580781] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.580877] JFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
[ 0.581525] msgmni has been set to 245
[ 0.583241] alg: No test for stdrng (krng)
[ 0.583361] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[ 0.583374] io scheduler noop registered
[ 0.583381] io scheduler anticipatory registered
[ 0.583389] io scheduler deadline registered
[ 0.583566] io scheduler cfq registered (default)
[ 0.589593] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.590065] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
[ 0.913568] console [ttyS0] enabled
[ 0.917656] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron NAND 256MiB 3,3V 8-bit)
[ 0.926268] Scanning device for bad blocks
[ 0.932317] Bad eraseblock 51 at 0x000000660000
[ 0.971703] Bad eraseblock 991 at 0x000007be0000
[ 1.008560] Bad eraseblock 1860 at 0x00000e880000
[ 1.020232] 4 cmdlinepart partitions found on MTD device orion_nand
[ 1.026544] Creating 4 MTD partitions on "orion_nand":
[ 1.031708] 0x000000000000-0x000000100000 : "u-boot"
[ 1.037280] 0x000000100000-0x000000500000 : "uImage"
[ 1.042725] 0x000000500000-0x000002500000 : "rootfs"
[ 1.048228] 0x000002500000-0x000010000000 : "data"
[ 1.054212] mice: PS/2 mouse device common for all mice
[ 2.065585] rtc-mv rtc-mv: internal RTC not ticking
[ 2.070580] i2c /dev entries driver
[ 2.074251] cpuidle: using governor ladder
[ 2.078499] cpuidle: using governor menu
[ 2.082530] Registered led device: plug:green:health
[ 2.087598] mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
[ 2.093996] mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
[ 2.135613] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[ 2.175610] mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
[ 2.215608] mv_xor mv_xor.2: Marvell XOR: ( xor cpy )
[ 2.255611] mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )
[ 2.262291] TCP cubic registered
[ 2.265539] NET: Registered protocol family 17
[ 2.270369] registered taskstats version 1
[ 2.275146] /build/buildd-linux-2.6_2.6.32-30-armel-ts6pG9/linux-2.6-2.6.32/debian/build/source_armel_none/drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 2.289758] Initalizing network drop monitor service
[ 2.294803] Freeing init memory: 124K
Loading, please wait...
[ 2.346036] udev[44]: starting version 164
[ 2.613162] MV-643xx 10/100/1000 ethernet driver version 1.4
[ 2.646897] mv643xx_eth smi: probed
[ 2.650594] mmc0: mvsdio driver initialized, lacking card detect (fall back to polling)
[ 2.705560] net eth0: port 0 with MAC address 00:10:75:1a:49:a2
[ 2.714071] usbcore: registered new interface driver usbfs
[ 2.726453] usbcore: registered new interface driver hub
[ 2.732571] usbcore: registered new device driver usb
[ 2.751621] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 2.758691] orion-ehci orion-ehci.0: Marvell Orion EHCI
[ 2.763991] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[ 2.795592] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[ 2.815596] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[ 2.823683] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 2.830539] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 2.837808] usb usb1: Product: Marvell Orion EHCI
[ 2.842533] usb usb1: Manufacturer: Linux 2.6.32-5-kirkwood ehci_hcd
[ 2.848924] usb usb1: SerialNumber: orion-ehci.0
[ 2.854091] usb usb1: configuration #1 chosen from 1 choice
[ 2.860470] hub 1-0:1.0: USB hub found
[ 2.864268] hub 1-0:1.0: 1 port detected
[ 3.185589] usb 1-1: new high speed USB device using orion-ehci and address 2
[ 3.336983] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[ 3.343715] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 3.350896] usb 1-1: Product: USB2.0 Hub
[ 3.356233] usb 1-1: configuration #1 chosen from 1 choice
[ 3.365121] hub 1-1:1.0: USB hub found
[ 3.369240] hub 1-1:1.0: 4 ports detected
[ 3.645895] usb 1-1.2: new high speed USB device using orion-ehci and address 3
[ 3.848234] usb 1-1.2: New USB device found, idVendor=090c, idProduct=1000
[ 3.855143] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3.862498] usb 1-1.2: Product: USB DISK
[ 3.866467] usb 1-1.2: Manufacturer: SMI Corporation
[ 3.871457] usb 1-1.2: SerialNumber: AA00000000002316
[ 3.877888] usb 1-1.2: configuration #1 chosen from 1 choice
[ 3.965760] SCSI subsystem initialized
[ 3.992871] Initializing USB Mass Storage driver...
[ 3.998088] scsi0 : SCSI emulation for USB Mass Storage devices
[ 4.004764] usbcore: registered new interface driver usb-storage
[ 4.011483] USB Mass Storage support registered.
[ 9.471582] scsi 0:0:0:0: Direct-Access SMI USB DISK 1100 PQ: 0 ANSI: 4
[ 9.508765] sd 0:0:0:0: [sda] 62844672 512-byte logical blocks: (32.1 GB/29.9 Gicool smiley
[ 9.517126] sd 0:0:0:0: [sda] Write Protect is off
[ 9.521950] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 9.530747] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 9.536890] sda: sda1 sda2 sda3
[ 9.545755] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 9.551886] sd 0:0:0:0: [sda] Attached SCSI removable disk
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Running /scripts/local-bottom ... done.
done.
Begin: Running /scripts/init-bottom ... done.

INIT: version 2.88 booting

Using makefile-style concurrent boot in runlevel S.
mount: only root can do that (effective UID is 1000)
touch: cannot touch `/lib/init/rw/.ramfs': Read-only file system
mkdir: cannot create directory `/lib/init/rw/sendsigs.omit.d/': Read-only file system
Starting the hotplug events dispatcher: udevd[ 13.607103] udev[169]: starting version 164
.
Synthesizing the initial hotplug events...done.
Waiting for /dev to be fully populated...done.
mount: only root can do that (effective UID is 1000)
Activating swap...[ 14.422901] Adding 262136k swap on /dev/sda2. Priority:-1 extents:1 across:262136k
done.
mount: only root can do that (effective UID is 1000)
Cannot check root file system because it is not mounted read-only. ... failed!
mount: only root can do that (effective UID is 1000)
Cleaning up ifupdown....
Setting up networking.../etc/init.d/ifupdown: 113: cannot create /etc/network/run/ifstate: Read-only file system
Loading kernel modules...done.
Activating lvm and md swap...done.
Checking file systems...fsck from util-linux-ng 2.17.2
done.
Mounting local filesystems...mount: only root can do that (effective UID is 1000)
failed.
Activating swapfile swap...done.
Cleaning up temporary files.../lib/init/bootclean.sh: 186: cannot create /tmp/.clean: Read-only file system
Configuring network interfaces...ifup: failed to open statefile /etc/network/run/ifstate: Read-only file system
failed.
Cleaning up temporary files.../lib/init/bootclean.sh: 186: cannot create /tmp/.clean: Read-only file system
/etc/init.d/bootmisc.sh: 63: cannot create /var/run/utmp: Read-only file system
Setting kernel variables ...done.
/etc/init.d/udev-mtab: 25: cannot create /etc/udev/rules.d/70-persistent-net.rules: Read-only file system
rm: cannot remove `/var/lib/urandom/random-seed': Read-only file system
startpar: service(s) returned failure: ifupdown mountall-bootclean.sh mountnfs-bootclean.sh bootmisc.sh udev-mtab ... failed!

INIT: Entering runlevel: 2

Using makefile-style concurrent boot in runlevel 2.
cd: 20: can't cd to /mnt/share/piratebox
rm: cannot remove `/mnt/share/piratebox/tmp*': No such file or directory
/etc/init.d/piratebox_start: 28: cannot create /opt/piratebox/chat/cgi-bin/data.pso: Read-only file system
Removing stale PID file /var/run/dbus/pid..
rm: cannot remove `/var/run/dbus/pid': Read-only file system
Starting NTP server: ntpd.
[ 15.930757] NET: Registered protocol family 10
[ 15.937615] lo: Disabled Privacy Extensions
/etc/init.d/bootlogs: 74: cannot create /var/run/motd: Read-only file system
/etc/init.d/bootlogs: 74: cannot create /var/run/motd: Read-only file system
rm: cannot remove `/var/log//dmesg.4.gz': Read-only file system
mv: cannot move `/var/log//dmesg.3.gz' to `/var/log//dmesg.4.gz': Read-only file system
mv: cannot move `/var/log//dmesg.2.gz' to `/var/log//dmesg.3.gz': Read-only file system
mv: cannot move `/var/log//dmesg.1.gz' to `/var/log//dmesg.2.gz': Read-only file system
gzip: /var/log//dmesg.0.gz: Read-only file system
mv: cannot stat `/var/log//dmesg.0.gz': No such file or directory
touch: cannot touch `/var/log/dmesg.new': Read-only file system
chown: cannot access `/var/log/dmesg.new': No such file or directory
chmod: cannot access `/var/log/dmesg.new': No such file or directory
ln: cannot remove `/var/log//dmesg.0': Read-only file system
Error hardlinking /var/log/dmesg to /var/log//dmesg.0
/etc/init.d/bootlogs: 74: cannot create /var/log/dmesg: Read-only file system
chgrp: changing group of `/var/log/dmesg': Read-only file system
Starting OpenBSD Secure Shell server: sshd/var/run/sshd must be owned by root and not group or world-writable.

failed!
Starting Avahi mDNS/DNS-SD Daemon: avahi-daemonpython: can't open file 'webserver.py': [Errno 2] No such file or directory
_____
| \.----.-----.-----.-----.--.--.
| -- | _| _ | _ | _ | | |
|_____/|__| |_____|_____| __|___ |
|__| |_____|

No configuration file found.
Files will be uploaded to /mnt/share/piratebox

HTTP server running... Check it out at [localhost]
webdir: ".", port 8002
Timeout reached while wating for return value
Could not receive return value from daemon process.
(warning).
startpar: service(s) returned failure: dbus piratebox_start ssh ... failed!

Debian GNU/Linux 6.0 piratebox ttyS0

piratebox login:
Re: Tearing whats left of my hair out over Dockstar
April 15, 2012 07:10AM
David

Having done some testing over the weekend the PirateBox is transferring files and chatting as expected. It appears that the ownership of the files in /media/share/piratebox do not need to be root, whereas the files in /media/piratebox do need to be set to root.

Hence I would suggest the following changes to the wiki in steps 3&4.

3. Now, uncompressed the file into the ext2 partition of the USB drive and ensure ownership of files are set to root:

tar xvpfz piratebox_0.3-4.tar.gz --strip-components 1 -C /media/piratebox
chown -R root:root /media/piratebox/

4. Exit super user and create "piratebox" directory on the /media/share (FAT32) partition:

exit
mkdir /media/share/piratebox

Thanks again for your help

HenryOz