qemu-arm
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-arm] [Qemu-devel] [PATCH v1 00/17] ARM big-endian and setend s


From: Andrew Baumann
Subject: Re: [Qemu-arm] [Qemu-devel] [PATCH v1 00/17] ARM big-endian and setend support
Date: Tue, 1 Mar 2016 21:34:44 +0000

> From: Peter Crosthwaite [mailto:address@hidden
> Sent: Tuesday, 1 March 2016 10:44 AM
> 
> On Mon, Feb 29, 2016 at 9:27 PM, Stefan Weil <address@hidden> wrote:
> > Am 18.01.2016 um 08:12 schrieb Peter Crosthwaite:
> >> Hi All,
> >>
> >> This patch series adds system-mode big-endian support for ARM. It also
> >> implements the setend instruction, and loading of BE binaries even in
> >> LE emulation mode.
> >>
> >> Based on Paolo's original work. I have moved all the BE32 related work
> >> to the back of the series. Multiple parties are interested in the BE8
> >> work just on its own, so that could potentially be merged w/o BE32.
> >> PMM requested BE32 be at least thought out architecturally, so this
> >> series sees BE32 functionality through.
> >>
> >> I have tested all of LE. BE8 and BE32 in both linux-user mode (for
> >> regressions) and system mode (BE8 and BE32 are new here).
> >> My test application is here, the README gives some example command
> >> lines you can run:
> >>
> >> https://github.com/pcrost/arm-be-test
> >>
> >> Regards,
> >> Peter
> >
> > It would be nice to get at least the emulation for 'setend' into the
> > next version, because it is needed for the Raspberry Pi emulation.
> >
> 
> BTW if you can link me binaries and a failing command line for the
> failing rPI work I can test it, I am currently doing my own standalone
> tests (of linux user as well).

Download and unzip:
https://downloads.raspberrypi.org/raspbian_lite_latest

Then, mount the boot partition, and grab a copy of kernel7.img. You should now 
be able to boot on a current qemu with:

qemu-system-arm -M raspi2 -kernel kernel7.img -sd 
2016-02-26-raspbian-jessie-lite.img -append "rw earlyprintk loglevel=8 
console=ttyAMA0 root=/dev/mmcblk0p2 rootwait" -serial stdio -d unimp

At present, this fails with:

[   10.535232] VFS: Mounted root (ext4 filesystem) on device 179:2.
[   10.729685] devtmpfs: mounted
[   10.805125] Freeing unused kernel memory: 416K (80776000 - 807de000)
[   17.317286] random: systemd urandom read with 6 bits of entropy available
arm: unimplemented setend
[   17.366656] Kernel panic - not syncing: Attempted to kill init! 
exitcode=0x00000004
[   17.366656]
[   17.384625] CPU: 0 PID: 1 Comm: systemd Not tainted 4.1.7-v7+ #817
[   17.395562] Hardware name: BCM2709
[   17.404738] [<80018440>] (unwind_backtrace) from [<80013e0c>] 
(show_stack+0x20/0x24)
[   17.419042] [<80013e0c>] (show_stack) from [<80558548>] 
(dump_stack+0x98/0xe0)
[   17.432237] [<80558548>] (dump_stack) from [<8055473c>] (panic+0xa4/0x204)
[   17.444761] [<8055473c>] (panic) from [<8002937c>] (do_exit+0xa0c/0xa64)
[   17.452507] [<8002937c>] (do_exit) from [<80029470>] 
(do_group_exit+0x50/0xcc)
[   17.462827] [<80029470>] (do_group_exit) from [<80033ed4>] 
(get_signal+0x2b0/0x6e0)
[   17.474429] [<80033ed4>] (get_signal) from [<80013194>] 
(do_signal+0x98/0x3ac)
[   17.482176] [<80013194>] (do_signal) from [<80013690>] 
(do_work_pending+0xb8/0xc8)
[   17.490129] [<80013690>] (do_work_pending) from [<8000f9e4>] 
(work_pending+0xc/0x20)
[   17.501020] ---[ end Kernel panic - not syncing: Attempted to kill init! 
exitcode=0x00000004
[   17.501020]

Cheers,
Andrew

reply via email to

[Prev in Thread] Current Thread [Next in Thread]