[Aboriginal] Failures with qemu-1.6

Patrick Lauer patrick at gentoo.org
Tue Oct 1 04:34:40 PDT 2013


Testing 1.2.5 on amd64 (Gentoo) with qemu 1.6.0 the mips64, sh4, armv6l
and sparc targets fail to pass the smoketest.

In a way I'm not really surprised how fragile things are, but ... sigh :)

armv6l seems to have a problem with the virtual sound hardware in qemu:

system-image-armv6l $ ./run-emulator.sh
Uncompressing Linux... done, booting the kernel.
ALSA lib
/chroot/build/portage/media-libs/alsa-lib-1.0.27.2/work/alsa-lib-1.0.27.2/src/pcm/pcm.c:7843:(snd_pcm_recover)
underrun occurred

sparc seems to have a problem in the compiler:

(sparc:1) /home # df
Filesystem      1K-blocks       Used Available Use% Mounted on
/home               54032          0     54032   0% /home
/tmp                54032          0     54032   0% /tmp
dev                 53984          0     53984   0% /dev
/dev/root           28416      28416         0  100% /
(sparc:1) /home # gcc -s /usr/src/thread-hello2.c -lpthread -o /tmp/hello
/tmp/hello
exit
(sparc:1) /home # /tmp/hello

/tmp/hello: symbol '__gcc_personality_v0': can't handle reloc type 0x17
(sparc:1) /home # exit

mips64 seems to have invalid executables:

9pnet: Installing 9P2000 support
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
VFS: Mounted root (squashfs filesystem) readonly on device 3:0.
Freeing YAMON memory: 956k freed
Freeing unused kernel memory: 172K (ffffffff80475000 - ffffffff804a0000)
Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000a

sh4 kernel-oopses at boot:

------------[ cut here ]------------
WARNING: at 8c144a00 [verbose debug info unavailable]

CPU: 0 PID: 1 Comm: swapper Not tainted 3.11.0 #1
task: 8fc2c000 ti: 8fc2e000 task.ti: 8fc2e000
PC  : 8c144a00 SP  : 8fc2fe64 SR  : 40008000 TEA : 00000000
R0  : 00000034 R1  : 00000000 R2  : 40008000 R3  : 00000000
R4  : 00000000 R5  : 8c278e04 R6  : 00000002 R7  : 00001aac
R8  : 8c255d50 R9  : 8c24b280 R10 : 8fd5c480 R11 : 8c143bf4
R12 : 8fd5c4fc R13 : 00000000 R14 : 00000000
MACH: 00000000 MACL: 0000005b GBR : 00000000 PR  : 8c144a00

Call trace:
 [<8c14d2d0>] 0x8c14d2d0
 [<8c0125e0>] 0x8c0125e0
 [<8c146d0a>] 0x8c146d0a
 [<8c0125e0>] 0x8c0125e0
 [<8c147060>] 0x8c147060
 [<8c14701c>] 0x8c14701c
 [<8c145a78>] 0x8c145a78
 [<8c145834>] 0x8c145834
 [<8c1463fc>] 0x8c1463fc
 [<8c147338>] 0x8c147338
 [<8c268094>] 0x8c268094
 [<8c26809e>] 0x8c26809e
 [<8c268094>] 0x8c268094
 [<8c25d14e>] 0x8c25d14e
 [<8c0adc60>] 0x8c0adc60
 [<8c032e2a>] 0x8c032e2a
 [<8c25d5a4>] 0x8c25d5a4
 [<8c25d0c0>] 0x8c25d0c0
 [<8c25d5b4>] 0x8c25d5b4
 [<8c25d0c0>] 0x8c25d0c0
 [<8c1f4c46>] 0x8c1f4c46
 [<8c0125e0>] 0x8c0125e0
 [<8c03b3ac>] 0x8c03b3ac
 [<8c0171e8>] 0x8c0171e8
 [<8c03b3ac>] 0x8c03b3ac
 [<8c1f4c3c>] 0x8c1f4c3c

---[ end trace 3132d0e6181e7e96 ]---
Uniform Multi-Platform E-IDE driver

and later just fails to start init:

Type exit when done.
(sh4:1) /home # sd 0:0:0:0: [sda] Synchronizing SCSI cache
reboot: Restarting system
Unauthorized access
qemu: fatal: Trying to execute code outside RAM or ROM at 0xa0000000

pc=0xa0000000 sr=0x700000f0 pr=0x8c01331c fpscr=0x00080000
spc=0x8c013322 ssr=0x10000000 gbr=0x00462448 vbr=0x8c018000
sgr=0x8fe75e88 dbr=0x00000000 delayed_pc=0x8c01331c fpul=0x00000000
r0=0x400080f1 r1=0x80000001 r2=0x10000000 r3=0x00000000
r4=0x000000f0 r5=0x8c278e04 r6=0x00000006 r7=0x00002cd8
r8=0x01234567 r9=0x00000000 r10=0xfee1dead r11=0x01234567
r12=0x00000000 r13=0x00000000 r14=0x7bf3bd04 r15=0x8fe75e88
r16=0x00000000 r17=0xffffff0f r18=0x40008000 r19=0x40008000
r20=0x8fe75d2c r21=0x00000000 r22=0x00000000 r23=0x8fe74000
./run-emulator.sh: line 7: 24407 Aborted                 qemu-system-sh4
-M r2d -nographic -no-reboot -kernel zImage -hda hda.sqf -append
"root=/dev/sda rw init=/sbin/init.sh panic=1
PATH=$DISTCC_PATH_PREFIX/bin:/sbin console=ttySC1 noiotrap HOST=sh4
$KERNEL_EXTRA" $QEMU_EXTRA -monitor null -serial null -serial stdio



More information about the Aboriginal mailing list