Writing /var/lib/dokuwiki/data/meta/tutorials/ros2_for_debian_buster_rpi3_with_qemu.meta failed
tutorials:ros2_for_debian_buster_rpi3_with_qemu
This is an old revision of the document!
Table of Contents
ROS2 in Debian Buster for RaspberryPi 3 with Qemu in 64bits (aarch64)
Increasing image size
- Stop the qemu virtual machine
- Resize image file
qemu-img resize 20190628_raspberry-pi-3_buster_PREVIEW.img +2G
- Start the qemu virtual machine:
qemu-system-aarch64 -M virt -m 1024 -smp 4 -cpu cortex-a53 -kernel boot_debian_raspberrypi/vmlinuz-4.19.0-5-arm64 -initrd boot_debian_raspberrypi/initrd.img-4.19.0-5-arm64 -drive if=none,file=20190628_raspberry-pi-3_buster_PREVIEW.img,format=raw,id=hd -append 'root=/dev/vda2 noresume' -device virtio-blk-pci,drive=hd -device virtio-net-pci,netdev=mynet -netdev user,id=mynet,hostfwd=tcp::2222-:22 -device virtio-rng-pci -no-reboot -nographic
- Resize the current second partition to use all the new free space:
sudo cfdisk
- Use the resize option to extend the second partition
- Now extend the ext4 filesystem
sudo resize2ext /dev/vda2
Starting ROS2 Installation
- All these instructions are for running inside of Qemu virtual machine
- Login as root in the qemu virtual machine
- Install system dependencies:
apt-get install sudo
- Create a new user:
adduser pi
- Add new user to sudo group
adduser pi sudo
- Logout and login as “pi” user
- Consider upgrading the system:
sudo apt-get upgrade
- After the upgrade, reboot the virtual machine and login as “pi”
- Follow ROS2 building instructions for Dashing:
https://index.ros.org/doc/ros2/Installation/Dashing/Linux-Development-Setup/
tutorials/ros2_for_debian_buster_rpi3_with_qemu.1572926184.txt.gz · Last modified: 2022/09/20 00:08 (external edit)