Welcome! Log In Create A New Profile

Advanced

The old kernel version is still running after update

Posted by imianz 
imianz
The old kernel version is still running after update
February 11, 2021 06:01PM
Hello,
I have a Netgear Stora with debian 10.8 and 5.9.3-kirkwood-tld-1 kernel.

I have never had problems updating the kernel so far but ... I can no longer update the 5.9.3 kernel to the newer versions (5.9.12 and 5.10.7).
Here is the usual procedure that I normally use:

# cd /boot

# wget --no-check-certificate https://www.dropbox.com/s/drui4fx7npx8acc/linux-5.9.12-kirkwood-tld-1-bodhi.tar.bz2
# md5sum linux-5.9.12-kirkwood-tld-1-bodhi.tar.bz2

# tar -xjf linux-5.9.12-kirkwood-tld-1-bodhi.tar.bz2
# tar -xf linux-dtb-5.9.12-kirkwood-tld-1.tar

# dpkg -i linux-image-5.9.12-kirkwood-tld-1_1.0_armel.deb
# mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.9.12-kirkwood-tld-1 -d vmlinuz-5.9.12-kirkwood-tld-1 uImage
# mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-5.9.12-kirkwood-tld-1 -d initrd.img-5.9.12-kirkwood-tld-1 uInitrd

# sync
# sync
# sync
# shutdown -r now

# uname -r
5.9.3-kirkwood-tld-1


there were no errors, the kernel just remains the same.
Thanks.
Re: The old kernel version is still running after update
February 11, 2021 08:47PM
imianz,

Looks like you did every steps correctly. So it is best that you post the log of what you actually did in upgrading the kernel (everything on the terminal).

Also, post the u-boot envs
fw_printenv

And the bootlog after reboot. If you have serial console, then post the serial console log. If not then post
dmesg

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
This is my fw_printenv:
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdev=usb
device=0:1
devices=usb ide mmc
disks=0 1 2 3
ethact=egiga0
if_netconsole=ping $serverip
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb_addr=0x1c00000
load_initrd_addr=0x1100000
load_uimage_addr=0x800000
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
partition=nand0,2
preboot_nc=run if_netconsole start_netconsole
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
serverip=192.168.0.220
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
usb_ready_retry=15
arcNumber=2743
dtb_file=/boot/dts/kirkwood-netgear_stora_ms2000.dtb
ethaddr=C0:3F:0E:02:E4:0B
ipaddr=192.168.1.2
bootdelay=5
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params

This is the dmesg output (I'm not at home, so I cannot post the serial log):
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.9.3-kirkwood-tld-1 (root@tldDebian) (gcc (Debian 8.3.0-6) 8.3.0, GNU ld (GNU Binutils for Debian) 2.31.1) #1.0 PREEMPT Mon Nov 2 15:50:14 PST 2020
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: NETGEAR MS2000 / MS2110 aka Stora
[    0.000000] Memory policy: Data cache writeback
[    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] On node 0 totalpages: 32768
[    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] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000] Memory: 102220K/131072K available (10240K kernel code, 1096K rwdata, 4144K rodata, 1024K init, 316K bss, 28852K reserved, 0K cma-reserved)
[    0.000000] random: get_random_u32 called from ____cache_alloc+0x404/0x790 with crng_init=0
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000]  Trampoline variant of Tasks RCU enabled.
[    0.000000]  Rude variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000013] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000068] Switching to timer-based delay loop, resolution 5ns
[    0.001036] Console: colour dummy device 80x30
[    0.001105] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.001141] pid_max: default: 32768 minimum: 301
[    0.001657] LSM: Security Framework initializing
[    0.001848] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001885] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.003603] CPU: Testing write buffer coherency: ok
[    0.005885] Setting up static identity map for 0x100000 - 0x100058
[    0.006254] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x2
[    0.006644] rcu: Hierarchical SRCU implementation.
[    0.008206] devtmpfs: initialized
[    0.016344] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.016393] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.016729] xor: measuring software checksum speed
[    0.110147]    arm4regs  :   902.800 MB/sec
[    0.210094]    8regs     :   542.000 MB/sec
[    0.310096]    32regs    :   788.000 MB/sec
[    0.310120] xor: using function: arm4regs (902.800 MB/sec)
[    0.310151] prandom: seed boundary self test passed
[    0.315193] prandom: 100 self tests passed
[    0.315207] pinctrl core: initialized pinctrl subsystem
[    0.317114] NET: Registered protocol family 16
[    0.318131] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.319382] audit: initializing netlink subsys (disabled)
[    0.321216] thermal_sys: Registered thermal governor 'step_wise'
[    0.321661] audit: type=2000 audit(0.310:1): state=initialized audit_enabled=0 res=1
[    0.321832] cpuidle: using governor ladder
[    0.321934] cpuidle: using governor menu
[    0.322547] Feroceon L2: Enabling L2
[    0.322610] Feroceon L2: Cache support initialised.
[    0.341221] No ATAGs?
[    2.560072] random: fast init done
[    6.430305] raid6: int32x8  gen()    90 MB/s
[    6.600163] raid6: int32x8  xor()    57 MB/s
[    6.770174] raid6: int32x4  gen()    90 MB/s
[    6.940218] raid6: int32x4  xor()    60 MB/s
[    7.110269] raid6: int32x2  gen()   114 MB/s
[    7.280096] raid6: int32x2  xor()    71 MB/s
[    7.450296] raid6: int32x1  gen()    81 MB/s
[    7.620123] raid6: int32x1  xor()    50 MB/s
[    7.620137] raid6: using algorithm int32x2 gen() 114 MB/s
[    7.620149] raid6: .... xor() 71 MB/s, rmw enabled
[    7.620159] raid6: using intx1 recovery algorithm
[    7.620478] vgaarb: loaded
[    7.621172] SCSI subsystem initialized
[    7.621482] libata version 3.00 loaded.
[    7.621828] usbcore: registered new interface driver usbfs
[    7.621911] usbcore: registered new interface driver hub
[    7.622019] usbcore: registered new device driver usb
[    7.622298] pps_core: LinuxPPS API ver. 1 registered
[    7.622313] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    7.622349] PTP clock support registered
[    7.624373] clocksource: Switched to clocksource orion_clocksource
[    9.470237] VFS: Disk quotas dquot_6.6.0
[    9.470375] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    9.483733] NET: Registered protocol family 2
[    9.484880] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    9.484927] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    9.484961] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    9.484989] TCP: Hash tables configured (established 1024 bind 1024)
[    9.485272] MPTCP token hash table entries: 512 (order: 0, 6144 bytes, linear)
[    9.485357] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    9.485397] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    9.485659] NET: Registered protocol family 1
[    9.486598] RPC: Registered named UNIX socket transport module.
[    9.486616] RPC: Registered udp transport module.
[    9.486628] RPC: Registered tcp transport module.
[    9.486638] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    9.486656] PCI: CLS 0 bytes, default 32
[    9.487033] Trying to unpack rootfs image as initramfs...
[   10.549225] Freeing initrd memory: 9804K
[   10.549442] NetWinder Floating Point Emulator V0.97 (double precision)
[   10.562553] Initialise system trusted keyrings
[   10.562633] Key type blacklist registered
[   10.562915] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[   10.563053] zbud: loaded
[   10.564933] NFS: Registering the id_resolver key type
[   10.564974] Key type id_resolver registered
[   10.564987] Key type id_legacy registered
[   10.565045] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[   10.565069] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   10.565429] jffs2: version 2.2. (NAND) (SUMMARY)  \xc2\xa9 2001-2006 Red Hat, Inc.
[   10.566057] fuse: init (API version 7.31)
[   10.566574] orangefs_debugfs_init: called with debug mask: :none: :0:
[   10.566835] orangefs_init: module version upstream loaded
[   10.566852] SGI XFS with ACLs, security attributes, realtime, scrub, quota, no debug enabled
[   10.686255] async_tx: api initialized (async)
[   10.686286] Key type asymmetric registered
[   10.686299] Asymmetric key parser 'x509' registered
[   10.686374] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[   10.686513] io scheduler bfq registered
[   10.926370] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[   10.928832] mvebu-pcie mbus@f1000000:pcie@82000000: host bridge /mbus@f1000000/pcie@82000000 ranges:
[   10.928869] mvebu-pcie mbus@f1000000:pcie@82000000: Parsing ranges property...
[   10.928915] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1040000..0x00f1041fff -> 0x0000040000
[   10.928964] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[   10.928998] mvebu-pcie mbus@f1000000:pcie@82000000:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[   10.929348] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[   10.929375] pci_bus 0000:00: root bus resource [bus 00-ff]
[   10.929399] pci_bus 0000:00: root bus resource [mem 0xf1040000-0xf1041fff] (bus address [0x00040000-0x00041fff])
[   10.929418] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[   10.929436] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[   10.929452] pci_bus 0000:00: scanning bus
[   10.929598] pci 0000:00:01.0: [11ab:6281] type 01 class 0x060400
[   10.929639] pci 0000:00:01.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[   10.931350] pci_bus 0000:00: fixups for bus
[   10.931368] PCI: bus0: Fast back to back transfers disabled
[   10.931392] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 0
[   10.931404] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[   10.931429] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 1
[   10.931597] pci_bus 0000:01: scanning bus
[   10.932812] pci_bus 0000:01: fixups for bus
[   10.932820] PCI: bus1: Fast back to back transfers enabled
[   10.932839] pci_bus 0000:01: bus scan returning with max=01
[   10.932854] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[   10.932876] pci_bus 0000:00: bus scan returning with max=01
[   10.933104] pci 0000:00:01.0: BAR 6: assigned [mem 0xe0000000-0xe00007ff pref]
[   10.933127] pci 0000:00:01.0: PCI bridge to [bus 01]
[   10.933260] pcieport 0000:00:01.0: assign IRQ: got 0
[   10.933290] pcieport 0000:00:01.0: enabling bus mastering
[   10.933981] mv_xor f1060800.xor: Marvell shared XOR driver
[   10.995745] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[   10.999059] mv_xor f1060900.xor: Marvell shared XOR driver
[   11.055714] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[   11.059197] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   11.060955] printk: console [ttyS0] disabled
[   11.061069] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[   12.013525] printk: console [ttyS0] enabled
[   12.029334] loop: module loaded
[   12.033623] sata_mv f1080000.sata: version 1.28
[   12.034192] sata_mv f1080000.sata: slots 32 ports 2
[   12.044695] scsi host0: sata_mv
[   12.049388] scsi host1: sata_mv
[   12.053581] ata1: SATA max UDMA/133 irq 33
[   12.058508] ata2: SATA max UDMA/133 irq 33
[   12.064894] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xda
[   12.071981] nand: Samsung NAND 256MiB 3,3V 8-bit
[   12.077481] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[   12.085976] Scanning device for bad blocks
[   12.132718] Bad eraseblock 390 at 0x0000030c0000
[   12.138140] Bad eraseblock 391 at 0x0000030e0000
[   12.183842] Bad eraseblock 768 at 0x000006000000
[   12.189264] Bad eraseblock 769 at 0x000006020000
[   12.201107] Bad eraseblock 830 at 0x0000067c0000
[   12.206521] Bad eraseblock 831 at 0x0000067e0000
[   12.235786] Bad eraseblock 1054 at 0x0000083c0000
[   12.241266] Bad eraseblock 1055 at 0x0000083e0000
[   12.285286] Bad eraseblock 1415 at 0x00000b0e0000
[   12.329414] Bad eraseblock 1774 at 0x00000ddc0000
[   12.334940] Bad eraseblock 1775 at 0x00000dde0000
[   12.342169] Bad eraseblock 1792 at 0x00000e000000
[   12.347697] Bad eraseblock 1793 at 0x00000e020000
[   12.359785] Bad eraseblock 1855 at 0x00000e7e0000
[   12.385950] 4 cmdlinepart partitions found on MTD device orion_nand
[   12.392982] Creating 4 MTD partitions on "orion_nand":
[   12.398964] 0x000000000000-0x000000100000 : "u-boot"
[   12.406528] 0x000000100000-0x000000500000 : "uImage"
[   12.413940] 0x000000500000-0x000002500000 : "rootfs"
[   12.421602] 0x000002500000-0x000010000000 : "data"
[   12.430765] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[   12.439387] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[   12.451517] libphy: Fixed MDIO Bus: probed
[   12.457983] libphy: orion_mdio_bus: probed
[   12.462837] [Firmware Warn]: /ocp@f1000000/mdio-bus@72004/ethernet-phy@8: Whitelisted compatible string. Please remove
[   12.495030] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   12.564443] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[   12.576044] ata1.00: ATA-8: WDC WD20EARX-00PASB0, 51.0AB51, max UDMA/133
[   12.583483] ata1.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   12.595752] ata1.00: configured for UDMA/133
[   12.611387] scsi 0:0:0:0: Direct-Access     ATA      WDC WD20EARX-00P AB51 PQ: 0 ANSI: 5
[   12.621759] sd 0:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[   12.630919] sd 0:0:0:0: [sda] 4096-byte physical blocks
[   12.637087] sd 0:0:0:0: [sda] Write Protect is off
[   12.642609] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[   12.642766] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   12.690140]  sda: sda1 sda2 sda3 sda4
[   12.697246] sd 0:0:0:0: [sda] Attached SCSI disk
[   13.134440] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[   13.165559] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address c0:3f:0e:02:e4:0b
[   13.175136] ata2.00: ATA-8: WDC WD20EARX-00PASB0, 51.0AB51, max UDMA/133
[   13.182574] ata2.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   13.190337] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   13.197669] ehci-pci: EHCI PCI platform driver
[   13.202930] ehci-orion: EHCI orion driver
[   13.208297] orion-ehci f1050000.ehci: EHCI Host Controller
[   13.214865] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[   13.223360] ata2.00: configured for UDMA/133
[   13.228620] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[   13.245977] scsi 1:0:0:0: Direct-Access     ATA      WDC WD20EARX-00P AB51 PQ: 0 ANSI: 5
[   13.256361] sd 1:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[   13.264915] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[   13.272409] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.09
[   13.281472] sd 1:0:0:0: [sdb] 4096-byte physical blocks
[   13.287557] sd 1:0:0:0: [sdb] Write Protect is off
[   13.293077] sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[   13.293164] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   13.301239] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   13.311073] usb usb1: Product: EHCI Host Controller
[   13.316707] usb usb1: Manufacturer: Linux 5.9.3-kirkwood-tld-1 ehci_hcd
[   13.324055] usb usb1: SerialNumber: f1050000.ehci
[   13.332132] hub 1-0:1.0: USB hub found
[   13.336751] hub 1-0:1.0: 1 port detected
[   13.342470] usbcore: registered new interface driver usb-storage
[   13.349759] mousedev: PS/2 mouse device common for all mice
[   13.365671]  sdb: sdb1 sdb2 sdb3 sdb4
[   13.372739] sd 1:0:0:0: [sdb] Attached SCSI disk
[   14.404421] rtc-mv f1010300.rtc: internal RTC not ticking
[   14.410780] i2c /dev entries driver
[   14.422400] rtc-pcf8563 0-0051: registered as rtc0
[   14.429238] rtc-pcf8563 0-0051: setting system clock to 2021-02-12T02:06:40 UTC (1613095600)
[   14.440640] device-mapper: uevent: version 1.0.3
[   14.446411] device-mapper: ioctl: 4.42.0-ioctl (2020-02-27) initialised: dm-devel@redhat.com
[   14.456260] device-mapper: multipath round-robin: version 1.2.0 loaded
[   14.463521] device-mapper: multipath queue-length: version 0.2.0 loaded
[   14.470963] device-mapper: multipath service-time: version 0.3.0 loaded
[   14.478492] device-mapper: dm-log-userspace: version 1.3.0 loaded
[   14.485361] device-mapper: raid: Loading target version 1.15.1
[   14.494639] hid: raw HID events driver (C) Jiri Kosina
[   14.501014] drop_monitor: Initializing network drop monitor service
[   14.508674] NET: Registered protocol family 10
[   14.515426] Segment Routing with IPv6
[   14.519816] RPL Segment Routing with IPv6
[   14.524751] NET: Registered protocol family 17
[   14.530245] Key type dns_resolver registered
[   14.535904] registered taskstats version 1
[   14.540731] Loading compiled-in X.509 certificates
[   14.546463] zswap: loaded using pool lzo/zbud
[   14.552003] Key type ._fscrypt registered
[   14.556836] Key type .fscrypt registered
[   14.561479] Key type fscrypt-provisioning registered
[   14.569870] Key type big_key registered
[   14.612218] Key type encrypted registered
[   14.625550] Freeing unused kernel memory: 1024K
[   14.645422] Checked W+X mappings: passed, no W+X pages found
[   14.651827] Run /init as init process
[   14.656286]   with arguments:
[   14.656294]     /init
[   14.656299]   with environment:
[   14.656305]     HOME=/
[   14.656310]     TERM=linux
[   15.633553] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[   16.654584] md/raid1:md3: active with 1 out of 2 mirrors
[   16.684147] md3: detected capacity change from 0 to 34131214336
[   16.726913] md/raid1:md0: active with 1 out of 2 mirrors
[   16.733079] md0: detected capacity change from 0 to 8589869056
[   16.769232] md/raid1:md1: active with 2 out of 2 mirrors
[   16.802106] md1: detected capacity change from 0 to 268369920
[   16.954519] md/raid1:md2: active with 2 out of 2 mirrors
[   17.046894] md2: detected capacity change from 0 to 1957256691712
[   28.870477] process '/usr/bin/fstype' started with executable stack
[   28.914253] PM: Image not found (code -22)
[   29.306336] EXT4-fs (md0): mounted filesystem with ordered data mode. Opts: (null)
[   29.505028] random: crng init done
[   33.072743] systemd-udevd[428]: Using default interface naming scheme 'v240'.
[   33.222879] systemd-udevd[428]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   33.374753] lm75 0-0048: hwmon0: sensor 'lm75'
[   33.518008] orion_wdt: Initial timeout 21 sec
[   33.717974] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   33.796542] sd 1:0:0:0: Attached scsi generic sg1 type 0
[   34.161313] marvell-cesa f1030000.crypto: CESA device successfully registered
[   34.336255] systemd-udevd[434]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   37.434438] Adding 262076k swap on /dev/md1.  Priority:-2 extents:1 across:262076k FS
[   37.754540] EXT4-fs (md0): re-mounted. Opts: errors=remount-ro
[   48.994897] EXT4-fs (md2): mounted filesystem with ordered data mode. Opts: (null)
[   49.076459] EXT4-fs (md3): mounted filesystem with ordered data mode. Opts: (null)
[   54.438837] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   54.449489] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Re: The old kernel version is still running after update
February 12, 2021 05:11PM
imianz,

Nothing seems out of ordinary in the envs and dmesg.

So I think we should look at what you did in upgrading the kernel, and what files were created during that process.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Hi bodhi, thaks for your reply.
To better check the installation files, first I went back to the 5.9.3 kernel, then I reinstalled the 5.9.12 kernel.

kernel 5.9.3
...
# mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.9.3-kirkwood-tld-1 -d vmlinuz-5.9.3-kirkwood-tld-1 uImage
Image Name:   Linux-5.9.3-kirkwood-tld-1
Created:      Sun Feb 14 17:07:32 2021
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:    5574768 Bytes = 5444.11 KiB = 5.32 MiB
Load Address: 00008000
Entry Point:  00008000

# mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-5.9.3-kirkwood-tld-1 -d initrd.img-5.9.3-kirkwood-tld-1 uInitrd
Image Name:   initramfs-5.9.3-kirkwood-tld-1
Created:      Sun Feb 14 17:08:53 2021
Image Type:   ARM Linux RAMDisk Image (gzip compressed)
Data Size:    10038455 Bytes = 9803.18 KiB = 9.57 MiB
Load Address: 00000000
Entry Point:  00000000

...

# ls -all /boot/|grep uI
-rw-r--r--  1 root root  5574832 Feb 14 17:07 uImage
-rw-r--r--  1 root root 10038519 Feb 14 17:08 uInitrd

# ls -all /boot/dts|grep stora
-rw-r--r-- 1 root root 11499 Nov  3 00:49 kirkwood-netgear_stora_ms2000.dtb

kernel 5.9.12
...
# mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.9.12-kirkwood-tld-1 -d vmlinuz-5.9.12-kirkwood-tld-1 uImage
Image Name:   Linux-5.9.12-kirkwood-tld-1
Created:      Mon Feb 15 20:05:42 2021
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:    5575952 Bytes = 5445.27 KiB = 5.32 MiB
Load Address: 00008000
Entry Point:  00008000

# mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-5.9.12-kirkwood-tld-1 -d initrd.img-5.9.12-kirkwood-tld-1 uInitrd
Image Name:   initramfs-5.9.12-kirkwood-tld-1
Created:      Mon Feb 15 20:06:15 2021
Image Type:   ARM Linux RAMDisk Image (gzip compressed)
Data Size:    10040515 Bytes = 9805.19 KiB = 9.58 MiB
Load Address: 00000000
Entry Point:  00000000

...

# ls -all /boot|grep uI
-rw-r--r--  1 root root  5576016 Feb 15 20:05 uImage
-rw-r--r--  1 root root 10040579 Feb 15 20:06 uInitrd

# ls -all /boot/dts/|grep stora
-rw-r--r-- 1 root root 11499 Dec  5 23:04 kirkwood-netgear_stora_ms2000.dtb
As you can see above, in versions 5.9.3 and 5.9.12, uImage and uInitrd are not the same size and the date of the dtb files is different ...

but on reboot version 5.9.3 was loaded instead of 5.9.12!


dpkg log does not help me
2021-02-14 17:02:28 upgrade linux-image-5.9.3-kirkwood-tld-1:armel 1.0 1.0
2021-02-14 17:02:28 status half-configured linux-image-5.9.3-kirkwood-tld-1:armel 1.0
2021-02-14 17:02:28 status unpacked linux-image-5.9.3-kirkwood-tld-1:armel 1.0
2021-02-14 17:02:29 status half-installed linux-image-5.9.3-kirkwood-tld-1:armel 1.0
2021-02-14 17:02:59 status unpacked linux-image-5.9.3-kirkwood-tld-1:armel 1.0
2021-02-14 17:03:01 configure linux-image-5.9.3-kirkwood-tld-1:armel 1.0 1.0
2021-02-14 17:03:01 status half-configured linux-image-5.9.3-kirkwood-tld-1:armel 1.0
2021-02-14 17:04:00 status installed linux-image-5.9.3-kirkwood-tld-1:armel 1.0
2021-02-15 19:53:29 upgrade linux-image-5.9.12-kirkwood-tld-1:armel 1.0 1.0
2021-02-15 19:53:29 status half-configured linux-image-5.9.12-kirkwood-tld-1:armel 1.0
2021-02-15 19:53:30 status unpacked linux-image-5.9.12-kirkwood-tld-1:armel 1.0
2021-02-15 19:53:30 status half-installed linux-image-5.9.12-kirkwood-tld-1:armel 1.0
2021-02-15 19:54:01 status unpacked linux-image-5.9.12-kirkwood-tld-1:armel 1.0
2021-02-15 19:54:02 configure linux-image-5.9.12-kirkwood-tld-1:armel 1.0 1.0
2021-02-15 19:54:02 status half-configured linux-image-5.9.12-kirkwood-tld-1:armel 1.0
2021-02-15 19:55:02 status installed linux-image-5.9.12-kirkwood-tld-1:armel 1.0


The only strange thing I noticed is in the boot log, the memory size used to load uInitrd does not match either version:
U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:38:05 -0700)
Netgear Stora MS2110

SoC:   Kirkwood 88F6281_A0
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  256 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
PHY reset timed out
88E1116 Initialized on egiga0
Hit any key to stop autoboot:  0
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Reset IDE: Bus 0: OK Bus 1: OK
  Device 0: Model: WDC WD20EARX-00PASB0 Firm: 51.0AB51 Ser#:  WD-WCAZAK357705
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (3907029168 x 512)
  Device 1: Model: WDC WD20EARX-00PASB0 Firm: 51.0AB51 Ser#:  WD-WCAZAJ826128
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (3907029168 x 512)
Unknown command 'mmc' - try 'help'
## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
** Bad device usb 0 **

Partition Map for IDE device 0  --   Partition Type: DOS

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            16777216        00089d19-01     83
  2     16779264        524288          00089d19-02     82
  3     17303552        3823029168      00089d19-03     83
  4     3840333824      66695344        00089d19-04     83


Partition Map for IDE device 1  --   Partition Type: DOS

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            16777216        000ed534-01     83
  2     16779264        524288          000ed534-02     82
  3     17303552        3823029168      000ed534-03     83
  4     3840333824      66695344        000ed534-04     83
Unknown command 'mmc' - try 'help'
running scan_disk ...
Scan device usb
device usb 0:1
** Bad device usb 0 **
device usb 1:1
** Bad device usb 1 **
device usb 2:1
** Bad device usb 2 **
device usb 3:1
** Bad device usb 3 **
Scan device ide

Reset IDE: Bus 0: OK Bus 1: OK
  Device 0: Model: WDC WD20EARX-00PASB0 Firm: 51.0AB51 Ser#:  WD-WCAZAK357705
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (3907029168 x 512)
  Device 1: Model: WDC WD20EARX-00PASB0 Firm: 51.0AB51 Ser#:  WD-WCAZAJ826128
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (3907029168 x 512)
device ide 0:1
1 bytes read in 45 ms (0 Bytes/s)
Found bootable drive on ide 0
loading uImage ...
5574832 bytes read in 1324 ms (4 MiB/s)
loading uInitrd ...
10038863 bytes read in 2053 ms (4.7 MiB/s)
loading DTB /boot/dts/kirkwood-netgear_stora_ms2000.dtb ...
11499 bytes read in 54 ms (207 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-5.9.3-kirkwood-tld-1
   Created:      2020-11-13  10:30:22 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5574768 Bytes = 5.3 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-5.9.3-kirkwood-tld-1
   Created:      2020-11-13  10:30:36 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    10038799 Bytes = 9.6 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 0366d000, end 03fffe0f ... OK
   Loading Device Tree to 03667000, end 0366ccea ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.9.3-kirkwood-tld-1 (root@tldDebian) (gcc (Debian 8.3.0-6) 8.3.0, GNU ld (GNU Binutils for Debian) 2.31.1) #1.0 PREEMPT Mon Nov 2 15:50:14 PST 2020
[    0.000000][    T0] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
...


any ideas?
Re: The old kernel version is still running after update
February 15, 2021 04:35PM
imianz,

Your excerpts did not help!

What I need to see is the real log of then entire process when you install the kenrnel (everything should be captured, commands, outputs,,....). Just copy and paste what's on the terminal.

Quote

Installation:

1. Backup your current uImage and uInitrd. In the /boot directory, these are files for your current kernel (xx.xx.xx is the version number):

Quote

uInitrd
uImage
initrd.img-xx.xx.xx-kirkwood-xxx
System.map-xx.xx.xx-kirkwood-xxx
vmlinuz-xx.xx.xx-kirkwood-xxx
config-xx.xx.xx-kirkwood-xxx
dts/

2. Extract the kernel and the DTB files in the archive:

cd /boot
tar -xjf linux-5.10.7-kirkwood-tld-1-bodhi.tar.bz2
tar -xf linux-dtb-5.10.7-kirkwood-tld-1.tar

3. And install it with dpkg. Remove flash-kernel first to avoid potential problem:

cd /boot
apt-get remove flash-kernel
dpkg -i linux-image-5.10.7-kirkwood-tld-1_1.0_armel.deb

4. Create uImage and uInitrd and setup for booting.

I'm using the GoFlex Net booting with USB drive as an example here. Please replace its name (kirkwood-goflexnet.dtb) with the box you are installing on (for example, kirkwood-pogo_e02.dtb). Please look inside the rootfs /boot/dts/ for the correct DTB file name for your box.

Below are the 2 different alternatives in booting (method 4b is required for booting with older U-Boot that does not support FDT, but should not be used if running latest u-boot).

- Choose option 4a if you are going to use the current rootfs for many different Kirkwood boxes, as is. It should boot most of the Kirkwood boxes. And with the latest U-Boot for Kirkwood that suports FDT (if you are installing both the new u-boot and rootfs for the first time, too). This is the preferred method.

- Choose option 4b (This method is required for booting with older U-Boot that does not support FDT) if you only use the current rootfs for the box you're installing on, and don't want to modify u-boot envs. Note that if you are installing from stock OS, u-boot envs must be modified to boot with USB or HDD (please post questions, since each box has a different flavor in setting up the envs).

4a. Boot with DTB file (standard way to boot FDT kernel). Recommended.

Generate the uImage and uInitrd (the kernel files vmlinuz-5.10.7-kirkwood-tld-1 and initrd.img-5.10.7-kirkwood-tld-1 were generated by dpkg in Step 3):
cd /boot
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.10.7-kirkwood-tld-1 -d vmlinuz-5.10.7-kirkwood-tld-1 uImage
mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-5.10.7-kirkwood-tld-1 -d initrd.img-5.10.7-kirkwood-tld-1 uInitrd


4b. Boot with DTB file embedded in the kernel image (no U-Boot envs changes are needed if your system already booting on USB or HDD). Again, this step 4b is for stock U-Boot only.

Please replace kirkwood-goflexnet.dtb below with the correct DTB name for your box.

Generate the uImage and uInitrd (the kernel files vmlinuz-5.10.7-kirkwood-tld-1 and initrd.img-5.10.7-kirkwood-tld-1 were generated by dpkg in Step 3):
cd /boot
mv uImage uImage.orig
mv uInitrd uInitrd.orig
cp -a zImage-5.10.7-kirkwood-tld-1 zImage.fdt
cat dts/kirkwood-goflexnet.dtb >> zImage.fdt
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n 5.10.7-kirkwood-tld-1 -d zImage.fdt uImage
mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-5.10.7-kirkwood-tld-1 -d initrd.img-5.10.7-kirkwood-tld-1 uInitrd

5. The new uImage and uInitrd files should be created in /boot directory now. You're ready to reboot the system:
sync
sync
sync
shutdown -r now


And then after you've installed it. Get the following info, too:

cd /boot
ls -lart
fw_printenv

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
ok, I hope I finally understand what you need to help me.

root@mystora:/# cd /boot
root@mystora:/boot# wget --no-check-certificate https://www.dropbox.com/s/eeuev396j7sqziw/linux-5.10.7-kirkwood-tld-1-bodhi.tar.bz2
--2021-02-16 11:01:58--  https://www.dropbox.com/s/eeuev396j7sqziw/linux-5.10.7-kirkwood-tld-1-bodhi.tar.bz2
Resolving www.dropbox.com (www.dropbox.com)... 162.125.69.18, 2620:100:6023:18::a27d:4312
Connecting to www.dropbox.com (www.dropbox.com)|162.125.69.18|:443... connected.
WARNING: The certificate of 'www.dropbox.com' is not trusted.
WARNING: The certificate of 'www.dropbox.com' doesn't have a known issuer.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: /s/raw/eeuev396j7sqziw/linux-5.10.7-kirkwood-tld-1-bodhi.tar.bz2 [following]
--2021-02-16 11:01:58--  https://www.dropbox.com/s/raw/eeuev396j7sqziw/linux-5.10.7-kirkwood-tld-1-bodhi.tar.bz2
Reusing existing connection to www.dropbox.com:443.
HTTP request sent, awaiting response... 302 Found
Location: https://uc2782615d6574b3eab435fb7401.dl.dropboxusercontent.com/cd/0/inline/BJCcHKUH3hn5lNanFRjyH-R64btiST8GzD7bjQW0Y2Y--gSVbW-24Pz1hpuuTmdLemgNveIw78onRBHpoCmvxyVqXEic__7dQkyq0o3HrOEgmxVop5t6m1ZYSWPKj9Ce-ig/file# [following]
--2021-02-16 11:01:59--  https://uc2782615d6574b3eab435fb7401.dl.dropboxusercontent.com/cd/0/inline/BJCcHKUH3hn5lNanFRjyH-R64btiST8GzD7bjQW0Y2Y--gSVbW-24Pz1hpuuTmdLemgNveIw78onRBHpoCmvxyVqXEic__7dQkyq0o3HrOEgmxVop5t6m1ZYSWPKj9Ce-ig/file
Resolving uc2782615d6574b3eab435fb7401.dl.dropboxusercontent.com (uc2782615d6574b3eab435fb7401.dl.dropboxusercontent.com)... 162.125.69.15, 2620:100:6023:15::a27d:430f
Connecting to uc2782615d6574b3eab435fb7401.dl.dropboxusercontent.com (uc2782615d6574b3eab435fb7401.dl.dropboxusercontent.com)|162.125.69.15|:443... connected.
WARNING: The certificate of 'uc2782615d6574b3eab435fb7401.dl.dropboxusercontent.com' is not trusted.
WARNING: The certificate of 'uc2782615d6574b3eab435fb7401.dl.dropboxusercontent.com' doesn't have a known issuer.
HTTP request sent, awaiting response... 302 Found
Location: /cd/0/inline2/BJBERvCjcyUw66LKulLL4Fp6mF20WwTgLC3-vKyDaVGYXNpnuqvL92_ROBOI-wT3LHCIaCs4MDPE4G2jNFW5rGWuJbG3YuJx8QMOR9K4n-BVRcFiTkd2wM_l1re0kb8yejuB5WMGaTL6Fq6iCoTj47EjT204OSwJm5m_VkJuoCXrrR6zNtG62DnZI98UHcp3ZNglc70_9ILpY9f2xijNewrFfH-lmbCfDiTu_4uJiKRdjeR3eQAyoAHe4DWW4NMePIv-QlvVMdfyfkEcrINh_NYuFWyw_-fPH9_k55K3FvRORJ3Ffo4LSjOw6N2bMHVRymAOdrwtUVcem--hCl6fFetqTl7rrDmdKVHFqP2qmssXmw/file [following]
--2021-02-16 11:01:59--  https://uc2782615d6574b3eab435fb7401.dl.dropboxusercontent.com/cd/0/inline2/BJBERvCjcyUw66LKulLL4Fp6mF20WwTgLC3-vKyDaVGYXNpnuqvL92_ROBOI-wT3LHCIaCs4MDPE4G2jNFW5rGWuJbG3YuJx8QMOR9K4n-BVRcFiTkd2wM_l1re0kb8yejuB5WMGaTL6Fq6iCoTj47EjT204OSwJm5m_VkJuoCXrrR6zNtG62DnZI98UHcp3ZNglc70_9ILpY9f2xijNewrFfH-lmbCfDiTu_4uJiKRdjeR3eQAyoAHe4DWW4NMePIv-QlvVMdfyfkEcrINh_NYuFWyw_-fPH9_k55K3FvRORJ3Ffo4LSjOw6N2bMHVRymAOdrwtUVcem--hCl6fFetqTl7rrDmdKVHFqP2qmssXmw/file
Reusing existing connection to uc2782615d6574b3eab435fb7401.dl.dropboxusercontent.com:443.
HTTP request sent, awaiting response... 200 OK
Length: 34933063 (33M) [application/octet-stream]
Saving to: 'linux-5.10.7-kirkwood-tld-1-bodhi.tar.bz2'

linux-5.10.7-kirkwood-tld-1-b 100%[=================================================>]  33.31M  5.67MB/s    in 5.9s

2021-02-16 11:02:06 (5.67 MB/s) - 'linux-5.10.7-kirkwood-tld-1-bodhi.tar.bz2' saved [34933063/34933063]

root@mystora:/boot# md5sum linux-5.10.7-kirkwood-tld-1-bodhi.tar.bz2
af446d23e5db9337fe9e045d99ad9660  linux-5.10.7-kirkwood-tld-1-bodhi.tar.bz2
root@mystora:/boot# sha256sum linux-5.10.7-kirkwood-tld-1-bodhi.tar.bz2
ed6bed2a8c71e3eeccc7926a31aa75f14b56650bec068384ece88a7e226451d9  linux-5.10.7-kirkwood-tld-1-bodhi.tar.bz2
root@mystora:/boot#
root@mystora:/boot# tar -xjf linux-5.10.7-kirkwood-tld-1-bodhi.tar.bz2
root@mystora:/boot# tar -xf linux-dtb-5.10.7-kirkwood-tld-1.tar
root@mystora:/boot#
root@mystora:/boot# apt-get remove flash-kernel
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'flash-kernel' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@mystora:/boot#
root@mystora:/boot# dpkg -i linux-image-5.10.7-kirkwood-tld-1_1.0_armel.deb
(Reading database ... 44212 files and directories currently installed.)
Preparing to unpack linux-image-5.10.7-kirkwood-tld-1_1.0_armel.deb ...
Unpacking linux-image-5.10.7-kirkwood-tld-1 (1.0) over (1.0) ...
Setting up linux-image-5.10.7-kirkwood-tld-1 (1.0) ...
update-initramfs: Generating /boot/initrd.img-5.10.7-kirkwood-tld-1
I: The initramfs will attempt to resume from /dev/md1
I: (UUID=68db1a94-6eb1-4eaf-a3f3-1d33f00cc9a1)
I: Set the RESUME variable to override this.
root@mystora:/boot#
root@mystora:/boot#
root@mystora:/boot# mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.10.7-kirkwood-tld-1 -d vmlinuz-5.10.7-kirkwood-tld-1 uImage
Image Name:   Linux-5.10.7-kirkwood-tld-1
Created:      Tue Feb 16 11:12:16 2021
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:    5316464 Bytes = 5191.86 KiB = 5.07 MiB
Load Address: 00008000
Entry Point:  00008000
root@mystora:/boot#
root@mystora:/boot# mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-5.10.7-kirkwood-tld-1 -d initrd.img-5.10.7-kirkwood-tld-1 uInitrd
Image Name:   initramfs-5.10.7-kirkwood-tld-1
Created:      Tue Feb 16 11:12:30 2021
Image Type:   ARM Linux RAMDisk Image (gzip compressed)
Data Size:    10104537 Bytes = 9867.71 KiB = 9.64 MiB
Load Address: 00000000
Entry Point:  00000000
root@mystora:/boot# sync
root@mystora:/boot# sync
root@mystora:/boot# sync
root@mystora:/boot# shutdown -r now

Broadcast message from root@mystora (pts/0) (Tue Feb 16 11:22:03 2021):

The system is going down for reboot NOW!

After reboot
root@mystora:~# cd /boot
root@mystora:/boot# ls -lart
total 103912
drwxr-xr-x  2 root root     4096 Dec 24 22:51 dts
-rwxr-xr-x  1 root root  5316464 Jan 15 11:22 vmlinuz-5.10.7-kirkwood-tld-1
-rw-r--r--  1 root root   180435 Jan 15 11:22 config-5.10.7-kirkwood-tld-1
-rw-r--r--  1 root root  4308309 Jan 15 11:22 System.map-5.10.7-kirkwood-tld-1
-rwxr-xr-x  1 root root  5316464 Jan 15 11:32 zImage-5.10.7-kirkwood-tld-1
-rw-r--r--  1 root root  7589236 Jan 15 11:47 linux-headers-5.10.7-kirkwood-tld-1_1.0_armel.deb
-rw-r--r--  1 root root 21747120 Jan 15 11:50 linux-image-5.10.7-kirkwood-tld-1_1.0_armel.deb
-rw-r--r--  1 root root  1300480 Jan 15 12:11 linux-dtb-5.10.7-kirkwood-tld-1.tar
-rw-r--r--  1 root root   161761 Jan 17 04:54 linux-5.10.7-kirkwood-tld-1.patch
drwxr-xr-x 22 root root     4096 Feb 16 10:54 ..
-rw-r--r--  1 root root 34933063 Feb 16 11:02 linux-5.10.7-kirkwood-tld-1-bodhi.tar.bz2
-rw-r--r--  1 root root 10104537 Feb 16 11:10 initrd.img-5.10.7-kirkwood-tld-1
-rw-r--r--  1 root root  5316528 Feb 16 11:12 uImage
-rw-r--r--  1 root root 10104601 Feb 16 11:12 uInitrd
drwxr-xr-x  3 root root     4096 Feb 16 11:16 .
root@mystora:/boot#
root@mystora:/boot#
root@mystora:/boot# fw_printenv
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdev=usb
device=0:1
devices=usb ide mmc
disks=0 1 2 3
ethact=egiga0
if_netconsole=ping $serverip
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb_addr=0x1c00000
load_initrd_addr=0x1100000
load_uimage_addr=0x800000
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
partition=nand0,2
preboot_nc=run if_netconsole start_netconsole
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
serverip=192.168.0.220
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
usb_ready_retry=15
arcNumber=2743
dtb_file=/boot/dts/kirkwood-netgear_stora_ms2000.dtb
ethaddr=C0:3F:0E:02:E4:0B
ipaddr=192.168.1.2
bootdelay=5
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
root@mystora:/boot#
root@mystora:/boot#
root@mystora:/boot# uname -a
Linux stora 5.9.3-kirkwood-tld-1 #1.0 PREEMPT Mon Nov 2 15:50:14 PST 2020 armv5tel GNU/Linux
Re: The old kernel version is still running after update
February 16, 2021 04:24PM
root@mystora:/boot# mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.10.7-kirkwood-tld-1 -d vmlinuz-5.10.7-kirkwood-tld-1 uImage
Image Name:   Linux-5.10.7-kirkwood-tld-1
Created:      Tue Feb 16 11:12:16 2021
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:    5316464 Bytes = 5191.86 KiB = 5.07 MiB
Load Address: 00008000
Entry Point:  00008000
root@mystora:/boot#
root@mystora:/boot# mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-5.10.7-kirkwood-tld-1 -d initrd.img-5.10.7-kirkwood-tld-1 uInitrd
Image Name:   initramfs-5.10.7-kirkwood-tld-1
Created:      Tue Feb 16 11:12:30 2021
Image Type:   ARM Linux RAMDisk Image (gzip compressed)
Data Size:    10104537 Bytes = 9867.71 KiB = 9.64 MiB
Load Address: 00000000
Entry Point:  00000000
root@mystora:/boot# sync
root@mystora:/boot# sync
root@mystora:/boot# sync

If you have USB drive attached, unmount and remove it before rebooting.

root@mystora:/boot# shutdown -r now

Please post the entire serial boot log after this. After log into Debian also get,

cat /etc/fstab
mount
ls -lart /boot

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 02/16/2021 04:26PM by bodhi.
Hi,
a few minutes ago I removed from my nas any previously installed kernel
using command apt-get remove linux-image-x.x.x-kirkwood-tld-1
# dpkg --get-selections | grep linux-image
linux-image-5.10.7-kirkwood-tld-1               deinstall
linux-image-5.2.9-kirkwood-tld-1                deinstall
linux-image-5.5.1-kirkwood-tld-1                deinstall
linux-image-5.6.5-kirkwood-tld-1                deinstall
linux-image-5.7.1-kirkwood-tld-1                deinstall
linux-image-5.8.3-kirkwood-tld-1                deinstall
linux-image-5.9.12-kirkwood-tld-1               deinstall
linux-image-5.9.3-kirkwood-tld-1                deinstall

I have removed all the contents of the /boot folder.

I installed the 5.10.7 kernel (with exactly the same output log I posted this morning)

and this is the boot log from the serial console:

# shutdown -r now

Broadcast message from root@stora (ttyS0) (Tue Feb 16 23:51:56 2021):

The system is going down for reboot NOW!
INIT: Switching to runlevel: 6
INIT: Sending[info] Using makefile-style concurrent boot in runlevel 6.
[ ok ] Stopping hotplug events dispatcher: systemd-udevd.
[ ok ] Stopping Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[....] Stopping busybox' klogd implementation: klogd1437 (klogd)
Stopped klogd (pid 1437).
. ok
[ ok ] Stopping MD monitoring service: mdadm --monitor.
[ ok ] Stopping NFS kernel daemon: mountd nfsd.
[ ok ] Unexporting directories for NFS kernel daemon....
[ ok ] Stopping NetBIOS name server: nmbd.
[ ok ] Stopping mail-transfer-agent: nullmailer.
[....] Stopping busybox' syslogd implementation: syslogd1410 (syslogd)
. ok
[ ok ] Stopping Samba AD DC daemon: samba.
[ ok ] Stopping SMB/CIFS daemon: smbd.
[ ok ] Stopping bittorrent daemon: transmission-daemon.
[ ok ] Asking all remaining processes to terminate...done.
[ ok ] All processes ended within 1 seconds...done.
[ ok ] Stopping NFS common utilities: idmapd statd.
[info] Saving the system clock.
[info] Hardware Clock updated to Tue Feb 16 23:52:07 CET 2021.
[ ok ] Stopping RPC port mapper daemon: rpcbind.
[....] Deconfiguring network interfaces...Removed stale PID file
Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/c0:3f:0e:02:e4:0b
Sending on   LPF/eth0/c0:3f:0e:02:e4:0b
Sending on   Socket/fallback
DHCPRELEASE of 192.168.1.2 on eth0 to 192.168.1.1 port 67
invoke-rc.d: -----------------------------------------------------
invoke-rc.d: WARNING: 'invoke-rc.d smbd reload' called
invoke-rc.d: during shutdown sequence.
invoke-rc.d: enabling safe mode: initscript policy layer disabled
invoke-rc.d: -----------------------------------------------------
Reloading /etc/samba/smb.conf: smbd.
done.
[ ok ] Saving random seed...done.
[....] Will now unmount temporary filesystems:umount: /tmp unmounted
. ok
[....] Will now deactivate swap:swapoff /dev/md1
. ok
[....] Will now unmount local filesystems:umount: /home/alicetta/public (/dev/md2) unmounted
umount: /home/polpetta/public (/dev/md2) unmounted
umount: /srv/HDD/BACK (/dev/md3) unmounted
umount: /srv/HDD/DATI (/dev/md2) unmounted
. ok
[....] Mounting root filesystem read-only...[ 5277.756111][ T5426] EXT4-fs (md0): re-mounted. Opts: (null)
done.
[ ok ] Waiting for MD arrays to become idle...done.
[info] Will now restart.
[ 5279.316644][ T5465] sd 1:0:0:0: [sdb] Synchronizing SCSI cache
[ 5279.324879][ T5465] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[ 5279.333473][ T5465] reboot: Restarting system


U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:38:05 -0700)
Netgear Stora MS2110

SoC:   Kirkwood 88F6281_A0
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  256 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
PHY reset timed out
88E1116 Initialized on egiga0
Hit any key to stop autoboot:  0
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Reset IDE: Bus 0: OK Bus 1: OK
  Device 0: Model: WDC WD20EARX-00PASB0 Firm: 51.0AB51 Ser#:  WD-WCAZAK357705
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (3907029168 x 512)
  Device 1: Model: WDC WD20EARX-00PASB0 Firm: 51.0AB51 Ser#:  WD-WCAZAJ826128
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (3907029168 x 512)
Unknown command 'mmc' - try 'help'
## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
** Bad device usb 0 **

Partition Map for IDE device 0  --   Partition Type: DOS

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            16777216        00089d19-01     83
  2     16779264        524288          00089d19-02     82
  3     17303552        3823029168      00089d19-03     83
  4     3840333824      66695344        00089d19-04     83


Partition Map for IDE device 1  --   Partition Type: DOS

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            16777216        000ed534-01     83
  2     16779264        524288          000ed534-02     82
  3     17303552        3823029168      000ed534-03     83
  4     3840333824      66695344        000ed534-04     83
Unknown command 'mmc' - try 'help'
running scan_disk ...
Scan device usb
device usb 0:1
** Bad device usb 0 **
device usb 1:1
** Bad device usb 1 **
device usb 2:1
** Bad device usb 2 **
device usb 3:1
** Bad device usb 3 **
Scan device ide

Reset IDE: Bus 0: OK Bus 1: OK
  Device 0: Model: WDC WD20EARX-00PASB0 Firm: 51.0AB51 Ser#:  WD-WCAZAK357705
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (3907029168 x 512)
  Device 1: Model: WDC WD20EARX-00PASB0 Firm: 51.0AB51 Ser#:  WD-WCAZAJ826128
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (3907029168 x 512)
device ide 0:1
1 bytes read in 45 ms (0 Bytes/s)
Found bootable drive on ide 0
loading uImage ...
5574832 bytes read in 1324 ms (4 MiB/s)
loading uInitrd ...
10038863 bytes read in 2054 ms (4.7 MiB/s)
loading DTB /boot/dts/kirkwood-netgear_stora_ms2000.dtb ...
11499 bytes read in 54 ms (207 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-5.9.3-kirkwood-tld-1
   Created:      2020-11-13  10:30:22 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5574768 Bytes = 5.3 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-5.9.3-kirkwood-tld-1
   Created:      2020-11-13  10:30:36 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    10038799 Bytes = 9.6 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 0366d000, end 03fffe0f ... OK
   Loading Device Tree to 03667000, end 0366ccea ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.9.3-kirkwood-tld-1 (root@tldDebian) (gcc (Debian 8.3.0-6) 8.3.0, GNU ld (GNU Binutils for Debian) 2.31.1) #1.0 PREEMPT Mon Nov 2 15:50:14 PST 2020
[    0.000000][    T0] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000][    T0] CPU: VIVT data cache, VIVT instruction cache
[    0.000000][    T0] OF: fdt: Machine model: NETGEAR MS2000 / MS2110 aka Stora
[    0.000000][    T0] Memory policy: Data cache writeback
[    0.000000][    T0] Zone ranges:
[    0.000000][    T0]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
[    0.000000][    T0] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 102220K/131072K available (10240K kernel code, 1096K rwdata, 4144K rodata, 1024K init, 316K bss, 28852K reserved, 0K cma-reserved)
[    0.000000][    T0] random: get_random_u32 called from ____cache_alloc+0x404/0x790 with crng_init=0
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0]  Trampoline variant of Tasks RCU enabled.
[    0.000000][    T0]  Rude variant of Tasks RCU enabled.
[    0.000000][    T0]  Tracing variant of Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000013][    T0] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000068][    T0] Switching to timer-based delay loop, resolution 5ns
[    0.001036][    T0] Console: colour dummy device 80x30
[    0.001105][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.001141][    T0] pid_max: default: 32768 minimum: 301
[    0.001657][    T0] LSM: Security Framework initializing
[    0.001848][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001885][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.003601][    T0] CPU: Testing write buffer coherency: ok
[    0.005884][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.006252][    T1] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x2
[    0.006640][    T1] rcu: Hierarchical SRCU implementation.
[    0.008204][    T1] devtmpfs: initialized
[    0.016330][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.016378][    T1] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.016709][    T1] xor: measuring software checksum speed
[    0.110151][    T1]    arm4regs  :   902.800 MB/sec
[    0.210095][    T1]    8regs     :   542.000 MB/sec
[    0.310095][    T1]    32regs    :   788.000 MB/sec
[    0.310121][    T1] xor: using function: arm4regs (902.800 MB/sec)
[    0.310151][    T1] prandom: seed boundary self test passed
[    0.315192][    T1] prandom: 100 self tests passed
[    0.315207][    T1] pinctrl core: initialized pinctrl subsystem
[    0.317126][    T1] NET: Registered protocol family 16
[    0.318143][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.319393][    T1] audit: initializing netlink subsys (disabled)
[    0.321216][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.321668][   T16] audit: type=2000 audit(0.310:1): state=initialized audit_enabled=0 res=1
[    0.321839][    T1] cpuidle: using governor ladder
[    0.321943][    T1] cpuidle: using governor menu
[    0.322555][    T1] Feroceon L2: Enabling L2
[    0.322618][    T1] Feroceon L2: Cache support initialised.
[    0.341234][    T1] No ATAGs?
[    2.560072][    C0] random: fast init done
[    6.430329][    T1] raid6: int32x8  gen()    90 MB/s
[    6.600286][    T1] raid6: int32x8  xor()    57 MB/s
[    6.770119][    T1] raid6: int32x4  gen()    90 MB/s
[    6.940278][    T1] raid6: int32x4  xor()    60 MB/s
[    7.110197][    T1] raid6: int32x2  gen()   114 MB/s
[    7.280138][    T1] raid6: int32x2  xor()    71 MB/s
[    7.450106][    T1] raid6: int32x1  gen()    81 MB/s
[    7.620144][    T1] raid6: int32x1  xor()    50 MB/s
[    7.620159][    T1] raid6: using algorithm int32x2 gen() 114 MB/s
[    7.620170][    T1] raid6: .... xor() 71 MB/s, rmw enabled
[    7.620180][    T1] raid6: using intx1 recovery algorithm
[    7.620500][    T1] vgaarb: loaded
[    7.621195][    T1] SCSI subsystem initialized
[    7.621852][    T1] usbcore: registered new interface driver usbfs
[    7.621937][    T1] usbcore: registered new interface driver hub
[    7.622046][    T1] usbcore: registered new device driver usb
[    7.622329][    T1] pps_core: LinuxPPS API ver. 1 registered
[    7.622344][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    7.622381][    T1] PTP clock support registered
[    7.624394][    T1] clocksource: Switched to clocksource orion_clocksource
[    9.470492][    T1] VFS: Disk quotas dquot_6.6.0
[    9.470631][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    9.483965][    T1] NET: Registered protocol family 2
[    9.485112][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    9.485160][    T1] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    9.485193][    T1] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    9.485220][    T1] TCP: Hash tables configured (established 1024 bind 1024)
[    9.485503][    T1] MPTCP token hash table entries: 512 (order: 0, 6144 bytes, linear)
[    9.485588][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    9.485628][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    9.485893][    T1] NET: Registered protocol family 1
[    9.486823][    T1] RPC: Registered named UNIX socket transport module.
[    9.486840][    T1] RPC: Registered udp transport module.
[    9.486851][    T1] RPC: Registered tcp transport module.
[    9.486861][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    9.486879][    T1] PCI: CLS 0 bytes, default 32
[    9.487259][    T1] Trying to unpack rootfs image as initramfs...
[   10.549131][    T1] Freeing initrd memory: 9804K
[   10.549350][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[   10.562479][    T1] Initialise system trusted keyrings
[   10.562565][    T1] Key type blacklist registered
[   10.562849][    T1] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[   10.562989][    T1] zbud: loaded
[   10.564836][    T1] NFS: Registering the id_resolver key type
[   10.564879][    T1] Key type id_resolver registered
[   10.564892][    T1] Key type id_legacy registered
[   10.564948][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[   10.564973][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   10.565331][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[   10.565960][    T1] fuse: init (API version 7.31)
[   10.566506][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[   10.566768][    T1] orangefs_init: module version upstream loaded
[   10.566786][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, quota, no debug enabled
[   10.685773][    T1] async_tx: api initialized (async)
[   10.685803][    T1] Key type asymmetric registered
[   10.685816][    T1] Asymmetric key parser 'x509' registered
[   10.685890][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[   10.686032][    T1] io scheduler bfq registered
[   10.925860][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[   10.928329][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: host bridge /mbus@f1000000/pcie@82000000 ranges:
[   10.928413][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1040000..0x00f1041fff -> 0x0000040000
[   10.928461][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[   10.928495][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[   10.928842][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[   10.928869][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[   10.928893][    T1] pci_bus 0000:00: root bus resource [mem 0xf1040000-0xf1041fff] (bus address [0x00040000-0x00041fff])
[   10.928912][    T1] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[   10.928930][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[   10.929091][    T1] pci 0000:00:01.0: [11ab:6281] type 01 class 0x060400
[   10.929133][    T1] pci 0000:00:01.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[   10.930863][    T1] PCI: bus0: Fast back to back transfers disabled
[   10.930899][    T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[   10.932315][    T1] PCI: bus1: Fast back to back transfers enabled
[   10.932349][    T1] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[   10.932600][    T1] pci 0000:00:01.0: BAR 6: assigned [mem 0xe0000000-0xe00007ff pref]
[   10.932623][    T1] pci 0000:00:01.0: PCI bridge to [bus 01]
[   10.933473][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[   10.995757][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[   10.999067][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[   11.055739][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[   11.059219][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   11.060979][    T1] printk: console [ttyS0] disabled
[   11.061095][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[   12.013561][    T1] printk: console [ttyS0] enabled
[   12.029355][    T1] loop: module loaded
[   12.034214][    T1] sata_mv f1080000.sata: slots 32 ports 2
[   12.044708][    T1] scsi host0: sata_mv
[   12.049392][    T1] scsi host1: sata_mv
[   12.053580][    T1] ata1: SATA max UDMA/133 irq 33
[   12.058507][    T1] ata2: SATA max UDMA/133 irq 33
[   12.064893][    T1] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xda
[   12.071981][    T1] nand: Samsung NAND 256MiB 3,3V 8-bit
[   12.077480][    T1] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[   12.085977][    T1] Scanning device for bad blocks
[   12.132773][    T1] Bad eraseblock 390 at 0x0000030c0000
[   12.138192][    T1] Bad eraseblock 391 at 0x0000030e0000
[   12.183916][    T1] Bad eraseblock 768 at 0x000006000000
[   12.189333][    T1] Bad eraseblock 769 at 0x000006020000
[   12.201178][    T1] Bad eraseblock 830 at 0x0000067c0000
[   12.206591][    T1] Bad eraseblock 831 at 0x0000067e0000
[   12.235855][    T1] Bad eraseblock 1054 at 0x0000083c0000
[   12.241336][    T1] Bad eraseblock 1055 at 0x0000083e0000
[   12.285359][    T1] Bad eraseblock 1415 at 0x00000b0e0000
[   12.329487][    T1] Bad eraseblock 1774 at 0x00000ddc0000
[   12.335019][    T1] Bad eraseblock 1775 at 0x00000dde0000
[   12.342247][    T1] Bad eraseblock 1792 at 0x00000e000000
[   12.347777][    T1] Bad eraseblock 1793 at 0x00000e020000
[   12.359830][    T1] Bad eraseblock 1855 at 0x00000e7e0000
[   12.386007][    T1] 4 cmdlinepart partitions found on MTD device orion_nand
[   12.393045][    T1] Creating 4 MTD partitions on "orion_nand":
[   12.399026][    T1] 0x000000000000-0x000000100000 : "u-boot"
[   12.406585][    T1] 0x000000100000-0x000000500000 : "uImage"
[   12.414007][    T1] 0x000000500000-0x000002500000 : "rootfs"
[   12.421667][    T1] 0x000002500000-0x000010000000 : "data"
[   12.430815][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[   12.439438][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[   12.451568][    T1] libphy: Fixed MDIO Bus: probed
[   12.458020][    T1] libphy: orion_mdio_bus: probed
[   12.462872][    T1] [Firmware Warn]: /ocp@f1000000/mdio-bus@72004/ethernet-phy@8: Whitelisted compatible string. Please remove
[   12.494945][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   12.564464][   T88] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[   12.576064][   T88] ata1.00: ATA-8: WDC WD20EARX-00PASB0, 51.0AB51, max UDMA/133
[   12.583502][   T88] ata1.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   12.595780][   T88] ata1.00: configured for UDMA/133
[   12.611413][    T7] scsi 0:0:0:0: Direct-Access     ATA      WDC WD20EARX-00P AB51 PQ: 0 ANSI: 5
[   12.621786][   T92] sd 0:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[   12.630949][   T92] sd 0:0:0:0: [sda] 4096-byte physical blocks
[   12.637127][   T92] sd 0:0:0:0: [sda] Write Protect is off
[   12.642812][   T92] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   12.678349][   T92]  sda: sda1 sda2 sda3 sda4
[   12.685525][   T92] sd 0:0:0:0: [sda] Attached SCSI disk
[   13.134466][   T90] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[   13.165564][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address c0:3f:0e:02:e4:0b
[   13.175144][   T90] ata2.00: ATA-8: WDC WD20EARX-00PASB0, 51.0AB51, max UDMA/133
[   13.182584][   T90] ata2.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   13.190348][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   13.197688][    T1] ehci-pci: EHCI PCI platform driver
[   13.202950][    T1] ehci-orion: EHCI orion driver
[   13.208325][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[   13.214892][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[   13.223386][   T90] ata2.00: configured for UDMA/133
[   13.228647][    T1] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[   13.246008][   T58] scsi 1:0:0:0: Direct-Access     ATA      WDC WD20EARX-00P AB51 PQ: 0 ANSI: 5
[   13.256416][   T92] sd 1:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[   13.264969][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[   13.272457][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.09
[   13.281523][   T92] sd 1:0:0:0: [sdb] 4096-byte physical blocks
[   13.287610][   T92] sd 1:0:0:0: [sdb] Write Protect is off
[   13.293216][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   13.301293][   T92] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   13.311126][    T1] usb usb1: Product: EHCI Host Controller
[   13.316759][    T1] usb usb1: Manufacturer: Linux 5.9.3-kirkwood-tld-1 ehci_hcd
[   13.324107][    T1] usb usb1: SerialNumber: f1050000.ehci
[   13.332178][    T1] hub 1-0:1.0: USB hub found
[   13.336795][    T1] hub 1-0:1.0: 1 port detected
[   13.342518][    T1] usbcore: registered new interface driver usb-storage
[   13.350481][    T1] mousedev: PS/2 mouse device common for all mice
[   13.363886][   T92]  sdb: sdb1 sdb2 sdb3 sdb4
[   13.371022][   T92] sd 1:0:0:0: [sdb] Attached SCSI disk
[   14.404442][    T1] rtc-mv f1010300.rtc: internal RTC not ticking
[   14.410798][    T1] i2c /dev entries driver
[   14.422432][    T1] rtc-pcf8563 0-0051: registered as rtc0
[   14.429275][    T1] rtc-pcf8563 0-0051: setting system clock to 2021-02-16T22:52:51 UTC (1613515971)
[   14.440680][    T1] device-mapper: uevent: version 1.0.3
[   14.446456][    T1] device-mapper: ioctl: 4.42.0-ioctl (2020-02-27) initialised: dm-devel@redhat.com
[   14.456314][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[   14.463584][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[   14.471026][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[   14.478548][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[   14.485413][    T1] device-mapper: raid: Loading target version 1.15.1
[   14.494686][    T1] hid: raw HID events driver (C) Jiri Kosina
[   14.501055][    T1] drop_monitor: Initializing network drop monitor service
[   14.508708][    T1] NET: Registered protocol family 10
[   14.515468][    T1] Segment Routing with IPv6
[   14.519860][    T1] RPL Segment Routing with IPv6
[   14.524793][    T1] NET: Registered protocol family 17
[   14.530287][    T1] Key type dns_resolver registered
[   14.535941][    T1] registered taskstats version 1
[   14.540766][    T1] Loading compiled-in X.509 certificates
[   14.546492][    T1] zswap: loaded using pool lzo/zbud
[   14.552032][    T1] Key type ._fscrypt registered
[   14.556863][    T1] Key type .fscrypt registered
[   14.561507][    T1] Key type fscrypt-provisioning registered
[   14.569896][    T1] Key type big_key registered
[   14.612525][    T1] Key type encrypted registered
[   14.625850][    T1] Freeing unused kernel memory: 1024K
[   14.645440][    T1] Checked W+X mappings: passed, no W+X pages found
[   14.651845][    T1] Run /init as init process
Loading, please wait...
Starting version 241
[   15.666078][  T138] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[   16.653933][  T146] md: kicking non-fresh sda4 from array!
[   16.734598][  T148] md/raid1:md1: active with 2 out of 2 mirrors
[   16.777608][  T149] md: kicking non-fresh sda1 from array!
[   16.794585][  T147] md/raid1:md2: active with 2 out of 2 mirrors
[   16.803708][  T148] md1: detected capacity change from 0 to 268369920
[   16.814152][  T146] md/raid1:md3: active with 1 out of 2 mirrors
[   16.844082][  T146] md3: detected capacity change from 0 to 34131214336
[   16.899942][  T149] md/raid1:md0: active with 1 out of 2 mirrors
[   16.924904][  T147] md2: detected capacity change from 0 to 1957256691712
[   16.941789][  T149] md0: detected capacity change from 0 to 8589869056
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... [   29.070250][  T188] process '/usr/bin/fstype' started with executable stack
done.
Begin: Will now check root file system ... fsck from util-linux 2.33.1
[/sbin/fsck.ext4 (1) -- /dev/md0] fsck.ext4 -a -C0 /dev/md0
rootfs: clean, 29652/524288 files, 949611/2097136 blocks
done.
[   29.515656][  T208] EXT4-fs (md0): mounted filesystem with ordered data mode. Opts: (null)
[   29.534251][    C0] random: crng init done
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.93 booting
[info] Using makefile-style concurrent boot in runlevel S.
[ ok ] Starting hotplug events dispatcher: systemd-udevd.
[ ok ] Synthesizing the initial hotplug events (subsystems)...done.
[....] Synthesizing the initial hotplug events (devices)...[   32.597560][  T369] systemd-udevd[369]: could not open moddep file '/lib/modules/5.9.3-kirkwood-tld-1/modules.dep.bin'
[   32.686337][  T369] systemd-udevd[369]: could not open moddep file '/lib/modules/5.9.3-kirkwood-tld-1/modules.dep.bin'
done.
[....] Waiting for /dev to be fully populated...[   32.920213][  T353] systemd-udevd[353]: Using default interface naming scheme 'v240'.
[   33.005382][  T353] systemd-udevd[353]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   33.169882][  T373] systemd-udevd[373]: could not open moddep file '/lib/modules/5.9.3-kirkwood-tld-1/modules.dep.bin'
[   33.201084][  T374] systemd-udevd[374]: could not open moddep file '/lib/modules/5.9.3-kirkwood-tld-1/modules.dep.bin'
[   33.576561][  T373] systemd-udevd[373]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
done.
[ ok ] Setting hostname to 'stora'...done.
[....] Activating swap:swapon: /dev/md1: found signature [pagesize=4096, signature=swap]
swapon: /dev/md1: pagesize=4096, swapsize=268369920, devsize=268369920
swapon /dev/md1
[   36.704462][  T539] Adding 262076k swap on /dev/md1.  Priority:-2 extents:1 across:262076k FS
. ok
[   37.024562][  T563] EXT4-fs (md0): re-mounted. Opts: errors=remount-ro
[info] Will now check all file systems.
fsck from util-linux 2.33.1
Checking all file systems.
LABEL=rootfs is mounted
LABEL=DATI is not mounted
[/sbin/fsck.ext4 (1) -- /srv/HDD/DATI] fsck.ext4 -y -C0 /dev/md2
LABEL=BACK is not mounted
e2fsck 1.44.5 (15-Dec-2018)
DATI: clean, 196301/119463936 files, 215117479/477845872 blocks
LABEL=BACK is not mounted
[/sbin/fsck.ext4 (1) -- /srv/HDD/BACK] fsck.ext4 -y -C0 /dev/md3
e2fsck 1.44.5 (15-Dec-2018)
BACK: clean, 279352/2084880 files, 7443504/8332816 blocks
[ ok ] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable..
[ ok ] Cleaning up temporary files...[....] Cleaning /tmp...done.
[ ok .
[....] Will now mount local filesystems:[   48.243990][  T850] EXT4-fs (md2): mounted filesystem with ordered data mode. Opts: (null)
[   48.386479][  T850] EXT4-fs (md3): mounted filesystem with ordered data mode. Opts: (null)
. ok
[....] Will now activate swapfile swap:swapon: /dev/md1: already active -- ignored
done.
[ ok ] Checking minimum space in /tmp...done.
[ ok ] Cleaning up temporary files....
[ ok ] Starting Setting kernel variables: sysctl.
[ ok ] Initializing random number generator...done.
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/c0:3f:0e:02:e4:0b
Sending on   LPF/eth0/c0:3f:0e:02:e4:0b
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
[   53.747483][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   53.758135][  T158] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
DHCPOFFER of 192.168.1.2 from 192.168.1.1
DHCPREQUEST for 192.168.1.2 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.1.2 from 192.168.1.1
invoke-rc.d: could not determine current runlevel
Reloading /etc/samba/smb.conf: smbd.
bound to 192.168.1.2 -- renewal in 39627 seconds.
done.
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1340 (syslogd)
. ok
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1367 (klogd)
. ok
[ ok ] Starting periodic command scheduler: cron.
[ ok ] Starting system message bus: dbus.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[ ok ] Starting MD monitoring service: mdadm --monitor.
[ ok ] Starting NFS common utilities: statd idmapd.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting NetBIOS name server: nmbd.
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting mail-transfer-agent: nullmailer.
[ ok ] Starting SMB/CIFS daemon: smbd.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Starting bittorrent daemon: transmission-daemon.
[ ok ] Running local boot scripts (/etc/rc.local).

Debian GNU/Linux 10 stora ttyS0


# cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point>     <type>  <options>          <dump>   <pass>
LABEL=rootfs    /                 ext4    noatime,errors=remount-ro 0  1
tmpfs           /tmp              tmpfs   defaults            0        0
LABEL=swap      swap              swap    defaults            0        0
############################################################################
## Impostazione di tmpfs, controllare con df -h che "tmpfs /run"
## non sia usato al 100%, in quel caso aumentare la sua grandezza:
#none            /run             tmpfs   defaults,size=20M   0        0
#none            /run             tmpfs   defaults,size=57M   0        0
############################################################################
## monta le due partizioni /dev/md2 (DATI) e /dev/md3 (BACK)
LABEL=DATI      /srv/HDD/DATI     ext4    defaults            0        2
LABEL=BACK      /srv/HDD/BACK     ext4    defaults            0        2
############################################################################
## SFTP USERS
## monta le cartelle condivise su DATI nelle rispettive home degli utenti
/srv/HDD/DATI/DATI/SHARED/SFTP/polpetta/public /home/polpetta/public none defaults,bind 0 0
/srv/HDD/DATI/DATI/SHARED/SFTP/alicetta/public /home/alicetta/public none defaults,bind 0 0
############################################################################

# mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=51108k,nr_inodes=12777,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=11308k,mode=755)
/dev/md0 on / type ext4 (rw,noatime,errors=remount-ro)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=75020k)
tmpfs on /tmp type tmpfs (rw,relatime)
/dev/md2 on /srv/HDD/DATI type ext4 (rw,relatime)
/dev/md3 on /srv/HDD/BACK type ext4 (rw,relatime)
/dev/md2 on /home/polpetta/public type ext4 (rw,relatime)
/dev/md2 on /home/alicetta/public type ext4 (rw,relatime)
rpc_pipefs on /run/rpc_pipefs type rpc_pipefs (rw,relatime)

# ls -lart /boot
total 103920
drwxr-xr-x  2 root root     4096 Dec 24 22:51 dts
-rwxr-xr-x  1 root root  5316464 Jan 15 11:22 vmlinuz-5.10.7-kirkwood-tld-1
-rw-r--r--  1 root root   180435 Jan 15 11:22 config-5.10.7-kirkwood-tld-1
-rw-r--r--  1 root root  4308309 Jan 15 11:22 System.map-5.10.7-kirkwood-tld-1
-rwxr-xr-x  1 root root  5316464 Jan 15 11:32 zImage-5.10.7-kirkwood-tld-1
-rw-r--r--  1 root root  7589236 Jan 15 11:47 linux-headers-5.10.7-kirkwood-tld-1_1.0_armel.deb
-rw-r--r--  1 root root 21747120 Jan 15 11:50 linux-image-5.10.7-kirkwood-tld-1_1.0_armel.deb
-rw-r--r--  1 root root  1300480 Jan 15 12:11 linux-dtb-5.10.7-kirkwood-tld-1.tar
-rw-r--r--  1 root root   161761 Jan 17 04:54 linux-5.10.7-kirkwood-tld-1.patch
drwxr-xr-x 22 root root     4096 Feb 16 23:36 ..
-rw-r--r--  1 root root 34933063 Feb 16 23:38 linux-5.10.7-kirkwood-tld-1-bodhi.tar.bz2
-rw-r--r--  1 root root 10105289 Feb 16 23:44 initrd.img-5.10.7-kirkwood-tld-1
-rw-r--r--  1 root root  5316528 Feb 16 23:45 uImage
drwxr-xr-x  3 root root     4096 Feb 16 23:46 .
-rw-r--r--  1 root root 10105353 Feb 16 23:46 uInitrd

It is still alive!!! I can't get rid of this damn 5.9.3 kernel... LOL
I forgot ... I don't have any USB drive attached
Re: The old kernel version is still running after update
February 16, 2021 10:02PM
imianz,

You are not posting the log verbatim. Which user and directory when you were doing this? was it root? and on which disk? i.e. there is no user/path in front of the command dpkg.

# dpkg --get-selections | grep linux-image
linux-image-5.10.7-kirkwood-tld-1               deinstall
linux-image-5.2.9-kirkwood-tld-1                deinstall
linux-image-5.5.1-kirkwood-tld-1                deinstall
linux-image-5.6.5-kirkwood-tld-1                deinstall
linux-image-5.7.1-kirkwood-tld-1                deinstall
linux-image-5.8.3-kirkwood-tld-1                deinstall
linux-image-5.9.12-kirkwood-tld-1               deinstall
linux-image-5.9.3-kirkwood-tld-1                deinstall

Sometime a tiny mistake by being at the wrong place could cause this problem. So that was the reason I always ask users to copy/paste the log as is.

=======

Since you are running RAID, there is no garantee that u-boot will know where the kernel files are. I think that is the problem.
/dev/md0 on / type ext4 (rw,noatime,errors=remount-ro)

Interrupt serial console at count down
Hit any key to stop autoboot:  0

And try to list the /boot folder

ide reset
ext2ls ide 0:1 /boot

See if the files are what you expect to see.

This is very suspect:
Partition Map for IDE device 0  --   Partition Type: DOS

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            16777216        00089d19-01     83
  2     16779264        524288          00089d19-02     82
  3     17303552        3823029168      00089d19-03     83
  4     3840333824      66695344        00089d19-04     83
Do you have a boot partition separated from the rootfs (that partition 1 on the list)? That partition could still have the kernel 5.9.3 uImage and uInitrd still on it.

This is always true: u-boot will find the first partition on the HDD and load uImage and uInitrd from that. So after you upgrade kernel, you would have to copy those 2files to that boot partition if there is one (even though you have the files on the /boot folder on the rootfs, they are not the same ones u-boot has loaded).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
All the operations was done as root (#) from the root path /, only kernel installation was made from /boot directory.
This is my disks configuration (and, probably, the solution):

root@stora:/# lsblk -o name,mountpoint,label,size,fsused,fsuse%,fstype

NAME      MOUNTPOINT    LABEL    SIZE FSUSED FSUSE% FSTYPE
sda                              1.8T
|-sda1                             8G               linux_raid_member
|-sda2                           256M               linux_raid_member
| `-md1   [SWAP]        swap     256M               swap
|-sda3                  stora:2  1.8T               linux_raid_member
| `-md2   /srv/HDD/DATI DATI     1.8T   791G    44% ext4
`-sda4                  stora:3 31.8G               linux_raid_member
sdb                              1.8T
|-sdb1                             8G               linux_raid_member
| `-md0   /             rootfs     8G   3.4G    44% ext4
|-sdb2                           256M               linux_raid_member
| `-md1   [SWAP]        swap     256M               swap
|-sdb3                  stora:2  1.8T               linux_raid_member
| `-md2   /srv/HDD/DATI DATI     1.8T   791G    44% ext4
`-sdb4                  stora:3 31.8G               linux_raid_member
  `-md3   /srv/HDD/BACK BACK    31.8G  27.4G    88% ext4
mtdblock0                          1M
mtdblock1                          4M
mtdblock2                         32M
mtdblock3                        219M

You are right, there is a RAID mounting problem, as you can see sdb1 was mounted as "md0 / rootfs" but sda1 was not. The same goes for sda4 with md3 (but this is less important).
I do not why but it didn't occur to me!
I suspect the RAID problem has existed since I installed the 5.9.3 kernel but I didn't notice it.
I'm at work now so I can't check. I will let you know.
Re: The old kernel version is still running after update
February 17, 2021 01:24AM
Ah! I'd bet that was it.

sda                              1.8T
|-sda1                             8G               linux_raid_member
|-sda2                           256M               linux_raid_member
| `-md1   [SWAP]        swap     256M               swap
|-sda3                  stora:2  1.8T               linux_raid_member
| `-md2   /srv/HDD/DATI DATI     1.8T   791G    44% ext4
`-sda4                  stora:3 31.8G               linux_raid_member
sdb                              1.8T
|-sdb1                             8G               linux_raid_member
| `-md0   /             rootfs     8G   3.4G    44% ext4
|-sdb2                           256M               linux_raid_member
| `-md1   [SWAP]        swap     256M               swap
|-sdb3                  stora:2  1.8T               linux_raid_member
| `-md2   /srv/HDD/DATI DATI     1.8T   791G    44% ext4
`-sdb4                  stora:3 31.8G               linux_raid_member
  `-md3   /srv/HDD/BACK BACK    31.8G  27.4G    88% ext4
mtdblock0                          1M

The order of enumeration for USB and SATA in the Linux kernel is unpredictable. That was the reason for using root=LABEL-rootfs to force it to find the correct rootfs. Most of the time, the slots in the box determine the order. However, it is not a guarantee . For multiple USB ports, is all up for grab when the kernel boots (the drive letters could change depending what type of USB devices being plugged in).

Usually that /dev/sda1 shown in Linux would also be the first partition that u-boot detects. So the kernel files (if any) on that partition might be the old ones.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
bodhi,
at work, during my coffee break, I fixed the RAID configuration and now (finally!) everything works.

root@stora:/# lsblk -o name,mountpoint,label,size,fsused,fsuse%,fstype
NAME      MOUNTPOINT    LABEL    SIZE FSUSED FSUSE% FSTYPE
sda                              1.8T
|-sda1                             8G               linux_raid_member
| `-md0   /             rootfs     8G   3.4G    44% ext4
|-sda2                           256M               linux_raid_member
| `-md1   [SWAP]        swap     256M               swap
|-sda3                  stora:2  1.8T               linux_raid_member
| `-md2   /srv/HDD/DATI DATI     1.8T   791G    44% ext4
`-sda4                  stora:3 31.8G               linux_raid_member
  `-md3   /srv/HDD/BACK BACK    31.8G  27.4G    88% ext4
sdb                              1.8T
|-sdb1                             8G               linux_raid_member
| `-md0   /             rootfs     8G   3.4G    44% ext4
|-sdb2                           256M               linux_raid_member
| `-md1   [SWAP]        swap     256M               swap
|-sdb3                  stora:2  1.8T               linux_raid_member
| `-md2   /srv/HDD/DATI DATI     1.8T   791G    44% ext4
`-sdb4                  stora:3 31.8G               linux_raid_member
  `-md3   /srv/HDD/BACK BACK    31.8G  27.4G    88% ext4
mtdblock0                          1M
mtdblock1                          4M
mtdblock2                         32M
mtdblock3                        219M


root@stora:/# uname -a
Linux stora 5.10.7-kirkwood-tld-1 #1.0 PREEMPT Thu Jan 14 20:28:12 PST 2021 armv5tel GNU/Linux

Thank you very much, bodhi, for your time and precious help!
Re: The old kernel version is still running after update
February 17, 2021 04:33AM
Cool! glad you got it working.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Author:

Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: