linux-kirkwood-dt not working on iomega ix2-200

Discussion about U-Boot and the kernel.

linux-kirkwood-dt not working on iomega ix2-200

Postby nabeelryk » Sat Feb 27, 2021 2:39 am

Hi,
I am newbie, last year i fixed my Old NAS iomega ix2-200 using this thread.

https://kiljan.org/2016/11/15/installin ... a-ix2-200/

I was using booting it from SD card and I broke it so today I tried to reinstall, but now when I install linux-kirkwood-dt
using this command = $this->bbcode_second_pass_code('', 'pacman -S linux-kirkwood-dt') and create new$this->bbcode_second_pass_code('', ' uImage') my device does not boot. And once I replace it back to 4.4 uImage that was created during creation of installation media on other linux machine. My device boots again.

Below is the output of serial port after installing linux-kirkwood-dt. and after that the output of Console after i booted it again after restoring the old uImage.

__ __ _ _
| \/ | __ _ _ ____ _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| | | | (_| | | \ V / __/ | |
|_| |_|\__,_|_| \_/ \___|_|_|
_ _ ____ _
| | | | | __ ) ___ ___ | |_
| | | |___| _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
\___/ |____/ \___/ \___/ \__|
** MARVELL BOARD: RD-88F6281A LE

U-Boot 1.1.4 (Sep 8 2009 - 09:31:54) Marvell version: 3.4.14

Mapower version: 2.0 (32MB) (2009/09/08)

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

Soc: 88F6281 A0 (DDR2)
CPU running @ 1000Mhz L2 running @ 333Mhz
SysClock = 333Mhz , TClock = 200Mhz

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000 size 256MB
DRAM Total size 256MB 16bit width
Flash: 0 kB
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:32 MB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled

Module 0 is RGMII
Module 1 is TDM

USB 0: host mode
PEX 0: interface detected no Link.
Net: egiga0, egiga1 [PRIME]
Fan lookup table initialized.

Current remote temperature: 50
Current fan speed: 0

Hit any key to stop autoboot: 0
(Re)start USB...
USB: scanning bus for devices... 3 USB Device(s) found
scanning bus for storage devices... 1 Storage Device(s) found
.
.
...
......
............
.
........................
.
.........................
........................
.
.........................
.........................
.........................
........................
.
.........................
.........................
.........................
.........................
.........................
.........................
.........................
........................
.
.........................
...................

4673312 bytes read
.
.
...
......
............
.
........................
.
.........................
........................
.
.........................
.........................
.........................
........................
.
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................
............

6954330 bytes read
## Booting image at 02000000 ...
Image Name: Arch Linux ARM kernel
Created: 2021-02-27 2:17:55 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 4673248 Bytes = 4.5 MB
Load Address: 02000000
Entry Point: 02000000
Verifying Checksum ... OK
XIP Kernel Image ... OK
## Loading Ramdisk Image at 08004000 ...
Image Name: Arch Linux ARM initrd
Created: 2021-02-27 1:17:57 UTC
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 6954266 Bytes = 6.6 MB
Load Address: 08004000
Entry Point: 08004000
Verifying Checksum ... OK

Starting kernel ...

undefined instruction
pc : [<0200002c>] lr : [<006460e4>]
sp : 005fd844 ip : 005fd844 fp : 005fd898
r10: 00000000 r9 : 005fe530 r8 : 005fffcc
r7 : 086a5d5a r6 : 08004040 r5 : 00000154 r4 : 006460e4
r3 : 00180000 r2 : 00000100 r1 : 00000692 r0 : 00000000
Flags: Nzcv IRQs off FIQs off Mode SVC_32
Resetting CPU ...


And this is the output of serial port after I boot-up after I have restored old uImage file which was created during installation media creation.

Ɔ
__ __ _ _
| \/ | __ _ _ ____ _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| | | | (_| | | \ V / __/ | |
|_| |_|\__,_|_| \_/ \___|_|_|
_ _ ____ _
| | | | | __ ) ___ ___ | |_
| | | |___| _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
\___/ |____/ \___/ \___/ \__|
** MARVELL BOARD: RD-88F6281A LE

U-Boot 1.1.4 (Sep 8 2009 - 09:31:54) Marvell version: 3.4.14

Mapower version: 2.0 (32MB) (2009/09/08)

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

Soc: 88F6281 A0 (DDR2)
CPU running @ 1000Mhz L2 running @ 333Mhz
SysClock = 333Mhz , TClock = 200Mhz

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000 size 256MB
DRAM Total size 256MB 16bit width
Flash: 0 kB
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:32 MB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled

Module 0 is RGMII
Module 1 is TDM

USB 0: host mode
PEX 0: interface detected no Link.
Net: egiga0, egiga1 [PRIME]
Fan lookup table initialized.

Current remote temperature: 39
Current fan speed: 0

Hit any key to stop autoboot: 0
(Re)start USB...
USB: scanning bus for devices... 3 USB Device(s) found
scanning bus for storage devices... 1 Storage Device(s) found
.
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................
..................

4661512 bytes read
.
.
...
......
............
.
........................
.
.........................
........................
.
.........................
.........................
.........................
........................
.
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................
............

6954330 bytes read
## Booting image at 02000000 ...
Image Name: Linux-4.4.252-1-ARCH
Created: 2021-01-19 3:00:22 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 4661448 Bytes = 4.4 MB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 08004000 ...
Image Name: Arch Linux ARM initrd
Created: 2021-02-27 1:17:57 UTC
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 6954266 Bytes = 6.6 MB
Load Address: 08004000
Entry Point: 08004000
Verifying Checksum ... OK

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 4.4.252-1-ARCH (builduser@leming) (gcc version 10.2.0 (GCC) ) #1 PREEMPT Tue Jan 19 03:15:48 UTC 2021
[ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[ 0.000000] CPU: VIVT data cache, VIVT instruction cache
[ 0.000000] Machine: Marvell RD-88F6281 Reference Board
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 64960
[ 0.000000] Kernel command line: console=ttyS0,115200 mtdparts=orion_nand:640k(u-boot)ro,16k(u-boot-env),-(iomega-firmware)ro root=LABEL=ROOT rw
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Memory: 242584K/262144K available (6745K kernel code, 549K rwdata, 1876K rodata, 296K init, 720K bss, 19560K 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 : 0xd0800000 - 0xff800000 ( 752 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0873980 (8623 kB)
[ 0.000000] .init : 0xc0874000 - 0xc08be000 ( 296 kB)
[ 0.000000] .data : 0xc08be000 - 0xc09474dc ( 550 kB)
[ 0.000000] .bss : 0xc09474dc - 0xc09fb698 ( 721 kB)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 32.
[ 0.000000] NR_IRQS:114
[ 0.000015] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[ 9.814519] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[ 9.814735] Console: colour dummy device 80x30
[ 9.814770] Calibrating delay loop... 990.41 BogoMIPS (lpj=4952064)
[ 9.904599] pid_max: default: 32768 minimum: 301
[ 9.904705] Security Framework initialized
[ 9.904796] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 9.904815] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 9.905687] Initializing cgroup subsys io
[ 9.905724] Initializing cgroup subsys memory
[ 9.905783] Initializing cgroup subsys devices
[ 9.905811] Initializing cgroup subsys freezer
[ 9.905835] Initializing cgroup subsys net_cls
[ 9.905856] Initializing cgroup subsys perf_event
[ 9.905881] Initializing cgroup subsys net_prio
[ 9.905974] CPU: Testing write buffer coherency: ok
[ 9.906507] Setting up static identity map for 0x81e0 - 0x8238
[ 9.908739] devtmpfs: initialized
[ 9.911389] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 9.911430] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 9.911946] pinctrl core: initialized pinctrl subsystem
[ 9.912880] NET: Registered protocol family 16
[ 9.913409] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 9.944617] cpuidle: using governor ladder
[ 9.974614] cpuidle: using governor menu
[ 9.974749] Kirkwood: MV88F6281-A0, TCLK=200000000.
[ 9.974779] Feroceon L2: Enabling L2
[ 9.974822] Feroceon L2: Cache support initialised.
[ 9.977459] Kirkwood PCIe port 0: link down
[ 9.977472] PCI: bus0 uses PCIe port 0
[ 9.977749] PCI host bridge to bus 0000:00
[ 9.977770] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[ 9.977784] pci_bus 0000:00: root bus resource [io 0x1000-0xffff]
[ 9.977797] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 9.978214] PCI: bus0: Fast back to back transfers disabled
[ 10.016369] vgaarb: loaded
[ 10.016767] SCSI subsystem initialized
[ 10.017368] usbcore: registered new interface driver usbfs
[ 10.017459] usbcore: registered new interface driver hub
[ 10.017522] usbcore: registered new device driver usb
[ 10.017712] pps_core: LinuxPPS API ver. 1 registered
[ 10.017723] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 10.017761] PTP clock support registered
[ 10.018970] clocksource: Switched to clocksource orion_clocksource
[ 10.067544] FS-Cache: Loaded
[ 10.083278] NET: Registered protocol family 2
[ 10.084197] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[ 10.084240] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[ 10.084276] TCP: Hash tables configured (established 2048 bind 2048)
[ 10.084363] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 10.084389] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 10.084641] NET: Registered protocol family 1
[ 10.085032] RPC: Registered named UNIX socket transport module.
[ 10.085046] RPC: Registered udp transport module.
[ 10.085053] RPC: Registered tcp transport module.
[ 10.085060] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 10.085455] Trying to unpack rootfs image as initramfs...
[ 10.648690] Freeing initrd memory: 6792K
[ 10.666397] VFS: Disk quotas dquot_6.6.0
[ 10.666712] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 10.669340] FS-Cache: Netfs 'nfs' registered for caching
[ 10.670683] NFS: Registering the id_resolver key type
[ 10.670743] Key type id_resolver registered
[ 10.670753] Key type id_legacy registered
[ 10.670867] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 10.672471] fuse init (API version 7.23)
[ 10.674954] aufs 4.4-20170911
[ 10.681584] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[ 10.681608] io scheduler noop registered
[ 10.681625] io scheduler deadline registered
[ 10.681961] io scheduler cfq registered
[ 10.682283] io scheduler bfq registered (default)
[ 10.682293] BFQ I/O-scheduler: v7r11
[ 10.682559] mv_xor mv_xor.0: Marvell shared XOR driver
[ 10.720539] mv_xor mv_xor.0: Marvell XOR (Registers Mode): ( xor cpy )
[ 10.720834] mv_xor mv_xor.1: Marvell shared XOR driver
[ 10.760473] mv_xor mv_xor.1: Marvell XOR (Registers Mode): ( xor cpy )
[ 10.767325] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 10.768583] console [ttyS0] disabled
[ 10.788679] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33, base_baud = 12500000) is a 16550A
[ 11.393053] console [ttyS0] enabled
[ 11.415425] brd: module loaded
[ 11.427706] loop: module loaded
[ 11.431417] sata_mv sata_mv.0: cannot get optional clkdev
[ 11.436955] sata_mv sata_mv.0: slots 32 ports 2
[ 11.445379] scsi host0: sata_mv
[ 11.449226] scsi host1: sata_mv
[ 11.452798] ata1: SATA max UDMA/133 irq 21
[ 11.456917] ata2: SATA max UDMA/133 irq 21
[ 11.461798] nand: device found, Manufacturer ID: 0xad, Chip ID: 0x75
[ 11.468181] nand: Hynix NAND 32MiB 3,3V 8-bit
[ 11.472848] nand: 32 MiB, SLC, erase size: 16 KiB, page size: 512, OOB size: 16
[ 11.480223] Scanning device for bad blocks
[ 11.629081] Bad eraseblock 1319 at 0x00000149c000
[ 11.713683] 3 cmdlinepart partitions found on MTD device orion_nand
[ 11.720014] Creating 3 MTD partitions on "orion_nand":
[ 11.725184] 0x000000000000-0x0000000a0000 : "u-boot"
[ 11.730808] 0x0000000a0000-0x0000000a4000 : "u-boot-env"
[ 11.736689] 0x0000000a4000-0x000002000000 : "iomega-firmware"
[ 11.760976] libphy: orion_mdio_bus: probed
[ 11.765235] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[ 11.773133] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address aa:00:00:00:00:01
[ 12.858265] mv643xx_eth_port mv643xx_eth_port.1 eth1: port 0 with MAC address 00:50:43:00:02:02
[ 12.867215] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 12.873804] ehci-pci: EHCI PCI platform driver
[ 12.878355] ehci-orion: EHCI orion driver
[ 12.882518] orion-ehci orion-ehci.0: EHCI Host Controller
[ 12.887977] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[ 12.895867] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[ 12.919002] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[ 12.926122] hub 1-0:1.0: USB hub found
[ 12.929992] hub 1-0:1.0: 1 port detected
[ 12.934868] usbcore: registered new interface driver uas
[ 12.940435] usbcore: registered new interface driver usb-storage
[ 12.946534] usbcore: registered new interface driver ums-alauda
[ 12.952599] usbcore: registered new interface driver ums-cypress
[ 12.958698] usbcore: registered new interface driver ums-datafab
[ 12.964830] usbcore: registered new interface driver ums_eneub6250
[ 12.971123] usbcore: registered new interface driver ums-freecom
[ 12.977218] usbcore: registered new interface driver ums-isd200
[ 12.983252] usbcore: registered new interface driver ums-jumpshot
[ 12.989459] usbcore: registered new interface driver ums-karma
[ 12.995373] usbcore: registered new interface driver ums-onetouch
[ 13.001628] usbcore: registered new interface driver ums-realtek
[ 13.007724] usbcore: registered new interface driver ums-sddr09
[ 13.013754] usbcore: registered new interface driver ums-sddr55
[ 13.019787] usbcore: registered new interface driver ums-usbat
[ 13.026188] mousedev: PS/2 mouse device common for all mice
[ 13.032404] rtc-mv rtc-mv: rtc core: registered rtc-mv as rtc0
[ 13.038394] i2c /dev entries driver
[ 13.042674] sdhci: Secure Digital Host Controller Interface driver
[ 13.048879] sdhci: Copyright(c) Pierre Ossman
[ 13.089256] sdhci-pltfm: SDHCI platform and OF driver helper
[ 13.098266] ledtrig-cpu: registered to indicate activity on CPUs
[ 13.104555] usbcore: registered new interface driver r8712u
[ 13.110562] gre: GRE over IPv4 demultiplexor driver
[ 13.115582] NET: Registered protocol family 17
[ 13.121252] Key type dns_resolver registered
[ 13.126681] registered taskstats version 1
[ 13.172737] Key type encrypted registered
[ 13.177574] console [netcon0] enabled
[ 13.181396] netconsole: network logging started
[ 13.186137] rtc-mv rtc-mv: setting system clock to 2005-05-01 07:22:33 UTC (1114932153)
[ 13.249007] usb 1-1: new high-speed USB device number 2 using orion-ehci
[ 13.400543] hub 1-1:1.0: USB hub found
[ 13.404505] hub 1-1:1.0: 4 ports detected
[ 13.689001] usb 1-1.2: new high-speed USB device number 3 using orion-ehci
[ 13.820578] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[ 13.827276] scsi host2: usb-storage 1-1.2:1.0
[ 14.830126] scsi 2:0:0:0: Direct-Access Generic Mass-Storage 1.11 PQ: 0 ANSI: 2
[ 14.839759] sd 2:0:0:0: Attached scsi generic sg0 type 0
[ 15.432547] sd 2:0:0:0: [sda] 30253056 512-byte logical blocks: (15.5 GB/14.4 GiB)
[ 15.440908] sd 2:0:0:0: [sda] Write Protect is off
[ 15.446405] sd 2:0:0:0: [sda] No Caching mode page found
[ 15.451798] sd 2:0:0:0: [sda] Assuming drive cache: write through
[ 15.463114] sda: sda1 sda2
[ 15.469667] sd 2:0:0:0: [sda] Attached SCSI removable disk
[ 17.018995] ata1: link is slow to respond, please be patient (ready=0)
[ 17.259006] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[ 17.299050] ata1.00: ATA-9: ST1000DM003-1ER162, CC45, max UDMA/133
[ 17.305266] ata1.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[ 17.369051] ata1.00: configured for UDMA/133
[ 17.389526] scsi 0:0:0:0: Direct-Access ATA ST1000DM003-1ER1 CC45 PQ: 0 ANSI: 5
[ 17.398761] sd 0:0:0:0: [sdb] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[ 17.406950] sd 0:0:0:0: Attached scsi generic sg1 type 0
[ 17.412332] sd 0:0:0:0: [sdb] 4096-byte physical blocks
[ 17.418276] sd 0:0:0:0: [sdb] Write Protect is off
[ 17.423276] sd 0:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 17.448263] sdb: sdb1
[ 17.452167] sd 0:0:0:0: [sdb] Attached SCSI disk
[ 17.919009] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[ 17.959048] ata2.00: ATA-10: WDC WDS480G2G0A-00JH30, UG400400, max UDMA/133
[ 17.966065] ata2.00: 937703088 sectors, multi 1: LBA48 NCQ (depth 31/32)
[ 18.029631] ata2.00: configured for UDMA/133
[ 18.049536] scsi 1:0:0:0: Direct-Access ATA WDC WDS480G2G0A- 0400 PQ: 0 ANSI: 5
[ 18.058788] sd 1:0:0:0: [sdc] 937703088 512-byte logical blocks: (480 GB/447 GiB)
[ 18.066816] sd 1:0:0:0: Attached scsi generic sg2 type 0
[ 18.072594] sd 1:0:0:0: [sdc] Write Protect is off
[ 18.077852] sd 1:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 18.088950] sdc: sdc1
[ 18.092969] sd 1:0:0:0: [sdc] Attached SCSI disk
[ 18.098639] Freeing unused kernel memory: 296K
:: running early hook [udev]
Warning: /lib/modules/4.4.252-1-ARCH/modules.devname not found - ignoring
Starting version 247.3-1-arch
:: running hook [udev]
:: Triggering uevents...
:: performing fsck on '/dev/sda2'
ROOT: clean, 33773/524288 files, 420939/2097152 blocks
:: mounting '/dev/sda2' on real root
[ 20.177945] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
:: running cleanup hook [udev]
[ 20.924427] systemd[1]: System time before build time, advancing clock.
[ 21.019351] systemd[1]: systemd 247.3-1-arch running in system mode. (+PAM +AUDIT -SELINUX -IMA -APPARMOR +SMACK -SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +ZSTD +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=hybrid)
[ 21.042925] systemd[1]: Detected architecture arm.

Welcome to Arch Linux ARM!

[ 21.080692] systemd[1]: Set hostname to <alarm>.
[ 22.313236] random: nonblocking pool is initialized
[ 22.596133] systemd[1]: Queued start job for default target Graphical Interface.
[ 22.608446] systemd[1]: system-getty.slice: unit configures an IP firewall, but the local system does not support BPF/cgroup firewalling.
[ 22.621079] systemd[1]: (This warning is only shown for the first unit using IP firewalling.)
[ 22.700417] systemd[1]: Created slice system-getty.slice.
[ OK ] Created slice system-getty.slice.
[ 22.731618] systemd[1]: Created slice system-modprobe.slice.
[ OK ] Created slice system-modprobe.slice.
[ 22.761606] systemd[1]: Created slice system-serial\x2dgetty.slice.
[ OK ] Created slice system-serial\x2dgetty.slice.
[ 22.791361] systemd[1]: Created slice User and Session Slice.
[ OK ] Created slice User and Session Slice.
[ 22.819788] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[ OK ] Started Dispatch Password …ts to Console Directory Watch.
[ 22.849890] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ OK ] Started Forward Password R…uests to Wall Directory Watch.
[ 22.880788] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[ OK ] Set up automount Arbitrary…s File System Automount Point.
[ 22.910033] systemd[1]: Reached target Local Encrypted Volumes.
[ OK ] Reached target Local Encrypted Volumes.
[ 22.939888] systemd[1]: Reached target Paths.
[ OK ] Reached target Paths.
[ 22.959460] systemd[1]: Reached target Remote File Systems.
[ OK ] Reached target Remote File Systems.
[ 22.989368] systemd[1]: Reached target Slices.
[ OK ] Reached target Slices.
[ 23.009558] systemd[1]: Reached target Swap.
[ OK ] Reached target Swap.
[ 23.030185] systemd[1]: Listening on Device-mapper event daemon FIFOs.
[ OK ] Listening on Device-mapper event daemon FIFOs.
[ 23.079665] systemd[1]: Listening on Process Core Dump Socket.
[ OK ] Listening on Process Core Dump Socket.
[ 23.119169] systemd[1]: Condition check resulted in Journal Audit Socket being skipped.
[ 23.128536] systemd[1]: Listening on Journal Socket (/dev/log).
[ OK ] Listening on Journal Socket (/dev/log).
[ 23.160431] systemd[1]: Listening on Journal Socket.
[ OK ] Listening on Journal Socket.
[ 23.190923] systemd[1]: Listening on Network Service Netlink Socket.
[ OK ] Listening on Network Service Netlink Socket.
[ 23.220573] systemd[1]: Listening on udev Control Socket.
[ OK ] Listening on udev Control Socket.
[ 23.250143] systemd[1]: Listening on udev Kernel Socket.
[ OK ] Listening on udev Kernel Socket.
[ 23.280683] systemd[1]: Condition check resulted in Huge Pages File System being skipped.
[ 23.294906] systemd[1]: Mounting POSIX Message Queue File System...
Mounting POSIX Message Queue File System...
[ 23.334104] systemd[1]: Mounting Kernel Debug File System...
Mounting Kernel Debug File System...
[ 23.445286] systemd[1]: Mounting Kernel Trace File System...
Mounting Kernel Trace File System...
[ 23.574253] systemd[1]: Mounting Temporary Directory (/tmp)...
Mounting Temporary Directory (/tmp)...
[ 23.680232] systemd[1]: Condition check resulted in Create list of static device nodes for the current kernel being skipped.
[ 23.755889] systemd[1]: Starting Load Kernel Module configfs...
Starting Load Kernel Module configfs...
[ 23.872803] systemd[1]: Starting Load Kernel Module drm...
Starting Load Kernel Module drm...
[ 23.945561] systemd[1]: Starting Load Kernel Module fuse...
Starting Load Kernel Module fuse...
[ 24.073262] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped.
[ 24.146316] systemd[1]: Condition check resulted in Load Kernel Modules being skipped.
[ 24.205198] systemd[1]: Starting Remount Root and Kernel File Systems...
Starting Remount Root and Kernel File Systems...
[ 24.269743] systemd[1]: Condition check resulted in Repartition Root Disk being skipped.
[ 24.304050] systemd[1]: Starting Apply Kernel Variables...
Starting Apply Kernel Variables...
[ 24.395715] systemd[1]: Starting Coldplug All udev Devices...
[ 24.440328] EXT4-fs (sda2): re-mounted. Opts: barrier=1
Starting Coldplug All udev Devices...
[ 24.585786] systemd[1]: Mounted POSIX Message Queue File System.
[ OK ] Mounted POSIX Message Queue File System.
[ 24.681165] systemd[1]: Mounted Kernel Debug File System.
[ OK ] Mounted Kernel Debug File System.
[ 24.710591] systemd[1]: Mounted Kernel Trace File System.
[ OK ] Mounted Kernel Trace File System.
[ 24.730643] systemd[1]: Mounted Temporary Directory (/tmp).
[ OK ] Mounted Temporary Directory (/tmp).
[ 24.752317] systemd[1]: modprobe@configfs.service: Succeeded.
[ 24.770702] systemd[1]: Finished Load Kernel Module configfs.
[ OK ] Finished Load Kernel Module configfs.
[ 24.802253] systemd[1]: modprobe@drm.service: Succeeded.
[ 24.820416] systemd[1]: Finished Load Kernel Module drm.
[ OK ] Finished Load Kernel Module drm.
[ 24.842494] systemd[1]: modprobe@fuse.service: Succeeded.
[ 24.860130] systemd[1]: Finished Load Kernel Module fuse.
[ OK ] Finished Load Kernel Module fuse.
[ 24.892943] systemd[1]: Finished Remount Root and Kernel File Systems.
[ OK ] Finished Remount Root and Kernel File Systems.
[ 24.943534] systemd[1]: Finished Apply Kernel Variables.
[ OK ] Finished Apply Kernel Variables.
[ 24.993223] systemd[1]: Mounting FUSE Control File System...
Mounting FUSE Control File System...
[ 25.090348] systemd[1]: Condition check resulted in Kernel Configuration File System being skipped.
[ 25.149900] systemd[1]: Condition check resulted in First Boot Wizard being skipped.
[ 25.214677] systemd[1]: Condition check resulted in Rebuild Hardware Database being skipped.
[ 25.255548] systemd[1]: Starting Load/Save Random Seed...
Starting Load/Save Random Seed...
[ 25.295615] systemd[1]: Starting Create System Users...
Starting Create System Users...
[ 25.406732] systemd[1]: Mounted FUSE Control File System.
[ OK ] Mounted FUSE Control File System.
[ 25.565204] systemd[1]: Finished Load/Save Random Seed.
[ OK ] Finished Load/Save Random Seed.
[ 25.610365] systemd[1]: Condition check resulted in First Boot Complete being skipped.
[ 25.722555] systemd[1]: Finished Create System Users.
[ OK ] Finished Create System Users.
[ 25.756199] systemd[1]: Starting Create Static Device Nodes in /dev...
Starting Create Static Device Nodes in /dev...
[ 26.094225] systemd[1]: Finished Coldplug All udev Devices.
[ OK ] Finished Coldplug All udev Devices.
[ 26.197062] systemd[1]: Finished Create Static Device Nodes in /dev.
[ OK ] Finished Create Static Device Nodes in /dev.
[ 26.230092] systemd[1]: Reached target Local File Systems (Pre).
[ OK ] Reached target Local File Systems (Pre).
[ 26.243893] systemd[1]: Condition check resulted in Virtual Machine and Container Storage (Compatibility) being skipped.
[ 26.263504] systemd[1]: Started Entropy Daemon based on the HAVEGE algorithm.
[ OK ] Started Entropy Daemon based on the HAVEGE algorithm.
[ 26.348753] systemd[1]: Starting Journal Service...
Starting Journal Service...
[ 26.480163] systemd[1]: Starting Rule-based Manager for Device Events and Files...
Starting Rule-based Manage…for Device Events and Files...
[ 27.606400] systemd[1]: Started Journal Service.
[ OK ] Started Journal Service.
Starting Flush Journal to Persistent Storage...
[ OK ] Started Rule-based Manager for Device Events and Files.
[ 27.888494] systemd-journald[232]: Received client request to flush runtime journal.
Starting Network Service...
[ 27.953522] systemd-journald[232]: File /var/log/journal/0a99e5fbc6d9447a91b8d362b10d6ccd/system.journal corrupted or uncleanly shut down, renaming and replacing.
[ 28.163479] proc: unrecognized mount option "hidepid=invisible" or missing value
[ 29.613339] __nand_correct_data: uncorrectable ECC error
[ OK ] Finished Flush Journal to Persistent Storage.
[ OK ] Found device /dev/ttyS0.
[ OK ] Started Network Service.
[ OK ] Found device Mass-Storage BOOT.
[ OK ] Found device ST1000DM003-1ER162 SHARED.
[ OK ] Found device WDC_WDS480G2G0A-00JH30 MNA.
Mounting /boot...
Mounting /usr/MNA...
[ 34.140077] EXT4-fs (sda1): mounting ext2 file system using the ext4 subsystem
Mounting /usr/SHARED...
[ 34.229421] EXT4-fs (sda1): mounted filesystem without journal. Opts: (null)
[ OK ] Mounted /boot.
[ 34.843278] EXT4-fs (sdc1): mounted filesystem with ordered data mode. Opts: barrier=2
[ OK ] Mounted /usr/MNA.
[ 35.215472] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: barrier=2
[ OK ] Mounted /usr/SHARED.
[ OK ] Reached target Local File Systems.
Starting Rebuild Dynamic Linker Cache...
Starting Create Volatile Files and Directories...
[ OK ] Finished Rebuild Dynamic Linker Cache.
[ OK ] Finished Create Volatile Files and Directories.
Starting Rebuild Journal Catalog...
Starting Network Name Resolution...
Starting Network Time Synchronization...
Starting Update UTMP about System Boot/Shutdown...
[ 37.043736] proc: unrecognized mount option "hidepid=invisible" or missing value
[ 37.099203] proc: unrecognized mount option "hidepid=invisible" or missing value
[ OK ] Finished Update UTMP about System Boot/Shutdown.
[ OK ] Finished Rebuild Journal Catalog.
Starting Update is Completed...
[ OK ] Finished Update is Completed.
[ 38.615082] mv643xx_eth_port mv643xx_eth_port.1 eth1: link up, 1000 Mb/s, full duplex, flow control disabled
[ OK ] Started Network Time Synchronization.
[ OK ] Reached target System Initialization.
[ OK ] Started Daily Cleanup of Temporary Directories.
[ OK ] Reached target System Time Set.
[ OK ] Reached target System Time Synchronized.
[ OK ] Started Daily verification of password and group files.
[ OK ] Reached target Timers.
[ OK ] Listening on D-Bus System Message Bus Socket.
[ OK ] Reached target Sockets.
[ OK ] Reached target Basic System.
[ OK ] Started D-Bus System Message Bus.
Starting User Login Management...
[ 39.723737] proc: unrecognized mount option "hidepid=invisible" or missing value
[ OK ] Started Network Name Resolution.
[ OK ] Reached target Network.
[ OK ] Reached target Host and Network Name Lookups.
[ OK ] Started OpenSSH Daemon.
Starting Permit User Sessions...
[ OK ] Finished Permit User Sessions.
[ OK ] Started Getty on tty1.
[ OK ] Started Serial Getty on ttyS0.
[ OK ] Reached target Login Prompts.
[ OK ] Started User Login Management.
[ OK ] Reached target Multi-User System.
[ OK ] Reached target Graphical Interface.

