Jump to content

Modules Don't Load on First Boot


skimpniff
 Share

Recommended Posts

I install all of my modules to the SD card. Every time I power on the Nano, the modules do not load. Once I perform a reboot, the modules are present. I ensure I do a proper Shutdown command each before powering it down, and that has not seemed to make a difference. Is there anything that can be done to ensure SD card modules load on first boot?

Link to comment
Share on other sites

  • 10 months later...

Got the same problem as OP.

@Foxtrot, do you mind take a look at my logs?

root@Pineapple:~# dmesg
[    0.000000] Linux version 3.18.36 (openwrt@651d0feeed27) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r49403) ) #40 Fri Oct 28 05:42:22 UTC 2016
[    0.000000] MyLoader: sysp=8a14b024, boardp=44b65156, parts=b69f8d32
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[    0.000000] SoC: Atheros AR9330 rev 1
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x03ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x03ffffff]
[    0.000000] Initmem setup node 0 [mem 0x00000000-0x03ffffff]
[    0.000000] On node 0 totalpages: 16384
[    0.000000] free_area_init_node: node 0, pgdat 80355cf0, node_mem_map 81000000
[    0.000000]   Normal zone: 128 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 16384 pages, LIFO batch:3
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line:  board=PINEAPPLE-NANO  console=ttyATH0,115200 rootfstype=squashfs,jffs2 noinitrd
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 60944K/65536K available (2467K kernel code, 126K rwdata, 528K rodata, 260K init, 188K bss, 4592K reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:51
[    0.000000] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:25.000MHz
[    0.000000] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
[    0.080000] pid_max: default: 32768 minimum: 301
[    0.080000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.100000] NET: Registered protocol family 16
[    0.100000] MIPS: machine is WiFi Pineapple NANO
[    0.380000] Switched to clocksource MIPS
[    0.380000] NET: Registered protocol family 2
[    0.390000] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.390000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.400000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.400000] TCP: reno registered
[    0.410000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.410000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.420000] NET: Registered protocol family 1
[    0.420000] PCI: CLS 0 bytes, default 32
[    0.420000] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.440000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.440000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.450000] msgmni has been set to 119
[    0.460000] io scheduler noop registered
[    0.460000] io scheduler deadline registered (default)
[    0.470000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.470000] ar933x-uart: ttyATH0 at MMIO 0x18020000 (irq = 11, base_baud = 1562500) is a AR933X UART
[    0.480000] console [ttyATH0] enabled
[    0.490000] bootconsole [early0] disabled
[    0.500000] m25p80 spi0.0: found mx25l12805d, expected m25p80
[    0.500000] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[    0.520000] 5 tp-link partitions found on MTD device spi0.0
[    0.520000] Creating 5 MTD partitions on "spi0.0":
[    0.520000] 0x000000000000-0x000000020000 : "u-boot"
[    0.530000] 0x000000020000-0x000000134f84 : "kernel"
[    0.540000] 0x000000134f84-0x000000ff0000 : "rootfs"
[    0.540000] mtd: device 2 (rootfs) set to be root filesystem
[    0.550000] 1 squashfs-split partitions found on MTD device rootfs
[    0.550000] 0x000000dc0000-0x000000ff0000 : "rootfs_data"
[    0.560000] 0x000000ff0000-0x000001000000 : "art"
[    0.560000] 0x000000020000-0x000000ff0000 : "firmware"
[    0.590000] libphy: ag71xx_mdio: probed
[    1.190000] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.1:04 [uid=004dd041, driver=Generic PHY]
[    1.200000] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
[    1.200000] TCP: cubic registered
[    1.200000] NET: Registered protocol family 17
[    1.210000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    1.220000] 8021q: 802.1Q VLAN Support v1.8
[    1.230000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    1.240000] Freeing unused kernel memory: 260K (8036f000 - 803b0000)
[    2.620000] init: Console is alive
[    2.620000] init: - watchdog -
[    5.290000] usbcore: registered new interface driver usbfs
[    5.300000] usbcore: registered new interface driver hub
[    5.300000] usbcore: registered new device driver usb
[    5.360000] SCSI subsystem initialized
[    5.370000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.380000] ehci-platform: EHCI generic platform driver
[    5.380000] ehci-platform ehci-platform: EHCI Host Controller
[    5.390000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
[    5.400000] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
[    5.420000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
[    5.420000] hub 1-0:1.0: USB hub found
[    5.420000] hub 1-0:1.0: 1 port detected
[    5.430000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    5.440000] ohci-platform: OHCI generic platform driver
[    5.450000] uhci_hcd: USB Universal Host Controller Interface driver
[    5.460000] usbcore: registered new interface driver usb-storage
[    5.690000] init: - preinit -
[    5.800000] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    6.390000] random: procd urandom read with 10 bits of entropy available
[    6.390000] hub 1-1:1.0: USB hub found
[    6.400000] hub 1-1:1.0: 4 ports detected
[    6.670000] mount_root: loading kmods from internal overlay
[    6.970000] usb 1-1.1: new high-speed USB device number 3 using ehci-platform
[    7.070000] jffs2: notice: (325) jffs2_build_xattr_subsystem: complete building xattr subsystem, 4 of xdatum (0 unchecked, 4 orphan) and 4 of xref (0 dead, 4 orphan) found.
[    7.090000] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[    7.100000] block: extroot: not configured
[    7.160000] jffs2: notice: (322) jffs2_build_xattr_subsystem: complete building xattr subsystem, 4 of xdatum (0 unchecked, 4 orphan) and 4 of xref (0 dead, 4 orphan) found.
[    7.240000] usb 1-1.2: new high-speed USB device number 4 using ehci-platform
[    7.290000] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[    7.300000] block: extroot: not configured
[    7.310000] mount_root: switching to jffs2 overlay
[    7.360000] procd: - early -
[    7.370000] procd: - watchdog -
[    7.550000] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[    7.550000] scsi host0: usb-storage 1-1.2:1.0
[    7.720000] usb 1-1.3: new high-speed USB device number 5 using ehci-platform
[    8.110000] procd: - ubus -
[    8.560000] scsi 0:0:0:0: Direct-Access     Generic  STORAGE DEVICE   0933 PQ: 0 ANSI: 6
[    8.930000] sd 0:0:0:0: [sda] 31116288 512-byte logical blocks: (15.9 GB/14.8 GiB)
[    8.940000] sd 0:0:0:0: [sda] Write Protect is off
[    8.940000] sd 0:0:0:0: [sda] Mode Sense: 21 00 00 00
[    8.940000] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    8.990000]  sda: sda1
[    9.010000] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    9.250000] procd: - init -
[   13.700000] Loading modules backported from Linux version v4.4-rc5-1913-gc8fdf68
[   13.710000] Backport generated by backports.git backports-20151218-0-g2f58d9d
[   13.890000] ath: EEPROM regdomain: 0x0
[   13.890000] ath: EEPROM indicates default country code should be used
[   13.890000] ath: doing EEPROM country->regdmn map search
[   13.890000] ath: country maps to regdmn code: 0x3a
[   13.890000] ath: Country alpha2 being used: US
[   13.890000] ath: Regpair used: 0x3a
[   13.900000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   13.910000] ieee80211 phy0: Atheros AR9330 Rev:1 mem=0xb8100000, irq=2
[   13.920000] usb 1-1.1: ath9k_htc: Firmware ath9k_htc/htc_9271-1.4.0.fw requested
[   13.930000] usb 1-1.3: ath9k_htc: Firmware ath9k_htc/htc_9271-1.4.0.fw requested
[   13.940000] usbcore: registered new interface driver ath9k_htc
[   13.970000] RPC: Registered named UNIX socket transport module.
[   13.980000] RPC: Registered udp transport module.
[   13.980000] RPC: Registered tcp transport module.
[   13.990000] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   14.030000] tun: Universal TUN/TAP device driver, 1.6
[   14.030000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[   14.080000] usbcore: registered new interface driver rt2800usb
[   14.100000] usbcore: registered new interface driver rtl8187
[   14.170000] usbcore: registered new interface driver rtl8192cu
[   14.210000] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   14.230000] usbcore: registered new interface driver cdc_acm
[   14.230000] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[   14.240000] usbcore: registered new interface driver cdc_wdm
[   14.270000] nf_conntrack version 0.5.0 (956 buckets, 3824 max)
[   14.290000] usb 1-1.3: ath9k_htc: Transferred FW: ath9k_htc/htc_9271-1.4.0.fw, size: 51008
[   14.300000] usb 1-1.1: ath9k_htc: Transferred FW: ath9k_htc/htc_9271-1.4.0.fw, size: 51008
[   14.350000] usbcore: registered new interface driver ums-alauda
[   14.370000] usbcore: registered new interface driver ums-cypress
[   14.380000] usbcore: registered new interface driver ums-datafab
[   14.390000] usbcore: registered new interface driver ums-freecom
[   14.390000] usbcore: registered new interface driver ums-isd200
[   14.400000] usbcore: registered new interface driver ums-jumpshot
[   14.410000] usbcore: registered new interface driver ums-karma
[   14.410000] usbcore: registered new interface driver ums-sddr09
[   14.420000] usbcore: registered new interface driver ums-sddr55
[   14.430000] usbcore: registered new interface driver ums-usbat
[   14.450000] usbcore: registered new interface driver usbserial
[   14.460000] usbcore: registered new interface driver usbserial_generic
[   14.470000] usbserial: USB Serial support registered for generic
[   14.520000] xt_time: kernel timezone is -0000
[   14.530000] usbcore: registered new interface driver asix
[   14.540000] usbcore: registered new interface driver ax88179_178a
[   14.550000] usbcore: registered new interface driver cdc_ether
[   14.560000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   14.570000] ath9k_htc 1-1.3:1.0: ath9k_htc: HTC initialized with 33 credits
[   14.580000] ath9k_htc 1-1.1:1.0: ath9k_htc: HTC initialized with 33 credits
[   14.600000] usbcore: registered new interface driver pl2303
[   14.600000] usbserial: USB Serial support registered for pl2303
[   14.620000] PPP generic driver version 2.4.2
[   14.620000] NET: Registered protocol family 24
[   14.630000] usbcore: registered new interface driver qmi_wwan
[   14.640000] usbcore: registered new interface driver rndis_host
[   14.650000] usbcore: registered new interface driver sierra_net
[   14.670000] usbcore: registered new interface driver option
[   14.670000] usbserial: USB Serial support registered for GSM modem (1-port)
[   14.870000] ath9k_htc 1-1.1:1.0: ath9k_htc: FW Version: 1.4
[   14.880000] ath9k_htc 1-1.1:1.0: FW RMW support: On
[   14.880000] ath: EEPROM regdomain: 0x0
[   14.880000] ath: EEPROM indicates default country code should be used
[   14.880000] ath: doing EEPROM country->regdmn map search
[   14.880000] ath: country maps to regdmn code: 0x3a
[   14.880000] ath: Country alpha2 being used: US
[   14.880000] ath: Regpair used: 0x3a
[   14.890000] ieee80211 phy2: Atheros AR9271 Rev:1
[   14.920000] ath9k_htc 1-1.3:1.0: ath9k_htc: FW Version: 1.4
[   14.930000] ath9k_htc 1-1.3:1.0: FW RMW support: On
[   14.930000] ath: EEPROM regdomain: 0x809c
[   14.930000] ath: EEPROM indicates we should expect a country code
[   14.930000] ath: doing EEPROM country->regdmn map search
[   14.930000] ath: country maps to regdmn code: 0x52
[   14.930000] ath: Country alpha2 being used: CN
[   14.930000] ath: Regpair used: 0x52
[   14.940000] ieee80211 phy1: Atheros AR9271 Rev:1
[   24.000000] device eth0 entered promiscuous mode
[   24.200000] random: nonblocking pool is initialized
[   29.840000] device wlan0 entered promiscuous mode
[   30.060000] br-lan: port 2(wlan0) entered forwarding state
[   30.060000] br-lan: port 2(wlan0) entered forwarding state
[   30.180000] device wlan0-1 entered promiscuous mode
[   30.200000] br-lan: port 3(wlan0-1) entered forwarding state
[   30.200000] br-lan: port 3(wlan0-1) entered forwarding state
[   30.750000] br-lan: port 3(wlan0-1) entered disabled state
[   32.060000] br-lan: port 2(wlan0) entered forwarding state
[   33.180000] br-lan: port 3(wlan0-1) entered forwarding state
[   33.180000] br-lan: port 3(wlan0-1) entered forwarding state
[   35.180000] br-lan: port 3(wlan0-1) entered forwarding state
[   89.520000] eth0: link up (100Mbps/Full duplex)
[   89.520000] br-lan: port 1(eth0) entered forwarding state
[   89.530000] br-lan: port 1(eth0) entered forwarding state
[   91.530000] br-lan: port 1(eth0) entered forwarding state

