Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Compiling dts files

Featured Replies

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  :)

  • Author

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 .....
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.