[HI3518EV200] Update HS303 profiles

pull/262/head
Igor Zalatov (from Citadel PC) 2022-07-04 21:36:03 +03:00
parent 1667e4a22e
commit 88df195ef3
4 changed files with 8 additions and 2528 deletions

View File

@ -25,7 +25,7 @@ BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_VERSION=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.9.37" BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.9.37"
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="$(BR2_EXTERNAL_HISILICON_PATH)/board/hi3516cv200/kernel/hi3518ev200.generic.config.hs303" BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="$(BR2_EXTERNAL_HISILICON_PATH)/board/hi3516cv200/kernel/hi3518ev200.generic.config"
BR2_LINUX_KERNEL_UIMAGE=y BR2_LINUX_KERNEL_UIMAGE=y
BR2_LINUX_KERNEL_XZ=y BR2_LINUX_KERNEL_XZ=y
BR2_LINUX_KERNEL_EXT_HISI_PATCHER=y BR2_LINUX_KERNEL_EXT_HISI_PATCHER=y
@ -93,6 +93,7 @@ BR2_PACKAGE_LINUX_FIRMWARE_OPENIPC=y
BR2_PACKAGE_LINUX_FIRMWARE_OPENIPC_MT7601U=y BR2_PACKAGE_LINUX_FIRMWARE_OPENIPC_MT7601U=y
BR2_PACKAGE_LINUX_FIRMWARE_OPENIPC_RTL8188EU=y BR2_PACKAGE_LINUX_FIRMWARE_OPENIPC_RTL8188EU=y
# BR2_PACKAGE_RTL8188EU is not set # BR2_PACKAGE_RTL8188EU is not set
BR2_PACKAGE_RTL8188FU_OPENIPC=y
# WIREGUARD # WIREGUARD
BR2_PACKAGE_WIREGUARD_LINUX_COMPAT=y BR2_PACKAGE_WIREGUARD_LINUX_COMPAT=y

View File

@ -60,7 +60,7 @@ rename_initramfs() {
autoup_rootfs() { autoup_rootfs() {
echo -e "\n\n" echo -e "\n\n"
# cp -v ./output/images/uImage.initramfs.${soc} ./output/images/autoupdate-kernel.img # cp -v ./output/images/uImage.initramfs.${soc} ./output/images/autoupdate-kernel.img
cp -v ./output/images/uImage.${soc} ./output/images/autoupdate-kernel.img ./output/host/bin/mkimage -A arm -O linux -T kernel -n 'OpenIPC firmware' -a 0x000000050000 -e 0x000000250000 -d ./output/images/uImage.${soc} ./output/images/autoupdate-kernel.img
./output/host/bin/mkimage -A arm -O linux -T filesystem -n 'OpenIPC firmware' -a 0x000000250000 -e 0x000000750000 -d ./output/images/rootfs.squashfs.${soc} ./output/images/autoupdate-rootfs.img ./output/host/bin/mkimage -A arm -O linux -T filesystem -n 'OpenIPC firmware' -a 0x000000250000 -e 0x000000750000 -d ./output/images/rootfs.squashfs.${soc} ./output/images/autoupdate-rootfs.img
} }
@ -263,7 +263,7 @@ hi3518ev200_domsip() {
fresh && make PLATFORM=hisilicon BOARD=unknown_unknown_${soc}_domsip all && rename fresh && make PLATFORM=hisilicon BOARD=unknown_unknown_${soc}_domsip all && rename
} }
hi3518ev200_hs303v1() { hi3518ev200_hs303() {
soc="hi3518ev200" soc="hi3518ev200"
fresh && make PLATFORM=hisilicon BOARD=unknown_unknown_${soc}_hs303 all && rename && autoup_rootfs fresh && make PLATFORM=hisilicon BOARD=unknown_unknown_${soc}_hs303 all && rename && autoup_rootfs
} }
@ -271,11 +271,6 @@ hi3518ev200_hs303v1() {
hi3518ev200_hs303v2() { hi3518ev200_hs303v2() {
soc="hi3518ev200" soc="hi3518ev200"
fresh && make PLATFORM=hisilicon BOARD=unknown_unknown_${soc}_openipc all && rename && autoup_rootfs fresh && make PLATFORM=hisilicon BOARD=unknown_unknown_${soc}_openipc all && rename && autoup_rootfs
}
hi3518ev200_hs303v3() {
soc="hi3518ev200"
fresh && make PLATFORM=hisilicon BOARD=unknown_unknown_${soc}_openipc all && rename && autoup_rootfs
#PLATFORM=hisilicon make br-linux-{dirclean,rebuild} #PLATFORM=hisilicon make br-linux-{dirclean,rebuild}
#PLATFORM=hisilicon make br-hisilicon-osdrv-hi3516cv300-{dirclean,rebuild} #PLATFORM=hisilicon make br-hisilicon-osdrv-hi3516cv300-{dirclean,rebuild}
#PLATFORM=hisilicon make br-majestic-hi3516cv300-{dirclean,rebuild} #PLATFORM=hisilicon make br-majestic-hi3516cv300-{dirclean,rebuild}
@ -658,9 +653,8 @@ xm550() {
# hi3516cv200 # testing.. # hi3516cv200 # testing..
# hi3518ev200 # testing.. # hi3518ev200 # testing..
# hi3518ev200_domsip # DomSip # hi3518ev200_domsip # DomSip
# hi3518ev200_hs303v1 # OpenIPC # hi3518ev200_hs303 # OpenIPC
# hi3518ev200_hs303v2 # OpenIPC hi3518ev200_hs303v2 # OpenIPC
# hi3518ev200_hs303v3 # OpenIPC
# #
# hi3516av100 # OpenIPC # hi3516av100 # OpenIPC
# hi3516av100_ultimate # OpenIPC_ultimate version # hi3516av100_ultimate # OpenIPC_ultimate version
@ -697,7 +691,7 @@ xm550() {
####### #######
# #
# msc313e # OpenIPC # msc313e # OpenIPC
msc313e_baresip # OpenIPC # msc313e_baresip # OpenIPC
# msc316dc # OpenIPC # msc316dc # OpenIPC
# msc316dm # OpenIPC # msc316dm # OpenIPC
# #

View File

@ -12,7 +12,7 @@ mount -t proc proc /proc || exit
grep -q overlay /proc/filesystems || exit grep -q overlay /proc/filesystems || exit
if grep -q ubifs /proc/cmdline; then if grep -q ubifs /proc/cmdline; then
mount -t ubifs ubi0:rootfs_data /overlay mount -t ubifs ubi0:rootfs_data /overlay
else else
mount -t jffs2 /dev/$(awk -F ':' '/rootfs_data/ {print $1}' /proc/mtd | sed 's/mtd/mtdblock/') /overlay || \ mount -t jffs2 /dev/$(awk -F ':' '/rootfs_data/ {print $1}' /proc/mtd | sed 's/mtd/mtdblock/') /overlay || \
mount -t ubifs ubi0:rootfs_data /overlay || mount -t tmpfs tmpfs /overlay || exit mount -t ubifs ubi0:rootfs_data /overlay || mount -t tmpfs tmpfs /overlay || exit