Jetson orin nx修改pinmux后,如何在不删除硬盘数据的情况下烧写?

使用jetson orin nx devkit,jetpack 36.3。
通过修改pinmux更新GPIO设置,使用下述指令进行烧写

sudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme0n1p1 \
  -c tools/kernel_flash//flash_l4t_t234_nvme.xml -p "-c bootloader/generic/cfg/flash_t234_qspi.xml" \
  --showlogs --network usb0 jetson-orin-nano-devkit internal

经过测试GPIO可以正常控制,但是硬盘数据会清空。
请问是否有别的指令可以在不清除硬盘数据的情况下进行烧写?

Hi user85604,

No, flashing will format and re-partition the disk.

May I know what’s your use case?
Do you have the requirement to update pinmux repeatly?
If you want to update it for test, you can just write pinmus register instead of reflashing to apply the change.

Hi KenvinFFF,
我需要一个引脚设置为高电平来控制外置风扇而已。
后续功能也有可能会更新pinmux。
请问该如何修改pinmus register?

Is your FAN just controlled by GPIO high/low? Or it would get a PWM input?

You have to check the Jetson Orin Series SoC Technical Reference Manual(TRM) for the register address and their value.

事实上是用PWM控制,我这样做是为了测试修改的pinmux能否正常生效。
随后我会在TRM上确认。
Thanks!

Okay, let me take an example for pwm1 on Orin NX+Orin Nano devkit(p3768).

From Jetson Orin Nano Developer Kit Carrier Board Specification, you would know it is PIN15 of 40 pins expansion header(J12).
image

From pinmux spreadsheet, you would know it is also SOC_GPIO39 from SoC.
image

From Jetson Orin Series SoC Technical Reference Manual, you can search the SOC_GPIO39 for its offset(0x20).

In table 8.45, the EDP is mapping to PADCTL_A16


In System Address Map, PADCTL_A16 is 0x02440000
image

As a result, its pinmux address is 0x02440000(base) + 0x20(offset) = 0x02440020

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