Failed to mount /dev/mmcblk0 on the /mnt

jetpack 6.1, host:ubuntu22.04
执行sudo bash ./nvsdkmanager_flash.sh --storage nvme0n1p1后,提示烧录OK,如下信息:
Writing bct_backup.img (parittion: BCT-boot-chain_backup) into /dev/mtd0
Sha1 checksum matched for /mnt/internal/bct_backup.img
Writing /mnt/internal/bct_backup.img (32768 bytes) into /dev/mtd0:66715648
Copied 32768 bytes from /mnt/internal/bct_backup.img to address 0x03fa0000 in flash
[ 196]: l4t_flash_from_kernel: Warning: skip writing reserved_partition partition as no image is specified
Writing gpt_backup_secondary_3_0.bin (parittion: secondary_gpt_backup) into /dev/mtd0
Sha1 checksum matched for /mnt/internal/gpt_backup_secondary_3_0.bin
Writing /mnt/internal/gpt_backup_secondary_3_0.bin (16896 bytes) into /dev/mtd0:66846720
Copied 16896 bytes from /mnt/internal/gpt_backup_secondary_3_0.bin to address 0x03fc0000 in flash
Writing qspi_bootblob_ver.txt (parittion: B_VER) into /dev/mtd0
Sha1 checksum matched for /mnt/internal/qspi_bootblob_ver.txt
Writing /mnt/internal/qspi_bootblob_ver.txt (109 bytes) into /dev/mtd0:66912256
Copied 109 bytes from /mnt/internal/qspi_bootblob_ver.txt to address 0x03fd0000 in flash
Writing qspi_bootblob_ver.txt (parittion: A_VER) into /dev/mtd0
Sha1 checksum matched for /mnt/internal/qspi_bootblob_ver.txt
Writing /mnt/internal/qspi_bootblob_ver.txt (109 bytes) into /dev/mtd0:66977792
Copied 109 bytes from /mnt/internal/qspi_bootblob_ver.txt to address 0x03fe0000 in flash
Writing gpt_secondary_3_0.bin (parittion: secondary_gpt) into /dev/mtd0
Sha1 checksum matched for /mnt/internal/gpt_secondary_3_0.bin
Writing /mnt/internal/gpt_secondary_3_0.bin (16896 bytes) into /dev/mtd0:67091968
Copied 16896 bytes from /mnt/internal/gpt_secondary_3_0.bin to address 0x03ffbe00 in flash
[ 196]: l4t_flash_from_kernel: Successfully flash the qspi
[ 196]: l4t_flash_from_kernel: Flashing success
[ 196]: l4t_flash_from_kernel: The device size indicated in the partition layout xml is smaller than the actual size. This utility will try to fix the GPT.
Flash is successful
Reboot device
Cleaning up…
Log is saved to Linux_for_Tegra/initrdlog/flash_1-6_0_20250327-144009.log
root@wel-22-04-5:/home/wel/nvidia/Linux_for_Tegra#

重启系统后,系统并没有完成进入,接串口查看打印信息,报:Failed to mount /dev/mmcblk0 on the /mnt
打印信息如下:

[ 16.863654] pci_bus 0007:00: root bus resource [io 0x300000-0x3fffff] (bus address [0x3e100000-0x3e1fffff])
[ 16.863657] pci_bus 0007:00: root bus resource [mem 0x3228000000-0x322fffffff] (bus address [0x40000000-0x47ffffff])
[ 16.863662] pci_bus 0007:00: root bus resource [bus 00-ff]
[ 16.863663] pci_bus 0007:00: root bus resource [mem 0x3000000000-0x3227ffffff pref]
[ 16.863704] pci 0007:00:00.0: [10de:229a] type 01 class 0x060400
[ 16.863848] pci 0007:00:00.0: PME# supported from D0 D3hot
[ 16.869064] pci 0007:00:00.0: PCI bridge to [bus 01-ff]
[ 16.869158] pcieport 0007:00:00.0: Adding to iommu group 6
[ 16.870527] pcieport 0007:00:00.0: PME: Signaling with IRQ 194
[ 16.872177] pcieport 0007:00:00.0: AER: enabled with IRQ 194
[ 16.872456] pci_bus 0007:01: busn_res: [bus 01-ff] is released
[ 16.872547] pci 0007:00:00.0: Removing from iommu group 6
[ 16.872556] pci_bus 0007:00: busn_res: [bus 00-ff] is released
[ 16.887916] nvme 0004:01:00.0: Adding to iommu group 5
[ 16.888106] nvme nvme0: pci function 0004:01:00.0
[ 16.888164] nvme 0004:01:00.0: enabling device (0000 → 0002)
[ 16.893985] nvme nvme0: Shutdown timeout set to 8 seconds
[ 16.912329] nvme nvme0: allocated 64 MiB host memory buffer.
[ 17.018191] nvme nvme0: 6/0/0 default/read/poll queues
[ 17.045307] nvme0n1: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15
[ 17.071003] Finding OTA work dir on external storage devices
[ 17.079288] mount /dev/nvme0n1p1 /mnt
[ 17.090944] EXT4-fs (nvme0n1p1): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
[ 17.092851] is_boot_part_for_disk_enc /dev/nvme0n1p1 /mnt
[ 17.103796] OTA work directory /mnt/ota_work is not found on /dev/nvme0n1p1
[ 17.129299] Finding OTA work dir on internal storage device
[ 17.130546] mount /dev/mmcblk0 /mnt
[ 17.133470] Failed to mount /dev/mmcblk0 on the /mnt
[ 17.134656] Failed to run “mount_ota_work_partition /dev/mmcblk0 /mnt”
[ 17.135937] OTA work directory is not found on internal and external storage devices
bash-5.1# uname -a
Linux (none) 5.15.148-rt-tegra #3 SMP PREEMPT_RT Thu Mar 27 09:43:02 CST 2025 aarch64 aarch64 aarch64 GNU/Linux
bash-5.1#

One never mounts “mmcblk0”. The first partition is “mmcblk0p1”. This is normally the root filesystem (“rootfs”), and it is mounted as “/”, not “/mnt”. Some sort of customizing has taken place which is completely wrong.

In the case of using an NVMe there are a lot of eMMC partitions used in boot, and then an initial ramdisk (“initrd”) is used to transfer control over to the NVMe; the eMMC does not get mounted. The flash method must be altered so that the boot content in the eMMC points to the initrd, and then the initrd which is flashed points at the NVMe.

I am guessing someone flashed this incorrectly without the initrd flash to use the NVMe, and then tried to edit mounting somehow. The RT kernel itself suggests more customization, and although this would not change the above comments, it does tend to say the installation of the RT kernel might have been performed incorrectly.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.