Skip to contentSkip to conversation

qemu-arm problems.

Qemu-devel David Woodhouse 1 participant 1 message May 2, 2004

lore
Share & tools
lore
#0 lore raw

I'm having difficulty getting an ARM file system working with qemu 0.5.3
and 0.5.4, on either ppc or i386 host. I'm using a root file system
image from handhelds.org:
ftp://ftp.handhelds.org/familiar/familiar/releases/v0.7.2/install/files/bootstrap-v0.7.2-h3600.tar.bz2

Static executables (and /lib/ld-linux.so.2) work, but no dynamic executables load. I always see this:
qemu: uncaught target signal 11 (Segmentation fault) - exiting

Should I expect this to work? Any hints on debugging further than the following would be appreciated...

Starting program: /home/dwmw2/working/pkgs/qemu/qemu-0.5.4/arm-user/qemu-arm /usr/qemu-arm/bin/busybox

Program received signal SIGSEGV, Segmentation fault. 0x00a7c57c in code_gen_buffer ()
(gdb) bt
#0 0x00a7c57c in code_gen_buffer ()
#1 0x00161d80 in tbs ()
Cannot access memory at address 0xaf640 (gdb) x/20i 0x00a7c570

0xa7c570 <code_gen_buffer+1363760>:     mov    %esi,0x20(%ebp)
0xa7c573 <code_gen_buffer+1363763>:     mov    0x38(%ebp),%esi
0xa7c576 <code_gen_buffer+1363766>:     add    $0x4,%esi
0xa7c57c <code_gen_buffer+1363772>:     mov    (%esi),%ebx
0xa7c57e <code_gen_buffer+1363774>:     mov    %ebx,0x38(%ebp)
0xa7c581 <code_gen_buffer+1363777>:     mov    0x18(%ebp),%esi
0xa7c584 <code_gen_buffer+1363780>:     add    $0x20,%esi
0xa7c58a <code_gen_buffer+1363786>:     mov    (%esi),%ebx
0xa7c58c <code_gen_buffer+1363788>:     mov    %ebx,0xc(%ebp)
0xa7c58f <code_gen_buffer+1363791>:     mov    $0x0,%esi
0xa7c594 <code_gen_buffer+1363796>:     mov    %esi,0x0(%ebp)
0xa7c597 <code_gen_buffer+1363799>:     mov    0x4(%ebp),%esi
0xa7c59a <code_gen_buffer+1363802>:     mov    %esi,0x18(%ebp)
0xa7c59d <code_gen_buffer+1363805>:     mov    $0x10,%esi
0xa7c5a2 <code_gen_buffer+1363810>:     mov    0xc(%ebp),%ebx
0xa7c5a5 <code_gen_buffer+1363813>:     and    %esi,%ebx
0xa7c5a7 <code_gen_buffer+1363815>:     mov    %ebx,0x4c(%ebp)
0xa7c5aa <code_gen_buffer+1363818>:     mov    0x8(%ebp),%esi
0xa7c5ad <code_gen_buffer+1363821>:     mov    %esi,0x1c(%ebp)
0xa7c5b0 <code_gen_buffer+1363824>:     mov    0x2c(%ebp),%esi

(gdb) p/x $esi
$1 = 0x4

Signature · 1 line
dwmw2