Linux xz file2/17/2024 ![]() To write the image to eMMC, execute: # xz -cd ubuntu-12.04-armhf-minfs-*.img.xz > /dev/mmcblk1 (ubuntu 12.04 in this example) as full root: sudo su. While booted from an external SD card, the internal eMMC will be available as /dev/mmcblk1. To install the image to the internal eMMC, boot from the SD card. The image can be resized to take advantage of additional space available on larger microSD cards. This size also allows it to fit on a wide variety of external microSD cards. ![]() The prebuilt image is sized to exactly 1832MB to allow it to fit into the BeagleBone Black’s on-board 2GB NAND storage. It is good practice to execute apt-get update to refresh the package cache before trying to apt-get install packages. Once you have booted, execute apt-get update to update the package cache and then apt-get upgrade to refresh any updated binaries. Ubuntu Logon ubuntu-armhf as user ubuntu with a password of ubuntu login as: password: ubuntuĭebian Wheezy Logon debian-armhf as user debian with a password of debian login as: password: debian To boot from microSD, you’ll need to hold down the USER/BOOT button (located near the microSD end of the board) while powering-on the device. ![]() NOTE: The beaglebone black will try to boot the internal Angstrom image by default. That’s it - sync and remove the microSD card. We can now mount the media to make any changes before we boot the filesystem (optional). You can either apt-get install parted or just remove and reinstall the microSD card at this point.Ĭonfirm that two partitions now exist on the target microSD card. Note that if you don’t have partprobe installed the above command will fail. ubuntu-13.10-armhf-minfs-*.img.xz > /dev/sdXĪfter the file has finished decompressing and copying to the microSD card, we’ll need to reload the partition table. If you are following along booted from the BeagleBone, the device will be /dev/mmcblk1 instead. NOTE: If you are using an x86 Ubuntu distribution to write the microSD, the device will be seen as /dev/sdX. It is recommended that you download VirtualBox and do this procedure using an Ubuntu VM to make the process easier. Run an ls /dev/sd* command before and after inserting the microSD card so you can be 100% certain which device is your microSD. Please be careful as writing this image to the wrong device will corrupt the device. Also note these instructions apply equally to mmc block devices such as /dev/mmcblk0 if you are booted to a device with an SD card. This example decompresses the image and writes it to the sdb device. Install xz if you do not already have it. Many of the downloads available here are 100MB or more in size, so differences in compression algorithms add up quickly. LZMA compression (7z aka xz) is used throughout this site. Once you have downloaded an Ubuntu or Debian. ubuntu-13.04-armhf-minfs-*.img.xz | sudo tee /dev/sdX > /dev/null Elevating the shell to root via sudo su allows this command to succeed.Īn alternative is to use the tee command and elevate it with sudo like so: xz -cd. ![]() The operation will fail with a permission denied error. Using the sudo command will only elevate the first xz command to root, which we don’t actually need, and leave the /dev/sdX stdout redirection to be performed by your unelevated shell (the part we do need root permissions to do). Second, the shell takes the byte stream and writes it to the specified device. First, xz is executed to perform a decompression operation and emit the byte stream to stdout. ubuntu-13.04-armhf-minfs-*.img.xz > /dev/sdX is actually two commands. Why does it matter? A command like sudo xz -cd. The instructions presented here assume full root sudo su permissions and not sudo permissions alone. All instructions are executed as full root sudo su These instructions assume you have downloaded the most recent prepackaged BeagleBone Black image.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |