configs/friendlyarm_nanopi_neo_defconfig: new defconfig

This patch adds a new defconfig for the NanoPi NEO board made by
FriendlyARM. This board is based on the Allwinner H3 SoC.

See: https://wiki.friendlyelec.com/wiki/index.php/NanoPi_NEO

This patch uses the mainline kernel and u-boot for the board.

The configurations are based on the previously dropped defconfig
maintained by Yann E. MORIN <yann.morin.1998@free.fr>.

Signed-off-by: Dong Wang <wangdong115@foxmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Dong Wang
2024-08-14 01:02:44 +08:00
committed by Thomas Petazzoni
parent 52e9d8785a
commit 4265790541
9 changed files with 124 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
label NanoPi NEO linux
kernel /boot/zImage
devicetree /boot/sun8i-h3-nanopi-neo.dtb
append console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p1 rootwait panic=10

View File

@@ -0,0 +1,17 @@
# Minimal SD card image for the NanoPi NEO.
image sdcard.img {
hdimage {
}
partition u-boot {
in-partition-table = false
image = "u-boot-sunxi-with-spl.bin"
offset = 8K
size = 1000K # 1MB - 8KB(offset) - 16KB(GPT)
}
partition rootfs {
partition-type = 0x83
image = "rootfs.ext4"
}
}

View File

@@ -0,0 +1 @@
../linux/linux.hash

View File

@@ -0,0 +1,2 @@
# Locally calculated
sha256 93218296934915636fe6ba08e125948424cc270fd8948502c0ab91087a9fccd8 linux-6.6.44.tar.xz

View File

@@ -0,0 +1,2 @@
# Locally calculated
sha256 f591da9ab90ef3d6b3d173766d0ddff90c4ed7330680897486117df390d83c8f u-boot-2024.07.tar.bz2

View File

@@ -0,0 +1,5 @@
#!/bin/sh
BOARD_DIR="$(dirname "$0")"
install -m 0644 -D "$BOARD_DIR"/extlinux.conf "$TARGET_DIR"/boot/extlinux/extlinux.conf

View File

@@ -0,0 +1,41 @@
Nanopi NEO
Intro
=====
This default configuration will allow you to start experimenting with the
buildroot environment for the NanoPi NEO. With the current configuration
it will bring-up the board, and allow access through the serial console.
FriendlyARM Nanopi NEO link:
https://wiki.friendlyelec.com/wiki/index.php/NanoPi_NEO
How to build
============
$ make friendlyarm_nanopi_neo_defconfig
$ make
Note: you will need access to the internet to download the required
sources.
How to write the SD card
========================
Once the build process is finished you will have an image called "sdcard.img"
in the output/images/ directory.
Copy the bootable "sdcard.img" onto an SD card with "dd":
$ sudo dd if=output/images/sdcard.img of=/dev/sdX
$ sudo sync
Insert the micro SD card in your Nanopi NEO and power it up. The console
is on the debug TTL UART, 115200 8N1.
Ethernet
==========
# udhcpc -i eth0
Enjoy!