Hello Renesas team,
We have designed custom board of RZ/G2L CPU. 512MB DDR4 part is used with CPU. we are trying to boot the CPU from SD card, but it gets stuck at some point so can you please suggest us where and why exactly it is stopping here?
see below log and also attached for your reference at where it is stopping.
NOTICE: BL2: v2.6(release):7e8696ff4-dirty NOTICE: BL2: Built : 17:19:10, Sep 12 2023 NOTICE: BL2: SD boot from partition 0 NOTICE: BL2: Load dst=0x1f7c0 src=(p:0)0x10000(128) len=0x10(1) NOTICE: BL2: SD boot from partition 0 NOTICE: BL2: Load dst=0x1f920 src=(p:0)0x10010(128) len=0x28(1) NOTICE: BL2: SD boot from partition 0 NOTICE: BL2: Load dst=0x44000000 src=(p:0)0x10090(128) len=0x6069(49) NOTICE: BL2: SD boot from partition 0 NOTICE: BL2: Load dst=0x1f7c0 src=(p:0)0x10000(128) len=0x10(1) NOTICE: BL2: SD boot from partition 0 NOTICE: BL2: Load dst=0x1f920 src=(p:0)0x10010(128) len=0x28(1) NOTICE: BL2: Load dst=0x1f920 src=(p:0)0x10038(128) len=0x28(1) NOTICE: BL2: SD boot from partition 0 NOTICE: BL2: Load dst=0x50000000 src=(p:0)0x16100(176) len=0xb0be8(1415) NOTICE: BL2: Booting BL31 NOTICE: BL31: v2.6(release):7e8696ff4-dirty NOTICE: BL31: Built : 17:19:10, Sep 12 2023 U-Boot 2021.10-g8f3828c87d-dirty (Sep 12 2023 - 17:18:55 +0530) CPU: Renesas Electronics CPU rev 1.0 Model: smarc-rzg2l DRAM: 1.9 GiB WDT: watchdog@0000000012800800 WDT: Started with servicing (60s timeout) MMC: sd@11c00000: 0, sd@11c10000: 1 Loading Environment from MMC... MMC partition switch failed *** Warning - MMC partition switch failed, using default environment In: serial@1004b800 Out: serial@1004b800 Err: serial@1004b800 U-boot WDT started! Net: Error: ethernet@11c20000 address not set. No ethernet found. Hit any key to stop autoboot: 0 ## Resetting to default environment switch to partitions #0, OK mmc1(part 0) is current device ** No partition table - mmc 1 ** Couldn't find partition mmc 1:1 Can't set block device ** No partition table - mmc 1 ** Couldn't find partition mmc 1:1 Can't set block device Error: Bad gzipped data Bad Linux ARM64 Image magic! => setenv bootargs 'rw rootwait earlycon root=/dev/mmcblk0p2' => setenv bootcmd 'mmc dev 0;fatload mmc 0:1 0x48080000 Image-sm2s-rzg2l.bin;fatload mmc 0:1 0x48000000 Image-r9a07g044l2-smarc.dtb; booti 0x48080000 - 0x48000000' => boot switch to partitions #0, OK mmc0 is current device 17488384 bytes read in 1450 ms (11.5 MiB/s) 39317 bytes read in 6 ms (6.2 MiB/s) Moving Image from 0x48080000 to 0x48200000, end=49320000 ## Flattened Device Tree blob at 48000000 Booting using the fdt blob at 0x48000000 Loading Device Tree to 0000000057ff3000, end 0000000057fff994 ... OK Starting kernel ... [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x412fd050] [ 0.000000] Linux version 5.10.158-cip22-yocto-standard (oe-user@oe-host) (aarch64-poky-linux-gcc (GCC) 8.3.0, GNU ld (GNU Binutils) 2.31.1) #1 SMP PREEMPT Sat Feb 27 02:21:18 UTC 2021 [ 0.000000] Machine model: Renesas SMARC EVK based on r9a07g044l2 [ 0.000000] earlycon: scif0 at MMIO 0x000000001004b800 (options '115200n8') [ 0.000000] printk: bootconsole [scif0] enabled [ 0.000000] efi: UEFI not found. [ 0.000000] Reserved memory: created CMA memory pool at 0x0000000058000000, size 256 MiB [ 0.000000] OF: reserved mem: initialized node linux,cma@58000000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created CMA memory pool at 0x0000000068000000, size 128 MiB [ 0.000000] OF: reserved mem: initialized node linux,multimedia, compatible id shared-dma-pool [ 0.000000] Zone ranges: [ 0.000000] DMA [mem 0x0000000048000000-0x00000000bfffffff] [ 0.000000] DMA32 empty [ 0.000000] Normal empty [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000048000000-0x00000000bfffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000048000000-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.2 [ 0.000000] percpu: Embedded 23 pages/cpu s55384 r8192 d30632 u94208 [ 0.000000] Detected VIPT I-cache on CPU0 [ 0.000000] CPU features: detected: GIC system register CPU interface [ 0.000000] CPU features: detected: ARM errata 1165522, 1319367, or 1530923 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 483840 [ 0.000000] Kernel command line: rw rootwait earlycon root=/dev/mmcblk0p2 wdt_overflow=0 [ 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] Memory: 1515216K/1966080K available (10688K kernel code, 1014K rwdata, 3228K rodata, 2048K init, 381K bss, 57648K reserved, 393216K cma-reserved) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, 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=8 to nr_cpu_ids=2. [ 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=2 [ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0 [ 0.000000] GICv3: 480 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:0x0000000011940000 [ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (virt). [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns [ 0.000004] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns [ 0.008236] Console: colour dummy device 80x25 [ 0.012703] printk: console [tty0] enabled [ 0.016819] printk: bootconsole [scif0] disabled [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x412fd050] [ 0.000000] Linux version 5.10.158-cip22-yocto-standard (oe-user@oe-host) (aarch64-poky-linux-gcc (GCC) 8.3.0, GNU ld (GNU Binutils) 2.31.1) #1 SMP PREEMPT Sat Feb 27 02:21:18 UTC 2021 [ 0.000000] Machine model: Renesas SMARC EVK based on r9a07g044l2 [ 0.000000] earlycon: scif0 at MMIO 0x000000001004b800 (options '115200n8') [ 0.000000] printk: bootconsole [scif0] enabled [ 0.000000] efi: UEFI not found. [ 0.000000] Reserved memory: created CMA memory pool at 0x0000000058000000, size 256 MiB [ 0.000000] OF: reserved mem: initialized node linux,cma@58000000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created CMA memory pool at 0x0000000068000000, size 128 MiB [ 0.000000] OF: reserved mem: initialized node linux,multimedia, compatible id shared-dma-pool [ 0.000000] Zone ranges: [ 0.000000] DMA [mem 0x0000000048000000-0x00000000bfffffff] [ 0.000000] DMA32 empty [ 0.000000] Normal empty [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000048000000-0x00000000bfffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000048000000-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.2 [ 0.000000] percpu: Embedded 23 pages/cpu s55384 r8192 d30632 u94208 [ 0.000000] Detected VIPT I-cache on CPU0 [ 0.000000] CPU features: detected: GIC system register CPU interface [ 0.000000] CPU features: detected: ARM errata 1165522, 1319367, or 1530923 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 483840 [ 0.000000] Kernel command line: rw rootwait earlycon root=/dev/mmcblk0p2 wdt_overflow=0 [ 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] Memory: 1515216K/1966080K available (10688K kernel code, 1014K rwdata, 3228K rodata, 2048K init, 381K bss, 57648K reserved, 393216K cma-reserved) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, 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=8 to nr_cpu_ids=2. [ 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=2 [ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0 [ 0.000000] GICv3: 480 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:0x0000000011940000 [ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (virt). [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns [ 0.000004] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns [ 0.008236] Console: colour dummy device 80x25 [ 0.012703] printk: console [tty0] enabled [ 0.016819] printk: bootconsole [scif0] disabled [ 0.021484] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000) [ 0.021507] pid_max: default: 32768 minimum: 301 [ 0.021647] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear) [ 0.021670] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear) [ 0.023288] rcu: Hierarchical SRCU implementation. [ 0.023939] Detected Renesas RZ/G2L r9a07g044 Rev 4 [ 0.024230] EFI services will not be available. [ 0.024517] smp: Bringing up secondary CPUs ... [ 5.097369] CPU1: failed to come online [ 5.097396] CPU1: failed in unknown state : 0x0 [ 5.097482] smp: Brought up 1 node, 1 CPU [ 5.097495] SMP: Total of 1 processors activated. [ 5.097509] CPU features: detected: Privileged Access Never [ 5.097519] CPU features: detected: LSE atomic instructions [ 5.097530] CPU features: detected: User Access Override [ 5.097541] CPU features: detected: 32-bit EL0 Support [ 5.097552] CPU features: detected: Common not Private translations [ 5.097565] CPU features: detected: Data cache clean to the PoU not required for I/D coherence [ 5.097578] CPU features: detected: CRC32 instructions [ 5.097592] CPU features: detected: Speculative Store Bypassing Safe (SSBS) [ 5.097607] CPU features: detected: 32-bit EL1 Support [ 5.111495] CPU: All CPU(s) started at EL1 [ 5.111573] alternatives: patching kernel code [ 5.113917] devtmpfs: initialized [ 5.120153] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns [ 5.120206] futex hash table entries: 512 (order: 3, 32768 bytes, linear) [ 5.129403] pinctrl core: initialized pinctrl subsystem [ 5.130260] DMI not present or invalid. [ 5.130755] NET: Registered protocol family 16 [ 5.131948] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations [ 5.132094] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations [ 5.132258] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations [ 5.132377] audit: initializing netlink subsys (disabled) [ 5.133087] thermal_sys: Registered thermal governor 'step_wise' [ 5.133424] cpuidle: using governor menu [ 5.133601] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers. [ 5.133646] ASID allocator initialised with 65536 entries [ 5.137825] audit: type=2000 audit(5.120:1): state=initialized audit_enabled=0 res=1 [ 5.162207] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages [ 5.162244] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages [ 5.162258] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages [ 5.162271] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages [ 5.163837] cryptd: max_cpu_qlen set to 1000 [ 5.168948] iommu: Default domain type: Translated [ 5.169841] vgaarb: loaded [ 5.170381] SCSI subsystem initialized [ 5.170812] usbcore: registered new interface driver usbfs [ 5.170868] usbcore: registered new interface driver hub [ 5.170907] usbcore: registered new device driver usb [ 5.171761] mc: Linux media interface: v0.10 [ 5.171797] videodev: Linux video capture interface: v2.00 [ 5.171864] pps_core: LinuxPPS API ver. 1 registered [ 5.171876] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]> [ 5.171900] PTP clock support registered [ 5.172955] Advanced Linux Sound Architecture Driver Initialized. [ 5.173806] clocksource: Switched to clocksource arch_sys_counter [ 5.174036] VFS: Disk quotas dquot_6.6.0 [ 5.174103] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes) [ 5.179480] NET: Registered protocol family 2 [ 5.179741] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear) [ 5.181055] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear) [ 5.181118] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear) [ 5.181229] TCP bind hash table entries: 16384 (order: 6, 262144 bytes, linear) [ 5.181505] TCP: Hash tables configured (established 16384 bind 16384) [ 5.181673] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear) [ 5.181718] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear) [ 5.181943] NET: Registered protocol family 1 [ 5.182543] RPC: Registered named UNIX socket transport module. [ 5.182572] RPC: Registered udp transport module. [ 5.182583] RPC: Registered tcp transport module. [ 5.182594] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 5.182612] PCI: CLS 0 bytes, default 64 [ 5.183444] kvm [1]: HYP mode not available [ 5.185142] workingset: timestamp_bits=46 max_order=19 bucket_order=0 [ 5.191129] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 5.191837] NFS: Registering the id_resolver key type [ 5.191892] Key type id_resolver registered [ 5.191904] Key type id_legacy registered [ 5.191995] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 5.192010] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering... [ 5.192044] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc. [ 5.192676] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245) [ 5.192706] io scheduler mq-deadline registered [ 5.192718] io scheduler kyber registered [ 5.194860] poeg-rzg2l 10048800.poega: RZ/G2L POEG Driver probed [ 5.195348] poeg-rzg2l 10048c00.poegb: RZ/G2L POEG Driver probed [ 5.195531] poeg-rzg2l 10049000.poegc: RZ/G2L POEG Driver probed [ 5.195679] poeg-rzg2l 10049400.poegd: RZ/G2L POEG Driver probed [ 5.233783] SuperH (H)SCI(F) driver initialized [ 5.245306] loop: module loaded [ 5.247972] tun: Universal TUN/TAP device driver, 1.6 [ 5.248231] CAN device driver interface [ 5.248706] e1000e: Intel(R) PRO/1000 Network Driver [ 5.248722] e1000e: Copyright(c) 1999 - 2015 Intel Corporation. [ 5.249389] VFIO - User Level meta-driver version: 0.3 [ 5.249642] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 5.249660] ehci-pci: EHCI PCI platform driver [ 5.249720] ehci-platform: EHCI generic platform driver [ 5.250481] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 5.250536] ohci-pci: OHCI PCI platform driver [ 5.250604] ohci-platform: OHCI generic platform driver [ 5.251649] usbcore: registered new interface driver usb-storage [ 5.252198] renesas_usbhs 11c60000.usb: host probed [ 5.252221] renesas_usbhs 11c60000.usb: no transceiver found [ 5.252363] renesas_usbhs 11c60000.usb: gadget probed [ 5.252490] renesas_usbhs 11c60000.usb: platform init failed. [ 5.252625] renesas_usbhs 11c60000.usb: probe failed (-517) [ 5.253468] usbcore: registered new interface driver usbtouchscreen [ 5.253532] i2c /dev entries driver [ 5.258177] rzg2l-csi2 10830400.csi2: 2 lanes found [ 5.264183] ledtrig-cpu: registered to indicate activity on CPUs [ 5.264227] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping .... [ 5.264733] renesas_mtu3 10001200.timer: ch0: used as clock source [ 5.264763] clocksource: 10001200.timer: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 18664368 ns [ 5.264818] renesas_mtu3 10001200.timer: ch1: used for clock events [ 5.264843] renesas_mtu3 10001200.timer: Renesas MTU3 driver probed [ 5.265488] clocksource: timer@12801400: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604467 ns [ 5.265525] sched_clock: 32 bits at 100MHz, resolution 10ns, wraps every 21474836475ns [ 5.265546] /soc/timer@12801400: used for clocksource [ 5.266308] usbcore: registered new interface driver usbhid [ 5.266331] usbhid: USB HID core driver [ 5.266994] optee: probing for conduit method. [ 5.267018] optee: api uid mismatch [ 5.267038] optee: probe of firmware:optee failed with error -22 [ 5.269049] NET: Registered protocol family 10 [ 5.270078] Segment Routing with IPv6 [ 5.270159] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver [ 5.270626] NET: Registered protocol family 17 [ 5.270655] can: controller area network core [ 5.270723] NET: Registered protocol family 29 [ 5.270739] can: raw protocol [ 5.270752] can: broadcast manager protocol [ 5.270769] can: netlink gateway - max_hops=1 [ 5.270952] Key type dns_resolver registered [ 5.271357] registered taskstats version 1 [ 5.279388] thermal emergency: not set value [ 5.281698] gpio-153 (gpio_sd0_pwr_en): hogged as output/high [ 5.281747] gpio-449 (sd0_dev_sel): hogged as output/high [ 5.281783] gpio-434 (sd1_pwr_en): hogged as output/high [ 5.282293] gpio gpiochip0: (11030000.pinctrl): detected irqchip that is shared with multiple gpiochips: please fix the driver. [ 5.282601] pinctrl-rzg2l 11030000.pinctrl: pinctrl-rzg2l support registered [ 5.285325] 1004b800.serial: ttySC0 at MMIO 0x1004b800 (irq = 25, base_baud = 0) is a scif [ 6.399591] printk: console [ttySC0] enabled [ 6.406484] renesas_spi 1004b000.spi: DMA available [ 6.411898] renesas_spi 1004b000.spi: probed [ 6.417427] rcar_canfd 10050000.can: can_clk rate is 50000000 [ 6.423812] rcar_canfd 10050000.can: device registered (channel 0) [ 6.430090] rcar_canfd 10050000.can: can_clk rate is 50000000 [ 6.436308] rcar_canfd 10050000.can: device registered (channel 1) [ 6.442510] rcar_canfd 10050000.can: global operational state (clk 0, fdmode 1) [ 6.450646] ravb 11c20000.ethernet: no valid MAC address supplied, using a random one [ 6.461027] ravb 11c20000.ethernet eth0: Base address at 0x11c20000, 36:50:b9:f9:50:9d, IRQ 138. [ 6.470824] ravb 11c30000.ethernet: no valid MAC address supplied, using a random one [ 6.481180] ravb 11c30000.ethernet eth1: Base address at 0x11c30000, 9a:68:d7:f4:c8:85, IRQ 141. [ 6.517845] ehci-platform 11c50100.usb: EHCI Host Controller [ 6.523555] ehci-platform 11c50100.usb: new USB bus registered, assigned bus number 1 [ 6.531509] ehci-platform 11c50100.usb: irq 146, io mem 0x11c50100 [ 6.549817] ehci-platform 11c50100.usb: USB 2.0 started, EHCI 1.10 [ 6.556643] hub 1-0:1.0: USB hub found [ 6.560472] hub 1-0:1.0: 1 port detected [ 6.565356] ehci-platform 11c70100.usb: EHCI Host Controller [ 6.571076] ehci-platform 11c70100.usb: new USB bus registered, assigned bus number 2 [ 6.578991] ehci-platform 11c70100.usb: irq 147, io mem 0x11c70100 [ 6.597813] ehci-platform 11c70100.usb: USB 2.0 started, EHCI 1.10 [ 6.604595] hub 2-0:1.0: USB hub found [ 6.608422] hub 2-0:1.0: 1 port detected [ 6.613247] ohci-platform 11c50000.usb: Generic Platform OHCI controller [ 6.620041] ohci-platform 11c50000.usb: new USB bus registered, assigned bus number 3 [ 6.628007] ohci-platform 11c50000.usb: irq 144, io mem 0x11c50000 [ 6.724400] hub 3-0:1.0: USB hub found [ 6.728231] hub 3-0:1.0: 1 port detected [ 6.733028] ohci-platform 11c70000.usb: Generic Platform OHCI controller [ 6.739784] ohci-platform 11c70000.usb: new USB bus registered, assigned bus number 4 [ 6.747808] ohci-platform 11c70000.usb: irq 145, io mem 0x11c70000 [ 6.844432] hub 4-0:1.0: USB hub found [ 6.848262] hub 4-0:1.0: 1 port detected [ 6.853046] renesas_usbhs 11c60000.usb: host probed [ 6.858004] renesas_usbhs 11c60000.usb: no transceiver found [ 6.863788] renesas_usbhs 11c60000.usb: gadget probed [ 6.869091] renesas_usbhs 11c60000.usb: probed [ 6.875461] ov5645 0-003c: cannot get enable gpio [ 6.880532] ov5645: probe of 0-003c failed with error -2 [ 6.886014] i2c-riic 10058000.i2c: registered with 100000Hz bus speed [ 6.895995] i2c-riic 10058400.i2c: registered with 100000Hz bus speed [ 6.906432] VCC_LDO2_1V8: Bringing 3300000uV into 1800000-1800000uV [ 6.914484] i2c-riic 10058800.i2c: registered with 400000Hz bus speed [ 6.922136] i2c-riic 10058c00.i2c: registered with 400000Hz bus speed [ 6.933869] pinctrl-rzg2l 11030000.pinctrl: could not map pin config for "SD1_DATA4" [ 6.942199] spi-nor spi1.0: unrecognized JEDEC id bytes: 1f 87 01 1f 87 01 [ 6.949140] pinctrl-rzg2l 11030000.pinctrl: could not map pin config for "SD1_DATA5" [ 6.958017] pinctrl-rzg2l 11030000.pinctrl: could not map pin config for "SD1_DATA6" [ 6.965814] pinctrl-rzg2l 11030000.pinctrl: could not map pin config for "SD1_DATA7" [ 6.973833] pinctrl-rzg2l 11030000.pinctrl: could not map pin config for "SD1_DATA4" [ 6.981593] pinctrl-rzg2l 11030000.pinctrl: could not map pin config for "SD1_DATA5" [ 6.989514] renesas_sdhi_internal_dmac 11c00000.mmc: mmc0 base at 0x0000000011c00000, max clock rate 100 MHz [ 6.999401] pinctrl-rzg2l 11030000.pinctrl: could not map pin config for "SD1_DATA6" [ 7.007658] pinctrl-rzg2l 11030000.pinctrl: could not map pin config for "SD1_DATA7" [ 7.016945] rz-ssi-pcm-audio 10049c00.ssi: DMA enabled [ 7.023831] rz-ssi-pcm-audio 1004a000.ssi: DMA enabled [ 7.033165] ALSA device list: [ 7.036272] No soundcards found. [ 7.073766] renesas_sdhi_internal_dmac 11c10000.mmc: mmc1 base at 0x0000000011c10000, max clock rate 100 MHz [ 7.085519] Waiting for root device /dev/mmcblk0p2... [ 7.167101] mmc1: new HS200 MMC card at address 0001 [ 7.172658] mmcblk1: mmc1:0001 M62704 3.56 GiB [ 7.177378] mmcblk1boot0: mmc1:0001 M62704 partition 1 2.00 MiB [ 7.183433] mmcblk1boot1: mmc1:0001 M62704 partition 2 2.00 MiB [ 7.189572] mmcblk1rpmb: mmc1:0001 M62704 partition 3 512 KiB, chardev (242:0) [ 7.463292] mmc0: new ultra high speed SDR104 SDHC card at address aaaa [ 7.470506] mmcblk0: mmc0:aaaa SD32G 29.7 GiB [ 7.476475] mmcblk0: p1 p2 [ 7.516032] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null) [ 7.524215] VFS: Mounted root (ext4 filesystem) on device 179:26. [ 7.531805] devtmpfs: mounted [ 7.536483] Freeing unused kernel memory: 2048K [ 7.541171] Run /sbin/init as init process [ 7.884846] systemd[1]: System time before build time, advancing clock. [ 7.945694] systemd[1]: systemd 244.5+ running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR -SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD ) [ 7.967749] systemd[1]: Detected architecture arm64. Welcome to Poky (Yocto Project Reference Distro) 3.1.24 (dunfell)! [ 8.010824] systemd[1]: Set hostname to <sm2s-rzg2l>. [ 8.363604] systemd[1]: Configuration file /lib/systemd/system/watchdog.service is marked executable. Please remove executable permission bits. Proceeding anyway. [ 8.550050] random: systemd: uninitialized urandom read (16 bytes read) [ 8.557037] systemd[1]: system-getty.slice: unit configures an IP firewall, but the local system does not support BPF/cgroup firewalling. [ 8.569404] systemd[1]: (This warning is only shown for the first unit using IP firewalling.) [ 8.580924] systemd[1]: Created slice system-getty.slice. [ OK ] Created slice system-getty.slice. [ 8.602016] random: systemd: uninitialized urandom read (16 bytes read) [ 8.610171] systemd[1]: Created slice system-serial\x2dgetty.slice. [ OK ] Created slice system-serial\x2dgetty.slice. [ 8.634012] random: systemd: uninitialized urandom read (16 bytes read) [ 8.642000] systemd[1]: Created slice User and Session Slice. [ OK ] Created slice User and Session Slice. [ 8.662383] systemd[1]: Started Dispatch Password Requests to Console Directory Watch. [ OK ] Started Dispatch Password …ts to Console Directory Watch. [ 8.686322] systemd[1]: Started Forward Password Requests to Wall Directory Watch. [ OK ] Started Forward Password R�������uests to Wall Directory Watch. [ 8.710207] systemd[1]: Reached target Host and Network Name Lookups. [ OK ] Reached target Host and Network Name Lookups. [ 8.734104] systemd[1]: Reached target Paths. [ OK ] Reached target Paths. [ 8.754089] systemd[1]: Reached target Remote File Systems. [ OK ] Reached target Remote File Systems. [ 8.774104] systemd[1]: Reached target Slices. [ OK ] Reached target Slices. [ 8.794106] systemd[1]: Reached target Swap. [ OK ] Reached target Swap. [ 8.818119] systemd[1]: Listening on RPCbind Server Activation Socket. [ OK ] Listening on RPCbind Server Activation Socket. [ 8.842157] systemd[1]: Reached target RPC Port Mapper. [ OK ] Reached target RPC Port Mapper. [ 8.875451] systemd[1]: Listening on Syslog Socket. [ OK ] Listening on Syslog Socket. [ 8.894435] systemd[1]: Listening on initctl Compatibility Named Pipe. [ OK ] Listening on initctl Compatibility Named Pipe. [ 8.918845] systemd[1]: Listening on Journal Audit Socket. [ OK ] Listening on Journal Audit Socket. [ 8.938587] systemd[1]: Listening on Journal Socket (/dev/log). [ OK ] Listening on Journal Socket (/dev/log). [ 8.962703] systemd[1]: Listening on Journal Socket. [ OK ] Listening on Journal Socket. [ 8.982868] systemd[1]: Listening on Network Service Netlink Socket. [ OK ] Listening on Network Service Netlink Socket. [ 9.006728] systemd[1]: Listening on udev Control Socket. [ OK ] Listening on udev Control Socket. [ 9.026468] systemd[1]: Listening on udev Kernel Socket. [ OK ] Listening on udev Kernel Socket. [ 9.050604] systemd[1]: Mounting Huge Pages File System... Mounting Huge Pages File System... [ 9.078521] systemd[1]: Mounting POSIX Message Queue File System... Mounting POSIX Message Queue File System... [ 9.110508] systemd[1]: Mounting Kernel Debug File System... Mounting Kernel Debug File System... [ 9.143853] systemd[1]: Mounting Temporary Directory (/tmp)... Mounting Temporary Directory (/tmp)... [ 9.176246] systemd[1]: Starting Create list of static device nodes for the current kernel... Starting Create list of st��…odes for the current kernel... [ 9.223597] systemd[1]: Starting Start psplash boot splash screen... Starting Start psplash boot splash screen... [ 9.260314] systemd[1]: Starting RPC Bind... Starting RPC Bind... [ 9.282182] systemd[1]: Condition check resulted in File System Check on Root Device being skipped. [ 9.301793] systemd[1]: Starting Journal Service... Starting Journal Service... [ 9.346830] systemd[1]: Starting Load Kernel Modules... Starting Load Kernel Modules... [ 9.390707] systemd[1]: Starting Remount Root and Kernel File Systems... Starting Remount Root and Kernel File Systems... [ 9.434778] mali_kbase: loading out-of-tree module taints kernel. [ 9.446773] systemd[1]: Starting udev Coldplug all Devices... [ 9.479991] mali 11840000.gpu: Kernel DDK version r38p0-01eac0 Starting udev Coldplug all Devices... [ 9.499026] mali 11840000.gpu: GPU identified as 0x3 arch 7.0.9 r0p0 status 0 [ 9.539912] systemd[1]: Started RPC Bind. [ 9.546966] mali 11840000.gpu: No priority control manager is configured [ OK ] Started RPC Bind. [ 9.579211] systemd[1]: Mounted Huge Pages File System. [ 9.589959] mali 11840000.gpu: No memory group manager is configured [ OK ] Mounted Huge Pages File System. [ 9.616398] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null) [ 9.625116] systemd[1]: Mounted POSIX Message Queue File System. [ 9.642522] mali 11840000.gpu: Probed as mali0 [ OK ] Mounted POSIX Message Queue File System. [ 9.661274] rgnmm_drv mmngr: assigned reserved memory node linux,multimedia [ 9.669605] systemd[1]: Mounted Kernel Debug File System. [ OK ] Mounted Kernel Debug File System. [ 9.716754] systemd[1]: Started Journal Service. [ OK ] Started Journal Service. [ OK ] Mounted Temporary Directory (/tmp). [ 9.758675] random: systemd-journal: uninitialized urandom read (16 bytes read) [ OK ] Started Create list of sta��… nodes[ 9.774899] audit: type=1701 audit(1600598639.888:2): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=140 comm="udevadm" exe="/bin/udevadm" sig=4 res=1 for the current kernel.
Can you please suggest us how to solve this as this is urgent to do?
Thanks,
Brijesh K
This line:
Memory: 1515216K/1966080K available (10688K kernel code, 1014K rwdata, 3228K rodata, 2048K init, 381K bss, 57648K reserved, 393216K cma-reserved)
does not go well with this statement:
Brijesh said: 512MB DDR4 part is used with CPU
Hi MicBis,
I could not understand what do you want to say.
What actions we have to take here?
The kernel reports it is using 2GB while you have 512MB.
You have to configure the BSP to reflect that.
Thank you so much for your suggestion, we did changes as per that and now board is booting fully.
Thanks again.
We are facing issue of the very much slower booting of the CPU (takes around 60seconds) and too much slower response of the CPU to reach at login prompt as well and after any inputs to CPU it takes too much time for the response.
We did try to reduce reserved area of the Memory please see below DTS changes but still same issue is happening.
memory@48000000 { device_type = "memory"; /* first 2MB is reserved for secure area. and 512 MB RAM */ - reg = <0x0 0x48000000 0x0 0x78000000>; + reg = <0x0 0x40200000 0x0 0x18000000>; };
reserved-memory { --
We also checked memory but still it shows more than 512MB see below.
root@sm2s-rzg2l:~# root@sm2s-rzg2l:~# free -h total used free shared buff/cache available Mem: 732Mi 457Mi 212Mi 9.0Mi 62Mi 206Mi Swap: 0B 0B 0B root@sm2s-rzg2l:~#
One more thing is CPU utilization seems 95% even we are not running any interfaces right now and we are getting some interrupt continuously we do not know what is that interrupt for?
Please see attached full logs till login prompt for your reference and let me know what may actions to take to speed up booting and get fast response from CPU.
rzg2l_512_ram_2mb_res_mem_logs.txt
Thans,
Brijesh said:We did try to reduce reserved area of the Memory please see below DTS changes but still same issue is happening.
Have a look here.
If after boot, the CPU is taking 100% for 10 seconds, then is OK, the issue might be "rngd" (random number generator) process. It is second in you list in your screenshot. It is using the CPU to init the random number poo (entropy)
Hi Chris,
As you mentioned "rngd" process is hardly taking 2% of CPU and it is not continuously running.
We see that there are some of the IRQs are present in the "TOP" command which uses most of the CPU continuously through the boot process
Can you suggest anything from the logs attached earlier?
Find out what the IRQs are by typing: cat /proc/interrupts
Hi @Brijesh,
irq-11c20000 is eth0. Please recheck your ethernet port, cable.
Hi Hienhuynh,
Yes Interrupt was of that only. we did disabled ETH port and now booting fast.
Thank you for supporting us.
Yes we disabled ETH and now booting fast.
Hi MicBis/Chris/Hienhuynh,
As you know that we have successfully booted fully from the SD card after doing all the required memory changes for 512MB and now we are trying to test SCIF boot.
We have followed all instructions mentioned in the below document for the SCIF boot.
SMARC EVK of RZ/G2L, RZ/G2LC, RZ/G2UL, RZ/V2L, and RZ/Five Start-up Guide Rev.1.03 (renesas.com)
Following files we flashed.
bl2_bp-smarc-rzg2l_pmic.srec
fip-smarc-rzg2l_pmic.srec
Flash_Writer_SCIF_RZG2L_SMARC_PMIC_DDR4_2GB_1PCS.mot
Below all steps we followed.
��������������� SCIF Download mode (C) Renesas Electronics Corp. -- Load Program to System RAM --------------- please send ! Flash writer for RZ/G2 Series V1.06 Aug.10,2022 Product Code : RZ/G2L >XLS2 command not found >XLS2 ===== Qspi writing of RZ/G2 Board Command ============= Load Program to Spiflash Writes to any of SPI address. Dialog : AT25SF321B Program Top Address & Qspi Save Address ===== Please Input Program Top Address ============ Please Input : H'11E00 ===== Please Input Qspi Save Address === Please Input : H'00000 Work RAM(H'50000000-H'53FFFFFF) Clear.... please send ! ('.' & CR stop load) SPI Data Clear(H'FF) Check :H'00000000-0000FFFF Erasing..Erase Completed SAVE SPI-FLASH....... ======= Qspi Save Information ================= SpiFlashMemory Stat Address : H'00000000 SpiFlashMemory End Address : H'0000CA80 =========================================================== >XLS2 ===== Qspi writing of RZ/G2 Board Command ============= Load Program to Spiflash Writes to any of SPI address. Dialog : AT25SF321B Program Top Address & Qspi Save Address ===== Please Input Program Top Address ============ Please Input : H'00000 ===== Please Input Qspi Save Address === Please Input : H'1D200 Work RAM(H'50000000-H'53FFFFFF) Clear.... please send ! ('.' & CR stop load) SPI Data Clear(H'FF) Check :H'00010000-000DFFFF Erasing..............Erase Completed SAVE SPI-FLASH....... ======= Qspi Save Information ================= SpiFlashMemory Stat Address : H'0001D200 SpiFlashMemory End Address : H'000D3EEF ===========================================================
Then after we set bootmode to QSPI bootmode but we are getting below error logs and not getting u-boot loaded from QSPI flash.
NOTICE: BL2: v2.6(release):7e8696ff4-dirty NOTICE: BL2: Built : 17:39:36, Sep 15 2023 ERROR: BL2: Failed to load image id 3 (-2) �NOTICE: BL2: v2.6(release):7e8696ff4-dirty NOTICE: BL2: Built : 17:39:36, Sep 15 2023 ERROR: BL2: Failed to load image id 3 (-2)
Can you please help me here why it is not moving ahead.
Please note that we are using same bootloader images in SCIF boot mode which we already used for SD card boot.
Hello Everyone,
I am waiting for your response please help me here.
We have already added support of our QSPI flash and followed suggested configurations as well but still having same issue so what can be next?
Debug.
Increase TF-A log level, add printfs or use openocd.
Hello Brijesh,Is your issue resolved? If so, then would you like to verify the suggested answer? It is very useful for our community because it may help other users who have a similar issue.Thank you for your time.Kind Regards.