Network delay at boot

Hi and hello all,

I'm new in OpenWRT world. I've an issue with boot time on LinkitSmart7688.
I received an old project (OpenWRT Chaos Calmer 15.05.1) made by an ex colleague and I'm trying to update to last OpenWRT release 19.07.7.

The project is very simple, just: nginx, shairport, DLNA/UPnP, data communication from/to TCP/USB serial.
Every works well, the only issue is the time needed for boot.
With old release there was just 5-7 seconds between kernel modules load end and wifi/network startup. Now with the last one it takes more than twice (About 15 seconds). This is not good because this module is used in automotive infotainment system and the entire boot takes about 50 seconds instead of 30 seconds.

There are settings to be changed for sure but I don't know which one. Please can you help me?

Here the boot log of new OpenWRT 19.07.7

[04040C0D][04040C0E]

DDR Calibration DQS reg = 00008988



U-Boot 1.1.3 (Sep 10 2015 - 05:56:31)


Board: Ralink APSoC DRAM:  128 MB

relocate_code Pointer at: 87f68000

flash manufacture id: c2, device id 20 19

find flash: MX25L25635E

*** Warning - bad CRC, using default environment


============================================ 

Ralink UBoot Version: 4.3.0.0

-------------------------------------------- 

ASIC 7628_MP (Port5<->None)

DRAM component: 1024 Mbits DDR, width 16

DRAM bus: 16 bit

Total memory: 128 MBytes

Flash component: SPI Flash

Date:Sep 10 2015  Time:05:56:31

============================================ 

icache: sets:512, ways:4, linesz:32 ,total:65536

dcache: sets:256, ways:4, linesz:32 ,total:32768 


 ##### The CPU freq = 580 MHZ #### 

 estimate memory size =128 Mbytes

RESET MT7628 PHY!!!!!!

GPIOMODE --> 50054404


GPIOMODE2 --> 5540551


Please choose the operation: 

   1: Load system code to SDRAM via TFTP. 

   2: Load system code then write to Flash via TFTP. 

   3: Boot system code via Flash (default).

   4: Entr boot command line interface.

   7: Load Boot Loader code then write to Flash via Serial. 

   9: Load Boot Loader code then write to Flash via TFTP. 

 0 

   

3: System Boot system code via Flash.

## Booting image at bc050000 ...

   Image Name:   MIPS OpenWrt Linux-4.14.221

   Image Type:   MIPS Linux Kernel Image (lzma compressed)

   Data Size:    1601271 Bytes =  1.5 MB

   Load Address: 80000000

   Entry Point:  80000000

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

No initrd

## Transferring control to Linux (at address 80000000) ...

## Giving linux memsize in MB, 128


Starting kernel ...


