Welcome! Log In Create A New Profile

Advanced

Bootup DHCP issues

Posted by john3voltas 
Bootup DHCP issues
October 05, 2012 04:30PM
(previous subject was "Can't connect to Dockstar" because I didn't notice that after booting the box was lacking an IP address)

1 or 2 years ago I installed both Jeff Doozan's uBoot and Rescue System.
Then I ran Arch Linux for ARM during that period.
A week ago, I had a power outage and after that my I haven't been able to connect to my Dockstar again.
I can't connect to it regardless of having tried to boot both Arch and the Rescue System.
I don't have a serial cable but I have connected to the plug during boot using netconsole.
Here is a log trying to boot to Rescue System:
C:\nc111nt_rodneybeede>nc -u -l -p 6666

U-Boot 2010.09 (Oct 23 2010 - 11:49:22)
Marvell-Dockstar/Pogoplug by Jeff Doozan
Hit any key to stop autoboot:  0
(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... 0 Storage Device(s) found
(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... 0 Storage Device(s) found
** Block device usb 0 not supported

** Invalid boot device **
Creating 1 MTD partitions on "nand0":
0x000002500000-0x000010000000 : "mtd=3"
UBI: attaching mtd1 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
UBI error: ubi_read_volume_table: the layout volume was not found
UBI error: ubi_init: cannot attach mtd1
UBI error: ubi_init: UBI error: cannot initialize UBI, error -22
UBI init error -22
** Block device usb 0 not supported
** Block device usb 1 not supported
** Block device usb 2 not supported
** Block device usb 3 not supported
** Block device usb 0 not supported
** Block device usb 0 not supported
Wrong Image Format for bootm command
ERROR: can't get kernel image!
stopping USB..

NAND read: device 0 offset 0x100000, size 0x400000
 4194304 bytes read: OK
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-2.6.32.18-dockstar
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3236180 Bytes = 3.1 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

And this was trying to boot to Arch on USB pendisk:

C:\nc111nt_rodneybeede>nc -u -l -p 6666

U-Boot 2010.09 (Oct 23 2010 - 11:49:22)
Marvell-Dockstar/Pogoplug by Jeff Doozan
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
(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 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
UBI error: ubi_read_volume_table: the layout volume was not found
UBI error: ubi_init: cannot attach mtd1
UBI error: ubi_init: UBI error: cannot initialize UBI, error -22
UBI init error -22
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)
2856016 bytes read
Loading file "/boot/uInitrd" from usb device 0:1 (usbda1)
** File not found /boot/uInitrd
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-3.1.10-13-ARCH
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2855952 Bytes = 2.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Also, here is a DHCP log of TFTPD32 during the Dockstar's boot:

Rcvd DHCP Discover Msg for IP 0.0.0.0, Mac 00:10:75:1A:BD:D7 [05/10 20:57:42.234]
Client requested address 0.0.0.112 [05/10 20:57:42.250]
DHCP: proposed address 192.168.1.99 [05/10 20:57:54.309]
Rcvd DHCP Discover Msg for IP 0.0.0.0, Mac 00:10:75:1A:BD:D7 [05/10 20:57:54.309]
Client requested address 0.0.0.112 [05/10 20:57:54.309]
DHCP: proposed address 192.168.1.99 [05/10 20:58:06.305]
Rcvd DHCP Discover Msg for IP 0.0.0.0, Mac 00:10:75:1A:BD:D7 [05/10 20:58:06.305]
Client requested address 0.0.0.112 [05/10 20:58:06.305]
DHCP: proposed address 192.168.1.99 [05/10 20:58:18.302]
3188 Request 2 not processed [05/10 20:58:18.302]
3188 Request 2 not processed [05/10 20:58:18.302]
3188 Request 2 not processed [05/10 20:58:18.302]

Seems like the device is asking for an IP lease but then something fails.
So I grabbed my USB pendisk with Arch Linux ARM and modified /etc/rc.conf to set it up for a static IP.
But even so I still can't connect to the device.
I am beginning to wonder if installing the Rescue System was a good idea...
Is there anything else I could try before getting a serial cable?
BTW, can someone advise me on a good ebay/amazon deal to buy a serial cable to connect to my Dockstar.
Preferrably a cable ready for this device that won't force me to get a solder iron or a special cable-end.
Thanks in advance.
Cheers



Edited 1 time(s). Last edit at 01/16/2013 04:30PM by john3voltas.
Re: Can't connect to Dockstar
October 05, 2012 10:23PM
Re: Can't connect to Dockstar
October 06, 2012 04:27AM
Thanks bohdi.
BTW, did you look at my Dockstar uBoot logs?
If so, what do you think? (This time) I am really going to order the cable but would I would be glad to solve this prior to the arrival of the serial cable.
Thanks in advance.
Cheers
Re: Can't connect to Dockstar
October 06, 2012 04:14PM
john3voltas,

Your UBoot log for booting Arch indicated that everything is fine until it tried to start the kernel. Your rootfs is probably corrupted because of the power outage. Have you tried to fix it on another linux box? insert it and run e2fsck /dev/sdxx (where sdxx is the drive letter of the USB thumb) . Is your rootfs ext2 or ext3?

If this did not work, you can download a fresh Arch rootfs at the Arch site. Your UBoot is older so it will work up to 3.1.xxx. kernel.
Instruction on downloading and creating rootfs for Arch: http://archlinuxarm.org/platforms/armv5/seagate-dockstar

You can also try Debian rootfs (I'm not sure if we have a 3.1.x or older Debian rootfs posted in in this forum). I might have an older 2.6.32 rootfs stashed somewhere when I first installed Debian on Dockstar.

BTW, since you can connect with netconsole, you don't need serial yet. It easier to troubleshoot with serial, but try netconsole first.



Edited 1 time(s). Last edit at 10/06/2012 04:16PM by bodhi.
Re: Can't connect to Dockstar
October 06, 2012 05:39PM
bodhi,
I have posted 2 logs. One was from the Rescue System (2.6.32 Kernel) and the other one is an ArchLinuxARM (3.1.10 Kernel).
Am I right assuming that the Rescue System is read-only and that my current uBoot should be able to boot it up?
Because if it's read-only it can't get corrupted, right?
As for ArchLinux, I don't think they still have rootfs prior to 3.1 Kernel.

Bottom line, I can't boot into the Rescue System and thus I cannot update my uBoot nor install Debian with the regular install script.
And since I can't update my uBoot I can't run Arch (because they only have 3.1Kernel).
Dead end? Hope not.

Bottom line2, I get the feeling that if I could talk to the right people on IRC this I would have been able to solve this long ago.
Anybody care to join IRC to give me a hand?
I am usually logged on to #archlinux-arm but I would log onto any other channel if it would help.
Jeff himself used to log into #archlinux-arm (or was it #plugbox?).



Edited 1 time(s). Last edit at 10/06/2012 05:40PM by john3voltas.
Re: Can't connect to Dockstar
October 06, 2012 06:58PM
@john3voltas,

Arch 3.1 kernel is fine for your UBoot.
Re: Can't connect to Dockstar
October 08, 2012 06:23AM
Ok, borrowed a serial from a friend and tried again.


Here is a serial log trying to boot the rescue system:
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.100 is not alive
Hit any key to stop autoboot:  0
(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... 0 Storage Device(s) found
(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... 0 Storage Device(s) found
** Block device usb 0 not supported

** Invalid boot device **
Creating 1 MTD partitions on "nand0":
0x000002500000-0x000010000000 : "mtd=3"
UBI: attaching mtd1 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
UBI error: ubi_read_volume_table: the layout volume was not found
UBI error: ubi_init: cannot attach mtd1
UBI error: ubi_init: UBI error: cannot initialize UBI, error -22
UBI init error -22
** Block device usb 0 not supported
** Block device usb 1 not supported
** Block device usb 2 not supported
** Block device usb 3 not supported
** Block device usb 0 not supported
** Block device usb 0 not supported
Wrong Image Format for bootm command
ERROR: can't get kernel image!
stopping USB..

NAND read: device 0 offset 0x100000, size 0x400000
 4194304 bytes read: OK
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-2.6.32.18-dockstar
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3236180 Bytes = 3.1 MiB
   Load Address: 00008000
   Entry Point:  00008000
   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.18-dockstar (root@stfu.tcbnet) (gcc version 4.3.5 (Buildroot 2010.08) ) #1 Thu Feb 17 03:09:57 EST 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 ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs 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: 122836KB available (5968K code, 708K data, 128K 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.474959] Calibrating delay loop... 1192.75 BogoMIPS (lpj=5963776)
[   21.714915] Security Framework initialized
[   21.714934] SELinux:  Disabled at boot.
[   21.714955] Mount-cache hash table entries: 512
[   21.715204] Initializing cgroup subsys ns
[   21.715216] Initializing cgroup subsys cpuacct
[   21.715226] Initializing cgroup subsys devices
[   21.715235] Initializing cgroup subsys freezer
[   21.715242] Initializing cgroup subsys net_cls
[   21.715274] CPU: Testing write buffer coherency: ok
[   21.715821] devtmpfs: initialized
[   21.717241] regulator: core version 0.5
[   21.717411] NET: Registered protocol family 16
[   21.717796] Kirkwood: MV88F6281-A0, TCLK=200000000.
[   21.717808] Feroceon L2: Cache support initialised.
[   21.720835] bio: create slab <bio-0> at 0
[   21.721116] vgaarb: loaded
[   21.721389] SCSI subsystem initialized
[   21.721646] usbcore: registered new interface driver usbfs
[   21.721711] usbcore: registered new interface driver hub
[   21.721802] usbcore: registered new device driver usb
[   21.722246] Switching to clocksource orion_clocksource
[   21.727590] NET: Registered protocol family 2
[   21.727853] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[   21.728667] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[   21.728767] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[   21.728819] TCP: Hash tables configured (established 4096 bind 4096)
[   21.728828] TCP reno registered
[   21.728988] NET: Registered protocol family 1
[   21.729253] RPC: Registered udp transport module.
[   21.729263] RPC: Registered tcp transport module.
[   21.729271] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   21.729409] NetWinder Floating Point Emulator V0.97 (double precision)
[   21.729659] audit: initializing netlink socket (disabled)
[   21.729692] type=2000 audit(0.242:1): initialized
[   21.736500] VFS: Disk quotas dquot_6.5.2
[   21.736759] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[   21.739346] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   21.740953] Registering the dns_resolver key type
[   21.741004] Slow work thread pool: Starting up
[   21.741124] Slow work thread pool: Ready
[   21.741134] JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[   21.741898] fuse init (API version 7.13)
[   21.742389] SGI XFS with security attributes, large block/inode numbers, no debug enabled
[   21.743933] msgmni has been set to 240
[   21.746016] alg: No test for stdrng (krng)
[   21.746171] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
[   21.746184] io scheduler noop registered
[   21.746191] io scheduler anticipatory registered
[   21.746199] io scheduler deadline registered
[   21.746457] io scheduler cfq registered (default)
[   21.752432] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   21.752894] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
[   22.134897] console [ttyS0] enabled
[   22.138983] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron NAND 256MiB 3,3V 8-bit)
[   22.147605] Scanning device for bad blocks
[   22.157998] Bad eraseblock 168 at 0x000001500000
[   22.163239] Bad eraseblock 184 at 0x000001700000
[   22.170394] Bad eraseblock 252 at 0x000001f80000
[   22.176600] Bad eraseblock 294 at 0x0000024c0000
[   22.185175] Bad eraseblock 400 at 0x000003200000
[   22.204465] Bad eraseblock 795 at 0x000006360000
[   22.214336] Bad eraseblock 936 at 0x000007500000
[   22.221606] Bad eraseblock 1007 at 0x000007de0000
[   22.227930] Bad eraseblock 1050 at 0x000008340000
[   22.243784] Bad eraseblock 1350 at 0x00000a8c0000
[   22.250733] Bad eraseblock 1410 at 0x00000b040000
[   22.270697] Bad eraseblock 1821 at 0x00000e3a0000
[   22.283847] 4 cmdlinepart partitions found on MTD device orion_nand
[   22.290140] Creating 4 MTD partitions on "orion_nand":
[   22.295327] 0x000000000000-0x000000100000 : "u-boot"
[   22.300877] 0x000000100000-0x000000500000 : "uImage"
[   22.306328] 0x000000500000-0x000002500000 : "rootfs"
[   22.311783] 0x000002500000-0x000010000000 : "data"
[   22.317490] UBI: attaching mtd2 to ubi0
[   22.321342] UBI: physical eraseblock size:   131072 bytes (128 KiB)
[   22.327656] UBI: logical eraseblock size:    129024 bytes
[   22.333086] UBI: smallest flash I/O unit:    2048
[   22.337811] UBI: sub-page size:              512
[   22.342460] UBI: VID header offset:          512 (aligned 512)
[   22.348318] UBI: data offset:                2048
[   22.411958] UBI: attached mtd2 to ubi0
[   22.415748] UBI: MTD device name:            "rootfs"
[   22.420826] UBI: MTD device size:            32 MiB
[   22.425736] UBI: number of good PEBs:        252
[   22.430374] UBI: number of bad PEBs:         4
[   22.434847] UBI: max. allowed volumes:       128
[   22.439486] UBI: wear-leveling threshold:    4096
[   22.444220] UBI: number of internal volumes: 1
[   22.448685] UBI: number of user volumes:     1
[   22.453158] UBI: available PEBs:             0
[   22.457624] UBI: total number of reserved PEBs: 252
[   22.462533] UBI: number of PEBs reserved for bad PEB handling: 2
[   22.468568] UBI: max/mean erase counter: 1/0
[   22.472866] UBI: image sequence number: 1653365787
[   22.477689] UBI: background thread "ubi_bgt0d" started, PID 38
[   22.483737] MV-643xx 10/100/1000 ethernet driver version 1.4
[   22.489489] mv643xx_eth smi: probed
[   22.494828] net eth0: port 0 with MAC address 00:10:75:1a:bd:d7
[   22.500849] console [netcon0] enabled
[   22.504548] netconsole: network logging started
[   22.509099] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   22.515704] orion-ehci orion-ehci.0: Marvell Orion EHCI
[   22.521000] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[   22.552300] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[   22.572284] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[   22.578287] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[   22.585126] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   22.592394] usb usb1: Product: Marvell Orion EHCI
[   22.597119] usb usb1: Manufacturer: Linux 2.6.32.18-dockstar ehci_hcd
[   22.603598] usb usb1: SerialNumber: orion-ehci.0
[   22.608507] usb usb1: configuration #1 chosen from 1 choice
[   22.614241] hub 1-0:1.0: USB hub found
[   22.618031] hub 1-0:1.0: 1 port detected
[   22.622201] Initializing USB Mass Storage driver...
[   22.627208] usbcore: registered new interface driver usb-storage
[   22.633263] USB Mass Storage support registered.
[   22.638110] mice: PS/2 mouse device common for all mice
[   22.643430] i2c /dev entries driver
[   22.647702] device-mapper: uevent: version 1.0.3
[   22.652752] device-mapper: ioctl: 4.15.0-ioctl (2009-04-01) initialised: dm-devel@redhat.com
[   22.661320] cpuidle: using governor ladder
[   22.665587] cpuidle: using governor menu
[   22.669630] Registered led device: plug:green:health
[   22.674697] mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
[   22.681100] mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
[   22.722315] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[   22.762313] mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
[   22.802313] mv_xor mv_xor.2: Marvell XOR: ( xor cpy )
[   22.842314] mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )
[   22.848128] Netfilter messages via NETLINK v0.30.
[   22.852929] nf_conntrack version 0.5.0 (1921 buckets, 7684 max)
[   22.859356] CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
[   22.866803] nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module option or
[   22.874777] sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
[   22.883333] ip_tables: (C) 2000-2006 Netfilter Core Team
[   22.888721] TCP cubic registered
[   22.891960] NET: Registered protocol family 17
[   22.896826] registered taskstats version 1
[   22.901635] Initalizing network drop monitor service
[   22.906722] md: Waiting for all devices to be available before autodetect
[   22.913554] md: If you don't use raid, use raid=noautodetect
[   22.919626] md: Autodetecting RAID arrays.
[   22.923762] md: Scanned 0 and added 0 devices.
[   22.928224] md: autorun ...
[   22.931023] md: ... autorun DONE.
[   22.934387] usb 1-1: new high speed USB device using orion-ehci and address 2
[   23.021633] UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[   23.027731] UBIFS: mounted read-only
[   23.031324] UBIFS: file system size:   30320640 bytes (29610 KiB, 28 MiB, 235 LEBs)
[   23.039027] UBIFS: journal size:       9033728 bytes (8822 KiB, 8 MiB, 71 LEBs)
[   23.046384] UBIFS: media format:       w4/r0 (latest is w4/r0)
[   23.052242] UBIFS: default compressor: lzo
[   23.056367] UBIFS: reserved for root:  0 bytes (0 KiB)
[   23.062207] VFS: Mounted root (ubifs filesystem) readonly on device 0:16.
[   23.069090] Freeing init memory: 128K
INIT: version 2.86 booting
[   23.143683] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[   23.150425] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[   23.157607] usb 1-1: Product: USB2.0 Hub
[   23.161837] usb 1-1: configuration #1 chosen from 1 choice
[   23.172462] hub 1-1:1.0: USB hub found
[   23.176600] hub 1-1:1.0: 4 ports detected
mdev: /sys/class: No such file or directory
/etc/rcS.d/S06LED: line 23: can't create /sys/class/leds/dockstar:green:health/trigger: nonexistent directory
Starting heartbeat LED...
/etc/rcS.d/S06LED: line 23: can't create /sys/class/leds/dockstar:orange:misc/trigger: nonexistent directory
Populating /dev using udev: done
Initializing random number generator... read-only file system detected...done
Starting network...
Starting Network Interface Plugging Daemon: eth0.
Starting sshd: OK
INIT: Entering runlevel: 2


          Jeff Doozan's
