Qemu U-boot Standalone Program Hello World Crash

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Qemu U-boot Standalone Program Hello World Crash

1,191 次查看
pbasvat
Contributor I

Hi, 

I am trying to execute hello_world.bin file from u-boot command prompt, but when i am trying to do so i a getting crash

Here is details

1) command to launch qemu q-boot application

$ sudo /home/pbaswat/TechnicalWS/RPI-3B+/QEMU/Qemu/install/bin/qemu-system-ppc -m 1024 -M mpc8544ds -cpu MPC8548 -no-reboot -nographic -net nic,model=e1000 -net tap,ifname=vnet0,script=no,downscript=no u-boot.bin

In: serial
Out: serial
Err: serial
Net: e1000: 52:54:00:12:34:56
e1000#0
Hit any key to stop autoboot: 0
=> setenv ipaddr 192.168.31.11
=> setenv serverip 192.168.31.10
=> tftp 0x40000 hello_world.bin
Using e1000#0 device
TFTP from server 192.168.31.10; our IP address is 192.168.31.11
Filename 'hello_world.bin'.
Load address: 0x40000
Loading: #
1000 Bytes/s
done
Bytes transferred = 989 (3dd hex)
=> go 40000 this is test
## Starting application at 0x00040000 ...
Bad trap at PC: 3ff70c68, SR: 1606ed10, vector=400
**bleep**: 3FF70C68 XER: 20000000 LR: 00040018 REGS: 3fa6cbb0 TRAP: 0400 DAR: 00000000
MSR: 1606ed10 EE: 1 PR: 1 FP: 1 ME: 0 IR/DR: 01

GPR00: 3FF738BC 3FA6CCA0 3FB6DEB8 000403B4 3FB6ED7C 3FB6ED7C 3FA6CA18 00000020
GPR08: FFFFFFFE 00040000 3FB6DEB8 00000000 3FF9FBAC 00000000 00000000 00000000
GPR16: 00000000 3FB6ECF0 00000000 00000000 3FB6ED98 00000000 00000000 00002078
GPR24: 00000000 00000005 3FFF057C 3FB6ED78 00040000 00000005 3FFAF2FC 3FB6ED7C
Call backtrace:
00000005 3FF738BC 3FF86300 3FF7C1EC 3FF7C3A8 3FF7C950 3FF85938
3FF7A27C 3FF7D318 3FF946A4 3FF7D664 3FF7103C
Exception in kernel pc 3ff70c68 signal 0
### ERROR ### Please RESET the board ###

 

How to resolve this issue

0 项奖励
回复
3 回复数

1,180 次查看
yipingwang
NXP TechSupport
NXP TechSupport

It seems that it is abnormal that the PC register is 3ff70c68, you could define the following in include/configs/<platform>.h, then rebuild u-boot.

#define CONFIG_STANDALONE_LOAD_ADDR 0x40000

0 项奖励
回复

1,163 次查看
pbasvat
Contributor I

after adding below entry to file (/u-boot-2014.04/include/configs/MPC8548CDS.h)

#define CONFIG_STANDALONE_LOAD_ADDR 0x40000

issue still exists????????

 

0 项奖励
回复

1,156 次查看
yipingwang
NXP TechSupport
NXP TechSupport

In your qemu environment, the PC register is 0x3ff70c68, this is incorrect, it should be 0x40000.

It seems there is problem with "go" command in your qemu environment.

 

0 项奖励
回复