TS-4900 Yocto getting started: Difference between revisions
No edit summary |
No edit summary |
||
Line 15: | Line 15: | ||
<source lang=bash> | <source lang=bash> | ||
# Assuming your SD card is /dev/sdc with one partition | # Assuming your SD card is /dev/sdc with one partition | ||
mkfs.ext4 /dev/sdc1 | mkfs.ext4 -O ^64bit,^metadata_csum /dev/sdc1 | ||
mkdir /mnt/sd/ | mkdir /mnt/sd/ | ||
sudo mount /dev/sdc1 /mnt/sd/ | sudo mount /dev/sdc1 /mnt/sd/ | ||
Line 25: | Line 25: | ||
To rewrite the eMMC, boot to the SD card. You cannot rewrite the emmc while it is mounted elsewhere, or used to currently boot the system. Once booted to the SD, run: | To rewrite the eMMC, boot to the SD card. You cannot rewrite the emmc while it is mounted elsewhere, or used to currently boot the system. Once booted to the SD, run: | ||
<source lang=bash> | <source lang=bash> | ||
mkfs.ext4 /dev/mmcblk2p1 | mkfs.ext4 -O ^64bit,^metadata_csum /dev/mmcblk2p1 | ||
mkdir /mnt/emmc | mkdir /mnt/emmc | ||
mount /dev/mmcblk2p1 /mnt/emmc | mount /dev/mmcblk2p1 /mnt/emmc |
Revision as of 13:16, 14 February 2017
Yocto itself is a set of scripts and tools used to build a custom Distribution. In our default images we try to include all the common utilities requested by users. Rebuilding Yocto should not be necessary for many users, but is possible if needed. Once installed the default user is "root" with no password.
Our Yocto rootfs is available here:
Yocto Image | Download Link |
ts-x11-image | Download |
To write this to an SD card, first partition the SD card to have one large ext4 partition. See the guide here for more information. Once it is formatted, extract this tar with:
# Assuming your SD card is /dev/sdc with one partition
mkfs.ext4 -O ^64bit,^metadata_csum /dev/sdc1
mkdir /mnt/sd/
sudo mount /dev/sdc1 /mnt/sd/
sudo tar -jxf ts-x11-image-tsimx6-latest.rootfs.tar.bz2 -C /mnt/sd
sudo umount /mnt/sd
sync
To rewrite the eMMC, boot to the SD card. You cannot rewrite the emmc while it is mounted elsewhere, or used to currently boot the system. Once booted to the SD, run:
mkfs.ext4 -O ^64bit,^metadata_csum /dev/mmcblk2p1
mkdir /mnt/emmc
mount /dev/mmcblk2p1 /mnt/emmc
wget -qO- ftp://ftp.embeddedarm.com/ts-socket-macrocontrollers/\
ts-4900-linux/distributions/yocto/jethro/ts-x11-image-tsimx6-\
latest.rootfs.tar.bz2 | tar xj -C /mnt/emmc/
umount /mnt/emmc
sync
The same commands can be used to write SATA by substituting /dev/mmcblk2p1 with /dev/sda1.