in zedboard.org, Training&Videos, Implementing Linux on the Zynq-7000 SoC ,Lab 3.2
there is a training about how to control led-brightness in linux system.
it works well in that training.
yesterday I had a thought,add the led-brightness to zynq-zed-adv7511-xcomm configurations.
the kernel was downloaded from ananlog_devices_inc,and I add the files led-brightness need, 5 files:
(as what 0001-Xilinx-ARM-Driver-for-LED-brightness-device.patch says)
then I make menuconfig,make ARCH=arm
compile OK,no error,and it generate module led-brightness.ko in drivers/PL/
and I add
compatible = "avnet,led-brightness";
reg = <0x41200000 0x20>;
to zynq-zed-adv7511.dts ,then regenerate dtb file
the zImage can boot ,and the HDMI linaro-ubuntu desktop is OK,
when insmod led-brightness.ko,no error report.
but when run ./run-led-brightness 3
nothing happened to those 8 LEDs
why is that?
PS:I find the led-brightness.ko is 93.7kb.while in training use kernel linux-xlnx(zynq-zed-config,no adv7511support) is just 11kb.