Re: First tests with qemu-m68k and sbuild
On 19/11/2015 11:40, John Paul Adrian Glaubitz wrote:
> Hi Laurent!
>
> I gave your working tree qemu-m68k [1] a try with sbuild today.
>
> I configured the sources as follows:
>
> $ ./configure --target-list=m68k-linux-user --static
see below.
> Then ran "make && make install".
>
> Then created an m68k chroot using:
>
> $ debootstrap --no-check-gpg --variant=buildd --foreign --arch=m68k
> unstable sid-m68k-sbuild ftp://ftp.debian-ports.org/debian
>
> And copied the static qemu-m68k into sid-m68k-sbuild/usr/bin:
>
> $ cp -av /usr/local/bin/qemu-m68k sid-m68k-sbuild/usr/bin
>
> And tried to chroot into the m68k environment:
>
> $ chroot .
> qemu: fatal: Illegal instruction: ebc0 @ f67e66d2
> D0 = 6ffffef5 A0 = f67fcf58 F0 = 7fff 4000000000000000
> D1 = 0000010a A1 = 00000000 F1 = 7fff 4000000000000000
> D2 = f6fff294 A2 = 00000000 F2 = 7fff 4000000000000000
> D3 = 0000000f A3 = f67e1000 F3 = 7fff 4000000000000000
> D4 = 00000000 A4 = 00000000 F4 = 7fff 4000000000000000
> D5 = 00000000 A5 = f67fd000 F5 = 7fff 4000000000000000
> D6 = 00000000 A6 = f6fff4e4 F6 = 7fff 4000000000000000
> D7 = 00000000 A7 = f6fff274 F7 = 7fff 4000000000000000
> PC = f67e66d2 SR = 0000 ----- Aborted
> $
By default cpu is "any", which is a coldfire target, you must add
"--m68k-default-cpu=m68040" on the configure line, or add a wrapper in
the chroot to call qemu-m68k with "-cpu m68040".
> I haven't figured out so far which instruction ebc0 is. I couldn't
> find it in any m68k documentation yet which I have skimmed through.
>
> Adrian
>
Laurent
Reply to: