Hi, I am a newbie in Jetson development. I just got a wheeled robot with a Jetson TX2 NX card (4GB) with an NVME SSD.
After boot, the Jetson mounts the NVME SSD as rootfs, despite the fact that the /boot/extlinux/extlinux.conf configuration file specifies the eMMC as rootfs:
APPEND ${cbootargs} root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 console=ttyS0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0
In order to repair the NVME file system with fsck, I need to mount another rootfs (for example the eMMC), but I don’t seem to be able to do that just with the extlinux.conf setting. (This would be also useful for making a clone of the NVME file system, after unmounting it).
Normally, I would physically remove the NVME SSD card, but this is difficult, since it would require dismantling the robot.
I made a log of the boot sequence using an UART console (attached in full) – it seems that the eMMC is initially correctly mounted as rootfs (as instructed in extlinux.conf – lines 1258-1266), but later on, it is remounted to /media/jetson/EMMC6 and the NVME is mounted as rootfs.
Line 1258:[ 6.123422] Root device found: mmcblk0p1
Line 1264:[ 6.168728] Found dev node: /dev/mmcblk0p1
Line 1265:[ 6.193567] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: (null)
Line 1266:[ 6.205320] Rootfs mounted over mmcblk0p1
…
Line 1298:[ 6.874000] EXT4-fs (mmcblk0p1): re-mounted. Opts: (null)
Line 1299:[ 7.065043] EXT4-fs (nvme0n1p1): warning: maximal mount count reached, running e2fsck is recommended
Line 1583:* /dev/nvme0n1p1 will be checked for errors at next reboot *****
Line 1621:/dev/nvme0n1p1 on / type ext4 (rw,relatime,discard,errors=remount-ro,stripe=8191,data=ordered)
Line 1626:/dev/mmcblk0p1 on /media/jetson/EMMC6 type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2)
What can I do to prevent the NVME to be mounted as rootfs? Who does that? (I would like to avoid flashing the eMMC, because after booting from the eMMC and repairing the NVME filesystem, I would like to revert to the NVME rootfs.)
Since the card uses U-boot, would booting from an USB drive work?
(I also attach a log of the U-boot environment – using printenv at the U-boot prompt.)
Thank you in advance!
nvidia_developer_forum LOG.txt (108.8 KB)