HomeDefectsLIN1023-1461
Not to be fixed

LIN1023-1461 : Distro: bcm-2xxx-rpi4: Walltime on qemu image is incorrect

Created: Jul 26, 2023    Updated: Dec 11, 2024
Resolved Date: Dec 6, 2023
Found In Version: 10.23.30.1
Severity: Standard
Applicable for: Wind River Linux LTS 23
Component/s: Userspace

Description

Start DIstro image bcm-2xxx-rpi4 in qemu:

$ qemu-img create -f raw boot-image-qemu.hddimg 8G

$zcat wrlinux-image-minimal-bcm-2xxx-rpi4.ustart.img.gz| dd of=boot-image-qemu.hddimg    conv=notrunc
               $qemu-img create -f raw boot-image-qemu.hddimg 8G

              $ qemu-system-aarch64 -machine virt -cpu cortex-a57 -device virtio-net-device,netdev=net0 -netdev user,id=net0 -m 1024 -bios qemu-u-boot-bcm-2xxx-rpi4.bin -nographic  -drive id=disk0,file=boot-image-qemu.hddimg,if=none,format=raw -device virtio-blk-device,drive=disk0

Run the following command in qemu:

$ dnf update

You may get errors like:

  - Curl error (60): SSL peer certificate or SSH remote key was not OK

It may because of walltime is incorrect, you can set the correct time with command date and try again, for example:

$ date -s "2023-07-26 15:50:00"

 

Steps to Reproduce

# Get binary sdk and target-minimal image from [http://128.224.153.156/buildarea1/SharedImage/LTS22/LTS22_STD_BINARY/bcm-2xxx-rpi4/latest/lts-22/bcm-2xxx-rpi4]
 # Extract sdk and source sdk env
 # Boot qemu and install

$ qemu-img create -f raw boot-image-qemu.hddimg 8G

$zcat wrlinux-image-minimal-bcm-2xxx-rpi4.ustart.img.gz| dd of=boot-image-qemu.hddimg    conv=notrunc
               $qemu-img create -f raw boot-image-qemu.hddimg 8G

              $ qemu-system-aarch64 -machine virt -cpu cortex-a57 -device virtio-net-device,netdev=net0 -netdev user,id=net0 -m 1024 -bios qemu-u-boot-bcm-2xxx-rpi4.bin -nographic  -drive id=disk0,file=boot-image-qemu.hddimg,if=none,format=raw -device virtio-blk-device,drive=disk0