|
我这里用的是无涯的带4G接口的路由器: mt7620a 32MB flash + 128MB DDR2
但是烧录完固件之后,发现mount_root执行太久了,也就是挂载 jffs2 文件系统,大约需要200秒左右。
在这200秒期间,执行的任何操作都是不生效的,比如开启wifi,重启修改上网方式等等。
mount_root 执行结束后,一切都OK,以后重启系统都没有问题了。
dmesg如下,可以看到最后的一句已用时213秒。有什么办法可以优化下,还是说只有裁剪内核一条路?:
- [ 0.000000] Linux version 3.18.44 (qlliu@ubuntu) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 unknown) ) #1 Tue Nov 29 11:22:14 CST 2016
- [ 0.000000] Board has DDR2
- [ 0.000000] Analog PMU set to hw control
- [ 0.000000] Digital PMU set to hw control
- [ 0.000000] SoC Type: MediaTek MT7620A ver:2 eco:6
- [ 0.000000] bootconsole [early0] enabled
- [ 0.000000] CPU0 revision is: 00019650 (MIPS 24KEc)
- [ 0.000000] MIPS: machine is Tsr01
- [ 0.000000] Determined physical RAM map:
- [ 0.000000] memory: 08000000 @ 00000000 (usable)
- [ 0.000000] Initrd not found or empty - disabling initrd
- [ 0.000000] Zone ranges:
- [ 0.000000] Normal [mem 0x00000000-0x07ffffff]
- [ 0.000000] Movable zone start for each node
- [ 0.000000] Early memory node ranges
- [ 0.000000] node 0: [mem 0x00000000-0x07ffffff]
- [ 0.000000] Initmem setup node 0 [mem 0x00000000-0x07ffffff]
- [ 0.000000] On node 0 totalpages: 32768
- [ 0.000000] free_area_init_node: node 0, pgdat 803300d0, node_mem_map 81000000
- [ 0.000000] Normal zone: 256 pages used for memmap
- [ 0.000000] Normal zone: 0 pages reserved
- [ 0.000000] Normal zone: 32768 pages, LIFO batch:7
- [ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
- [ 0.000000] Primary data cache 32kB, 4-way, PIPT, no 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: 32512
- [ 0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
- [ 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] Writing ErrCtl register=00011000
- [ 0.000000] Readback ErrCtl register=00011000
- [ 0.000000] Memory: 126144K/131072K available (2673K kernel code, 132K rwdata, 556K rodata, 148K init, 187K bss, 4928K reserved)
- [ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
- [ 0.000000] NR_IRQS:256
- [ 0.000000] CPU Clock: 580MHz
- [ 0.000000] systick: running - mult: 214748, shift: 32
- [ 0.010000] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
- [ 0.070000] pid_max: default: 32768 minimum: 301
- [ 0.070000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
- [ 0.080000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
- [ 0.090000] pinctrl core: initialized pinctrl subsystem
- [ 0.100000] NET: Registered protocol family 16
- [ 0.110000] rt2880-pinmux pinctrl: try to register 73 pins ...
- [ 0.120000] pinctrl core: registered pin 0 (io0) on rt2880-pinmux
- 省略部分pinctrl core
- [ 0.840000] pinctrl core: registered pin 72 (io72) on rt2880-pinmux
- [ 0.850000] pinctrl core: add 3 pinmux maps
- [ 0.850000] rt2880-pinmux pinctrl: found group selector 11 for wled
- [ 0.860000] rt2880-pinmux pinctrl: found group selector 0 for i2c
- 省略部分rt2880-pinmux pinctrl
- [ 0.980000] rt2880-pinmux pinctrl: request pin 14 (io14) for pinctrl
- [ 0.990000] rt2880-pinmux pinctrl: failed to lookup the sleep state
- [ 1.000000] pinctrl core: add 1 pinmux maps
- [ 1.010000] rt2880-pinmux pinctrl: found group selector 8 for pcie
- [ 1.020000] rt2880-pinmux pinctrl: request pin 36 (io36) for 10140000.pcie
- [ 1.280000] mt7620-pci 10140000.pcie: PCIE0 no card, disable it(RST&CLK)
- [ 1.290000] mt7620-pci: probe of 10140000.pcie failed with error -1
- [ 1.310000] rt2880_gpio 10000600.gpio: registering 24 gpios
- [ 1.320000] rt2880_gpio 10000600.gpio: registering 24 irq handlers
- [ 1.330000] rt2880_gpio 10000688.gpio: registering 1 gpios
- [ 1.340000] rt2880_gpio 10000688.gpio: registering 1 irq handlers
- [ 1.350000] usbcore: registered new interface driver usbfs
- [ 1.360000] usbcore: registered new interface driver hub
- [ 1.370000] usbcore: registered new device driver usb
- [ 1.380000] Switched to clocksource systick
- [ 1.390000] NET: Registered protocol family 2
- [ 1.390000] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
- [ 1.410000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
- [ 1.420000] TCP: Hash tables configured (established 1024 bind 1024)
- [ 1.430000] TCP: reno registered
- [ 1.440000] UDP hash table entries: 256 (order: 0, 4096 bytes)
- [ 1.450000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
- [ 1.460000] NET: Registered protocol family 1
- [ 1.470000] PCI: CLS 0 bytes, default 32
- [ 1.490000] rt-timer 10000100.timer: maximum frequency is 2441Hz
- [ 1.500000] alarmtimer alarmtimer: no of_node; not parsing pinctrl DT
- [ 1.510000] futex hash table entries: 256 (order: -1, 3072 bytes)
- [ 1.530000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
- [ 1.540000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
- [ 1.570000] msgmni has been set to 246
- [ 1.580000] io scheduler noop registered
- [ 1.590000] io scheduler deadline registered (default)
- [ 1.600000] ralink-usb-phy usbphy: invalid resource
- [ 1.610000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
- [ 1.620000] serial8250 serial8250: no of_node; not parsing pinctrl DT
- [ 1.630000] pinctrl core: add 1 pinmux maps
- [ 1.640000] rt2880-pinmux pinctrl: found group selector 3 for uartlite
- [ 1.650000] rt2880-pinmux pinctrl: request pin 15 (io15) for 10000c00.uartlite
- [ 1.670000] rt2880-pinmux pinctrl: request pin 16 (io16) for 10000c00.uartlite
- [ 1.680000] console [ttyS0] disabled
- [ 1.690000] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a 16550A
- [ 1.710000] console [ttyS0] enabled
- [ 1.720000] bootconsole [early0] disabled
- [ 1.740000] pinctrl core: add 1 pinmux maps
- [ 1.750000] rt2880-pinmux pinctrl: found group selector 2 for spi
- [ 1.760000] rt2880-pinmux pinctrl: request pin 3 (io3) for 10000b00.spi
- [ 1.770000] rt2880-pinmux pinctrl: request pin 4 (io4) for 10000b00.spi
- [ 1.790000] rt2880-pinmux pinctrl: request pin 5 (io5) for 10000b00.spi
- [ 1.800000] rt2880-pinmux pinctrl: request pin 6 (io6) for 10000b00.spi
- [ 1.820000] m25p80 spi32766.0: found w25q256, expected en25q64
- [ 1.830000] m25p80 spi32766.0: w25q256 (32768 Kbytes)
- [ 1.840000] 4 ofpart partitions found on MTD device spi32766.0
- [ 1.850000] Creating 4 MTD partitions on "spi32766.0":
- [ 1.860000] 0x000000000000-0x000000030000 : "u-boot"
- [ 1.870000] 0x000000030000-0x000000040000 : "u-boot-env"
- [ 1.880000] 0x000000040000-0x000000050000 : "factory"
- [ 1.890000] 0x000000050000-0x000002000000 : "firmware"
- [ 2.150000] 2 uimage-fw partitions found on MTD device firmware
- [ 2.160000] 0x000000050000-0x00000017764e : "kernel"
- [ 2.170000] 0x00000017764e-0x000002000000 : "rootfs"
- [ 2.180000] mtd: device 5 (rootfs) set to be root filesystem
- [ 2.190000] 1 squashfs-split partitions found on MTD device rootfs
- [ 2.210000] 0x0000003f0000-0x000002000000 : "rootfs_data"
- [ 2.220000] pinctrl core: add 1 pinmux maps
- [ 2.230000] pinctrl core: add 1 pinmux maps
- [ 2.230000] pinctrl core: add 1 pinmux maps
- [ 2.240000] rt2880-pinmux pinctrl: found group selector 6 for rgmii1
- [ 2.260000] rt2880-pinmux pinctrl: found group selector 10 for rgmii2
- [ 2.270000] rt2880-pinmux pinctrl: found group selector 5 for mdio
- [ 2.280000] rt2880-pinmux pinctrl: request pin 24 (io24) for 10100000.ethernet
- 省略部分rt2880-pinmux pinctrl:
- [ 2.640000] rt2880-pinmux pinctrl: request pin 23 (io23) for 10100000.ethernet
- [ 2.660000] ralink_soc_eth 10100000.ethernet eth0 (uninitialized): port 3 link up (100Mbps/Full duplex)
- [ 2.670000] ralink_soc_eth 10100000.ethernet: generated random MAC address fe:c1:85:fa:47:28
- [ 2.690000] ralink_soc_eth 10100000.ethernet: loaded mt7620 driver
- [ 2.700000] ralink_soc_eth 10100000.ethernet eth0: ralink at 0xb0100000, irq 5
- [ 2.720000] usbcore: registered new interface driver usbserial
- [ 2.730000] usbcore: registered new interface driver usbserial_generic
- [ 2.740000] usbserial: USB Serial support registered for generic
- [ 2.760000] rt2880_wdt 10000120.watchdog: Initialized
- [ 2.770000] TCP: cubic registered
- [ 2.770000] NET: Registered protocol family 17
- [ 2.780000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
- [ 2.810000] 8021q: 802.1Q VLAN Support v1.8
- [ 2.840000] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
- [ 2.850000] Freeing unused kernel memory: 148K (8034b000 - 80370000)
- [ 5.400000] init: Console is alive
- [ 5.400000] init: - watchdog -
- [ 8.840000] rt2880-pinmux pinctrl: request pin 1 (io1) for pio:1
- [ 8.850000] rt2880-pinmux pinctrl: request pin 2 (io2) for pio:2
- [ 8.880000] SCSI subsystem initialized
- [ 8.890000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
- [ 8.900000] ehci-platform: EHCI generic platform driver
- [ 8.930000] phy phy-usbphy.0: remote usb device wakeup disabled
- [ 8.940000] phy phy-usbphy.0: UTMI 16bit 30MHz
- [ 8.950000] ehci-platform 101c0000.ehci: EHCI Host Controller
- [ 8.960000] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
- [ 8.970000] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
- [ 9.010000] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
- [ 9.020000] usb usb1: no of_node; not parsing pinctrl DT
- [ 9.030000] hub 1-0:1.0: no of_node; not parsing pinctrl DT
- [ 9.040000] hub 1-0:1.0: USB hub found
- [ 9.050000] hub 1-0:1.0: 1 port detected
- [ 9.060000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
- [ 9.070000] ohci-platform: OHCI generic platform driver
- [ 9.080000] ohci-platform 101c1000.ohci: Generic Platform OHCI controller
- [ 9.100000] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2
- [ 9.110000] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000
- [ 9.180000] usb usb2: no of_node; not parsing pinctrl DT
- [ 9.190000] hub 2-0:1.0: no of_node; not parsing pinctrl DT
- [ 9.200000] hub 2-0:1.0: USB hub found
- [ 9.210000] hub 2-0:1.0: 1 port detected
- [ 9.220000] rt2880-pinmux pinctrl: request pin 72 (io72) for pio:72
- [ 9.240000] usbcore: registered new interface driver usb-storage
- [ 9.380000] usb 1-1: new high-speed USB device number 2 using ehci-platform
- [ 9.490000] init: - preinit -
- [ 9.760000] usb 1-1: no of_node; not parsing pinctrl DT
- [ 9.770000] hub 1-1:1.0: no of_node; not parsing pinctrl DT
- [ 9.790000] hub 1-1:1.0: USB hub found
- [ 9.910000] hub 1-1:1.0: 4 ports detected
- [ 10.280000] 8021q: adding VLAN 0 to HW filter on device eth0
- [ 10.330000] random: mktemp urandom read with 16 bits of entropy available
- [ 13.570000] mount_root: loading kmods from internal overlay
- [ 14.560000] block: attempting to load /etc/config/fstab
- [ 14.570000] block: unable to load configuration (fstab: Entry not found)
- [ 14.580000] block: no usable configuration
- [ 14.590000] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
- [ 14.630000] procd: - early -
- [ 14.630000] procd: - watchdog -
- [ 15.560000] procd: - ubus -
- [ 16.580000] procd: - init -
- [ 17.520000] NET: Registered protocol family 10
- [ 17.550000] ntfs: driver 2.1.31 [Flags: R/O MODULE].
- [ 17.560000] ip6_tables: (C) 2000-2006 Netfilter Core Team
- [ 17.590000] Loading modules backported from Linux version v4.4-rc5-1913-gc8fdf68
- [ 17.600000] Backport generated by backports.git backports-20151218-0-g2f58d9d
- [ 17.620000] ip_tables: (C) 2000-2006 Netfilter Core Team
- [ 17.640000] nf_conntrack version 0.5.0 (1973 buckets, 7892 max)
- [ 17.670000] usbcore: registered new interface driver ums-alauda
- [ 17.690000] usbcore: registered new interface driver ums-cypress
- [ 17.700000] usbcore: registered new interface driver ums-datafab
- [ 17.720000] usbcore: registered new interface driver ums-freecom
- [ 17.730000] usbcore: registered new interface driver ums-isd200
- [ 17.740000] usbcore: registered new interface driver ums-jumpshot
- [ 17.760000] usbcore: registered new interface driver ums-karma
- [ 17.770000] usbcore: registered new interface driver ums-sddr09
- [ 17.790000] usbcore: registered new interface driver ums-sddr55
- [ 17.800000] usbcore: registered new interface driver ums-usbat
- [ 17.840000] xt_time: kernel timezone is -0000
- [ 17.850000] usbcore: registered new interface driver cdc_ether
- [ 17.960000] PPP generic driver version 2.4.2
- [ 17.970000] NET: Registered protocol family 24
- [ 17.980000] usbcore: registered new interface driver qcserial
- [ 17.990000] usbserial: USB Serial support registered for Qualcomm USB modem
- [ 18.010000] usbcore: registered new interface driver rndis_host
- [ 18.060000] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 5390, rev 0500 detected
- [ 18.070000] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 7620 detected
- [ 18.090000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
- [ 25.910000] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
- [ 25.930000] jffs2_build_filesystem(): unlocking the mtd device... done.
- [ 25.940000] jffs2_build_filesystem(): erasing all blocks after the end marker...
- [ 27.440000] 8021q: adding VLAN 0 to HW filter on device eth0
- [ 27.500000] device eth0.1 entered promiscuous mode
- [ 27.510000] device eth0 entered promiscuous mode
- [ 27.600000] br-lan: port 1(eth0.1) entered forwarding state
- [ 27.610000] br-lan: port 1(eth0.1) entered forwarding state
- [ 29.610000] br-lan: port 1(eth0.1) entered forwarding state
- [ 75.440000] random: nonblocking pool is initialized
- [ 92.500000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
- [ 92.520000] device wlan0 entered promiscuous mode
- [ 92.570000] br-lan: port 2(wlan0) entered forwarding state
- [ 92.580000] br-lan: port 2(wlan0) entered forwarding state
- [ 92.590000] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
- [ 94.580000] br-lan: port 2(wlan0) entered forwarding state
- [ 102.960000] device wlan0 left promiscuous mode
- [ 102.960000] br-lan: port 2(wlan0) entered disabled state
- [ 103.860000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
- [ 103.930000] device wlan0 entered promiscuous mode
- [ 103.940000] br-lan: port 2(wlan0) entered forwarding state
- [ 103.950000] br-lan: port 2(wlan0) entered forwarding state
- [ 104.000000] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
- [ 105.950000] br-lan: port 2(wlan0) entered forwarding state
- [ 213.500000] done.
- [ 213.510000] jffs2: notice: (966) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
复制代码
|
|