Welcome! Log In Create A New Profile

Advanced

Install Kernel 5.1.11-kirkwood-tld-2 on Lenovo Iomega EZ

Posted by Boia11 
Install Kernel 5.1.11-kirkwood-tld-2 on Lenovo Iomega EZ
July 13, 2019 06:26AM
Hi bodhi,
I have a Lenovo Iomega EZ. I follow this guide "Install pure Debian on Iomega EZ Media" but I try to upgrade kernel to 5.1.11 but at reboot the uboot load the old 4.12.1, I follow your step on 1st post for upgrade procedure.
Can you help me? But can I update u-boot on this device or it's not necessary?



Edited 1 time(s). Last edit at 07/13/2019 11:08PM by bodhi.
Re: Install Kernel 5.1.11-kirkwood-tld-2 on Lenovo Iomega EZ
July 13, 2019 11:12PM
Boia11,

> But can I update u-boot on this
> device or it's not necessary?

Not necessary.

> I have a Lenovo Iomega EZ. I follow this guide "Install pure Debian on Iomega EZ Media" but I try to upgrade kernel to 5.1.11
> but at reboot the uboot load the old 4.12.1, I
> follow your step on 1st post for upgrade procedure.

If by "4.12." you meant stock kernel?

Do have serial console? let it boot and capture the entire serial console log and post here.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Install Kernel 5.1.11-kirkwood-tld-2 on Lenovo Iomega EZ
July 14, 2019 02:29AM
And also see this thread:

https://forum.doozan.com/read.php?2,15887

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Install Kernel 5.1.11-kirkwood-tld-2 on Lenovo Iomega EZ
July 14, 2019 07:47AM
> If by "4.12." you meant stock kernel?

I use the latest released rootfs for install debian on Lenovo|Iomega EZ Media (Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2 (24 Jul 2017))

> Do have serial console? let it boot and capture
> the entire serial console log and post here.

yes, serial console capture from boot:

 __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|  ** ix1-spi ** ** uboot_ver:0.0.8 **

 ** MARVELL BOARD: DB-88F6282A-BP LE

U-Boot 1.1.4 (Oct 28 2011 - 15:17:21) Marvell version: 3.6.1 - EMC

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CD5A0

Soc: 88F6282 A1 CPU running @ 1200Mhz L2 running @ 600Mhz
SysClock = 400Mhz , TClock = 200Mhz

DRAM (DDR3) CAS Latency = 6 tRP = 6 tRAS = 15 tRCD=6
DRAM CS[0] base 0x00000000   size 128MB
DRAM Total size 128MB  16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
[1024kB@f8000000] Flash:  1 MB

Marvell Serial ATA Adapter
Integrated Sata device found
[0 0 0]: Enable DMA mode (6)
  Device 0 @ 0 0:
Model: ST1000LM048-2E7172                       Firm: SDM1     Ser#:             ZDE6LFL9
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)


CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
PEX 1: interface detected no Link.
Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  0

IDE read: device 0 block # 20480, count 8192 ... 8192 blocks read: OK

IDE read: device 0 block # 40960, count 16384 ... 16384 blocks read: OK
## Booting image at 00040000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Created:      2019-07-13  10:17:55 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3834623 Bytes =  3.7 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 02100000 ...
   Image Name:   initrd.img-4.12.1-kirkwood-tld-1
   Created:      2019-07-13  10:16:57 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7245632 Bytes =  6.9 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.12.1-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017
[    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: Lenovo Iomega EZ
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: root=/dev/sda2 init=/bin/systemd fsck.mode=force fsck.repair=yes console=ttyS0,115200 mtdparts=spi_flash:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2)
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 109420K/131072K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 21652K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff800000   ( 880 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0db3274   ( 717 kB)
[    0.000000]        .bss : 0xc0db9b9c - 0xc0e01e60   ( 289 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000007] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000039] Switching to timer-based delay loop, resolution 5ns
[    0.000506] Console: colour dummy device 80x30
[    0.000539] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.000561] pid_max: default: 32768 minimum: 301
[    0.000755] Security Framework initialized
[    0.000876] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000895] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001750] CPU: Testing write buffer coherency: ok
[    0.002735] Setting up static identity map for 0x100000 - 0x100058
[    0.002990] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.006107] devtmpfs: initialized
[    0.010886] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.010911] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.011294] prandom: seed boundary self test passed
[    0.015047] prandom: 100 self tests passed
[    0.015058] pinctrl core: initialized pinctrl subsystem
[    0.016191] NET: Registered protocol family 16
[    0.016674] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.018260] cpuidle: using governor ladder
[    0.018330] cpuidle: using governor menu
[    0.018790] Feroceon L2: Enabling L2
[    0.018831] Feroceon L2: Cache support initialised.
[    0.019176] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.024541] No ATAGs?
[    0.033708] vgaarb: loaded
[    0.034030] SCSI subsystem initialized
[    0.034500] usbcore: registered new interface driver usbfs
[    0.034576] usbcore: registered new interface driver hub
[    0.034660] usbcore: registered new device driver usb
[    0.035745] clocksource: Switched to clocksource orion_clocksource
[    0.125123] VFS: Disk quotas dquot_6.6.0
[    0.125211] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.135209] NET: Registered protocol family 2
[    0.135998] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.136029] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.136052] TCP: Hash tables configured (established 1024 bind 1024)
[    0.136135] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.136162] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.136333] NET: Registered protocol family 1
[    0.136743] RPC: Registered named UNIX socket transport module.
[    0.136754] RPC: Registered udp transport module.
[    0.136762] RPC: Registered tcp transport module.
[    0.136769] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.136995] Unpacking initramfs...
[    0.774095] Freeing initrd memory: 7076K
[    0.774279] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.775202] audit: initializing netlink subsys (disabled)
[    0.775636] Initialise system trusted keyrings
[    0.775686] Key type blacklist registered
[    0.775846] audit: type=2000 audit(0.769:1): state=initialized audit_enabled=0 res=1
[    0.775936] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    0.776003] zbud: loaded
[    0.776948] NFS: Registering the id_resolver key type
[    0.776976] Key type id_resolver registered
[    0.776984] Key type id_legacy registered
[    0.777008] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.777018] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.777205] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.777389] fuse init (API version 7.26)
[    0.777717] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.777922] orangefs_init: module version upstream loaded
[    0.777932] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.555755] random: fast init done
[    6.618891] Key type asymmetric registered
[    6.618907] Asymmetric key parser 'x509' registered
[    6.618970] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    6.618980] io scheduler noop registered
[    6.618988] io scheduler deadline registered
[    6.619068] io scheduler cfq registered (default)
[    6.620285] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    6.622054] mv_xor f1060800.xor: Marvell shared XOR driver
[    6.676485] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    6.676716] mv_xor f1060900.xor: Marvell shared XOR driver
[    6.736500] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    6.736970] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    6.738228] console [ttyS0] disabled
[    6.738295] f1012100.serial: ttyS0 at MMIO 0xf1012100 (irq = 27, base_baud = 12500000) is a 16550A
[    7.341919] console [ttyS0] enabled
[    7.353647] loop: module loaded
[    7.357438] sata_mv f1080000.sata: slots 32 ports 2
[    7.364910] scsi host0: sata_mv
[    7.368522] scsi host1: sata_mv
[    7.371912] ata1: SATA max UDMA/133 irq 34
[    7.376076] ata2: SATA max UDMA/133 irq 34
[    7.381724] m25p80 spi0.0: found mx25l8005, expected mx25l8006e
[    7.387729] m25p80 spi0.0: mx25l8005 (1024 Kbytes)
[    7.392579] 3 ofpart partitions found on MTD device spi0.0
[    7.398113] Creating 3 MTD partitions on "spi0.0":
[    7.402926] 0x000000000000-0x00000007e000 : "u-boot"
[    7.407928] mtd: partition "u-boot" doesn't end on an erase block -- force read-only
[    7.416999] 0x00000007e000-0x00000007f000 : "u-boot env2"
[    7.422421] mtd: partition "u-boot env2" doesn't start on an erase block boundary -- force read-only
[    7.432902] 0x00000007f000-0x000000080000 : "u-boot env"
[    7.438286] mtd: partition "u-boot env" doesn't start on an erase block boundary -- force read-only
[    7.449727] libphy: Fixed MDIO Bus: probed
[    7.454549] libphy: orion_mdio_bus: probed
[    7.463393] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    7.566783] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:d0:b8:1d:10:ef
[    7.575630] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    7.582240] ehci-pci: EHCI PCI platform driver
[    7.586779] ehci-orion: EHCI orion driver
[    7.590990] orion-ehci f1050000.ehci: EHCI Host Controller
[    7.596609] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    7.604478] orion-ehci f1050000.ehci: irq 31, io mem 0xf1050000
[    7.635781] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    7.642042] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    7.648907] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    7.656197] usb usb1: Product: EHCI Host Controller
[    7.661098] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd
[    7.667863] usb usb1: SerialNumber: f1050000.ehci
[    7.673259] hub 1-0:1.0: USB hub found
[    7.677113] hub 1-0:1.0: 1 port detected
[    7.681679] usbcore: registered new interface driver usb-storage
[    7.688110] mousedev: PS/2 mouse device common for all mice
[    7.694283] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[    7.701404] i2c /dev entries driver
[    7.707490] hidraw: raw HID events driver (C) Jiri Kosina
[    7.713303] drop_monitor: Initializing network drop monitor service
[    7.719880] NET: Registered protocol family 17
[    7.724417] Key type dns_resolver registered
[    7.729517] registered taskstats version 1
[    7.733637] Loading compiled-in X.509 certificates
[    7.738535] zswap: loaded using pool lzo/zbud
[    7.752354] Key type big_key registered
[    7.765029] Key type encrypted registered
[    7.770447] rtc-mv f1010300.rtc: setting system clock to 2019-07-14 12:43:56 UTC (1563108236)
[    8.015784] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    8.317937] ata1.00: ATA-10: ST1000LM048-2E7172, SDM1, max UDMA/133
[    8.324236] ata1.00: 1953525168 sectors, multi 16: LBA48 NCQ (depth 31/32)
[    8.715821] ata1.00: configured for UDMA/133
[    8.730658] scsi 0:0:0:0: Direct-Access     ATA      ST1000LM048-2E71 SDM1 PQ: 0 ANSI: 5
[    8.739937] sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[    8.748157] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    8.753512] sd 0:0:0:0: [sda] Write Protect is off
[    8.758495] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    8.824969]  sda: sda1 sda2 sda3
[    8.830124] sd 0:0:0:0: [sda] Attached SCSI disk
[    9.077288] ata2: SATA link down (SStatus 0 SControl F300)
[    9.096482] Freeing unused kernel memory: 1024K
Loading, please wait...
starting version 232
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 ... done.
Warning: fsck not present, so skipping root file[   10.145211] EXT4-fs (sda2): mounting ext3 file system using the ext4 subsystem
 system
[   10.154003] EXT4-fs (sda2): INFO: recovery required on readonly filesystem
[   10.161028] EXT4-fs (sda2): write access will be enabled during recovery
[   10.297093] EXT4-fs (sda2): recovery complete
[   10.355848] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
run-init: /bin/systemd: No such file or directory
Target filesystem doesn't have requested /bin/systemd.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[ ok ] Setting hostname to 'debian'...done.
[....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232
. ok
[ ok ] Synthesizing the initial hotplug events...done.
[   12.986479] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[....] Waiting for /dev to be fully populated...[   13.147644] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[   13.167970] adt7475 0-002e: hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[   13.168122] adt7475 0-002e: ADT7473 device, revision 2
[   13.168129] adt7475 0-002e: Bypassing attenuators on: in1
[   13.358394] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   13.458947] orion_wdt: Initial timeout 21 sec
[   13.539457] marvell-cesa f1030000.crypto: CESA device successfully registered
done.
[....] Activating swap:swapon: /dev/sda1: found signature [page[   14.870409] Adding 8286204k swap on /dev/sda1.  Priority:-1 extents:1 across:8286204k FS
size=4096, signature=swap]
swapon: /dev/sda1: pagesize=4096, swapsize=8485076992, devsize=8485076992
swapon /dev/sda1
. ok
[   15.048478] EXT4-fs (sda2): re-mounted. Opts: (null)
[....] Will now check root file system:fsck from util-linux 2.29.2
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -y -C0 /dev/sda2
e2fsck 1.43.4 (31-Jan-2017)
rootfs: clean, 18018/1048576 files, 301972/4194304 blocks
. ok
[   15.355889] EXT4-fs (sda2): re-mounted. Opts: errors=remount-ro
[....] Will now activate lvm and md swap:swapon: /dev/sda1: already active -- ignored
done.
[info] Will now check all file systems.
fsck from util-linux 2.29.2
Checking all file systems.
LABEL=rootfs is mounted
[ ok ] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable..
[....] Cleaning [   16.550282] random: crng init done
[ ok mporary files...[....] Cleaning /tmp...done.
[ ok .
[ ok ] Will now mount local filesystems:.
[....] Will now activate swapfile swap:swapon: /dev/sda1: already active -- ignored
done.
[ ok ] Checking minimum space in /tmp...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables...done.
[ ok ] Initializing random number generator...done.
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:d0:b8:1d:10:ef
Sending on   LPF/eth0/00:d0:b8:1d:10:ef
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
[   21.054356] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPREQUEST of 192.168.1.5 on eth0 to 255.255.255.255 port 67
DHCPOFFER of 192.168.1.5 from 192.168.1.254
DHCPACK of 192.168.1.5 from 192.168.1.254
bound to 192.168.1.5 -- renewal in 1472 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.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Starting system message bus: dbus.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Running local boot scripts (/etc/rc.local).

Debian GNU/Linux 9 debian ttyS0

debian login: root
Password:
Last login: Sat Jul 13 13:17:46 UTC 2019 on ttyS0
Linux debian 4.12.1-kirkwood-tld-1 #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 armv5tel

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@debian:~#



Edited 1 time(s). Last edit at 07/14/2019 07:48AM by Boia11.
Re: Install Kernel 5.1.11-kirkwood-tld-2 on Lenovo Iomega EZ
July 14, 2019 11:48AM
Boia11,

Evrything looks good in this boot.

Now since you have serial console, and have logged into Debian. Go ahead and nstall the new kernel in this serial console login session. And then reboot.

After the box rebooted, see if you can log in with serial console again. And in Debian, ping the router to see if the network is up.

ping 192.168.1.254

1. If the ping was not successful, post the entire serial console log here .

2. If the ping was successful, keep this serial console session open. Open another terminal and try log in with SSH.

If you can't log in with SSH, post the entire serial console log here.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Install Kernel 5.1.11-kirkwood-tld-2 on Lenovo Iomega EZ
July 14, 2019 02:34PM
Yes bodhi, the SSH work fine. But i need to upgrade kernel to 5.1.11.

I create a gist for resume step of installation of debian on Iomega | Lenovo EZ Media & Backup.

Guide for install Debian stretch on Iomega Lenovo EZ Media & Backup

Can you help me to complete guide with correct step for upgrade kernel?



Edited 1 time(s). Last edit at 07/14/2019 04:31PM by Boia11.
Re: Install Kernel 5.1.11-kirkwood-tld-2 on Lenovo Iomega EZ
July 14, 2019 11:04PM
Boia11,

If you have problem in installing Kernel 5.1.11-kirkwood-tld-2, or problem in booting after installing, then do what I suggested above.

Quote

Now since you have serial console, and have logged into Debian. Go ahead and nstall the new kernel in this serial console login session. And then reboot.

After the box rebooted, see if you can log in with serial console again. And in Debian, ping the router to see if the network is up.

ping 192.168.1.254

1. If the ping was not successful, post the entire serial console log here .

2. If the ping was successful, keep this serial console session open. Open another terminal and try log in with SSH.

If you can't log in with SSH, post the entire serial console log here.

I need to see serial console boot log to be able help you.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Install Kernel 5.1.11-kirkwood-tld-2 on Lenovo Iomega EZ
July 15, 2019 03:27AM
Quote

If you have problem in installing Kernel
> 5.1.11-kirkwood-tld-2, or problem in booting after
> installing, then do what I suggested above.
>
> Now since you have serial console, and have
> logged into Debian. Go ahead and nstall the new
> kernel in this serial console login session. And
> then reboot.
>
> I need to see serial console boot log to be able
> help you.

Okay, I prepare disk with clean copy of Debian roofs 4.12.1 for try to update kernel.
Before procede, this steps are correct?



Edited 1 time(s). Last edit at 07/15/2019 03:37AM by Boia11.
Re: Install Kernel 5.1.11-kirkwood-tld-2 on Lenovo Iomega EZ
July 15, 2019 11:22PM
Boia11,

That looks OK.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Install Kernel 5.1.11-kirkwood-tld-2 on Lenovo Iomega EZ
July 16, 2019 06:22AM
Hi,

That guide you used loads the uinitrd and uimage from raw drive sectors.

To update them you have write the new images to the drive in the same way, or change your boot parameters to load from USB or a partition.

Updating the kernel in Debian alone won’t load it through uboot.

Boot to uboot and printenv, post the output for us to see.
Re: Install Kernel 5.1.11-kirkwood-tld-2 on Lenovo Iomega EZ
July 16, 2019 04:51PM
Quote

jdwl101 Wrote:
-------------------------------------------------------
> To update them you have write the new images to
> the drive in the same way, or change your boot
> parameters to load from USB or a partition.
>
> Updating the kernel in Debian alone won’t load
> it through uboot.

How to do that?



Edited 1 time(s). Last edit at 07/16/2019 04:54PM by Boia11.
Re: Install Kernel 5.1.11-kirkwood-tld-2 on Lenovo Iomega EZ
July 16, 2019 09:09PM
Hi,

Load the uImage and uInitrd from the hard disk sectors is possible, but it does make updates more complex, as a change in image size can stop the system booting.

Boot with the serial console connected and when you see this prompt;
Hit any key to stop autoboot:

Hit a key to get to the uboot prompt. Then enter printenv and paste the output here, so we can see how it's booting now.

If you just want to 'roll the dice' that you have created the 5.1 kernel images correctly, with the dtb appended, here are the commands from the github you linked to;
dd if=uImage of=/dev/sda bs=1MiB seek=10
dd if=uInitrd of=/dev/sda bs=1MiB seek=20

If you don't know what I mean by 'dtb appended' DO NOT write the images using dd, the box won't boot without an appended dtb.

Perhaps tell us what you're trying to achieve. For this box, with the old uboot, usb booting is likely to be a much more manageable option.
Re: Install Kernel 5.1.11-kirkwood-tld-2 on Lenovo Iomega EZ
July 16, 2019 11:29PM
Boia11,

As J described above, there are disadvantages using HDD raw sector to store kernel images. It will work, but it is not simple as using USB for the entire rootfs.

So if you'd like to boot with USB or HDD rootfs the normal way, look in this thread:

https://forum.doozan.com/read.php?2,15887

and see how others set up to boot with USB (I recall iomega_ez got a clean boot with USB or HDD rootfs the normal way, no HDD raw sector).

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Install Kernel 5.1.11-kirkwood-tld-2 on Lenovo Iomega EZ
July 17, 2019 12:22AM
To boot from USB, create a 4.12 rootfs (using Bodhi's instructions in the Kernel / Rootfs thread), label it rootfs and enter these commands into the uboot prompt;

setenv bootargs 'console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=spi_flash:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2) earlyprintk=serial'
setenv bootcmd_usb 'usb reset; run usb_scan; printenv bootargs; ext2load usb $(usb_device) 0x40000 /boot/uImage; ext2load usb $(usb_device) 0x1100000 /boot/uInitrd; bootm 0x40000 0x1100000'
printenv
run bootcmd_usb

This should boot the usb and you can then update the kernel on the usb rootfs from within the booted system.

Post the serial log here and we can help with next steps.
Re: Install Kernel 5.1.11-kirkwood-tld-2 on Lenovo Iomega EZ
July 17, 2019 03:56AM
Quote

> dd if=uImage of=/dev/sda bs=1MiB seek=10
> dd if=uInitrd of=/dev/sda bs=1MiB seek=20
> [/code]

I try that but at reboot:
         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|  ** ix1-spi ** ** uboot_ver:0.0.8 **

 ** MARVELL BOARD: DB-88F6282A-BP LE

U-Boot 1.1.4 (Oct 28 2011 - 15:17:21) Marvell version: 3.6.1 - EMC

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CD5A0

Soc: 88F6282 A1 CPU running @ 1200Mhz L2 running @ 600Mhz
SysClock = 400Mhz , TClock = 200Mhz

DRAM (DDR3) CAS Latency = 6 tRP = 6 tRAS = 15 tRCD=6
DRAM CS[0] base 0x00000000   size 128MB
DRAM Total size 128MB  16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
[1024kB@f8000000] Flash:  1 MB

Marvell Serial ATA Adapter
Integrated Sata device found
[0 0 0]: Enable DMA mode (6)
  Device 0 @ 0 0:
Model: ST1000LM048-2E7172                       Firm: SDM1     Ser#:             ZDE6LFL9
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)


CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
PEX 1: interface detected no Link.
Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  0

IDE read: device 0 block # 20480, count 8192 ... 8192 blocks read: OK

IDE read: device 0 block # 40960, count 16384 ... 16384 blocks read: OK
## Booting image at 00040000 ...
   Image Name:   Linux-5.1.11-kirkwood-tld-2
   Created:      2019-07-17   8:47:49 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4877521 Bytes =  4.7 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... Bad Data CRC
Marvell>>

And here the step that I do over SSH console:
Linux debian 4.12.1-kirkwood-tld-1 #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 armv5                                                                    tel

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Tue Jul 16 01:20:41 2019 from 192.168.1.11
root@debian:~# cd /boot
root@debian:/boot# wget https://www.dropbox.com/s/9nfk49x6ts34tp7/linux-5.1.11-kirkwood-tld-2-bodhi.tar.bz2
--2019-07-17 10:39:28--  https://www.dropbox.com/s/9nfk49x6ts34tp7/linux-5.1.11-kirkwood-tld-2-bodhi.tar.bz2
Resolving www.dropbox.com (www.dropbox.com)... 162.125.69.1, 2620:100:6025:1::a27d:4501
Connecting to www.dropbox.com (www.dropbox.com)|162.125.69.1|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: /s/raw/9nfk49x6ts34tp7/linux-5.1.11-kirkwood-tld-2-bodhi.tar.bz2 [following]
--2019-07-17 10:39:29--  https://www.dropbox.com/s/raw/9nfk49x6ts34tp7/linux-5.1.11-kirkwood-tld-2-bodhi.tar.bz2
Reusing existing connection to www.dropbox.com:443.
HTTP request sent, awaiting response... 302 Found
Location: https://ucd8b1a91381522b3feec3c0cb81.dl.dropboxusercontent.com/cd/0/inline/Ak1LuXloK6RX3Dl5WZI1SadV-SOcLqMD2CY3fUFjq2nHxAozehWRJwJ6IhgOwfWdyRzPiXJOHqYCNfZev2EYHO55yeWRvaNB8x3Smu7omyCMvw/file# [following]
--2019-07-17 10:39:30--  https://ucd8b1a91381522b3feec3c0cb81.dl.dropboxusercontent.com/cd/0/inline/Ak1LuXloK6RX3Dl5WZI1SadV-SOcLqMD2CY3fUFjq2nHxAozehWRJwJ6IhgOwfWdyRzPiXJOHqYCNfZev2EYHO55yeWRvaNB8x3Smu7omyCMvw/file
Resolving ucd8b1a91381522b3feec3c0cb81.dl.dropboxusercontent.com (ucd8b1a91381522b3feec3c0cb81.dl.dropboxusercontent.com)... 162.125.69.6, 2620:100:6025:6::a27d:4506
Connecting to ucd8b1a91381522b3feec3c0cb81.dl.dropboxusercontent.com (ucd8b1a91381522b3feec3c0cb81.dl.dropboxusercontent.com)|162.125.69.6|:443... connected.
HTTP request sent, awaiting response... 302 FOUND
Location: /cd/0/inline2/Ak1h0ez_0jl_3R4gRhno1LJqAo18LoextA-PlcfdrHfxjtZEUZsNaXgpTkpabuGiCZQBj5sfwp8wpBdE11_yFwOp0qFWlWNBxpDkNb5G12vzWnf_LOvYAxqGjEWZlrXXwntCm_Uc3nwwdFu-4n94jpWNgfFQTMvxa0vReb8GUQrz6cibTmKPB6ScGyje9Q3v_zdt5QLOuLHj6C0cqjz5dYrIHWwIcseysbkEyjNRjuUWKWTMORW7a7i5OTILHGAsHNUzJ9dTr_UxfKHsN8vY2KGiw0IoDQMIJRbZStP5KhfXChnuZf5bF_Za1mWeYEPpnOj3R2JsA6zpkn030Hb4Sbo9/file [following]
--2019-07-17 10:39:31--  https://ucd8b1a91381522b3feec3c0cb81.dl.dropboxusercontent.com/cd/0/inline2/Ak1h0ez_0jl_3R4gRhno1LJqAo18LoextA-PlcfdrHfxjtZEUZsNaXgpTkpabuGiCZQBj5sfwp8wpBdE11_yFwOp0qFWlWNBxpDkNb5G12vzWnf_LOvYAxqGjEWZlrXXwntCm_Uc3nwwdFu-4n94jpWNgfFQTMvxa0vReb8GUQrz6cibTmKPB6ScGyje9Q3v_zdt5QLOuLHj6C0cqjz5dYrIHWwIcseysbkEyjNRjuUWKWTMORW7a7i5OTILHGAsHNUzJ9dTr_UxfKHsN8vY2KGiw0IoDQMIJRbZStP5KhfXChnuZf5bF_Za1mWeYEPpnOj3R2JsA6zpkn030Hb4Sbo9/file
Reusing existing connection to ucd8b1a91381522b3feec3c0cb81.dl.dropboxusercontent.com:443.
HTTP request sent, awaiting response... 200 OK
Length: 35135605 (34M) [application/octet-stream]
Saving to: 'linux-5.1.11-kirkwood-tld-2-bodhi.tar.bz2'

linux-5.1.11-kirkwood-tld-2-bodhi.ta 100%[======================================================================>]  33.51M  7.13MB/s    in 4.7s

2019-07-17 10:39:36 (7.12 MB/s) - 'linux-5.1.11-kirkwood-tld-2-bodhi.tar.bz2' saved [35135605/35135605]

root@debian:/boot# tar -xjf linux-5.1.11-kirkwood-tld-2-bodhi.tar.bz2
root@debian:/boot# tar -xf  linux-dtb-5.1.11-kirkwood-tld-2.tar
root@debian:/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 14 not upgraded.
root@debian:/boot# cp -a zImage-5.1.11-kirkwood-tld-2  zImage.fdt
root@debian:/boot# cat dts/kirkwood-lenovo-iomega-ez.dtb  >> zImage.fdt
root@debian:/boot# mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.1.11-kirkwood-tld-2 -d zImage.fdt  uImage
Image Name:   Linux-5.1.11-kirkwood-tld-2
Created:      Wed Jul 17 10:44:58 2019
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:    4877521 Bytes = 4763.20 KiB = 4.65 MiB
Load Address: 00008000
Entry Point:  00008000
root@debian:/boot# mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-5.1.11-kirkwood-tld-2 -d initrd.img-5.1.11-kirkwood-tld-2 uInitrd
mkimage: Can't open initrd.img-5.1.11-kirkwood-tld-2: No such file or directory
root@debian:/boot# dpkg -i linux-image-5.1.11-kirkwood-tld-2_2.0_armel.deb
Selecting previously unselected package linux-image-5.1.11-kirkwood-tld-2.
(Reading database ... 35756 files and directories currently installed.)
Preparing to unpack linux-image-5.1.11-kirkwood-tld-2_2.0_armel.deb ...
Examining /etc/kernel/preinst.d/
Done.
Unpacking linux-image-5.1.11-kirkwood-tld-2 (2.0) ...
Setting up linux-image-5.1.11-kirkwood-tld-2 (2.0) ...

 Hmm. There is a symbolic link /lib/modules/5.1.11-kirkwood-tld-2/build
 However, I can not read it: No such file or directory
 Therefore, I am deleting /lib/modules/5.1.11-kirkwood-tld-2/build


 Hmm. The package shipped with a symbolic link /lib/modules/5.1.11-kirkwood-tld-2/source
 However, I can not read the target: No such file or directory
 Therefore, I am deleting /lib/modules/5.1.11-kirkwood-tld-2/source

Running depmod.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 5.1.11-kirkwood-tld-2 /boot/vmlinuz-5.1.11-kirkwood-tld-2
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 5.1.11-kirkwood-tld-2 /boot/vmlinuz-5.1.11-kirkwood-tld-2
update-initramfs: Generating /boot/initrd.img-5.1.11-kirkwood-tld-2
W: initramfs-tools configuration sets RESUME=NONE
W: but no matching swap device is available.
I: The initramfs will attempt to resume from /dev/sda1
I: (UUID=ae2e1d21-4326-4d52-913e-4fa2fd23ee98)
I: Set the RESUME variable to override this.
run-parts: executing /etc/kernel/postinst.d/pm-utils 5.1.11-kirkwood-tld-2 /boot/vmlinuz-5.1.11-kirkwood-tld-2
run-parts: executing /etc/kernel/postinst.d/zz-flash-kernel 5.1.11-kirkwood-tld-2 /boot/vmlinuz-5.1.11-kirkwood-tld-2
root@debian:/boot# cp -a zImage-5.1.11-kirkwood-tld-2  zImage.fdt                                                                                   root@debian:/boot# cat dts/kirkwood-lenovo-iomega-ez.dtb  >> zImage.fdt                                                                             root@debian:/boot# mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.1.11-kirkwood-tld-2 -d zImage.fdt  uImage       Image Name:   Linux-5.1.11-kirkwood-tld-2
Created:      Wed Jul 17 10:47:49 2019
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:    4877521 Bytes = 4763.20 KiB = 4.65 MiB
Load Address: 00008000
Entry Point:  00008000
root@debian:/boot# mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-5.1.11-kirkwood-tld-2 -d initrd.img-5.1.11-kirkwood-tld-2 uInitrd
Image Name:   initramfs-5.1.11-kirkwood-tld-2
Created:      Wed Jul 17 10:47:56 2019
Image Type:   ARM Linux RAMDisk Image (gzip compressed)
Data Size:    13156191 Bytes = 12847.84 KiB = 12.55 MiB
Load Address: 00000000
Entry Point:  00000000
root@debian:/boot# fdisk -l
Disk /dev/mtdblock0: 504 KiB, 516096 bytes, 1008 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mtdblock1: 4 KiB, 4096 bytes, 8 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mtdblock2: 4 KiB, 4096 bytes, 8 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: E564390B-B9BC-4D2C-B4ED-A97D477F70A2

Device        Start        End    Sectors   Size Type
/dev/sda1    204800   16777215   16572416   7.9G Linux swap
/dev/sda2  16777216   50331647   33554432    16G Linux filesystem
/dev/sda3  50331648 1953523711 1903192064 907.5G Linux filesystem


Disk /dev/zram0: 256 MiB, 268435456 bytes, 65536 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
root@debian:/boot# dd if=uImage of=/dev/sda bs=1MiB seek=10
4+1 records in
4+1 records out
4877585 bytes (4.9 MB, 4.7 MiB) copied, 0.0784866 s, 62.1 MB/s
root@debian:/boot# dd if=uInitrd of=/dev/sda bs=1MiB seek=20
12+1 records in
12+1 records out
13156255 bytes (13 MB, 13 MiB) copied, 0.412972 s, 31.9 MB/s
root@debian:/boot# sync; sync; sync
root@debian:/boot# reboot



Edited 1 time(s). Last edit at 07/17/2019 04:00AM by Boia11.
Re: Install Kernel 5.1.11-kirkwood-tld-2 on Lenovo Iomega EZ
July 17, 2019 04:55AM
Hi,

You haven't appended the dtb to the image, make sure you follow all steps of '4b' in Bodhi's instructions.

Here are the commands;

cd /boot
mv uImage uImage.orig
cp -a zImage-5.1.11-kirkwood-tld-2  zImage.fdt
cat dts/kirkwood-lenovo-iomega-ez.dtb  >> zImage.fdt
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.1.11-kirkwood-tld-2 -d zImage.fdt  uImage

The write the kernel and initrd to the drive;
dd if=uImage of=/dev/sda bs=1MiB seek=10
dd if=uInitrd of=/dev/sda bs=1MiB seek=20
Re: Install Kernel 5.1.11-kirkwood-tld-2 on Lenovo Iomega EZ
July 18, 2019 07:02AM
I follow this step if you see the code sequence in my post but at boot the verification failed
Re: Install Kernel 5.1.11-kirkwood-tld-2 on Lenovo Iomega EZ
July 18, 2019 05:11PM
Ok, then the kernel is too large for the load command you are using in uboot.

Again, boot from USB, you will have a much easier time.
Author:

Your Email:


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: