【NanoPi NEO Plus2试用体验】编译Uboot并安装GPIO驱动
-
-
不着调的小男生
- LV3工程师
-
| 2017-08-03 18:04:52
- 浏览量 938
- 回复:0
编译Uboot官方也是给出了 具体的代码
下载同步Uboot代码
$ git clone https://github.com/friendlyarm/u-boot.git
$ cd u-boot
$ git checkout sunxi-v2017.x
编译Uboot
$ make nanopi_m1_plus_defconfig ARCH=arm CROSS_COMPILE=arm-linux-
$ make ARCH=arm CROSS_COMPILE=arm-linux-
然后就是复制Uboot到你的储存卡里面(其意思就是替换)
$ dd if=u-boot-sunxi-with-spl.bin of=/dev/sdX bs=1024 seek=8
编译最新内核的话,或者想再内核里面加入自己需要的功能的时候考虑重新去编译,官方也给出了方案,不过建议还是参考一下 @xukejing
内核编译测试 https://bbs.icxbk.com/community/thread-96556-1-1.html
安装GPIO驱动WiringNP 还是比较简单的。官方已经给出具体的代码,我现在搬运一下
git clone https://github.com/friendlyarm/WiringNP
cd WiringNP/
chmod 755 build
./build
测试一下是否安装成功,或者是教程具体的排列
gpio readall
参考:
官方WIKI。 你想了解的大部分 都可以在这里找到,感觉官方提供的方案时用起来感到简单,希望官方可以一如既往。。。
下一篇:有关aria2
编译Uboot官方也是给出了 具体的代码
下载同步Uboot代码
$ git clone https://github.com/friendlyarm/u-boot.git
$ cd u-boot
$ git checkout sunxi-v2017.x
编译Uboot
$ make nanopi_m1_plus_defconfig ARCH=arm CROSS_COMPILE=arm-linux-
$ make ARCH=arm CROSS_COMPILE=arm-linux-
然后就是复制Uboot到你的储存卡里面(其意思就是替换)
$ dd if=u-boot-sunxi-with-spl.bin of=/dev/sdX bs=1024 seek=8
编译最新内核的话,或者想再内核里面加入自己需要的功能的时候考虑重新去编译,官方也给出了方案,不过建议还是参考一下 @xukejing
内核编译测试 https://bbs.icxbk.com/community/thread-96556-1-1.html
安装GPIO驱动WiringNP 还是比较简单的。官方已经给出具体的代码,我现在搬运一下
git clone https://github.com/friendlyarm/WiringNP
cd WiringNP/
chmod 755 build
./build
测试一下是否安装成功,或者是教程具体的排列
gpio readall
参考:
官方WIKI。 你想了解的大部分 都可以在这里找到,感觉官方提供的方案时用起来感到简单,希望官方可以一如既往。。。
下一篇:有关aria2