Description: Linux下的tree命令,同window,功能更强大!
1、下载tree-1.5.1.1源程序
2、解压源码到工作目录tar zxvf tree-1.5.1.1.tgz
3、在tree-1.5.1.1目录交叉编译:make CC=arm-linux-gcc
4、安装:make prefix=/home/xxxx/rootfs install
Ubuntu下 直接 apt-get install tree 即可安装最新的tr-Linux under the tree order, with the window, more powerful! 1, tree-1.5.1.1 source code download 2, extract the source to the working directory tar zxvf tree-1.5.1.1.tgz3, in the tree-1.5.1.1 directory cross compiler: make CC = arm-linux-gcc4, install: make prefix =/home/xxxx/rootfs installUbuntu directly under the apt-get install tree to install the latest tr Platform: |
Size: 31744 |
Author:hhh |
Hits:
Description: 1、将makefile中的
CROSS =/usr/local/arm/2.95.3/bin/arm-linux-
CFLAGS+=-I/usr/local/src/2.4.18-rmk7/include
CFLAGS+=-I/usr/local/src/2.4.18-rmk7/include/linux
CFLAGS+=-I/usr/local/arm/2.95.3/arm-linux/include
路径改为你宿主机上的。
2、#make,来编译驱动模块。
3、#export PATH=$PATH:/usr/local/arm/2.95.3/bin //取决于你宿主机上的交叉编译工具路径
#arm-linux-gcc -o gpio_test gpio_test.c //编译应用程序
最终在你的当前文件夹下会生成gpiodrv.o与gpio_test两个文件。
4、#mkdir /tmp/1
5、通过ftp的方法,把gpio_test与gpiodrv.o文件下载到你的开发板上的/tmp/1目录中。
6、#mknod /dev/gpio c 220 0 //创建文件节点
#insmod gpiodrv.o
#chmod +x gpio_test
#./gpio_test
然后,就可以看到四个LED灯在闪烁了。:)-1, the makefile in the CROSS =/usr/local/arm/2.95.3/bin/arm-linux- CFLAGS+ =- I/usr/local/src/2.4.18-rmk7/include CFLAGS+ =- I/usr/local/src/2.4.18-rmk7/include/linux CFLAGS+ =- I/usr/local/arm/2.95.3/arm-linux/include changed the path on your host. 2,# make, to compile driver modules. 3,# export PATH = $ PATH:/usr/local/arm/2.95.3/bin// depends on your host on the path of the cross compiler tool# arm-linux-gcc-o gpio_test gpio_test.c// compile the application procedures for the ultimate in your current folder will be generated under the two documents gpiodrv.o and gpio_test. 4,# mkdir/tmp/1 5, through the ftp way to gpiodrv.o File Download gpio_test with the development of your board/tmp/1 directory. 6,# mknod/dev/gpio c 220 0// create a file node# insmod gpiodrv.o# chmod+ x gpio_test#./Gpio_test then four LED lights can be seen in the flicker of. :) Platform: |
Size: 9216 |
Author:马工 |
Hits:
Description: OpenJPEG-1.5.1 compiled for Imote2 (with arm-xscale-linux-gnu), sorry that you have to place them in their respective directory manually.
To compile yourself:
1. Download cross compiler arm-xscale-linux-gnu.
2. Download zlib, cross compile to cross compiler directory --prefix=/directory/arm-xscale-linux-gnu/arm-xscale-linux.gnu (CC=/cross-directory/arm-xscale-linux-gnu-gcc).
3. Download libpng12, cross compile like above, better with --host=arm-xscale-linux-gnu, export PATH=/cross-compiler directory/bin/:$PATH.
4. Download openjpeg-1.5.1 source code and follow number 3, --prefix=/some-random-folder. Platform: |
Size: 918528 |
Author:Fajar Purnama |
Hits: