Dear F&S support team,
I'm configuring an own kernel based on the fsimx6-B2020.04 release. It is working with a few errors (explained later below).
While trying to find out if these errors also are in the precompiled binaries of this release I found out that these are not working for me on armstoneA9.
uboot-fsimx6-B2020.04.nb0
armstonea9dl-B2020.04.dtb
zImage-fsimx6-B2020.04
The boot process stops at "Starting kernel..."
- U-Boot 2018.03 (Apr 21 2020 - 16:28:16 +0200) for F&S
- CPU: Freescale i.MX6DL rev1.3, 996 MHz (running at 792 MHz)
- CPU: Extended Commercial temperature grade (-20C to 105C)
- Reset: POR
- Board: armStoneA9 Rev 1.10 (LAN, 4x DRAM)
- I2C: ready
- DRAM: 1 GiB
- NAND: 256 MiB
- MMC: FSL_SDHC: 0
- Loading Environment from NAND... OK
- In: serial
- Out: serial
- Err: serial
- Net: FEC [PRIME]
- Hit any key to stop autoboot: 0
- ---- Trying update from mmc 0 with update.scr ----
- MMC: no card present
- MMC: no card present
- ** Bad device mmc 0 **
- Failed!
- ---- Trying update from usb 0 with update.scr ----
- USB EHCI 1.00
- 0 Storage Device(s) found
- ** Bad device usb 0 **
- Failed!
- ---- No update script found ----
- Loading from nand0, offset 0x240000
- zImage detected
- NAND read: device 0 offset 0xa40000, size 0x1c0000
- 1835008 bytes read: OK
- ## Booting kernel from zImage at 10800000
- ## Flattened Device Tree blob at 11000000
- Booting using the fdt blob at 0x11000000
- Loading Kernel Image ... OK
- Using Device Tree in place at 11000000, end 1100d68d
- Setting run-time properties
- ## Overwriting property gpmi-nand@00112000/fus,ecc_strength from device tree!
- ## Overwriting property bdinfo/ecc_strength from device tree!
- ## Keeping property bdinfo/board_name from device tree!
- Starting kernel ...
Any idea?
Hint: My kernel is 3.7 MB uImage - the precompiled is 5.7 MB zImage.
And here the errors when running my own kernel based on the B2020.04 release:
- Starting kernel ...
- Booting Linux on physical CPU 0x0
- Linux version 4.9.88-F+S (schubert@Lubuntu2004) (gcc version 8.3.0 (for F+S boards and modules) ) #2 SMP PREEMPT Fri Jun 12 16:39:06 CEST 2020
- CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d
- CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
- OF: fdt:Machine model: F&S i.MX6 Solo/DualLite armStoneA9
- Reserved memory: created CMA memory pool at 0x3c000000, size 320 MiB
- OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
- Memory policy: Data cache writealloc
- percpu: Embedded 13 pages/cpu @ab71f000 s22092 r8192 d22964 u53248
- Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260096
- Kernel command line: console=ttymxc1,115200 login_tty=ttymxc1,115200 mtdparts=gpmi-nand:256k(NBoot)ro,768k(UserDef),256k(Refresh)ro,768k(UBoot)ro,256k(UBootEnv)ro,8m(Kernel)ro,1792k(FDT)ro,-(TargetFS) rootfstype=ubifs ubi.mtd=TargetFS root=ubi0:rootfs rw nidft=80000008123B vt.global_cursor_default=0
- PID hash table entries: 4096 (order: 2, 16384 bytes)
- Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
- Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
- Memory: 701020K/1048576K available (6144K kernel code, 321K rwdata, 1768K rodata, 1024K init, 402K bss, 19876K reserved, 327680K cma-reserved, 0K highmem)
- Virtual kernel memory layout:
- vector : 0xffff0000 - 0xffff1000 ( 4 kB)
- fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
- vmalloc : 0xc0800000 - 0xff800000 (1008 MB)
- lowmem : 0x80000000 - 0xc0000000 (1024 MB)
- pkmap : 0x7fe00000 - 0x80000000 ( 2 MB)
- modules : 0x7f000000 - 0x7fe00000 ( 14 MB)
- .text : 0x80008000 - 0x80700000 (7136 kB)
- .init : 0x80900000 - 0x80a00000 (1024 kB)
- .data : 0x80a00000 - 0x80a50720 ( 322 kB)
- .bss : 0x80a52000 - 0x80ab68a4 ( 403 kB)
- SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
- Preemptible hierarchical RCU implementation.
- Build-time adjustment of leaf fanout to 32.
- NR_IRQS:16 nr_irqs:16 16
- L2C-310 erratum 769419 enabled
- L2C-310 enabling early BRESP for Cortex-A9
- L2C-310 full line of zeros enabled for Cortex-A9
- L2C-310 ID prefetch enabled, offset 16 lines
- L2C-310 dynamic clock gating enabled, standby mode enabled
- L2C-310 cache controller enabled, 16 ways, 512 kB
- L2C-310: CACHE_ID 0x410000c8, AUX_CTRL 0x76450001
- clk: failed to reparent cko to ssi1: -22
- clk: failed to reparent cko2_sel to cko2: -22
- clk: couldn't set ssi1_sel clk rate to 24576000 (-22), current rate: 786432000
- clk: failed to reparent cko to ssi1: -22
- clk: failed to reparent cko2_sel to cko2: -22
- clk: couldn't set ssi1_sel clk rate to 24576000 (-22), current rate: 786432000
- Switching to timer-based delay loop, resolution 333ns
- sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 715827882841ns
- clocksource: mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 637086815595 ns
- Console: colour dummy device 80x30
- Calibrating delay loop (skipped), value calculated using timer frequency.. 6.00 BogoMIPS (lpj=30000)
- pid_max: default: 32768 minimum: 301
- Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
- Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
- CPU: Testing write buffer coherency: ok
- CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
- Setting up static identity map for 0x10100000 - 0x10100058
- CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
- Brought up 2 CPUs
- SMP: Total of 2 processors activated (12.00 BogoMIPS).
- CPU: All CPU(s) started in SVC mode.
- devtmpfs: initialized
- ...
- hctosys: unable to open rtc device (rtc1)
- ubi0: background thread "ubi_bgt0d" started, PID 171
- rtc-pcf8563 1-0051: setting system clock to 2020-06-15 13:38:48 UTC (1592228328)
- ldb-bl: disabling
- can: disabling
- ALSA device list:
- #0: imx-sgtl5000
- ...
The concern is about the lines:
- clk: failed to reparent cko to ssi1: -22
- clk: failed to reparent cko2_sel to cko2: -22
- clk: couldn't set ssi1_sel clk rate to 24576000 (-22), current rate: 786432000
- clk: failed to reparent cko to ssi1: -22
- clk: failed to reparent cko2_sel to cko2: -22
- clk: couldn't set ssi1_sel clk rate to 24576000 (-22), current rate: 786432000
and line
So far everything is running on the device (RGB display / analog touchscreen).
The backlight on PWM1 (Pin 32) is not running for now (maybe ldb-bl: disabling) ?
Thanks in advance for any hint.