Jetson driver sourses question

I would like to know the purpose of the three files in the diagram. I would like to confirm if all special devices on the Jetson platform, including their drivers and device trees, are stored in the “hardware” directory. Are the drivers for conventional devices like USB and SPI stored in the “kernel-x.xx” files? How can I browse the kernel source code related to the Jetson platform, as the kernel source code is quite extensive… I would like to inquire if your company has tested the maximum speed of the SSD mounted on the JAO-PCIE-C4. What is the maximum speed of the SSD on the JAO development board? If there are records, please send the information. I would like to know how your company tests the NVMe speed of M.2 Key-M SSDs, and if there are any references, such as test speed programs, SSD models, etc
20240814-162643
.

I am not sure if you filed the topic in right forum. This is Jetson nano forum. Not Orin Nano or Orin AGX.

@WayneWWW
thanks ! i change

I don’t know what is your issue related to the source code.

Test script/method is not part of that. How you tested a NVMe speed on a x86 ubuntu host PC would still work on Jetson.

If you want to know the driver code location, clarify whether you are using rel-35 or rel-36 first as the driver paths are different.

@WayneWWW
thanks for reply!
Certainly, here is the translation of your questions into English:
“I actually have two questions. One is about the source code, specifically the function and topology of the source code files. The other is about the NVMe-SSD speed of the JAO development board. I would like to know how your company tests the NVMe-SSD speed and if there is a standard testing procedure that I can refer to?”

你可以直接說中文沒關係

@WayneWWW
实际上我有个问题,一个是关于源码的 还有一个是关于JAO开发板的nvme-SSD速率的。前者想问一下源码的文件作用和拓扑关系,后者想问一下贵公司是如何测试nvme-SSD速率的,有没有标准的测试方案给我参考一下?

請問你對於source code有沒有更明確一點的問題 感覺問的範圍有點大, 不太確定你到底想知道什麼

總之kernel底下的部份都是upstream直接過來的driver. nvidia-oot底下的是NVIDIA downstream driver.

另外, 對於nvme測試速度的方法 可以參考

https://fio.readthedocs.io/en/latest/fio_doc.html

1 Like

@WayneWWW 我可能还没想清楚怎么问,第一个问题我再想想。
多谢!!!

@WayneWWW
我想知道贵公司提供的pinmux表格生成的gpio.dtsi文件,是在MB1阶段起作用的么?那么在$L4T/kernel/dtb/文件夹下的设备树里的关于gpio的设备树配置会覆盖pinmux生成的gpio.dtsi配置么?

Hi @gucj

請問你的 “L4T/kernel/dtb/文件夹下的设备树里的关于gpio的设备树配置” 是指什麼樣的設定呢?

@WayneWWW
不是具体的哪个GPIO,我是想确认整个系统启动过程中的gpio设备树配置最终被谁决定了?
是被pinmux-spreadsheet生成的设备树文件决定了。还是我可以在源码中通过重写的方式把pinmux-spreadsheet生成的设备树文件覆盖。举个具体例子:


对于D59管脚,官方默认将其设为gpio,我想将其改为CAN0_OUT.需要怎么改?
我知道的是:改pinmux-spreadsheet,使用其生成的设备树文件。
还有没有其它方式?

你在kernel dts重新改一次pinmux也是可以的.

1 Like

这个问题我想再问问,下图里的文件是git拉下来的文件,请问这些文件是干啥的? 我如果想在JAO上做驱动开发,我需要关注哪些文件?毕竟这里有太多无关的文件了~-~
image

@WayneWWW thanks!!!

請問一下你那個"tegra"那包下面的檔案大概有哪些? 我從資料夾名稱有點難判斷你抓了些什麼

@WayneWWW
这些!

你的這包"tegra"應該不是從git sync下來的吧 這個就是BSP本身…

能順便看一下你的kernel跟3rdparty這兩包的內容嗎?

@WayneWWW
我是按照https://docs.nvidia.com/jetson/archives/r35.4.1/DeveloperGuide/text/IN/QuickStart.html#to-flash-the-jetson-developer-kit-operating-software按照BSP
然后按照[Kernel Customization — Jetson Linux Developer Guide documentation]同步源码到L4T目录下的。

kernel、3rdparty文件如下