On Fri, May 13, 2022 at 1:18 PM Jan Kiszka <[email protected]> wrote:
>
> On 13.05.22 13:32, Lad, Prabhakar wrote:
> >> Could it be that arm_dcaches_flush was a red herring? Maybe we are
> >> actually crashing on hvc in arch_entry, and that because of Linux not
> >> starting in HVC mode, thus no hypervisor take-over stub being installed.
> >>
> >> Could you share the boot log of the kernel?
> >>
> > Attached is the complete log.
> >
>
> "CPU: All CPU(s) started at EL1"
>
> As suspected. Must be EL2 or HYP. Reconfigure your firmware to enable that.
>
Argh my bad, I've now enabled it to start in EL2 mode (attached are
the complete logs). Now I see the below panic,

[   33.920507] jailhouse: loading out-of-tree module taints kernel.
Reading configuration set:
  Root cell:     Renesas RZ/V2L SMARC (renesas-r9a07g054l2.cell)
Overlapping memory regions inside cell: None
Overlapping memory regions with hypervisor: None
Missing resource interceptions for architecture arm64: None
[   34.741847] Bad mode in Synchronous Abort handler detected on CPU0,
code 0x5a000000 -- HVC (AArch64)
[   34.741850] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G           O
  5.10.112-cip6+ #13
[   34.741853] Hardware name: Renesas SMARC EVK based on r9a07g054l2 (DT)
[   34.741855] pstate: 20400089 (nzCv daIf +PAN -UAO -TCO BTYPE=--)
[   34.741857] pc : 0xffff800013004868
[   34.741859] lr : 0xffff80001300484c
[   34.741860] sp : ffff8000118cbed0
[   34.741862] x29: ffff8000118cbed0 x28: ffff800011632f80
[   34.741869] x27: ffff800011632f80 x26: ffff8000118cc000
[   34.741873] x25: ffff8000118c8000 x24: ffff80001162a344
[   34.741877] x23: 0000000000000000 x22: 0000000000000000
[   34.741881] x21: ffff800013000000 x20: ffff800013004800
[   34.741885] x19: ffff800008c17000 x18: 0000000000000001
[   34.741889] x17: ffff800008c11828 x16: 0000000000000000
[   34.741893] x15: 0000ffffc004b800 x14: 000000001004b800
[   34.741897] x13: 0000ffffc0200000 x12: 00000000b6f00000
[   34.741900] x11: ffff0000f6d00000 x10: ffff8000118cbed0
[   34.741904] x9 : ffff8000118cbed0 x8 : 3062333564203a68
[   34.741908] x7 : 0000000000000000 x6 : ffff00007fc6caa0
[   34.741912] x5 : ffff00007fc6caa0 x4 : 000000000000003f
[   34.741916] x3 : 0000000000000040 x2 : 0000000000000002
[   34.741920] x1 : 00000000b6f05000 x0 : 0000000000000000
[   34.741924] Kernel panic - not syncing: bad mode
[   34.741927] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G           O
  5.10.112-cip6+ #13
[   34.741929] Hardware name: Renesas SMARC EVK based on r9a07g054l2 (DT)
[   34.741930] Call trace:
[   34.741932]  dump_backtrace+0x0/0x1c0
[   34.741934]  show_stack+0x18/0x68
[   34.741935]  dump_stack+0xd8/0x134
[   34.741937]  panic+0x180/0x398
[   34.741939]  bad_mode+0x8c/0x90
[   34.741940]  el1_inv+0x3c/0x60
[   34.741942]  el1_sync_handler+0xac/0xe0
[   34.741943]  el1_sync+0x84/0x140
[   34.741945]  0xffff800013004868
[   34.741947]  flush_smp_call_function_queue+0xf8/0x268
[   34.741949]  generic_smp_call_function_single_interrupt+0x14/0x20
[   34.741950]  ipi_handler+0x8c/0x158
[   34.741952]  handle_percpu_devid_fasteoi_ipi+0x74/0x88
[   34.741953]  generic_handle_irq+0x30/0x48
[   34.741955]  __handle_domain_irq+0x60/0xb8
[   34.741957]  gic_handle_irq+0x58/0x128
[   34.741958]  el1_irq+0xc8/0x180
[   34.741960]  arch_cpu_idle+0x18/0x28
[   34.741961]  default_idle_call+0x24/0x5c
[   34.741963]  do_idle+0x1ec/0x288
[   34.741964]  cpu_startup_entry+0x24/0x68
[   34.741966]  rest_init+0xd8/0xe8
[   34.741967]  arch_call_rest_init+0x10/0x1c
[   34.741969]  start_kernel+0x4b0/0x4e8
[   34.981086] SMP: stopping secondary CPUs
[   34.981088] Kernel Offset: disabled
[   34.981090] CPU features: 0x0040026,2a00aa38
[   34.981091] Memory Limit: none
[   34.981094] Bad mode in Synchronous Abort handler detected on CPU1,
code 0x5a000000 -- HVC (AArch64)
[   34.981097] CPU: 1 PID: 232 Comm: jailhouse Tainted: G           O
    5.10.112-cip6+ #13
