[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Debian tries to mount root too early



I've just installed Debian/NSLU2 Stable 5.0.1 from
http://www.slug-firmware.net/ on an NSLU2, but it wont boot.  The
problem seems to be that it tried to mount root before the disks are
scanned and ready.  I suppose a sleep in the boot scripts would fix
it, but since they're in the ram disk, would that require me to
rebuild the image and reflash?  Any other way?  Any kernel options
that might help?

Here's what the serial port prints:

++
Ethernet eth0: MAC address 00:0f:66:7c:05:47
IP: 192.168.0.1/255.255.255.0, Gateway: 192.168.0.1
Default server: 0.0.0.0, DNS server IP: 0.0.0.0

RedBoot(tm) bootstrap and debug environment [ROMRAM]
Red Hat certified release, version 1.92 - built 15:15:26, Sep  5 2005

Platform: IXDP425 Development Platform (XScale)
Copyright (C) 2000, 2001, 2002, Red Hat, Inc.

RAM: 0x00000000-0x04000000, 0x00072490-0x03ff3000 available
FLASH: 0x50000000 - 0x50800000, 64 blocks of 0x00020000 bytes each.
== Executing boot script in 2.000 seconds - enter ^C to abort
RedBoot> boot;exec 0x01d00000
have eRcOmM
copy kernel code from flash to RAM
copy ramdisk file from flash to RAM
run kernel
Using base address 0x01d00000 and length 0x0000a664


APEX Boot Loader 1.4.15.2 -- Copyright (c) 2004,2005,2006,2007 Marc Singer

APEX comes with ABSOLUTELY NO WARRANTY.  It is free software and you
are welcome to redistribute it under certain circumstances.
For details, refer to the file COPYING in the program source.

  apex => mem:0x00200000+0xa654   (42580 bytes)
  env  => nor:0x7c000+15k         (in-use)

Use the command 'help help' to get started.

# copy -s fis://kernel 0x00008000
1441760 bytes transferred
# copy -s fis://ramdisk 0x01000000
6291440 bytes transferred
# wait 10 Type ^C key to cancel autoboot.
Type ^C key to cancel autoboot.
# boot
ATAG_HEADER
ATAG_MEM: start 0x00000000  size 0x02000000
ATAG_CMDLINE: (55 bytes) 'console=ttyS0,115200 rtc-x1205.probe=0,0x6f noirqdebug'
ATAG_INITRD2: start 0x01000000  size 0x005ffff0
ATAG_END
Booting kernel at 0x00008000...
Uncompressing Linux............................................................................................. done, booting the kernel.
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 2.6.26-2-ixp4xx (Debian 2.6.26-15lenny2) (dannf@debian.org) (gcc version 4.1.3 20080704 (prerelease) (Debian 4.1.2-25)) #1 Thu May 14 05:28:24 UTC 2009
[    0.000000] CPU: XScale-IXP42x Family [690541f1] revision 1 (ARMv5TE), cr=0000397f
[    0.000000] Machine: Linksys NSLU2
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] CPU0: D VIVT undefined 5 cache
[    0.000000] CPU0: I cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
[    0.000000] CPU0: D cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line: console=ttyS0,115200 rtc-x1205.probe=0,0x6f noirqdebug
[    0.000000] Unknown boot option `rtc-x1205.probe=0,0x6f': ignoring
[    0.000000] IRQ lockup detection disabled
[    0.000000] PID hash table entries: 128 (order: 7, 512 bytes)
[42949372.960000] Console: colour dummy device 80x30
[42949372.960000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[42949372.960000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[42949372.960000] Memory: 32MB = 32MB total
[42949372.960000] Memory: 23256KB available (2636K code, 290K data, 116K init)
[42949373.200000] Security Framework initialized
[42949373.200000] SELinux:  Disabled at boot.
[42949373.200000] Capability LSM initialized
[42949373.200000] Mount-cache hash table entries: 512
[42949373.200000] Initializing cgroup subsys ns
[42949373.200000] Initializing cgroup subsys cpuacct
[42949373.200000] Initializing cgroup subsys devices
[42949373.200000] CPU: Testing write buffer coherency: ok
[42949373.200000] net_namespace: 652 bytes
[42949373.200000] NET: Registered protocol family 16
[42949373.210000] IXP4xx: Using 16MiB expansion bus window size
[42949373.210000] NSLU2: Using MAC address 00:0f:66:7c:05:47 for port 0
[42949373.210000] PCI: IXP4xx is host
[42949373.210000] PCI: IXP4xx Using direct access for memory space
[42949373.210000] PCI: bus0: Fast back to back transfers disabled
[42949373.210000] dmabounce: registered device 0000:00:01.0 on pci bus
[42949373.210000] dmabounce: registered device 0000:00:01.1 on pci bus
[42949373.210000] dmabounce: registered device 0000:00:01.2 on pci bus
[42949373.250000] NET: Registered protocol family 2
[42949373.340000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[42949373.340000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[42949373.340000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[42949373.340000] TCP: Hash tables configured (established 1024 bind 1024)
[42949373.340000] TCP reno registered
[42949373.370000] NET: Registered protocol family 1
[42949373.370000] checking if image is initramfs... it is
[42949377.360000] Freeing initrd memory: 6143K
[42949377.360000] NetWinder Floating Point Emulator V0.97 (double precision)
[42949377.360000] audit: initializing netlink socket (disabled)
[42949377.360000] type=2000 audit(4.400:1): initialized
[42949377.370000] VFS: Disk quotas dquot_6.5.1
[42949377.370000] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[42949377.370000] JFFS2 version 2.2. (NAND) (SUMMARY)  B) 2001-2006 Red Hat, Inc.
[42949377.370000] msgmni has been set to 57
[42949377.370000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[42949377.370000] io scheduler noop registered
[42949377.370000] io scheduler anticipatory registered
[42949377.370000] io scheduler deadline registered
[42949377.370000] io scheduler cfq registered (default)
[42949377.410000] Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled
[42949377.420000] serial8250.0: ttyS0 at MMIO 0xc8000000 (irq = 15) is a XScale
[42949377.420000] console [ttyS0] enabled
[42949377.760000] serial8250.0: ttyS1 at MMIO 0xc8001000 (irq = 13) is a XScale
[42949377.790000] brd: module loaded
[42949377.800000] IXP4XX-Flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
[42949377.810000]  Intel/Sharp Extended Query Table at 0x0031
[42949377.810000] Using buffer write method
[42949377.820000] cfi_cmdset_0001: Erase suspend on write enabled
[42949377.820000] Searching for RedBoot partition table in IXP4XX-Flash.0 at offset 0x7e0000
[42949377.920000] 6 RedBoot partitions found on MTD device IXP4XX-Flash.0
[42949377.930000] Creating 6 MTD partitions on "IXP4XX-Flash.0":
[42949377.940000] 0x00000000-0x00040000 : "RedBoot"
[42949377.940000] 0x00040000-0x00060000 : "SysConf"
[42949377.950000] 0x00060000-0x00080000 : "Loader"
[42949377.960000] 0x00080000-0x001e0000 : "Kernel"
[42949377.970000] 0x001e0000-0x007e0000 : "Ramdisk"
[42949377.970000] 0x007e0000-0x00800000 : "FIS directory"
[42949377.980000] mice: PS/2 mouse device common for all mice
[42949377.990000] i2c /dev entries driver
[42949378.010000] rtc-x1205 0-006f: chip found, driver version 1.0.8
[42949378.020000] rtc-x1205 0-006f: rtc core: registered rtc-x1205 as rtc0
[42949378.020000] i2c-gpio i2c-gpio.0: using pins 7 (SDA) and 6 (SCL)
[42949378.040000] IXP4xx Watchdog Timer: heartbeat 60 sec
[42949378.040000] Registered led device: nslu2:green:ready
[42949378.050000] Registered led device: nslu2:red:status
[42949378.060000] Registered led device: nslu2:green:disk-1
[42949378.060000] Registered led device: nslu2:green:disk-2
[42949378.070000] NET: Registered protocol family 26
[42949378.080000] TCP cubic registered
[42949378.080000] NET: Registered protocol family 17
[42949378.090000] XScale DSP coprocessor detected.
[42949378.090000] registered taskstats version 1
[42949378.100000] rtc-x1205 0-006f: setting system clock to 2009-05-27 05:27:54 UTC (1243402074)
[42949378.110000] Freeing init memory: 116K
Loading, please wait...
Begin: Loading essential drivers ... [42949378.950000] SCSI subsystem initialized
[42949379.090000] usbcore: registered new interface driver usbfs
[42949379.100000] usbcore: registered new interface driver hub
[42949379.100000] usbcore: registered new device driver usb
[42949379.150000] Initializing USB Mass Storage driver...
[42949379.160000] usbcore: registered new interface driver usb-storage
[42949379.160000] USB Mass Storage support registered.
[42949379.320000] PCI: enabling device 0000:00:01.2 (0140 -> 0142)
[42949379.330000] ehci_hcd 0000:00:01.2: EHCI Host Controller
[42949379.330000] ehci_hcd 0000:00:01.2: new USB bus registered, assigned bus number 1
[42949379.370000] ehci_hcd 0000:00:01.2: irq 26, io mem 0x48002000
[42949379.390000] ehci_hcd 0000:00:01.2: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
[42949379.390000] usb usb1: configuration #1 chosen from 1 choice
[42949379.400000] hub 1-0:1.0: USB hub found
[42949379.410000] hub 1-0:1.0: 5 ports detected
[42949379.520000] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[42949379.530000] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[42949379.530000] usb usb1: Product: EHCI Host Controller
[42949379.540000] usb usb1: Manufacturer: Linux 2.6.26-2-ixp4xx ehci_hcd
[42949379.550000] usb usb1: SerialNumber: 0000:00:01.2
[42949379.830000] usb 1-1: new high speed USB device using ehci_hcd and address 2
done.
Begin: Running /scripts/init-premount ... [42949379.980000] usb 1-1: configuration #1 chosen from 1 choice
[42949379.990000] scsi0 : SCSI emulation for USB Mass Storage devices
[42949380.000000] usb 1-1: New USB device found, idVendor=058f, idProduct=6361
[42949380.010000] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[42949380.010000] usb 1-1: Product: USB Reader
[42949380.020000] usb 1-1: Manufacturer:
[42949380.020000] usb 1-1: SerialNumber: 058F12M111B
done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... Begin: Loading[42949384.680000] md: raid1 personality registered for level 1
Success: loaded module raid1.
done.
Begin: Assembling all MD arrays ... [42949384.810000] md: md0 stopped.
mdadm: no devices found for /dev/md0
[42949384.960000] md: md1 stopped.
[42949385.060000] scsi 0:0:0:0: Direct-Access     Generic  CF Reader        1.01 PQ: 0 ANSI: 0
[42949385.080000] scsi 0:0:0:1: Direct-Access     Generic  SM/SD/MS Reader  1.00 PQ: 0 ANSI: 0
mdadm: no devices found for /dev/md1
[42949385.380000] Driver 'sd' needs updating - please use bus_type methods
Failure: failed to assemble all arrays.
[42949385.680000] sd 0:0:0:0: [sda] 2015232 512-byte hardware sectors (1032 MB)
[42949385.690000] sd 0:0:0:0: [sda] Write Protect is off
[42949385.700000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[42949385.710000] sd 0:0:0:0: [sda] 2015232 512-byte hardware sectors (1032 MB)
[42949385.720000] sd 0:0:0:0: [sda] Write Protect is off
[42949385.720000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[42949385.730000]  sda: sda1 sda2
[42949385.740000] sd 0:0:0:0: [sda] Attached SCSI removable disk
done.
Begin: Waiting for udev to process events ... [42949386.100000] sd 0:0:0:1: [sdb] 1961984 512-byte hardware sectors (1005 MB)
[42949386.110000] sd 0:0:0:1: [sdb] Write Protect is off
[42949386.110000] sd 0:0:0:1: [sdb] Assuming drive cache: write through
[42949386.130000] sd 0:0:0:1: [sdb] 1961984 512-byte hardware sectors (1005 MB)
[42949386.130000] sd 0:0:0:1: [sdb] Write Protect is off
[42949386.140000] sd 0:0:0:1: [sdb] Assuming drive cache: write through
[42949386.150000]  sdb: sdb1 sdb2
[42949386.150000] sd 0:0:0:1: [sdb] Attached SCSI removable disk
done.
done.
Begin: Running /scripts/local-premount ... done.
mount: mounting /dev/md0 on /root failed: No such device
Begin: Running /scripts/local-bottom ... done.
done.
Begin: Running /scripts/init-bottom ... mount: mounting /dev on /root/dev failed: No such file or directory
done.
mount: mounting /sys on /root/sys failed: No such file or directory
mount: mounting /proc on /root/proc failed: No such file or directory
Target filesystem doesn't have /sbin/init.
No init found. Try passing init= bootarg.


BusyBox v1.10.2 (Debian 1:1.10.2-2) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/bin/sh: can't access tty; job control turned off
(initramfs)

-- 
Steinar ; NIL DIFFICILE VOLENTI ; http://latinitas.org ; http://voksenlia.net


Reply to: