Rekompilowałem kernel zgodnie z tym co jest podane pod linkiem:
na końcu pliku "target/linux/ar71xx/config-4.9" dopisałem "CONFIG_MESSAGE_LOGLEVEL_DEFAULT=0" oraz dopisałem parametr loglevel=0 do CONFIG_CMDLINE
matt5@debian:~/openwrt/target/linux/ar71xx$ cat config-4.9
<...>
CONFIG_CMDLINE="rootfstype=squashfs noinitrd loglevel = 0"
<...>
CONFIG_MESSAGE_LOGLEVEL_DEFAULT = 0
potem wykonałem polecenie "make target/linux/{clean,prepare} V=s QUILT=1", a następnie "make V=99 -j2".
Skompilowany system wrzuciłem na routerek, dopisałem do plików "/etc/sysctl.conf" i "/etc/inittab" to samo co wcześniej i niestety efekt jest taki sam jak wcześniej:
***************************************
* U-Boot 1.1.4-7a540a78-clean *
* Build: 2018-02-23 *
***************************************
** Warning: bad env CRC, using default,
use 'saveenv' to save it in FLASH
BOARD: TP-Link TL-WR74xN/D v4
SOC: AR9330 rev. 1
CPU: MIPS 24Kc
RAM: 32 MB DDR1 16-bit CL3-3-3-8
FLASH: 8 MB Winbond W25Q64
MAC: 00:03:7F:09:0B:AD (fixed)
CLOCKS: CPU/RAM/AHB/SPI/REF
400/400/200/ 25/ 25 MHz
Hit any key to stop booting: 0
Booting image from 0x9F020000...
Vendor/image name: OpenWrt r7676-cddd7b4c77
Hardware ID: 0x7400004
Whole image size: 15.5 MB (16252928 bytes)
Kernel size: 1.1 MB (1196195 bytes)
Rootfs size: 3.4 MB (3515182 bytes)
Kernel load address: 0x80060000
Kernel entry point: 0x80060000
Header CRC... skipped
Data CRC... skipped
Stopping network... OK!
Uncompressing Kernel... OK!
Starting kernel...
[ 0.000000] Linux version 4.9.152 (matt5@debian) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7676-cddd7b4c77) ) #0 Wed Jan 30 12:21:02 2019
[ 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: 02000000 @ 00000000 (usable)
[ 0.000000] Malformed early option 'loglevel'
[ 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, VIPT, cache aliases, linesize 32 bytes
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000001ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000001ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000001ffffff]
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128
[ 0.000000] Kernel command line: board=TL-WR741ND-v4 console=ttyATH0,115200 rootfstype=squashfs noinitrd loglevel = 0
[ 0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[ 0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] Memory: 28124K/32768K available (2937K kernel code, 146K rwdata, 388K rodata, 232K init, 202K bss, 4644K reserved, 0K cma-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] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[ 0.000013] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[ 0.007904] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
[ 0.089146] pid_max: default: 32768 minimum: 301
[ 0.093926] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.100386] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.111463] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.119861] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.126834] NET: Registered protocol family 16
[ 0.132410] MIPS: machine is TP-LINK TL-WR741ND v4
[ 0.618445] Can't analyze schedule() prologue at 8033af0c
[ 0.636890] clocksource: Switched to clocksource MIPS
[ 0.641957] NET: Registered protocol family 2
[ 0.646021] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.651934] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.658214] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.664673] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.670410] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.676960] NET: Registered protocol family 1
[ 0.686720] Crashlog allocated RAM at address 0x1f00000
[ 0.692155] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[ 0.707089] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.711468] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.733413] io scheduler noop registered
[ 0.735883] io scheduler deadline registered (default)
[ 0.741481] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[ 0.748035] ar933x-uart: ttyATH0 at MMIO 0x18020000 (irq = 11, base_baud = 1562500) is a AR933X UART
[ 0.756969] console [ttyATH0] enabled
[ 0.756969] console [ttyATH0] enabled
[ 0.763783] bootconsole [early0] disabled
[ 0.763783] bootconsole [early0] disabled
[ 0.776348] m25p80 spi0.0: found s25fl064k, expected m25p80
[ 0.790850] m25p80 spi0.0: s25fl064k (8192 Kbytes)
[ 0.794557] 5 tp-link partitions found on MTD device spi0.0
[ 0.799783] Creating 5 MTD partitions on "spi0.0":
[ 0.804526] 0x000000000000-0x000000020000 : "u-boot"
[ 0.812171] 0x000000020000-0x0000001442a4 : "kernel"
[ 0.818640] 0x0000001442a4-0x0000007f0000 : "rootfs"
[ 0.824322] mtd: device 2 (rootfs) set to be root filesystem
[ 0.828663] 1 squashfs-split partitions found on MTD device rootfs
[ 0.834711] 0x0000004a0000-0x0000007f0000 : "rootfs_data"
[ 0.843094] 0x0000007f0000-0x000000800000 : "art"
[ 0.849273] 0x000000020000-0x0000007f0000 : "firmware"
[ 0.857201] libphy: Fixed MDIO Bus: probed
[ 0.879394] libphy: ag71xx_mdio: probed
[ 1.508400] ag71xx-mdio.1: Found an AR7240/AR9330 built-in switch
[ 1.550484] eth0: Atheros AG71xx at 0xba000000, irq 5, mode:GMII
[ 2.178611] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.1:04 [uid=004dd041, driver=Generic PHY]
[ 2.187404] eth1: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
[ 2.193179] NET: Registered protocol family 17
[ 2.196813] 8021q: 802.1Q VLAN Support v1.8
[ 2.210954] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[ 2.218396] Freeing unused kernel memory: 232K
[ 2.221377] This architecture does not have kernel memory protection.
[ 2.546910] random: fast init done
[ 2.980071] init: Console is alive
[ 2.982301] init: - watchdog -
[ 4.012668] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 4.054339] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 4.062423] init: - preinit -
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
[ 8.848587] jffs2: notice: (354) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 8.864624] mount_root: switching to jffs2 overlay
[ 8.903031] urandom-seed: Seeding with /etc/urandom.seed
[ 9.080620] procd: - early -
[ 9.082188] procd: - watchdog -
[ 9.737070] procd: - watchdog -
[ 9.739129] procd: - ubus -
[ 9.792909] random: ubusd: uninitialized urandom read (4 bytes read)
[ 9.822941] random: ubusd: uninitialized urandom read (4 bytes read)
[ 9.828567] random: ubusd: uninitialized urandom read (4 bytes read)
[ 9.835459] procd: - init -
[ 10.304522] kmodloader: loading kernel modules from /etc/modules.d/*
[ 10.312569] i2c /dev entries driver
[ 10.322639] fuse init (API version 7.26)
[ 10.331235] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[ 10.337879] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[ 10.351807] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[ 10.427428] xt_time: kernel timezone is -0000
[ 10.610142] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 10.664762] PPP generic driver version 2.4.2
[ 10.670983] NET: Registered protocol family 24
[ 10.745869] ieee80211 phy0: Atheros AR9330 Rev:1 mem=0xb8100000, irq=2
[ 10.841205] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 12.787740] urandom_read: 5 callbacks suppressed
[ 12.787751] random: jshn: uninitialized urandom read (4 bytes read)
[ 12.814153] random: ubusd: uninitialized urandom read (4 bytes read)
Jedynie w miejscu które wskazywałeś wcześniej Cezary:
Kernel command line: board=TL-WR741ND-v4 console=ttyATH0,115200 rootfstype=squashfs noinitrd loglevel = 0
pojawił się parametr "loglevel = 0" no ale jak widać, nie wiele to zmieniło.
Co mogę robić nie tak, że mimo rekompilacji kernel'a nadal po starcie systemu logi do 12 sekundy pojawiają się na konsoli szeregowej?