Hi guys,
I’m trying to install the rootfs on an external SD card. However, I’m facing some problems. I know, there are a lot of forum threads about rootfs on external devices, but I couldn’t find one which solved my problem or has the same error pattern.
Used Hardware:
I’m using an EverFocus eNVP-JNX-IV-V0008, which has a NVIDIA Jetson Xavier NX-Modul inside.
I’m using a 64 GB SD card plugged into the SD card slot of the device.
Executed Steps:
If I use the standard installation of JetPack (rootfs on the internal eMMC) the SD card appears as /dev/sda
on the Jetson.
To install the rootfs on the external SD card I followed this guide: Jetson/L4T/Boot From External Device - eLinux.org
# Step 1
# Download L4T Driver Package (BSP) and Sample Root Filesystem
# L4T Driver Package (BSP): https://developer.nvidia.com/embedded/l4t/r32_release_v6.1/t186/jetson_linux_r32.6.1_aarch64.tbz2
# Sample Root Filesystem: https://developer.nvidia.com/embedded/l4t/r32_release_v6.1/t186/tegra_linux_sample-root-filesystem_r32.6.1_aarch64.tbz2
# Step 2
# Extract L4T Driver Package (BSP)
sudo tar xpf Tegra_Linux_Sample-Root-Filesystem_R32.6.1_aarch64.tbz2
# Step 3
# Extract Sample Root Filesystem
cd Linux_for_Tegra/rootfs/
sudo tar xpf ../../Tegra_Linux_Sample-Root-Filesystem_R32.6.1_aarch64.tbz2
# Step 4
# Execute apply_binaries.sh
cd ..
sudo ./apply_binaries.sh
# Step 5
# Create GPT for SD card
sudo gdisk /dev/sdb
# "o"
# "n"
# "1"
# First sectors: "40M"
# Last sectors: Press enter
# Filesystem (default: Linux filsystem): Press enter
# "c"
# Partition's name: "PARTLABEL"
# "w"
# Step 6
# Create partition on SD card
sudo mkfs.ext4 /dev/sdb1
# Step 7
# Mount partiton of SD card
sudo mount /dev/sdb1 /mnt
# Step 8
# Copy rootfs to SD card
cd rootfs/
sudo tar -cpf - * | ( cd /mnt/ ; sudo tar -xpf - )
# Step 9
# Unmount SD card
sudo umount /mnt
# Step 10
# Put SD card into Jetson
# Step 11
# Flash Jetson with rootfs on external device sda1
cd ..
sudo ./flash.sh jetson-xavier-nx-devkit-emmc sda1
# Step 12
# Follow System Configuration instructions on Jetson
# PROBLEM
# Blank and frozen Ubuntu screen after System Configuration step "APP Partition Size"
Problem:
So after the selection of the “APP Partition Size” I get a blank and frozen Ubuntu screen. I let it run over night and nothing changed. After a hard power off and power on I get an error message with: mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or helper program, or other error.
If I try to mount the SD card on my host pc again, I get the same error message.
System Configuration of APP Partition Size:
Interesting, he detects the 64GB SD card.
Blank and frozen Ubuntu screen after selection of APP partition size:
Error messages after hard power off and reboot of the Jetson:
Can somebody help me please and tell me what I’m doing wrong?
Many thanks in advance,
Kilian