Commit Graph

14 Commits

Author SHA1 Message Date
Peter Korsgaard
99a3698729 configs/nezha_defconfig: add hashes for Linux/opensbi/u-boot
And enable BR2_DOWNLOAD_FORCE_CHECK_HASHES.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
2024-04-10 21:55:15 +02:00
Peter Korsgaard
84577b53da configs/nezha_defconfig: use mainline Linux 6.6.22
The D1 support is now in mainline, so use that instead.  There is no
dedicated nezha defconfig, so use the riscv defconfig.  This defconfig has
most drivers as modules, so add mdev to ensure they get correctly loaded.

The defconfig does not have USB gadget/OTG support, so enable that using a
config fragment to make the USB-C connector work and get rid of the
following warning:

[    7.233418] musb-sunxi 4100000.usb: Invalid or missing 'dr_mode' property
[    7.240330] musb-sunxi: probe of 4100000.usb failed with error -22

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
2024-04-10 21:52:26 +02:00
Peter Korsgaard
07d3c7e263 configs/nezha_defconfig: bump u-boot to current top of d1-wip
This is now based on U-Boot 2024.01-rc1.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
2024-04-10 21:50:29 +02:00
Peter Korsgaard
6406ee805f configs/nezha_defconfig: use OpenSBI 1.4
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
2024-04-10 21:50:17 +02:00
Peter Korsgaard
b39bd50e0a configs/nezha_defconfig: use OpenSBI 1.2
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2023-01-07 20:23:27 +01:00
Peter Korsgaard
bed9b6cd02 configs/nezha_defconfig: use 6.1 kernel headers
The kernel used is based on 6.1-rc3, so use the recently introduced 6.1
kernel headers version to fix a build issue:

Incorrect selection of kernel headers: expected 6.0.x, got 6.1.x

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2022-12-19 22:25:04 +01:00
Peter Korsgaard
8e8d312418 nezha_defconfig: bump Linux to current top of d1/wip
This is now based on Linux 6.1-rc3.  We don't have an option for 6.1 yes, so
mark it as 6.0 headers.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2022-12-13 21:19:34 +01:00
Peter Korsgaard
300610e11e nezha_defconfig: use upstream OpenSBI 1.1 release
The D1 support is now upstream, so we can use the upstream 1.1 release
instead of a custom version.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2022-12-13 21:19:28 +01:00
Peter Korsgaard
adc8355150 nezha_defconfig: bump u-boot to current top of d1-wip
This is now based on U-Boot 2022.10 and has gained SPL support, so use that
instead of sun20-d1-spl.  With this we can also drop the u-boot patch and
patch directory.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2022-12-13 21:19:19 +01:00
Peter Korsgaard
aafab85b07 nezha_defconfig: specify 5.19 kernel headers
The defconfig uses a 5.19-rc1 based kernel, so specify 5.19 kernel headers
now that is available.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2022-10-06 19:53:55 +02:00
Peter Korsgaard
b30ee98da9 nezha_defconfig: configure eth0 using DHCP
With the move to 5.19-rc1, the ethernet interface is now supported.
Configure it using DHCP at startup.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2022-09-07 09:57:08 +02:00
Peter Korsgaard
3461465ac0 nezha_defconfig: bump opensbi, u-boot and linux
Opensbi is now based on 1.1, U-Boot on 2022.07-rc3 and Linux on 5.19-rc1.
We don't yet support 5.19 kernel headers, so use 5.17 instead.

The incompatibility between opensbi and u-boot is now fixed, so drop
0001-arch-riscv-dts-sun20i-d1.dtsi-adjust-plic-compatible.patch.

The updated device tree in the kernel tree no longer specifies a memory
node (and the board exists in 512M/1G/2G variants, so instead use the
(otherwise identical) device tree provided by u-boot, where the memory
node is fixed up based on the detected memory size.

On riscv, the linux kernel unconditionally wants to build its bundled
dtc, so it needs flex and bison, even if it is not going to build any
DTB. We can get flex and bison either via the system ones, or we get
them as they are in LINUX_KCONFIG_DEPENDENCIES. However, relying on this
is a bit fragile, so we keep asking the kernel to build a DTB, so that
we do ensure that our host-{flex,bison} are built and in the dependency
chain of the kernel (for PPD).

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
[yann.morin.1998@free.fr:
  - extend on why we keep building a DTB from the kernel
]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2022-09-07 09:50:39 +02:00
Peter Korsgaard
545a5754ea configs/nezha_defconfig: u-boot needs pylibfdt/swig/openssl
Fixes https://gitlab.com/buildroot.org/buildroot/-/jobs/1758966167

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2021-11-13 15:23:00 +01:00
Peter Korsgaard
acbe6a0a89 configs/nezha_defconfig: new defconfig
Add a defconfig for the Allwinner Nezha, a raspberrypi-style board built
around the RISC-V 64bit D1 SoC.

There is currently no upstream support, so use the git repos from Samuel
Holland as explained on the linux-sunxi wiki:

https://linux-sunxi.org/Allwinner_Nezha

The U-Boot DTB is also used by opensbi, but the two branches are
unfortunately not in sync at the moment, so add a patch to fix the
compatible for the PLIC so opensbi makes it available to S-Mode (Linux).

The use of the sun20i-d1-spl SPL bootloader / TOC1 file format also makes it
a bit more complicated to build the boot image.  As this is expected to only
be a temporary issue, add a U-Boot patch to build the TOC1 image as part of
the build rather than adding explicit support in our U-Boot package to do
it.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2021-11-08 09:45:50 +01:00