- Programming the BeagleBone
- Yogesh Chavan
- 551字
- 2021-07-23 14:36:44
Installing Debian image on SD card
Now that we know about our hardware, let's install OS. BeagleBone Black and BeagleBone Green come preinstalled with Debian Linux on emmc storage. BeagleBone also supports booting from OS on an SD card. We can use a Linux setup on emmc for exercises in this book. But it is always better to install OS on SD card and boot from it. In case of wrong configuration or unexpected problems, we can install Debian image and start hacking again. Also, it is easier to copy-paste files on an SD card to and from a PC.
The BeagleBone wiki page has a list of OS known to be working on BeagleBone: packages. It uses APT (Advanced Package Tool) using deb packages. You can get more information about Debian on http://debian.org.
When you connect the BeagleBone to PC using a USB-to-MiniUSB cable (Micro USB for BeagleBone Green), it gets detected as flash drive providing you with a local copy of the documentation and drivers. When it autoruns, you see the browser opened with the page Getting Started. If it does not run automatically, you can manually open the file START.htm
or the README.htm
file inside the BeagleBone flash drive. This HTML page has a link to "update to latest software" on the left. It provides you with a step-by-step procedure with screenshots to install the latest prebuilt Debian image on the SD card. An online version of this webpage is available at: http://beagleboard.org/getting-started#update.
Here are the important steps to install the latest Debian image on the BeagleBone:
- Latest supported images of all BeagleBoards are available at http://beagleboard.org/latest-images. Download a Debian image for BeagleBone on your PC. The same image works on BeagleBone White, Black and Green.
- These images come compressed. On a Linux system you can extract it by right-clicking to that file in File Manager and choosing Extract Here. On a Windows system, you can extract it using decompression software
7zip
available at http://www.7-zip.org/download.html.You will get an.img
file. This is an actual image file. - Now, attach a USB SD card reader to your PC. On a Linux system, you can dump an
.img
file on a SD card using the following command. You need to find the name of the SD card file. You can get that indmesg
command output after you connect the SD card. Put that in place ofsdx
in command.sudo dd if=<image_file_path> of=/dev/sdx bs=1M ; sync
On a Windows system, you can use image writer software like win32diskimager, available at: http://sourceforge.net/projects/win32diskimager/files/latest/download. Select
.img
file and correct the SD card drive and click the write button to dump an image on the SD card.Note
Warning: Be careful when selecting and formatting SD card files/drives. The wrong selection for an SD card can damage data on other storage.
- Push this SD card in the BeagleBone SD card holder. Give power supply to the board and you should see user LEDs blinking, which is sign of life. In case you want to make sure you are booting from the SD card and not emmc, get shell access (covered in the next topic) and edit files
/etc/issue
and/etc/issue.net
on the SD card to print that it is booted from the SD card. The next the shell access login will show that message.
- 我的第一本算法書
- HTML5游戲開發(fā)案例教程
- Hands-On JavaScript High Performance
- 零基礎(chǔ)學MQL:基于EA的自動化交易編程
- Building Serverless Applications with Python
- Hands-On Automation Testing with Java for Beginners
- HoloLens與混合現(xiàn)實開發(fā)
- Illustrator CC平面設(shè)計實戰(zhàn)從入門到精通(視頻自學全彩版)
- Managing Microsoft Hybrid Clouds
- Akka入門與實踐
- Building Apple Watch Projects
- 微信公眾平臺開發(fā)最佳實踐
- Django 3 Web Development Cookbook
- Unity AI Game Programming(Second Edition)
- 物聯(lián)網(wǎng)及低功耗藍牙5.x高級開發(fā)