Hi Gundolf,

cool, dass Du noch patches zu Debian einschickst :-)

Ist ansonsten alles im grünen Bereich bei Euch?

Wie planen gerade ein neues Haus, ansonsten gibt es hier nicht allzu viel Neues.

Viele Grüße
Rainer

On Thursday 30 April 2015 18:47:50 you wrote:
> Package: u-boot-sunxi
> Version: 2014.10+dfsg1-5
> 
> It seems that the support for the onboard leds is missing for
> sunxi-based boards even in the latest version (Debian unstable). IMHO
> LEDs are very helpful for headless systems.
> 
> The following/attached patch adds LED support for the Cubietruck board.
> The code has basically been ported from the u-boot version maintained at
> linux-sunxi.org. As in the sunxi version, the blue led is switched on
> by default.
> 
> 
> --- u-boot-2014.10+dfsg1.orig/configs/Cubietruck_defconfig
> +++ u-boot-2014.10+dfsg1/configs/Cubietruck_defconfig
> @@ -1,5 +1,5 @@
>  CONFIG_SPL=y
> -
CONFIG_SYS_EXTRA_OPTIONS="CUBIETRUCK,AXP209_POWER,SUNXI_GMAC,RGMII,AH
CI,SAT
> APWR=SUNXI_GPH(12),USB_EHCI"
> 
+CONFIG_SYS_EXTRA_OPTIONS="CUBIETRUCK,AXP209_POWER,SUNXI_GMAC,RGMII,A
HCI,SA
> 
TAPWR=SUNXI_GPH(12),USB_EHCI,STATUSLED=245,STATUSLED1=244,STATUSLED2
=235,STA
> TUSLED3=231" CONFIG_FDTFILE="sun7i-a20-cubietruck.dtb"
>  +S:CONFIG_ARM=y
>  +S:CONFIG_TARGET_SUN7I=y
> --- u-boot-2014.10+dfsg1.orig/include/configs/sunxi-common.h
> +++ u-boot-2014.10+dfsg1/include/configs/sunxi-common.h
> @@ -252,4 +252,50 @@
>  #define CONFIG_EXTRA_ENV_SETTINGS
>  #endif
> 
> +/* Status LEDs [GK] */
> +
> +#ifdef CONFIG_STATUSLED
> +#define STATUS_LED_BIT CONFIG_STATUSLED
> +#endif
> +#ifdef CONFIG_STATUSLED1
> +#define STATUS_LED_BIT1 CONFIG_STATUSLED1
> +#endif
> +#ifdef CONFIG_STATUSLED2
> +#define STATUS_LED_BIT2 CONFIG_STATUSLED2
> +#endif
> +#ifdef CONFIG_STATUSLED3
> +#define STATUS_LED_BIT3 CONFIG_STATUSLED3
> +#endif
> +
> +#ifndef CONFIG_SPL_BUILD
> +#ifdef STATUS_LED_BIT
> +#define CONFIG_GPIO_LED
> +#define CONFIG_STATUS_LED
> +#ifndef STATUS_LED_BOOT
> +#define STATUS_LED_BOOT 0
> +#endif
> +#ifndef STATUS_LED_STATE
> +#define STATUS_LED_STATE STATUS_LED_ON
> +#define STATUS_LED_PERIOD 1
> +#endif
> +#ifndef STATUS_LED_STATE1
> +#define STATUS_LED_STATE1 STATUS_LED_OFF
> +#define STATUS_LED_PERIOD1 1
> +#endif
> +#ifndef STATUS_LED_STATE2
> +#define STATUS_LED_STATE2 STATUS_LED_OFF
> +#define STATUS_LED_PERIOD2 1
> +#endif
> +#ifndef STATUS_LED_STATE3
> +#define STATUS_LED_STATE3 STATUS_LED_OFF
> +#define STATUS_LED_PERIOD3 1
> +#endif
> +#define CONFIG_BOARD_SPECIFIC_LED
> +#define CONFIG_CMD_LED
> +#endif
> +#endif
> +
> +
> +
> +
>  #endif /* _SUNXI_COMMON_CONFIG_H */

-- 
Rainer Dorsch
Lärchenstr. 6
72135 Dettenhausen
07157/734133

Reply via email to