Clone Read-only file system for AGX Xavier on Jp4.6.4

Hi,

I’ve asked about read-only file system on AGX Xavier before

And finally I worked on Jp4.6.4 successfully

But after I cloned the rootfs from target and reflash with it
The file system becomes to R/W, not read-only anymore

The following are steps

  1. clone command
    $ sudo ./flash.sh -r -k APP -G clone.img jetson- mmcblk0p1
  2. Clear the rootfs folder under Linux_for_Tegra, then mount the clone.img.raw and copy the whole content to Linux_for_Tegra/rootfs
  3. reflash command
    $ sudo ./flash.sh jetson-agx-xavier-devkit mmcblk0p1

Could you help to check about the steps if anything wrong?

Hi zax,

In the first command to clone the image, it seems the wrong board config name (jetson-) specified here.
Please use jetson-agx-xavier-devkit instead.

For your step2 and step 3, please just run the following commands instead to flash the clone image.

Step2.
$ sudo cp clone.img bootloader/system.img
$ sudo cp clone.img.raw bootloader/system.img.raw

Step 3.
$ sudo ./flash.sh -r jetson-agx-xavier-devkit mmcblk0p1

Hi KevinFFF,

Sorry late for reply

Thanks, it works

Could you help to tell me why I mount the img.raw and flash all cause the read-only failed?

This command will re-generate new system image from <Linux_for_Tegra>/rootfs, and it may cause your read-only image back to rw.

1 Like

OK, Thanks for help

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