hi,
我最近刚入手一块基于TI的AM3358开发板,想学习编写一些基于Linux的驱动,譬如DMtimer等,请问哪里能找到官方的这些驱动的例子代码做参考呢?
我下了TI的SDK,但在里面没有发现linux的驱动例子,我也下了starterware,但里面貌似是裸机的驱动例子,可是我想学的是linux的驱动,就是调用类似
omap_dm_timer_xxx()函数的那种例子。
学生初次接触TI的芯片,烦请各位专家不吝赐教,多谢。
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
hi,
我最近刚入手一块基于TI的AM3358开发板,想学习编写一些基于Linux的驱动,譬如DMtimer等,请问哪里能找到官方的这些驱动的例子代码做参考呢?
我下了TI的SDK,但在里面没有发现linux的驱动例子,我也下了starterware,但里面貌似是裸机的驱动例子,可是我想学的是linux的驱动,就是调用类似
omap_dm_timer_xxx()函数的那种例子。
学生初次接触TI的芯片,烦请各位专家不吝赐教,多谢。
直接在SDK LINUX kernel目录下面找
结合DTS文件一起学习
还有这个链接可以看看
http://processors.wiki.ti.com/index.php/AM335x_PSP_User's_Guide?keyMatch=am335x%20driver%20user%20guide&tisearch=Search-EN-Everything
谢谢先,
我目前用的是AM3358, 内核是3.2的。我有两个问题:
1) 我下了一份sdk: ti-sdk-am335x-evm-06.00.00.00-Linux-x86-Install.bin, 安装了一下,请问您说的SDK LINUX kernel目录具体在哪里? 目录树如下所示
2)另外我看了一下你给的链接,里面提到可PSP的package,似乎是另外一个形如AM335x-LINUX-PSP-MM.mm.pp.bb.tgz的文件,请问这个又是从哪里去下载?
├── bin
│ ├── add-to-group.sh
│ ├── common.sh
│ ├── create-sdcard.sh
│ ├── setup-host-check.sh
│ ├── setup-minicom.sh
│ ├── setup-package-install.sh
│ ├── setup-targetfs-nfs.sh
│ ├── setup-tftp.sh
│ └── setup-uboot-env.sh
├── board-support
│ ├── board-port-labs
│ ├── extra-drivers
│ ├── linux-3.2.0-psp04.06.00.11
│ ├── prebuilt-images
│ └── u-boot-2013.01.01-psp06.00.00.00
├── docs
│ ├── AM335x-PSP-04.06.00.11-Features-and-Performance-Guide.pdf
│ ├── AM335x-PSP-04.06.00.11-Release-Notes.pdf
│ ├── AM335x-PSP-User-Guide.pdf
│ ├── licenses
│ ├── Multimedia_Data_Files_Manifest.pdf
│ ├── sitara-linuxsdk-sdg-06.00.00.00.pdf
│ └── software_manifest.htm
├── example-applications
│ ├── am-sysinfo-git
│ ├── arm-benchmarks-1.3
│ ├── matrix-gui-2.0
│ ├── matrix-gui-browser-2.0
│ ├── oprofile-example
│ ├── qt-tstat-2.0
│ ├── quick-playground-1.0
│ ├── refresh-screen-2.0
│ └── ti-crypto-examples-git
├── filesystem
│ ├── arago-base-tisdk-image-am335x-evm.tar.gz
│ ├── arago-base-tisdk-image-am335x-evm.ubi
│ ├── tisdk-rootfs-image-am335x-evm.tar.gz
│ └── tisdk-rootfs-image-am335x-evm.ubi
├── Graphics_SDK_setuplinux_4_09_00_01_hardfp_minimal_demos.bin
├── host-tools
│ └── pinmux_utils
├── linux-devkit
│ ├── environment-setup
│ ├── site-config-armv7ahf-vfp-neon-3.2-oe-linux-gnueabi
│ ├── sysroots
│ └── version-armv7ahf-vfp-neon-3.2-oe-linux-gnueabi
├── Makefile
├── Rules.make
└── setup.sh
再次表示谢谢。
SDK就是完整的开发包,包括了uboot,kernel,编译工具链,example和主机端脚本程序,没必要再单独下kernel源码包AM335x-LINUX-PSP-MM.mm.pp.bb.tgz。
你的SDK中 linux-3.2.0-psp04.06.00.11这里面的就是kernel部分的驱动。
对于学习这部分,建议你参考一下置顶帖子,应该会有所帮助:http://www.deyisupport.com/question_answer/dsp_arm/sitara_arm/f/25/t/121876.aspx