嵌入式开发者社区
标题:
无法去掉板载3个LED灯的注册
[打印本页]
作者:
TaterLi
时间:
2017-8-8 02:55
标题:
无法去掉板载3个LED灯的注册
本帖最后由 TaterLi 于 2017-8-8 03:02 编辑
首先使用mksdboot-tl全新制作系统,然后使用tisdk_am57xx-evm配置内核,编译烧写启动正常,但是我现在需要删掉3个LED的驱动(以便我做一些其他试验)
首先我查询uEnv没有内容,使用U-Boot打印环境变量得知是board_name=am57xx_evm_reva3,跟手册一致.
然后我查arch/arm/boot/dts/am57xx-evm-reva3.dtb /media/root/boot1/am57xx-evm-reva3.dts没有发现user-led字段.
接着跟进引用文件am57xx-beagle-x15-revb1.dts,接着再跟进am57xx-beagle-x15-common.dtsi找到user-led的注册,我注释然后重新编译dtb,覆盖TF卡内系统的dtb文件.
[attach]2660[/attach]
并继续跟进其他文件,只发现此处.但是启动系统后,发现LED依然存在...为什么啊!
[attach]2661[/attach]
Boot目录下:
drwxr-xr-x 2 1000 pulse 4.0K Oct 4 2016 .
drwxr-xr-x 22 root root 4.0K Aug 7 2017 ..
lrwxrwxrwx 1 1000 pulse 40 Oct 4 2016 am571x-idk-lcd-osd.dtb -> devicetree-zImage-am571x-idk-lcd-osd.dtb
lrwxrwxrwx 1 1000 pulse 48 Oct 4 2016 am571x-idk-lcd-osd101t2587.dtb -> devicetree-zImage-am571x-idk-lcd-osd101t2587.dtb
lrwxrwxrwx 1 1000 pulse 32 Oct 4 2016 am571x-idk.dtb -> devicetree-zImage-am571x-idk.dtb
lrwxrwxrwx 1 1000 pulse 40 Oct 4 2016 am572x-idk-lcd-osd.dtb -> devicetree-zImage-am572x-idk-lcd-osd.dtb
lrwxrwxrwx 1 1000 pulse 48 Oct 4 2016 am572x-idk-lcd-osd101t2587.dtb -> devicetree-zImage-am572x-idk-lcd-osd101t2587.dtb
lrwxrwxrwx 1 1000 pulse 45 Oct 4 2016 am572x-idk-pru-excl-uio.dtb -> devicetree-zImage-am572x-idk-pru-excl-uio.dtb
lrwxrwxrwx 1 1000 pulse 32 Oct 4 2016 am572x-idk.dtb -> devicetree-zImage-am572x-idk.dtb
lrwxrwxrwx 1 1000 pulse 45 Oct 4 2016 am57xx-beagle-x15-revb1.dtb -> devicetree-zImage-am57xx-beagle-x15-revb1.dtb
lrwxrwxrwx 1 1000 pulse 39 Oct 4 2016 am57xx-beagle-x15.dtb -> devicetree-zImage-am57xx-beagle-x15.dtb
lrwxrwxrwx 1 1000 pulse 38 Oct 4 2016 am57xx-evm-reva3.dtb -> devicetree-zImage-am57xx-evm-reva3.dtb
lrwxrwxrwx 1 1000 pulse 32 Oct 4 2016 am57xx-evm.dtb -> devicetree-zImage-am57xx-evm.dtb
-rw-r--r-- 1 1000 pulse 97.3K Oct 3 2016 devicetree-zImage-am571x-idk-lcd-osd.dtb
-rw-r--r-- 1 1000 pulse 97.3K Oct 3 2016 devicetree-zImage-am571x-idk-lcd-osd101t2587.dtb
-rw-r--r-- 1 1000 pulse 96.4K Oct 3 2016 devicetree-zImage-am571x-idk.dtb
-rw-r--r-- 1 1000 pulse 99.2K Oct 3 2016 devicetree-zImage-am572x-idk-lcd-osd.dtb
-rw-r--r-- 1 1000 pulse 99.2K Oct 3 2016 devicetree-zImage-am572x-idk-lcd-osd101t2587.dtb
-rw-r--r-- 1 1000 pulse 101.1K Oct 3 2016 devicetree-zImage-am572x-idk-pru-excl-uio.dtb
-rw-r--r-- 1 1000 pulse 98.2K Oct 3 2016 devicetree-zImage-am572x-idk.dtb
-rw-r--r-- 1 1000 pulse 93.5K Oct 3 2016 devicetree-zImage-am57xx-beagle-x15-revb1.dtb
-rw-r--r-- 1 1000 pulse 94.5K Oct 3 2016 devicetree-zImage-am57xx-beagle-x15.dtb
-rw-r--r-- 1 1000 pulse 102.9K Aug 7 2017 devicetree-zImage-am57xx-evm-reva3.dtb
-rw-r--r-- 1 1000 pulse 98.2K Oct 3 2016 devicetree-zImage-am57xx-evm.dtb
-rw-r--r-- 1 1000 pulse 13.1M Oct 3 2016 vmlinux-4.4.19-gdb0b54cdad
lrwxrwxrwx 1 1000 pulse 25 Oct 4 2016 zImage -> zImage-4.4.19-gdb0b54cdad
-rw-r--r-- 1 1000 pulse 3.4M Aug 7 2017 zImage-4.4.19-gdb0b54cdad
会不会是因为我替换了错误的dtb文件?但是boot分区下只有两个dtb,我把这里存在的dtb都替换了.
作者:
TaterLi
时间:
2017-8-8 03:32
搞了一个下午没搞好,一躺下想到了,把文件都全部覆盖一次,就是覆盖所有am57xx*.dtb,问题解决.
欢迎光临 嵌入式开发者社区 (https://www.51ele.net/)
Powered by Discuz! X3.4