August 2, 2020

Helpful tips on the Armbian linux sources

My sources (from December of 2016) use the 3.4.113 kernel.

I keep them at /u1/linux/Armbian

Config macros

The linux configuration process generates the file:
include/generated/autoconf.h
This is the place to look to find out about macros like CONFIG_ARCH_SUN8I. In fact when I grep this file for "CONFIG_ARCH_SUN", I see only:
#define CONFIG_ARCH_SUN8IW7 1
#define CONFIG_ARCH_SUN8IW7P1 1
#define CONFIG_ARCH_SUNXI 1
#define CONFIG_ARCH_SUN8I 1
According to information gleaned elsewhere, the Allwinner H3 chip is a "sun8i", specifically a "sun8iw7p1".

platform stuff

Look in arch/arm/mach-sunxi

Especially look in arch/arm/mach-sunxi/include/mach

And more especially, these 4 files:

arch/arm/mach-sunxi/include/mach/sun8i/irqs-sun8iw7p1.h
arch/arm/mach-sunxi/include/mach/sun8i/memory-sun8iw7p1.h
arch/arm/mach-sunxi/include/mach/sun8i/platform-sun8iw7p1.h
arch/arm/mach-sunxi/include/mach/sun8i/platsmp.h

Allwinner H5 chip support

This is the "sun50iw2p1". In my snapshot of Armbian sources from 2016, I see no mention of "sun50" at all. My guess is that the H5 was not supported under Armbian at that time.


Have any comments? Questions? Drop me a line!

Tom's electronics pages / [email protected]