Android u boot - liuyq/android-issues GitHub Wiki

https://ci.android.com/builds/branches/aosp_u-boot-mainline/grid?selected-targets=u-boot_crosvm_aarch64&selected-targets=u-boot_pvmfw&selected-targets=u-boot_qemu_aarch64

https://ci.android.com/builds/submitted/9478496/u-boot_crosvm_aarch64/latest/logs/build.log

https://ci.android.com/builds/submitted/9478496/u-boot_pvmfw/latest/logs/build.log

https://ci.android.com/builds/submitted/9478496/u-boot_qemu_aarch64/latest/logs/build.log

https://android.googlesource.com/kernel/manifest/+/refs/heads/u-boot-mainline/default.xml

eval KCONFIG_CONFIG=/buildbot/src/android/u-boot-mainline/u-boot/configs/cf-arm64_defconfig 
/buildbot/src/android/u-boot-mainline/u-boot/scripts/kconfig/merge_config.sh -m -r \
    /buildbot/src/android/u-boot-mainline/u-boot/configs/qemu_arm64_defconfig /buildbot/src/android/u-boot-mainline/u-boot/qemu-minimal.fragment /buildbot/src/android/u-boot-mainline/u-boot/arm.fragment \
    /buildbot/src/android/u-boot-mainline/u-boot/cuttlefish.fragment \
    /buildbot/src/android/u-boot-mainline/u-boot/crosvm.fragment \
    /buildbot/src/android/u-boot-mainline/u-boot/crosvm-aarch64.fragment \
    /buildbot/src/android/u-boot-mainline/u-boot/avb_unlocked.fragment


eval KCONFIG_CONFIG=/buildbot/src/android/u-boot-mainline/u-boot/configs/pvmfw-arm64_defconfig 
/buildbot/src/android/u-boot-mainline/u-boot/scripts/kconfig/merge_config.sh -m -r \
    /buildbot/src/android/u-boot-mainline/u-boot/configs/qemu_arm64_defconfig /buildbot/src/android/u-boot-mainline/u-boot/qemu-minimal.fragment /buildbot/src/android/u-boot-mainline/u-boot/arm.fragment \
    /buildbot/src/android/u-boot-mainline/u-boot/crosvm.fragment \
    /buildbot/src/android/u-boot-mainline/u-boot/crosvm-aarch64.fragment \
    /buildbot/src/android/u-boot-mainline/u-boot/pvmfw.fragment

eval KCONFIG_CONFIG=/buildbot/src/android/u-boot-mainline/u-boot/configs/cf-arm64_defconfig
/buildbot/src/android/u-boot-mainline/u-boot/scripts/kconfig/merge_config.sh -m -r \
    /buildbot/src/android/u-boot-mainline/u-boot/configs/qemu_arm64_defconfig /buildbot/src/android/u-boot-mainline/u-boot/qemu-minimal.fragment /buildbot/src/android/u-boot-mainline/u-boot/arm.fragment \
    /buildbot/src/android/u-boot-mainline/u-boot/cuttlefish.fragment \
    /buildbot/src/android/u-boot-mainline/u-boot/avb_unlocked.fragment
load virtio 0:1 0x80200000 Image
load virtio 0:1 0x80000000 /qemu.dtb
booti 0x80200000 - 0x80000000

trs.fragment

# Enable Trs-specific features and commands needed to boot
CONFIG_CMDLINE=y

CONFIG_PCI=y
# enable the part command
CONFIG_CMD_BOOTEFI=y
CONFIG_CMD_ENV_EXISTS=y
CONFIG_CMD_FAT=y
CONFIG_CMD_FDT=y
CONFIG_CMD_FS_GENERIC=y
CONFIG_CMD_GPT=y
CONFIG_CMD_PART=y
CONFIG_CMD_PCI=y
CONFIG_CMD_POWEROFF=y
CONFIG_CMD_READ=y
CONFIG_CMD_SETEXPR=y
CONFIG_HUSH_PARSER=y

CONFIG_EFI_LOADER=y
CONFIG_DISTRO_DEFAULTS=y
CONFIG_BOOTSTD=y
CONFIG_BOOTMETH_GLOBAL=y
CONFIG_BOOTMETH_DISTRO=y
CONFIG_USE_BOOTCOMMAND=y
CONFIG_BOOTCOMMAND="run distro_bootcmd"
CONFIG_AUTOBOOT=y
CONFIG_BOOTDELAY=2
CONFIG_USE_BOOTARGS=y
CONFIG_BOOTARGS="console=hvc0 console=ttyS0 console=ttyAMA0,115200 console=tty0 root=/dev/vda2 rootwait panic=60"

build.config.crosvm.trs.aarch64

. ${ROOT_DIR}/u-boot/build.config.common
. ${ROOT_DIR}/u-boot/build.config.aarch64

DEFCONFIG=cf-arm64_defconfig
PRE_DEFCONFIG_CMDS="KCONFIG_CONFIG=${ROOT_DIR}/${KERNEL_DIR}/configs/${DEFCONFIG}
    ${ROOT_DIR}/${KERNEL_DIR}/scripts/kconfig/merge_config.sh -m -r
    ${ROOT_DIR}/${KERNEL_DIR}/configs/qemu_arm64_defconfig
    ${ROOT_DIR}/${KERNEL_DIR}/qemu-minimal.fragment
    ${ROOT_DIR}/${KERNEL_DIR}/arm.fragment
    ${ROOT_DIR}/${KERNEL_DIR}/crosvm.fragment
    ${ROOT_DIR}/${KERNEL_DIR}/crosvm-aarch64.fragment
    ${ROOT_DIR}/${KERNEL_DIR}/trs.fragment
"
POST_DEFCONFIG_CMDS="rm ${ROOT_DIR}/${KERNEL_DIR}/configs/${DEFCONFIG}"

trs boot with bootefi/CONFIG_EFI_LOADER

It's only the u-boot bootloader, and no uefi implementation, thus failed

10:05:11 P15v:aosp-uboot$ adb shell /data/local/tmp/trs/android-crosvm.sh
+ d_vm=trs 
+ /apex/com.android.virt/bin/crosvm --extended-status --log-level 'debug,disk=off' run --disable-sandbox --no-balloon --cpus 1 '--serial=type=stdout,hardware=serial,num=1,stdin,console' '--serial=type=stdout,hardware=serial,num=2' '--serial=type=stdout,hardware=virtio-console,num=1' '--serial=type=stdout,hardware=virtio-console,num=2' '--serial=type=stdout,hardware=virtio-console,num=3' --disk /data/local/tmp/trs/trs-image-trs-qemuarm64.wic --bios /data/local/tmp/trs/u-boot.bin
[2023-01-20T12:22:43.650523397+00:00 INFO  crosvm] crosvm started.
[2023-01-20T12:22:43.651441106+00:00 INFO  crosvm] CLI arguments parsed.
[2023-01-20T12:22:43.651655168+00:00 DEBUG crosvm::crosvm::sys::unix] creating Kvm hypervisor
[2023-01-20T12:22:43.655961418+00:00 INFO  crosvm::crosvm::sys::unix::device_helpers] Trying to attach block device: /data/local/tmp/trs/trs-image-trs-qemuarm64.wic


U-Boot 2022.10-20305-ga2f7d7299e13-dirty (Dec 23 2022 - 12:04:28 +0000)

DRAM:  256 MiB
Core:  11 devices, 7 uclasses, devicetree: board
Hit any key to stop autoboot:  2 
 0 
=> print
print
arch=arm
baudrate=115200
board=qemu-arm
board_name=qemu-arm
boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr}
boot_efi_binary=load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} efi/boot/bootaa64.efi; if fdt addr -q ${fdt_addr_r}; then bootefi ${kernel_addr_r} ${fdt_addr_r};else bootefi ${kernel_addr_r} ${fdtcontroladdr};fi
boot_efi_bootmgr=if fdt addr -q ${fdt_addr_r}; then bootefi bootmgr ${fdt_addr_r};else bootefi bootmgr;fi
boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}${boot_syslinux_conf}
boot_pci_enum=pci enum
boot_prefixes=/ /boot/
boot_script_dhcp=boot.scr.uimg
boot_scripts=boot.scr.uimg boot.scr
boot_syslinux_conf=extlinux/extlinux.conf
boot_targets=virtio0 
bootargs=console=hvc0 console=ttyS0 console=ttyAMA0,115200 console=tty0 root=/dev/vda2 rootwait panic=60
bootcmd=run distro_bootcmd
bootcmd_virtio0=devnum=0; run virtio_boot
bootdelay=2
cbootargs=panic=-1 console=ttyS0
cpu=armv8
distro_bootcmd=virtio_need_init=; for target in ${boot_targets}; do run bootcmd_${target}; done
efi_dtb_prefixes=/ /dtb/ /dtb/current/
fdt_addr=0x80000000
fdt_high=0xffffffff
fdtaddr=80000000
fdtcontroladdr=8ef491b0
initrd_high=0xffffffff
kernel_addr_r=0x80200000
load_efi_dtb=load ${devtype} ${devnum}:${distro_bootpart} ${fdt_addr_r} ${prefix}${efi_fdtfile}
loadaddr=80200000
pxefile_addr_r=0x84400000
ramdisk_addr_r=0x84200000
scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scripts; done;run scan_dev_for_efi;
scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_boot; fi; done; setenv devplist
scan_dev_for_efi=setenv efi_fdtfile ${fdtfile}; for prefix in ${efi_dtb_prefixes}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${efi_fdtfile}; then run load_efi_dtb; fi;done;run boot_efi_bootmgr;if test -e ${devtype} ${devnum}:${distro_bootpart} efi/boot/bootaa64.efi; then echo Found EFI removable media binary efi/boot/bootaa64.efi; run boot_efi_binary; echo EFI LOAD FAILED: continuing...; fi; setenv efi_fdtfile
scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${boot_syslinux_conf}; then echo Found ${prefix}${boot_syslinux_conf}; run boot_extlinux; echo SCRIPT FAILED: continuing...; fi
scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done
scriptaddr=0x84300000
stderr=U6_16550A@3f8
stdin=U6_16550A@3f8
stdout=U6_16550A@3f8
vendor=emulation
virtio_boot=run boot_pci_enum; run virtio_init; if virtio dev ${devnum}; then devtype=virtio; run scan_dev_for_boot_part; fi
virtio_init=if ${virtio_need_init}; then virtio_need_init=false; virtio scan; fi

Environment size: 3107/262140 bytes
=> boot
boot

Device 0: 1af4 VirtIO Block Device
            Type: Hard Disk
            Capacity: 2304.0 MB = 2.2 GB (4718666 x 512)
... is now current device
Scanning virtio 0:1...
load - load binary file from a filesystem

Usage:
load <interface> [<dev[:part]> [<addr> [<filename> [bytes [pos]]]]]
    - Load binary file 'filename' from partition 'part' on device
       type 'interface' instance 'dev' to address 'addr' in memory.
      'bytes' gives the size to load in bytes.
      If 'bytes' is 0 or omitted, the file is read until the end.
      'pos' gives the file byte position to start reading from.
      If 'pos' is 0 or omitted, the file is read from the start.
load - load binary file from a filesystem

Usage:
load <interface> [<dev[:part]> [<addr> [<filename> [bytes [pos]]]]]
    - Load binary file 'filename' from partition 'part' on device
       type 'interface' instance 'dev' to address 'addr' in memory.
      'bytes' gives the size to load in bytes.
      If 'bytes' is 0 or omitted, the file is read until the end.
      'pos' gives the file byte position to start reading from.
      If 'pos' is 0 or omitted, the file is read from the start.
                                                                                                                                                                                                          ^** Unable to read file ubootefi.var **
Failed to load EFI variables
BootOrder not defined
EFI boot manager: Cannot load any image
Found EFI removable media binary efi/boot/bootaa64.efi
36562960 bytes read in 97 ms (359.5 MiB/s)
Booting /efi\boot\bootaa64.efi
EFI stub: Booting Linux Kernel...
EFI stub: Using DTB from configuration table
EFI stub: Exiting boot services...
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd091]
[    0.000000] Linux version 5.15.78-yocto-standard (oe-user@oe-host) (aarch64-trs-linux-gcc (GCC) 11.3.0, GNU ld (GNU Binutils) 2.38.20220708) #1 SMP PREEMPT Wed Nov 16 14:17:41 UTC 2022
[    0.000000] random: crng init done
[    0.000000] Machine model: linux,dummy-virt
[    0.000000] efi: EFI v2.90 by Das U-Boot
[    0.000000] efi: RTPROP=0x8df38040 SMBIOS=0x8df37000 RNG=0x8df2d040 MEMRESERVE=0x8df2c040 
[    0.000000] efi: seeding entropy pool
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000080000000-0x000000008fffffff]
[    0.000000] NUMA: NODE_DATA [mem 0x8ff6cc00-0x8ff6efff]
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000080000000-0x000000008fffffff]
[    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 0x0000000080000000-0x000000008df36fff]
[    0.000000]   node   0: [mem 0x000000008df37000-0x000000008df3afff]
[    0.000000]   node   0: [mem 0x000000008df3b000-0x000000008df3bfff]
[    0.000000]   node   0: [mem 0x000000008df3c000-0x000000008df3ffff]
[    0.000000]   node   0: [mem 0x000000008df40000-0x000000008ff7ffff]
[    0.000000]   node   0: [mem 0x000000008ff80000-0x000000008ff8ffff]
[    0.000000]   node   0: [mem 0x000000008ff90000-0x000000008fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x000000008fffffff]
[    0.000000] cma: Reserved 32 MiB at 0x000000008bc00000
[    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: Trusted OS migration not required
[    0.000000] psci: SMC Calling Convention v1.1
[    0.000000] smccc: KVM: hypervisor services detected (0x00000000 0x00000000 0x00000000 0x00000003)
[    0.000000] percpu: Embedded 20 pages/cpu s43800 r8192 d29928 u81920
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: Spectre-v2
[    0.000000] CPU features: detected: Spectre-BHB
[    0.000000] CPU features: kernel page table isolation forced ON by KASLR
[    0.000000] CPU features: detected: Kernel page table isolation (KPTI)
[    0.000000] CPU features: detected: ARM erratum 858921
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 64512
[    0.000000] Policy zone: DMA
[    0.000000] Kernel command line: console=hvc0 console=ttyS0 console=ttyAMA0,115200 console=tty0 root=/dev/vda2 rootwait panic=60
[    0.000000] Dentry cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.000000] Inode-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 185428K/262144K available (16960K kernel code, 3192K rwdata, 8876K rodata, 6528K init, 882K bss, 43948K reserved, 32768K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, 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=1.
[    0.000000] 	Trampoline variant of Tasks RCU enabled.
[    0.000000] 	Tracing 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=1
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] Root IRQ handler: gic_handle_irq
[    0.000000] kfence: initialized - using 2097152 bytes for 255 objects at 0x(____ptrval____)-0x(____ptrval____)
[    0.000000] arch_timer: Enabling local workaround for ARM erratum 858921
[    0.000000] arch_timer: CPU0: Trapping CNTVCT access
[    0.000000] arch_timer: cp15 timer(s) running at 1.92MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x1c570327e, max_idle_ns: 1763180809505 ns
[    0.000000] sched_clock: 56 bits at 1920kHz, resolution 520ns, wraps every 4398046510977ns
[    0.000073] arm-pv: using stolen time PV
[    0.000331] Console: colour dummy device 80x25
[    0.000478] printk: console [tty0] enabled
[    0.000564] Calibrating delay loop (skipped), value calculated using timer frequency.. 3.84 BogoMIPS (lpj=7680)
[    0.000575] pid_max: default: 32768 minimum: 301
[    0.000615] LSM: Security Framework initializing
[    0.000657] SELinux:  Initializing.
[    0.000857] Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.000874] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.003178] rcu: Hierarchical SRCU implementation.
[    0.003621] Remapping and enabling EFI services.
[    0.003764] smp: Bringing up secondary CPUs ...
[    0.003770] smp: Brought up 1 node, 1 CPU
[    0.003775] SMP: Total of 1 processors activated.
[    0.003780] CPU features: detected: 32-bit EL0 Support
[    0.003784] CPU features: detected: 32-bit EL1 Support
[    0.003790] CPU features: detected: CRC32 instructions
[    0.009731] CPU: All CPU(s) started at EL1
[    0.009749] alternatives: patching kernel code
[    0.010379] devtmpfs: initialized
[    0.011066] KASLR enabled
[    0.011181] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.011193] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.011558] pinctrl core: initialized pinctrl subsystem
[    0.012372] SMBIOS 3.0 present.
[    0.012385] DMI: Unknown Unknown Product/Unknown Product, BIOS 2022.10-20305-ga2f7d7299e13-dirty 10/01/2022
[    0.012801] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.013391] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
[    0.013446] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.013500] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.013523] audit: initializing netlink subsys (disabled)
[    0.014142] thermal_sys: Registered thermal governor 'step_wise'
[    0.014146] thermal_sys: Registered thermal governor 'power_allocator'
[    0.014234] cpuidle: using governor menu
[    0.014311] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.014347] ASID allocator initialised with 32768 entries
[    0.014939] Serial: AMBA PL011 UART driver
[    0.019245] audit: type=2000 audit(0.012:1): state=initialized audit_enabled=0 res=1
[    0.019650] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[    0.019659] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[    0.019665] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.019669] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[    0.020642] cryptd: max_cpu_qlen set to 1000
[    0.021719] ACPI: Interpreter disabled.
[    0.022078] iommu: Default domain type: Translated 
[    0.022085] iommu: DMA domain TLB invalidation policy: strict mode 
[    0.022245] vgaarb: loaded
[    0.022383] SCSI subsystem initialized
[    0.022632] usbcore: registered new interface driver usbfs
[    0.022671] usbcore: registered new interface driver hub
[    0.022685] usbcore: registered new device driver usb
[    0.022816] pps_core: LinuxPPS API ver. 1 registered
[    0.022822] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]>
[    0.022831] PTP clock support registered
[    0.022869] EDAC MC: Ver: 3.0.0
[    0.023170] Registered efivars operations
[    0.023456] FPGA manager framework
[    0.023497] Advanced Linux Sound Architecture Driver Initialized.
[    0.024096] clocksource: Switched to clocksource arch_sys_counter
[    0.024226] VFS: Disk quotas dquot_6.6.0
[    0.024248] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.024409] pnp: PnP ACPI: disabled
[    0.026182] NET: Registered PF_INET protocol family
[    0.026281] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.026728] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.026742] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.026751] TCP established hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.026761] TCP bind hash table entries: 2048 (order: 3, 32768 bytes, linear)
[    0.026777] TCP: Hash tables configured (established 2048 bind 2048)
[    0.026838] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.026851] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.026982] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.027230] RPC: Registered named UNIX socket transport module.
[    0.027238] RPC: Registered udp transport module.
[    0.027242] RPC: Registered tcp transport module.
[    0.027245] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.027251] PCI: CLS 0 bytes, default 64
[    0.027738] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available
[    0.027819] kvm [1]: HYP mode not available
[    0.029069] Initialise system trusted keyrings
[    0.029156] workingset: timestamp_bits=42 max_order=16 bucket_order=0
[    0.030982] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.031242] NFS: Registering the id_resolver key type
[    0.031257] Key type id_resolver registered
[    0.031261] Key type id_legacy registered
[    0.031305] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.031318] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    0.031541] Key type cifs.idmap registered
[    0.031629] 9p: Installing v9fs 9p2000 file system support
[    0.043798] Key type asymmetric registered
[    0.043814] Asymmetric key parser 'x509' registered
[    0.043850] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[    0.043907] io scheduler mq-deadline registered
[    0.043915] io scheduler kyber registered
[    0.045509] pci-host-generic 10000.pci: host bridge /pci ranges:
[    0.045542] pci-host-generic 10000.pci:      MEM 0x0002000000..0x0003ffffff -> 0x0002000000
[    0.045554] pci-host-generic 10000.pci:      MEM 0x0090800000..0xffffffffff -> 0x0090800000
[    0.045573] pci-host-generic 10000.pci: Memory resource size exceeds max for 32 bits
[    0.045582] PCI: OF: PROBE_ONLY enabled
[    0.045611] pci-host-generic 10000.pci: ECAM at [mem 0x00010000-0x0100ffff] for [bus 00]
[    0.045693] pci-host-generic 10000.pci: PCI host bridge to bus 0000:00
[    0.045701] pci_bus 0000:00: root bus resource [bus 00]
[    0.045706] pci_bus 0000:00: root bus resource [mem 0x02000000-0x03ffffff]
[    0.045711] pci_bus 0000:00: root bus resource [mem 0x90800000-0xffffffffff]
[    0.045843] pci 0000:00:00.0: [8086:1237] type 00 class 0x060000
[    0.046472] pci 0000:00:01.0: [1af4:1043] type 00 class 0x00ff00
[    0.046593] pci 0000:00:01.0: reg 0x10: [mem 0x02000000-0x02007fff]
[    0.047496] pci 0000:00:02.0: [1af4:1043] type 00 class 0x00ff00
[    0.047599] pci 0000:00:02.0: reg 0x10: [mem 0x02008000-0x0200ffff]
[    0.048542] pci 0000:00:03.0: [1af4:1043] type 00 class 0x00ff00
[    0.048645] pci 0000:00:03.0: reg 0x10: [mem 0x02010000-0x02017fff]
[    0.049546] pci 0000:00:04.0: [1af4:1042] type 00 class 0x00ff00
[    0.049648] pci 0000:00:04.0: reg 0x10: [mem 0x02018000-0x0201ffff]
[    0.050563] pci 0000:00:05.0: [1af4:1044] type 00 class 0x00ff00
[    0.050665] pci 0000:00:05.0: reg 0x10: [mem 0x02020000-0x02027fff]
[    0.051479] pci 0000:00:06.0: [1b73:1000] type 00 class 0x0c0330
[    0.051581] pci 0000:00:06.0: reg 0x10: [mem 0x02030000-0x0203ffff]
[    0.052031] pci 0000:00:07.0: [1b36:0011] type 00 class 0xffff00
[    0.052183] pci 0000:00:07.0: reg 0x10: [mem 0x02028000-0x0202800f]
[    0.052819] pci 0000:00:00.0: Limiting direct PCI/PCI transfers
[    0.053346] EINJ: ACPI disabled.
[    0.058556] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.059453] printk: console [ttyS0] disabled
[    0.059535] 3f8.U6_16550A: ttyS0 at MMIO 0x3f8 (irq = 14, base_baud = 115200) is a 16550A
[    0.302967] printk: console [ttyS0] enabled
[    0.304227] 2f8.U6_16550A: ttyS1 at MMIO 0x2f8 (irq = 15, base_baud = 115200) is a 16550A
[    0.306267] 3e8.U6_16550A: ttyS2 at MMIO 0x3e8 (irq = 14, base_baud = 115200) is a 16550A
[    0.308330] 2e8.U6_16550A: ttyS3 at MMIO 0x2e8 (irq = 15, base_baud = 115200) is a 16550A
[    0.310316] SuperH (H)SCI(F) driver initialized
[    0.311501] msm_serial: driver initialized
[    0.314073] printk: console [hvc0] enabled
[    0.317322] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.317322] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.321562] brd: module loaded
[    0.321562] brd: module loaded
[    0.324187] loop: module loaded
[    0.324187] loop: module loaded
[    0.325711] virtio_blk virtio3: [vda] 4718666 512-byte logical blocks (2.42 GB/2.25 GiB)
[    0.325711] virtio_blk virtio3: [vda] 4718666 512-byte logical blocks (2.42 GB/2.25 GiB)
[    0.331208]  vda: vda1 vda2
[    0.331208]  vda: vda1 vda2
[    0.332649] megasas: 07.717.02.00-rc1
[    0.332649] megasas: 07.717.02.00-rc1
[    0.335784] tun: Universal TUN/TAP device driver, 1.6
[    0.335784] tun: Universal TUN/TAP device driver, 1.6
[    0.337745] thunder_xcv, ver 1.0
[    0.337745] thunder_xcv, ver 1.0
[    0.338826] thunder_bgx, ver 1.0
[    0.338826] thunder_bgx, ver 1.0
[    0.339884] nicpf, ver 1.0
[    0.339884] nicpf, ver 1.0
[    0.341193] hclge is initializing
[    0.341193] hclge is initializing
[    0.342285] hns3: Hisilicon Ethernet Network Driver for Hip08 Family - version
[    0.342285] hns3: Hisilicon Ethernet Network Driver for Hip08 Family - version
[    0.344308] hns3: Copyright (c) 2017 Huawei Corporation.
[    0.344308] hns3: Copyright (c) 2017 Huawei Corporation.
[    0.345865] e1000: Intel(R) PRO/1000 Network Driver
[    0.345865] e1000: Intel(R) PRO/1000 Network Driver
[    0.347309] e1000: Copyright (c) 1999-2006 Intel Corporation.
[    0.347309] e1000: Copyright (c) 1999-2006 Intel Corporation.
[    0.349021] e1000e: Intel(R) PRO/1000 Network Driver
[    0.349021] e1000e: Intel(R) PRO/1000 Network Driver
[    0.350475] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    0.350475] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    0.352259] igb: Intel(R) Gigabit Ethernet Network Driver
[    0.352259] igb: Intel(R) Gigabit Ethernet Network Driver
[    0.353822] igb: Copyright (c) 2007-2014 Intel Corporation.
[    0.353822] igb: Copyright (c) 2007-2014 Intel Corporation.
[    0.355472] igbvf: Intel(R) Gigabit Virtual Function Network Driver
[    0.355472] igbvf: Intel(R) Gigabit Virtual Function Network Driver
[    0.357302] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[    0.357302] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[    0.359053] i40e: Intel(R) Ethernet Connection XL710 Network Driver
[    0.359053] i40e: Intel(R) Ethernet Connection XL710 Network Driver
[    0.360847] i40e: Copyright (c) 2013 - 2019 Intel Corporation.
[    0.360847] i40e: Copyright (c) 2013 - 2019 Intel Corporation.
[    0.362761] sky2: driver version 1.30
[    0.362761] sky2: driver version 1.30
[    0.364201] VFIO - User Level meta-driver version: 0.3
[    0.364201] VFIO - User Level meta-driver version: 0.3
[    0.366010] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.366010] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.367835] ehci-pci: EHCI PCI platform driver
[    0.367835] ehci-pci: EHCI PCI platform driver
[    0.369235] ehci-platform: EHCI generic platform driver
[    0.369235] ehci-platform: EHCI generic platform driver
[    0.370776] ehci-orion: EHCI orion driver
[    0.370776] ehci-orion: EHCI orion driver
[    0.372028] ehci-exynos: EHCI Exynos driver
[    0.372028] ehci-exynos: EHCI Exynos driver
[    0.373319] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.373319] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.375095] ohci-pci: OHCI PCI platform driver
[    0.375095] ohci-pci: OHCI PCI platform driver
[    0.376470] ohci-platform: OHCI generic platform driver
[    0.376470] ohci-platform: OHCI generic platform driver
[    0.378040] ohci-exynos: OHCI Exynos driver
[    0.378040] ohci-exynos: OHCI Exynos driver
[    0.379576] xhci_hcd 0000:00:06.0: xHCI Host Controller
[    0.379576] xhci_hcd 0000:00:06.0: xHCI Host Controller
[    0.381129] xhci_hcd 0000:00:06.0: new USB bus registered, assigned bus number 1
[    0.381129] xhci_hcd 0000:00:06.0: new USB bus registered, assigned bus number 1
[    0.383773] xhci_hcd 0000:00:06.0: hcc params 0x30000501 hci version 0x110 quirks 0x0000000000080452
[    0.383773] xhci_hcd 0000:00:06.0: hcc params 0x30000501 hci version 0x110 quirks 0x0000000000080452
[    0.386658] xhci_hcd 0000:00:06.0: xHCI Host Controller
[    0.386658] xhci_hcd 0000:00:06.0: xHCI Host Controller
[    0.388142] xhci_hcd 0000:00:06.0: new USB bus registered, assigned bus number 2
[    0.388142] xhci_hcd 0000:00:06.0: new USB bus registered, assigned bus number 2
[    0.389947] xhci_hcd 0000:00:06.0: Host supports USB 3.0 SuperSpeed
[    0.389947] xhci_hcd 0000:00:06.0: Host supports USB 3.0 SuperSpeed
[    0.391851] hub 1-0:1.0: USB hub found
[    0.391851] hub 1-0:1.0: USB hub found
[    0.392922] hub 1-0:1.0: 8 ports detected
[    0.392922] hub 1-0:1.0: 8 ports detected
[    0.394757] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    0.394757] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    0.397188] hub 2-0:1.0: USB hub found
[    0.397188] hub 2-0:1.0: USB hub found
[    0.398245] hub 2-0:1.0: 8 ports detected
[    0.398245] hub 2-0:1.0: 8 ports detected
[    0.400264] usbcore: registered new interface driver usb-storage
[    0.400264] usbcore: registered new interface driver usb-storage
[    0.402749] i2c_dev: i2c /dev entries driver
[    0.402749] i2c_dev: i2c /dev entries driver
[    0.405676] sdhci: Secure Digital Host Controller Interface driver
[    0.405676] sdhci: Secure Digital Host Controller Interface driver
[    0.407456] sdhci: Copyright(c) Pierre Ossman
[    0.407456] sdhci: Copyright(c) Pierre Ossman
[    0.409010] Synopsys Designware Multimedia Card Interface Driver
[    0.409010] Synopsys Designware Multimedia Card Interface Driver
[    0.410943] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.410943] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.412712] ledtrig-cpu: registered to indicate activity on CPUs
[    0.412712] ledtrig-cpu: registered to indicate activity on CPUs
[    0.415396] usbcore: registered new interface driver usbhid
[    0.415396] usbcore: registered new interface driver usbhid
[    0.417503] usbhid: USB HID core driver
[    0.417503] usbhid: USB HID core driver
[    0.419999] u32 classifier
[    0.419999] u32 classifier
[    0.421029]     input device check on
[    0.421029]     input device check on
[    0.422379]     Actions configured
[    0.422379]     Actions configured
[    0.423531] NET: Registered PF_PACKET protocol family
[    0.423531] NET: Registered PF_PACKET protocol family
[    0.425209] 9pnet: Installing 9P2000 support
[    0.425209] 9pnet: Installing 9P2000 support
[    0.426539] Key type dns_resolver registered
[    0.426539] Key type dns_resolver registered
[    0.427973] NET: Registered PF_VSOCK protocol family
[    0.427973] NET: Registered PF_VSOCK protocol family
[    0.429665] Loading compiled-in X.509 certificates
[    0.429665] Loading compiled-in X.509 certificates
[    0.432908] Loaded X.509 cert 'Build time autogenerated kernel key: b0f05627a3cc24b633e31c6b4c5e6406c9c6236b'
[    0.432908] Loaded X.509 cert 'Build time autogenerated kernel key: b0f05627a3cc24b633e31c6b4c5e6406c9c6236b'
[    0.436478] Key type .fscrypt registered
[    0.436478] Key type .fscrypt registered
[    0.437691] Key type fscrypt-provisioning registered
[    0.437691] Key type fscrypt-provisioning registered
[    0.439210] Key type encrypted registered
[    0.439210] Key type encrypted registered
[    0.440828] printk: console [netcon0] enabled
[    0.440828] printk: console [netcon0] enabled
[    0.442193] netconsole: network logging started
[    0.442193] netconsole: network logging started
[    0.443787] ALSA device list:
[    0.443787] ALSA device list:
[    0.444912]   No soundcards found.
[    0.444912]   No soundcards found.
[    0.448694] EXT4-fs (vda2): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
[    0.448694] EXT4-fs (vda2): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
[    0.451348] VFS: Mounted root (ext4 filesystem) readonly on device 254:2.
[    0.451348] VFS: Mounted root (ext4 filesystem) readonly on device 254:2.
[    0.454277] devtmpfs: mounted
[    0.454277] devtmpfs: mounted
[    0.457148] Freeing unused kernel memory: 6528K
[    0.457148] Freeing unused kernel memory: 6528K
[    0.460203] Run /sbin/init as init process
[    0.460203] Run /sbin/init as init process
[    0.516983] systemd[1]: System time before build time, advancing clock.
[    0.516983] systemd[1]: System time before build time, advancing clock.
[    0.535769] NET: Registered PF_INET6 protocol family
[    0.535769] NET: Registered PF_INET6 protocol family
[    0.538121] Segment Routing with IPv6
[    0.538121] Segment Routing with IPv6
[    0.539194] In-situ OAM (IOAM) with IPv6
[    0.539194] In-situ OAM (IOAM) with IPv6
[    0.542585] Unable to handle kernel paging request at virtual address 000000008ff8b130
[    0.542585] Unable to handle kernel paging request at virtual address 000000008ff8b130
[    0.544755] Mem abort info:
[    0.544755] Mem abort info:
[    0.545595]   ESR = 0x96000005
[    0.545595]   ESR = 0x96000005
[    0.546547]   EC = 0x25: DABT (current EL), IL = 32 bits
[    0.546547]   EC = 0x25: DABT (current EL), IL = 32 bits
[    0.547972]   SET = 0, FnV = 0
[    0.547972]   SET = 0, FnV = 0
[    0.548944]   EA = 0, S1PTW = 0
[    0.548944]   EA = 0, S1PTW = 0
[    0.549899]   FSC = 0x05: level 1 translation fault
[    0.549899]   FSC = 0x05: level 1 translation fault
[    0.551205] Data abort info:
[    0.551205] Data abort info:
[    0.552109]   ISV = 0, ISS = 0x00000005
[    0.552109]   ISV = 0, ISS = 0x00000005
[    0.553198]   CM = 0, WnR = 0
[    0.553198]   CM = 0, WnR = 0
[    0.554200] user pgtable: 4k pages, 48-bit VAs, pgdp=0000000080f14000
[    0.554200] user pgtable: 4k pages, 48-bit VAs, pgdp=0000000080f14000
[    0.556063] [000000008ff8b130] pgd=0000000000000000, p4d=0000000000000000
[    0.556063] [000000008ff8b130] pgd=0000000000000000, p4d=0000000000000000
[    0.557967] Internal error: Oops: 96000005 [#1] PREEMPT SMP
[    0.557967] Internal error: Oops: 96000005 [#1] PREEMPT SMP
[    0.559594] Modules linked in: ipv6
[    0.559594] Modules linked in: ipv6
[    0.560733] CPU: 0 PID: 9 Comm: kworker/u2:0 Not tainted 5.15.78-yocto-standard #1
[    0.560733] CPU: 0 PID: 9 Comm: kworker/u2:0 Not tainted 5.15.78-yocto-standard #1
[    0.562940] Hardware name: Unknown Unknown Product/Unknown Product, BIOS 2022.10-20305-ga2f7d7299e13-dirty 10/01/2022
[    0.562940] Hardware name: Unknown Unknown Product/Unknown Product, BIOS 2022.10-20305-ga2f7d7299e13-dirty 10/01/2022
[    0.565916] Workqueue: efi_rts_wq efi_call_rts
[    0.565916] Workqueue: efi_rts_wq efi_call_rts
[    0.567330] pstate: 00000005 (nzcv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[    0.567330] pstate: 00000005 (nzcv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[    0.569368] pc : efi_call_rts+0x384/0x3d0
[    0.569368] pc : efi_call_rts+0x384/0x3d0
[    0.570654] lr : efi_call_rts+0x360/0x3d0
[    0.570654] lr : efi_call_rts+0x360/0x3d0
[    0.571929] sp : ffff800008093d60
[    0.571929] sp : ffff800008093d60
[    0.573031] x29: ffff800008093d60 x28: 0000000000000000 x27: 0000000000000000
[    0.573031] x29: ffff800008093d60 x28: 0000000000000000 x27: 0000000000000000
[    0.575131] x26: ffffd5b6b5c6d2d0 x25: ffff666c0000aa05 x24: 0000000000000000
[    0.575131] x26: ffffd5b6b5c6d2d0 x25: ffff666c0000aa05 x24: 0000000000000000
[    0.577215] x23: ffffd5b6b51df590 x22: ffff80000800bc38 x21: ffff666c00eb5800
[    0.577215] x23: ffffd5b6b51df590 x22: ffff80000800bc38 x21: ffff666c00eb5800
[    0.579311] x20: ffff80000800bc30 x19: ffffd5b6b5d2e9f8 x18: ffffffffffffffff
[    0.579311] x20: ffff80000800bc30 x19: ffffd5b6b5d2e9f8 x18: ffffffffffffffff
[    0.581403] x17: 0000000000000000 x16: 0000000000000000 x15: 00008ad5721ce29c
[    0.581403] x17: 0000000000000000 x16: 0000000000000000 x15: 00008ad5721ce29c
[    0.583510] x14: 00000000000001ff x13: 00000000000001ff x12: 0000000000000001
[    0.583510] x14: 00000000000001ff x13: 00000000000001ff x12: 0000000000000001
[    0.585597] x11: 0000000000000002 x10: 00000000000009e0 x9 : ffff666c0002de7c
[    0.585597] x11: 0000000000000002 x10: 00000000000009e0 x9 : ffff666c0002de7c
[    0.587700] x8 : fefefefefefefeff x7 : fffffffffffffffc x6 : 0000000000000000
[    0.587700] x8 : fefefefefefefeff x7 : fffffffffffffffc x6 : 0000000000000000
[    0.589785] x5 : 0000000000010004 x4 : ffff80000800bc38 x3 : ffff666c00eb5800
[    0.589785] x5 : 0000000000010004 x4 : ffff80000800bc38 x3 : ffff666c00eb5800
[    0.591686] x2 : ffff80000800bc30 x1 : ffffd5b6b51df590 x0 : 000000008ff8b0e0
[    0.591686] x2 : ffff80000800bc30 x1 : ffffd5b6b51df590 x0 : 000000008ff8b0e0
[    0.593794] Call trace:
[    0.593794] Call trace:
[    0.594684]  efi_call_rts+0x384/0x3d0
[    0.594684]  efi_call_rts+0x384/0x3d0
[    0.595873]  process_one_work+0x1d0/0x354
[    0.595873]  process_one_work+0x1d0/0x354
[    0.597154]  worker_thread+0x13c/0x470
[    0.597154]  worker_thread+0x13c/0x470
[    0.598380]  kthread+0x150/0x160
[    0.598380]  kthread+0x150/0x160
[    0.599467]  ret_from_fork+0x10/0x20
[    0.599467]  ret_from_fork+0x10/0x20
[    0.600644] Code: f9419400 aa1503e3 aa1403e2 aa1703e1 (f9402800) 
[    0.600644] Code: f9419400 aa1503e3 aa1403e2 aa1703e1 (f9402800) 
[    0.602475] ---[ end trace 5fe18fd1ffd05e33 ]---
[    0.602475] ---[ end trace 5fe18fd1ffd05e33 ]---
[    0.603709] Kernel panic - not syncing: Oops: Fatal exception in interrupt
[    0.603709] Kernel panic - not syncing: Oops: Fatal exception in interrupt
[    0.605716] Kernel Offset: 0x55b6ab980000 from 0xffff800008000000
[    0.605716] Kernel Offset: 0x55b6ab980000 from 0xffff800008000000
[    0.607545] PHYS_OFFSET: 0xffff999480000000
[    0.607545] PHYS_OFFSET: 0xffff999480000000
[    0.608860] CPU features: 0x00004491,00000846
[    0.608860] CPU features: 0x00004491,00000846
[    0.610247] Memory Limit: none
[    0.610247] Memory Limit: none
[    0.611302] Rebooting in 60 seconds..
[    0.611302] Rebooting in 60 seconds..
[   60.614028] efi: failed to invoke the reset_system() runtime service:
[   60.614028] could not get exclusive access to the firmware
[   60.614028] efi: failed to invoke the reset_system() runtime service:
[   60.614028] could not get exclusive access to the firmware
[2023-01-20T12:23:53.036694220+00:00 INFO  crosvm::crosvm::sys::unix::vcpu] system reset event
[2023-01-20T12:23:53.037999949+00:00 INFO  crosvm::crosvm::sys::unix] vcpu requested reset
[2023-01-20T12:23:53.038091095+00:00 ERROR crosvm::crosvm::sys::unix::vcpu] failed to send VcpuControl: sending on a closed channel
[2023-01-20T12:23:53.038673387+00:00 ERROR devices::utils::event_loop] removing event handler due to error: host backend device provider failed: failed to read control tube: tube was disconnected
[2023-01-20T12:23:53.038884324+00:00 ERROR devices::virtio::block::asynchronous] failed to handle a control request: failed to recieve command message: tube was disconnected
[2023-01-20T12:23:53.089046303+00:00 INFO  crosvm] exiting with reset
10:06:25 P15v:aosp-uboot$

# the same as the following two u-boot commands:
=> load virtio 0:1 0x80200000 efi/boot/bootaa64.efi
load virtio 0:1 0x80200000 efi/boot/bootaa64.efi
36562960 bytes read in 31 ms (1.1 GiB/s)
=> bootefi 0x80200000 8ef491b0
bootefi 0x80200000 8ef491b0
Booting /efi\boot\bootaa64.efi
EFI stub: Booting Linux Kernel...
EFI stub: Using DTB from configuration table
EFI stub: Exiting boot services...
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd091]

u-boot default environment variables with CONFIG_DEFAULT_ENV_FILE

when CONFIG_DEFAULT_ENV_FILE speicifed, the variables defined in CONFIG_DEFAULT_ENV_FILE will be used, if the default variables like bootcmd_virtio0 is to be used, then the folloing two configs should not be enabled.

CONFIG_USE_DEFAULT_ENV_FILE=y
CONFIG_DEFAULT_ENV_FILE="trs_env.txt"

trs_env.txt example

bootcmd=virtio scan && if part number virtio 0 bootfs bootfs_part; then if env verified_import virtio 1#uboot_env; then echo "Imported supplementary environment"; else reset; fi; else echo "No supplementary environment"; fi && run uenvcmd || reset
⚠️ **GitHub.com Fallback** ⚠️