Some problem of tx2nx's custom rootfs

I have followed the step of the link https://docs.nvidia.com/jetson/archives/l4t-archived/l4t-325/index.html#page/Tegra%20Linux%20Driver%20Package%20Development%20Guide/rootfs_custom.html#

I exec the command sudo ./apply_binaries.sh, but the extlinux.conf is not different from this file on the board.

The extlinux.conf on the board is

TIMEOUT 30
DEFAULT primary

MENU TITLE L4T boot options

LABEL primary
      MENU LABEL primary kernel
      LINUX /boot/Image
      INITRD /boot/initrd
      APPEND ${cbootargs} quiet root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 console=ttyS0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0 isolcpus=1-2 

The custom is created by the script

TIMEOUT 30
DEFAULT primary

MENU TITLE L4T boot options
LABEL primary
      MENU LABEL primary kernel
      LINUX /boot/Image
      INITRD /boot/initrd
      APPEND ${cbootargs} quiet

Is it correct?

The flash script will do the work and append more parameters to it.

Which parameters I should set? It’s tx2nx

sudo ./apply_binaries.sh --help
Use: apply_binaries.sh [--bsp|-b PATH] [--root|-r PATH] [--target-overlay] [--help|-h]
    This script installs tegra binaries
    Options are:
    --bsp|-b PATH
                   bsp location (bsp, readme, installer)
    --root|-r PATH
                   install toolchain to PATH
    --target-overlay|-t
                   untar NVIDIA target overlay (.tbz2) instead of
				   pre-installing them as Debian packages
    --help|-h
                   show this help

In my opinion, I can create a standard rootfs of tx2nx and then I can remove or add some files into the rootfs and then I will pack it

Hi,

I mean the “flash.sh” script will append those parameters to your extlinux.conf after it flashed the board.

1 Like

Ha
I see, now I can modify the rootfs.
How to create the rootfs and define the user name and password and auto login.
I mean how can I pack all the things in a system.img and flash it into the emmc and it will auto login all setting will be ok.
Similarly production mode, I can flash the image into emmc and it can run

Or is there any method to reduce the size of the rootfs?

There is a create user account script inside the BSP. You can use that first.

Check Linux_for_Tegra/tools.

1 Like

Any docs to introduce the script?

L4T developer guide has the introduction.

1 Like

Can you show me the link? I can find “l4t_create_default_user.sh” in the L4T developer guide has the introduction.

I use the same keyword from you and search it in the document.

1 Like

Thanks! I got it. I can auto login.
But there is anther problem, I use nv_build_samplefs.sh to download and extract the rootfs. Is there a script to config that which software I download. Because many software I don’t need.

I see that nvubuntu-bionic-aarch64-packages nvubuntu-bionic-aarch64-samplefs

Is this still an issue to support? Further suggestions required? Thanks

No, Thanks

Great! Thanks for the confirmaton.

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