[Aboriginal] what fork should I use to get q800-capable qemu-m68k?

Warren Postma warren.postma at gmail.com
Sun Dec 20 05:53:55 PST 2015


Because my tastes run towards antiquity, when I found out about aboriginal
linux, I of course wanted to try the oldest  and weirdest port you had.
Nobody has gotten Linux running on an emulated PDP-11 yet, have they?

The  m68k q800 emulator appears from the mailing list archive to be a
simulation of the last of the 68030 macintosh systems, so that's the first
one I downloaded, natch.   Back in the day, my sympathies were with the
680x0 Amigas, but that's close enough.

Google, salva nos inscius, lead me to
https://github.com/vivier/qemu-m68k/wiki which hath  branch 680x0-v2.3.0

I have never built qemu from sources, so I found this ask ubuntu-question
to get me past the DTC lib issue, I manually grabbed the tarball and
unzipped into the /dtc/ folder...

http://askubuntu.com/questions/424329/error-trying-to-compile-qemu-from-source

After that ./configure complains about broken libtool, but completes. make
got in a fair way, and the compile breaks while building
aarch64-linux-user.  I am too much of a noob to figure out what to
configure out to make this go away or if aarch64-linux-user is some basic
part of this qemu build:

/home/wpostma/qemu-m68k/linux-user/syscall.c: In function
‘host_to_target_data_link_rtattr’:
/home/wpostma/qemu-m68k/linux-user/syscall.c:1513:10: error:
‘IFLA_LINK_NETNSID’ undeclared (first use in this function)
     case IFLA_LINK_NETNSID:
          ^
/home/wpostma/qemu-m68k/linux-user/syscall.c:1513:10: note: each undeclared
identifier is reported only once for each function it appears in
/home/wpostma/qemu-m68k/rules.mak:57: recipe for target
'linux-user/syscall.o' failed
make[1]: *** [linux-user/syscall.o] Error 1
Makefile:173: recipe for target 'subdir-aarch64-linux-user' failed
make: *** [subdir-aarch64-linux-user] Error 2

Just judging from the folder name, linux-user, this appears to be a part of
the userland application-emulation features in qemu itself.

The line that breaks is an undefined identifier, so I commented it out,
it's a "case
IFLA_LINK_NETNSID:" inside a large list of cases.

After that I get stuck here, which I have no idea how to fix:

  CC    alpha-linux-user/linux-user/syscall.o
/home/wpostma/qemu-m68k/linux-user/syscall.c:270:5: error:
‘TARGET_O_ACCMODE’ undeclared here (not in a function)
   { TARGET_O_ACCMODE,   TARGET_O_WRONLY,    O_ACCMODE,   O_WRONLY,    },
     ^
/home/wpostma/qemu-m68k/linux-user/syscall.c:270:25: error:
‘TARGET_O_WRONLY’ undeclared here (not in a function)
   { TARGET_O_ACCMODE,   TARGET_O_WRONLY,    O_ACCMODE,   O_WRONLY,    },
                         ^
/home/wpostma/qemu-m68k/linux-user/syscall.c:271:25: error: ‘TARGET_O_RDWR’
undeclared here (not in a function)
   { TARGET_O_ACCMODE,   TARGET_O_RDWR,      O_ACCMODE,   O_RDWR,      },
                         ^
/home/wpostma/qemu-m68k/rules.mak:57: recipe for target
'linux-user/syscall.o' failed
make[1]: *** [linux-user/syscall.o] Error 1
Makefile:173: recipe for target 'subdir-alpha-linux-user' failed
make: *** [subdir-alpha-linux-user] Error 2
wpostma at WarrenDELLWKSTN:~/qemu-m68k$


Has anyone built an m68k q800 capable qemu on Ubuntu?  Are there any more
tricks? Could I just turn off some element of the qemu build and get the
qemu cpu-emulator up without any userland emulation? I'm guessing this
syscall mechanism is actually central to qemu + aboriginal-linux
functionality as it's probably how I/O occurs inside the emulator.

Cheers.

Warren
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/aboriginal-landley.net/attachments/20151220/2c894505/attachment.htm>


More information about the Aboriginal mailing list