mirror of
https://github.com/LuckfoxTECH/luckfox-pico.git
synced 2026-01-18 03:28:19 +01:00
Pullrequest for Luckfox Pico Pi (#246)
* sysdrv/source/kernel/arch/arm/boot/dts : Add Luckfox Pico Pi device tree files Signed-off-by: luckfox-eng29 <eng29@luckfox.com> * sysdrv/source/kernel/arch/arm/configs : Add Add kernel configuration file support for SIM7600G Signed-off-by: luckfox-eng29 <eng29@luckfox.com> * sysdrv/source/kernel/drivers/usb/serial : Add USB serial driver support for SIM7600G Signed-off-by: luckfox-eng29 <eng29@luckfox.com> * project/cfg/BoardConfig_IPC/overlay/overlay-luckfox-config/usr/bin/luckfox-config : Add support for Luckfox Pico Pi and comments Signed-off-by: luckfox-eng29 <eng29@luckfox.com> * project/cfg/BoardConfig_IPC : Add BoardConfig files and post script for Luckfox Pico Pi Signed-off-by: luckfox-eng29 <eng29@luckfox.com> * project/build.sh : Add the lunch menu item of Luckfox Pico Pi Signed-off-by: luckfox-eng29 <eng29@luckfox.com> * project/cfg/BoardConfig_IPC/overlay : Add SIM7600G overlay files Signed-off-by: luckfox-eng29 <eng29@luckfox.com> * sysdrv/source/kernel/drivers/media/i2c/sc3336.c : Set the SC3336 to use the 30fps mode by default Signed-off-by: luckfox-eng29 <eng29@luckfox.com> --------- Signed-off-by: luckfox-eng29 <eng29@luckfox.com>
This commit is contained in:
@@ -0,0 +1,124 @@
|
||||
#!/bin/bash
|
||||
|
||||
#################################################
|
||||
# Board Config
|
||||
#################################################
|
||||
export LF_ORIGIN_BOARD_CONFIG=BoardConfig-EMMC-Buildroot-RV1106_Luckfox_Pico_Pi-IPC.mk
|
||||
# Target CHIP
|
||||
export RK_CHIP=rv1106
|
||||
|
||||
# app config
|
||||
export RK_APP_TYPE=RKIPC_RV1106
|
||||
|
||||
# Config CMA size in environment
|
||||
export RK_BOOTARGS_CMA_SIZE="66M"
|
||||
|
||||
# Kernel dts
|
||||
export RK_KERNEL_DTS=rv1106g-luckfox-pico-pi.dts
|
||||
|
||||
#################################################
|
||||
# BOOT_MEDIUM
|
||||
#################################################
|
||||
|
||||
# Target boot medium
|
||||
export RK_BOOT_MEDIUM=emmc
|
||||
|
||||
# Uboot defconfig fragment
|
||||
export RK_UBOOT_DEFCONFIG_FRAGMENT=rk-emmc.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="32K(env),512K@32K(idblock),256K(uboot),32M(boot),512M(oem),256M(userdata),6G(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@ext4,userdata@/userdata@ext4,oem@/oem@ext4
|
||||
|
||||
# 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
|
||||
export LF_TARGET_ROOTFS=buildroot
|
||||
|
||||
# Buildroot defconfig
|
||||
export RK_BUILDROOT_DEFCONFIG=luckfox_pico_w_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
|
||||
|
||||
# Kernel defconfig fragment
|
||||
export RK_KERNEL_DEFCONFIG_FRAGMENT="rv1106-bt.config luckfox_rv1106-wwan-ndis-ppp.config"
|
||||
|
||||
# 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 mis5001_CMK-OT2115-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
|
||||
|
||||
#################################################
|
||||
# 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-ppp overlay-luckfox-buildroot-sim7600g"
|
||||
@@ -0,0 +1,129 @@
|
||||
#!/bin/bash
|
||||
|
||||
#################################################
|
||||
# Board Config
|
||||
#################################################
|
||||
export LF_ORIGIN_BOARD_CONFIG=BoardConfig-EMMC-Buildroot-RV1106_Luckfox_Pico_Pi_W-IPC.mk
|
||||
# Target CHIP
|
||||
export RK_CHIP=rv1106
|
||||
|
||||
# app config
|
||||
export RK_APP_TYPE=RKIPC_RV1106
|
||||
|
||||
# Config CMA size in environment
|
||||
export RK_BOOTARGS_CMA_SIZE="66M"
|
||||
|
||||
# Kernel dts
|
||||
export RK_KERNEL_DTS=rv1106g-luckfox-pico-pi-w.dts
|
||||
|
||||
#################################################
|
||||
# BOOT_MEDIUM
|
||||
#################################################
|
||||
|
||||
# Target boot medium
|
||||
export RK_BOOT_MEDIUM=emmc
|
||||
|
||||
# Uboot defconfig fragment
|
||||
export RK_UBOOT_DEFCONFIG_FRAGMENT=rk-emmc.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="32K(env),512K@32K(idblock),256K(uboot),32M(boot),512M(oem),256M(userdata),6G(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@ext4,userdata@/userdata@ext4,oem@/oem@ext4
|
||||
|
||||
# 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
|
||||
export LF_TARGET_ROOTFS=buildroot
|
||||
|
||||
# Buildroot defconfig
|
||||
export RK_BUILDROOT_DEFCONFIG=luckfox_pico_w_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
|
||||
|
||||
# Kernel defconfig fragment
|
||||
export RK_KERNEL_DEFCONFIG_FRAGMENT="rv1106-bt.config luckfox_rv1106-wwan-ndis-ppp.config"
|
||||
|
||||
# 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 mis5001_CMK-OT2115-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
|
||||
export RK_ENABLE_WIFI_CHIP=AIC8800DC
|
||||
|
||||
# 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-ppp overlay-luckfox-buildroot-sim7600g"
|
||||
@@ -0,0 +1,129 @@
|
||||
#!/bin/bash
|
||||
|
||||
#################################################
|
||||
# Board Config
|
||||
#################################################
|
||||
export LF_ORIGIN_BOARD_CONFIG=BoardConfig-EMMC-Ubuntu-RV1106_Luckfox_Pico_Pi-IPC.mk
|
||||
# Target CHIP
|
||||
export RK_CHIP=rv1106
|
||||
|
||||
# app config
|
||||
# export RK_APP_TYPE=RKIPC_RV1106
|
||||
|
||||
# Config CMA size in environment
|
||||
export RK_BOOTARGS_CMA_SIZE="36M"
|
||||
|
||||
# Kernel dts
|
||||
export RK_KERNEL_DTS=rv1106g-luckfox-pico-pi.dts
|
||||
|
||||
#################################################
|
||||
# BOOT_MEDIUM
|
||||
#################################################
|
||||
|
||||
# Target boot medium
|
||||
export RK_BOOT_MEDIUM=emmc
|
||||
|
||||
# Uboot defconfig fragment
|
||||
export RK_UBOOT_DEFCONFIG_FRAGMENT=rk-emmc.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="32K(env),512K@32K(idblock),256K(uboot),32M(boot),512M(oem),256M(userdata),6G(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@ext4,userdata@/userdata@ext4,oem@/oem@ext4
|
||||
|
||||
# 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
|
||||
export LF_TARGET_ROOTFS=ubuntu
|
||||
|
||||
# SUBMODULES : github/gitee
|
||||
export LF_SUBMODULES_BY=github
|
||||
|
||||
# Buildroot defconfig
|
||||
export RK_BUILDROOT_DEFCONFIG=luckfox_pico_w_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
|
||||
|
||||
# Kernel defconfig fragment
|
||||
export RK_KERNEL_DEFCONFIG_FRAGMENT="rv1106-bt.config luckfox_rv1106-wwan-ndis-ppp.config"
|
||||
|
||||
# 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 mis5001_CMK-OT2115-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
|
||||
|
||||
#################################################
|
||||
# PRE and POST
|
||||
#################################################
|
||||
|
||||
# specify pre.sh for delete/overlay files
|
||||
export RK_PRE_BUILD_OEM_SCRIPT=luckfox-buildroot-oem-pre.sh
|
||||
|
||||
export RK_PRE_BUILD_USERDATA_SCRIPT=luckfox-userdata-pre.sh
|
||||
|
||||
# specify post.sh for delete/overlay files
|
||||
export RK_POST_BUILD_SCRIPT=luckfox-ubuntu-off-modem-post.sh
|
||||
|
||||
# declare overlay directory
|
||||
export RK_POST_OVERLAY="overlay-luckfox-config overlay-luckfox-ubuntu-config overlay-luckfox-ubuntu-ultra overlay-luckfox-ubuntu-rockchip\
|
||||
overlay-luckfox-ppp overlay-luckfox-ubuntu-sim7600g"
|
||||
@@ -0,0 +1,134 @@
|
||||
#!/bin/bash
|
||||
|
||||
#################################################
|
||||
# Board Config
|
||||
#################################################
|
||||
export LF_ORIGIN_BOARD_CONFIG=BoardConfig-EMMC-Ubuntu-RV1106_Luckfox_Pico_Pi_W-IPC.mk
|
||||
# Target CHIP
|
||||
export RK_CHIP=rv1106
|
||||
|
||||
# app config
|
||||
# export RK_APP_TYPE=RKIPC_RV1106
|
||||
|
||||
# Config CMA size in environment
|
||||
export RK_BOOTARGS_CMA_SIZE="36M"
|
||||
|
||||
# Kernel dts
|
||||
export RK_KERNEL_DTS=rv1106g-luckfox-pico-pi-w.dts
|
||||
|
||||
#################################################
|
||||
# BOOT_MEDIUM
|
||||
#################################################
|
||||
|
||||
# Target boot medium
|
||||
export RK_BOOT_MEDIUM=emmc
|
||||
|
||||
# Uboot defconfig fragment
|
||||
export RK_UBOOT_DEFCONFIG_FRAGMENT=rk-emmc.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="32K(env),512K@32K(idblock),256K(uboot),32M(boot),512M(oem),256M(userdata),6G(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@ext4,userdata@/userdata@ext4,oem@/oem@ext4
|
||||
|
||||
# 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
|
||||
export LF_TARGET_ROOTFS=ubuntu
|
||||
|
||||
# SUBMODULES : github/gitee
|
||||
export LF_SUBMODULES_BY=github
|
||||
|
||||
# Buildroot defconfig
|
||||
export RK_BUILDROOT_DEFCONFIG=luckfox_pico_w_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
|
||||
|
||||
# Kernel defconfig fragment
|
||||
export RK_KERNEL_DEFCONFIG_FRAGMENT="rv1106-bt.config luckfox_rv1106-wwan-ndis-ppp.config"
|
||||
|
||||
# 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 mis5001_CMK-OT2115-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
|
||||
export RK_ENABLE_WIFI_CHIP=AIC8800DC
|
||||
|
||||
# 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
|
||||
|
||||
export RK_PRE_BUILD_USERDATA_SCRIPT=luckfox-userdata-pre.sh
|
||||
|
||||
# specify post.sh for delete/overlay files
|
||||
export RK_POST_BUILD_SCRIPT=luckfox-ubuntu-off-modem-post.sh
|
||||
|
||||
# declare overlay directory
|
||||
export RK_POST_OVERLAY="overlay-luckfox-config overlay-luckfox-ubuntu-config overlay-luckfox-ubuntu-ultra overlay-luckfox-ubuntu-rockchip\
|
||||
overlay-luckfox-ppp overlay-luckfox-ubuntu-sim7600g"
|
||||
36
project/cfg/BoardConfig_IPC/luckfox-ubuntu-off-modem-post.sh
Executable file
36
project/cfg/BoardConfig_IPC/luckfox-ubuntu-off-modem-post.sh
Executable file
@@ -0,0 +1,36 @@
|
||||
#!/bin/bash
|
||||
|
||||
# remove unused files
|
||||
function lf_rm() {
|
||||
for file in "$@"; do
|
||||
if [ -e "$file" ]; then
|
||||
echo "Deleting: $file"
|
||||
rm -rf "$file"
|
||||
#else
|
||||
#echo "File not found: $file"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
# remove unused links
|
||||
function lf_rm_link() {
|
||||
for link in "$@"; do
|
||||
if [ -L "$link" ]; then
|
||||
echo "Deleting: $link"
|
||||
rm -rf "$link"
|
||||
#else
|
||||
#echo "File not found: $file"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
# remove ModemManager Service
|
||||
function remove_modem_service() {
|
||||
lf_rm_link $RK_PROJECT_PACKAGE_ROOTFS_DIR/etc/systemd/system/dbus-org.freedesktop.ModemManager1.service
|
||||
lf_rm_link $RK_PROJECT_PACKAGE_ROOTFS_DIR/etc/systemd/system/multi-user.target.wants/ModemManager.service
|
||||
}
|
||||
|
||||
#=========================
|
||||
# run
|
||||
#=========================
|
||||
remove_modem_service
|
||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,13 @@
|
||||
ABORT "BUSY"
|
||||
ABORT "NO CARRIER"
|
||||
ABORT "NO DIALTONE"
|
||||
ABORT "ERROR"
|
||||
ABORT "NO ANSWER"
|
||||
TIMEOUT 30
|
||||
"" AT
|
||||
OK ATE0
|
||||
OK ATI;+CSUB;+CSQ;+CPIN?;+COPS?;+CGREG?;&D2
|
||||
# Insert the APN provided by your network operator, default apn is 3gnet
|
||||
OK AT+CGDCONT=1,"IP","ctnet",,0,0
|
||||
OK ATD*99#
|
||||
CONNECT
|
||||
@@ -0,0 +1,8 @@
|
||||
ABORT "ERROR"
|
||||
ABORT "NO DIALTONE"
|
||||
SAY "\nSending break to the modem\n"
|
||||
"" +++
|
||||
"" +++
|
||||
"" +++
|
||||
SAY "\nGoodbay\n"
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
/dev/ttyUSB2 115200
|
||||
user "test" password "test"
|
||||
# The chat script, customize your APN in this file
|
||||
connect 'chat -s -v -f /etc/ppp/peers/simcom-connect-chat'
|
||||
# The close script
|
||||
disconnect 'chat -s -v -f /etc/ppp/peers/simcom-disconnect-chat'
|
||||
# Hide password in debug messages
|
||||
hide-password
|
||||
# The phone is not required to authenticate
|
||||
noauth
|
||||
# Debug info from pppd
|
||||
debug
|
||||
# If you want to use the HSDPA link as your gateway
|
||||
defaultroute
|
||||
# pppd must not propose any IP address to the peer
|
||||
noipdefault
|
||||
# No ppp compression
|
||||
novj
|
||||
novjccomp
|
||||
noccp
|
||||
ipcp-accept-local
|
||||
ipcp-accept-remote
|
||||
local
|
||||
# For sanity, keep a lock on the serial line
|
||||
lock
|
||||
modem
|
||||
dump
|
||||
nodetach
|
||||
# Hardware flow control
|
||||
nocrtscts
|
||||
remotename 3gppp
|
||||
ipparam 3gppp
|
||||
ipcp-max-failure 30
|
||||
# Ask the peer for up to 2 DNS server addresses
|
||||
usepeerdns
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user