Reputation: 1
I am Working on running U-boot using TFTP server on Qemu with vexpress-a9 board. main goal is to run the Crash dump on Qemu.
using reference pages :
https://blog.pentesteracademy.com/booting-an-emulated-arm-device-using-tftp-and-u-boot-6f6868cccd14
https://emreboy.wordpress.com/2012/12/24/connecting-qemu-to-a-real-network/
Part of this page, can load the u-boot successfully, TFTP is working, Host is alive, can transfer the zImage from Host to target. When providing the command to boot the kernel it is giving error message as below & it is resetting the u-boot.
> setenv ipaddr 10.0.2.3
=> setenv serverip 10.0.2.15
=> tftp 0x61000000 zImage
smc911x: detected LAN9118 controller
smc911x: phy initialized
smc911x: MAC 52:54:00:12:34:56
Using ethernet@3,02000000 device
TFTP from server 10.0.2.15; our IP address is 10.0.2.3
Filename 'zImage'.
Load address: 0x61000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
############
3 MiB/s
done
Bytes transferred = 5049424 (4d0c50 hex)
smc911x: MAC 52:54:00:12:34:56
&
for .dtb
=> tftp 0x61a00000 vexpress-v2p-ca9.dtb
smc911x: detected LAN9118 controller
smc911x: phy initialized
smc911x: MAC 52:54:00:12:34:56
Using ethernet@3,02000000 device
TFTP from server 10.0.2.15; our IP address is 10.0.2.3
Filename 'vexpress-v2p-ca9.dtb'.
Load address: 0x61a00000
Loading: ###
1.9 MiB/s
done
Bytes transferred = 14081 (3701 hex)
smc911x: MAC 52:54:00:12:34:56
=>
when try to boot using bootz cmd
=> bootz 0x61000000
Kernel image @ 0x61000000 [ 0x000000 - 0x4d0c50 ]
FDT and ATAGS support not compiled in
resetting ...
I have gone through same errors from Intel boards, ARM boards (HiKey board from Linaro), saying as update u-boot & add ENV_VARIABLES in u-boot, I have changed u-boot release: Prepare v2022.01, but no luck.
Upvotes: 0
Views: 2079
Reputation: 1
kernel decompression is working fine.
Done changes in Kernel menu config as CONFIG_CMDLINE="console=ttyAMA0"
& using bootz 0x61000000 - 0x61a00000
. It is printing Kernel decompression
=> tftp 0x61a00000 vexpress-v2p-ca9.dtb
smc911x: detected LAN9118 controller
smc911x: phy initialized
smc911x: MAC 52:54:00:12:34:56
Using ethernet@3,02000000 device
TFTP from server 10.0.2.15; our IP address is 10.0.2.3
Filename 'vexpress-v2p-ca9.dtb'.
Load address: 0x61a00000
Loading: ###
1.3 MiB/s
done
Bytes transferred = 14081 (3701 hex)
smc911x: MAC 52:54:00:12:34:56
=> bootz 0x61000000 - 0x61a00000
Kernel image @ 0x61000000 [ 0x000000 - 0x4d4418 ]
## Flattened Device Tree blob at 61a00000
Booting using the fdt blob at 0x61a00000
Loading Device Tree to 7fb20000, end 7fb26700 ... OK
Starting kernel ...
Booting Linux on physical CPU 0x0
Linux version 5.15.0 (satishg@satish) (arm-linux-gnueabihf-gcc (Linaro GCC 7.5-2019.12) 7.5.0, GNU ld (Linaro_Binutils-2019.12) 2.28.2.20170706) #4 SMP Tue Mar 21 12:09:42 IST 2023
CPU: ARMv7 Processor [410fc090] revision 0 (ARMv7), cr=10c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
OF: fdt: Machine model: V2P-CA9
OF: fdt: Ignoring memory block 0x80000000 - 0x80000004
Memory policy: Data cache writeback
Reserved memory: created DMA memory pool at 0x4c000000, size 8 MiB
OF: reserved mem: initialized node vram@4c000000, compatible id shared-dma-pool
cma: Reserved 16 MiB at 0x7e800000
Zone ranges:
Normal [mem 0x0000000060000000-0x000000007fffffff]
Upvotes: 0