Host Machine Version
native Ubuntu Linux 20.04 Host installed with SDK Manager
Hey,
I am integrating agx-orin developer kit with simulink using toolchain ‘Nvidia-Jetson’, the simulink file is deploying and running but i can not see anything on GPIO pins. I need to run pwm on pin 15 and take input from pin 22.
I found that i need to configure pinmux of agx by reflashing it with newly generated pinmux.dtsi and gpio.dtsi files through spreadsheet and I have done it several times but no luck.
Now, I am trying to configure the register address of gpio using following:
###########################
The following example shows you how to update Pin MCLK05: SOC_GPIO33: PQ6:
The Pinmux register base address = 0x2430000
Offset = 0x70
Pinmux register address = 0x2430070
Run the following command.
$ busybox devmem 0x02430070
The output value is 0x00000054.
To set the pin as the output, run the following command.
$ busybox devmem 0x02430070 w 0x004
Read back to confirm:
$ busybox devmem 0x02430070
Starting with JetPack 6, the GPIO sysfs has been deprecated.
To set the direction of the GPIO controller between the input and the output, users can use upstream GPIO tools instead of GPIO sysfs.
###########################################
but I am unable to install busybox for arm64. please guide!!
I am using AGX-ORIN 64GB Developer Kit with Jetpack 6.1
No, i am using Ubuntu 22.04, but i am deploying the simulink code from windows host into the agx.
yes. The gpio pins on 40-pin header
Nope. its not available.
I am unable to make any change on J30 pins even after reflashing with new dtsi files.
can you please show any working example of changing the pin-function from SFIO to GPIO?
Do you have any customization so that busybox is unavailable by default?
Please run the following command in the AGX Orin devkit to veirfy.
$ busybox
$ which busybox
You can search from Jetson AGX Orin Developer Kit Carrier Board Specification to know that PIN15 of J30 is PN.01.
And you can configure it for default Output/High in pinmux spreadsheet.
I have ran both the commands, its saying busybox: command not found
I am using pin 15 as PWM and its working fine. but pin 22 is not working as GPIO. i have changed its respective pin spreadsheet and reflashed, but no luck.
can you give specific changes that i can change in /boot/kernel_tegra234-p3737-0000+p3701-0005-nv.dtb for boot time changes?