ADLINK
Tec
hnology
Inc.
Confiden
tial.
2021-03-18
ROScube Pico BSP, version Release l4t-32.4.4-kernel-1.0.7
Please download ubuntu 20.04.1 base image from Ubuntu’s website.
com/ubuntu-base/releases/20.04.1/release/
. The binary link is at:
com/ubuntu-base/releases/20.04.1/release/ubuntu-base-20.04.1-base-arm64.tar.gz
Note:
Before customizing the rootfs, all these rootfs binaries should be downloaded from
their official website. ADLINK doesn’t provide them.
After you download rootfs binary successfully, put the binary under the driver package folder.
Then, run
./create_image.sh
.
$> cd <driver_package_path>
$> sudo ./create_image.sh nvidia_sample_rootfs
4.1.2 Modify Filesystem under Chroot
Users can chroot into filesystem, and install packages or put files to filesystem. That allows
user to put their software and configurations into rootfs.
Mount host environment to filesystem.
$> sudo apt update qemu-user-static
$> cd <driver package>
$> cd rootfs
$> sudo cp /usr/bin/qemu-aarch64-static usr/bin/
$> sudo mount --bind /dev/ dev/
$> sudo mount --bind /sys/ sys/
$> sudo mount --bind /proc/ proc/
# Copy host environment dns settings.
$> sudo cp /etc/resolv.conf etc/resolv.conf.host
$> sudo mv etc/resolv.conf etc/resolv.conf.saved
$> sudo mv etc/resolv.conf.host etc/resolv.conf
Now you can chroot into filesystem and modify filesystem.
$> sudo LC_ALL=C LANG=C.UTF-8 chroot . /bin/bash
$(chroot)> apt update
$(chroot)> apt install wget vim
# or you can install jetpack sdk
$(chroot)> apt install nvidia-l4t-jetson-multimedia-api=32.4.4-20201016123640
$(chroot)> apt install nvidia-jetpack
Once you finish modification, you can exit chroot environment by pressing ctrl+D. Then, re-
move cache files, e.g. apt cache to save storage space.
$(chrooot)> exit
(continues on next page)
22