Does anyone have any ideas for removing the need for the serial connection after the software is copied to usb? I have been tempted to try to substitute the serial adaptor with an arduino, have it monitor the serial output, interrupt it and send the command to boot from usb. Not sure how well it would work though.
Unless any linux users know how to permanently change the boot path to the usb?
As we can't access the u-boot section of the nand (it isn't exposed by the nand.ko driver) we can't change the default nand_root. However you can make it somewhat easier. The following method remounts the /usr/share/the64 /var/lib/the64directories from the ones on the nand to the ones on the USB stick root filesystem. If the USB stick isn't inserted at boot time then the ones on the nand will still be used. You need to have the USB stick inserted before powering on and you can only remove it after you've powered off. So you lose the option to remove the USB stick on the fly to change the THEC64-drive8.d64.
Step 1: Copy the nandb root filesystem to a USB stick partition 2 as covered in the first post. You don't actually need the entire root filesystem, only the two thec64 directories and their subdirectories, so if you're feeling adventurous you can only copy these and modify the following instructions accordingly. Step 2: Login as root and create a directory to mount the 2nd partition on: mount -o remount,rw / mkdir /mnt2Step 3: Edit /etc/fstab, adding the red lines: # <file system> <mount pt> <type> <options> <dump> <pass> /dev/root / ext2 rw,noauto 0 1 /dev/sda2 /mnt2 ext4 rw,nofail 0 0 /mnt2/usr/share/the64 /usr/share/the64 none bind,nofail 0 0 /mnt2/var/lib/the64 /var/lib/the64 none bind,nofail 0 0 proc /proc proc defaults 0 0 devpts /dev/pts devpts defaults,gid=5,mode=620 0 0 tmpfs /dev/shm tmpfs mode=0777 0 0 tmpfs /tmp tmpfs mode=1777 0 0 tmpfs /run tmpfs mode=0755,nosuid,nodev 0 0 sysfs /sys sysfs defaults 0 0
They don't need to be where I put them, the can also be at the end so you could add them by:
cat >>/etc/fstab <ENTER> /dev/sda2 /mnt2 ext4 rw,nofail 0 0 /mnt2/usr/share/the64 /usr/share/the64 none bind,nofail 0 0 /mnt2/var/lib/the64 /var/lib/the64 none bind,nofail 0 0 <CTRL-D> but please make a backup of /etc/fstab first.
Step 4: Add an /etc/init.d startup script to ensure the directories are mounted:
cat >/etc/init.d/S98mountusb mount -a <CTRL>-D chmod a+x /etc/init.d/S98mountusb Edit 16th May: The above works fine but more properly should be:
cat >/etc/init.d/S98mountusb #!/bin/sh mount -a <CTRL>-D chmod a+x /etc/init.d/S98mountusb
You could even try if this works from a FAT32 partition which would make it easier to add game snapshots from Windows
works great thanks, though it would not work with the FAT32. but none the less all is good..cheers
but may add /mnt2/usr/lib/vice /usr/lib/vice none bind,nofail 0 0 at some point