The following steps are intended for those familiar with hardware modification and software configuration. Many of these steps will be automated in a future script.
Proceed only if you are confident in your understanding of the process. Incorrect handling may permanently damage your scooter.
Important: This procedure is recommended only for individuals who are experienced with soldering and the Linux command line. If you are not, it is advisable to wait for more user-friendly instructions.
- Soldering Connection: Attach pins to the MDB. Ensure a connection through a 3.3V USB UART interface.
- Interrupt Boot Process: Within the first few seconds of powering on, repeatedly press the [space] bar until a command prompt appears.
- Connection: Connect your Linux-based computer to the Mini USB port on the MDB.
- Bootloader Command: At the bootloader prompt, type
ums 0 mmc 1. - Disk Identification: Identify the external disk drive and its partition. This can be achieved using
fdiskorlsblkcommands. - Mount Partition: Proceed to mount the identified partition.
- Locate OStree Branch: Determine the OStree branch in use by examining the
bootargsparameter within/boot/loader/uEnv.txt. - Copy NFC Directory: Transfer the contents of the
nfc/ostreedirectory from this repository into your OStree root directory. - Copy NFC Directory: Transfer the
nfc/homedirectory from this repository into the MDB root directory. - Service Symlink Removal: Delete the
etc/systemd/system/multi-user.target.wants/unu-keycard.servicesymlink from your OStree root. - Root Password Update: Update the root password in your OStree's
etc/shadowfile with a password of your choosing.
After completing these steps, unmount the drive, reconnect the DBC to the MDB, and restart the MDB. Upon reboot, you should be able to access the serial console using your new password.
Stop the reunu-keycard service via executing systemctl stop reunu-keycard.service. To obtain NFC readings, run nfcDemoApp poll. When you scan the token intended as the "master key", note the UID. Add this UID to /home/root/reunu-keycard/master_uids.txt using vi or cat.
Following a system reboot, you will be able to use the master key for registering keycards.