Issue on external sdcard image generate by jetson-disk-image-creator.sh for jetson orin nano board

Hello
I tried to custom rootfs (jetpack 7.2) for my target jetson orin nano.
I download all required tarballs.

  • Jetson_Linux_R39.2.0_aarch64.tbz2
  • public_sources.tbz2
  • Tegra_Linux_Sample-Root-Filesystem_R39.2.0_aarch64.tbz2
    • x-tools.tbz2
      I use also script apply_binaries.sh to extract roofs to the right place
      I create a user with this script :

generate-sdcard.log (90.4 KB)

sudo ./tools/jetson-disk-image-creator.sh -o mon_image_fr.img -b jetson-orin-nano-devkit -d SD
you can see logs. I flash the sdcard with balena or tool dd, I get the same issue. ubuntu doesn’t boot

Hello @minkosimon!

Based on the title and content of your topic, it looks like it may receive better visibility and feedback in a different category. We took the liberty of moving it for you.

If this was an incorrect assessment, please send me a direct message.

Disclaimer: this moderation suggestion and message were generated with AI assistance.

Hi @minkosimon,

The boot photos show an EXT4 error on mmcblk0p1 and EOFError: marshal data too short. This suggests corruption in the root filesystem or SD card.

Were the Etcher and dd tests performed on the same physical microSD card? If so, please write the same image to a different known-good 64 GB or larger UHS-I microSD card with Etcher and check whether the issue repeats. Please note that this will erase the second card.

Thanks.

Hello @wichiu

The problem isn’t related to the SD card. It occurs after the SD card image is generated; it seems the script doesn’t handle the creation of the SD card partition very well.
My SD card has a capacity of 512 GB, and I flashed this image onto two different SD cards (512 GB each): I encountered the same problem.
But if I use this command line:

sudo ./tools/kernel_flash/l4t_initrd_flash.sh
–external-device mmcblk0p1
-c ./tools/kernel_flash/flash_l4t_external.xml
-p “-c ./bootloader/generic/cfg/flash_t234_qspi.xml”
–showlogs
–network usb0
jetson-orin-nano-devkit external

I’m able to flash my SD card in Jetson recovery mode.
I think the problem stems from the jetson-disk-image-creator.sh script; perhaps I’m not using the correct parameter.

Hi @minkosimon,

Thanks for testing two different SD cards. This makes a fault in one particular card less likely, but completing the initrd flash alone does not confirm that jetson-disk-image-creator.sh is the cause.

After using l4t_initrd_flash.sh, does the same SD card boot successfully to the login screen or desktop with the same prepared rootfs?

Thanks.

yes ,After using l4t_initrd_flash.sh,the same SD card boot successfully to the login screen with the same prepared rootfs.

Hi @minkosimon,

Thanks for confirming.

Since your initrd flash command also includes the QSPI flash configuration, could you now try booting the other SD card that still contains the original image created by jetson-disk-image-creator.sh? Does it still show the same issue?

Thanks.

Yes , I still get the same issue after try booting with sdcard that still contains the original image created by jetson-disk-image-creator.sh

Hi @minkosimon,

Thanks for confirming.

In your first post, you mentioned creating a user before generating the image. Could you share the exact command or script you used? In particular, was it l4t_create_default_user.sh?

This script skips oem-config, which normally resizes the APP partition on the first boot of an SD card image.

Thanks.

The command I use to create a default user account is: sudo ./l4t_create_default_user.sh -u simon -a–accept-license.
I had created an SD card image without creating a default user account, and I’m encountering the same problem.
I also retrieve the rootfs without modifying it, and when I create an SD card, I run into the same problem.

I would like to know if there’re another way to generate sdcard image? example with script flash.

Hi @minkosimon,

flash.sh does not generate a complete raw SD card image for Etcher.

Could you confirm whether the following documented command also fails on a native Ubuntu 20.04 or 22.04 host, rather than Docker or a VM?

And try this command:

sudo ./tools/jetson-disk-image-creator.sh -o sd-blob.img -b jetson-orin-nano-devkit -r 100

Thanks.

I get exactly the same issue after calling ```
sudo ./tools/jetson-disk-image-creator.sh -o sd-blob.img -b jetson-orin-nano-devkit -r 100 -d SD.

Hi @minkosimon,

  1. Please retry using the exact documented command below without adding -d SD:
 sudo ./tools/jetson-disk-image-creator.sh -o sd-blob.img -b jetson-orin-nano-devkit -r 100
  1. Also, please confirm whether you are running it directly on a native Ubuntu 20.04 or 22.04 host, not inside Docker or a VM. (You did not answer this question above.)

Thanks.

I’m working on PC, I don’t use docker
version of ubuntu is :
Distributor ID: Ubuntu
Description: Ubuntu 24.04.4 LTS
Release: 24.04
Codename: noble

Result of command:

sudo ./tools/jetson-disk-image-creator.sh -o sd-blob.img -b jetson-orin-nano-devkit -r 100
[sudo] Mot de passe de sminko :


 Jetson Disk Image Creation Tool     

Incorrect root filesystem device - Supported devices - SD, USB
Usage:
jetson-disk-image-creator.sh -o <sd_blob_name> -b -r -d
sd_blob_name - valid file name
board - board name. Supported boards are:
jetson-xavier-nx-devkit
jetson-agx-xavier-devkit
jetson-agx-orin-devkit
jetson-orin-nano-devkit
jetson-orin-nano-devkit-super
revision - SKU revision number
jetson-xavier-nx-devkit: default
jetson-agx-xavier-devkit: default
jetson-agx-orin-devkit: default
jetson-orin-nano-devkit: default
jetson-orin-nano-devkit-super: default
device - Root filesystem device
jetson-xavier-nx-devkit: SD/USB
jetson-agx-xavier-devkit: SD/USB
jetson-agx-orin-devkit: SD/USB
jetson-orin-nano-devkit: SD/USB
jetson-orin-nano-devkit-super: SD/USB
Example:
jetson-disk-image-creator.sh -o sd-blob.img -b jetson-xavier-nx-devkit -d SD
jetson-disk-image-creator.sh -o sd-blob.img -b jetson-agx-orin-devkit -d USB
sminko@pc-mto:/mnt/data/workspace-sminko/JETSON-ENV-DEV/jetson-dev-env/output/jetson-orin-nano/jetpack-7.2/Linux_for_Tegra [master@57f8224]$

Hi @minkosimon,

Thanks for confirming.

Based on the results so far, the issue appears to be specific to the raw SD card image generation or boot path.
We will reproduce the setup internally and investigate further.
We will update this topic after we have the internal test results.

Thanks.

Hi @minkosimon,

In our internal test, the generated image booted successfully from a 256 GB microSD card.

Could you please try a 256 GB microSD card and confirm whether it boots to the login screen?

Thanks.

At the moment, I don’t have a 256 GB microSD card – I’m going to buy one – but I do have 128 GB and 512 GB microSD cards, and this problem occurs with those as well. Could you try using one of these microSD cards and see what happens?

Hi,

I found that it seems to have a regression in the script.
I will update this in this thread.

Thanks.

Hi @minkosimon,

We could not reproduce your boot failure internally, but we did reproduce part of it. On R39.2 the
image from jetson-disk-image-creator.sh never expands, so the root filesystem stays at its
generated size with no free space. Up to R36.5 this expansion was done on first boot by nvresizefs, which R39.2 no
longer ships.

The attached nvresizefs_backport.tar.gz restores it. Install it into the rootfs before generating
the image (steps are in the README), then regenerate, write the card, and boot.

nvresizefs_backport.tar.gz (4.2 KB)

Hope this helps!