[    0.000000] Linux version 4.14.221 (openwrt@openwrt-VirtualBox) (gcc version 7.5.0 (OpenWrt GCC 7.5.0 r11306-c4a6851c72)) #0 Mon Feb 15 15:22:37 2021
[    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 MT7688 ver:1 eco:2
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019655 (MIPS 24KEc)
[    0.000000] MIPS: machine is MediaTek LinkIt Smart 7688
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    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] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] random: get_random_bytes called from start_kernel+0x90/0x47c with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS2,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=00008001
[    0.000000] Readback ErrCtl register=00008001
[    0.000000] Memory: 123668K/131072K available (3721K kernel code, 170K rwdata, 868K rodata, 1184K init, 200K bss, 7404K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 256
[    0.000000] intc: using register map from devicetree
[    0.000000] CPU Clock: 580MHz
[    0.000000] timer_probe: no matching timers found
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
[    0.000012] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
[    0.015377] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.087595] pid_max: default: 32768 minimum: 301
[    0.096943] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.109909] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.129683] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.149059] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.161154] pinctrl core: initialized pinctrl subsystem
[    0.172452] NET: Registered protocol family 16
[    0.209018] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.220227] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.231365] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.246992] clocksource: Switched to clocksource MIPS
[    0.258137] NET: Registered protocol family 2
[    0.267518] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.281219] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.293747] TCP: Hash tables configured (established 1024 bind 1024)
[    0.306459] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.317929] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.330531] NET: Registered protocol family 1
[    0.342501] Crashlog allocated RAM at address 0x3f00000
[    0.354432] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    0.372820] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.384269] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.414264] io scheduler noop registered
[    0.421939] io scheduler deadline registered (default)
[    0.432965] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    0.446665] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 28, base_baud = 2500000) is a 16550A
[    0.465113] 10000d00.uart1: ttyS1 at MMIO 0x10000d00 (irq = 29, base_baud = 2500000) is a 16550A
[    0.483050] 10000e00.uart2: ttyS2 at MMIO 0x10000e00 (irq = 30, base_baud = 2500000) is a 16550A
[    0.500397] console [ttyS2] enabled
[    0.500397] console [ttyS2] enabled
[    0.514075] bootconsole [early0] disabled
[    0.514075] bootconsole [early0] disabled
[    0.531324] spi-mt7621 10000b00.spi: sys_freq: 193333333
[    0.547748] m25p80 spi0.0: mx25l25635e (32768 Kbytes)
[    0.557860] 4 fixed-partitions partitions found on MTD device spi0.0
[    0.570453] Creating 4 MTD partitions on "spi0.0":
[    0.579962] 0x000000000000-0x000000030000 : "u-boot"
[    0.590742] 0x000000030000-0x000000040000 : "u-boot-env"
[    0.602169] 0x000000040000-0x000000050000 : "factory"
[    0.613138] 0x000000050000-0x000002000000 : "firmware"
[    0.627176] 2 uimage-fw partitions found on MTD device firmware
[    0.638934] Creating 2 MTD partitions on "firmware":
[    0.648788] 0x000000000000-0x000000186f37 : "kernel"
[    0.659570] 0x000000186f37-0x000001fb0000 : "rootfs"
[    0.670288] mtd: device 5 (rootfs) set to be root filesystem
[    0.683051] 1 squashfs-split partitions found on MTD device rootfs
[    0.695364] 0x0000010f0000-0x000001fb0000 : "rootfs_data"
[    0.708024] libphy: Fixed MDIO Bus: probed
[    0.725714] rt3050-esw 10110000.esw: link changed 0x00
[    0.739345] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[    0.757635] NET: Registered protocol family 10
[    0.770460] Segment Routing with IPv6
[    0.777894] NET: Registered protocol family 17
[    0.786742] 8021q: 802.1Q VLAN Support v1.8
[    0.797122] mtk-linkit bootstrap: Version  : LINKITS7688
[    0.807674] mtk-linkit bootstrap: Revision : REV3
[    0.816998] mtk-linkit bootstrap: setting up bootstrap latch
[    0.833302] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    0.853883] Freeing unused kernel memory: 1184K
[    0.862885] This architecture does not have kernel memory protection.
[    1.537614] init: Console is alive
[    1.544594] init: - watchdog -
[    2.357005] random: fast init done
[    3.422844] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.507888] usbcore: registered new interface driver usbfs
[    3.518892] usbcore: registered new interface driver hub
[    3.529545] usbcore: registered new device driver usb
[    3.545832] exFAT: Version 1.2.9
[    3.558305] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.580092] SCSI subsystem initialized
[    3.593325] ehci-platform: EHCI generic platform driver
[    3.614075] phy phy-10120000.usbphy.0: remote usb device wakeup disabled
[    3.627376] phy phy-10120000.usbphy.0: UTMI 16bit 30MHz
[    3.637753] ehci-platform 101c0000.ehci: EHCI Host Controller
[    3.649177] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
[    3.664997] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
[    3.707041] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
[    3.720484] hub 1-0:1.0: USB hub found
[    3.728387] hub 1-0:1.0: 1 port detected
[    3.739984] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.754221] ohci-platform: OHCI generic platform driver
[    3.764937] ohci-platform 101c1000.ohci: Generic Platform OHCI controller
[    3.778486] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2
[    3.794283] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000
[    3.871995] hub 2-0:1.0: USB hub found
[    3.879900] hub 2-0:1.0: 1 port detected
[    3.890988] uhci_hcd: USB Universal Host Controller Interface driver
[    3.981527] usbcore: registered new interface driver usb-storage
[    3.998857] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    4.023750] init: - preinit -
[    4.707167] usb 2-1: new full-speed USB device number 2 using ohci-platform
[    5.217970] hub 2-1:1.0: USB hub found
[    5.313132] rt3050-esw 10110000.esw: link changed 0x00
[    5.324149] hub 2-1:1.0: config failed, can't read hub descriptor (err -22)
[    5.364793] usb 2-1: USB disconnect, device number 2
[    5.417603] random: procd: uninitialized urandom read (4 bytes read)
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    6.007033] usb 2-1: new full-speed USB device number 3 using ohci-platform
[    6.284344] hub 2-1:1.0: USB hub found
[    6.292426] hub 2-1:1.0: 4 ports detected
[    6.637028] usb 2-1.1: new full-speed USB device number 4 using ohci-platform
[    6.957014] usb 2-1.3: new full-speed USB device number 5 using ohci-platform
[    8.635015] jffs2: notice: (426) jffs2_build_xattr_subsystem: complete building xattr subsystem, 8 of xdatum (0 unchecked, 7 orphan) and 8 of xref (7 dead, 0 orphan) found.
[    8.667187] mount_root: switching to jffs2 overlay
[    8.735634] overlayfs: upper fs does not support tmpfile.
[    8.752393] urandom-seed: Seeding with /etc/urandom.seed
[    8.899802] procd: - early -
[    8.905616] procd: - watchdog -
[    9.520967] random: jshn: uninitialized urandom read (4 bytes read)
[    9.533639] procd: - watchdog -
[    9.548522] procd: - ubus -
Failed to connect to ubus
[    9.847235] random: ubusd: uninitialized urandom read (4 bytes read)
[    9.957277] random: ubusd: uninitialized urandom read (4 bytes read)
[    9.981242] procd: - init -
Please press Enter to activate this console.
[   12.150180] kmodloader: loading kernel modules from /etc/modules.d/*
[   12.293811] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   12.328698] Netfilter messages via NETLINK v0.30.
[   12.360106] ip_set: protocol 6
[   12.445165] i2c /dev entries driver
[   12.468703] i2c-mt7621 10000900.i2c: clock 100KHz, re-start not support
[   12.506649] cdc_acm 2-1.1:1.0: ttyACM0: USB ACM device
[   12.537573] usbcore: registered new interface driver cdc_acm
[   12.548835] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[   12.601304] urngd: v1.0.2 started.
[   12.628892] usbcore: registered new interface driver cdc_wdm
[   12.668825] Loading modules backported from Linux version v4.19.161-0-gdaefdc9eb24b
[   12.684084] Backport generated by backports.git v4.19.161-1-0-g4bb568fe
[   12.767789] hso: drivers/net/usb/hso.c: Option Wireless
[   12.778432] usbcore: registered new interface driver hso
[   12.839735] ip_tables: (C) 2000-2006 Netfilter Core Team
[   12.897685] usbcore: registered new interface driver kaweth
[   12.948423] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
[   13.395870] random: crng init done
[   13.402697] random: 6 urandom warning(s) missed due to ratelimiting
[   13.426550] pegasus: v0.9.3 (2013/04/25), Pegasus/Pegasus II USB Ethernet driver
[   13.441482] usbcore: registered new interface driver pegasus
[   13.518701] usbcore: registered new interface driver r8152
[   13.578966] usbcore: registered new interface driver rtl8150
[   13.682908] usbcore: registered new interface driver usbserial
[   13.694663] usbcore: registered new interface driver usbserial_generic
[   13.707718] usbserial: USB Serial support registered for generic
[   13.848491] usbcore: registered new interface driver visor
[   13.859541] usbserial: USB Serial support registered for Handspring Visor / Palm OS
[   13.874843] usbserial: USB Serial support registered for Sony Clie 5.0
[   13.887913] usbserial: USB Serial support registered for Sony Clie 3.5
[   13.960435] usbcore: registered new interface driver cdc_xr_usb_serial
[   13.973435] xr_usb_serial_common: Exar USB UART (serial port) driver
[   14.048806] xt_time: kernel timezone is -0000
[   14.068549] usbcore: registered new interface driver ark3116
[   14.079939] usbserial: USB Serial support registered for ark3116
[   14.120287] usbcore: registered new interface driver asix
[   14.149679] usbcore: registered new interface driver ax88179_178a
[   14.178481] usbcore: registered new interface driver belkin_sa
[   14.190206] usbserial: USB Serial support registered for Belkin / Peracom / GoHubs USB Serial Adapter
[   14.248786] usbcore: registered new interface driver cdc_eem
[   14.279621] usbcore: registered new interface driver cdc_ether
[   14.301137] usbcore: registered new interface driver cdc_ncm
[   14.338470] usbcore: registered new interface driver cdc_subset
[   14.479375] usbcore: registered new interface driver ch341
[   14.490412] usbserial: USB Serial support registered for ch341-uart
[   14.538493] usbcore: registered new interface driver cp210x
[   14.549699] usbserial: USB Serial support registered for cp210x
[   14.589016] usbcore: registered new interface driver cypress_m8
[   14.600924] usbserial: USB Serial support registered for DeLorme Earthmate USB
[   14.615362] usbserial: USB Serial support registered for HID->COM RS232 Adapter
[   14.629975] usbserial: USB Serial support registered for Nokia CA-42 V2 Adapter
[   14.699577] usbcore: registered new interface driver dm9601
[   14.729491] usbcore: registered new interface driver ftdi_sio
[   14.741070] usbserial: USB Serial support registered for FTDI USB Serial Device
[   14.789240] usbcore: registered new interface driver garmin_gps
[   14.801141] usbserial: USB Serial support registered for Garmin GPS usb/tty
[   14.849553] usbcore: registered new interface driver io_edgeport
[   14.861626] usbserial: USB Serial support registered for Edgeport 2 port adapter
[   14.876402] usbserial: USB Serial support registered for Edgeport 4 port adapter
[   14.891196] usbserial: USB Serial support registered for Edgeport 8 port adapter
[   14.905967] usbserial: USB Serial support registered for EPiC device
[   15.003095] usbcore: registered new interface driver keyspan
[   15.014490] usbserial: USB Serial support registered for Keyspan - (without firmware)
[   15.030144] usbserial: USB Serial support registered for Keyspan 1 port adapter
[   15.044760] usbserial: USB Serial support registered for Keyspan 2 port adapter
[   15.059375] usbserial: USB Serial support registered for Keyspan 4 port adapter
[   15.229697] usbcore: registered new interface driver MOSCHIP usb-ethernet driver
[   15.268657] usbcore: registered new interface driver mct_u232
[   15.280223] usbserial: USB Serial support registered for MCT U232
[   15.319030] usbcore: registered new interface driver mos7720
[   15.330426] usbserial: USB Serial support registered for Moschip 2 port adapter
[   15.379246] usbcore: registered new interface driver mos7840
[   15.390643] usbserial: USB Serial support registered for Moschip 7840/7820 USB Serial Driver
[   15.460456] mt76_wmac 10300000.wmac: ASIC revision: 76280001
[   16.509086] mt76_wmac 10300000.wmac: Firmware Version: 20151201
[   16.520900] mt76_wmac 10300000.wmac: Build Time: 20151201183641
[   16.547011] mt76_wmac 10300000.wmac: firmware init done
[   16.752079] usbcore: registered new interface driver oti6858
[   16.763464] usbserial: USB Serial support registered for oti6858
[   16.846433] usbcore: registered new interface driver pl2303
[   16.857649] usbserial: USB Serial support registered for pl2303
[   16.872095] usbcore: registered new interface driver plusb
[   16.888161] PPP generic driver version 2.4.2
[   16.918539] NET: Registered protocol family 24
[   16.940718] usbcore: registered new interface driver qmi_wwan
[   16.965802] usbcore: registered new interface driver rndis_host
[   17.044010] usbcore: registered new interface driver sierra
[   17.055236] usbserial: USB Serial support registered for Sierra USB modem
[   17.074245] usbcore: registered new interface driver smsc95xx
[   17.169063] usbcore: registered new interface driver snd-usb-audio
[   17.210443] usbcore: registered new interface driver sr9700
[   17.234712] usbcore: registered new interface driver ti_usb_3410_5052
[   17.247661] usbserial: USB Serial support registered for TI USB 3410 1 port adapter
[   17.262954] usbserial: USB Serial support registered for TI USB 5052 2 port adapter
[   17.357982] usbcore: registered new interface driver usb_serial_simple
[   17.371088] usbserial: USB Serial support registered for carelink
[   17.383291] usbserial: USB Serial support registered for zio
[   17.394637] usbserial: USB Serial support registered for funsoft
[   17.406659] usbserial: USB Serial support registered for flashloader
[   17.419370] usbserial: USB Serial support registered for google
[   17.431219] usbserial: USB Serial support registered for libtransistor
[   17.444284] usbserial: USB Serial support registered for vivopay
[   17.456316] usbserial: USB Serial support registered for moto_modem
[   17.468878] usbserial: USB Serial support registered for motorola_tetra
[   17.482118] usbserial: USB Serial support registered for novatel_gps
[   17.494829] usbserial: USB Serial support registered for hp4x
[   17.506342] usbserial: USB Serial support registered for suunto
[   17.518200] usbserial: USB Serial support registered for siemens_mpi
[   17.726468] usbcore: registered new interface driver cdc_mbim
[   17.784128] usbcore: registered new interface driver ipw
[   17.794825] usbserial: USB Serial support registered for IPWireless converter
[   17.839377] usbcore: registered new interface driver option
[   17.850595] usbserial: USB Serial support registered for GSM modem (1-port)
[   17.902342] usbcore: registered new interface driver qcserial
[   17.913908] usbserial: USB Serial support registered for Qualcomm USB modem
[   17.951415] kmodloader: done loading kernel modules from /etc/modules.d/*
[   33.240310] IPv6: ADDRCONF(NETDEV_UP): lo: link is not ready
[   34.205189] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   34.364087] br-lan: port 1(eth0) entered blocking state
[   34.374515] br-lan: port 1(eth0) entered disabled state
[   34.385232] device eth0 entered promiscuous mode
[   34.647552] br-lan: port 1(eth0) entered blocking state
[   34.657952] br-lan: port 1(eth0) entered forwarding state
[   44.812758] br-lan: port 2(wlan0) entered blocking state
[   44.823362] br-lan: port 2(wlan0) entered disabled state
[   44.834290] device wlan0 entered promiscuous mode
[   50.169780] br-lan: port 2(wlan0) entered blocking state
[   50.180375] br-lan: port 2(wlan0) entered forwarding state

Here the boot log of old OpenWRT 15.05.1

[05000C0C][05000C0C]

DDR Calibration DQS reg = 00008A8A



U-Boot 1.1.3 (Dec  6 2016 - 11:20:23)


Board: Ralink APSoC

DRAM:  128 MB

relocate_code Pointer at: 87f68000

flash manufacture id: ef, device id 40 19

find flash: W25Q256FV

============================================ 

Ralink UBoot Version: 4.3.0.0

-------------------------------------------- 

ASIC 7628_MP (Port5<->None)

DRAM component: 1024 Mbits DDR, width 16

DRAM bus: 16 bit

Total memory: 128 MBytes

Flash component: SPI Flash

Date:Dec  6 2016  Time:11:20:23

============================================ 

icache: sets:512, ways:4, linesz:32 ,total:65536

dcache: sets:256, ways:4, linesz:32 ,total:32768 


 ##### The CPU freq = 580 MHZ #### 

 estimate memory size =128 Mbytes

RESET MT7628 PHY!!!!!!


GPIOMODE --> 50054404


GPIOMODE2 --> 5540551


Please choose the operation: 

   1: Load system code to SDRAM via TFTP. 

   2: Load system code then write to Flash via TFTP. 

   3: Boot system code via Flash (default).

   4: Entr boot command line interface.

   7: Load Boot Loader code then write to Flash via Serial. 

   9: Load Boot Loader code then write to Flash via TFTP. 

 2  1  0 

   

3: System Boot system code via Flash.

## Booting image at bc050000 ...

   Image Name:   MIPS OpenWrt Linux-3.18.29

   Image Type:   MIPS Linux Kernel Image (lzma compressed)

   Data Size:    1153753 Bytes =  1.1 MB

   Load Address: 80000000

   Entry Point:  80000000

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

No initrd

## Transferring control to Linux (at address 80000000) ...

## Giving linux memsize in MB, 128


Starting kernel ...


[    0.000000] Linux version 3.18.29 (serra82@gmail) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r49087) ) #35 Wed Jul 29 14:12:51 UTC 2020
[    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 MT7688 ver:1 eco:2
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019655 (MIPS 24KEc)
[    0.000000] MIPS: machine is MediaTek LinkIt Smart 7688
[    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] 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] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS2,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=000338f3
[    0.000000] Readback ErrCtl register=000338f3
[    0.000000] Memory: 126272K/131072K available (2552K kernel code, 127K rwdata, 524K rodata, 180K init, 186K bss, 4800K reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:256
[    0.000000] intc: using register map from devicetree
[    0.000000] CPU Clock: 580MHz
[    0.000000] clocksource_of_init: no matching clocksources found
[    0.000000] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.060000] pid_max: default: 32768 minimum: 301
[    0.060000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.080000] pinctrl core: initialized pinctrl subsystem
[    0.090000] NET: Registered protocol family 16
[    0.110000] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.120000] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.130000] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.140000] Switched to clocksource MIPS
[    0.150000] NET: Registered protocol family 2
[    0.150000] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.170000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.180000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.190000] TCP: reno registered
[    0.200000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.210000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.220000] NET: Registered protocol family 1
[    0.230000] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.250000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.260000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.290000] msgmni has been set to 246
[    0.300000] io scheduler noop registered
[    0.310000] io scheduler deadline registered (default)
[    0.320000] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.340000] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 28, base_baud = 2500000) is a 16550A
[    0.350000] 10000d00.uart1: ttyS1 at MMIO 0x10000d00 (irq = 29, base_baud = 2500000) is a 16550A
[    0.370000] console [ttyS2] disabled
[    0.380000] 10000e00.uart2: ttyS2 at MMIO 0x10000e00 (irq = 30, base_baud = 2500000) is a 16550A
[    0.400000] console [ttyS2] enabled
[    0.400000] console [ttyS2] enabled
[    0.410000] bootconsole [early0] disabled
[    0.410000] bootconsole [early0] disabled
[    0.430000] spi-mt7621 10000b00.spi: sys_freq: 193333333
[    0.440000] m25p80 spi32766.0: found w25q256, expected mx25l25635e
[    0.460000] m25p80 spi32766.0: w25q256 (32768 Kbytes)
[    0.470000] m25p80 spi32766.0: using chunked io
[    0.470000] 4 ofpart partitions found on MTD device spi32766.0
[    0.490000] Creating 4 MTD partitions on "spi32766.0":
[    0.500000] 0x000000000000-0x000000030000 : "u-boot"
[    0.510000] 0x000000030000-0x000000040000 : "u-boot-env"
[    0.520000] 0x000000040000-0x000000050000 : "factory"
[    0.530000] 0x000000050000-0x000002000000 : "firmware"
[    0.600000] 2 uimage-fw partitions found on MTD device firmware
[    0.610000] 0x000000050000-0x000000169b19 : "kernel"
[    0.620000] 0x000000169b19-0x000002000000 : "rootfs"
[    0.630000] mtd: device 5 (rootfs) set to be root filesystem
[    0.650000] 1 squashfs-split partitions found on MTD device rootfs
[    0.660000] 0x000000d50000-0x000002000000 : "rootfs_data"
[    0.690000] ralink_soc_eth 10100000.ethernet eth0: ralink at 0xb0100000, irq 5
[    0.700000] mt7621_wdt 10000120.watchdog: Initialized
[    0.710000] TCP: cubic registered
[    0.720000] NET: Registered protocol family 17
[    0.730000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    0.750000] 8021q: 802.1Q VLAN Support v1.8
[    0.760000] mtk-linkit bootstrap: Version  : 
[    0.770000] mtk-linkit bootstrap: Revision : 
[    0.790000] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    0.800000] Freeing unused kernel memory: 180K (80323000 - 80350000)
[    2.130000] init: Console is alive
[    2.140000] init: - watchdog -
[    4.500000] usbcore: registered new interface driver usbfs
[    4.510000] usbcore: registered new interface driver hub
[    4.520000] usbcore: registered new device driver usb
[    4.540000] exFAT: Version 1.2.9
[    4.550000] SCSI subsystem initialized
[    4.570000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.580000] ehci-platform: EHCI generic platform driver
[    4.600000] phy phy-10120000.usbphy.0: remote usb device wakeup disabled
[    4.620000] phy phy-10120000.usbphy.0: UTMI 16bit 30MHz
[    4.630000] ehci-platform 101c0000.ehci: EHCI Host Controller
[    4.640000] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
[    4.650000] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
[    4.690000] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
[    4.700000] hub 1-0:1.0: USB hub found
[    4.710000] hub 1-0:1.0: 1 port detected
[    4.720000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    4.730000] ohci-platform: OHCI generic platform driver
[    4.740000] ohci-platform 101c1000.ohci: Generic Platform OHCI controller
[    4.750000] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2
[    4.770000] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000
[    4.840000] hub 2-0:1.0: USB hub found
[    4.850000] hub 2-0:1.0: 1 port detected
[    4.860000] platform gpio-leds: Driver leds-gpio requests probe deferral
[    4.880000] MTK MSDC device init.
[    4.930000] mtk-sd: MediaTek MT6575 MSDC Driver
[    4.940000] sdhci: Secure Digital Host Controller Interface driver
[    4.950000] sdhci: Copyright(c) Pierre Ossman
[    4.960000] platform gpio-leds: Driver leds-gpio requests probe deferral
[    4.970000] sdhci-pltfm: SDHCI platform and OF driver helper
[    4.990000] usbcore: registered new interface driver usb-storage
[    5.150000] init: - preinit -
[    5.250000] usb 2-1: new full-speed USB device number 2 using ohci-platform
[    5.710000] random: procd urandom read with 9 bits of entropy available
[    5.720000] hub 2-1:1.0: USB hub found
[    5.730000] hub 2-1:1.0: 4 ports detected
[    5.750000] platform gpio-leds: Driver leds-gpio requests probe deferral
[    5.990000] rt305x-esw 10110000.esw: link changed 0x00
[    6.250000] mount_root: loading kmods from internal overlay
[    6.350000] usb 2-1.1: new full-speed USB device number 3 using ohci-platform
[    6.540000] platform gpio-leds: Driver leds-gpio requests probe deferral
[    6.630000] usb 2-1.3: new full-speed USB device number 4 using ohci-platform
[    6.740000] jffs2: notice: (341) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[    6.780000] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[    6.800000] block: extroot: not configured
[    6.830000] platform gpio-leds: Driver leds-gpio requests probe deferral
[    6.930000] jffs2: notice: (338) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[    6.960000] mount_root: loading kmods from internal overlay
[    7.230000] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[    7.250000] block: extroot: not configured
[    7.260000] mount_root: switching to jffs2 overlay
[    7.290000] procd: - early -
[    7.300000] procd: - watchdog -
Failed to connect to ubus
[    8.180000] procd: - ubus -
[    9.180000] procd: - init -
Please press Enter to activate this console.
[   10.660000] NET: Registered protocol family 10
[   10.750000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   10.780000] i2c /dev entries driver
[   11.440000] <-- RTMPAllocTxRxRingMemory, Status=0, ErrorValue=0x
[   11.450000] <-- RTMPAllocAdapterBlock, Status=0
[   11.460000] mtk_gpio_wifi gpio-wifi: registering 1 gpio
[   11.500000] i2c-ralink 10000900.i2c: loaded
[   11.510000] Enable Ralink GDMA Controller Module 
[   11.520000] GDMA IP Version=3
[   11.550000] ******* mt76xx_pcm_init *******
[   11.560000] *******Enter codec_wm8960_i2c_probe********
[   11.580000] soc-audio soc-audio: ASoC: machine MTK APSoC I2S should use snd_soc_register_card()
[   11.590000] wm8960 0-001a: No platform data supplied
[   11.600000] soc-audio soc-audio: wm8960-hifi <-> mt76xx-i2s mapping ok
[   11.720000] cdc_acm 2-1.1:1.0: This device cannot do calls on its own. It is not a modem.
[   11.740000] cdc_acm 2-1.1:1.0: ttyACM0: USB ACM device
[   11.750000] usbcore: registered new interface driver cdc_acm
[   11.760000] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[   11.780000] usbcore: registered new interface driver cdc_wdm
[   11.800000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   11.810000] usbcore: registered new interface driver ipheth
[   11.840000] usbcore: registered new interface driver kaweth
[   11.860000] nf_conntrack version 0.5.0 (1975 buckets, 7900 max)
[   11.900000] pegasus: v0.9.3 (2013/04/25), Pegasus/Pegasus II USB Ethernet driver
[   11.920000] usbcore: registered new interface driver pegasus
[   11.930000] usbcore: registered new interface driver r8152
[   11.950000] usbcore: registered new interface driver rtl8150
[   11.990000] usbcore: registered new interface driver usbserial
[   12.000000] usbcore: registered new interface driver usbserial_generic
[   12.010000] usbserial: USB Serial support registered for generic
[   12.040000] usbcore: registered new interface driver visor
[   12.050000] usbserial: USB Serial support registered for Handspring Visor / Palm OS
[   12.060000] usbserial: USB Serial support registered for Sony Clie 5.0
[   12.080000] usbserial: USB Serial support registered for Sony Clie 3.5
[   12.120000] xt_time: kernel timezone is -0000
[   12.130000] usbcore: registered new interface driver ark3116
[   12.140000] usbserial: USB Serial support registered for ark3116
[   12.170000] usbcore: registered new interface driver asix
[   12.180000] usbcore: registered new interface driver ax88179_178a
[   12.200000] usbcore: registered new interface driver belkin_sa
[   12.210000] usbserial: USB Serial support registered for Belkin / Peracom / GoHubs USB Serial Adapter
[   12.230000] usbcore: registered new interface driver cdc_eem
[   12.240000] usbcore: registered new interface driver cdc_ether
[   12.270000] usbcore: registered new interface driver cdc_ncm
[   12.290000] usbcore: registered new interface driver cdc_subset
[   12.310000] usbcore: registered new interface driver ch341
[   12.320000] usbserial: USB Serial support registered for ch341-uart
[   12.330000] usbcore: registered new interface driver cp210x
[   12.340000] usbserial: USB Serial support registered for cp210x
[   12.360000] usbcore: registered new interface driver cypress_m8
[   12.370000] usbserial: USB Serial support registered for DeLorme Earthmate USB
[   12.380000] usbserial: USB Serial support registered for HID->COM RS232 Adapter
[   12.400000] usbserial: USB Serial support registered for Nokia CA-42 V2 Adapter
[   12.440000] usbcore: registered new interface driver dm9601
[   12.460000] usbcore: registered new interface driver ftdi_sio
[   12.470000] usbserial: USB Serial support registered for FTDI USB Serial Device
[   12.480000] usbcore: registered new interface driver huawei_cdc_ncm
[   12.500000] usbcore: registered new interface driver kalmia
[   12.520000] usbcore: registered new interface driver keyspan
[   12.530000] usbserial: USB Serial support registered for Keyspan - (without firmware)
[   12.540000] usbserial: USB Serial support registered for Keyspan 1 port adapter
[   12.560000] usbserial: USB Serial support registered for Keyspan 2 port adapter
[   12.570000] usbserial: USB Serial support registered for Keyspan 4 port adapter
[   12.590000] usbcore: registered new interface driver MOSCHIP usb-ethernet driver
[   12.610000] usbcore: registered new interface driver mct_u232
[   12.620000] usbserial: USB Serial support registered for MCT U232
[   12.630000] usbcore: registered new interface driver mos7720
[   12.640000] usbserial: USB Serial support registered for Moschip 2 port adapter
[   12.670000] usbcore: registered new interface driver oti6858
[   12.680000] usbserial: USB Serial support registered for oti6858
[   12.690000] usbcore: registered new interface driver pl2303
[   12.700000] usbserial: USB Serial support registered for pl2303
[   12.720000] PPP generic driver version 2.4.2
[   12.730000] NET: Registered protocol family 24
[   12.740000] usbcore: registered new interface driver qmi_wwan
[   12.760000] usbcore: registered new interface driver rndis_host
[   12.770000] usbcore: registered new interface driver sierra
[   12.780000] usbserial: USB Serial support registered for Sierra USB modem
[   12.800000] usbcore: registered new interface driver sierra_net
[   12.820000] usbcore: registered new interface driver smsc95xx
[   12.890000] usbcore: registered new interface driver snd-usb-audio
[   12.910000] usbcore: registered new interface driver ti_usb_3410_5052
[   12.920000] usbserial: USB Serial support registered for TI USB 3410 1 port adapter
[   12.940000] usbserial: USB Serial support registered for TI USB 5052 2 port adapter
[   12.950000] usbcore: registered new interface driver usb_serial_simple
[   12.970000] usbserial: USB Serial support registered for carelink
[   12.980000] usbserial: USB Serial support registered for zio
[   12.990000] usbserial: USB Serial support registered for funsoft
[   13.000000] usbserial: USB Serial support registered for flashloader
[   13.010000] usbserial: USB Serial support registered for vivopay
[   13.030000] usbserial: USB Serial support registered for moto_modem
[   13.040000] usbserial: USB Serial support registered for novatel_gps
[   13.050000] usbserial: USB Serial support registered for hp4x
[   13.060000] usbserial: USB Serial support registered for suunto
[   13.070000] usbserial: USB Serial support registered for siemens_mpi
[   13.090000] usbcore: registered new interface driver cdc_mbim
[   13.110000] usbcore: registered new interface driver ipw
[   13.120000] usbserial: USB Serial support registered for IPWireless converter
[   13.140000] usbcore: registered new interface driver option
[   13.150000] usbserial: USB Serial support registered for GSM modem (1-port)
[   13.170000] usbcore: registered new interface driver qcserial
[   13.180000] usbserial: USB Serial support registered for Qualcomm USB modem
[   20.570000] IPv6: ADDRCONF(NETDEV_UP): lo: link is not ready
[   20.600000] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   20.610000] device eth0 entered promiscuous mode
[   20.630000] br-lan: port 1(eth0) entered forwarding state
[   20.640000] br-lan: port 1(eth0) entered forwarding state
[   21.410000] efuse_probe: efuse = 10000012
[   21.590000] tssi_0_target_pwr_g_band = 34
[   21.600000] tssi_1_target_pwr_g_band = 35
[   22.640000] br-lan: port 1(eth0) entered forwarding state
[   28.060000] <==== rt28xx_init, Status=0
[   30.140000] device ra0 entered promiscuous mode
[   30.150000] br-lan: port 2(ra0) entered forwarding state
[   30.160000] br-lan: port 2(ra0) entered forwarding state
[   32.160000] br-lan: port 2(ra0) entered forwarding state

you should debug print both init.d and hotplug events with timestamps...

likely one of your network services settling or waiting for dependant actions...

a faster/simpler way may be to just disable services one at a time and see if one of them makes a large difference...

or the final boot log messages would probably also give you clues...

could probably shave 10 seconds...

another option is many modern vehiles will send something HIGH in the illumination system when a car is unlocked or a door is opened... you can throw a time delay relay on this circuit to provide vcc to your device early...

2 Likes

Not related to the network, but since you did not mention it, two obvious differences:

  • U-Boot binary is a different one (compilation date differ; maybe same compile time options, maybe not)
  • The "OpenWRT 19.07.7" boot shows that U-Boot environment can not be read

Also, if you have control over the bootloader: The LinkitSmart7688 is supported by mainline U-Boot nowadays. This makes it possible to use kernel images which are compressed with a faster algorithm than LZMA, allowing to speed up the kernel extraction. Will no save you anything near to 20 seconds, but maybe still worth a try once you found/resolved the big time wasters.