CM3计算板装系统
1、CM3計(jì)算板簡(jiǎn)介
把樹莓派搬到自己的產(chǎn)品中,一種和樹莓派基礎(chǔ)功能一模一樣的板卡,并對(duì)相關(guān)管腳擴(kuò)展,完成產(chǎn)品級(jí)的功能設(shè)計(jì)和硬件設(shè)計(jì)。板卡如下圖所示,運(yùn)行的是Linux操作系統(tǒng)。
2、下載鏡像
CM3有多種內(nèi)存搭配,常見的SD卡+EMMC板載存儲(chǔ)設(shè)備。運(yùn)行的Linux鏡像應(yīng)該不超過CM3的存儲(chǔ)容量,并預(yù)留一定的空間,我這塊CM3是常規(guī)的4GB EMMC,因此下載鏡像選擇為L(zhǎng)ite版本。
下載鏡像地址:https://www.raspberrypi.org/downloads/raspbian/
選擇最新的Raspbian Buster Lite。
3、燒寫鏡像
網(wǎng)上購(gòu)買一個(gè)CM3底板,用于燒寫鏡像。例如,微雪的底板:
燒錄鏡像步驟:
3.1、把CM3識(shí)別成存儲(chǔ)設(shè)備
3.1.1 CM3 boot方式配置
The 4GB eMMC Flash device on CM3 is directly connected to the primary BCM2837 SD/eMMC interface. These connections are not accessible on the module pins. On CM3L this SD interface is available on the SDX pins. When initially powered on, or after the RUN pin has been held low and then released, the BCM2837 will try to access the primary SD/eMMC interface. It will then look for a file called bootcode.bin on the primary partition (which must be FAT) to start booting the system. If it cannot access the SD/eMMC device or the boot code cannot be found, it will fall back to waiting for boot code to be written to it over USB; in other words, its USB port is in slave mode waiting to accept boot code from a suitable host.
A USB boot tool is available on Github which allows a host PC running Linux to write the BCM2837 boot code over USB to the module. That boot code then runs and provides access to the SD/eMMC as a USB mass storage device, which can then be read and written using the host PC. Note that a Raspberry Pi can be used as the host machine. For those using Windows a precompiled and packeged tool is available. For more information see here.
The Compute Module has a pin called EMMC_DISABLE_N which when shorted to GND will disable?the SD/eMMC interface (by physically disconnecting the SD_CMD pin), forcing BCM2837 to boot from USB. Note that when the eMMC is disabled in this way, it takes a couple of seconds from powering up for the processor to stop attempting to talk to the SD/eMMC device and fall back to booting from USB.?
意思很明顯了,CM3啟動(dòng)的時(shí)候要去FAT文件系統(tǒng)找bootcode.bin,找不到就等待USB接口接收該文件。當(dāng)前EMMC沒有系統(tǒng),所以不使能EMMC。具體需要將EMMC_DISABLE_N管腳接地。對(duì)應(yīng)下圖則將J4的跳線帽接到GND。
3.1.2 安裝驅(qū)動(dòng)識(shí)別CM3
(1)安裝rpiboot_setup.exe 驅(qū)動(dòng)。
(2)用USB連接CM3底板SLAVE接口。
(3)安裝之后,雙擊打開軟件,自動(dòng)識(shí)別CM3并下發(fā)bootcode.bin。電腦出現(xiàn)外部存儲(chǔ)設(shè)備,此時(shí)CM3已經(jīng)被抽象成存儲(chǔ)設(shè)備。
3.2、SDFormatter格式化CM3
同樹莓派格式步驟。
3.3、Win32DiskImager制作Linux鏡像
同樹莓派格式步驟。
總結(jié)
- 上一篇: Delphi版 熊猫烧香源码
- 下一篇: execjs执行js出现window对象