Browse Source
update ftomx-vpu patch minimal system supports ethercat, xenomai and jailhouse genimage: add genimage-tools to generate filesystem and disk images qt5: support qt5 eglfs for x100 rootfs support xz and img support 7z support optee4.0e and renew uboot of phytiumpi phytiumpi change wifi driver from rtl8821cs to rtw88pull/21/head
weishanshan
9 months ago
committed by
zhuhonglei
30 changed files with 3554 additions and 1743 deletions
Binary file not shown.
@ -0,0 +1,62 @@ |
|||
image efi-part.vfat { |
|||
vfat { |
|||
file EFI { |
|||
image = "efi-part/EFI" |
|||
} |
|||
file Image { |
|||
image = "Image" |
|||
} |
|||
files = { |
|||
"e2000d-chillipi-edu-board.dtb", |
|||
"e2000d-demo-board.dtb", |
|||
"e2000d-miniitx-board.dtb", |
|||
"e2000d-power-board.dtb", |
|||
"e2000q-come-board.dtb", |
|||
"e2000q-demo-board.dtb", |
|||
"e2000q-edu-board.dtb", |
|||
"e2000q-hanwei-board.dtb", |
|||
"e2000q-miniitx-board.dtb", |
|||
"e2000q-vpx-board.dtb", |
|||
"e2000s-demo-board.dtb", |
|||
"phytiumpi_firefly.dtb" |
|||
} |
|||
|
|||
} |
|||
|
|||
size = 400M |
|||
} |
|||
|
|||
image rootfs.ext4 { |
|||
ext4 { |
|||
use-mke2fs = true |
|||
} |
|||
size = 10G |
|||
mountpoint = "/" |
|||
} |
|||
|
|||
image sdcard.img { |
|||
hdimage { |
|||
partition-table-type = "gpt" |
|||
} |
|||
|
|||
partition uboot { |
|||
in-partition-table = no |
|||
offset = 0 |
|||
image = "uboot.bin" |
|||
size = 20M |
|||
} |
|||
|
|||
partition boot { |
|||
image = "efi-part.vfat" |
|||
partition-type-uuid = c12a7328-f81f-11d2-ba4b-00a0c93ec93b |
|||
offset = 20M |
|||
bootable = true |
|||
} |
|||
|
|||
partition root { |
|||
partition-type-uuid = 0FC63DAF-8483-4772-8E79-3D69D8477DE4 |
|||
partition-uuid = "0a52c129-7e0f-43ad-989f-d96b07ccdbb2" |
|||
image = "rootfs.ext4" |
|||
size = 11G |
|||
} |
|||
} |
@ -0,0 +1,55 @@ |
|||
image efi-part.vfat { |
|||
vfat { |
|||
file EFI { |
|||
image = "efi-part/EFI" |
|||
} |
|||
file Image { |
|||
image = "Image" |
|||
} |
|||
files = { |
|||
"e2000d-chillipi-edu-board.dtb", |
|||
"e2000d-demo-board.dtb", |
|||
"e2000d-miniitx-board.dtb", |
|||
"e2000d-power-board.dtb", |
|||
"e2000q-come-board.dtb", |
|||
"e2000q-demo-board.dtb", |
|||
"e2000q-edu-board.dtb", |
|||
"e2000q-hanwei-board.dtb", |
|||
"e2000q-miniitx-board.dtb", |
|||
"e2000q-vpx-board.dtb", |
|||
"e2000s-demo-board.dtb", |
|||
"phytiumpi_firefly.dtb" |
|||
} |
|||
|
|||
} |
|||
|
|||
size = 400M |
|||
} |
|||
|
|||
image rootfs.ext4 { |
|||
ext4 { |
|||
use-mke2fs = true |
|||
} |
|||
size = 10G |
|||
mountpoint = "/" |
|||
} |
|||
|
|||
image disk.img { |
|||
hdimage { |
|||
partition-table-type = "gpt" |
|||
} |
|||
|
|||
partition boot { |
|||
image = "efi-part.vfat" |
|||
partition-type-uuid = c12a7328-f81f-11d2-ba4b-00a0c93ec93b |
|||
offset = 32K |
|||
bootable = true |
|||
} |
|||
|
|||
partition root { |
|||
partition-type-uuid = 0FC63DAF-8483-4772-8E79-3D69D8477DE4 |
|||
partition-uuid = "0a52c129-7e0f-43ad-989f-d96b07ccdbb2" |
|||
image = "rootfs.ext4" |
|||
size = 11G |
|||
} |
|||
} |
@ -0,0 +1,47 @@ |
|||
#!/usr/bin/env bash |
|||
|
|||
die() { |
|||
cat <<EOF >&2 |
|||
Error: $@ |
|||
|
|||
Usage: ${0} -c GENIMAGE_CONFIG_FILE |
|||
EOF |
|||
exit 1 |
|||
} |
|||
|
|||
# Parse arguments and put into argument list of the script |
|||
opts="$(getopt -n "${0##*/}" -o c: -- "$@")" || exit $? |
|||
eval set -- "$opts" |
|||
|
|||
while true ; do |
|||
case "$1" in |
|||
-c) |
|||
GENIMAGE_CFG="${2}"; |
|||
shift 2 ;; |
|||
--) # Discard all non-option parameters |
|||
shift 1; |
|||
break ;; |
|||
*) |
|||
die "unknown option '${1}'" ;; |
|||
esac |
|||
done |
|||
|
|||
[ -n "${GENIMAGE_CFG}" ] || die "Missing argument" |
|||
|
|||
WORKDIR=$(dirname $(readlink -f "$0")) |
|||
export PATH=${WORKDIR}:$PATH |
|||
ROOTPATH=${ROOTPATH-${WORKDIR}/root} |
|||
GENIMAGE_TMP=${GENIMAGE_TMP-${WORKDIR}/genimage.tmp} |
|||
INPUTPATH=${INPUTPATH-${WORKDIR}/input} |
|||
OUTPUTPATH=${OUTPUTPATH-${WORKDIR}/images} |
|||
|
|||
rm -rf "${GENIMAGE_TMP}" |
|||
|
|||
trap 'rm -rf "${GENIMAGE_TMP}"' EXIT |
|||
|
|||
genimage \ |
|||
--rootpath "${ROOTPATH}" \ |
|||
--tmppath "${GENIMAGE_TMP}" \ |
|||
--inputpath "${INPUTPATH}" \ |
|||
--outputpath "${OUTPUTPATH}" \ |
|||
--config "${GENIMAGE_CFG}" |
@ -1,5 +1,5 @@ |
|||
# Filesystem |
|||
BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/phytium/genimage-4.19.cfg" |
|||
# kernel 4.19 |
|||
BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="kernel-4.19_v2.0" |
|||
BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="6c5b6efe8ee3ffd4d1489aaf37b172d206926bb7" |
|||
BR2_LINUX_KERNEL_INTREE_DTS_NAME="phytium/e2000d-chillipi-edu-board phytium/e2000d-demo-board phytium/e2000d-miniitx-board phytium/e2000d-power-board phytium/e2000q-come-board phytium/e2000q-demo-board phytium/e2000q-edu-board phytium/e2000q-hanwei-board phytium/e2000q-miniitx-board phytium/e2000q-vpx-board phytium/e2000s-demo-board phytium/phytiumpi_firefly" |
|||
|
@ -1,6 +1,6 @@ |
|||
# Filesystem |
|||
BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/phytium/genimage-4.19.cfg" |
|||
# kernel 4.19_rt |
|||
BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="kernel-4.19-rt_v2.0" |
|||
BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="1974132ebbf428deea37241e8522b8f732720881" |
|||
BR2_LINUX_KERNEL_INTREE_DTS_NAME="phytium/e2000d-chillipi-edu-board phytium/e2000d-demo-board phytium/e2000d-miniitx-board phytium/e2000d-power-board phytium/e2000q-come-board phytium/e2000q-demo-board phytium/e2000q-edu-board phytium/e2000q-hanwei-board phytium/e2000q-miniitx-board phytium/e2000q-vpx-board phytium/e2000s-demo-board phytium/phytiumpi_firefly" |
|||
|
|||
|
@ -1,3 +1,3 @@ |
|||
# kernel 5.10_rt |
|||
BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="kernel-5.10-rt_v2.0" |
|||
BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="c5d2908c782302764ce3be2f692e3cdb1f590818" |
|||
|
|||
|
@ -0,0 +1,13 @@ |
|||
# X100 um |
|||
BR2_PACKAGE_PHYTIUM_X100_UM=y |
|||
|
|||
# Qt5 |
|||
BR2_PACKAGE_QT5=y |
|||
BR2_PACKAGE_QT5BASE_EXAMPLES=y |
|||
BR2_PACKAGE_QT5BASE_GUI=y |
|||
BR2_PACKAGE_QT5BASE_EGLFS=y |
|||
BR2_PACKAGE_QT5BASE_DEFAULT_QPA="eglfs" |
|||
BR2_PACKAGE_QT5BASE_OPENGL=y |
|||
BR2_PACKAGE_QT5BASE_OPENGL_ES2=y |
|||
BR2_PACKAGE_QT53D=y |
|||
BR2_PACKAGE_LIBDRM=y |
File diff suppressed because it is too large
Binary file not shown.
@ -0,0 +1,22 @@ |
|||
config BR2_PACKAGE_PHYTIUM_X100_UM |
|||
bool "phytium-x100-um" |
|||
select BR2_PACKAGE_HAS_LIBEGL |
|||
select BR2_PACKAGE_HAS_LIBGLES |
|||
select BR2_PACKAGE_HAS_LIBGBM |
|||
help |
|||
Phytium X100 um deb package. |
|||
|
|||
https://gitee.com/phytium_embedded/phytium-rogue-umlibs/tree/develop/ |
|||
|
|||
if BR2_PACKAGE_PHYTIUM_X100_UM |
|||
|
|||
config BR2_PACKAGE_PROVIDES_LIBEGL |
|||
default "phytium-x100-um" |
|||
|
|||
config BR2_PACKAGE_PROVIDES_LIBGLES |
|||
default "phytium-x100-um" |
|||
|
|||
config BR2_PACKAGE_PROVIDES_LIBGBM |
|||
default "phytium-x100-um" |
|||
|
|||
endif |
@ -0,0 +1,32 @@ |
|||
################################################################################
|
|||
#
|
|||
# phytium-x100-um
|
|||
#
|
|||
################################################################################
|
|||
|
|||
PHYTIUM_X100_UM_VERSION = x100-package-v1.0 |
|||
PHYTIUM_X100_UM_SITE = https://gitee.com/phytium_embedded/phytium-rogue-umlibs.git |
|||
PHYTIUM_X100_UM_SITE_METHOD = git |
|||
PHYTIUM_X100_UM_INSTALL_STAGING = YES |
|||
PHYTIUM_X100_UM_PROVIDES = libegl libgles libgbm |
|||
define PHYTIUM_X100_UM_EXTRACT_DEB_PACKAGE |
|||
(cd $(@D) && $(TARGET_AR) -x packages/DEBS/phytium-x100-gpu-drivers-um*.deb && \
|
|||
$(call suitable-extractor,data.tar.xz) data.tar.xz | \
|
|||
$(TAR) $(TAR_OPTIONS) -) |
|||
endef |
|||
|
|||
PHYTIUM_X100_UM_POST_EXTRACT_HOOKS += PHYTIUM_X100_UM_EXTRACT_DEB_PACKAGE |
|||
|
|||
ifeq ($(BR2_ROOTFS_SKELETON_CUSTOM),y) |
|||
define PHYTIUM_X100_UM_INSTALL_TARGET_CMDS |
|||
cp -a $(@D)/etc/* $(TARGET_DIR)/etc |
|||
cp -a $(@D)/usr/* $(TARGET_DIR)/usr |
|||
endef |
|||
|
|||
define PHYTIUM_X100_UM_INSTALL_STAGING_CMDS |
|||
cp -a $(@D)/etc/* $(STAGING_DIR)/etc |
|||
cp -a $(@D)/usr/* $(STAGING_DIR)/usr |
|||
endef |
|||
endif |
|||
|
|||
$(eval $(generic-package)) |
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue