I wasn't to sure how you got the installer running over ssh, so here's what I did. First, my dockstar is running Jeff Doozan latest uboot and Rescue System, so when I boot without any usb drives plugged in it boots into the Rescue System (http://forum.doozan.com/read.php?4,831). I connect to the dockstar via ssh (the rescue system starts dhcp). Although I do have the serial line running, I just use it to monitor what going on since I'm trying to figure out how to install armedslack without a serial line. (I've got two other dockstars waiting in the wings). Once I'm connected I do the following:

Prepare a directory for change root  file system

1) mkdir /tmp/armedslack

2) cd /tmp/armedslack

Download the armedslack uinitrd (has the installer) and decompress it

# wget ftp://ftp.armedslack.org/armedslack/armedslack-13.1/isolinux/uinitrd-kirkwood.img

# dd if=uinitrd-kirkwood.img bs=64 skip=1 | gzip -dc | cpio -div

Now thing get a little fuzzy for me, since I really don't have a deep knowledge of what I'm doing. I found through googling that I had to do the following mounts before I changed rooted into the installer fs. It seems to br needed to mount a usb stick and its the only way to get nano running; i don't know how to use vim .


#mount /proc/ /tmp/armedslack/proc

# mount /dev/ /tmp/armedslack/proc

# chroot /tmp/armedslack /bin/bash

#TERM=linux

Now plug in a usb drive, run fdisk or cfdisk and partition the drive. Since I using Doozan uboot / needs to be on sda1. I partitioned my 4G usb stick with 3.75G sda1 for \ and sda2 as a 250M swap.

OK, now run the armedslack installer.

#./usr/lib/setup/setup

This will resulted in running the armedslack installer. The only thing of note here is that I selected a ftp install and connect to the ftp.armedslack.org using its ip address (83.170.96.167). After successfully connecting to the repos, I then select the packages and the installer proceeds to install the packages. With my usb stick and depending on the packages selected this can take a few hours to install. I found that using my Seagate Freeagent 500GM disk loads much faster. Once everything is installed and the setup is complete (network, root password, services etc) I exit out of the installer and then add the following sym links since Doozan uboot looks for uImange and uInitrd to boot.

#cd /boot

# ln -s uinitrd-kickwood-2.6.35.5 uInitrd

# ln -s uImage-kirkwood-2.6.35.5 uImage

Then I exist out of the changed root environment and reboot the dockstar.

After all this and with using the serial output to monitor the process, the kernel does boot but gets a fdisk error and stalls for 60 second and then reboots, repeating the sequence over and over. See the attached file for the boot output and fdisk error from the serial link. It seems to have something to do with the dockstar not having a real time clock and getting time stamp errors. I am able to fix this by doing the following.

1) Add the following line in rc.S right at the beginning

/bin/mount -n -o remount,ro /

2) add an e2fsck,config file to /etc/. The file that i use can be found here.

ftp://laprjns.com/in/e2fsck.conf

Once I added these, rebooting results in going through a successful fdisk on the / fs. After completing the fdisk, it successfully reboots to the armedslack prompt. Since it's fdisk'ing and rebooting it does take a little while to come up . Also found that once I successfully booted, I then can remove both the mount line in rc.S and the e2fsck.con file and boot the system there after.

I sure that there is a better way to get the installer running, but as I said my linux knowledge is limited.

Regards

Rich Lapointe (laprjns)



On 12/21/2010 05:13 AM, Stuart Winter wrote:
On Mon, 20 Dec 2010, Rich wrote:

My testing indicates that it not getting an ip assign during initialization
because the rc.inet1.conf file isn't configured   I'm a wimp, so I've been
using serial cable to observe what is happening.
Since you have a serial cable, can you also try booting the installer?

This is what the others have been struggling with -- why doesn't the
installer get an IP?  If you boot using the config lines found here:
ftp://ftp.armedslack.org/armedslack/armedslack-devtools/sheevaplug/quickboot.txt

Take the line below this heading:
"-current (automatically starting DHCP and SSHd)"

The system should boot and get an IP from DHCP.

Can you see what is happening?

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
host 192.168.101.22 is alive
Uncompressing Linux... done, booting the kernel.
[    0.000000] Linux version 2.6.33.5-kirkwood (r...@wizbit) (gcc version 4.4.4 
(GCC) ) #2 PREEMPT Thu May 27 14:47:11 BST 2010
[    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(uImag)
[    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: 117688KB available (3760K code, 559K data, 124K init, 0K 
highmem)
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS:114
[    0.000000] Console: colour dummy device 80x30
[    0.000180] Calibrating delay loop... 1192.75 BogoMIPS (lpj=5963776)
[    0.240168] Security Framework initialized
[    0.240242] Mount-cache hash table entries: 512
[    0.240553] Initializing cgroup subsys ns
[    0.240567] Initializing cgroup subsys cpuacct
[    0.240576] Initializing cgroup subsys devices
[    0.240585] Initializing cgroup subsys freezer
[    0.240594] Initializing cgroup subsys net_cls
[    0.240648] CPU: Testing write buffer coherency: ok
[    0.242790] regulator: core version 0.5
[    0.243069] NET: Registered protocol family 16
[    0.244597] Kirkwood: MV88F6281-A0, TCLK=200000000.
[    0.244611] Feroceon L2: Cache support initialised.
[    0.252816] bio: create slab <bio-0> at 0
[    0.253609] vgaarb: loaded
[    0.255223] Switching to clocksource orion_clocksource
[    0.261813] NET: Registered protocol family 2
[    0.262022] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.262728] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    0.262828] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.262882] TCP: Hash tables configured (established 4096 bind 4096)
[    0.262892] TCP reno registered
[    0.262902] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.262924] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.263134] NET: Registered protocol family 1
[    0.263334] Trying to unpack rootfs image as initramfs...
[    0.724275] Freeing initrd memory: 7524K
[    0.724787] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.725513] audit: initializing netlink socket (disabled)
[    0.725556] type=2000 audit(0.720:1): initialized
[    0.771433] VFS: Disk quotas dquot_6.5.2
[    0.771541] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.771648] JFFS2 version 2.2. (NAND) (SUMMARY)  .. 2001-2006 Red Hat, Inc.
[    0.772059] msgmni has been set to 244
[    0.774966] alg: No test for stdrng (krng)
[    0.775300] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 
253)
[    0.775315] io scheduler noop registered
[    0.775324] io scheduler deadline registered
[    0.775392] io scheduler cfq registered (default)
[    0.787529] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.788332] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
[    1.095489] console [ttyS0] enabled
[    1.107446] brd: module loaded
[    1.111378] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron NAND 
256MiB 3,3V 8-bit)
[    1.120067] Scanning device for bad blocks
[    1.181929] Bad eraseblock 1541 at 0x00000c0a0000
[    1.205614] 4 cmdlinepart partitions found on MTD device orion_nand
[    1.211910] Creating 4 MTD partitions on "orion_nand":
[    1.217091] 0x000000000000-0x000000100000 : "u-boot"
[    1.222951] uncorrectable error : 
[    1.226867] 0x000000100000-0x000000500000 : "uImage"
[    1.232991] ftl_cs: FTL header not found.
[    1.237509] 0x000000500000-0x000002500000 : "rootfs"
[    1.243458] ftl_cs: FTL header not found.
[    1.247945] 0x000002500000-0x000010000000 : "data"
[    1.253871] ftl_cs: FTL header not found.
[    1.260446] mice: PS/2 mouse device common for all mice
[    2.275265] rtc-mv rtc-mv: internal RTC not ticking
[    2.280432] i2c /dev entries driver
[    2.284617] cpuidle: using governor ladder
[    2.289270] cpuidle: using governor menu
[    2.293419] Registered led device: plug:green:health
[    2.298632] mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
[    2.305029] mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
[    2.345292] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[    2.385289] mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
[    2.425288] mv_xor mv_xor.2: Marvell XOR: ( xor cpy )
[    2.465289] mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )
[    2.471900] TCP cubic registered
[    2.475143] NET: Registered protocol family 17
[    2.480250] registered taskstats version 1
[    2.484929] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    2.491313] Freeing init memory: 124K
/uinitrd-kirkwood.gz:  Loading kernel modules from initrd image:
[    2.650743] SCSI subsystem initialized
[    3.088651] usbcore: registered new interface driver usbfs
[    3.094508] usbcore: registered new interface driver hub
[    3.100114] usbcore: registered new device driver usb
[    3.132033] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.138719] orion-ehci orion-ehci.0: Marvell Orion EHCI
[    3.144031] orion-ehci orion-ehci.0: new USB bus registered, assigned bus 
number 1
[    3.175279] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[    3.195262] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[    3.201275] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    3.208113] usb usb1: New USB device strings: Mfr=3, Product=2, 
SerialNumber=1
[    3.215387] usb usb1: Product: Marvell Orion EHCI
[    3.220117] usb usb1: Manufacturer: Linux 2.6.33.5-kirkwood ehci_hcd
[    3.226513] usb usb1: SerialNumber: orion-ehci.0
[    3.231723] hub 1-0:1.0: USB hub found
[    3.235561] hub 1-0:1.0: 1 port detected
[    3.259074] uhci_hcd: USB Universal Host Controller Interface driver
[    3.336091] usbcore: registered new interface driver hiddev
[    3.341872] usbcore: registered new interface driver usbhid
[    3.347507] usbhid: USB HID core driver
[    3.370294] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.393687] usbcore: registered new interface driver libusual
[    3.435382] Initializing USB Mass Storage driver...
[    3.440616] usbcore: registered new interface driver usb-storage
[    3.446690] USB Mass Storage support registered.
[    3.465468] usbcore: registered new interface driver ums-cypress
[    3.487741] usbcore: registered new interface driver ums-usbat
[    3.507499] usbcore: registered new interface driver ums-freecom
[    3.528616] usbcore: registered new interface driver ums-isd200
[    3.552299] usbcore: registered new interface driver ums-sddr09
[    3.558350] usb 1-1: new high speed USB device using orion-ehci and address 2
[    3.580614] usbcore: registered new interface driver ums-sddr55
[    3.602691] usbcore: registered new interface driver ums-alauda
[    3.624050] usbcore: registered new interface driver ums-jumpshot
[    3.646965] usbcore: registered new interface driver ums-onetouch
[    3.716802] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[    3.723543] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    3.745348] usb 1-1: Product: USB2.0 Hub
[    3.759740] hub 1-1:1.0: USB hub found
[    3.764301] hub 1-1:1.0: 4 ports detected
[    3.924850] device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: 
dm-de...@redhat.com
[    4.045732] usb 1-1.4: new high speed USB device using orion-ehci and 
address 3
[    4.270222] JFS: nTxBlock = 980, nTxLock = 7843
[    4.532015] SGI XFS with ACLs, security attributes, realtime, large 
block/inode numbers, no debug enabled
[    4.542798] SGI XFS Quota Management subsystem
[    4.581672] Slow work thread pool: Starting up
[    4.586332] Slow work thread pool: Ready
[    4.590376] FS-Cache: Loaded
[    4.617334] MV-643xx 10/100/1000 ethernet driver version 1.4
[    4.623241] mv643xx_eth smi: probed
[    4.628886] net eth0: port 0 with MAC address 00:10:75:1a:95:a0
[    4.764940] RPC: Registered udp transport module.
[    4.769734] RPC: Registered tcp transport module.
[    4.774457] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    4.887928] usb 1-1.4: New USB device found, idVendor=125f, idProduct=c03a
[    4.894849] usb 1-1.4: New USB device strings: Mfr=1, Product=2, 
SerialNumber=3
[    4.917769] usb 1-1.4: Product: ADATA USB Flash Drive
[    4.922855] usb 1-1.4: Manufacturer: ADATA
[    4.935279] usb 1-1.4: SerialNumber: AA04012700009840
[    4.965357] scsi0 : usb-storage 1-1.4:1.0
[    5.030233] mmc0: mvsdio driver initialized, lacking card detect (fall back 
to polling)
[    9.966517] scsi 0:0:0:0: Direct-Access     ADATA    USB Flash Drive  1100 
PQ: 0 ANSI: 0 CCS
[    9.977074] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    9.983209] sd 0:0:0:0: [sda] 7925760 512-byte logical blocks: (4.05 GB/3.77 
GiB)
[    9.991445] sd 0:0:0:0: [sda] Write Protect is off
[    9.996345] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   10.005066] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   10.011221]  sda: sda1 sda2
[   10.018943] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   10.025068] sd 0:0:0:0: [sda] Attached SCSI removable disk
mdadm: No arrays found in config file
  No volume groups found
[   16.486105] EXT4-fs (sda1): mounted filesystem with ordered data mode
/uinitrd-kirkwood.gz:  exiting
INIT: version 2.86 booting
Triggering udev events:  /sbin/udevadm trigger --action=add
[   18.524945] Adding 240240k swap on /dev/sda2.  Priority:-1 extents:1 
across:240240k 
Loading fuse module[   18.622816] fuse init (API version 7.13)
.
Mounting fuse control filesystem.
Setting system time from the hardware clock (localtime).
Cannot access the Hardware Clock via any known method.
Use the --debug option to see the details of our search for an access method.
Testing root filesystem status:  read-only filesystem
Checking root filesystem:
fsck from util-linux-ng 2.17.2
/dev/sda1: Superblock last mount time (Mon Dec 27 16:34:20 2010,
        now = Wed Dec 31 19:00:18 1969) is in the future.


/dev/sda1: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
        (i.e., without -a or -p options)

***********************************************************
*** An error occurred during the root filesystem check. ***
*** You will now be given a chance to log into the      ***
*** system in single-user mode to fix the problem.      ***
***                                                     ***
*** If you are using the ext2 filesystem, running       ***
*** 'e2fsck -v -y <partition>' might help.              ***
***********************************************************

Once you exit the single-user shell, the system will reboot.


Type control-d to proceed with normal startup,
(or give root password for system maintenance
_______________________________________________
ARMedslack mailing list
ARMedslack@lists.armedslack.org
http://lists.armedslack.org/mailman/listinfo/armedslack

Reply via email to