[<<][openwrt][>>][..]
Fri Dec 14 09:35:27 EST 2012

Mounting USB drive in init script

cd /lib/modules/3.0.18
/sbin/insmod nls_base.ko
/sbin/insmod usbcore.ko
/sbin/insmod scsi_mod.ko
/sbin/insmod uhci-hcd.ko
/sbin/insmod usb-storage.ko
/sbin/insmod crc16.ko
/sbin/insmod jbd2.ko 
/sbin/insmod mbcache.ko

# hangs:
/sbin/insmod ext4.ko

Maybe they should be added in the same order.

[   11.268000] bgmac ssb0:1: eth0: Broadcom SSB GMAC ethernet driver (ext. Robo Switch) 94:44:52:94:60:12
[   11.404000] USB20H mdio control register: 0x80000008
[   11.672000] SCSI subsystem initialized
[   11.708000] roboswitch: Probing device eth0: found a 53115! It's a 5350.
[   11.900000] usbcore: registered new interface driver usbfs
[   11.904000] usbcore: registered new interface driver hub
[   11.912000] usbcore: registered new device driver usb
[   12.924000] wl: module license 'unspecified' taints kernel.
[   12.932000] Disabling lock debugging due to kernel taint
[   13.056000] wl0: Broadcom BCM4329 802.11 Wireless Controller 5.10.56.27
[   13.064000] SSB/BCMA glue driver successfully attached
[   13.404000] PPP generic driver version 2.4.2
[   13.456000] tun: Universal TUN/TAP device driver, 1.6
[   13.460000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[   13.680000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   13.940000] NET: Registered protocol family 24
[   14.012000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   14.016000] ehci-platform ehci-platform.0: Generic Platform EHCI Controller
[   14.024000] ehci-platform ehci-platform.0: new USB bus registered, assigned bus number 1
[   14.056000] ehci-platform ehci-platform.0: irq 5, io mem 0x18004000
[   14.072000] ehci-platform ehci-platform.0: USB 0.0 started, EHCI 1.00
[   14.080000] hub 1-0:1.0: USB hub found
[   14.084000] hub 1-0:1.0: 2 ports detected
[   14.228000] nf_conntrack version 0.5.0 (968 buckets, 3872 max)
[   14.400000] usb 1-1: new high speed USB device number 2 using ehci-platform
[   15.004000] uhci_hcd: USB Universal Host Controller Interface driver
[   15.044000] Initializing USB Mass Storage driver...
[   15.048000] scsi0 : usb-storage 1-1:1.0
[   15.056000] usbcore: registered new interface driver usb-storage
[   15.064000] USB Mass Storage support registered.
[   16.056000] scsi 0:0:0:0: Direct-Access     SanDisk  Cruzer Fit       1.22 PQ: 0 ANSI: 5
[   16.068000] sd 0:0:0:0: [sda] 31266816 512-byte logical blocks: (16.0 GB/14.9 GiB)
[   16.092000] sd 0:0:0:0: [sda] Write Protect is off
[   16.108000] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[   16.140000]  sda: sda1 sda2
[   16.156000] sd 0:0:0:0: [sda] Attached SCSI removable disk
[   18.580000] device wl0 entered promiscuous mode
[   18.616000] br-lan: port 1(wl0) entering forwarding state
[   18.620000] br-lan: port 1(wl0) entering forwarding state
[   21.452000] device eth0.0 entered promiscuous mode
[   21.456000] device eth0 entered promiscuous mode
[   21.464000] br-lan: port 2(eth0.0) entering forwarding state
[   21.468000] br-lan: port 2(eth0.0) entering forwarding state
[   30.744000] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   30.972000] EXT4-fs (sda1): warning: maximal mount count reached, running e2fsck is recommended
[   30.984000] EXT4-fs (sda1): recovery complete
[   30.992000] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   31.144000] device eth0.11 entered promiscuous mode
[   31.156000] br-wlan: port 1(eth0.11) entering forwarding state
[   31.160000] br-wlan: port 1(eth0.11) entering forwarding state
[   31.192000] device wl0 left promiscuous mode
[   31.196000] br-lan: port 1(wl0) entering forwarding state
[   31.228000] device wl0 entered promiscuous mode
[   31.232000] br-wlan: port 2(wl0) entering forwarding state
[   31.236000] br-wlan: port 2(wl0) entering forwarding state
[   32.568000] Algorithmics/MIPS FPU Emulator v1.5
[   32.940000] Adding 125948k swap on /dev/sda2.  Priority:-1 extents:1 across:125948k 
[   33.700000] sshd (1225): /proc/1225/oom_adj is deprecated, please use /proc/1225/oom_score_adj instead.
[   46.176000] br-wlan: port 1(eth0.11) entering forwarding state
[   46.240000] br-wlan: port 2(wl0) entering forwarding state


insmod scsi_mod.ko 
insmod nls_base.ko
insmod usbcore.ko
insmod ehci-hcd.ko
insmod uhci-hcd.ko
insmod usb-storage.ko

...

still hangs on ext4.ko
maybe it's better to use hotplug to load the modules, then kill hotplug

or something liek this:

/etc/init.d/boot start
kilall
mount usb
exec run-init





[Reply][About]
[<<][openwrt][>>][..]