Re: Want to use linux-fslc 5.10 with Dunfell


Peter Bergin
 

Hi Andrey,

On 2021-03-03 17:54, Andrey Zhizhikin wrote:
I'm working on this solution in my fork, and have it almost ready for
submission.

If anyone would be interested to try it out and test, you can have a
look athttps://github.com/zandrey/meta-freescale/tree/boot-container-for-mx8m-fslc

I'll be cleaning it up and getting ready for submission soon(ish).
Currently, the only things that is not supported is OP-TEE - I was not
able to boot the 2020.10 with it, so I removed it for the time being.

What I've tested today with this implementation is:
# DISTRO=poky MACHINE=imx8mm-lpddr4-evk bitbake core-image-base

Had it booted to the shell prompt.
thanks for the good work! I've tried to boot this on a imx8mn-ddr4-evk and see some issues with u-boot environment. I had to tweak the environment in order to get this to boot from SD card.

Variable - default -> changed to:
    mmcdev - 0 -> 1
    image - Image.itb -> Image
    boot_fit - try -> false

Seems like CONFIG_SYS_MMC_ENV_DEV is missing in the defconfig for imx8mn_ddr4_evk (it is present for imx8mm_evk and imx8mp_evk). I can also see a difference for 'image' and 'boot_fit' variable, include/configs/imx8mn_evk.h differs from include/configs/imx8m{m,p}_evk.h. So in order to get Nano EVK fully working the u-boot environment needs an update.

After handling the issue above the Nano EVK boots fine. I put the output from the console below for the interested.

Best regards,
/Peter


U-Boot SPL 2020.10+fslc+g5003fc093c (Dec 09 2020 - 17:09:55 +0000)
Normal Boot
WDT:   Started with servicing (60s timeout)
Trying to boot from BOOTROM
image offset 0x8000, pagesize 0x200, ivt offset 0x0
NOTICE:  BL31: v2.2(release):rel_imx_5.4.70_2.3.0-0-gf1d7187f2
NOTICE:  BL31: Built : 09:58:42, Dec  1 2020


U-Boot 2020.10+fslc+g5003fc093c (Dec 09 2020 - 17:09:55 +0000)

CPU:   Freescale i.MX8MNano Quad rev1.0 at 1200 MHz
Reset cause: POR
Model: NXP i.MX8MNano DDR4 EVK board
DRAM:  2 GiB
WDT:   Started with servicing (60s timeout)
MMC:   FSL_SDHC: 1, FSL_SDHC: 2
Loading Environment from MMC... Run CMD11 1.8V switch
OK
In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
Hit any key to stop autoboot:  0
Run CMD11 1.8V switch
switch to partitions #0, OK
mmc1 is current device
Run CMD11 1.8V switch
Failed to load 'boot.scr'
31568384 bytes read in 391 ms (77 MiB/s)
Booting from mmc ...
23443 bytes read in 12 ms (1.9 MiB/s)
Moving Image from 0x40480000 to 0x40600000, end=424b0000
## Flattened Device Tree blob at 43000000
   Booting using the fdt blob at 0x43000000
   Loading Device Tree to 000000004fff7000, end 000000004ffffb92 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.10.18+ge96f454f9d4b (oe-user@oe-host) (aarch64-poky-linux-gcc (GCC) 10.2.0, GNU ld (GNU Binutils) 2.36.1.20210209) #1 SMP PR
EEMPT Tue Feb 23 21:32:29 UTC 2021
[    0.000000] Machine model: NXP i.MX8MNano DDR4 EVK board
[    0.000000] efi: UEFI not found.
[    0.000000] cma: Reserved 32 MiB at 0x00000000be000000
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000040000000-0x00000000bfffffff]
[    0.000000] NUMA: NODE_DATA [mem 0xbdbe1b00-0xbdbe3fff]
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000]   DMA32    [mem 0x0000000080000000-0x00000000bfffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x00000000bfffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x00000000bfffffff]
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.1
[    0.000000] percpu: Embedded 23 pages/cpu s56280 r8192 d29736 u94208
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] CPU features: detected: GIC system register CPU interface
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 516096
[    0.000000] Policy zone: DMA32
[    0.000000] Kernel command line: console=ttymxc1,115200 root=/dev/mmcblk1p2 rootwait rw
[    0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: mapped [mem 0x000000007bfff000-0x000000007ffff000] (64MB)
[    0.000000] Memory: 1926588K/2097152K available (14464K kernel code, 2796K rwdata, 7540K rodata, 5888K init, 518K bss, 137796K reserved, 32768K cma-rese
rved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU event tracing is enabled.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4.
[    0.000000]  Trampoline variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[    0.000000] GICv3: 128 SPIs implemented
[    0.000000] GICv3: 0 Extended SPIs implemented
[    0.000000] GICv3: Distributor has no Range Selector support
[    0.000000] GICv3: 16 PPIs implemented
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000038880000
[    0.000000] ITS: No ITS available, not enabling LPIs
[    0.000000] random: get_random_bytes called from start_kernel+0x330/0x4f4 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 8.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 440795202120 ns
[    0.000003] sched_clock: 56 bits at 8MHz, resolution 125ns, wraps every 2199023255500ns
[    0.000614] Console: colour dummy device 80x25
[    0.000688] Calibrating delay loop (skipped), value calculated using timer frequency.. 16.00 BogoMIPS (lpj=32000)
[    0.000700] pid_max: default: 32768 minimum: 301
[    0.000768] LSM: Security Framework initializing
[    0.000825] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.000843] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.002083] rcu: Hierarchical SRCU implementation.
[    0.003483] EFI services will not be available.
[    0.003663] smp: Bringing up secondary CPUs ...
[    0.004046] Detected VIPT I-cache on CPU1
[    0.004074] GICv3: CPU1: found redistributor 1 region 0:0x00000000388a0000
[    0.004113] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.004516] Detected VIPT I-cache on CPU2
[    0.004533] GICv3: CPU2: found redistributor 2 region 0:0x00000000388c0000
[    0.004558] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.004934] Detected VIPT I-cache on CPU3
[    0.004949] GICv3: CPU3: found redistributor 3 region 0:0x00000000388e0000
[    0.004972] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.005027] smp: Brought up 1 node, 4 CPUs
[    0.005051] SMP: Total of 4 processors activated.
[    0.005058] CPU features: detected: 32-bit EL0 Support
[    0.005066] CPU features: detected: CRC32 instructions
[    0.005073] CPU features: detected: 32-bit EL1 Support
[    0.012237] CPU: All CPU(s) started at EL2
[    0.012259] alternatives: patching kernel code
[    0.013607] devtmpfs: initialized
[    0.017018] KASLR disabled due to lack of seed
[    0.017241] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.017256] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.018296] pinctrl core: initialized pinctrl subsystem
[    0.019308] DMI not present or invalid.
[    0.019748] NET: Registered protocol family 16
[    0.021180] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
[    0.021231] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.021347] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.021419] audit: initializing netlink subsys (disabled)
[    0.021555] audit: type=2000 audit(0.020:1): state=initialized audit_enabled=0 res=1
[    0.022425] thermal_sys: Registered thermal governor 'step_wise'
[    0.022429] thermal_sys: Registered thermal governor 'power_allocator'
[    0.022601] cpuidle: using governor menu
[    0.022771] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.022849] ASID allocator initialised with 65536 entries
[    0.024052] Serial: AMBA PL011 UART driver
[    0.041518] debugfs: Directory 'dummy-iomuxc-gpr@30340000' with parent 'regmap' already present!
[    0.041703] imx8mn-pinctrl 30330000.pinctrl: initialized IMX pinctrl driver
[    0.052834] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[    0.052847] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[    0.052854] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.052861] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[    0.053748] cryptd: max_cpu_qlen set to 1000
[    0.055961] ACPI: Interpreter disabled.
[    0.057435] iommu: Default domain type: Translated
[    0.057624] vgaarb: loaded
[    0.057897] SCSI subsystem initialized
[    0.058185] usbcore: registered new interface driver usbfs
[    0.058221] usbcore: registered new interface driver hub
[    0.058248] usbcore: registered new device driver usb
[    0.059177] pps_core: LinuxPPS API ver. 1 registered
[    0.059185] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@...>
[    0.059201] PTP clock support registered
[    0.059306] EDAC MC: Ver: 3.0.0
[    0.060391] FPGA manager framework
[    0.060465] Advanced Linux Sound Architecture Driver Initialized.
[    0.061121] clocksource: Switched to clocksource arch_sys_counter
[    0.061268] VFS: Disk quotas dquot_6.6.0
[    0.061313] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.061487] pnp: PnP ACPI: disabled
[    0.066451] NET: Registered protocol family 2
[    0.066829] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    0.066866] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.067009] TCP bind hash table entries: 16384 (order: 6, 262144 bytes, linear)
[    0.067243] TCP: Hash tables configured (established 16384 bind 16384)
[    0.067354] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.067397] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.067541] NET: Registered protocol family 1
[    0.067871] RPC: Registered named UNIX socket transport module.
[    0.067878] RPC: Registered udp transport module.
[    0.067883] RPC: Registered tcp transport module.
[    0.067889] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.067899] PCI: CLS 0 bytes, default 64
[    0.068602] kvm [1]: IPA Size Limit: 40 bits
[    0.069885] kvm [1]: GICv3: no GICV resource entry
[    0.069892] kvm [1]: disabling GICv2 emulation
[    0.069909] kvm [1]: GIC system register CPU interface enabled
[    0.069987] kvm [1]: vgic interrupt IRQ9
[    0.070085] kvm [1]: Hyp mode initialized successfully
[    0.072787] Initialise system trusted keyrings
[    0.072907] workingset: timestamp_bits=42 max_order=19 bucket_order=0
[    0.078327] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.078890] NFS: Registering the id_resolver key type
[    0.078913] Key type id_resolver registered
[    0.078920] Key type id_legacy registered
[    0.078993] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.079130] 9p: Installing v9fs 9p2000 file system support
[    0.115078] Key type asymmetric registered
[    0.115086] Asymmetric key parser 'x509' registered
[    0.115122] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[    0.115129] io scheduler mq-deadline registered
[    0.115135] io scheduler kyber registered
[    0.123922] EINJ: ACPI disabled.
[    0.132282] imx-sdma 302b0000.dma-controller: Direct firmware load for imx/sdma/sdma-imx7d.bin failed with error -2
[    0.132297] imx-sdma 302b0000.dma-controller: Falling back to sysfs fallback for: imx/sdma/sdma-imx7d.bin
[    0.137249] SoC: i.MX8MN revision 1.0
[    0.140766] debugfs: Directory 'dummy-reset-controller@30390000' with parent 'regmap' already present!
[    0.143941] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.146096] SuperH (H)SCI(F) driver initialized
[    0.146596] 30890000.serial: ttymxc1 at MMIO 0x30890000 (irq = 32, base_baud = 1500000) is a IMX
[    1.065937] printk: console [ttymxc1] enabled
[    1.070947] msm_serial: driver initialized
[    1.082458] loop: module loaded
[    1.086414] megasas: 07.714.04.00-rc1
[    1.093989] libphy: Fixed MDIO Bus: probed
[    1.099118] tun: Universal TUN/TAP device driver, 1.6
[    1.104849] thunder_xcv, ver 1.0
[    1.108118] thunder_bgx, ver 1.0
[    1.111377] nicpf, ver 1.0
[    1.114880] pps pps0: new PPS source ptp0
[    1.119629] fec 30be0000.ethernet: Invalid MAC address: 00:00:00:00:00:00
[    1.126434] fec 30be0000.ethernet: Using random MAC address: fa:f1:4e:05:80:92
[    1.134775] libphy: fec_enet_mii_bus: probed
[    1.139128] mdio_bus 30be0000.ethernet-1: MDIO device at address 0 is missing.
[    1.146824] fec 30be0000.ethernet eth0: registered PHC device 0
[    1.153944] hclge is initializing
[    1.157313] hns3: Hisilicon Ethernet Network Driver for Hip08 Family - version
[    1.164542] hns3: Copyright (c) 2017 Huawei Corporation.
[    1.169906] e1000: Intel(R) PRO/1000 Network Driver
[    1.174791] e1000: Copyright (c) 1999-2006 Intel Corporation.
[    1.180579] e1000e: Intel(R) PRO/1000 Network Driver
[    1.185550] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    1.191506] igb: Intel(R) Gigabit Ethernet Network Driver
[    1.196911] igb: Copyright (c) 2007-2014 Intel Corporation.
[    1.202521] igbvf: Intel(R) Gigabit Virtual Function Network Driver
[    1.208794] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[    1.214997] sky2: driver version 1.30
[    1.219597] VFIO - User Level meta-driver version: 0.3
[    1.226302] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.232842] ehci-pci: EHCI PCI platform driver
[    1.237320] ehci-platform: EHCI generic platform driver
[    1.242652] ehci-orion: EHCI orion driver
[    1.246747] ehci-exynos: EHCI Exynos driver
[    1.251003] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.257208] ohci-pci: OHCI PCI platform driver
[    1.261683] ohci-platform: OHCI generic platform driver
[    1.267007] ohci-exynos: OHCI Exynos driver
[    1.271640] usbcore: registered new interface driver usb-storage
[    1.280062] i2c /dev entries driver
[    1.289493] sdhci: Secure Digital Host Controller Interface driver
[    1.295727] sdhci: Copyright(c) Pierre Ossman
[    1.300528] Synopsys Designware Multimedia Card Interface Driver
[    1.307386] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.314751] ledtrig-cpu: registered to indicate activity on CPUs
[    1.322067] usbcore: registered new interface driver usbhid
[    1.327664] usbhid: USB HID core driver
[    1.336365] NET: Registered protocol family 17
[    1.340996] 9pnet: Installing 9P2000 support
[    1.345334] Key type dns_resolver registered
[    1.345734] mmc2: SDHCI controller on 30b60000.mmc [30b60000.mmc] using ADMA
[    1.350057] registered taskstats version 1
[    1.360770] Loading compiled-in X.509 certificates
[    1.384857] usb_phy_generic usbphynop1: supply vcc not found, using dummy regulator
[    1.461779] mmc2: new HS400 MMC card at address 0001
[    1.466108] ldo6: supplied by buck5
[    1.468200] mmcblk2: mmc2:0001 DG4016 14.7 GiB
[    1.470476] i2c i2c-0: IMX I2C adapter registered
[    1.474998] mmcblk2boot0: mmc2:0001 DG4016 partition 1 4.00 MiB
[    1.481024] i2c i2c-1: IMX I2C adapter registered
[    1.485654] mmcblk2boot1: mmc2:0001 DG4016 partition 2 4.00 MiB
[    1.491453] pca953x 2-0020: supply vcc not found, using dummy regulator
[    1.496785] mmcblk2rpmb: mmc2:0001 DG4016 partition 3 4.00 MiB, chardev (234:0)
[    1.502791] pca953x 2-0020: using no AI
[    1.514527]  mmcblk2: p1 p2 p3 p4 p5
[    1.515306] i2c i2c-2: IMX I2C adapter registered
[    1.524296] imx_usb 32e40000.usb: No over current polarity defined
[    1.538182] sdhci-esdhc-imx 30b50000.mmc: Got CD GPIO
[    1.540843] input: bd718xx-pwrkey as /devices/platform/soc@0/30800000.bus/30a20000.i2c/i2c-0/0-004b/gpio-keys.0.auto/input/input0
[    1.556001] ALSA device list:
[    1.558994]   No soundcards found.
[    1.574209] mmc1: SDHCI controller on 30b50000.mmc [30b50000.mmc] using ADMA
[    1.581908] Waiting for root device /dev/mmcblk1p2...
[    1.676516] random: fast init done
[    1.723156] mmc1: host does not support reading read-only switch, assuming write-enable
[    1.758762] mmc1: new ultra high speed SDR104 SDHC card at address e624
[    1.766795] mmcblk1: mmc1:e624 SU08G 7.40 GiB
[    1.782688]  mmcblk1: p1 p2
[    1.816060] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.824241] VFS: Mounted root (ext4 filesystem) on device 179:98.
[    1.836254] devtmpfs: mounted
[    1.842210] Freeing unused kernel memory: 5888K
[    1.846868] Run /sbin/init as init process
INIT: version 2.99 booting
Framebuffer /dev/fb0 not detected
Boot splashscreen disabled
Starting udev
[    2.083507] udevd[163]: starting version 3.2.10
[    2.099256] random: udevd: uninitialized urandom read (16 bytes read)
[    2.106263] random: udevd: uninitialized urandom read (16 bytes read)
[    2.113239] random: udevd: uninitialized urandom read (16 bytes read)
[    2.138124] udevd[164]: starting eudev-3.2.10
[    2.188777] imx-cpufreq-dt imx-cpufreq-dt: cpu speed grade 8 mkt segment 0 supported-hw 0x100 0x1
[    2.204639] imx-sdma 302b0000.dma-controller: loaded firmware 4.5
[    2.210970] imx-sdma 302c0000.dma-controller: loaded firmware 4.5
[    2.217304] imx-sdma 30bd0000.dma-controller: loaded firmware 4.5
[    2.253252] input: 30370000.snvs:snvs-powerkey as /devices/platform/soc@0/30000000.bus/30370000.snvs/30370000.snvs:snvs-powerkey/input/input1
[    2.254641] snvs_rtc 30370000.snvs:snvs-rtc-lp: registered as rtc0
[    2.274836] bd718xx-clk bd71847-clk.1.auto: No parent clk found
[    2.275097] caam 30900000.crypto: Entropy delay = 3200
[    2.281771] bd718xx-clk: probe of bd71847-clk.1.auto failed with error -22
[    2.292932] snvs_rtc 30370000.snvs:snvs-rtc-lp: setting system clock to 2018-03-09T13:03:11 UTC (1520600591)
[    2.300969] caam 30900000.crypto: Instantiated RNG4 SH0
[    2.311650] caam 30900000.crypto: Instantiated RNG4 SH1
[    2.318359] caam 30900000.crypto: device ID = 0x0a16040100000100 (Era 9)
[    2.326094] caam 30900000.crypto: job rings = 3, qi = 0
[    2.421546] caam algorithms registered in /proc/crypto
[    2.428007] caam 30900000.crypto: caam pkc algorithms registered in /proc/crypto
[    2.435437] caam 30900000.crypto: registering rng-caam
[    2.459802] EXT4-fs (mmcblk1p2): re-mounted. Opts: (null)
[    2.477805] random: crng init done
[    2.481340] random: 4 urandom warning(s) missed due to ratelimiting
[    2.741415] fec 30be0000.ethernet eth0: Unable to connect to phy
[    2.852625] NET: Registered protocol family 10
[    2.858442] Segment Routing with IPv6
[    2.941803] Bluetooth: Core ver 2.22
[    2.945546] NET: Registered protocol family 31
[    2.950043] Bluetooth: HCI device and connection manager initialized
[    2.956448] Bluetooth: HCI socket layer initialized
[    2.961373] Bluetooth: L2CAP socket layer initialized
[    2.966518] Bluetooth: SCO socket layer initialized
[    3.033397] nfc: nfc_init: NFC Core ver 0.1
[    3.037722] NET: Registered protocol family 39

Poky (Yocto Project Reference Distro) 3.2+snapshot-c8075ed8f157468849d3199c3671b84a6f08785d imx8mn-ddr4-evk /dev/ttymxc1

imx8mn-ddr4-evk login:

Join meta-freescale@lists.yoctoproject.org to automatically receive all group messages.