作業系統燒錄

Banana Pi M64內鍵有8G的eMMC flash可以使用,如果已插入sd卡,在開機時會優先載入sd的系統,如果要使用emmc內的系統,請先移除sd卡後重新開機即可。

燒錄Linux系統到microSD卡

在mac下使用etcher燒錄image到sd卡,進入官方網站 https://etcher.io 後在下拉選單的地方可以依自已的作業系統做選擇下載,etcher支援Windows、Linux及macOS,下載安裝好,執行後會出現如下的軟體畫面,整個軟體的操作非常簡單,就如畫面中的三個選項,依順執行就可以完成燒錄。

  • Select image:點選後會跳出檔案管理的視窗,請自行選擇要燒錄的檔案

燒錄Linux系統到eMMC Flash

在Banana Pi M64上要把Linux系統燒錄到eMMC Flash,要先完成燒錄Linux系統到microSD卡,因為要透過在microSD卡上的系統去執行,請依以下的步驟執行

pi@bpi-iot-ros-ai:~$ unzip 2018-01-05-ubuntu-16.04-mate-desktop-v1.0-bpi-m64-sd-emmc.img.zip
Archive:  2018-01-05-ubuntu-16.04-mate-desktop-v1.0-bpi-m64-sd-emmc.img.zip
  inflating: 2018-01-05-ubuntu-16.04-mate-desktop-v1.0-bpi-m64-sd-emmc.img

pi@bpi-iot-ros-ai:~$ ls
2018-01-05-ubuntu-16.04-mate-desktop-v1.0-bpi-m64-sd-emmc.img      Documents  Pictures  Templates
2018-01-05-ubuntu-16.04-mate-desktop-v1.0-bpi-m64-sd-emmc.img.zip  Downloads  Public    Videos
Desktop                                                            Music      Scratch
  • 查看目前的磁碟狀態,執行指令sudo fdisk -l,因為bpi有sd卡和emmc兩個磁碟,所以會看到/dev/mmcblk0(sd卡)和/dev/mmcblk1(emmc),那因為要燒錄到emmc,所以要對/dev/mmcblk1做處理,不要選錯。

pi@bpi-iot-ros-ai:~$ sudo fdisk -l
[sudo] password for pi:
Disk /dev/mmcblk0: 29.7 GiB, 31914983424 bytes, 62333952 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x40216a58

Device         Boot  Start      End  Sectors  Size Id Type
/dev/mmcblk0p1      204800   729087   524288  256M  c W95 FAT32 (LBA)
/dev/mmcblk0p2      729088 62333951 61604864 29.4G 83 Linux


Disk /dev/mmcblk1: 7.3 GiB, 7818182656 bytes, 15269888 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x40216a58

Device         Boot  Start      End  Sectors  Size Id Type
/dev/mmcblk1p1      204800   729087   524288  256M  c W95 FAT32 (LBA)
/dev/mmcblk1p2      729088 14940159 14211072  6.8G 83 Linux


Disk /dev/mmcblk1boot1: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mmcblk1boot0: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
  • 清除emmc,執行指令sudo dd if=/dev/zero of=/dev/mmcblk1

pi@bpi-iot-ros-ai:~$ sudo dd if=/dev/zero of=/dev/mmcblk1
dd: writing to '/dev/mmcblk1': No space left on device
15269889+0 records in
15269888+0 records out
7818182656 bytes (7.8 GB, 7.3 GiB) copied, 1477.85 s, 5.3 MB/s
  • 執行清除完成後,再執行指令sudo fdisk -l,會發現/dev/mmcblk1p1/dev/mmcblk1p2被刪除

pi@bpi-iot-ros-ai:~$ sudo fdisk -l
Disk /dev/mmcblk0: 29.7 GiB, 31914983424 bytes, 62333952 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x40216a58

Device         Boot  Start      End  Sectors  Size Id Type
/dev/mmcblk0p1      204800   729087   524288  256M  c W95 FAT32 (LBA)
/dev/mmcblk0p2      729088 62333951 61604864 29.4G 83 Linux


Disk /dev/mmcblk1: 7.3 GiB, 7818182656 bytes, 15269888 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mmcblk1boot1: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mmcblk1boot0: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
  • 執行燒錄指令sudo dd if=2018-01-05-ubuntu-16.04-mate-desktop-v1.0-bpi-m64-sd-emmc.img of=/dev/mmcblk1 bs=10MB,執行結果如下

pi@bpi-iot-ros-ai:~$ sudo dd if=2018-01-05-ubuntu-16.04-mate-desktop-v1.0-bpi-m64-sd-emmc.img of=/dev/mmcblk1 bs=10MB
[sudo] password for pi:
765+1 records in
765+1 records out
7650410496 bytes (7.7 GB, 7.1 GiB) copied, 919.927 s, 8.3 MB/s
pi@bpi-iot-ros-ai:~$
  • 執行關機指令sudo shutdown -h now

  • 移除sd卡

  • 開機進入燒錄在emmc的系統

Last updated