rb532, linux kernel shows boot message twice - Page 1
Forum section: electronics / general

author: DiTBho
author_rank: Super Contributor
timestamp: December 20, 2024, 07:06:57 pm
content: Code:RouterBOOT booter 2.8RouterBoard 532ACPU frequency: 399 MHzMemory size: 64 MBPress any key within 2 seconds to enter setup..trying bootp protocol... OKGot IP address: 192.168.1.41resolved mac addresstransfer started ......................................................... transfer ok, time=2.69ssetting up elf image... OKjumping to kernel codekernel_info: version 5.4.128-rb532kernel_info: compiled by DiTBho@macmini2-intelkernel_info: compiled with gcc version 12.2.1 20230304 (Gentoo 12.2.1_p20230304 p13)kernel_info: compiled on #157 Fri Dec 20 20:03:09 -00 2024- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -CPU0 revision is: 0001800a (MIPS 4Kc)User-defined physical RAM map overwritePrimary instruction cache 8kB, VIPT, 4-way, linesize 16 bytes.Primary data cache 8kB, 4-way, VIPT, no aliases, linesize 16 bytesZone ranges:Normal [mem 0x0000000000000000-0x0000000003ffffff]Movable zone start for each nodeEarly memory node rangesnode 0: [mem 0x0000000000000000-0x0000000003ffffff]Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]Built 1 zonelists, mobility grouping on. Total pages: 16256Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)mem auto-init: stack:off, heap alloc:off, heap free:offMemory: 58764K/65536K available (3767K kernel code, 188K rwdata, 520K rodata, 1592K init, 91K bss, 6772K reserved, 0K cma-reserved)NR_IRQS: 256Initializing IRQ's: 168 out of 256calculating r4koff...001e846c(1999980)CPU frequency 400.00 MHzclocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556397797 nssched_clock: 32 bits at 199MHz, resolution 5ns, wraps every 10737525757nsCalibrating delay loop... 398.13 BogoMIPS (lpj=1990656)pid_max: default: 32768 minimum: 301Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)random: get_random_u32 called from 0x802f2130 with crng_init=0clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 nsfutex hash table entries: 256 (order: -1, 3072 bytes, linear)NET: Registered protocol family 16PCI: Initializing PCISCSI subsystem initializedPCI host bridge to bus 0000:00pci_bus 0000:00: root bus resource [mem 0x50000000-0x5fffffff]pci_bus 0000:00: root bus resource [io 0x18800000-0x188fffff]pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]pci 0000:00:00.0: [111d:0000] type 00 class 0x000000pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x07ffffff pref]pci 0000:00:00.0: [Firmware Bug]: reg 0x14: invalid BAR (can't size)pci 0000:00:00.0: [Firmware Bug]: reg 0x18: invalid BAR (can't size)pci 0000:00:02.0: [1106:3106] type 00 class 0x020000pci 0000:00:02.0: reg 0x10: [io 0x0000-0x00ff]pci 0000:00:02.0: reg 0x14: [mem 0x00000000-0x000000ff]pci 0000:00:02.0: supports D1 D2pci 0000:00:02.0: PME# supported from D1 D2 D3hot D3coldpci 0000:00:03.0: [1106:3106] type 00 class 0x020000pci 0000:00:03.0: reg 0x10: [io 0x0000-0x00ff]pci 0000:00:03.0: reg 0x14: [mem 0x00000000-0x000000ff]pci 0000:00:03.0: supports D1 D2pci 0000:00:03.0: PME# supported from D1 D2 D3hot D3coldpci 0000:00:04.0: [13a3:0020] type 00 class 0x0b4000pci 0000:00:04.0: reg 0x10: [mem 0x00000000-0x00000fff]pci 0000:00:04.0: reg 0x14: [mem 0x00000000-0x00001fff]pci 0000:00:04.0: reg 0x18: [mem 0x00000000-0x00007fff]pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00pci 0000:00:04.0: BAR 2: assigned [mem 0x50000000-0x50007fff]pci 0000:00:04.0: BAR 1: assigned [mem 0x50008000-0x50009fff]pci 0000:00:04.0: BAR 0: assigned [mem 0x5000a000-0x5000afff]pci 0000:00:02.0: BAR 0: assigned [io 0x18800000-0x188000ff]pci 0000:00:02.0: BAR 1: assigned [mem 0x5000b000-0x5000b0ff]pci 0000:00:03.0: BAR 0: assigned [io 0x18800400-0x188004ff]pci 0000:00:03.0: BAR 1: assigned [mem 0x5000b100-0x5000b1ff]workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512clocksource: Switched to clocksource MIPSNET: Registered protocol family 2IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)TCP: Hash tables configured (established 1024 bind 1024)UDP hash table entries: 256 (order: 0, 4096 bytes, linear)UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)NET: Registered protocol family 1random: fast init doneworkingset: timestamp_bits=30 max_order=14 bucket_order=0SGI XFS with security attributes, no debug enabledio scheduler mq-deadline registeredio scheduler kyber registeredSerial: 8250/16550 driver, 6 ports, IRQ sharing disabledserial8250: ttyS0 at MMIO 0x0 (irq = 104, base_baud = 12499875) is a 16550Aprintk: console  enabledprintk: console  disabledkernel_info: version 5.4.128-rb532kernel_info: compiled by DiTBho@macmini2-intelkernel_info: compiled with gcc version 12.2.1 20230304 (Gentoo 12.2.1_p20230304 p13)kernel_info: compiled on #157 Fri Dec 20 20:03:09 -00 2024- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -CPU0 revision is: 0001800a (MIPS 4Kc)User-defined physical RAM map overwritePrimary instruction cache 8kB, VIPT, 4-way, linesize 16 bytes.Primary data cache 8kB, 4-way, VIPT, no aliases, linesize 16 bytesZone ranges:Normal [mem 0x0000000000000000-0x0000000003ffffff]Movable zone start for each nodeEarly memory node rangesnode 0: [mem 0x0000000000000000-0x0000000003ffffff]Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]Built 1 zonelists, mobility grouping on. Total pages: 16256Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)mem auto-init: stack:off, heap alloc:off, heap free:offMemory: 58764K/65536K available (3767K kernel code, 188K rwdata, 520K rodata, 1592K init, 91K bss, 6772K reserved, 0K cma-reserved)NR_IRQS: 256Initializing IRQ's: 168 out of 256calculating r4koff...001e846c(1999980)CPU frequency 400.00 MHzclocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556397797 nssched_clock: 32 bits at 199MHz, resolution 5ns, wraps every 10737525757nsCalibrating delay loop... 398.13 BogoMIPS (lpj=1990656)pid_max: default: 32768 minimum: 301Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)random: get_random_u32 called from 0x802f2130 with crng_init=0clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 nsfutex hash table entries: 256 (order: -1, 3072 bytes, linear)NET: Registered protocol family 16PCI: Initializing PCISCSI subsystem initializedPCI host bridge to bus 0000:00pci_bus 0000:00: root bus resource [mem 0x50000000-0x5fffffff]pci_bus 0000:00: root bus resource [io 0x18800000-0x188fffff]pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]pci 0000:00:00.0: [111d:0000] type 00 class 0x000000pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x07ffffff pref]pci 0000:00:00.0: [Firmware Bug]: reg 0x14: invalid BAR (can't size)pci 0000:00:00.0: [Firmware Bug]: reg 0x18: invalid BAR (can't size)pci 0000:00:02.0: [1106:3106] type 00 class 0x020000pci 0000:00:02.0: reg 0x10: [io 0x0000-0x00ff]pci 0000:00:02.0: reg 0x14: [mem 0x00000000-0x000000ff]pci 0000:00:02.0: supports D1 D2pci 0000:00:02.0: PME# supported from D1 D2 D3hot D3coldpci 0000:00:03.0: [1106:3106] type 00 class 0x020000pci 0000:00:03.0: reg 0x10: [io 0x0000-0x00ff]pci 0000:00:03.0: reg 0x14: [mem 0x00000000-0x000000ff]pci 0000:00:03.0: supports D1 D2pci 0000:00:03.0: PME# supported from D1 D2 D3hot D3coldpci 0000:00:04.0: [13a3:0020] type 00 class 0x0b4000pci 0000:00:04.0: reg 0x10: [mem 0x00000000-0x00000fff]pci 0000:00:04.0: reg 0x14: [mem 0x00000000-0x00001fff]pci 0000:00:04.0: reg 0x18: [mem 0x00000000-0x00007fff]pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00pci 0000:00:04.0: BAR 2: assigned [mem 0x50000000-0x50007fff]pci 0000:00:04.0: BAR 1: assigned [mem 0x50008000-0x50009fff]pci 0000:00:04.0: BAR 0: assigned [mem 0x5000a000-0x5000afff]pci 0000:00:02.0: BAR 0: assigned [io 0x18800000-0x188000ff]pci 0000:00:02.0: BAR 1: assigned [mem 0x5000b000-0x5000b0ff]pci 0000:00:03.0: BAR 0: assigned [io 0x18800400-0x188004ff]pci 0000:00:03.0: BAR 1: assigned [mem 0x5000b100-0x5000b1ff]workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512clocksource: Switched to clocksource MIPSNET: Registered protocol family 2IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)TCP: Hash tables configured (established 1024 bind 1024)UDP hash table entries: 256 (order: 0, 4096 bytes, linear)UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)NET: Registered protocol family 1random: fast init doneworkingset: timestamp_bits=30 max_order=14 bucket_order=0SGI XFS with security attributes, no debug enabledio scheduler mq-deadline registeredio scheduler kyber registeredSerial: 8250/16550 driver, 6 ports, IRQ sharing disabledserial8250: ttyS0 at MMIO 0x0 (irq = 104, base_baud = 12499875) is a 16550Aprintk: console  enabledprintk: console  disabledserial8250.0: ttyS0 at MMIO 0x0 (irq = 104, base_baud = 12499875) is a 16550Aprintk: console  enabledbrd: module loadedscsi host0: pata-rb532-cfata1: PATA max PIO4 irq 149nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1nand: Hynix NAND 128MiB 3,3V 8-bitnand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64Scanning device for bad blocksBad eraseblock 92 at 0x000000b80000Creating 2 MTD partitions on "gen_nand":0x000000000000-0x000000400000 : "Routerboard NAND boot"ata1.00: CFA: HMS360404D5CF00, DN4OCA2A, max PIO4ata1.00: 7999488 sectors, multi 0: LBA0x000000400000-0x000008000000 : "rootfs"mtd: device 1 (rootfs) set to be root filesystemeth0: korina-0.20 15Sep2017via_rhine: v1.10-LK1.5.1 2010-10-09 Written by Donald Beckervia-rhine 0000:00:02.0: enabling device (0080 -> 0083)via-rhine 0000:00:02.0 eth1: VIA Rhine III at (ptrval), 00:0c:42:0e:8f:02, IRQ 142via-rhine 0000:00:02.0 eth1: MII PHY found at address 1, status 0x7849 advertising 05e1 Link 0000via-rhine 0000:00:03.0: enabling device (0080 -> 0083)via-rhine 0000:00:03.0 eth2: VIA Rhine III at (ptrval), 00:0c:42:0e:8f:03, IRQ 143via-rhine 0000:00:03.0 eth2: MII PHY found at address 1, status 0x7849 advertising 05e1 Link 0000aoe: AoE v85 initialised.input: rb532 button as /devices/platform/rb532-button/input/input0rc32434_wdt: Stopped watchdog timerrc32434_wdt: Watchdog Timer version 1.0, timer margin: 20 secNET: Registered protocol family 26NET: Registered protocol family 17scsi 0:0:0:0: Direct-Access ATA HMS360404D5CF00 CA2A PQ: 0 ANSI: 5sd 0:0:0:0:  7999488 512-byte logical blocks: (4.10 GB/3.81 GiB)sd 0:0:0:0:  Write Protect is offsd 0:0:0:0:  Write cache: disabled, read cache: enabled, doesn't support DPO or FUAsda: sda1 sda2 sda3sd 0:0:0:0:  Attached SCSI removable diskFreeing unused kernel memory: 1592KThis architecture does not have kernel memory protection.Run /bin/bash as init processbash#Platform: Mikrotik rb532/AKernel: Linux v5.4.128The linux kernel v5 shows the boot-message twice.It looks no good!Has anyone ever seen anything like this?if so, what caused it?

author: DiTBho
author_rank: Super Contributor
timestamp: December 20, 2024, 07:09:20 pm
content: Code:bootblablablablock:{kernel versionblablabla}block: <------ it repeats{kernel versionblablabla}blablablablablablabash#

author: DiTBho
author_rank: Super Contributor
timestamp: December 20, 2024, 07:16:35 pm
content: (there is a serious bug in the firmware that prevents the router from properly loading a binary larger than 7 Mbytes.That's why I have a very old kernel, even with optimize_for_size enabled, the Kernel 6 size is not within 7 Mbytes!)