Open fnoop opened 4 years ago
Created image using nvidia script but how to expand filesystem on first boot?
bzip2 reduces end img from 20g to 8g, definitely worth doing for distribution. etcher can write bz2 images
./rootfs/usr/lib/nvidia/resizefs/nvresizefs.sh Edit: This works, need to set a script to run on first boot
Notice: /Stage[main]/Maverick_web::Maverick_api/Install_python_module[api-aiosqlite]/Python::Pip[api-aiosqlite]/Exec[pip_install_api-aiosqlite]/returns: Collecting aiosqlite
Notice: /Stage[main]/Maverick_web::Maverick_api/Install_python_module[api-aiosqlite]/Python::Pip[api-aiosqlite]/Exec[pip_install_api-aiosqlite]/returns: Downloading https://files.pythonhosted.org/packages/bf/c5/25e3430a0f00b57a92d6ac485e5fb480a5ecbaa87069afcaf0a4d201d092/aiosqlite-0.13.0-py3-none-any.whl
Notice: /Stage[main]/Maverick_web::Maverick_api/Install_python_module[api-aiosqlite]/Python::Pip[api-aiosqlite]/Exec[pip_install_api-aiosqlite]/returns: Installing collected packages: aiosqlite
Notice: /Stage[main]/Maverick_web::Maverick_api/Install_python_module[api-aiosqlite]/Python::Pip[api-aiosqlite]/Exec[pip_install_api-aiosqlite]/returns: Found existing installation: aiosqlite 0.10.0
Notice: /Stage[main]/Maverick_web::Maverick_api/Install_python_module[api-aiosqlite]/Python::Pip[api-aiosqlite]/Exec[pip_install_api-aiosqlite]/returns: Uninstalling aiosqlite-0.10.0:
Notice: /Stage[main]/Maverick_web::Maverick_api/Install_python_module[api-aiosqlite]/Python::Pip[api-aiosqlite]/Exec[pip_install_api-aiosqlite]/returns: Successfully uninstalled aiosqlite-0.10.0
Notice: /Stage[main]/Maverick_web::Maverick_api/Install_python_module[api-aiosqlite]/Python::Pip[api-aiosqlite]/Exec[pip_install_api-aiosqlite]/returns: ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: 'top_level.txt'
Notice: /Stage[main]/Maverick_web::Maverick_api/Install_python_module[api-aiosqlite]/Python::Pip[api-aiosqlite]/Exec[pip_install_api-aiosqlite]/returns: Consider using the `--user` option or check the permissions.
Error: 'pip3 --log /tmp/pip.log install --upgrade --upgrade --disable-pip-version-check aiosqlite' returned 1 instead of one of [0]
Error: /Stage[main]/Maverick_web::Maverick_api/Install_python_module[api-aiosqlite]/Python::Pip[api-aiosqlite]/Exec[pip_install_api-aiosqlite]/returns: change from 'notrun' to ['0'] failed: 'pip3 --log /tmp/pip.log install --upgrade --upgrade --disable-pip-version-check aiosqlite' returned 1 instead of one of [0]
Notice: /Stage[main]/Maverick_web::Maverick_api/File[/etc/systemd/system/maverick-api@.service]: Dependency Exec[pip_install_api-aiosqlite] has failures: true
mkdir nano_build
cd nano_build
wget -O https://developer.nvidia.com/embedded/r32-2-3_Release_v1.0/t210ref_release_aarch64/Tegra210_Linux_R32.2.3_aarch64.tbz2 |tar -xjspf -
rsync -avz <maverick.nano.sd.root>/* Linux_for_Tegra/rootfs
Mount dd image as vmdk: https://askubuntu.com/a/802491
Todo:
Jetpack 4.4 still has local cuda and visionworks repos.
OpenCV build recipe: https://github.com/mdegans/nano_build_opencv
Rebased on Jetpack 4.4, moved to online repos away from local repos, removed various doc/dev packages. bz2 image down to 6.8gb, uncompressed still over 16b so needs a 32gb card. Probably as good as we'll get, as the nvidia stuff is so massive.
Rebase of jetpack 4.4 works fine until image created: https://forums.developer.nvidia.com/t/jetpack-4-4-created-image-with-jetson-disk-image-creator-sh-will-not-boot-past-nvidia-logo/122815 https://forums.developer.nvidia.com/t/how-to-determine-which-nano/122822
Jetpack 4.4 rebase image recreation works fine now with latest driver pack. Have to specify nano hardware revision, set to B01 (300). Don't know if this means it won't work at all on previous versions.
Still need to expand FS on boot.
Added firstboot mechanism (~/software/maverick/bin/maverick-firstboot.sh) which for tegra platform calls the root partition/fs expansion and notifies user that it needs a reboot to activate.
Image creation script doesn't work with latest 32.6.1 (Jetpack 4.6) release. https://docs.nvidia.com/jetson/archives/l4t-archived/l4t-3261/index.html#page/Tegra%20Linux%20Driver%20Package%20Development%20Guide/flashing.html#wwpID0E0PI0HA https://developer.nvidia.com/embedded/linux-tegra-r3261 https://docs.nvidia.com/jetson/archives/l4t-archived/l4t-3261/index.html#page/Tegra%20Linux%20Driver%20Package%20Development%20Guide/quick_start.html#wwpID0EAAPNHA
I am curious what does this image file in this statement refers to. Where I can download this image?
Write the image files to the SD card (no need to uncompress if you use Etcher)
Nano sd card has lots of odd small partitions that breaks the createimage.sh script: