Replies: 1 comment 1 reply
-
Did you see the notes about disabling automount at https://github.com/OE4T/meta-tegra/wiki/initrd-flashing-support#prerequisites ? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I added a custom partition to my meta-tegra image and tried to reflash an NVME that had been flashed with the old image that did not contain the partition.
During step 4, it looks like the partitions on the nvme are mounted to my host, and then they cannot be unmounted, so the process fails.
More specifically, in make-sdcard.sh, the sgdisk command on line 451 passes, and then the 'partprobe' fails on line 458 fails. The devices cannot be removed after that.
I am currently using scarthgap and bmap-tools. I tried disabling bmap to see if that was causing some issue, but that wasn't it.
Here is the output of initrd-flash. Thank you for any advice you may have.
Starting at 2025-01-27T15:38:24-05:00 Machine: my-orin-nx-bot Rootfs device: nvme0n1p1 Found Jetson device in recovery mode at USB 3-3 == Step 1: Signing binaries at 2025-01-27T15:38:24-05:00 == == Step 2: Boot Jetson via RCM at 2025-01-27T15:38:43-05:00 == Found Jetson device in recovery mode at USB 3-3 == Step 3: Sending flash sequence commands at 2025-01-27T15:38:47-05:00 == Waiting for USB storage device flashpkg from cd3ff804.......[/dev/sda] Device size in blocks: 262144 Unmounted /dev/sda. == Step 4: Writing partitions on external storage device at 2025-01-27T15:39:11-05:00 == Waiting for USB storage device nvme0n1 from cd3ff804...[/dev/sda] Creating partitions [03] name=A_kernel start=0 size=262144 sectors [04] name=A_kernel-dtb start=0 size=1536 sectors [05] name=A_reserved_on_user start=0 size=64768 sectors [06] name=B_kernel start=0 size=262144 sectors [07] name=B_kernel-dtb start=0 size=1536 sectors [08] name=B_reserved_on_user start=0 size=64768 sectors [09] name=recovery start=0 size=163840 sectors [10] name=recovery-dtb start=0 size=1024 sectors [11] name=esp start=0 size=131072 sectors [12] name=recovery_alt start=0 size=163840 sectors [13] name=recovery-dtb_alt start=0 size=1024 sectors [14] name=esp_alt start=0 size=131072 sectors [15] name=UDA start=0 size=819200 sectors [16] name=reserved start=0 size=982016 sectors [17] name=Logs start=0 size=127343750 sectors [01] name=APP start=0 size=328125000 sectors [02] name=APP_b start=0 size=328125000 sectors Writing partitions Writing boot.img (size=35270656) to /dev/sda3 (size=134217728)... Creating BMAP file in /tmp/tmp.123EU5nANx Writing kernel_tegra234-my-orin-nx-bot.dtb (size=220343) to /dev/sda4 (size=786432)... Creating BMAP file in /tmp/tmp.JRyc8A90Qz Writing boot.img (size=35270656) to /dev/sda6 (size=134217728)... Creating BMAP file in /tmp/tmp.5RKl94OfZN Writing kernel_tegra234-my-orin-nx-bot.dtb (size=220343) to /dev/sda7 (size=786432)... Creating BMAP file in /tmp/tmp.DGJKdjqw9Q Writing esp.img (size=67108864) to /dev/sda11 (size=67108864)... Creating BMAP file in /tmp/tmp.Bh15Hd6vnl ERR: unmount /media/me/1ccd1905-65db-42d9-9092-6ab2cf96fa8e /media/me/c536235b-4d62-4131-95b3-bdbf9639bea7 on device /dev/sda1 failed ERR: device unmount failed Error powering off drive: The drive in use: Device /dev/sda17 is mounted (udisks-error-quark, 14) Error powering off drive: The drive in use: Device /dev/sda17 is mounted (udisks-error-quark, 14) Error powering off drive: The drive in use: Device /dev/sda17 is mounted (udisks-error-quark, 14) ERR: write failure to external storage at 2025-01-27T15:39:34-05:00 Cleaning up... Temporary directory cleaned up.
Beta Was this translation helpful? Give feedback.
All reactions