mirror of
https://github.com/LuckfoxTECH/luckfox-pico.git
synced 2026-01-18 03:28:19 +01:00
project:build.sh: Added fastboot support; custom modifications to U-Boot and kernel implemented using patches.
project:cfg:BoardConfig_IPC: Added fastboot BoardConfig file and firmware post-scripts, distinguishing between the BoardConfigs for Luckfox Pico Pro and Luckfox Pico Max. project:app: Added fastboot_client and rk_smart_door for quick boot applications; updated rkipc app to adapt to the latest media library. media:samples: Added more usage examples. media:rockit: Fixed bugs; removed support for retrieving data frames from VPSS. media:isp: Updated rkaiq library and related tools to support connection to RKISP_Tuner. sysdrv:Makefile: Added support for compiling drv_ko on Luckfox Pico Ultra W using Ubuntu; added support for custom root filesystem. sysdrv:tools:board: Updated Buildroot optional mirror sources, updated some software versions, and stored device tree files and configuration files that undergo multiple modifications for U-Boot and kernel separately. sysdrv:source:mcu: Used RISC-V MCU SDK with RT-Thread system, mainly for initializing camera AE during quick boot. sysdrv:source:uboot: Added support for fastboot; added high baud rate DDR bin for serial firmware upgrades. sysdrv:source:kernel: Upgraded to version 5.10.160; increased NPU frequency for RV1106G3; added support for fastboot. Signed-off-by: luckfox-eng29 <eng29@luckfox.com>
This commit is contained in:
@@ -64,6 +64,12 @@ ARCH := arm
|
||||
SYSDRV_CROSS_CFLAGS += -march=armv7-a -mfpu=neon -mfloat-abi=hard
|
||||
endif
|
||||
|
||||
ifeq ($(SYSDRV_CROSS),arm-rockchip1050-linux-uclibcgnueabihf)
|
||||
SYSDRV_LIB_TYPE := uclibc
|
||||
ARCH := arm
|
||||
SYSDRV_CROSS_CFLAGS += -march=armv7-a -mfpu=neon -mfloat-abi=hard
|
||||
endif
|
||||
|
||||
ifeq ($(SYSDRV_CROSS),arm-rockchip830-linux-gnueabihf)
|
||||
SYSDRV_LIB_TYPE := glibc
|
||||
ARCH := arm
|
||||
@@ -76,6 +82,12 @@ ARCH := arm64
|
||||
SYSDRV_CROSS_CFLAGS += -mtune=cortex-a76.cortex-a55
|
||||
endif
|
||||
|
||||
ifeq ($(SYSDRV_BUILD_RECOVERY),y)
|
||||
export SYSDRV_KERNEL_OBJS_OUTPUT_DIR := $(CURRENT_DIR)/source/objs_kernel_recovery
|
||||
export SYSDRV_KERNEL_UPDATE_DTB := n
|
||||
endif
|
||||
export SYSDRV_KERNEL_OBJS_OUTPUT_DIR ?= $(CURRENT_DIR)/source/objs_kernel
|
||||
|
||||
################################################################################
|
||||
## Public function and export
|
||||
################################################################################
|
||||
@@ -187,6 +199,32 @@ test ! -d $$pkg_src || test ! -d $$pkg_src/.git || (\
|
||||
endef
|
||||
######### }}}
|
||||
|
||||
#
|
||||
########## {{{
|
||||
# DO NOT RUN THIS TARGET
|
||||
# $(1) PKG $(CURRENT_DIR)
|
||||
# $(2) PKG $(PKG_NAME)
|
||||
# $(3) PKG OBJECTS DIR
|
||||
#
|
||||
define MAROC_PKG_RELEASE_ASM_NEW
|
||||
@(pkg_src=$(strip $(1)/$(strip $(2))); \
|
||||
pkg_name=$(strip $(2)); \
|
||||
pkg_dir=$(strip $(3)); \
|
||||
pkg_dst=$(strip $(1)/release_$(strip $(2))_$(CHIP)_$(ARCH)_asm); \
|
||||
test ! -d $$pkg_src || test ! -d $$pkg_src/.git || (\
|
||||
rm -rf $$pkg_dst; \
|
||||
mkdir -p $$pkg_dst; \
|
||||
echo "obj-y += $$pkg_name.o" > $$pkg_dst/Makefile ; \
|
||||
for item in `cd $$pkg_dir && find "./" -name "*\.s" -type f`; do \
|
||||
mkdir -p $$pkg_dst/`dirname $$item` ; \
|
||||
echo "$$pkg_name-objs += $${item/%\.s/\.o}" >> $$pkg_dst/Makefile ; \
|
||||
cp -f $$pkg_dir/$$item "$$pkg_dst/$${item/%\.s/\.S}"; \
|
||||
done ;\
|
||||
git --git-dir=$$pkg_src/.git log -1 > $$pkg_dst/release_version.txt; \
|
||||
););
|
||||
endef
|
||||
######### }}}
|
||||
|
||||
#
|
||||
########## {{{
|
||||
# $(1) PKG $(CURRENT_DIR)
|
||||
@@ -223,7 +261,7 @@ if [ -d "$$pkg_src/$$pkg_dst" ];then echo "TEST: $$pkg_src/$$pkg_dst" && \
|
||||
ln -sf $$pkg_src/$$pkg_release $$KERNEL_DIR/drivers/$$pkg_dst ); \
|
||||
fi; \
|
||||
grep -w "$$pkg_dst" $$KERNEL_DIR/drivers/Makefile || \
|
||||
(echo "obj-\$$(CONFIG_VIDEO_ROCKCHIP_THUNDER_BOOT_ISP) += $$pkg_dst/" >> $$KERNEL_DIR/drivers/Makefile ); \
|
||||
(echo "obj-\$$(CONFIG_ROCKCHIP_THUNDER_BOOT) += $$pkg_dst/" >> $$KERNEL_DIR/drivers/Makefile ); \
|
||||
);
|
||||
endef
|
||||
######### }}}
|
||||
@@ -233,7 +271,7 @@ endef
|
||||
#
|
||||
define MACRO_CLEAN_DRIVER_MODULE
|
||||
@(pkg_dst=$(strip $(1)); \
|
||||
pkg_cmds="sed -i '/\<obj-\$$(CONFIG_VIDEO_ROCKCHIP_THUNDER_BOOT_ISP) += $(strip $(1))\//d' $$KERNEL_DIR/drivers/Makefile"; \
|
||||
pkg_cmds="sed -i '/\<obj-\$$(CONFIG_ROCKCHIP_THUNDER_BOOT) += $(strip $(1))\//d' $$KERNEL_DIR/drivers/Makefile"; \
|
||||
grep -w "$$pkg_dst" $$KERNEL_DIR/drivers/Makefile && \
|
||||
eval "$$pkg_cmds";\
|
||||
);
|
||||
@@ -259,3 +297,19 @@ export KERNEL_DIR
|
||||
export SYSDRV_OPTS
|
||||
|
||||
include $(CURRENT_DIR)/cfg/package.mk
|
||||
|
||||
# Enable build i2c-tools
|
||||
CONFIG_SYSDRV_ENABLE_I2C_TOOLS=n
|
||||
$(eval $(call MACRO_CHECK_ENABLE_PKG, RK_ENABLE_I2C_TOOLS))
|
||||
|
||||
# Enable build sysstat
|
||||
CONFIG_SYSDRV_ENABLE_SYSSTAT=n
|
||||
$(eval $(call MACRO_CHECK_ENABLE_PKG, RK_ENABLE_SYSSTAT))
|
||||
|
||||
# Enable build fio
|
||||
CONFIG_SYSDRV_ENABLE_FIO=n
|
||||
$(eval $(call MACRO_CHECK_ENABLE_PKG, RK_ENABLE_FIO))
|
||||
|
||||
# Enable build EXFATPROGS
|
||||
CONFIG_SYSDRV_ENABLE_EXFATPROGS=n
|
||||
$(eval $(call MACRO_CHECK_ENABLE_PKG, RK_ENABLE_EXFATPROGS))
|
||||
|
||||
Reference in New Issue
Block a user