-
Download the "recommended mark ii" image
-
Uncompress it
unxz /path/to/img
- Burn it to your sdcard (replace of param with the correct device):
dd if=/path/to/img of=/dev/mmcblk0 bs=20M
Once done, we need to make some adjustements...
- mount sdcard partitions
sudo mount /dev/mmcblk0p1 /mnt/usb1
sudo mount /dev/mmcblk0p2 /mnt/usb2
-
To make it boot, change the root partition. To do so, edit
/mnt/usb1/boot/cmdline.txt
and change the root parameter toroot=/dev/mmcblk0p2
. -
Next, we need to disable a service that makes everything crash (boot loop when on the logo):
# Copy the squashfs and decompress it
cp /mnt/usb2/neon.squashfs /some/working/dir
cd /some/working/dir && sudo unsquashfs neon.squashfs
# Delete sj201 driver loading
sudo rm -f ./etc/systemd/system/multi-user.target.wants/sj201-reset.service ./etc/systemd/system/multi-user.target.wants/sj201-shutdown.service ./etc/systemd/system/multi-user.target.wants/sj201.service ./etc/systemd/system/pulseaudio.service.wants/sj201.service
# Recreate squashfs and replace the file on the SD card
sudo mksquashfs squashfs-root neon.squashfs
sudo cp neon.squashfs /mnt/usb2
- Now unmount partitions and try to boot !
sudo umount /mnt/usb{1,2}