Dockstar/Pogoplug Recovery System

rescue login:


And here is a log trying to boot Arch Linux for ARM:
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.100 is not alive
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
(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 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
UBI error: ubi_read_volume_table: the layout volume was not found
UBI error: ubi_init: cannot attach mtd1
UBI error: ubi_init: UBI error: cannot initialize UBI, error -22
UBI init error -22
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)
2279256 bytes read
Loading file "/boot/uInitrd" from usb device 0:1 (usbda1)
7004538 bytes read
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-3.3.2
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2279192 Bytes = 2.2 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-3.3.2-kirkwood-dg
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7004474 Bytes = 6.7 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

And that's all.
Can somebody give me a hand with this?
Cheers
Re: Can't connect to Dockstar
October 08, 2012 03:44PM
john3voltas,

It looks like you have booted the rescue kernel successfully. Stay with serial, you can login and use a fresh USB stick, install Debian using Jeff's script. I would get it boot OK with Debian before worrying about using Arch (it's just so much easier using Jeff's script). After you've run this script, you will have newer UBoot, and that will make it much more flexible.

Also, your Arch stick output does not look right! As I've mentioned, you can get the Arch 3.1.x rootfs from ALARM site and boot with that. Your UBoot is older, so you can boot with either 3.1.x, or 2.6.x. But not with 3.2.x or above.



Edited 1 time(s). Last edit at 10/08/2012 03:48PM by bodhi.
Re: Can't connect to Dockstar
January 16, 2013 01:52PM
It's been quite a while since I last posted here.
Sorry for not having posted before but suddenly life got difficult and I lost track of what I was doing...
Since things are finally starting to get on the right tracks I decided to re-post my DHCP issue.

I still can't get an IP address on my Dockstar on bootup.
This happens no mather what OS is running. Rescue System, Jeff's Debian, Arch Linux, etc.
If I use my serial and run udhcpc -i eth0 after booting I do get an IP address from the DHCP server.
But it just won't work on bootup...
This happens both at home (dhcp server is a thomson router) and at work (dhcp server is a pfSense appliance).
Anybody's got any suggestion? I'm going nuts here... :(
Thanks in advance.
Cheers
Re: Can't connect to Dockstar
January 16, 2013 09:44PM
Have you upgraded uBoot?
Re: Bootup DHCP issues
January 17, 2013 01:45AM
Hi bodhi.
Yes, I have.
My current uBoot is from 2012.
In a couple of hours I'll post a boot log so you can see.
Thanks.
Cheers
Re: Bootup DHCP issues
January 17, 2013 03:01AM
Aso helpful to post your output of:

# cat /lib/udev/rules.d/75-persistent-net-generator.rules
# cat /etc/udev/rules.d/70-persistent-net.rules

Note that 75 and 70 will vary depending on your installation.
Re: Bootup DHCP issues
January 17, 2013 04:07AM
Hi bodhi,
As promissed, here goes boot log.
Please note that the ethernet cable was connected to my Dockstar before powering it up and I never disconnected that cable. Also note that at the end I did a udhcpc -i eth0 and the device successfully retrieved an IP address from the server.
U-Boot 2011.12 (Feb 12 2012 - 21:33:07)
Seagate FreeAgent DockStar

SoC:   Kirkwood 88F6281_A0
DRAM:  128 MiB
WARNING: Caches not enabled
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... 2 USB Device(s) found
       scanning bus for storage devices... 0 Storage Device(s) found
** Block device usb 0 not supported

** Invalid boot device **
Creating 1 MTD partitions on "nand0":
0x000002500000-0x000010000000 : "mtd=3"
UBI: attaching mtd1 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
UBI error: ubi_read_volume_table: the layout volume was not found
UBI error: ubi_init: cannot attach mtd1
UBI error: ubi_init: UBI error: cannot initialize UBI, error -22
UBI init error 22
** Block device usb 0 not supported
** Block device usb 1 not supported
** Block device usb 2 not supported
** Block device usb 3 not supported
** Block device usb 0 not supported
** Block device usb 0 not supported
Wrong Image Format for bootm command
ERROR: can't get kernel image!
stopping USB..

NAND read: device 0 offset 0x100000, size 0x400000
 4194304 bytes read: OK
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-2.6.32.18-dockstar
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3236180 Bytes = 3.1 MiB
   Load Address: 00008000
   Entry Point:  00008000
   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.18-dockstar (root@stfu.tcbnet) (gcc version 4.3.5 (Buildroot 2010.08) ) #1 Thu Feb 17 03:09:57 EST 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 ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs 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: 122836KB available (5968K code, 708K data, 128K 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.000134] Calibrating delay loop... 1192.75 BogoMIPS (lpj=5963776)
[    0.240094] Security Framework initialized
[    0.240116] SELinux:  Disabled at boot.
[    0.240144] Mount-cache hash table entries: 512
[    0.240457] Initializing cgroup subsys ns
[    0.240474] Initializing cgroup subsys cpuacct
[    0.240485] Initializing cgroup subsys devices
[    0.240494] Initializing cgroup subsys freezer
[    0.240501] Initializing cgroup subsys net_cls
[    0.240547] CPU: Testing write buffer coherency: ok
[    0.241351] devtmpfs: initialized
[    0.243091] regulator: core version 0.5
[    0.243319] NET: Registered protocol family 16
[    0.243855] Kirkwood: MV88F6281-A0, TCLK=200000000.
[    0.243869] Feroceon L2: Enabling L2
[    0.243903] Feroceon L2: Cache support initialised.
[    0.246950] bio: create slab <bio-0> at 0
[    0.247224] vgaarb: loaded
[    0.247501] SCSI subsystem initialized
[    0.247751] usbcore: registered new interface driver usbfs
[    0.247811] usbcore: registered new interface driver hub
[    0.247903] usbcore: registered new device driver usb
[    0.248338] Switching to clocksource orion_clocksource
[    0.253663] NET: Registered protocol family 2
[    0.253925] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.254742] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    0.254842] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.254895] TCP: Hash tables configured (established 4096 bind 4096)
[    0.254904] TCP reno registered
[    0.255064] NET: Registered protocol family 1
[    0.255355] RPC: Registered udp transport module.
[    0.255365] RPC: Registered tcp transport module.
[    0.255373] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.255511] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.255763] audit: initializing netlink socket (disabled)
[    0.255794] type=2000 audit(0.241:1): initialized
[    0.262580] VFS: Disk quotas dquot_6.5.2
[    0.262839] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.265429] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.267037] Registering the dns_resolver key type
[    0.267089] Slow work thread pool: Starting up
[    0.267209] Slow work thread pool: Ready
[    0.267219] JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.267981] fuse init (API version 7.13)
[    0.268472] SGI XFS with security attributes, large block/inode numbers, no debug enabled
[    0.270009] msgmni has been set to 240
[    0.272094] alg: No test for stdrng (krng)
[    0.272251] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
[    0.272264] io scheduler noop registered
[    0.272272] io scheduler anticipatory registered
[    0.272279] io scheduler deadline registered
[    0.272541] io scheduler cfq registered (default)
[    0.278565] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.279025] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
[    0.663917] console [ttyS0] enabled
[    0.667999] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron NAND 256MiB 3,3V 8-bit)
[    0.676622] Scanning device for bad blocks
[    0.687013] Bad eraseblock 168 at 0x000001500000
[    0.692258] Bad eraseblock 184 at 0x000001700000
[    0.699423] Bad eraseblock 252 at 0x000001f80000
[    0.705617] Bad eraseblock 294 at 0x0000024c0000
[    0.714189] Bad eraseblock 400 at 0x000003200000
[    0.733494] Bad eraseblock 795 at 0x000006360000
[    0.743362] Bad eraseblock 936 at 0x000007500000
[    0.750642] Bad eraseblock 1007 at 0x000007de0000
[    0.756955] Bad eraseblock 1050 at 0x000008340000
[    0.772800] Bad eraseblock 1350 at 0x00000a8c0000
[    0.779760] Bad eraseblock 1410 at 0x00000b040000
[    0.799722] Bad eraseblock 1821 at 0x00000e3a0000
[    0.812839] 4 cmdlinepart partitions found on MTD device orion_nand
[    0.819148] Creating 4 MTD partitions on "orion_nand":
[    0.824317] 0x000000000000-0x000000100000 : "u-boot"
[    0.829872] 0x000000100000-0x000000500000 : "uImage"
[    0.835304] 0x000000500000-0x000002500000 : "rootfs"
[    0.840785] 0x000002500000-0x000010000000 : "data"
[    0.846473] UBI: attaching mtd2 to ubi0
[    0.850349] UBI: physical eraseblock size:   131072 bytes (128 KiB)
[    0.856646] UBI: logical eraseblock size:    129024 bytes
[    0.862078] UBI: smallest flash I/O unit:    2048
[    0.866803] UBI: sub-page size:              512
[    0.871451] UBI: VID header offset:          512 (aligned 512)
[    0.877311] UBI: data offset:                2048
[    0.940973] UBI: attached mtd2 to ubi0
[    0.944743] UBI: MTD device name:            "rootfs"
[    0.949839] UBI: MTD device size:            32 MiB
[    0.954736] UBI: number of good PEBs:        252
[    0.959385] UBI: number of bad PEBs:         4
[    0.963848] UBI: max. allowed volumes:       128
[    0.968495] UBI: wear-leveling threshold:    4096
[    0.973222] UBI: number of internal volumes: 1
[    0.977686] UBI: number of user volumes:     1
[    0.982159] UBI: available PEBs:             0
[    0.986624] UBI: total number of reserved PEBs: 252
[    0.991534] UBI: number of PEBs reserved for bad PEB handling: 2
[    0.997569] UBI: max/mean erase counter: 1/0
[    1.001867] UBI: image sequence number: 1653365787
[    1.006690] UBI: background thread "ubi_bgt0d" started, PID 38
[    1.012730] MV-643xx 10/100/1000 ethernet driver version 1.4
[    1.018517] mv643xx_eth smi: probed
[    1.023792] net eth0: port 0 with MAC address 00:10:75:1a:bd:d7
[    1.029830] console [netcon0] enabled
[    1.033512] netconsole: network logging started
[    1.038065] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.044674] orion-ehci orion-ehci.0: Marvell Orion EHCI
[    1.049987] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[    1.078392] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[    1.098375] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[    1.104375] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.111207] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.118473] usb usb1: Product: Marvell Orion EHCI
[    1.123199] usb usb1: Manufacturer: Linux 2.6.32.18-dockstar ehci_hcd
[    1.129677] usb usb1: SerialNumber: orion-ehci.0
[    1.134590] usb usb1: configuration #1 chosen from 1 choice
[    1.140320] hub 1-0:1.0: USB hub found
[    1.144111] hub 1-0:1.0: 1 port detected
[    1.148279] Initializing USB Mass Storage driver...
[    1.153278] usbcore: registered new interface driver usb-storage
[    1.159345] USB Mass Storage support registered.
[    1.164184] mice: PS/2 mouse device common for all mice
[    1.169509] i2c /dev entries driver
[    1.173786] device-mapper: uevent: version 1.0.3
[    1.178837] device-mapper: ioctl: 4.15.0-ioctl (2009-04-01) initialised: dm-devel@redhat.com
[    1.187399] cpuidle: using governor ladder
[    1.191664] cpuidle: using governor menu
[    1.195708] Registered led device: dockstar:green:health
[    1.201126] Registered led device: dockstar:orange:misc
[    1.206434] mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
[    1.212847] mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
[    1.258410] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[    1.298405] mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
[    1.338458] mv_xor mv_xor.2: Marvell XOR: ( xor cpy )
[    1.378405] mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )
[    1.384217] Netfilter messages via NETLINK v0.30.
[    1.389010] nf_conntrack version 0.5.0 (1921 buckets, 7684 max)
[    1.395452] CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
[    1.402907] nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module option or
[    1.410873] sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
[    1.419415] ip_tables: (C) 2000-2006 Netfilter Core Team
[    1.424803] TCP cubic registered
[    1.428042] NET: Registered protocol family 17
[    1.432908] registered taskstats version 1
[    1.437719] Initalizing network drop monitor service
[    1.442806] md: Waiting for all devices to be available before autodetect
[    1.449644] md: If you don't use raid, use raid=noautodetect
[    1.455716] md: Autodetecting RAID arrays.
[    1.459854] md: Scanned 0 and added 0 devices.
[    1.464314] md: autorun ...
[    1.467114] md: ... autorun DONE.
[    1.470479] usb 1-1: new high speed USB device using orion-ehci and address 2
[    1.557775] UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[    1.563872] UBIFS: mounted read-only
[    1.567466] UBIFS: file system size:   30320640 bytes (29610 KiB, 28 MiB, 235 LEBs)
[    1.575170] UBIFS: journal size:       9033728 bytes (8822 KiB, 8 MiB, 71 LEBs)
[    1.582525] UBIFS: media format:       w4/r0 (latest is w4/r0)
[    1.588393] UBIFS: default compressor: lzo
[    1.592508] UBIFS: reserved for root:  0 bytes (0 KiB)
[    1.598343] VFS: Mounted root (ubifs filesystem) readonly on device 0:16.
[    1.605225] Freeing init memory: 128K
INIT: version 2.86 booting
[    1.679782] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[    1.686523] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    1.693706] usb 1-1: Product: USB2.0 Hub
[    1.697937] usb 1-1: configuration #1 chosen from 1 choice
[    1.708564] hub 1-1:1.0: USB hub found
[    1.712699] hub 1-1:1.0: 4 ports detected
mdev: /sys/class: No such file or directory
Starting heartbeat LED...
Populating /dev using udev: done
Initializing random number generator... read-only file system detected...done
Starting network...
Starting Network Interface Plugging Daemon: eth0.
Starting sshd: OK
INIT: Entering runlevel: 2


          Jeff Doozan's
Dockstar/Pogoplug Recovery System

rescue login: [    3.810183] eth0: link up, 100 Mb/s, full duplex, flow control disabled
root
Password:
Jan  1 00:00:17 login[95]: root login on 'ttyS0'
rescue:~#
rescue:~#
rescue:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:10:75:1A:BD:D7
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:966 (966.0 B)
          Interrupt:11

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

rescue:~#
rescue:~#
rescue:~#
rescue:~# udhcpc -i eth0
udhcpc (v1.17.1) started
Sending discover...
Sending select for 172.22.20.62...
Lease of 172.22.20.62 obtained, lease time 691200
deleting routers
route: SIOCDELRT: No such process
adding dns 172.22.10.11
adding dns 172.22.10.10
rescue:~#
rescue:~#
rescue:~#
rescue:~#
rescue:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:10:75:1A:BD:D7
          inet addr:172.22.20.62  Bcast:172.22.20.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:7 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1799 (1.7 KiB)  TX bytes:2030 (1.9 KiB)
          Interrupt:11

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

rescue:~#

And as per your request:
rescue:~# cat /lib/udev/rules.d/75-persistent-net-generator.rules
cat: can't open '/lib/udev/rules.d/75-persistent-net-generator.rules': No such file or directory
rescue:~# cat /lib/udev/{TAB}
/lib/udev/scsi_id  /lib/udev/usb_id   /lib/udev/vol_id
rescue:~# cat /lib/udev/
rescue:~#
rescue:~#
rescue:~#
rescue:~#
rescue:~# cat /etc/udev/rules.d/70-persistent-net.rules
cat: can't open '/etc/udev/rules.d/70-persistent-net.rules': No such file or directory
rescue:~#
rescue:~#
rescue:~#
rescue:~#
rescue:~# cat /etc/udev/rules.d/
/etc/udev/rules.d/50-udev-default.rules
/etc/udev/rules.d/64-device-mapper.rules
rescue:~# cat /etc/udev/rules.d/50-udev-default.rules
# There are a number of modifiers that are allowed to be used in some of the
# fields.  See the udev man page for a full description of them.
#
# See the udev.rules.examples file for more examples of how to create rules
#

# permissions for IDE CD devices
SUBSYSTEMS=="ide", KERNEL=="*[!0-9]", PROGRAM="/bin/cat /proc/ide/%k/media", RESULT=="cdrom*", NAME="%k", GROUP="cdrom", MODE="0660"

# permissions for SCSI cd/sg/tape devices
SUBSYSTEMS=="scsi", KERNEL=="s[grt][0-9]*", ATTRS{type}=="5", NAME="%k", GROUP="cdrom", MODE="0660"

# USB devices
KERNEL=="hiddev*",      NAME="usb/%k"
KERNEL=="auer*",                NAME="usb/%k"
KERNEL=="legousbtower*",        NAME="usb/%k"
KERNEL=="dabusb*",      NAME="usb/%k"
SUBSYSTEMS=="usb", KERNEL=="lp[0-9]*",  NAME="usb/%k", GROUP="lp"

# CAPI devices
KERNEL=="capi",         NAME="capi20", SYMLINK="isdn/capi20"
KERNEL=="capi*",                NAME="capi/%n"

# Network devices
KERNEL=="tun",          NAME="net/%k"

# permissions
KERNEL=="pl2303",        NAME="%k", OWNER="500",  GROUP="500",  MODE="0666"
KERNEL=="visor",         NAME="%k", OWNER="root", GROUP="uucp", MODE="0666"
KERNEL=="camera*"        NAME="%k", OWNER="root",  GROUP="camera",  MODE="0666"

# console devices
KERNEL=="console"        NAME="%k", OWNER="root", GROUP="tty",  MODE="0600"
KERNEL=="tty",           NAME="%k", OWNER="root", GROUP="tty",  MODE="0666"
KERNEL=="tty[0-9]*",     NAME="%k", OWNER="root", GROUP="tty",  MODE="0660"
KERNEL=="vcs*",          NAME="%k", OWNER="root", GROUP="tty",  MODE="0620"
KERNEL=="tty[CIS]*",     NAME="%k", OWNER="root", GROUP="uucp", MODE="0660"
KERNEL=="ttyUB[0-9]",    NAME="%k", OWNER="root", GROUP="uucp", MODE="0660"
KERNEL=="ttyUSB0",       NAME="%k", OWNER="root", GROUP="uucp", MODE="0660"
KERNEL=="ttyUSB1",       NAME="%k", OWNER="root"  GROUP="uucp", MODE="0666"

# pty devices
KERNEL=="ptmx"           NAME="%k", OWNER="root", GROUP="tty",  MODE="0666"
KERNEL=="pty[p-za-e][0-9a-f]*" NAME="%k", OWNER="root", GROUP="tty",  MODE="0666"
KERNEL=="tty[p-za-e][0-9a-f]*" NAME="%k", OWNER="root", GROUP="tty",  MODE="0666"
KERNEL=="cu[abiu]*"      NAME="%k", OWNER="root", GROUP="uucp",  MODE="0660"

# sound devices
KERNEL=="audio*"         NAME="%k", OWNER="root", GROUP="audio",  MODE="0666"
KERNEL=="beep"           NAME="%k", OWNER="root", GROUP="audio", MODE="0644"
KERNEL=="dsp*"           NAME="%k", OWNER="root", GROUP="audio",  MODE="0666"
KERNEL=="midi*"          NAME="%k", OWNER="root", GROUP="audio",  MODE="0666"
KERNEL=="mixer*"         NAME="%k", OWNER="root", GROUP="audio",  MODE="0666"
KERNEL=="music"          NAME="%k", OWNER="root", GROUP="audio",  MODE="0666"
KERNEL=="sequencer*"     NAME="%k", OWNER="root", GROUP="audio",  MODE="0666"
KERNEL=="controlC[0-9]*", NAME="snd/%k", OWNER="root", GROUP="audio",  MODE="0666"
KERNEL=="hw[CD0-9]*",     NAME="snd/%k", OWNER="root", GROUP="audio",  MODE="0666"
KERNEL=="pcm[CD0-9cp]*",  NAME="snd/%k", OWNER="root", GROUP="audio",  MODE="0666"
KERNEL=="midiC[D0-9]*",   NAME="snd/%k", OWNER="root", GROUP="audio",  MODE="0666"
KERNEL=="timer",          NAME="snd/%k", OWNER="root", GROUP="audio",  MODE="0666"
KERNEL=="seq",            NAME="snd/%k", OWNER="root", GROUP="audio",  MODE="0666"
KERNEL=="sndstat"        NAME="%k", OWNER="root", GROUP="audio",  MODE="0666"
KERNEL=="speaker"        NAME="%k", OWNER="root", GROUP="audio", MODE="0644"
KERNEL=="sound/*"        NAME="%k", OWNER="root", GROUP="audio", MODE="0666"
KERNEL=="admmidi*"       NAME="%k", OWNER="root", GROUP="audio", MODE="0666"
KERNEL=="adsp*"          NAME="%k", OWNER="root", GROUP="audio", MODE="0666"
KERNEL=="aload*"         NAME="%k", OWNER="root", GROUP="audio",  MODE="0666"
KERNEL=="amidi*"         NAME="%k", OWNER="root", GROUP="audio", MODE="0666"
KERNEL=="amixer*"        NAME="%k", OWNER="root", GROUP="audio", MODE="0666"

# input devices (mouse, joystick, etc)
KERNEL=="mice",         NAME="input/%k", OWNER="root", GROUP="root", MODE="0644"
KERNEL=="mouse*",       NAME="input/%k", OWNER="root", GROUP="root", MODE="0644"
KERNEL=="event*",       NAME="input/%k", OWNER="root", GROUP="root", MODE="0644"
KERNEL=="js*",          NAME="input/%k", OWNER="root", GROUP="root", MODE="0644"
KERNEL=="ts*",          NAME="input/%k", OWNER="root", GROUP="root", MODE="0644"
KERNEL=="input/js*"      NAME="%k", OWNER="root", GROUP="games",0 MODE="0666"
KERNEL=="djs[0-3]"       NAME="%k", OWNER="root", GROUP="games", MODE="0660"
KERNEL=="psaux"          NAME="%k", OWNER="root", GROUP="sys",  MODE="0660"
KERNEL=="crash"          NAME="%k", OWNER="root", GROUP="root", MODE="0660"
KERNEL=="logibm"         NAME="%k", OWNER="root", GROUP="sys",  MODE="0660"
KERNEL=="jbm"            NAME="%k", OWNER="root", GROUP="sys",  MODE="0660"
KERNEL=="hwtrap"         NAME="%k", OWNER="root", GROUP="root", MODE="0644"
KERNEL=="inportbm"       NAME="%k", OWNER="root", GROUP="sys",  MODE="0660"
KERNEL=="sexec"          NAME="%k", OWNER="root", GROUP="root", MODE="0660"
KERNEL=="jsflash"        NAME="%k", OWNER="root", GROUP="root", MODE="0660"

# power manager device
KERNEL=="apm_bios"        NAME="%k", OWNER="root", GROUP="root", MODE="0644"

# printer device
KERNEL=="lp[0-9]"         NAME="%k", OWNER="root", GROUP="lp", MODE="0660"
KERNEL=="parport*"        NAME="%k", OWNER="root", GROUP="lp", MODE="0660"

# video devices
KERNEL=="card*"        NAME="dri/card%n", OWNER="root", GROUP="video", MODE="0666"
KERNEL=="fb[0-9]"         NAME="%k", OWNER="root", GROUP="video",  MODE="0660"
KERNEL=="agpgart"         NAME="%k", OWNER="root", GROUP="video", MODE="0660"
KERNEL=="nvidia*"         NAME="%k", OWNER="root", GROUP="video", MODE="0666"
KERNEL=="video*"          NAME="%k", OWNER="root", GROUP="video",  MODE="0660"
KERNEL=="vbi*"            NAME="%k", OWNER="root", GROUP="video", MODE="0660"
KERNEL=="dvb*", PROGRAM="/bin/sh -c 'K=%k; K=$${K#dvb}; A=$${K%%%%.*}; D=$${K#*.}; echo dvb/adapter$$A/$$D'", NAME="%c", GROUP="video", MODE="0660"

# DISK devices
KERNEL=="ed[ab]*"         NAME="%k", OWNER="root", GROUP="disk", MODE="0640"
KERNEL=="gscd0"           NAME="%k", OWNER="root", GROUP="disk", MODE="0640"
KERNEL=="initrd"          NAME="%k", OWNER="root", GROUP="disk", MODE="0640"
KERNEL=="lmscd"           NAME="%k", OWNER="root", GROUP="disk", MODE="0640"
KERNEL=="mcd*"            NAME="%k", OWNER="root", GROUP="disk", MODE="0640"
KERNEL=="md*"             NAME="%k", OWNER="root", GROUP="disk", MODE="0640"
KERNEL=="mtd*"            NAME="%k", OWNER="root", GROUP="disk", MODE="0640"
KERNEL=="userdma"         NAME="%k", OWNER="root", GROUP="root", MODE="0660"

# floppy devices
KERNEL=="fd[0-3]*"        NAME="%k", OWNER="root", GROUP="floppy", MODE="0660"
KERNEL=="fd0"             SYMLINK="floppy"

# permissions for removable devices like cardreaders or sticks
KERNEL=="sd*", ATTRS{scsi_level}=="3", ATTRS{type}=="0", NAME="%k", GROUP="storage"

# permissions for firewire external drives
KERNEL=="sd*", ATTRS{scsi_level}=="5", NAME="%k", GROUP="storage"

# permissions for usb to scsi external adapters
KERNEL=="sd*", ATTRS{scsi_level}=="3", ATTRS{type}=="7", NAME="%k", GROUP="storage"

# IDE devices (hd, cdrom)
KERNEL=="hd*"             NAME="%k", OWNER="root", GROUP="disk",   MODE="0660"
KERNEL=="ht0"             NAME="%k", OWNER="root", GROUP="disk",   MODE="0640"

# RAID IDE
KERNEL=="ataraid[0-9]*"   NAME="%k", OWNER="root", GROUP="disk",   MODE="0660"
KERNEL=="ataraid/*"       NAME="%k", OWNER="root", GROUP="disk",   MODE="0660"

# SCSI devices
KERNEL=="scsi/*/cd"       NAME="%k", OWNER="root", GROUP="disk",   MODE="0660"
KERNEL=="scsi/*"          NAME="%k", OWNER="root", GROUP="disk",   MODE="0660"
KERNEL=="sd[a-h]*"        NAME="%k", OWNER="root", GROUP="disk",   MODE="0640"
KERNEL=="s[rt][0-9]*"     NAME="%k", OWNER="root", GROUP="disk",   MODE="0640"
KERNEL=="scd*"            NAME="%k", OWNER="root", GROUP="disk",   MODE="0660"

# generic scsi devices
KERNEL=="sg*"             NAME="%k", OWNER="root", GROUP="root",   MODE="0600"

# old CD-ROM
KERNEL=="sbpcd*"          NAME="%k", OWNER="root", GROUP="disk",   MODE="0640"

# loop devices
KERNEL=="loop[0-9]*"      NAME="%k", OWNER="root", GROUP="disk",   MODE="0660"

# network block devices
KERNEL=="nb[0-7]"         NAME="%k", OWNER="root", GROUP="disk",   MODE="0660"
KERNEL=="nht0"            NAME="%k", OWNER="root", GROUP="disk",   MODE="0640"
KERNEL=="npt[0-3]"        NAME="%k", OWNER="root", GROUP="disk",   MODE="0660"
KERNEL=="n[qrs]*"         NAME="%k", OWNER="root", GROUP="disk",   MODE="0640"

# memory access devices
KERNEL=="kmem"         NAME="%k", OWNER="root", GROUP="kmem",   MODE="0640"
KERNEL=="mem"          NAME="%k", OWNER="root", GROUP="kmem",   MODE="0640"
KERNEL=="null"         NAME="%k", OWNER="root", GROUP="sys",    MODE="0666"
KERNEL=="nvram"        NAME="%k", OWNER="root", GROUP="root",   MODE="0640"
KERNEL=="port"         NAME="%k", OWNER="root", GROUP="kmem",   MODE="0640"
KERNEL=="ram[0-9]*"    NAME="%k", OWNER="root", GROUP="disk",   MODE="0640"
KERNEL=="random"       NAME="%k", OWNER="root", GROUP="root",   MODE="0644"
KERNEL=="rtc"          NAME="%k", OWNER="root", GROUP="root",   MODE="0444"
KERNEL=="urandom"      NAME="%k", OWNER="root", GROUP="root",   MODE="0644"
KERNEL=="full"         NAME="%k", OWNER="root", GROUP="sys",    MODE="0666"
KERNEL=="zero"         NAME="%k", OWNER="root", GROUP="root",   MODE="0666"
KERNEL=="raw[0-9]*"    NAME="raw/%k", OWNER="root", GROUP="disk", MODE="0660"
KERNEL=="modreq"       NAME="%k", OWNER="root", GROUP="root",   MODE="0644"
KERNEL=="msr"          NAME="%k", OWNER="root", GROUP="root",   MODE="0660"
KERNEL=="profile*"     NAME="%k", OWNER="root", GROUP="root",   MODE="0640"

# ISDN devices
KERNEL=="isdn*"        NAME="%k", OWNER="root", GROUP="tty",    MODE="0660"

# net devices
KERNEL=="ippp*"        NAME="%k", OWNER="root", GROUP="root",   MODE="0644"
KERNEL=="ipstate*"     NAME="%k", OWNER="root", GROUP="root",   MODE="0660"
KERNEL=="spx"          NAME="%k", OWNER="root", GROUP="root",   MODE="0644"
KERNEL=="fwmonitor*"   NAME="%k", OWNER="root", GROUP="root",   MODE="0660"

# hotplug rules - module autoloading for different buses
ACTION=="add", SUBSYSTEM=="pci", ENV{MODALIAS}=="*", RUN+="/sbin/modprobe $env{MODALIAS}"
ACTION=="add", SUBSYSTEM=="usb", ENV{MODALIAS}=="*", RUN+="/sbin/modprobe $env{MODALIAS}"
ACTION=="add", SUBSYSTEM=="pcmcia", ENV{MODALIAS}=="*", RUN+="/sbin/modprobe $env{MODALIAS}"
ACTION=="add", SUBSYSTEM=="pcmcia", ENV{MODALIAS}=="*", RUN+="/bin/sh -c 'echo 1 > /sys/$DEVPATH/allow_func_id_match'"
ACTION=="add", SUBSYSTEM=="ieee1394", ENV{MODALIAS}=="*", RUN+="/sbin/modprobe $env{MODALIAS}"
ACTION=="add", SUBSYSTEM=="scsi", ATTRS{type}=="[07]", RUN+="/sbin/modprobe sd_mod"
ACTION=="add", SUBSYSTEM=="scsi", ATTRS{type}=="14", RUN+="/sbin/modprobe sd_mod"
ACTION=="add", SUBSYSTEM=="scsi", ATTRS{type}=="[45]", RUN+="/sbin/modprobe sr_mod"
ACTION=="add", SUBSYSTEM=="scsi", ATTRS{type}=="1", ATTRS{vendor}=="Onstream", ATTRS{model}!="ADR*", RUN+="/sbin/modprobe osst"
ACTION=="add", SUBSYSTEM=="scsi", ATTRS{type}=="1", ATTRS{vendor}=="Onstream", ATTRS{model}=="ADR*", RUN+="/sbin/modprobe st"
ACTION=="add", SUBSYSTEM=="scsi", ATTRS{type}=="1", ATTRS{vendor}!="Onstream", RUN+="/sbin/modprobe st"
ACTION=="add", SUBSYSTEM=="scsi", ATTRS{type}=="[23689]", RUN+="/sbin/modprobe sg"

# firmware
ACTION=="add", SUBSYSTEM=="firmware", ENV{FIRMWARE}=="*", RUN+="/lib/udev/firmware.sh"
rescue:~#
rescue:~#
rescue:~#
rescue:~#
rescue:~# cat /etc/udev/rules.d/
/etc/udev/rules.d/50-udev-default.rules
/etc/udev/rules.d/64-device-mapper.rules
rescue:~# cat /etc/udev/rules.d/64-device-mapper.rules
# device mapper links hook into "online" event, when the dm table
# is available, while some table types must be ignored

KERNEL=="dm-*", ACTION=="add|online", GOTO="device_mapper_do"
GOTO="device_mapper_end"

LABEL="device_mapper_do"
PROGRAM!="/sbin/dmsetup status -j %M -m %m", GOTO="device_mapper_end"
RESULT=="|*snapshot*|*error*", GOTO="device_mapper_end"

IMPORT{program}="/sbin/vol_id --export $tempnode"
ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_UUID}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID}"
ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_SAFE}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_SAFE}"

LABEL="device_mapper_end"
rescue:~#
Re: Bootup DHCP issues
January 17, 2013 04:30AM
Looks like you're running Jeff's Rescue system. I think the quickest way to boot your Dockstar and get it running is to use Davy's Zyxel NSA320 rootfs from this post:
http://forum.doozan.com/read.php?2,7806

Put this rootfs on a USB stick and I'm positive it will boot into Debian. After that, you can create Arch rootfs on another sitck and boot with it.

Addendum:

It seems your uBoot is a little older (might just be the Dockstar version):
U-Boot 2011.12 (Feb 12 2012 - 21:33:07)

I dont have the Dockstar uBoot log to verify right now, and don't remember what it looks like. So if you still can't boot with Davy's rootfs then it might have something to do with that.



Edited 1 time(s). Last edit at 01/17/2013 04:38AM by bodhi.
Re: Bootup DHCP issues
January 17, 2013 05:24AM
First I want to fix it in Rescue System and then I'll think about installing Debian or Arch in a pendisk.
I'm not sure I understand what you mean in your last post.
Do you mean that Jeff's Rescue System doesn't come setup to get an IP lease automatically?
Because to me the Rescue System will not be of much use if it doesn't get an IP on boot.
To me it looks like it's properly setup as DHCP client.
rescue:~# cat /etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet dhcp
  up echo default-on > /sys/class/leds/dockstar\:green\:health/trigger
  down echo none > /sys/class/leds/dockstar\:green\:health/trigger
rescue:~#

Cheers
Re: Bootup DHCP issues
January 17, 2013 11:48AM
john3voltas Wrote:
-------------------------------------------------------
> First I want to fix it in Rescue System and then
> I'll think about installing Debian or Arch in a
> pendisk.
> I'm not sure I understand what you mean in your
> last post.
> Do you mean that Jeff's Rescue System doesn't come
> setup to get an IP lease automatically?
> Because to me the Rescue System will not be of
> much use if it doesn't get an IP on boot.
> To me it looks like it's properly setup as DHCP
> client.
>
> rescue:~# cat /etc/network/interfaces
> auto lo
> iface lo inet loopback
> iface eth0 inet dhcp
>   up echo default-on >
> /sys/class/leds/dockstar\:green\:health/trigger
>   down echo none >
> /sys/class/leds/dockstar\:green\:health/trigger
> rescue:~#
>
>
> Cheers

Sorry I was not clear about that. I just noticed that it was Jeff's version of the rescue system (Davy also has a newer version). It's been a long time ago so I'm no longer familiar with Jeff's version. Not sure why there is no udev persistent net rules files in his rescue system.

OTOH, It is really does not matter when you install a rescue system. You could do that from a full Debian system.
Re: Bootup DHCP issues
January 17, 2013 12:24PM
Let me see if I get this straight.
I have Jeff's rescue system installed and you say there's a newer rescue from Davy's?
Should I install Davy's instead? Can you link me to the topic where Davy's rescue system is posted?

Quote

OTOH, It is really does not matter when you install a rescue system. You could do that from a full Debian system.
These last 2 sentences I don't really understand.
What I meant to say is that I want to have a rescue system on my Dockstar (the newer and/or the better) and I want to make sure that my Dockstar can boot up properly and get a lease from a DHCP server from the rescue system.
Once I'm done with that, then I will install Debian or Arch on a USB pendisk and hook it up to my Dockstar to use it as my preferred OS.
If it ever fails I will still have the rescue system to inspect what went wrong. ;)

Can you boot your rescue system and get an IP address on boot up?
Cheers
Re: Bootup DHCP issues
January 17, 2013 09:41PM
john3voltas Wrote:
-------------------------------------------------------
> Let me see if I get this straight.
> I have Jeff's rescue system installed and you say
> there's a newer rescue from Davy's?
> Should I install Davy's instead? Can you link me
> to the topic where Davy's rescue system is
> posted?
>

- Jeff's rescue system should work fine. Davy's rescue system (currently only manual installation): http://forum.doozan.com/read.php?4,7915,page=1

>
Quote

OTOH, It is really does not matter when
> you install a rescue system. You could do that
> from a full Debian system.
> These last 2 sentences I don't really understand.

- I meant you don't have to follow this order of installation: uBoot, rescue system, Debian/Arch. You could install rescue system after you've already have a system running.

> What I meant to say is that I want to have a
> rescue system on my Dockstar (the newer and/or the
> better) and I want to make sure that my Dockstar
> can boot up properly and get a lease from a DHCP
> server from the rescue system.
> Once I'm done with that, then I will install
> Debian or Arch on a USB pendisk and hook it up to
> my Dockstar to use it as my preferred OS.
> If it ever fails I will still have the rescue
> system to inspect what went wrong. ;)
>
> Can you boot your rescue system and get an IP
> address on boot up?

- I don't have any plug with rescue system on it anymore. All my current plugs have netconsole, and that's the recovery mechanism I prefer at the moment.

> Cheers
Re: Bootup DHCP issues
January 18, 2013 03:55AM
bodhi Wrote:
> - Jeff's rescue system should work fine. Davy's
> rescue system (currently only manual
> installation):
> http://forum.doozan.com/read.php?4,7915,page=1

- Oh :(
I would feel much more comfortable if it was automatic, like Jeff's.
I guess I'll stick to Jeff's rescue system, then. Too chicken to do it manually and afraid to brick another plug (already bricked one once).

> - I meant you don't have to follow this order of
> installation: uBoot, rescue system, Debian/Arch.
> You could install rescue system after you've
> already have a system running.

- I see. I'll try a fresh Arch install on a pendisk today and see how it goes.

> - I don't have any plug with rescue system on it
> anymore. All my current plugs have netconsole, and
> that's the recovery mechanism I prefer at the
> moment.
>

:-0
Netconsole only...
Well, I do prefer Netconsole for simple stuff but in my opinion serial is a must-have.

I will be back after trying a full install on pendisk.
Thanks a bunch.
Cheers
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: