-
Notifications
You must be signed in to change notification settings - Fork 5
Prepare SD card
Christian Strobel edited this page Jul 28, 2016
·
9 revisions
- plug the SD Card to a card reader (mounted to an Linux PC x86_64)
- Find the name of the mounted SD card using e.g.
lsblk
- This description assumes that the device of the SD card is /dev/sdb
- Ensure that no partition of the SD card is mounted
sudo umount -lf $(mount -l | grep /dev/sdb | awk '{print $3}')
- Create partition table and ext2-partition on SD card
echo -e "o\nn\np\n1\n\n\nw" | sudo fdisk /dev/sdb
sudo mkfs.ext2 /dev/sdb1
- Download latest rootfs:
https://github.com/Fraunhofer-IIS/ogre/releases
- Unpack rootfs and copy to SD-card
sudo mount /dev/sdb1 /mnt/
sudo tar -xvf ubuntu_14.04_arm_fhg_$(VERSION).tar.gz
sudo rsync -aHP ./rootfs/ /mnt/
sync
sudo umount /mnt
- Mount the SD card and boot
- Set the correct hostname in /etc/hostname (regarding DNS)