Arch Linux 4.4.252-1-ARCH (ttyS0)

alarm login:
nabeelryk
 
Posts: 8
Joined: Thu Apr 23, 2020 6:21 am

Re: linux-kirkwood-dt not working on iomega ix2-200

Postby kriztioan » Sat Feb 27, 2021 4:25 am

kriztioan
 
Posts: 51
Joined: Sat Apr 29, 2017 1:32 am

Re: linux-kirkwood-dt not working on iomega ix2-200

Postby nabeelryk » Sat Feb 27, 2021 4:39 am

I think the temperature sensors (lm63) and fancontrol is also linked with that linux-kirkwood-dt. As I am struggling to start its fan it worked fine before but now after installion of
$this->bbcode_second_pass_code('', 'lm_sensors')
the $this->bbcode_second_pass_code('', 'pwnconfig') does not detect any sensor or fan.
Last edited by nabeelryk on Sat Feb 27, 2021 5:54 am, edited 1 time in total.
nabeelryk
 
Posts: 8
Joined: Thu Apr 23, 2020 6:21 am

Re: linux-kirkwood-dt not working on iomega ix2-200

Postby kriztioan » Sat Feb 27, 2021 5:54 am

I'm not entirely following your reasoning, as you already stated you are able to generate an uImage and recover back to kernel 4.4 if needed. The only thing you would need to do to fix the booting issue with kernel 5.10.8 and later is change the mkimage-command you now have to: $this->bbcode_second_pass_code('', 'mkimage -A arm -O linux -T kernel -C none -a 0x01000000 -e 0x01000000 -n "Arch Linux ARM kernel" -d /boot/zImage uImage') Nonetheless, if you really want to remain at an earlier version (4.4 or 4.2?), you can check whether you have the kernel package you want still in: $this->bbcode_second_pass_code('', '/var/cache/pacman/pkg') and install it via: $this->bbcode_second_pass_code('', 'pacman -U /var/cache/pacman/pkg/linux-kirkwood-dt-.....') or download the relevant file from http://tardis.tiny-vps.com/aarm/packages/l/linux-kirkwood-dt/. Note that you might also need to install the appropriate kernel-headers.

An alternative option to recover is to stop at the U-Boot prompt and boot from the harddisk. For my ix2-200 I store the uImage and uInitrd in the onboard NAND, which are synced with the ones I have on the USB-drive my system runs off. Weekly I rsync /boot to the NAS' internal hard drive and a target on a USB-drive directly connected to my router. This way I have a number of ways to recover if something would go wrong, be it the flash to NAND, the kernel itself, etc.
kriztioan
 
Posts: 51
Joined: Sat Apr 29, 2017 1:32 am

Re: linux-kirkwood-dt not working on iomega ix2-200

Postby nabeelryk » Sat Feb 27, 2021 6:02 am

$this->bbcode_second_pass_quote('kriztioan', 'I')'m not entirely following your reasoning, as you already stated you are able to generate an uImage and recover back to kernel 4.4 if needed. The only thing you would need to do to fix the booting issue with kernel 5.10.8 and later is change the mkimage-command you now have to: $this->bbcode_second_pass_code('', 'mkimage -A arm -O linux -T kernel -C none -a 0x01000000 -e 0x01000000 -n "Arch Linux ARM kernel" -d /boot/zImage uImage') Nonetheless, if you really want to remain at an earlier version (4.4 or 4.2?), you can check whether you have the kernel package you want still in: $this->bbcode_second_pass_code('', '/var/cache/pacman/pkg') and install it via: $this->bbcode_second_pass_code('', 'pacman -U /var/cache/pacman/pkg/linux-kirkwood-dt-.....') or download the relevant file from http://tardis.tiny-vps.com/aarm/packages/l/linux-kirkwood-dt/. Note that you might also need to install the appropriate kernel-headers.

An alternative option to recover is to stop at the U-Boot prompt and boot from the harddisk. For my ix2-200 I store the uImage and uInitrd in the onboard NAND, which are synced with the ones I have on the USB-drive my system runs off. Weekly I rsync /boot to the NAS' internal hard drive and a target on a USB-drive directly connected to my router. This way I have a number of ways to recover if something would go wrong, be it the flash to NAND, the kernel itself, etc.


Hi, Do i have to change 0x01000000 in setenv also ? or just creating new uimage with this zimage will fix the issue.
what I was doing was, $this->bbcode_second_pass_code('', 'pacman -S linux-kirkwood-dt
cp /boot/zImage /boot/zImage-dtb
cat /boot/dtbs/kirkwood-iomega_ix2_200.dtb >> /boot/zImage-dtb
mkimage -A arm -O linux -T kernel -C none -a 0x02000000 -e 0x02000000 -n "Arch Linux ARM kernel" -d /boot/zImage-dtb /boot/uImage') because this was written in guide next to this code It is required to switch to a kernel line that supports device trees to support the buttons and LEDs on the front of the ix2-200, and to be able to power down the system in a safe manner.
nabeelryk
 
Posts: 8
Joined: Thu Apr 23, 2020 6:21 am

Re: linux-kirkwood-dt not working on iomega ix2-200

Postby nabeelryk » Sat Feb 27, 2021 6:17 am

$this->bbcode_second_pass_code('', 'mkimage -A arm -O linux -T kernel -C none -a 0x01000000 -e 0x01000000 -n "Arch Linux ARM kernel" -d /boot/zImage-dtb uImage')
This worked like a charm, I feel so dump that i wasted 2 days on this. Thanks Mate.

1. But front panel is still not working. Previously the power button worked fine. Any Idea what went wrong ?
2. Can you help me with fancontrol Please ?
Last edited by nabeelryk on Sat Feb 27, 2021 6:23 am, edited 1 time in total.
nabeelryk
 
Posts: 8
Joined: Thu Apr 23, 2020 6:21 am

Re: linux-kirkwood-dt not working on iomega ix2-200

Postby kriztioan » Sat Feb 27, 2021 8:47 am

I'm glad it worked out. For completeness, there is no need to change the memoffset_kernel U-Boot environment variable with setenv to 0x01000000.

1. The front panel works fine for me with pressing the power-button safely powering off the ix2-200 and subsequently pressing it when its off turning it back on. You can check with 'dmesg' whether the line 'input: gpio-keys as /devices/platform/gpio-keys/input/input0' appears. Possibly there is a (systemd?) setting somewhere that needs to be (un)set. Though, the device-tree overlay simply defines the 'gpio-poweroff'. As a last resort and '/dev/input/event0' does exist, you could compile and run your own daemon: $this->bbcode_second_pass_code('', '#include <fcntl.h>
#include <stdio.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <signal.h>
#include <sys/select.h>
#include <linux/input.h>

volatile sig_atomic_t finished = 0;

void finish(int signum) {

printf("Caught %s: exiting gracefully\n", strsignal(signum));

finished = 1;
}

int main(int argc, char *argv[], char **envp) {

// Catch signals to allow for gracefull exit
struct sigaction action;

action.sa_handler = finish;

if(-1 == sigaction(SIGHUP, &action, NULL)) {

perror("sigaction");
}

if(-1 == sigaction(SIGINT, &action, NULL)) {

perror("sigaction");
}

if(-1 == sigaction(SIGTERM, &action, NULL)) {

perror("sigaction");
}

sigset_t sigmask;

int fd = open("/dev/input/event0", O_RDONLY);

if(-1 == fd) {

perror("open");

return errno;
}

fd_set fd_set_read,
fd_set_active;

FD_ZERO(&fd_set_active);

FD_SET(fd, &fd_set_active);

struct input_event event0;

while(!finished) {

fd_set_read = fd_set_active;

if(-1 == select(FD_SETSIZE, &fd_set_read, NULL, NULL, NULL)) {

if(finished) {

break;
}

close(fd);

perror("select");

return errno;
}

if(FD_ISSET(fd, &fd_set_read)) {

if(-1 == read(fd, &event0, sizeof(struct input_event))) {

close(fd);

perror("read");

return errno;
}

if(event0.type == 1) {

printf("type: %d code: %d value: %d\n", event0.type, event0.code, event0.value);
}
}
}

close(fd);

return 0;
}') You would need to use the printf-statement to get the proper event-code and -value, add/adjust the if-statement and subsequently replace/add something like 'system("shutdown -P now")'. Ideally you would start this as a systemd-service. Again, this is a last resort, as power-off should work out-of-the-box.

2. For fan control you can modify the two U-Boot variables: $this->bbcode_second_pass_code('', 'FanTempStart=45
FanHysteresis=3') and/or if you want better control you can install 'lm_sensors': $this->bbcode_second_pass_code('', 'sudo pacman -S lm_sensors') NB you would need to run 'sensors-detect' after installing lm_sensors. Then have the following script run at startup: $this->bbcode_second_pass_code('', '#!/bin/bash

DEVICE=hwmon0
CONTROLLER=pwm1
TEMP=( 51000 51500 52000 52500 53000 53500 54000 54500 )
PWM=( 227 228 230 233 237 242 248 255)

function pwm_set_curve {

for (( i=0; i<${#TEMP[@]}; i++ ))
do
echo -n ${TEMP[$i]} > /sys/class/hwmon/${DEVICE}/${CONTROLLER}_auto_point$(( $i + 1))_temp
echo -n ${PWM[$i]} > /sys/class/hwmon/${DEVICE}/${CONTROLLER}_auto_point$(( $i + 1))_pwm
done
}

function pwm_manual_mode {

echo -n 1 > /sys/class/hwmon/${DEVICE}/${CONTROLLER}_enable
}

function pwm_automatic_mode {

echo -n 2 > /sys/class/hwmon/${DEVICE}/${CONTROLLER}_enable
}


pwm_manual_mode
pwm_set_curve
pwm_automatic_mode') You can adapt PWM and TEMP as you see fit. This is the setup I have and I run it once with startup using systemd: $this->bbcode_second_pass_code('', '[Unit]
Description=Set more agressive fan curve at boot
After=lm_sensors.service

[Service]
Type=oneshot
ExecStart=/usr/local/sbin/set-fan-curve

[Install]
WantedBy=multi-user.target')
kriztioan
 
Posts: 51
Joined: Sat Apr 29, 2017 1:32 am


Return to U-Boot/Kernel

Who is online

Users browsing this forum: No registered users and 4 guests