mirror of
https://github.com/LuckfoxTECH/luckfox-pico.git
synced 2026-01-18 03:28:19 +01:00
* project : Merge the board configurations of Luckfox Pico Mini A and Luckfox Pico Mini B; Merge the board configurations of Luckfox Pico Pro and Luckfox pico Max Signed-off-by: eng29 <eng29@luckfox.com> * sysdrv/source/kernel/arch/arm/boot/dts : Merge the device tree configurations of Luckfox Pico Mini A and Luckfox Mini B; Merge the device tree configurations of Luckfox Pico Pro and Luckfox Pico Max Signed-off-by: eng29 <eng29@luckfox.com> * sysdrv/source/uboot : uboot add support for automatically executing custom commands defined by Luckfox Signed-off-by: eng29 <eng29@luckfox.com> * sysdrv/source/kernel : The Luckfox Pico series dynamically loads the BLACKLIGHT_PWM driver, which hides display abnormalities that occur during the screen initialization process Signed-off-by: eng29 <eng29@luckfox.com> * project/cfg/BoardConfig_IPC : Update the BoardConfig file and overlay file of the Luckfox Pico model that supports RGB, so that the BLACKLIGHT_PWM driver will be automatically loaded Signed-off-by: eng29 <eng29@luckfox.com> * project/cfg/BoardConfig_IPC : Add rtl8723bs module support for Luckfox Pico Mini / Luckfox Pico Plus / Luckfox Pico WebBee / Luckfox Pico Pro Max Signed-off-by: eng29 <eng29@luckfox.com> * sysdrv/drv_ko/wifi/insmod_wifi.sh : Add support for identifying rtl8723bs Signed-off-by: eng29 <eng29@luckfox.com> * sysdrv/source/kernel/arch/arm/configs/luckfox_rv1106_linux_defconfig : Add usb_audio, ch343 and rtl8723bs support Signed-off-by: eng29 <eng29@luckfox.com> * sysdrv/tools/board/buildroot : Enable the pcre2 package by default on startup Signed-off-by: eng29 <eng29@luckfox.com> * project/app/rkipc/rkipc/common/network/network.c : Fix missing DNS issue when bringing up Wi-Fi interface Signed-off-by: eng29 <eng29@luckfox.com> * README.md : Update description README_CN.md : Update description Signed-off-by: eng29 <eng29@luckfox.com> * project/cfg/BoardConfig_IPC/overlay/overlay-luckfox-config/usr/bin/luckfox-config : Disable UART2_M1 pinmux configuration Signed-off-by: eng29 <eng29@luckfox.com> * project/cfg/BoardConfig_IPC/overlay/overlay-luckfox-config/etc/init.d/S99luckfoxconfigload : Remove the function of pressing the boot button to switch the screen model Signed-off-by: eng29 <eng29@luckfox.com> * sysdrv/source/kernel/arch/arm/boot/dts : Standardize the writing format of the dst files Signed-off-by: eng29 <eng29@luckfox.com> --------- Signed-off-by: eng29 <eng29@luckfox.com>
126 lines
3.9 KiB
Makefile
Executable File
126 lines
3.9 KiB
Makefile
Executable File
#!/bin/bash
|
|
|
|
#################################################
|
|
# Board Config
|
|
#################################################
|
|
export LF_ORIGIN_BOARD_CONFIG=BoardConfig-SPI_NAND-Buildroot-RV1103_Luckfox_Pico_Mini-IPC.mk
|
|
# Target CHIP
|
|
export RK_CHIP=rv1106
|
|
|
|
# app config
|
|
export RK_APP_TYPE=RKIPC_RV1103
|
|
|
|
# Config CMA size in environment
|
|
export RK_BOOTARGS_CMA_SIZE="24M"
|
|
|
|
# Kernel dts
|
|
export RK_KERNEL_DTS=rv1103g-luckfox-pico-mini.dts
|
|
|
|
#################################################
|
|
# BOOT_MEDIUM
|
|
#################################################
|
|
|
|
# Target boot medium: emmc/spi_nor/spi_nand
|
|
export RK_BOOT_MEDIUM=spi_nand
|
|
|
|
# Uboot defconfig fragment
|
|
export RK_UBOOT_DEFCONFIG_FRAGMENT=rk-sfc.config
|
|
|
|
# specify post.sh for delete/overlay files
|
|
# export RK_PRE_BUILD_OEM_SCRIPT=rv1103-spi_nor-post.sh
|
|
|
|
# config partition in environment
|
|
# RK_PARTITION_CMD_IN_ENV format:
|
|
# <partdef>[,<partdef>]
|
|
# <partdef> := <size>[@<offset>](part-name)
|
|
# Note:
|
|
# If the first partition offset is not 0x0, it must be added. Otherwise, it needn't adding.
|
|
export RK_PARTITION_CMD_IN_ENV="256K(env),256K@256K(idblock),512K(uboot),4M(boot),30M(oem),6M(userdata),85M(rootfs)"
|
|
|
|
# config partition's filesystem type (squashfs is readonly)
|
|
# emmc: squashfs/ext4
|
|
# nand: squashfs/ubifs
|
|
# spi nor: squashfs/jffs2
|
|
# RK_PARTITION_FS_TYPE_CFG format:
|
|
# AAAA:/BBBB/CCCC@ext4
|
|
# AAAA ----------> partition name
|
|
# /BBBB/CCCC ----> partition mount point
|
|
# ext4 ----------> partition filesystem type
|
|
export RK_PARTITION_FS_TYPE_CFG=rootfs@IGNORE@ubifs,oem@/oem@ubifs,userdata@/userdata@ubifs
|
|
|
|
# config filesystem compress (Just for squashfs or ubifs)
|
|
# squashfs: lz4/lzo/lzma/xz/gzip, default xz
|
|
# ubifs: lzo/zlib, default lzo
|
|
# export RK_SQUASHFS_COMP=xz
|
|
# export RK_UBIFS_COMP=lzo
|
|
|
|
#################################################
|
|
# TARGET_ROOTFS
|
|
#################################################
|
|
|
|
# Target rootfs : buildroot/busybox
|
|
export LF_TARGET_ROOTFS=buildroot
|
|
|
|
# Buildroot defconfig
|
|
export RK_BUILDROOT_DEFCONFIG=luckfox_pico_defconfig
|
|
|
|
#################################################
|
|
# Defconfig
|
|
#################################################
|
|
|
|
# Target arch
|
|
export RK_ARCH=arm
|
|
|
|
# Target Toolchain Cross Compile
|
|
export RK_TOOLCHAIN_CROSS=arm-rockchip830-linux-uclibcgnueabihf
|
|
|
|
#misc image
|
|
export RK_MISC=wipe_all-misc.img
|
|
|
|
# Uboot defconfig
|
|
export RK_UBOOT_DEFCONFIG=luckfox_rv1106_uboot_defconfig
|
|
|
|
# Kernel defconfig
|
|
export RK_KERNEL_DEFCONFIG=luckfox_rv1106_linux_defconfig
|
|
|
|
# Config sensor IQ files
|
|
# RK_CAMERA_SENSOR_IQFILES format:
|
|
# "iqfile1 iqfile2 iqfile3 ..."
|
|
# ./build.sh media and copy <SDK root dir>/output/out/media_out/isp_iqfiles/$RK_CAMERA_SENSOR_IQFILES
|
|
export RK_CAMERA_SENSOR_IQFILES="sc4336_OT01_40IRC_F16.json sc3336_CMK-OT2119-PC1_30IRC-F16.json"
|
|
#export RK_CAMERA_SENSOR_IQFILES="sc4336_OT01_40IRC_F16.json sc3336_CMK-OT2119-PC1_30IRC-F16.json sc530ai_CMK-OT2115-PC1_30IRC-F16.json"
|
|
|
|
# Config sensor lens CAC calibrattion bin files
|
|
export RK_CAMERA_SENSOR_CAC_BIN="CAC_sc4336_OT01_40IRC_F16"
|
|
#export RK_CAMERA_SENSOR_CAC_BIN="CAC_sc4336_OT01_40IRC_F16 CAC_sc530ai_CMK-OT2115-PC1_30IRC-F16"
|
|
|
|
# build ipc web backend
|
|
# export RK_APP_IPCWEB_BACKEND=y
|
|
|
|
# enable install app to oem partition
|
|
export RK_BUILD_APP_TO_OEM_PARTITION=y
|
|
|
|
# enable rockchip test
|
|
export RK_ENABLE_ROCKCHIP_TEST=y
|
|
|
|
# enable rockchip wifi
|
|
export RK_ENABLE_WIFI=y
|
|
|
|
# config wifi ssid and passwd
|
|
export LF_WIFI_SSID="Your wifi ssid"
|
|
export LF_WIFI_PSK="Your wifi password"
|
|
|
|
#################################################
|
|
# PRE and POST
|
|
#################################################
|
|
|
|
# specify pre.sh for delete/overlay files
|
|
export RK_PRE_BUILD_OEM_SCRIPT=luckfox-buildroot-oem-pre.sh
|
|
|
|
# specify post.sh for delete/overlay files
|
|
export RK_PRE_BUILD_USERDATA_SCRIPT=luckfox-userdata-pre.sh
|
|
|
|
# declare overlay directory
|
|
export RK_POST_OVERLAY="overlay-luckfox-config overlay-luckfox-buildroot-init overlay-luckfox-buildroot-shadow overlay-luckfox-buildroot-webbee overlay-luckfox-wifibt-firmware"
|
|
|