Mainline Linux Image 5.2 for BananaPi M64
Pre-release
Pre-release
Kernel 5.2
Install to SD CARD
-
Make it executable
sudo chmod +x flash_sdcard_m64.sh
sudo chmod +x format_sd_mainline.sh -
Format the SD card or the mmc device
sudo ./format_sd_mainline.sh /dev/sdX (where X is your device letter)
Usage:
./flash_sdcard_m64.sh (SD CARD: /dev/sdX where X is your sd card letter or /dev/mmcblkY where Y your device number)
- Flash
sudo ./flash_sdcard_m64.sh /dev/sdX (where X is your device letter)
Install to eMMC
Boot from the SD CARD and find the /dev/mmcblkY where Y is the number (0,1...,3) for the eMMC.
Format and Flash to eMMC (mmcblk2 when boot from SD CARD):
sudo ./format_sd_mainline.sh /dev/mmcblk2
sudo ./flash_sdcard_m64.sh /dev/mmcblk2
You may need to adjust the device number when you boot from eMMC.
Edit the file boot.cmd and change root=/dev/mmcblk0p2 to root=/dev/mmcblk1p2 and recompile the file with:
cd /media/$USER/boot/
sudo mkimage -C none -A arm -T script -d boot.cmd boot.scr
sync
and reboot.