Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
network_protocol_programming_lab:2_installdebiansd [2020/03/20 08:16] – [Microsoft Windows] rathke | network_protocol_programming_lab:2_installdebiansd [2022/04/18 16:59] (current) – [Boot the BeagleBone Black] fangenoorth | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Debian Installation on SD Card for BeagleBone Black ====== | ====== Debian Installation on SD Card for BeagleBone Black ====== | ||
- | In order to install Linux on the BeagleBone Black an image of the operating system and a SD Card is needed. The operating system image will be burned | + | In order to install Linux on the BeagleBone Black, an image of the operating system and a SD Card is needed. The operating system image will be flashed |
- | Afterwards the SD card will be plugged | + | Afterwards the SD card will be plugged |
- | ===== Getting Debian Image ===== | + | |
- | First, download an image to your computer. | + | ===== Getting |
+ | First, download an image to your computer. | ||
This image contains: | This image contains: | ||
- | * Distribution Debian | + | * Distribution Debian |
- | * Linux Kernel Version 4.4.54-ti- revision | + | * Linux Kernel Version 4.19.94-ti revision |
- | Due to the fact, that the provided images are changing frequently in time and sometimes older images are no more available, this image [[http://kn-pr.tkn.tu-berlin.de/ppl/ | + | Download |
+ | |||
+ | |||
+ | If you like newer or other images, you can find them [[https:// | ||
+ | |||
+ | In most cases, the image-file | ||
- | If you like newer or other images, you can find them at [[https:// | ||
- | In most cases, the image-file is compressed in an archive, indicated by the .xz suffix at the end of the file name (e.g. debian-wheezy-7.2-armhf-3.8.13-bone30.img.xz). | ||
===== Decompressing and Burning the Debian Image ===== | ===== Decompressing and Burning the Debian Image ===== | ||
- | In the past the process of decompressing an burning the image was a very complex task. First have to decompress the image with an appropriate compression tool, next the SD card needs some portions with appropriate parameters. These portions need to be formatted. And than the image can be flashed. The tools for this process are depend from the operation system. | + | In the past the process of decompressing an burning the image was a very complex task. First you had to decompress the image with an appropriate compression tool, next the SD card needed |
- | Today the process | + | Today the process |
- | After starting | + | After starting |
< | < | ||
Line 32: | Line 36: | ||
< | < | ||
- | At my computer the image file is located at the download folder. Note, that the image file is in compresses | + | At my computer the image file is located at the download folder. Note, that the image file is in compressed |
- | In the nextstep, press the button " | + | In the next step, press the button " |
< | < | ||
Line 44: | Line 48: | ||
At this point, we have built an SD card with the Linux operating system and can now start booting the BeagleBone Black. | At this point, we have built an SD card with the Linux operating system and can now start booting the BeagleBone Black. | ||
+ | If you are an experienced linux user you can also manually decompress the image and use a tool like '' | ||
+ | ===== Boot the BeagleBone Black ===== | ||
+ | To test, if everything is working correctly you must insert the SD card into the card slot of the BeagleBone Black and boot. During boot, press the "// | ||
+ | **IMPORTANT: | ||
- | ==== Mac OS X ==== | + | Otherwise the BeagleBone Black will not boot from your SD card, but from the internal |
- | After you have inserted the SD card into the computer the next steps are: | + | |
- | * Open the Terminal App. | + | |
- | * Determine device id of SD card by typing <code bash> sudo diskutil list</ | + | |
- | / | + | |
- | #: TYPE NAME SIZE IDENTIFIER | + | |
- | 0: GUID_partition_scheme *1.0 TB disk0 | + | |
- | 1: EFI EFI 209.7 MB disk0s1 | + | |
- | 2: Apple_HFS iMac HD 999.3 GB disk0s2 | + | |
- | 3: Apple_Boot Recovery HD 650.0 MB disk0s3 | + | |
- | / | + | |
- | #: TYPE NAME SIZE IDENTIFIER | + | |
- | 0: GUID_partition_scheme *1.0 TB disk1 | + | |
- | 1: EFI EFI 209.7 MB disk1s1 | + | |
- | 2: Apple_HFS Backup 500.1 GB disk1s2 | + | |
- | 3: Apple_HFS TKN Daten 499.1 GB disk1s3 | + | |
- | 4: Apple_Boot Recovery HD 650.0 MB disk1s4 | + | |
- | / | + | |
- | #: TYPE NAME SIZE IDENTIFIER | + | |
- | 0: FDisk_partition_scheme *8.0 GB disk2 | + | |
- | 1: Windows_FAT_16 NO NAME 67.1 MB disk2s1 | + | |
- | 2: Linux 7.9 GB disk2s2 | + | |
- | </ | + | |
- | + | ||
- | * Unmount the SD card\\ If the SD card contains a file system, you must unmount the SD card: <code bash> | + | |
- | sudo diskutil umount / | + | |
- | </ | + | |
- | + | ||
- | * Now, you can copy the Image to the SD card. Just type <code bash> | + | |
- | sudo dd bs=1M if=~/ | + | |
- | </ | + | |
- | + | ||
- | ==== Linux ==== | + | |
- | After inserting the SD card into your computer open terminal window (e.g. Terminal, Konsole or Xterm) depending on the distribution and your personal choice. | + | |
- | + | ||
- | To determine the device id of the SD card type <code bash> | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | + | ||
- | Disk / | + | |
- | Units: sectors of 1 * 512 = 512 bytes | + | |
- | Sector size (logical/ | + | |
- | I/O size (minimum/ | + | |
- | + | ||
- | + | ||
- | Disk / | + | |
- | Units: sectors of 1 * 512 = 512 bytes | + | |
- | Sector size (logical/ | + | |
- | I/O size (minimum/ | + | |
- | + | ||
- | + | ||
- | Disk / | + | |
- | Units: sectors of 1 * 512 = 512 bytes | + | |
- | Sector size (logical/ | + | |
- | I/O size (minimum/ | + | |
- | Disklabel type: dos | + | |
- | Disk identifier: 0x00000000 | + | |
- | + | ||
- | Device | + | |
- | / | + | |
- | </ | + | |
- | + | ||
- | At the end of the list above, the device id of the SD card is shown. In my case it is the device ''/ | + | |
- | + | ||
- | If the SD card has been mounted by your operating system, the cards must be unmounted, in my case< | + | |
- | + | ||
- | Use the device of the SD card to flush the image by executing the command <code bash> sudo dd bs=1M if=./ | + | |
- | + | ||
- | === Boot the BeagleBone Black === | + | |
- | To test, if everything is correct you must insert the SD card into the card slot of the BeagleBone Black and boot. During boot, press the "// | + | |
- | + | ||
- | If the boot process is finished, you can establish a ssh connection to the BeagleBone Black. The needed ssh client is already installed at Linux or Mac OS. If you are using MS Windows you have to install a client by yourself. A popular client is Putty, that can be obtain from http:// | + | |
- | + | ||
- | Using Linux or Mac OS, open a terminal application and enter the following command: <code bash>ssh debian@beaglebone</ | + | |
- | + | ||
- | In the above example a ssh connection to the host **beaglebone** with the userid **debian** will be established. The ssh client will ask you for the password of the user **debian** that is also **debian**. | + | |
- | + | ||
- | For MS Windows users, please follow the instructions of Putty. | + | |
+ | To verify that your Linux image booted successfully, | ||
< | < |