Link to comment
Share on other sites

Also, logread output (Hak5 forum security features didn't allow me to post the whole output, so I cut what seems to be relevant).

Fri Oct 27 12:35:17 2017 user.info kernel: [    8.110000] procd: - ubus -
Fri Oct 27 12:35:17 2017 kern.notice kernel: [    8.560000] scsi 0:0:0:0: Direct-Access     Generic  STORAGE DEVICE   0933 PQ: 0 ANSI: 6
Fri Oct 27 12:35:17 2017 kern.notice kernel: [    8.930000] sd 0:0:0:0: [sda] 31116288 512-byte logical blocks: (15.9 GB/14.8 GiB)
Fri Oct 27 12:35:17 2017 kern.notice kernel: [    8.940000] sd 0:0:0:0: [sda] Write Protect is off
Fri Oct 27 12:35:17 2017 kern.debug kernel: [    8.940000] sd 0:0:0:0: [sda] Mode Sense: 21 00 00 00
Fri Oct 27 12:35:17 2017 kern.notice kernel: [    8.940000] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
Fri Oct 27 12:35:17 2017 kern.info kernel: [    8.990000]  sda: sda1
Fri Oct 27 12:35:17 2017 kern.notice kernel: [    9.010000] sd 0:0:0:0: [sda] Attached SCSI removable disk
Fri Oct 27 12:35:17 2017 user.info kernel: [    9.250000] procd: - init -
Fri Oct 27 12:35:17 2017 kern.info kernel: [   13.700000] Loading modules backported from Linux version v4.4-rc5-1913-gc8fdf68
Fri Oct 27 12:35:17 2017 kern.info kernel: [   13.710000] Backport generated by backports.git backports-20151218-0-g2f58d9d
Fri Oct 27 12:35:17 2017 kern.debug kernel: [   13.890000] ath: EEPROM regdomain: 0x0
Fri Oct 27 12:35:17 2017 kern.debug kernel: [   13.890000] ath: EEPROM indicates default country code should be used
Fri Oct 27 12:35:17 2017 kern.debug kernel: [   13.890000] ath: doing EEPROM country->regdmn map search
Fri Oct 27 12:35:17 2017 kern.debug kernel: [   13.890000] ath: country maps to regdmn code: 0x3a
Fri Oct 27 12:35:17 2017 kern.debug kernel: [   13.890000] ath: Country alpha2 being used: US
Fri Oct 27 12:35:17 2017 kern.debug kernel: [   13.890000] ath: Regpair used: 0x3a
Fri Oct 27 12:35:17 2017 kern.debug kernel: [   13.900000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
Fri Oct 27 12:35:17 2017 kern.info kernel: [   13.910000] ieee80211 phy0: Atheros AR9330 Rev:1 mem=0xb8100000, irq=2
Fri Oct 27 12:35:17 2017 kern.info kernel: [   13.920000] usb 1-1.1: ath9k_htc: Firmware ath9k_htc/htc_9271-1.4.0.fw requested
Fri Oct 27 12:35:17 2017 kern.info kernel: [   13.930000] usb 1-1.3: ath9k_htc: Firmware ath9k_htc/htc_9271-1.4.0.fw requested
Fri Oct 27 12:35:17 2017 kern.info kernel: [   13.940000] usbcore: registered new interface driver ath9k_htc
Fri Oct 27 12:35:17 2017 kern.info kernel: [   13.970000] RPC: Registered named UNIX socket transport module.
Fri Oct 27 12:35:17 2017 kern.info kernel: [   13.980000] RPC: Registered udp transport module.
Fri Oct 27 12:35:17 2017 kern.info kernel: [   13.980000] RPC: Registered tcp transport module.
Fri Oct 27 12:35:17 2017 kern.info kernel: [   13.990000] RPC: Registered tcp NFSv4.1 backchannel transport module.
Fri Oct 27 12:35:17 2017 kern.info kernel: [   14.030000] tun: Universal TUN/TAP device driver, 1.6
Fri Oct 27 12:35:17 2017 kern.info kernel: [   14.030000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
Fri Oct 27 12:35:17 2017 kern.info kernel: [   14.080000] usbcore: registered new interface driver rt2800usb
Fri Oct 27 12:35:17 2017 kern.info kernel: [   14.100000] usbcore: registered new interface driver rtl8187
Fri Oct 27 12:35:17 2017 kern.info kernel: [   14.170000] usbcore: registered new interface driver rtl8192cu
Fri Oct 27 12:35:17 2017 kern.notice kernel: [   14.210000] sd 0:0:0:0: Attached scsi generic sg0 type 0
Fri Oct 27 12:35:17 2017 kern.info kernel: [   14.230000] usbcore: registered new interface driver cdc_acm

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...