View previous topic :: View next topic |
Author |
Message |
crocket Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 29 Apr 2017 Posts: 558
|
Posted: Sun Dec 15, 2019 4:22 am Post subject: Mainline linux kernel on ARM single board computers. |
|
|
How do you configure mainline linux kernel on your ARM single board computers? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
xaviermiller Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/18949772545903151f2312b.jpg)
Joined: 23 Jul 2004 Posts: 8723 Location: ~Brussels - Belgique
|
Posted: Sun Dec 15, 2019 12:02 pm Post subject: |
|
|
Which one?
For my helios4, there is a defconfig provided, then I add needed support (mainly filesystems or network options). _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54834 Location: 56N 3W
|
Posted: Sun Dec 15, 2019 12:07 pm Post subject: |
|
|
crocket,
I don't.
A lot of the downstream kernel work has not been upstreamed.
Some never will. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
erm67 l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/2905952475ed4c95801bd2.gif)
Joined: 01 Nov 2005 Posts: 653 Location: EU
|
Posted: Tue Dec 17, 2019 12:37 pm Post subject: |
|
|
Unfortunately linux no longer ships a defconfig for every SOC for arm 64 there is only 1 that enables all supported SOC, so basically you do a make defconfig (or zcat /proc/config.gz > .config; make olddefconfig) and disable the SOCs you don't need. IIRC recently all distro agreed to support kernels compiled using defconfig.
Code: | ./arch/arm64/configs/defconfig
./arch/arm/configs/versatile_defconfig
./arch/arm/configs/iop32x_defconfig
./arch/arm/configs/pxa168_defconfig
./arch/arm/configs/ebsa110_defconfig
./arch/arm/configs/integrator_defconfig
./arch/arm/configs/acs5k_tiny_defconfig
./arch/arm/configs/spitz_defconfig
./arch/arm/configs/palmz72_defconfig
./arch/arm/configs/at91_dt_defconfig
./arch/arm/configs/realview_defconfig
./arch/arm/configs/u8500_defconfig
./arch/arm/configs/orion5x_defconfig
./arch/arm/configs/footbridge_defconfig
./arch/arm/configs/vexpress_defconfig
./arch/arm/configs/lpc32xx_defconfig
./arch/arm/configs/lpc18xx_defconfig
./arch/arm/configs/s3c2410_defconfig
./arch/arm/configs/h5000_defconfig
./arch/arm/configs/mxs_defconfig
./arch/arm/configs/hackkit_defconfig
./arch/arm/configs/dove_defconfig
./arch/arm/configs/nuc960_defconfig
./arch/arm/configs/mvebu_v7_defconfig
./arch/arm/configs/exynos_defconfig
./arch/arm/configs/multi_v5_defconfig
./arch/arm/configs/lart_defconfig
./arch/arm/configs/vf610m4_defconfig
./arch/arm/configs/lubbock_defconfig
./arch/arm/configs/stm32_defconfig
./arch/arm/configs/collie_defconfig
./arch/arm/configs/shannon_defconfig
./arch/arm/configs/assabet_defconfig
./arch/arm/configs/keystone_defconfig
./arch/arm/configs/em_x270_defconfig
./arch/arm/configs/ks8695_defconfig
./arch/arm/configs/ixp4xx_defconfig
./arch/arm/configs/omap2plus_defconfig
./arch/arm/configs/aspeed_g5_defconfig
./arch/arm/configs/clps711x_defconfig
./arch/arm/configs/pxa910_defconfig
./arch/arm/configs/am200epdkit_defconfig
./arch/arm/configs/cerfcube_defconfig
./arch/arm/configs/prima2_defconfig
./arch/arm/configs/pxa_defconfig
./arch/arm/configs/u300_defconfig
./arch/arm/configs/ep93xx_defconfig
./arch/arm/configs/shmobile_defconfig
./arch/arm/configs/davinci_all_defconfig
./arch/arm/configs/mainstone_defconfig
./arch/arm/configs/nhk8815_defconfig
./arch/arm/configs/simpad_defconfig
./arch/arm/configs/axm55xx_defconfig
./arch/arm/configs/h3600_defconfig
./arch/arm/configs/multi_v7_defconfig
./arch/arm/configs/mvebu_v5_defconfig
./arch/arm/configs/spear6xx_defconfig
./arch/arm/configs/s5pv210_defconfig
./arch/arm/configs/colibri_pxa300_defconfig
./arch/arm/configs/sama5_defconfig
./arch/arm/configs/spear13xx_defconfig
./arch/arm/configs/socfpga_defconfig
./arch/arm/configs/qcom_defconfig
./arch/arm/configs/colibri_pxa270_defconfig
./arch/arm/configs/pxa255-idp_defconfig
./arch/arm/configs/hisi_defconfig
./arch/arm/configs/moxart_defconfig
./arch/arm/configs/pxa3xx_defconfig
./arch/arm/configs/netwinder_defconfig
./arch/arm/configs/imx_v6_v7_defconfig
./arch/arm/configs/spear3xx_defconfig
./arch/arm/configs/aspeed_g4_defconfig
./arch/arm/configs/neponset_defconfig
./arch/arm/configs/cm_x2xx_defconfig
./arch/arm/configs/s3c6400_defconfig
./arch/arm/configs/rpc_defconfig
./arch/arm/configs/gemini_defconfig
./arch/arm/configs/imx_v4_v5_defconfig
./arch/arm/configs/zeus_defconfig
./arch/arm/configs/pcm027_defconfig
./arch/arm/configs/mps2_defconfig
./arch/arm/configs/lpd270_defconfig
./arch/arm/configs/corgi_defconfig
./arch/arm/configs/eseries_pxa_defconfig
./arch/arm/configs/nuc910_defconfig
./arch/arm/configs/zx_defconfig
./arch/arm/configs/trizeps4_defconfig
./arch/arm/configs/mmp2_defconfig
./arch/arm/configs/tegra_defconfig
./arch/arm/configs/xcep_defconfig
./arch/arm/configs/cm_x300_defconfig
./arch/arm/configs/multi_v4t_defconfig
./arch/arm/configs/viper_defconfig
./arch/arm/configs/tct_hammer_defconfig
./arch/arm/configs/bcm2835_defconfig
./arch/arm/configs/imote2_defconfig
./arch/arm/configs/nuc950_defconfig
./arch/arm/configs/omap1_defconfig
./arch/arm/configs/acs5k_defconfig
./arch/arm/configs/milbeaut_m10v_defconfig
./arch/arm/configs/mv78xx0_defconfig
./arch/arm/configs/vt8500_v6_v7_defconfig
./arch/arm/configs/sunxi_defconfig
./arch/arm/configs/iop33x_defconfig
./arch/arm/configs/ezx_defconfig
./arch/arm/configs/jornada720_defconfig
./arch/arm/configs/mini2440_defconfig
./arch/arm/configs/oxnas_v6_defconfig
./arch/arm/configs/badge4_defconfig
./arch/arm/configs/efm32_defconfig
./arch/arm/configs/pleb_defconfig
./arch/arm/configs/iop13xx_defconfig
./arch/arm/configs/tango4_defconfig
./arch/arm/configs/cns3420vb_defconfig
./arch/arm/configs/magician_defconfig
|
NeddySeagoon wrote: | crocket,
I don't.
A lot of the downstream kernel work has not been upstreamed.
Some never will. |
The problem is that all of the upstream work and bugfixes was not backported and never will ... would you use btrfs for important data on an obsololete and badly hacked proprietary kernel?
BTW panfrost is making great progresses on mainline it's almost usable
Code: | [ 26.513000] panfrost d00c0000.gpu: clock rate = 666666666
[ 26.516412] panfrost d00c0000.gpu: d00c0000.gpu supply mali not found, using dummy regulator
[ 26.525867] panfrost d00c0000.gpu: mali-t820 id 0x820 major 0x1 minor 0x0 status 0x0
[ 26.526880] Registered IR keymap rc-cec
[ 26.533388] panfrost d00c0000.gpu: features: 00000000,101e76ff, issues: 00000000,24040400
[ 26.538268] rc rc1: meson_ao_cec as /devices/platform/soc/c8100000.bus/c8100100.cec/rc/rc1
[ 26.547131] panfrost d00c0000.gpu: Features: L2:0x07110206 Shader:0x00000000 Tiler:0x00000809 Mem:0x1 MMU:0x00002821 AS:0xff JS:0x7
[ 26.547136] panfrost d00c0000.gpu: shader_present=0x7 l2_present=0x1
[ 26.547273] panfrost d00c0000.gpu: GPU Fault 0x00000051 (UNKNOWN) at 0xffecba28b3b1eca4
[ 26.550081] [drm] Initialized panfrost 1.1.0 20180908 for d00c0000.gpu on minor 1
|
_________________ Ok boomer
True ignorance is not the absence of knowledge, but the refusal to acquire it.
Ab esse ad posse valet, a posse ad esse non valet consequentia
My fediverse account: @erm67@erm67.dynu.net |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
crocket Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 29 Apr 2017 Posts: 558
|
Posted: Tue Dec 17, 2019 1:41 pm Post subject: |
|
|
I just want single board computers to document necessary kernel config options. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
erm67 l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/2905952475ed4c95801bd2.gif)
Joined: 01 Nov 2005 Posts: 653 Location: EU
|
Posted: Wed Dec 18, 2019 7:51 am Post subject: |
|
|
Is it an SBC that implements fully the ARM architecture? Arm has plenty of documentation online, if instead it is a proprietary design that only implements some parts of the ARM architecture and adds protrietay custom chipsets probably is not fully documented. The other big question is wether it uses mainline uboot or a proprietary bootloader, based on uboot like Amlogic does or some shitty in-house proprietary bootloader that is fully undocumented.
Technically the hardware on the board is 'documented' in the dtb, that is exactly it's purpose, the non standard undocumented bootloader is often a problem since it initialized the hardware components, or maybe disables them, you should at least know at which address the dtb and kernel are loaded to boot an unmodified mainline kernel. Decompile the official dtb that comes with the board to know ehat hardware it has on board. Often there is a dtb in a flash partition, or the dtb is appended to the kernel, try
Code: | root@nas:~# cat /proc/mtd
dev: size erasesize name
mtd0: 00080000 00001000 "U-Boot"
mtd1: 00200000 00001000 "Kernel"
mtd2: 00900000 00001000 "RootFS1"
mtd3: 00300000 00001000 "RootFS2"
mtd4: 00040000 00001000 "U-Boot Config"
mtd5: 00140000 00001000 "NAS Config"
|
to see if it is supported. _________________ Ok boomer
True ignorance is not the absence of knowledge, but the refusal to acquire it.
Ab esse ad posse valet, a posse ad esse non valet consequentia
My fediverse account: @erm67@erm67.dynu.net |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
crocket Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 29 Apr 2017 Posts: 558
|
Posted: Wed Dec 18, 2019 8:05 am Post subject: |
|
|
erm67, The SBC manufacturers shall just give us necessary linux kernel options. Expecting linux distributions to figure out kernel config options on their own is not a good idea. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
erm67 l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/2905952475ed4c95801bd2.gif)
Joined: 01 Nov 2005 Posts: 653 Location: EU
|
Posted: Wed Dec 18, 2019 10:25 am Post subject: |
|
|
They do, it's in the defconfig or in "platform selection" if it doesn't boot the problem is elsewhere and without a serial you're not going anywhere .... Last mont I tried the psychic debug metod for a board that wasn't booting only to find out half an hour later that my telepatic connection with the board was faulty and the problem was that the sd card wasn't properly inserted in the slot ....... _________________ Ok boomer
True ignorance is not the absence of knowledge, but the refusal to acquire it.
Ab esse ad posse valet, a posse ad esse non valet consequentia
My fediverse account: @erm67@erm67.dynu.net |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
crocket Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 29 Apr 2017 Posts: 558
|
Posted: Wed Dec 18, 2019 10:33 am Post subject: |
|
|
How do you configure odroid n2 for mainline linux kernel? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|