[   34.981099] Hardware name: Renesas SMARC EVK based on r9a07g054l2 (DT)
[   34.981101] pstate: 20400089 (nzCv daIf +PAN -UAO -TCO BTYPE=--)
[   34.981103] pc : 0xffff800013004868
[   34.981104] lr : 0xffff80001300484c
[   34.981106] sp : ffff800011f93b30
[   34.981107] x29: ffff800011f93b30 x28: 0000000000000000
[   34.981111] x27: ffff800013000000 x26: ffff800008c17000
[   34.981115] x25: ffff800008c17000 x24: 0000000000000002
[   34.981119] x23: 0000000000000870 x22: 0000000000000001
[   34.981123] x21: ffff800013000000 x20: ffff800013004800
[   34.981127] x19: ffff800008c17000 x18: 0000000000000001
[   34.981131] x17: ffff800008c11828 x16: 0000000000000001
[   34.981135] x15: 0000ffffc004b800 x14: 000000001004b800
[   34.981139] x13: 0000ffffc0200000 x12: 00000000b6f00000
[   34.981143] x11: ffff0000f6d00000 x10: ffff8000116996c8
[   34.981147] x9 : ffff800011699720 x8 : 0000000000017fe8
[   34.981151] x7 : 0000000000000000 x6 : ffff00007fc82aa0
[   34.981155] x5 : ffff00007fc82aa0 x4 : 000000000000003f
[   34.981159] x3 : 0000000000000040 x2 : 0000000000000002
[   34.981163] x1 : 00000000b6f05000 x0 : 0000000000000000

Cheers,
Prabhakar

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/CA%2BV-a8ufXHeaMTwmMmtYdVijY_OVwU_%2BeTtSbr%3DRx%3DoiQa%3D9tg%40mail.gmail.com.
NOTICE:  BL2: v2.6(release):9cbfb52b4-dirty
NOTICE:  BL2: Built : 16:04:11, May 13 2022
NOTICE:  BL2: Booting BL31
NOTICE:  BL31: v2.6(release):9cbfb52b4-dirty
NOTICE:  BL31: Built : 16:04:12, May 13 2022


U-Boot 2021.10-g90edad6e00 (May 13 2022 - 16:04:19 +0100)

CPU:   Renesas Electronics K rev 16.15
Model: smarc-rzv2l
DRAM:  1.9 GiB
MMC:   sd@11c00000: 0, sd@11c10000: 1
Loading Environment from MMC... OK
In:    serial@1004b800
Out:   serial@1004b800
Err:   serial@1004b800
Net:   
Error: ethernet@11c20000 address not set.
No ethernet found.

Hit any key to stop autoboot:  0 
9326860 bytes read in 581 ms (15.3 MiB/s)
23907 bytes read in 4 ms (5.7 MiB/s)
Uncompressed size: 25408000 = 0x183B200
Moving Image from 0x48080000 to 0x48200000, end=49ac0000
## Flattened Device Tree blob at 48000000
   Booting using the fdt blob at 0x48000000
   Loading Device Tree to 0000000057ff7000, end 0000000057fffd62 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x412fd050]
[    0.000000] Linux version 5.10.112-cip6+ (prasmi@prasmi) 
(aarch64-linux-gnu-gcc (Linaro GCC 7.5-2019.12) 7.5.0, GNU ld 
(Linaro_Binutils-2012
[    0.000000] Machine model: Renesas SMARC EVK based on r9a07g054l2
[    0.000000] efi: UEFI not found.
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 
0x0000000048000000-0x00000000bfffffff]
[    0.000000] NUMA: NODE_DATA [mem 0xbfc9eb00-0xbfca0fff]
[    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-0x00000000a7efffff]
[    0.000000]   node   0: [mem 0x00000000a7f00000-0x00000000b7efffff]
[    0.000000]   node   0: [mem 0x00000000b7f00000-0x00000000bfffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000048000000-0x00000000bfffffff]
[    0.000000] cma: Reserved 16 MiB at 0x00000000bc000000
[    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 22 pages/cpu s50456 r8192 d31464 u90112
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: GIC system register CPU interface
[    0.000000] CPU features: detected: Virtualization Host Extensions
[    0.000000] CPU features: detected: ARM errata 1165522, 1319367, or 1530923
[    0.000000] alternatives: patching kernel code
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 483840
[    0.000000] Policy zone: DMA
[    0.000000] Kernel command line: root=/dev/sda1 rw rootwait rootfstype=ext4 
ip=off
[    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: 1622696K/1966080K available (12288K kernel code, 2156K 
rwdata, 5708K rodata, 4544K init, 483K bss, 327000K reserved, 16)
[    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=256 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: GIC: Using split EOI/Deactivate mode
[    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] random: get_random_bytes called from start_kernel+0x31c/0x4e8 
with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    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.000175] Console: colour dummy device 80x25
[    0.000580] printk: console [tty0] enabled
[    0.000677] Calibrating delay loop (skipped), value calculated using timer 
frequency.. 48.00 BogoMIPS (lpj=96000)
[    0.000704] pid_max: default: 32768 minimum: 301
[    0.000787] LSM: Security Framework initializing
[    0.000859] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, 
linear)
[    0.000883] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 
bytes, linear)
[    0.002535] rcu: Hierarchical SRCU implementation.
[    0.003322] Detected Renesas RZ/V2L r9a07g054 
[    0.003789] EFI services will not be available.
[    0.004127] smp: Bringing up secondary CPUs ...
[    0.004624] Detected VIPT I-cache on CPU1
[    0.004667] GICv3: CPU1: found redistributor 100 region 0:0x0000000011960000
[    0.004729] CPU1: Booted secondary processor 0x0000000100 [0x412fd050]
[    0.004855] smp: Brought up 1 node, 2 CPUs
[    0.004904] SMP: Total of 2 processors activated.
[    0.004917] CPU features: detected: Privileged Access Never
[    0.004927] CPU features: detected: LSE atomic instructions
[    0.004938] CPU features: detected: User Access Override
[    0.004949] CPU features: detected: 32-bit EL0 Support
[    0.004960] CPU features: detected: Common not Private translations
[    0.004971] CPU features: detected: RAS Extension Support
[    0.004982] CPU features: detected: Data cache clean to the PoU not required 
for I/D coherence
[    0.004996] CPU features: detected: CRC32 instructions
[    0.005006] CPU features: detected: Speculative Store Bypassing Safe (SSBS)
[    0.020641] CPU: All CPU(s) started at EL2
[    0.023003] devtmpfs: initialized
[    0.027502] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, 
max_idle_ns: 7645041785100000 ns
[    0.027556] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.028295] pinctrl core: initialized pinctrl subsystem
[    0.029416] DMI not present or invalid.
[    0.030023] NET: Registered protocol family 16
[    0.031644] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
[    0.031802] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic 
allocations
[    0.031966] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic 
allocations
[    0.032074] audit: initializing netlink subsys (disabled)
[    0.032374] audit: type=2000 audit(0.032:1): state=initialized 
audit_enabled=0 res=1
[    0.033341] thermal_sys: Registered thermal governor 'step_wise'
[    0.033480] cpuidle: using governor menu
[    0.033683] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.033776] ASID allocator initialised with 65536 entries
[    0.034662] Serial: AMBA PL011 UART driver
[    0.060055] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[    0.060092] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[    0.060105] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.060118] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[    0.061446] cryptd: max_cpu_qlen set to 1000
[    0.063772] ACPI: Interpreter disabled.
[    0.066173] iommu: Default domain type: Translated 
[    0.066422] vgaarb: loaded
[    0.066751] SCSI subsystem initialized
[    0.067251] usbcore: registered new interface driver usbfs
[    0.067316] usbcore: registered new interface driver hub
[    0.067359] usbcore: registered new device driver usb
[    0.067990] pps_core: LinuxPPS API ver. 1 registered
[    0.068004] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo 
Giometti <[email protected]>
[    0.068029] PTP clock support registered
[    0.069406] clocksource: Switched to clocksource arch_sys_counter
[    0.069682] VFS: Disk quotas dquot_6.6.0
[    0.069757] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.069965] pnp: PnP ACPI: disabled
[    0.076134] NET: Registered protocol family 2
[    0.076373] IP idents hash table entries: 32768 (order: 6, 262144 bytes, 
linear)
[    0.077665] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 
16384 bytes, linear)
[    0.077782] TCP established hash table entries: 16384 (order: 5, 131072 
bytes, linear)
[    0.077909] TCP bind hash table entries: 16384 (order: 6, 262144 bytes, 
linear)
[    0.078193] TCP: Hash tables configured (established 16384 bind 16384)
[    0.078378] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.078426] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.078596] NET: Registered protocol family 1
[    0.079172] RPC: Registered named UNIX socket transport module.
[    0.079203] RPC: Registered udp transport module.
[    0.079214] RPC: Registered tcp transport module.
[    0.079225] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.079244] PCI: CLS 0 bytes, default 64
[    0.081571] Initialise system trusted keyrings
[    0.081849] workingset: timestamp_bits=42 max_order=19 bucket_order=0
[    0.087890] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.088744] NFS: Registering the id_resolver key type
[    0.088796] Key type id_resolver registered
[    0.088807] Key type id_legacy registered
[    0.088904] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.088920] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver 
Registering...
[    0.089155] 9p: Installing v9fs 9p2000 file system support
[    0.125026] Key type asymmetric registered
[    0.125062] Asymmetric key parser 'x509' registered
[    0.125129] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 
247)
[    0.125148] io scheduler mq-deadline registered
[    0.125158] io scheduler kyber registered
[    0.146667] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.148986] SuperH (H)SCI(F) driver initialized
[    0.149629] msm_serial: driver initialized
[    0.158360] loop: module loaded
[    0.163682] tun: Universal TUN/TAP device driver, 1.6
[    0.164973] e1000e: Intel(R) PRO/1000 Network Driver
[    0.165002] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    0.165077] igb: Intel(R) Gigabit Ethernet Network Driver
[    0.165093] igb: Copyright (c) 2007-2014 Intel Corporation.
[    0.165149] igbvf: Intel(R) Gigabit Virtual Function Network Driver
[    0.165163] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[    0.165617] sky2: driver version 1.30
[    0.167465] VFIO - User Level meta-driver version: 0.3
[    0.169588] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.169624] ehci-pci: EHCI PCI platform driver
[    0.169665] ehci-platform: EHCI generic platform driver
[    0.170343] ehci-orion: EHCI orion driver
[    0.170562] ehci-exynos: EHCI Exynos driver
[    0.170696] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.170747] ohci-pci: OHCI PCI platform driver
[    0.170818] ohci-platform: OHCI generic platform driver
[    0.171395] ohci-exynos: OHCI Exynos driver
[    0.172165] usbcore: registered new interface driver usb-storage
[    0.174777] i2c /dev entries driver
[    0.178830] sdhci: Secure Digital Host Controller Interface driver
[    0.178860] sdhci: Copyright(c) Pierre Ossman
[    0.179348] Synopsys Designware Multimedia Card Interface Driver
[    0.180435] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.182067] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[    0.182754] usbcore: registered new interface driver usbhid
[    0.182776] usbhid: USB HID core driver
[    0.185266] NET: Registered protocol family 10
[    0.186320] Segment Routing with IPv6
[    0.186406] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    0.186944] NET: Registered protocol family 17
[    0.187099] 9pnet: Installing 9P2000 support
[    0.187174] Key type dns_resolver registered
[    0.187621] registered taskstats version 1
[    0.187644] Loading compiled-in X.509 certificates
[    0.195400] gpio-153 (gpio_sd0_pwr_en): hogged as output/high
[    0.195455] gpio-449 (sd0_dev_sel): hogged as output/high
[    0.195485] gpio-458 (can0_stb): hogged as output/low
[    0.195509] gpio-459 (can1_stb): hogged as output/low
[    0.195543] gpio-434 (sd1_pwr_en): hogged as output/high
[    0.196286] pinctrl-rzg2l 11030000.pinctrl: pinctrl-rzg2l support registered
[    0.201093] 1004b800.serial: ttySC0 at MMIO 0x1004b800 (irq = 22, base_baud 
= 0) is a scif
[    1.260571] printk: console [ttySC0] enabled
[    1.266614] 1004c000.serial: ttySC1 at MMIO 0x1004c000 (irq = 27, base_baud 
= 0) is a scif
[    1.276763] renesas_spi 1004b000.spi: dma_request_slave_channel_compat failed
[    1.283974] renesas_spi 1004b000.spi: DMA not available, using PIO
[    1.290543] renesas_spi 1004b000.spi: probed
[    1.296431] ravb 11c20000.ethernet: no valid MAC address supplied, using a 
random one
[    1.307029] ravb 11c20000.ethernet eth0: Base address at 0x11c20000, 
da:e9:65:c6:a4:fb, IRQ 85.
[    1.317376] ravb 11c30000.ethernet: no valid MAC address supplied, using a 
random one
[    1.327781] ravb 11c30000.ethernet eth1: Base address at 0x11c30000, 
52:cf:0e:18:28:99, IRQ 88.
[    1.365433] ehci-platform 11c50100.usb: EHCI Host Controller
[    1.371141] ehci-platform 11c50100.usb: new USB bus registered, assigned bus 
number 1
[    1.379087] ehci-platform 11c50100.usb: irq 93, io mem 0x11c50100
[    1.397408] ehci-platform 11c50100.usb: USB 2.0 started, EHCI 1.10
[    1.404288] hub 1-0:1.0: USB hub found
[    1.408078] hub 1-0:1.0: 1 port detected
[    1.413754] ehci-platform 11c70100.usb: EHCI Host Controller
[    1.419453] ehci-platform 11c70100.usb: new USB bus registered, assigned bus 
number 2
[    1.427368] ehci-platform 11c70100.usb: irq 94, io mem 0x11c70100
[    1.449427] ehci-platform 11c70100.usb: USB 2.0 started, EHCI 1.10
[    1.456239] hub 2-0:1.0: USB hub found
[    1.460024] hub 2-0:1.0: 1 port detected
[    1.465605] ohci-platform 11c50000.usb: Generic Platform OHCI controller
[    1.472336] ohci-platform 11c50000.usb: new USB bus registered, assigned bus 
number 3
[    1.480318] ohci-platform 11c50000.usb: irq 91, io mem 0x11c50000
[    1.576033] hub 3-0:1.0: USB hub found
[    1.579824] hub 3-0:1.0: 1 port detected
[    1.585385] ohci-platform 11c70000.usb: Generic Platform OHCI controller
[    1.592151] ohci-platform 11c70000.usb: new USB bus registered, assigned bus 
number 4
[    1.600118] ohci-platform 11c70000.usb: irq 92, io mem 0x11c70000
[    1.696057] hub 4-0:1.0: USB hub found
[    1.699857] hub 4-0:1.0: 1 port detected
[    1.706265] i2c-riic 10058000.i2c: registered with 100000Hz bus speed
[    1.714900] i2c-riic 10058400.i2c: registered with 100000Hz bus speed
[    1.723659] i2c-riic 10058c00.i2c: registered with 400000Hz bus speed
[    1.783085] renesas_sdhi_internal_dmac 11c00000.mmc: mmc0 base at 
0x0000000011c00000, max clock rate 133 MHz
[    1.785513] renesas_sdhi_internal_dmac 11c10000.mmc: mmc1 base at 
0x0000000011c10000, max clock rate 133 MHz
[    1.803397] Waiting for root device /dev/sda1...
[    1.903250] mmc0: new HS200 MMC card at address 0001
[    1.908904] mmcblk0: mmc0:0001 S0J58X 59.3 GiB 
[    1.913653] mmcblk0boot0: mmc0:0001 S0J58X partition 1 31.5 MiB
[    1.919722] mmcblk0boot1: mmc0:0001 S0J58X partition 2 31.5 MiB
[    1.925872] mmcblk0rpmb: mmc0:0001 S0J58X partition 3 4.00 MiB, chardev 
(241:0)
[    1.934377]  mmcblk0: p1
[    2.183061] mmc1: new ultra high speed SDR104 SDHC card at address aaaa
[    2.190343] mmcblk1: mmc1:aaaa SC16G 14.8 GiB 
[    2.200223]  mmcblk1: p1 p2
[    2.293421] usb 2-1: new high-speed USB device number 2 using ehci-platform
[    2.455165] usb-storage 2-1:1.0: USB Mass Storage device detected
[    2.461819] scsi host0: usb-storage 2-1:1.0
[    3.486429] scsi 0:0:0:0: Direct-Access     General  USB Flash Disk   1.00 
PQ: 0 ANSI: 2
[    3.495711] sd 0:0:0:0: [sda] 7831552 512-byte logical blocks: (4.01 GB/3.73 
GiB)
[    3.503754] sd 0:0:0:0: [sda] Write Protect is off
[    3.509111] sd 0:0:0:0: [sda] No Caching mode page found
[    3.514415] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    3.524198]  sda: sda1 sda2
[    3.530387] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    3.558978] random: fast init done
[    3.956609] EXT4-fs (sda1): recovery complete
[    3.963313] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: 
(null)
[    3.971053] VFS: Mounted root (ext4 filesystem) on device 8:1.
[    3.981512] devtmpfs: mounted
[    3.988838] Freeing unused kernel memory: 4544K
[    3.993563] Run /sbin/init as init process
[    4.361839] systemd[1]: System time before build time, advancing clock.
[    4.415697] systemd[1]: systemd 244.5+ running in system mode. (+PAM -AUDIT 
-SELINUX +IMA -APPARMOR -SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -)
[    4.437821] systemd[1]: Detected architecture arm64.

Welcome to Poky (Yocto Project Reference Distro) 3.1.5 (dunfell)!

[    4.478672] systemd[1]: Set hostname to <smarc-rzg2l>.
[    4.944300] random: systemd: uninitialized urandom read (16 bytes read)
[    4.951253] systemd[1]: system-getty.slice: unit configures an IP firewall, 
but the local system does not support BPF/cgroup firewalling.
[    4.963607] systemd[1]: (This warning is only shown for the first unit using 
IP firewalling.)
[    4.975446] systemd[1]: Created slice system-getty.slice.
[  OK  ] Created slice system-getty.slice.
[    4.997625] random: systemd: uninitialized urandom read (16 bytes read)
[    5.005811] systemd[1]: Created slice system-serial\x2dgetty.slice.
[  OK  ] Created slice system-serial\x2dgetty.slice.
[    5.029613] random: systemd: uninitialized urandom read (16 bytes read)
[    5.037558] systemd[1]: Created slice User and Session Slice.
[  OK  ] Created slice User and Session Slice.
[    5.058017] systemd[1]: Started Dispatch Password Requests to Console 
Directory Watch.
[  OK  ] Started Dispatch Password …ts to Console Directory Watch.
[    5.081919] systemd[1]: Started Forward Password Requests to Wall Directory 
Watch.
[  OK  ] Started Forward Password R…uests to Wall Directory Watch.
[    5.105765] systemd[1]: Reached target Paths.
[  OK  ] Reached target Paths.
[    5.125689] systemd[1]: Reached target Remote File Systems.
[  OK  ] Reached target Remote File Systems.
[    5.145665] systemd[1]: Reached target Slices.
[  OK  ] Reached target Slices.
[    5.165673] systemd[1]: Reached target Swap.
[  OK  ] Reached target Swap.
[    5.199125] systemd[1]: Listening on RPCbind Server Activation Socket.
[  OK  ] Listening on RPCbind Server Activation Socket.
[    5.221714] systemd[1]: Reached target RPC Port Mapper.
[  OK  ] Reached target RPC Port Mapper.
[    5.244018] systemd[1]: Listening on Syslog Socket.
[  OK  ] Listening on Syslog Socket.
[    5.262068] systemd[1]: Listening on initctl Compatibility Named Pipe.
[  OK  ] Listening on initctl Compatibility Named Pipe.
[    5.286473] systemd[1]: Listening on Journal Audit Socket.
[  OK  ] Listening on Journal Audit Socket.
[    5.306184] systemd[1]: Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket (/dev/log).
[    5.330339] systemd[1]: Listening on Journal Socket.
[  OK  ] Listening on Journal Socket.
[    5.350494] systemd[1]: Listening on Network Service Netlink Socket.
[  OK  ] Listening on Network Service Netlink Socket.
[    5.374323] systemd[1]: Listening on udev Control Socket.
[  OK  ] Listening on udev Control Socket.
[    5.394057] systemd[1]: Listening on udev Kernel Socket.
[  OK  ] Listening on udev Kernel Socket.
[    5.418622] systemd[1]: Mounting Huge Pages File System...
         Mounting Huge Pages File System...
