Jump to content

Compiling dts files


Pascal

Recommended Posts

Hello everybody 

 

I expose my problem ...

I create my own a20 card ( based on olimex a20 lime) ( 90% similar )

I have no problem with the hardware ....all work except ....leds  ( you know in /sys/class/leds ....)

But i need 3 leds ... so i write this in dts file ( sun7i-a20-olinuxino-lime.dts)

 

leds {
compatible = "gpio-leds";
pinctrl-names = "default";
pinctrl-0 = <&led_pins_olinuxinolime>;
 
green {
label = "a20-olinuxino-lime:green:usr";
gpios = <&pio 7 2 GPIO_ACTIVE_HIGH>;
default-state = "on";
};
red {
label = "a20-olinuxino-lime:red:usr";
gpios = <&pio 7 0 GPIO_ACTIVE_HIGH>;
default-state = "on";
};
blue {
label = "a20-olinuxino-lime:blue:usr";
gpios = <&pio 3 27 GPIO_ACTIVE_HIGH>;
default-state = "on";
};
};
 
 
 
and instead of 
 
led_pins_olinuxinolime: led_pins@0 {
allwinner,pins = "PH2"
allwinner,function = "gpio_out";
allwinner,drive = <SUN4I_PINCTRL_20_MA>;
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
 
 
i wrote
 
led_pins_olinuxinolime: led_pins@0 {
allwinner,pins = "PH2", "PH0" , "PD27";
allwinner,function = "gpio_out";
allwinner,drive = <SUN4I_PINCTRL_20_MA>;
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
};
};

 

 

It work fine with 4.4xx version of kernel and armbian 5

 

But i need some 4.6.1 functionnality's 

 

So i download the armbian 5.14 ( and i build kernel 4.6.1)

 

All hardware is ok and work except leds

 

After a ./ compile  ( completed ) , i changed the the dts file  with my leds parameters ...and nothing ....I have only the "green" led (in /sys/class/leds/ )

 

So i suppose that dts files were compiled the first time and will be never compiled again Or .... if you have a solution it will be cool !

 

I just going to be crazy  :D

 

Thanks a lot 

 

 

Ps: Excuse me for my very bad english .....I'm french  :)

Link to comment
Share on other sites

There must be some changes in this area, but it's too soon to tell where is a problem, why the methodology changed or it's simply a bug. I haven't boot any board with 4.6.1 kernel yet.

Link to comment
Share on other sites

I will try a other method ....a brutal method  :)

 

and

 

  │   DTC     arch/arm/dts/sun7i-a20-bananapi.dtb                          â”‚  
  │   DTC     arch/arm/dts/sun7i-a20-cubieboard2.dtb                       │  
  │   DTC     arch/arm/dts/sun7i-a20-bananapro.dtb                         │  
  │   DTC     arch/arm/dts/sun7i-a20-cubietruck.dtb                        â”‚  
  │   DTC     arch/arm/dts/sun7i-a20-hummingbird.dtb                       │  
  │   DTC     arch/arm/dts/sun7i-a20-i12-tvbox.dtb                         │  
  │   DTC     arch/arm/dts/sun7i-a20-icnova-swac.dtb                       │  
  │   DTC     arch/arm/dts/sun7i-a20-itead-ibox.dtb                        â”‚  
  │   DTC     arch/arm/dts/sun7i-a20-lamobo-r1.dtb                         │  
  │   DTC     arch/arm/dts/sun7i-a20-m3.dtb                                â”‚  
  │   DTC     arch/arm/dts/sun7i-a20-m5.dtb                                â”‚  
  │   DTC     arch/arm/dts/sun7i-a20-mk808c.dtb                            â”‚  
  │   DTC     arch/arm/dts/sun7i-a20-olimex-som-evb.dtb                    â”‚  
  │   DTC     arch/arm/dts/sun7i-a20-olinuxino-lime.dtb                   ERROR (phandle_references): Reference to non-existent node or label "led_pins_olinuxin  â”‚ Makefile:821 : la recette pour la cible « dts/dt.dtb » a échoué        â”‚  
*** [dts/dt.dtb] Erreur 2 non terminées....
      ERROR: Input tree has errors, abortinmake[1]: *** [arch-dtbs] Erreur 2
                                                                     make[2]: *** [arch/arm/dts/sun7i-a20-olimex-som-evb.dtb] Erreur 2
[ error ] ERROR in function compile_uboot [ common.sh:86 ]
[ error ] U-boot file not found [ u-boot-sunxi-with-spl.bin ]
[ o.k. ] Process terminated #
 
Translation ...the cook for the target dts/dt.dtb fail .....hummm very strange ...i extract the dts file from armbian 4.4.5....... And in this version ...no problem 
 
 
Your answer is not a good news for me ...  :) but thanks for your help . You make a amazing work ! Thanks a lot Igor !
 
i ' ll try something harder .....
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines