Post by jj0 on Jan 2, 2022 11:04:59 GMT
How to run the Maxi the64 binary on the Mini to enable VIC-20 emulation on the Mini:
[/ul]
Tested with v1.6.1. I haven't tested it extensively, only started some games and VIC-20 mode to see if they worked.
Background: The Maxi uses the Allwinner/sunxi DISP2 driver, the Mini uses the Allwinner/sunix DISP driver. Both present themselves as '/dev/disp' but DISP2 is not backwards compatible to DISP. The Mini's 'the64' binary actually does not use the /dev/disp at all, but the Maxi's 'the64' binary does, and it crashes when it tries to set the video mode this way on the Mini. However it only uses it once to set the video mode and if can't open the /dev/disp device it doesn't crash but it continuous to run. So renaming /dev/disp ensures that 'the64' can't open it. It also runs fine on the Maxi doing the same thing.
spannernick this should allow you to simplify PCUAE a bit as by doing this (by overmounting instead of copying stuff in steps 1 and 2) you don't need to distinguish between the Mini and Maxi for the Carousel.
- Copy the Maxi's /usr/lib/vic20emu.rgl to the Mini's /usr/lib
- Copy the Maxi's /usr/lib/c64emu.rgl to the Mini's /usr/lib
Note this overwrites the Mini's c64emu.rgl - I tried both versions and both seem to work for the Mini's and Maxi's 'the64' binary - Copy the Maxi's /usr/lib/vice/VIC20 to the Mini's /usr/lib/vice
This is to get the VIC-20 ROM's on the Mini - Copy the Maxi's /usr/lib/vice/C64/theC64-sym-CLASSIC.vkm to the Mini's /usr/lib/vice/C64
- Rename the /dev/disp device:
mount -t devtmpfs devtmpfs /dev
mount -t devpts devpts /dev/pts
mkdir /dev/shm
mount -t tmpfs tmpfs /dev/shm
mv /dev/disp /dev/disp-not
[ -e /tmp/usbdrive/ ] && rm /tmp/usbdrive
[ ! -e /dev/usbdrive/ ] && ln -s /tmp/usbdrive /dev/
By mounting devtmpfs the rename is temporary only until the next reboot. - Run the Maxi's 'the64' binary instead of the Mini's. It will complain about not being able to open /dev/disp, but will run fine anyway:
[/ul]
Tested with v1.6.1. I haven't tested it extensively, only started some games and VIC-20 mode to see if they worked.
Background: The Maxi uses the Allwinner/sunxi DISP2 driver, the Mini uses the Allwinner/sunix DISP driver. Both present themselves as '/dev/disp' but DISP2 is not backwards compatible to DISP. The Mini's 'the64' binary actually does not use the /dev/disp at all, but the Maxi's 'the64' binary does, and it crashes when it tries to set the video mode this way on the Mini. However it only uses it once to set the video mode and if can't open the /dev/disp device it doesn't crash but it continuous to run. So renaming /dev/disp ensures that 'the64' can't open it. It also runs fine on the Maxi doing the same thing.
spannernick this should allow you to simplify PCUAE a bit as by doing this (by overmounting instead of copying stuff in steps 1 and 2) you don't need to distinguish between the Mini and Maxi for the Carousel.