[    5.442254] systemd[1]: Mounting POSIX Message Queue File System...
         Mounting POSIX Message Queue File System...
[    5.470200] systemd[1]: Mounting Kernel Debug File System...
         Mounting Kernel Debug File System...
[    5.495491] systemd[1]: Mounting Temporary Directory (/tmp)...
         Mounting Temporary Directory (/tmp)...
[    5.518632] systemd[1]: Condition check resulted in Create list of static 
device nodes for the current kernel being skipped.
[    5.534397] systemd[1]: Starting Start psplash boot splash screen...
         Starting Start psplash boot splash screen...
[    5.567662] systemd[1]: Started Hardware RNG Entropy Gatherer Daemon.
[  OK  ] Started Hardware RNG Entropy Gatherer Daemon.
[    5.595431] systemd[1]: Starting RPC Bind...
         Starting RPC Bind...
[    5.613816] systemd[1]: Condition check resulted in File System Check on 
Root Device being skipped.
[    5.629786] systemd[1]: Starting Journal Service...
         Starting Journal Service...
[    5.674435] systemd[1]: Starting Load Kernel Modules...
         Starting Load Kernel Modules...
[    5.714639] systemd[1]: Starting Remount Root and Kernel File Systems...
         Starting Remount Root and Kernel File Systems...
[    5.754425] systemd[1]: Starting udev Coldplug all Devices...
         Starting udev Coldplug all Devices...
[    5.801214] systemd[1]: Started RPC Bind.
[  OK  ] Started RPC Bind.
[    5.820646] EXT4-fs (sda1): re-mounted. Opts: (null)
[    5.833050] systemd[1]: Mounted Huge Pages File System.
[  OK  ] Mounted Huge Pages File System.
[    5.852417] systemd[1]: Mounted POSIX Message Queue File System.
[  OK  ] Mounted POSIX Message Queue File System.
[    5.874693] systemd[1]: Started Journal Service.
[  OK  ] Started Journal Service.
[  OK  ] Mounted Kernel Debug File System.
[  OK  ] Mounted Temporary Directory (/tmp).
[FAILED] Failed to start Start psplash boot splash screen.
See 'systemctl status psplash-start.service' for details.
[DEPEND] Dependency failed for Star…progress communication helper.
[FAILED] Failed to start Load Kernel Modules.
See 'systemctl status systemd-modules-load.service' for details.
[  OK  ] Started Remount Root and Kernel File Systems.
         Mounting Kernel Configuration File System...
         Starting Flush Journal to Persistent Storage...
         Starting Apply Kernel Variables...
[    6.132928] systemd-journald[139]: Received client request to flush runtime 
journal.
         Starting Create Static Device Nodes in /dev...
[  OK  ] Mounted Kernel Configuration File System.
[  OK  ] Started Apply Kernel Variables.
[  OK  ] Started Flush Journal to Persistent Storage.
[  OK  ] Started Create Static Device Nodes in /dev.
[  OK  ] Reached target Local File Systems (Pre).
         Mounting /var/volatile...
         Starting udev Kernel Device Manager...
[  OK  ] Mounted /var/volatile.
         Starting Load/Save Random Seed...
[  OK  ] Reached target Local File Systems.
         Starting Create Volatile Files and Directories...
[  OK  ] Started Create Volatile Files and Directories.
         Starting Network Time Synchronization...
         Starting Update UTMP about System Boot/Shutdown...
[  OK  ] Started udev Kernel Device Manager.
[  OK  ] Started udev Coldplug all Devices.
         Starting Network Service...
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Started Network Time Synchronization.
[  OK  ] Started Network Service.
[  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  ] Reached target Timers.
[  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[  OK  ] Listening on D-Bus System Message Bus Socket.
         Starting sshd.socket.
         Starting Network Name Resolution...
[  OK  ] Listening on sshd.socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
[  OK  ] Started Kernel Logging Service.
[  OK  ] Started System Logging Service.
[  OK  ] Started D-Bus System Message Bus.
         Starting rng-tools.service...
         Starting Login Service...
[  OK  ] Started rng-tools.service.
         Starting weston.service...
[    7.509603] random: crng init done
[    7.513035] random: 7 urandom warning(s) missed due to ratelimiting
[  OK  ] Started Load/Save Random Seed.
[  OK  ] Started Network Name Resolution.
[  OK  ] Reached target Network.
[  OK  ] Reached target Host and Network Name Lookups.
         Starting Avahi mDNS/DNS-SD Stack...
         Starting Permit User Sessions...
[  OK  ] Started weston.service.
[  OK  ] Started Permit User Sessions.
[  OK  ] Started Avahi mDNS/DNS-SD Stack.
[  OK  ] Started Getty on tty1.
[  OK  ] Started Serial Getty on ttySC0.
[  OK  ] Reached target Login Prompts.
[  OK  ] Started Login Service.
[  OK  ] Reached target Multi-User System.
         Starting Update UTMP about System Runlevel Changes...
[  OK  ] Started Update UTMP about System Runlevel Changes.
[   10.461260] Microchip KSZ9131 Gigabit PHY 11c20000.ethernet-ffffffff:07: 
attached PHY driver [Microchip KSZ9131 Gigabit PHY] (mii_bus:phy_a)
[   10.561464] Microchip KSZ9131 Gigabit PHY 11c30000.ethernet-ffffffff:07: 
attached PHY driver [Microchip KSZ9131 Gigabit PHY] (mii_bus:phy_a)

Poky (Yocto Project Reference Distro) 3.1.5 smarc-rzg2l ttySC0

BSP: RZG2L/RZG2L-SMARC-EVK/1.1
LSI: RZG2L
Version: 1.1
smarc-rzg2l login: 
smarc-rzg2l login: root
[   21.890101] audit: type=1006 audit(1600598655.528:2): pid=203 uid=0 
old-auid=4294967295 auid=0 tty=(none) old-ses=4294967295 ses=1 res=1

^[[37;143Rroot@smarc-rzg2l:~# ;143R
-sh: syntax error near unexpected token `;'
root@smarc-rzg2l:~# 
root@smarc-rzg2l:~# 
root@smarc-rzg2l:~# ls
cpy.sh        hyp.sh  jailhouse.ko  renesas-r9a07g054l2.cell
gpio_keys.ko  instal  lava-testing
root@smarc-rzg2l:~# 
root@smarc-rzg2l:~# 
root@smarc-rzg2l:~# ./cpy.sh 
fsck from util-linux 2.35.1
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
/dev/mmcblk1p2: 11 files, 20774/38357 clusters
[   26.408416] FAT-fs (mmcblk1p2): Volume was not properly unmounted. Some data 
may be corrupt. Please run fsck.
root@smarc-rzg2l:~# 
root@smarc-rzg2l:~# 
root@smarc-rzg2l:~# uname -ra
Linux smarc-rzg2l 5.10.112-cip6+ #13 SMP PREEMPT Fri May 13 07:40:34 BST 2022 
aarch64 GNU/Linux
root@smarc-rzg2l:~# 
root@smarc-rzg2l:~# 
root@smarc-rzg2l:~# ./cpy.sh 
root@smarc-rzg2l:~# ./hyp.sh 
[   33.920507] jailhouse: loading out-of-tree module taints kernel.
Reading configuration set:
  Root cell:     Renesas RZ/V2L SMARC (renesas-r9a07g054l2.cell)
Overlapping memory regions inside cell: None
Overlapping memory regions with hypervisor: None
Missing resource interceptions for architecture arm64: None
[   34.741633] obcode @arm_dcaches_flush: d53b0024
[   34.741638] obcode @arm_dcaches_flush: d53b0024
[   34.741847] Bad mode in Synchronous Abort handler detected on CPU0, code 
0x5a000000 -- HVC (AArch64)
[   34.741850] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G           O      
5.10.112-cip6+ #13
[   34.741853] Hardware name: Renesas SMARC EVK based on r9a07g054l2 (DT)
[   34.741855] pstate: 20400089 (nzCv daIf +PAN -UAO -TCO BTYPE=--)
[   34.741857] pc : 0xffff800013004868
[   34.741859] lr : 0xffff80001300484c
[   34.741860] sp : ffff8000118cbed0
[   34.741862] x29: ffff8000118cbed0 x28: ffff800011632f80 
[   34.741869] x27: ffff800011632f80 x26: ffff8000118cc000 
[   34.741873] x25: ffff8000118c8000 x24: ffff80001162a344 
[   34.741877] x23: 0000000000000000 x22: 0000000000000000 
[   34.741881] x21: ffff800013000000 x20: ffff800013004800 
[   34.741885] x19: ffff800008c17000 x18: 0000000000000001 
[   34.741889] x17: ffff800008c11828 x16: 0000000000000000 
[   34.741893] x15: 0000ffffc004b800 x14: 000000001004b800 
[   34.741897] x13: 0000ffffc0200000 x12: 00000000b6f00000 
[   34.741900] x11: ffff0000f6d00000 x10: ffff8000118cbed0 
[   34.741904] x9 : ffff8000118cbed0 x8 : 3062333564203a68 
[   34.741908] x7 : 0000000000000000 x6 : ffff00007fc6caa0 
[   34.741912] x5 : ffff00007fc6caa0 x4 : 000000000000003f 
[   34.741916] x3 : 0000000000000040 x2 : 0000000000000002 
[   34.741920] x1 : 00000000b6f05000 x0 : 0000000000000000 
[   34.741924] Kernel panic - not syncing: bad mode
[   34.741927] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G           O      
5.10.112-cip6+ #13
[   34.741929] Hardware name: Renesas SMARC EVK based on r9a07g054l2 (DT)
[   34.741930] Call trace:
[   34.741932]  dump_backtrace+0x0/0x1c0
[   34.741934]  show_stack+0x18/0x68
[   34.741935]  dump_stack+0xd8/0x134
[   34.741937]  panic+0x180/0x398
[   34.741939]  bad_mode+0x8c/0x90
[   34.741940]  el1_inv+0x3c/0x60
[   34.741942]  el1_sync_handler+0xac/0xe0
[   34.741943]  el1_sync+0x84/0x140
[   34.741945]  0xffff800013004868
[   34.741947]  flush_smp_call_function_queue+0xf8/0x268
[   34.741949]  generic_smp_call_function_single_interrupt+0x14/0x20
[   34.741950]  ipi_handler+0x8c/0x158
[   34.741952]  handle_percpu_devid_fasteoi_ipi+0x74/0x88
[   34.741953]  generic_handle_irq+0x30/0x48
[   34.741955]  __handle_domain_irq+0x60/0xb8
[   34.741957]  gic_handle_irq+0x58/0x128
[   34.741958]  el1_irq+0xc8/0x180
[   34.741960]  arch_cpu_idle+0x18/0x28
[   34.741961]  default_idle_call+0x24/0x5c
[   34.741963]  do_idle+0x1ec/0x288
[   34.741964]  cpu_startup_entry+0x24/0x68
[   34.741966]  rest_init+0xd8/0xe8
[   34.741967]  arch_call_rest_init+0x10/0x1c
[   34.741969]  start_kernel+0x4b0/0x4e8
[   34.981086] SMP: stopping secondary CPUs
[   34.981088] Kernel Offset: disabled
[   34.981090] CPU features: 0x0040026,2a00aa38
[   34.981091] Memory Limit: none
[   34.981094] Bad mode in Synchronous Abort handler detected on CPU1, code 
0x5a000000 -- HVC (AArch64)
[   34.981097] CPU: 1 PID: 232 Comm: jailhouse Tainted: G           O      
5.10.112-cip6+ #13
[   34.981099] Hardware name: Renesas SMARC EVK based on r9a07g054l2 (DT)
[   34.981101] pstate: 20400089 (nzCv daIf +PAN -UAO -TCO BTYPE=--)
[   34.981103] pc : 0xffff800013004868
[   34.981104] lr : 0xffff80001300484c
[   34.981106] sp : ffff800011f93b30
[   34.981107] x29: ffff800011f93b30 x28: 0000000000000000 
[   34.981111] x27: ffff800013000000 x26: ffff800008c17000 
[   34.981115] x25: ffff800008c17000 x24: 0000000000000002 
[   34.981119] x23: 0000000000000870 x22: 0000000000000001 
[   34.981123] x21: ffff800013000000 x20: ffff800013004800 
[   34.981127] x19: ffff800008c17000 x18: 0000000000000001 
[   34.981131] x17: ffff800008c11828 x16: 0000000000000001 
[   34.981135] x15: 0000ffffc004b800 x14: 000000001004b800 
[   34.981139] x13: 0000ffffc0200000 x12: 00000000b6f00000 
[   34.981143] x11: ffff0000f6d00000 x10: ffff8000116996c8 
[   34.981147] x9 : ffff800011699720 x8 : 0000000000017fe8 
[   34.981151] x7 : 0000000000000000 x6 : ffff00007fc82aa0 
[   34.981155] x5 : ffff00007fc82aa0 x4 : 000000000000003f 
[   34.981159] x3 : 0000000000000040 x2 : 0000000000000002 
[   34.981163] x1 : 00000000b6f05000 x0 : 0000000000000000 

Reply via email to