On Thu, May 30, 2019 at 09:02:54PM +0200, Karel Gardas wrote:
>
> Peter,
>
> thanks for the answer, however for me the most important bit is still
> mising.
>
> 1) how do you invoke qemu to load bsd?
Hi Karel,
Sorry for excluding this.
aimee# more qemu-start.sh
/usr/local/bin/qemu-system-ppc64 -machine mac99 -cpu 970fx -nographic \
-cdrom /tmp/install64.iso -boot order=d -m 2048 -d guest_errors
> 2) how do you connect qemu and gdb in order to debug bsd?
I don't. Inside Qemu I use the monitor control-a / show registers to see the
registers and in the code I set markers in floating point registers to see
where in the code it's been. It's ghetto I know.
> 3) how do you cross-compile to ppc64? -- see my next email about issues with
> cross-compilation.
Here is what aimee vm does:
--------->
aimee# which cc
/usr/cross/aim64/usr/cross/aim64/usr/bin/cc
aimee# head /usr/cross/aim64/usr/cross/aim64/usr/bin/cc
#!/bin/sh
#exec /usr/local/bin/clang --target=powerpc64-unknown-openbsd6.4 ${@}
exec /usr/local/bin/powerpc64-unknown-openbsd-gcc -m64 ${@}
exit 0
<------------
And the gcc I built a port for very very early last year (probably in august).
All the steps (albeit kinda messy) should be described in the following diary:
https://centroid.eu/enhancedrisc/
I'm just looking right now check out 2018-07-30 entry.
> Thanks,
> Karel
Best Regards,
-peter
> On 5/30/19 6:09 PM, Peter J. Philipp wrote:
> > Hi Karel,
> >
> > Last weeks answer wasn't to my own satisfaction, so I'll try again.