Products > Embedded Computing
rb532, linux kernel shows boot message twice
(1/1)
DiTBho:
--- Code: ---RouterBOOT booter 2.8
RouterBoard 532A
CPU frequency: 399 MHz
Memory size: 64 MB
Press any key within 2 seconds to enter setup..
trying bootp protocol... OK
Got IP address: 192.168.1.41
resolved mac address
transfer started ......................................................... transfer ok, time=2.69s
setting up elf image... OK
jumping to kernel code
kernel_info: version 5.4.128-rb532
kernel_info: compiled by DiTBho@macmini2-intel
kernel_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 overwrite
Primary instruction cache 8kB, VIPT, 4-way, linesize 16 bytes.
Primary data cache 8kB, 4-way, VIPT, no aliases, linesize 16 bytes
Zone ranges:
Normal [mem 0x0000000000000000-0x0000000003ffffff]
Movable zone start for each node
Early memory node ranges
node 0: [mem 0x0000000000000000-0x0000000003ffffff]
Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
Built 1 zonelists, mobility grouping on. Total pages: 16256
Dentry 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:off
Memory: 58764K/65536K available (3767K kernel code, 188K rwdata, 520K rodata, 1592K init, 91K bss, 6772K reserved, 0K cma-reserved)
NR_IRQS: 256
Initializing IRQ's: 168 out of 256
calculating r4koff...
001e846c(1999980)
CPU frequency 400.00 MHz
clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556397797 ns
sched_clock: 32 bits at 199MHz, resolution 5ns, wraps every 10737525757ns
Calibrating delay loop... 398.13 BogoMIPS (lpj=1990656)
pid_max: default: 32768 minimum: 301
Mount-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=0
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
futex hash table entries: 256 (order: -1, 3072 bytes, linear)
NET: Registered protocol family 16
PCI: Initializing PCI
SCSI subsystem initialized
PCI host bridge to bus 0000:00
pci_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 0x000000
pci 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 0x020000
pci 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 D2
pci 0000:00:02.0: PME# supported from D1 D2 D3hot D3cold
pci 0000:00:03.0: [1106:3106] type 00 class 0x020000
pci 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 D2
pci 0000:00:03.0: PME# supported from D1 D2 D3hot D3cold
pci 0000:00:04.0: [13a3:0020] type 00 class 0x0b4000
pci 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 00
pci 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 512
clocksource: Switched to clocksource MIPS
NET: Registered protocol family 2
IP 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 1
random: fast init done
workingset: timestamp_bits=30 max_order=14 bucket_order=0
SGI XFS with security attributes, no debug enabled
io scheduler mq-deadline registered
io scheduler kyber registered
Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x0 (irq = 104, base_baud = 12499875) is a 16550A
printk: console [ttyS0] enabled
printk: console [ttyS0] disabled
kernel_info: version 5.4.128-rb532
kernel_info: compiled by DiTBho@macmini2-intel
kernel_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 overwrite
Primary instruction cache 8kB, VIPT, 4-way, linesize 16 bytes.
Primary data cache 8kB, 4-way, VIPT, no aliases, linesize 16 bytes
Zone ranges:
Normal [mem 0x0000000000000000-0x0000000003ffffff]
Movable zone start for each node
Early memory node ranges
node 0: [mem 0x0000000000000000-0x0000000003ffffff]
Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
Built 1 zonelists, mobility grouping on. Total pages: 16256
Dentry 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:off
Memory: 58764K/65536K available (3767K kernel code, 188K rwdata, 520K rodata, 1592K init, 91K bss, 6772K reserved, 0K cma-reserved)
NR_IRQS: 256
Initializing IRQ's: 168 out of 256
calculating r4koff...
001e846c(1999980)
CPU frequency 400.00 MHz
clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556397797 ns
sched_clock: 32 bits at 199MHz, resolution 5ns, wraps every 10737525757ns
Calibrating delay loop... 398.13 BogoMIPS (lpj=1990656)
pid_max: default: 32768 minimum: 301
Mount-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=0
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
futex hash table entries: 256 (order: -1, 3072 bytes, linear)
NET: Registered protocol family 16
PCI: Initializing PCI
SCSI subsystem initialized
PCI host bridge to bus 0000:00
pci_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 0x000000
pci 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 0x020000
pci 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 D2
pci 0000:00:02.0: PME# supported from D1 D2 D3hot D3cold
pci 0000:00:03.0: [1106:3106] type 00 class 0x020000
pci 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 D2
pci 0000:00:03.0: PME# supported from D1 D2 D3hot D3cold
pci 0000:00:04.0: [13a3:0020] type 00 class 0x0b4000
pci 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 00
pci 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 512
clocksource: Switched to clocksource MIPS
NET: Registered protocol family 2
IP 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 1
random: fast init done
workingset: timestamp_bits=30 max_order=14 bucket_order=0
SGI XFS with security attributes, no debug enabled
io scheduler mq-deadline registered
io scheduler kyber registered
Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x0 (irq = 104, base_baud = 12499875) is a 16550A
printk: console [ttyS0] enabled
printk: console [ttyS0] disabled
serial8250.0: ttyS0 at MMIO 0x0 (irq = 104, base_baud = 12499875) is a 16550A
printk: console [ttyS0] enabled
brd: module loaded
scsi host0: pata-rb532-cf
ata1: PATA max PIO4 irq 149
nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
nand: Hynix NAND 128MiB 3,3V 8-bit
nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
Scanning device for bad blocks
Bad eraseblock 92 at 0x000000b80000
Creating 2 MTD partitions on "gen_nand":
0x000000000000-0x000000400000 : "Routerboard NAND boot"
ata1.00: CFA: HMS360404D5CF00, DN4OCA2A, max PIO4
ata1.00: 7999488 sectors, multi 0: LBA
0x000000400000-0x000008000000 : "rootfs"
mtd: device 1 (rootfs) set to be root filesystem
eth0: korina-0.20 15Sep2017
via_rhine: v1.10-LK1.5.1 2010-10-09 Written by Donald Becker
via-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 142
via-rhine 0000:00:02.0 eth1: MII PHY found at address 1, status 0x7849 advertising 05e1 Link 0000
via-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 143
via-rhine 0000:00:03.0 eth2: MII PHY found at address 1, status 0x7849 advertising 05e1 Link 0000
aoe: AoE v85 initialised.
input: rb532 button as /devices/platform/rb532-button/input/input0
rc32434_wdt: Stopped watchdog timer
rc32434_wdt: Watchdog Timer version 1.0, timer margin: 20 sec
NET: Registered protocol family 26
NET: Registered protocol family 17
scsi 0:0:0:0: Direct-Access ATA HMS360404D5CF00 CA2A PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 7999488 512-byte logical blocks: (4.10 GB/3.81 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
sda: sda1 sda2 sda3
sd 0:0:0:0: [sda] Attached SCSI removable disk
Freeing unused kernel memory: 1592K
This architecture does not have kernel memory protection.
Run /bin/bash as init process
bash#
--- End code ---
Platform: Mikrotik rb532/A
Kernel: Linux v5.4.128
The linux kernel v5 shows the boot-message twice.
It looks no good!
Has anyone ever seen anything like this?
if so, what caused it?
DiTBho:
--- Code: ---boot
blablabla
block:
{
kernel version
blablabla
}
block: <------ it repeats
{
kernel version
blablabla
}
blablabla
blablabla
bash#
--- End code ---
DiTBho:
(
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!
)
Navigation
[0] Message Index
Go to full version