phytium-embedded: add .wip support for Phytium PhytiumPi 4GB board (#6346)
This commit is contained in:
parent
58cf4e8fc8
commit
09ed2e30bd
16
config/boards/phytiumpi.wip
Normal file
16
config/boards/phytiumpi.wip
Normal file
@ -0,0 +1,16 @@
|
||||
# Phytium PhytiumPi quad core 4GB SoC GBe USB3
|
||||
BOARD_NAME="Phytium Pi"
|
||||
BOARDFAMILY="phytium-embedded"
|
||||
BOARD_MAINTAINER=""
|
||||
KERNEL_TARGET="legacy"
|
||||
BOOT_FDT_FILE="phytium/phytiumpi_firefly.dtb"
|
||||
SRC_EXTLINUX="yes"
|
||||
SRC_CMDLINE="console=ttyAMA1,115200 earlycon=pl011,0x2800d000 rootfstype=ext4 rootwait cma=256m"
|
||||
|
||||
function post_family_tweaks__phytiumpi() {
|
||||
display_alert "Applying bt blobs"
|
||||
cp -v "$SRC/packages/blobs/phytiumpi/rtlbt/systemd-hciattach.service" "$SDCARD/etc/systemd/system/systemd-hciattach.service"
|
||||
cp -v "$SRC/packages/blobs/phytiumpi/rtlbt/rtk_hciattach" "$SDCARD/usr/bin/rtk_hciattach"
|
||||
cp -v "$SRC/packages/blobs/phytiumpi/rtlbt/rtl8821c_config" "$SDCARD/lib/firmware/rtlbt/rtl8821c_config"
|
||||
cp -v "$SRC/packages/blobs/phytiumpi/rtlbt/rtl8821c_fw" "$SDCARD/lib/firmware/rtlbt/rtl8821c_fw"
|
||||
}
|
||||
6813
config/kernel/linux-phytium-embedded-legacy.config
Normal file
6813
config/kernel/linux-phytium-embedded-legacy.config
Normal file
File diff suppressed because it is too large
Load Diff
39
config/sources/families/phytium-embedded.conf
Normal file
39
config/sources/families/phytium-embedded.conf
Normal file
@ -0,0 +1,39 @@
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
#
|
||||
# Copyright (c) 2013-2023 Igor Pecovnik, igor@armbian.com
|
||||
#
|
||||
# This file is a part of the Armbian Build Framework
|
||||
# https://github.com/armbian/build/
|
||||
#
|
||||
|
||||
ARCH="arm64"
|
||||
|
||||
LINUXFAMILY="phytium-embedded"
|
||||
|
||||
case "${BRANCH}" in
|
||||
|
||||
legacy)
|
||||
KERNELSOURCE='https://github.com/chainsx/phytium-linux-kernel'
|
||||
KERNELBRANCH="branch:linux-5.10"
|
||||
declare -g KERNEL_MAJOR_MINOR="5.10"
|
||||
KERNELPATCHDIR="${LINUXFAMILY}-${BRANCH}"
|
||||
LINUXCONFIG="linux-${LINUXFAMILY}-${BRANCH}"
|
||||
|
||||
;;
|
||||
|
||||
esac
|
||||
|
||||
write_uboot_platform() {
|
||||
declare ptuboot_cache_dir="${SRC}/cache/phytiumpi-uboot"
|
||||
mkdir -p "${ptuboot_cache_dir}"
|
||||
|
||||
sfdisk --dump "$2" > "${ptuboot_cache_dir}/part.txt" # Backup partition table, command sfdisk is belong to util-linux
|
||||
dd if="${SRC}/packages/blobs/phytiumpi/fip-all-sd-boot.bin" of="$2" conv=notrunc # Write non-free u-boot file
|
||||
sfdisk --no-reread "$2" < "${ptuboot_cache_dir}/part.txt" # Recover partition table
|
||||
|
||||
# Update u-boot env
|
||||
mkenvimage -s 0x1000 -o "${ptuboot_cache_dir}/env.bin" "${SRC}/packages/blobs/phytiumpi/env.txt"
|
||||
dd if="${ptuboot_cache_dir}/env.bin" of="$2" bs=1k seek=1472 conv=notrunc
|
||||
rm -rf "${ptuboot_cache_dir}"
|
||||
}
|
||||
39
packages/blobs/phytiumpi/env.txt
Normal file
39
packages/blobs/phytiumpi/env.txt
Normal file
@ -0,0 +1,39 @@
|
||||
arch=arm
|
||||
baudrate=115200
|
||||
board=e2000
|
||||
board_name=e2000
|
||||
boot_os=booti $kernel_addr_r - $fdt_addr_r
|
||||
bootargs=console=ttyAMA1,115200 earlycon=pl011,0x2800d000 root=/dev/mmcblk0p1 rootfstype=ext4 rootwait rw cma=256m
|
||||
bootcmd=run bootextlinux
|
||||
bootdelay=2
|
||||
cpu=armv8
|
||||
distro_bootcmd=run load_kernel; run load_initrd; run load_fdt; run boot_os
|
||||
eth0addr=00:11:22:33:44:55
|
||||
eth1addr=10:22:33:44:55:66
|
||||
ethaddr=00:11:22:33:44:55
|
||||
fdtcontroladdr=f9c3f700
|
||||
fileaddr=90100000
|
||||
filesize=12c3a00
|
||||
gatewayip=202.197.67.1
|
||||
scriptaddr=0x00500000
|
||||
pxefile_addr_r=0x00600000
|
||||
ramdisk_addr_r=0x95000000
|
||||
fdt_addr_r=0x90000000
|
||||
kernel_addr_r=0x90100000
|
||||
boot_conf_addr_r=0xc0000000
|
||||
ft_fdt_name=boot/dtb/phytium/phytiumpi_firefly.dtb
|
||||
initrd_name=boot/initrd.img
|
||||
kernel_name=boot/Image
|
||||
boot_conf_file=/boot/extlinux/extlinux.conf
|
||||
load_fdt=ext4load mmc 0 0x90000000 $ft_fdt_name
|
||||
load_initrd=ext4load mmc 0 0x95000000 $initrd_name
|
||||
load_kernel=ext4load mmc 0 0x90100000 $kernel_name
|
||||
bootextlinux=sysboot mmc 0:1 any $boot_conf_addr_r $boot_conf_file
|
||||
netdev=eth0
|
||||
ipaddr=202.197.67.2
|
||||
netmask=255.255.255.0
|
||||
serverip=202.197.67.3
|
||||
stderr=uart@2800d000
|
||||
stdin=uart@2800d000
|
||||
stdout=uart@2800d000
|
||||
vendor=phytium
|
||||
BIN
packages/blobs/phytiumpi/fip-all-sd-boot.bin
Normal file
BIN
packages/blobs/phytiumpi/fip-all-sd-boot.bin
Normal file
Binary file not shown.
BIN
packages/blobs/phytiumpi/rtlbt/rtk_hciattach
Executable file
BIN
packages/blobs/phytiumpi/rtlbt/rtk_hciattach
Executable file
Binary file not shown.
BIN
packages/blobs/phytiumpi/rtlbt/rtl8821c_config
Normal file
BIN
packages/blobs/phytiumpi/rtlbt/rtl8821c_config
Normal file
Binary file not shown.
BIN
packages/blobs/phytiumpi/rtlbt/rtl8821c_fw
Normal file
BIN
packages/blobs/phytiumpi/rtlbt/rtl8821c_fw
Normal file
Binary file not shown.
11
packages/blobs/phytiumpi/rtlbt/systemd-hciattach.service
Normal file
11
packages/blobs/phytiumpi/rtlbt/systemd-hciattach.service
Normal file
@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=rtk_hciattach
|
||||
DefaultDependencies=no
|
||||
After=NetworkManager.service
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/rtk_hciattach -n -s 115200 ttyAMA0 rtk_h5
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Loading…
Reference in New Issue
Block a user