ubuntu:debug submodule lose

This commit is contained in:
luckfox-eng29 2024-06-12 16:39:59 +08:00 committed by luckfox-eng33
parent ac4c9c0906
commit 6cf97cc3f9
23 changed files with 647 additions and 404 deletions

View File

@ -107,7 +107,7 @@ kernelconfig -config kernel and save defconfig"
[5] RV1106_Luckfox_Pico_Ultra [5] RV1106_Luckfox_Pico_Ultra
[6] RV1106_Luckfox_Pico_Ultra_W [6] RV1106_Luckfox_Pico_Ultra_W
[7] custom [7] custom
Which would you like? [0~7]: Which would you like? [0~7][default:0]:
``` ```
+ Output the supported storage media for the corresponding Luckfox-pico hardware model. Enter the corresponding number to proceed to the root filesystem options (press Enter to select option [0] directly).For example, Luckfox Pico Plus. + Output the supported storage media for the corresponding Luckfox-pico hardware model. Enter the corresponding number to proceed to the root filesystem options (press Enter to select option [0] directly).For example, Luckfox Pico Plus.
```shell ```shell
@ -116,7 +116,7 @@ kernelconfig -config kernel and save defconfig"
[0] SD_CARD [0] SD_CARD
[1] SPI_NAND [1] SPI_NAND
Which would you like? [0~1]: Which would you like? [0~1][default:0]:
``` ```
+ Output the supported root filesystem types for the corresponding Luckfox-pico hardware model. Enter the corresponding number to complete the configuration (press Enter to select option [0] directly). + Output the supported root filesystem types for the corresponding Luckfox-pico hardware model. Enter the corresponding number to complete the configuration (press Enter to select option [0] directly).
```shell ```shell
@ -125,7 +125,7 @@ kernelconfig -config kernel and save defconfig"
[0] Buildroot(Support Rockchip official features) [0] Buildroot(Support Rockchip official features)
[1] Ubuntu(Support for the apt package management tool) [1] Ubuntu(Support for the apt package management tool)
Which would you like? [0~1]: Which would you like? [0~1][default:0]:
``` ```
+ If you need to use the old configuration method or a custom board support file, select the "[7]custom" option when configuring the Luckfox-pico hardware model. + If you need to use the old configuration method or a custom board support file, select the "[7]custom" option when configuring the Luckfox-pico hardware model.
```shell ```shell
@ -140,7 +140,7 @@ kernelconfig -config kernel and save defconfig"
[5] RV1106_Luckfox_Pico_Ultra [5] RV1106_Luckfox_Pico_Ultra
[6] RV1106_Luckfox_Pico_Ultra_W [6] RV1106_Luckfox_Pico_Ultra_W
[7] custom [7] custom
Which would you like? [0~7]: 7 Which would you like? [0~7][default:0]: 7
---------------------------------------------------------------- ----------------------------------------------------------------
0. BoardConfig_IPC/BoardConfig-EMMC-Buildroot-RV1106_Luckfox_Pico_Ultra-IPC.mk 0. BoardConfig_IPC/BoardConfig-EMMC-Buildroot-RV1106_Luckfox_Pico_Ultra-IPC.mk
boot medium(启动介质): EMMC boot medium(启动介质): EMMC
@ -190,7 +190,15 @@ kernelconfig -config kernel and save defconfig"
---------------------------------------------------------------- ----------------------------------------------------------------
---------------------------------------------------------------- ----------------------------------------------------------------
6. BoardConfig_IPC/BoardConfig-SD_CARD-Buildroot-RV1103_Luckfox_Pico_Plus-IPC.mk 6. BoardConfig_IPC/BoardConfig-SD_CARD-Buildroot-RV1103_Luckfox_Pico_Mini_B-IPC.mk
boot medium(启动介质): SD_CARD
system version(系统版本): Buildroot
hardware version(硬件版本): RV1103_Luckfox_Pico_Mini_B
applicaton(应用场景): IPC
----------------------------------------------------------------
----------------------------------------------------------------
7. BoardConfig_IPC/BoardConfig-SD_CARD-Buildroot-RV1103_Luckfox_Pico_Plus-IPC.mk
boot medium(启动介质): SD_CARD boot medium(启动介质): SD_CARD
system version(系统版本): Buildroot system version(系统版本): Buildroot
hardware version(硬件版本): RV1103_Luckfox_Pico_Plus hardware version(硬件版本): RV1103_Luckfox_Pico_Plus
@ -198,15 +206,15 @@ kernelconfig -config kernel and save defconfig"
---------------------------------------------------------------- ----------------------------------------------------------------
---------------------------------------------------------------- ----------------------------------------------------------------
7. BoardConfig_IPC/BoardConfig-SD_CARD-Buildroot-RV1106_Luckfox_Pico_Max-IPC.mk 8. BoardConfig_IPC/BoardConfig-SD_CARD-Buildroot-RV1106_Luckfox_Pico_Pro_Max-IPC.mk
boot medium(启动介质): SD_CARD boot medium(启动介质): SD_CARD
system version(系统版本): Buildroot system version(系统版本): Buildroot
hardware version(硬件版本): RV1106_Luckfox_Pico_Max hardware version(硬件版本): RV1106_Luckfox_Pico_Pro_Max
applicaton(应用场景): IPC applicaton(应用场景): IPC
---------------------------------------------------------------- ----------------------------------------------------------------
---------------------------------------------------------------- ----------------------------------------------------------------
8. BoardConfig_IPC/BoardConfig-SD_CARD-Ubuntu-RV1103_Luckfox_Pico-IPC.mk 9. BoardConfig_IPC/BoardConfig-SD_CARD-Ubuntu-RV1103_Luckfox_Pico-IPC.mk
boot medium(启动介质): SD_CARD boot medium(启动介质): SD_CARD
system version(系统版本): Ubuntu system version(系统版本): Ubuntu
hardware version(硬件版本): RV1103_Luckfox_Pico hardware version(硬件版本): RV1103_Luckfox_Pico
@ -214,7 +222,7 @@ kernelconfig -config kernel and save defconfig"
---------------------------------------------------------------- ----------------------------------------------------------------
---------------------------------------------------------------- ----------------------------------------------------------------
9. BoardConfig_IPC/BoardConfig-SD_CARD-Ubuntu-RV1103_Luckfox_Pico_Mini_A-IPC.mk 10. BoardConfig_IPC/BoardConfig-SD_CARD-Ubuntu-RV1103_Luckfox_Pico_Mini_A-IPC.mk
boot medium(启动介质): SD_CARD boot medium(启动介质): SD_CARD
system version(系统版本): Ubuntu system version(系统版本): Ubuntu
hardware version(硬件版本): RV1103_Luckfox_Pico_Mini_A hardware version(硬件版本): RV1103_Luckfox_Pico_Mini_A
@ -222,7 +230,15 @@ kernelconfig -config kernel and save defconfig"
---------------------------------------------------------------- ----------------------------------------------------------------
---------------------------------------------------------------- ----------------------------------------------------------------
10. BoardConfig_IPC/BoardConfig-SD_CARD-Ubuntu-RV1103_Luckfox_Pico_Plus-IPC.mk 11. BoardConfig_IPC/BoardConfig-SD_CARD-Ubuntu-RV1103_Luckfox_Pico_Mini_B-IPC.mk
boot medium(启动介质): SD_CARD
system version(系统版本): Ubuntu
hardware version(硬件版本): RV1103_Luckfox_Pico_Mini_B
applicaton(应用场景): IPC
----------------------------------------------------------------
----------------------------------------------------------------
12. BoardConfig_IPC/BoardConfig-SD_CARD-Ubuntu-RV1103_Luckfox_Pico_Plus-IPC.mk
boot medium(启动介质): SD_CARD boot medium(启动介质): SD_CARD
system version(系统版本): Ubuntu system version(系统版本): Ubuntu
hardware version(硬件版本): RV1103_Luckfox_Pico_Plus hardware version(硬件版本): RV1103_Luckfox_Pico_Plus
@ -230,7 +246,7 @@ kernelconfig -config kernel and save defconfig"
---------------------------------------------------------------- ----------------------------------------------------------------
---------------------------------------------------------------- ----------------------------------------------------------------
11. BoardConfig_IPC/BoardConfig-SD_CARD-Ubuntu-RV1106_Luckfox_Pico_Pro_Max-IPC.mk 13. BoardConfig_IPC/BoardConfig-SD_CARD-Ubuntu-RV1106_Luckfox_Pico_Pro_Max-IPC.mk
boot medium(启动介质): SD_CARD boot medium(启动介质): SD_CARD
system version(系统版本): Ubuntu system version(系统版本): Ubuntu
hardware version(硬件版本): RV1106_Luckfox_Pico_Pro_Max hardware version(硬件版本): RV1106_Luckfox_Pico_Pro_Max
@ -238,7 +254,7 @@ kernelconfig -config kernel and save defconfig"
---------------------------------------------------------------- ----------------------------------------------------------------
---------------------------------------------------------------- ----------------------------------------------------------------
12. BoardConfig_IPC/BoardConfig-SPI_NAND-Buildroot-RV1103_Luckfox_Pico_Mini_B-IPC.mk 14. BoardConfig_IPC/BoardConfig-SPI_NAND-Buildroot-RV1103_Luckfox_Pico_Mini_B-IPC.mk
boot medium(启动介质): SPI_NAND boot medium(启动介质): SPI_NAND
system version(系统版本): Buildroot system version(系统版本): Buildroot
hardware version(硬件版本): RV1103_Luckfox_Pico_Mini_B hardware version(硬件版本): RV1103_Luckfox_Pico_Mini_B
@ -246,7 +262,7 @@ kernelconfig -config kernel and save defconfig"
---------------------------------------------------------------- ----------------------------------------------------------------
---------------------------------------------------------------- ----------------------------------------------------------------
13. BoardConfig_IPC/BoardConfig-SPI_NAND-Buildroot-RV1103_Luckfox_Pico_Plus-IPC.mk 15. BoardConfig_IPC/BoardConfig-SPI_NAND-Buildroot-RV1103_Luckfox_Pico_Plus-IPC.mk
boot medium(启动介质): SPI_NAND boot medium(启动介质): SPI_NAND
system version(系统版本): Buildroot system version(系统版本): Buildroot
hardware version(硬件版本): RV1103_Luckfox_Pico_Plus hardware version(硬件版本): RV1103_Luckfox_Pico_Plus
@ -254,14 +270,14 @@ kernelconfig -config kernel and save defconfig"
---------------------------------------------------------------- ----------------------------------------------------------------
---------------------------------------------------------------- ----------------------------------------------------------------
14. BoardConfig_IPC/BoardConfig-SPI_NAND-Buildroot-RV1106_Luckfox_Pico_Pro_Max-IPC.mk 16. BoardConfig_IPC/BoardConfig-SPI_NAND-Buildroot-RV1106_Luckfox_Pico_Pro_Max-IPC.mk
boot medium(启动介质): SPI_NAND boot medium(启动介质): SPI_NAND
system version(系统版本): Buildroot system version(系统版本): Buildroot
hardware version(硬件版本): RV1106_Luckfox_Pico_Pro_Max hardware version(硬件版本): RV1106_Luckfox_Pico_Pro_Max
applicaton(应用场景): IPC applicaton(应用场景): IPC
---------------------------------------------------------------- ----------------------------------------------------------------
Which would you like? [0]: Which would you like? [default:0]:
``` ```
Enter the corresponding board support file number to complete the configuration. Enter the corresponding board support file number to complete the configuration.
#### Set Buildroot System Default WIFI Configuration #### Set Buildroot System Default WIFI Configuration

View File

@ -89,9 +89,9 @@ kernelconfig -config kernel and save defconfig"
```shell ```shell
./build.sh lunch ./build.sh lunch
``` ```
输出对应的Luckfox-pico硬件型号,输入对应编号后进入存储介质选项(直接回车选择序号[0]选项) + 输出对应的Luckfox-pico硬件型号,输入对应编号后进入存储介质选项(直接回车选择序号[0]选项)
```shell ```shell
You're building on Linux You're building on Linux
Lunch menu...pick the Luckfox Pico hardware version: Lunch menu...pick the Luckfox Pico hardware version:
选择 Luckfox Pico 硬件版本: 选择 Luckfox Pico 硬件版本:
[0] RV1103_Luckfox_Pico [0] RV1103_Luckfox_Pico
@ -102,30 +102,30 @@ You're building on Linux
[5] RV1106_Luckfox_Pico_Ultra [5] RV1106_Luckfox_Pico_Ultra
[6] RV1106_Luckfox_Pico_Ultra_W [6] RV1106_Luckfox_Pico_Ultra_W
[7] custom [7] custom
Which would you like? [0~7]: Which would you like? [0~7][default:0]:
``` ```
输出对应的Luckfox-pico硬件型号支持的存储介质,输入对应编号后进入根文件系统选项(直接回车选择序号[0]选项) + 输出对应的Luckfox-pico硬件型号支持的存储介质,输入对应编号后进入根文件系统选项(直接回车选择序号[0]选项)
以Luckfox Pico Plus为例 以Luckfox Pico Plus为例
```shell ```shell
Lunch menu...pick the boot medium: Lunch menu...pick the boot medium:
选择启动媒介: 选择启动媒介:
[0] SD_CARD [0] SD_CARD
[1] SPI_NAND [1] SPI_NAND
Which would you like? [0~1]: Which would you like? [0~1][default:0]:
``` ```
输出对应的Luckfox-pico硬件型号支持的根文件系统类型,输入对应编号后完成配置(直接回车选择序号[0]选项) + 输出对应的Luckfox-pico硬件型号支持的根文件系统类型,输入对应编号后完成配置(直接回车选择序号[0]选项)
```shell ```shell
Lunch menu...pick the system version: Lunch menu...pick the system version:
选择系统版本: 选择系统版本:
[0] Buildroot(Support Rockchip official features) [0] Buildroot(Support Rockchip official features)
[1] Ubuntu(Support for the apt package management tool) [1] Ubuntu(Support for the apt package management tool)
Which would you like? [0~1]: Which would you like? [0~1][default:0]:
``` ```
如果需要使用旧的配置方式或者使用自定义的板级支持文件在配置Luckfox-pico硬件型号时选择“[7]custom”选项 + 如果需要使用旧的配置方式或者使用自定义的板级支持文件在配置Luckfox-pico硬件型号时选择“[7]custom”选项
```shell ```shell
You're building on Linux You're building on Linux
Lunch menu...pick the Luckfox Pico hardware version: Lunch menu...pick the Luckfox Pico hardware version:
选择 Luckfox Pico 硬件版本: 选择 Luckfox Pico 硬件版本:
[0] RV1103_Luckfox_Pico [0] RV1103_Luckfox_Pico
@ -136,130 +136,146 @@ You're building on Linux
[5] RV1106_Luckfox_Pico_Ultra [5] RV1106_Luckfox_Pico_Ultra
[6] RV1106_Luckfox_Pico_Ultra_W [6] RV1106_Luckfox_Pico_Ultra_W
[7] custom [7] custom
Which would you like? [0~7]: 7 Which would you like? [0~7][default:0]: 7
---------------------------------------------------------------- ----------------------------------------------------------------
0. BoardConfig_IPC/BoardConfig-EMMC-Buildroot-RV1106_Luckfox_Pico_Ultra-IPC.mk 0. BoardConfig_IPC/BoardConfig-EMMC-Buildroot-RV1106_Luckfox_Pico_Ultra-IPC.mk
boot medium(启动介质): EMMC boot medium(启动介质): EMMC
system version(系统版本): Buildroot system version(系统版本): Buildroot
hardware version(硬件版本): RV1106_Luckfox_Pico_Ultra hardware version(硬件版本): RV1106_Luckfox_Pico_Ultra
applicaton(应用场景): IPC applicaton(应用场景): IPC
---------------------------------------------------------------- ----------------------------------------------------------------
---------------------------------------------------------------- ----------------------------------------------------------------
1. BoardConfig_IPC/BoardConfig-EMMC-Buildroot-RV1106_Luckfox_Pico_Ultra_W-IPC.mk 1. BoardConfig_IPC/BoardConfig-EMMC-Buildroot-RV1106_Luckfox_Pico_Ultra_W-IPC.mk
boot medium(启动介质): EMMC boot medium(启动介质): EMMC
system version(系统版本): Buildroot system version(系统版本): Buildroot
hardware version(硬件版本): RV1106_Luckfox_Pico_Ultra_W hardware version(硬件版本): RV1106_Luckfox_Pico_Ultra_W
applicaton(应用场景): IPC applicaton(应用场景): IPC
---------------------------------------------------------------- ----------------------------------------------------------------
---------------------------------------------------------------- ----------------------------------------------------------------
2. BoardConfig_IPC/BoardConfig-EMMC-Ubuntu-RV1106_Luckfox_Pico_Ultra-IPC.mk 2. BoardConfig_IPC/BoardConfig-EMMC-Ubuntu-RV1106_Luckfox_Pico_Ultra-IPC.mk
boot medium(启动介质): EMMC boot medium(启动介质): EMMC
system version(系统版本): Ubuntu system version(系统版本): Ubuntu
hardware version(硬件版本): RV1106_Luckfox_Pico_Ultra hardware version(硬件版本): RV1106_Luckfox_Pico_Ultra
applicaton(应用场景): IPC applicaton(应用场景): IPC
---------------------------------------------------------------- ----------------------------------------------------------------
---------------------------------------------------------------- ----------------------------------------------------------------
3. BoardConfig_IPC/BoardConfig-EMMC-Ubuntu-RV1106_Luckfox_Pico_Ultra_W-IPC.mk 3. BoardConfig_IPC/BoardConfig-EMMC-Ubuntu-RV1106_Luckfox_Pico_Ultra_W-IPC.mk
boot medium(启动介质): EMMC boot medium(启动介质): EMMC
system version(系统版本): Ubuntu system version(系统版本): Ubuntu
hardware version(硬件版本): RV1106_Luckfox_Pico_Ultra_W hardware version(硬件版本): RV1106_Luckfox_Pico_Ultra_W
applicaton(应用场景): IPC applicaton(应用场景): IPC
---------------------------------------------------------------- ----------------------------------------------------------------
---------------------------------------------------------------- ----------------------------------------------------------------
4. BoardConfig_IPC/BoardConfig-SD_CARD-Buildroot-RV1103_Luckfox_Pico-IPC.mk 4. BoardConfig_IPC/BoardConfig-SD_CARD-Buildroot-RV1103_Luckfox_Pico-IPC.mk
boot medium(启动介质): SD_CARD boot medium(启动介质): SD_CARD
system version(系统版本): Buildroot system version(系统版本): Buildroot
hardware version(硬件版本): RV1103_Luckfox_Pico hardware version(硬件版本): RV1103_Luckfox_Pico
applicaton(应用场景): IPC applicaton(应用场景): IPC
---------------------------------------------------------------- ----------------------------------------------------------------
---------------------------------------------------------------- ----------------------------------------------------------------
5. BoardConfig_IPC/BoardConfig-SD_CARD-Buildroot-RV1103_Luckfox_Pico_Mini_A-IPC.mk 5. BoardConfig_IPC/BoardConfig-SD_CARD-Buildroot-RV1103_Luckfox_Pico_Mini_A-IPC.mk
boot medium(启动介质): SD_CARD boot medium(启动介质): SD_CARD
system version(系统版本): Buildroot system version(系统版本): Buildroot
hardware version(硬件版本): RV1103_Luckfox_Pico_Mini_A hardware version(硬件版本): RV1103_Luckfox_Pico_Mini_A
applicaton(应用场景): IPC applicaton(应用场景): IPC
---------------------------------------------------------------- ----------------------------------------------------------------
---------------------------------------------------------------- ----------------------------------------------------------------
6. BoardConfig_IPC/BoardConfig-SD_CARD-Buildroot-RV1103_Luckfox_Pico_Plus-IPC.mk 6. BoardConfig_IPC/BoardConfig-SD_CARD-Buildroot-RV1103_Luckfox_Pico_Mini_B-IPC.mk
boot medium(启动介质): SD_CARD
system version(系统版本): Buildroot
hardware version(硬件版本): RV1103_Luckfox_Pico_Mini_B
applicaton(应用场景): IPC
----------------------------------------------------------------
----------------------------------------------------------------
7. BoardConfig_IPC/BoardConfig-SD_CARD-Buildroot-RV1103_Luckfox_Pico_Plus-IPC.mk
boot medium(启动介质): SD_CARD boot medium(启动介质): SD_CARD
system version(系统版本): Buildroot system version(系统版本): Buildroot
hardware version(硬件版本): RV1103_Luckfox_Pico_Plus hardware version(硬件版本): RV1103_Luckfox_Pico_Plus
applicaton(应用场景): IPC applicaton(应用场景): IPC
---------------------------------------------------------------- ----------------------------------------------------------------
---------------------------------------------------------------- ----------------------------------------------------------------
7. BoardConfig_IPC/BoardConfig-SD_CARD-Buildroot-RV1106_Luckfox_Pico_Max-IPC.mk 8. BoardConfig_IPC/BoardConfig-SD_CARD-Buildroot-RV1106_Luckfox_Pico_Pro_Max-IPC.mk
boot medium(启动介质): SD_CARD boot medium(启动介质): SD_CARD
system version(系统版本): Buildroot system version(系统版本): Buildroot
hardware version(硬件版本): RV1106_Luckfox_Pico_Max hardware version(硬件版本): RV1106_Luckfox_Pico_Pro_Max
applicaton(应用场景): IPC applicaton(应用场景): IPC
---------------------------------------------------------------- ----------------------------------------------------------------
---------------------------------------------------------------- ----------------------------------------------------------------
8. BoardConfig_IPC/BoardConfig-SD_CARD-Ubuntu-RV1103_Luckfox_Pico-IPC.mk 9. BoardConfig_IPC/BoardConfig-SD_CARD-Ubuntu-RV1103_Luckfox_Pico-IPC.mk
boot medium(启动介质): SD_CARD boot medium(启动介质): SD_CARD
system version(系统版本): Ubuntu system version(系统版本): Ubuntu
hardware version(硬件版本): RV1103_Luckfox_Pico hardware version(硬件版本): RV1103_Luckfox_Pico
applicaton(应用场景): IPC applicaton(应用场景): IPC
---------------------------------------------------------------- ----------------------------------------------------------------
---------------------------------------------------------------- ----------------------------------------------------------------
9. BoardConfig_IPC/BoardConfig-SD_CARD-Ubuntu-RV1103_Luckfox_Pico_Mini_A-IPC.mk 10. BoardConfig_IPC/BoardConfig-SD_CARD-Ubuntu-RV1103_Luckfox_Pico_Mini_A-IPC.mk
boot medium(启动介质): SD_CARD boot medium(启动介质): SD_CARD
system version(系统版本): Ubuntu system version(系统版本): Ubuntu
hardware version(硬件版本): RV1103_Luckfox_Pico_Mini_A hardware version(硬件版本): RV1103_Luckfox_Pico_Mini_A
applicaton(应用场景): IPC applicaton(应用场景): IPC
---------------------------------------------------------------- ----------------------------------------------------------------
---------------------------------------------------------------- ----------------------------------------------------------------
10. BoardConfig_IPC/BoardConfig-SD_CARD-Ubuntu-RV1103_Luckfox_Pico_Plus-IPC.mk 11. BoardConfig_IPC/BoardConfig-SD_CARD-Ubuntu-RV1103_Luckfox_Pico_Mini_B-IPC.mk
boot medium(启动介质): SD_CARD
system version(系统版本): Ubuntu
hardware version(硬件版本): RV1103_Luckfox_Pico_Mini_B
applicaton(应用场景): IPC
----------------------------------------------------------------
----------------------------------------------------------------
12. BoardConfig_IPC/BoardConfig-SD_CARD-Ubuntu-RV1103_Luckfox_Pico_Plus-IPC.mk
boot medium(启动介质): SD_CARD boot medium(启动介质): SD_CARD
system version(系统版本): Ubuntu system version(系统版本): Ubuntu
hardware version(硬件版本): RV1103_Luckfox_Pico_Plus hardware version(硬件版本): RV1103_Luckfox_Pico_Plus
applicaton(应用场景): IPC applicaton(应用场景): IPC
---------------------------------------------------------------- ----------------------------------------------------------------
---------------------------------------------------------------- ----------------------------------------------------------------
11. BoardConfig_IPC/BoardConfig-SD_CARD-Ubuntu-RV1106_Luckfox_Pico_Pro_Max-IPC.mk 13. BoardConfig_IPC/BoardConfig-SD_CARD-Ubuntu-RV1106_Luckfox_Pico_Pro_Max-IPC.mk
boot medium(启动介质): SD_CARD boot medium(启动介质): SD_CARD
system version(系统版本): Ubuntu system version(系统版本): Ubuntu
hardware version(硬件版本): RV1106_Luckfox_Pico_Pro_Max hardware version(硬件版本): RV1106_Luckfox_Pico_Pro_Max
applicaton(应用场景): IPC applicaton(应用场景): IPC
---------------------------------------------------------------- ----------------------------------------------------------------
---------------------------------------------------------------- ----------------------------------------------------------------
12. BoardConfig_IPC/BoardConfig-SPI_NAND-Buildroot-RV1103_Luckfox_Pico_Mini_B-IPC.mk 14. BoardConfig_IPC/BoardConfig-SPI_NAND-Buildroot-RV1103_Luckfox_Pico_Mini_B-IPC.mk
boot medium(启动介质): SPI_NAND boot medium(启动介质): SPI_NAND
system version(系统版本): Buildroot system version(系统版本): Buildroot
hardware version(硬件版本): RV1103_Luckfox_Pico_Mini_B hardware version(硬件版本): RV1103_Luckfox_Pico_Mini_B
applicaton(应用场景): IPC applicaton(应用场景): IPC
---------------------------------------------------------------- ----------------------------------------------------------------
---------------------------------------------------------------- ----------------------------------------------------------------
13. BoardConfig_IPC/BoardConfig-SPI_NAND-Buildroot-RV1103_Luckfox_Pico_Plus-IPC.mk 15. BoardConfig_IPC/BoardConfig-SPI_NAND-Buildroot-RV1103_Luckfox_Pico_Plus-IPC.mk
boot medium(启动介质): SPI_NAND boot medium(启动介质): SPI_NAND
system version(系统版本): Buildroot system version(系统版本): Buildroot
hardware version(硬件版本): RV1103_Luckfox_Pico_Plus hardware version(硬件版本): RV1103_Luckfox_Pico_Plus
applicaton(应用场景): IPC applicaton(应用场景): IPC
---------------------------------------------------------------- ----------------------------------------------------------------
---------------------------------------------------------------- ----------------------------------------------------------------
14. BoardConfig_IPC/BoardConfig-SPI_NAND-Buildroot-RV1106_Luckfox_Pico_Pro_Max-IPC.mk 16. BoardConfig_IPC/BoardConfig-SPI_NAND-Buildroot-RV1106_Luckfox_Pico_Pro_Max-IPC.mk
boot medium(启动介质): SPI_NAND boot medium(启动介质): SPI_NAND
system version(系统版本): Buildroot system version(系统版本): Buildroot
hardware version(硬件版本): RV1106_Luckfox_Pico_Pro_Max hardware version(硬件版本): RV1106_Luckfox_Pico_Pro_Max
applicaton(应用场景): IPC applicaton(应用场景): IPC
---------------------------------------------------------------- ----------------------------------------------------------------
Which would you like? [0]: Which would you like? [default:0]:
``` ```
输入对应的板级支持文件序号完成配置 输入对应的板级支持文件序号完成配置
#### 设置 Buildroot 系统默认 WIFI 配置 #### 设置 Buildroot 系统默认 WIFI 配置
* 进入板级配置存放目录 * 进入板级配置存放目录
```shell ```shell

View File

@ -159,9 +159,9 @@ function choose_target_board() {
echo "${space8}${space8}[5] RV1106_Luckfox_Pico_Ultra" echo "${space8}${space8}[5] RV1106_Luckfox_Pico_Ultra"
echo "${space8}${space8}[6] RV1106_Luckfox_Pico_Ultra_W" echo "${space8}${space8}[6] RV1106_Luckfox_Pico_Ultra_W"
echo "${space8}${space8}[7] custom" echo "${space8}${space8}[7] custom"
read -p "Which would you like? [0~7]: " HW_INDEX read -p "Which would you like? [0~7][default:0]: " HW_INDEX
if [ -z "$HW_INDEX" ] ;then if [ -z "$HW_INDEX" ]; then
HW_INDEX=0 HW_INDEX=0
fi fi
@ -199,7 +199,7 @@ function choose_target_board() {
done done
local INDEX local INDEX
read -p "Which would you like? [0]: " INDEX read -p "Which would you like? [default:0]: " INDEX
INDEX=$((${INDEX:-0})) INDEX=$((${INDEX:-0}))
if echo $INDEX | grep -vq [^0-9]; then if echo $INDEX | grep -vq [^0-9]; then
@ -219,20 +219,20 @@ function choose_target_board() {
echo -e "${C_GREEN} "${space8}选择启动媒介:"${C_NORMAL}" echo -e "${C_GREEN} "${space8}选择启动媒介:"${C_NORMAL}"
if (("$HW_INDEX" >= 0 && "$HW_INDEX" < 2)); then if (("$HW_INDEX" >= 0 && "$HW_INDEX" < 2)); then
echo "${space8}${space8}[0] SD_CARD" echo "${space8}${space8}[0] SD_CARD"
read -p "Which would you like? [0]: " BM_INDEX read -p "Which would you like? [0][default:0]: " BM_INDEX
MAX_BM_INDEX=0 MAX_BM_INDEX=0
elif (("$HW_INDEX" >= 2 && "$HW_INDEX" < 5)); then elif (("$HW_INDEX" >= 2 && "$HW_INDEX" < 5)); then
echo "${space8}${space8}[0] SD_CARD" echo "${space8}${space8}[0] SD_CARD"
echo "${space8}${space8}[1] SPI_NAND" echo "${space8}${space8}[1] SPI_NAND"
read -p "Which would you like? [0~1]: " BM_INDEX read -p "Which would you like? [0~1][default:0]: " BM_INDEX
MAX_BM_INDEX=1 MAX_BM_INDEX=1
elif (("$HW_INDEX" >= 5 && "$HW_INDEX" < 8)); then elif (("$HW_INDEX" >= 5 && "$HW_INDEX" < 8)); then
echo "${space8}${space8}[0] EMMC" echo "${space8}${space8}[0] EMMC"
read -p "Which would you like? [0]: " BM_INDEX read -p "Which would you like? [0][default:0]: " BM_INDEX
MAX_BM_INDEX=0 MAX_BM_INDEX=0
fi fi
if [ -z "$BM_INDEX" ] ;then if [ -z "$BM_INDEX" ]; then
BM_INDEX=0 BM_INDEX=0
fi fi
@ -244,25 +244,25 @@ function choose_target_board() {
msg_error "Error: BM_INDEX is not in the range ." msg_error "Error: BM_INDEX is not in the range ."
exit 1 exit 1
fi fi
if (("$HW_INDEX" >= 5 && "$HW_INDEX" < 8)); then
BM_INDEX=$BM_INDEX+2
fi
fi fi
# Get System Version # Get System Version
local SYS_INDEX local SYS_INDEX MAX_SYS_INDEX
echo -e "${C_GREEN} "${space8}Lunch menu...pick the system version:"${C_NORMAL}" echo -e "${C_GREEN} "${space8}Lunch menu...pick the system version:"${C_NORMAL}"
echo -e "${C_GREEN} "${space8}选择系统版本:"${C_NORMAL}" echo -e "${C_GREEN} "${space8}选择系统版本:"${C_NORMAL}"
if (("$BM_INDEX" == 1)); then
echo "${space8}${space8}[0] Buildroot(Support Rockchip official features) "
read -p "Which would you like? [0~1][default:0]: " SYS_INDEX
MAX_SYS_INDEX=0
elif (("$BM_INDEX" == 0)); then
echo "${space8}${space8}[0] Buildroot(Support Rockchip official features) " echo "${space8}${space8}[0] Buildroot(Support Rockchip official features) "
echo "${space8}${space8}[1] Ubuntu(Support for the apt package management tool)" echo "${space8}${space8}[1] Ubuntu(Support for the apt package management tool)"
#echo "${space8}${space8}[2] Alpine(Supports the APK package management tool and is relatively streamlined)" read -p "Which would you like? [0~1][default:0]: " SYS_INDEX
echo "" MAX_SYS_INDEX=1
fi
if [ -z "$SYS_INDEX" ]; then
read -p "Which would you like? [0~1]: " SYS_INDEX
if [ -z "$SYS_INDEX" ] ;then
SYS_INDEX=0 SYS_INDEX=0
fi fi
@ -270,17 +270,25 @@ function choose_target_board() {
msg_error "Error: SYS_INDEX is not a number." msg_error "Error: SYS_INDEX is not a number."
exit 1 exit 1
else else
if (($SYS_INDEX < 0 || $SYS_INDEX > 2)); then if (($SYS_INDEX < 0 || $SYS_INDEX > $MAX_SYS_INDEX)); then
msg_error "Error: SYS_INDEX is not in the range 0-1." msg_error "Error: SYS_INDEX is not in the range 0-1."
exit 1 exit 1
fi fi
fi fi
# EMMC
if (("$HW_INDEX" >= 5 && "$HW_INDEX" < 8)); then
BM_INDEX=$BM_INDEX+2
fi
RK_BUILD_TARGET_BOARD="BoardConfig_IPC/BoardConfig-${LF_BOOT_MEDIA[$BM_INDEX]}-${LF_SYSTEM[$SYS_INDEX]}-${LF_HARDWARE[$HW_INDEX]}-IPC.mk" RK_BUILD_TARGET_BOARD="BoardConfig_IPC/BoardConfig-${LF_BOOT_MEDIA[$BM_INDEX]}-${LF_SYSTEM[$SYS_INDEX]}-${LF_HARDWARE[$HW_INDEX]}-IPC.mk"
} }
function build_select_board() { function build_select_board() {
RK_TARGET_BOARD_ARRAY=( $(cd ${TARGET_PRODUCT_DIR}/; ls BoardConfig_*/BoardConfig*.mk | sort) ) RK_TARGET_BOARD_ARRAY=($(
cd ${TARGET_PRODUCT_DIR}/
ls BoardConfig_*/BoardConfig*.mk | sort
))
RK_TARGET_BOARD_ARRAY_LEN=${#RK_TARGET_BOARD_ARRAY[@]} RK_TARGET_BOARD_ARRAY_LEN=${#RK_TARGET_BOARD_ARRAY[@]}
if [ $RK_TARGET_BOARD_ARRAY_LEN -eq 0 ]; then if [ $RK_TARGET_BOARD_ARRAY_LEN -eq 0 ]; then
@ -395,7 +403,7 @@ function usage() {
echo "check -check the environment of building" echo "check -check the environment of building"
echo "info -see the current board building information" echo "info -see the current board building information"
echo "" echo ""
echo "buildrootconfig -config buildroot and save defconfig" echo "buildrootconfig -config b # EMMCuildroot and save defconfig"
echo "kernelconfig -config kernel and save defconfig" echo "kernelconfig -config kernel and save defconfig"
echo "" echo ""
echo "Default option is 'allsave'." echo "Default option is 'allsave'."
@ -2333,3 +2341,4 @@ while [ $# -ne 0 ]; do
done done
eval "${option:-build_allsave}" eval "${option:-build_allsave}"

View File

@ -62,7 +62,7 @@ export RK_PARTITION_FS_TYPE_CFG=rootfs@IGNORE@ext4,userdata@/userdata@ext4,oem@/
export LF_TARGET_ROOTFS=ubuntu export LF_TARGET_ROOTFS=ubuntu
# SUBMODULES github/gitee # SUBMODULES github/gitee
export LF_SUBMODULES_BY=gitee export LF_SUBMODULES_BY=github
# Buildroot defconfig # Buildroot defconfig
export RK_BUILDROOT_DEFCONFIG=luckfox_pico_defconfig export RK_BUILDROOT_DEFCONFIG=luckfox_pico_defconfig

View File

@ -62,7 +62,7 @@ export RK_PARTITION_FS_TYPE_CFG=rootfs@IGNORE@ext4,userdata@/userdata@ext4,oem@/
export LF_TARGET_ROOTFS=ubuntu export LF_TARGET_ROOTFS=ubuntu
# SUBMODULES github/gitee # SUBMODULES github/gitee
export LF_SUBMODULES_BY=gitee export LF_SUBMODULES_BY=github
# Buildroot defconfig # Buildroot defconfig
export RK_BUILDROOT_DEFCONFIG=luckfox_pico_w_defconfig export RK_BUILDROOT_DEFCONFIG=luckfox_pico_w_defconfig

View File

@ -0,0 +1,104 @@
#!/bin/bash
#################################################
# Board Config
#################################################
# 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-b.dts
#################################################
# BOOT_MEDIUM
#################################################
# Target boot medium: sd_card/spi_nor/spi_nand
export RK_BOOT_MEDIUM=sd_card
# 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),-(media)"
# 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 : ubuntu(only sd_card)/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

View File

@ -0,0 +1,107 @@
#!/bin/bash
#################################################
# Board Config
#################################################
# 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-b.dts
#################################################
# BOOT_MEDIUM
#################################################
# Target boot medium: sd_card/spi_nor/spi_nand
export RK_BOOT_MEDIUM=sd_card
# 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),-(media)"
# 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 : ubuntu(only sd_card)/buildroot/busybox
export LF_TARGET_ROOTFS=ubuntu
# SUBMODULES : github/gitee
export LF_SUBMODULES_BY=github
# 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

View File

@ -62,7 +62,7 @@ export RK_PARTITION_FS_TYPE_CFG=rootfs@IGNORE@ext4,userdata@/userdata@ext4,oem@/
export LF_TARGET_ROOTFS=ubuntu export LF_TARGET_ROOTFS=ubuntu
# SUBMODULES : github/gitee # SUBMODULES : github/gitee
export LF_SUBMODULES_BY=gitee export LF_SUBMODULES_BY=github
# Buildroot defconfig # Buildroot defconfig
export RK_BUILDROOT_DEFCONFIG=luckfox_pico_defconfig export RK_BUILDROOT_DEFCONFIG=luckfox_pico_defconfig

View File

@ -313,6 +313,13 @@
// SPI // SPI
&spi0 { &spi0 {
pinctrl-0 = <&spi0m0_clk &spi0m0_miso &spi0m0_mosi &spi0m0_cs0>; pinctrl-0 = <&spi0m0_clk &spi0m0_miso &spi0m0_mosi &spi0m0_cs0>;
#address-cells = <1>;
#size-cells = <0>;
spidev@0 {
compatible = "rockchip,spidev";
spi-max-frequency = <50000000>;
reg = <0>;
};
}; };
// I2C // I2C
&i2c3 { &i2c3 {

View File

@ -42,13 +42,9 @@
/**********SPI**********/ /**********SPI**********/
/* SPI0_M0 */ /* SPI0_M0 */
&spi0 { &spi0 {
status = "okay"; status = "disabled";
#address-cells = <1>;
#size-cells = <0>;
spidev@0 { spidev@0 {
compatible = "rockchip,spidev";
spi-max-frequency = <50000000>; spi-max-frequency = <50000000>;
reg = <0>;
}; };
}; };

View File

@ -7,7 +7,7 @@
#include "rv1103.dtsi" #include "rv1103.dtsi"
#include "rv1106-evb.dtsi" #include "rv1106-evb.dtsi"
#include "rv1103-luckfox-pico-mini-ipc.dtsi" #include "rv1103-luckfox-pico-ipc.dtsi"
/ { / {
model = "Luckfox Pico Mini B"; model = "Luckfox Pico Mini B";
@ -54,13 +54,9 @@
/**********SPI**********/ /**********SPI**********/
/* SPI0_M0 */ /* SPI0_M0 */
&spi0 { &spi0 {
status = "okay"; status = "disabled";
#address-cells = <1>;
#size-cells = <0>;
spidev@0 { spidev@0 {
compatible = "rockchip,spidev";
spi-max-frequency = <50000000>; spi-max-frequency = <50000000>;
reg = <0>;
}; };
}; };

View File

@ -54,13 +54,9 @@
/**********SPI**********/ /**********SPI**********/
/* SPI0_M0 */ /* SPI0_M0 */
&spi0 { &spi0 {
status = "okay"; status = "disabled";
#address-cells = <1>;
#size-cells = <0>;
spidev@0 { spidev@0 {
compatible = "rockchip,spidev";
spi-max-frequency = <50000000>; spi-max-frequency = <50000000>;
reg = <0>;
}; };
}; };

View File

@ -42,13 +42,9 @@
/**********SPI**********/ /**********SPI**********/
/* SPI0_M0 */ /* SPI0_M0 */
&spi0 { &spi0 {
status = "okay"; status = "disabled";
#address-cells = <1>;
#size-cells = <0>;
spidev@0 { spidev@0 {
compatible = "rockchip,spidev";
spi-max-frequency = <50000000>; spi-max-frequency = <50000000>;
reg = <0>;
}; };
}; };

View File

@ -296,6 +296,13 @@
// SPI // SPI
&spi0 { &spi0 {
pinctrl-0 = <&spi0m0_clk &spi0m0_miso &spi0m0_mosi &spi0m0_cs0>; pinctrl-0 = <&spi0m0_clk &spi0m0_miso &spi0m0_mosi &spi0m0_cs0>;
#address-cells = <1>;
#size-cells = <0>;
spidev@0 {
compatible = "rockchip,spidev";
spi-max-frequency = <50000000>;
reg = <0>;
};
}; };
// I2C // I2C
&i2c0 { &i2c0 {
@ -310,9 +317,9 @@
pinctrl-0 = <&i2c3m1_xfer &i2c3m0_xfer>; pinctrl-0 = <&i2c3m1_xfer &i2c3m0_xfer>;
}; };
&i2c4 { // &i2c4 {
pinctrl-0 = <&i2c4m0_xfer>; // pinctrl-0 = <&i2c4m0_xfer>;
}; // };
// UART // UART
&uart0 { &uart0 {

View File

@ -56,21 +56,26 @@
panel: panel { panel: panel {
compatible = "simple-panel"; compatible = "simple-panel";
backlight = <&backlight>; backlight = <&backlight>;
//reset-gpios = <&gpio0 RK_PA1 GPIO_ACTIVE_LOW>;
//reset-delay-ms = <200>;
enable-gpios = <&gpio0 RK_PA1 GPIO_ACTIVE_HIGH>;
enable-delay-ms = <20>;
status = "okay"; status = "okay";
bus-format = <MEDIA_BUS_FMT_RGB666_1X18>; bus-format = <MEDIA_BUS_FMT_RGB666_1X18>;
width-mm = <85>; width-mm = <85>;
height-mm = <85>; height-mm = <85>;
reset {
reset-gpios = <&gpio0 RK_PA1 GPIO_ACTIVE_LOW>;
reset-delay-ms = <200>;
status = "okay";
};
enable {
enable-gpios = <&gpio0 RK_PA1 GPIO_ACTIVE_HIGH>;
enable-delay-ms = <20>;
status = "okay";
};
display-timings { display-timings {
native-mode = <&timing0>; native-mode = <&timing0>;
timing0: timing0 { timing0: timing0 {
clock-frequency = <16500000>; clock-frequency = <0>;
hactive = <0>; hactive = <0>;
vactive = <0>; vactive = <0>;
hback-porch = <0>; hback-porch = <0>;
@ -82,7 +87,7 @@
hsync-active = <0>; hsync-active = <0>;
vsync-active = <0>; vsync-active = <0>;
de-active = <0>; de-active = <0>;
pixelclk-active = <0>; pixelclk-active = <1>;
}; };
}; };
@ -487,9 +492,9 @@
&i2c2 { &i2c2 {
pinctrl-0 = <&i2c2m0_xfer>; pinctrl-0 = <&i2c2m0_xfer>;
}; };
&i2c3 { // &i2c3 {
pinctrl-0 = <&i2c3m0_xfer &i2c3m1_xfer &i2c3m2_xfer>; // pinctrl-0 = <&i2c3m0_xfer &i2c3m1_xfer &i2c3m2_xfer>;
}; // };
// &i2c4 { // &i2c4 {
// pinctrl-0 = <&i2c4m0_xfer &i2c4m1_xfer &i2c4m2_xfer>; // pinctrl-0 = <&i2c4m0_xfer &i2c4m1_xfer &i2c4m2_xfer>;
// }; // };

View File

@ -54,13 +54,9 @@
/**********SPI**********/ /**********SPI**********/
&spi0 { &spi0 {
status = "okay"; status = "disabled";
#address-cells = <1>;
#size-cells = <0>;
spidev@0 { spidev@0 {
compatible = "rockchip,spidev";
spi-max-frequency = <50000000>; spi-max-frequency = <50000000>;
reg = <0>;
}; };
}; };
@ -89,12 +85,6 @@
status = "disabled"; status = "disabled";
}; };
/**********PWM**********/
/* PWM5_M1 */
&pwm1 {
status = "okay";
};
/**********RTC**********/ /**********RTC**********/
&rtc { &rtc {
status = "okay"; status = "okay";

View File

@ -102,10 +102,6 @@
}; };
}; };
/**********TP**********/
&i2c3 {
status = "disabled";
};
/**********SPI**********/ /**********SPI**********/
&spi0 { &spi0 {
@ -114,3 +110,4 @@
spi-max-frequency = <50000000>; spi-max-frequency = <50000000>;
}; };
}; };

View File

@ -53,11 +53,6 @@
status = "okay"; status = "okay";
}; };
/**********TP**********/
&i2c3 {
status = "disabled";
};
/**********SPI**********/ /**********SPI**********/
&spi0 { &spi0 {
status = "disabled"; status = "disabled";

View File

@ -144,7 +144,7 @@ CONFIG_KEYBOARD_ADC=y
CONFIG_KEYBOARD_GPIO=y CONFIG_KEYBOARD_GPIO=y
# CONFIG_INPUT_MOUSE is not set # CONFIG_INPUT_MOUSE is not set
CONFIG_INPUT_TOUCHSCREEN=y CONFIG_INPUT_TOUCHSCREEN=y
CONFIG_TOUCHSCREEN_GOODIX=y CONFIG_TOUCHSCREEN_GOODIX=m
CONFIG_TOUCHSCREEN_EDT_FT5X06=y CONFIG_TOUCHSCREEN_EDT_FT5X06=y
# CONFIG_SERIO is not set # CONFIG_SERIO is not set
# CONFIG_VT is not set # CONFIG_VT is not set

View File

@ -963,8 +963,6 @@ static int goodix_read_version(struct goodix_ts_data *ts)
{ {
int error; int error;
u8 buf[6]; u8 buf[6];
//u8 reg_data[6];
//int i = 0;
char id_str[GOODIX_ID_MAX_LEN + 1]; char id_str[GOODIX_ID_MAX_LEN + 1];
error = goodix_i2c_read(ts->client, GOODIX_REG_ID, buf, sizeof(buf)); error = goodix_i2c_read(ts->client, GOODIX_REG_ID, buf, sizeof(buf));
@ -981,6 +979,7 @@ static int goodix_read_version(struct goodix_ts_data *ts)
dev_info(&ts->client->dev, "ID %s, version: %04x\n", ts->id, dev_info(&ts->client->dev, "ID %s, version: %04x\n", ts->id,
ts->version); ts->version);
return 0; return 0;
} }
@ -1060,15 +1059,11 @@ static int goodix_configure_dev(struct goodix_ts_data *ts)
input_set_abs_params(ts->input_dev, ABS_MT_WIDTH_MAJOR, 0, 255, 0, 0); input_set_abs_params(ts->input_dev, ABS_MT_WIDTH_MAJOR, 0, 255, 0, 0);
input_set_abs_params(ts->input_dev, ABS_MT_TOUCH_MAJOR, 0, 255, 0, 0); input_set_abs_params(ts->input_dev, ABS_MT_TOUCH_MAJOR, 0, 255, 0, 0);
dev_dbg(&ts->client->dev, "(%d, %d, %d)", ts->prop.max_x, ts->prop.max_y, ts->max_touch_num);
/* Read configuration and apply touchscreen parameters */ /* Read configuration and apply touchscreen parameters */
goodix_read_config(ts); goodix_read_config(ts);
dev_dbg(&ts->client->dev, "(%d, %d, %d)", ts->prop.max_x, ts->prop.max_y, ts->max_touch_num);
/* Try overriding touchscreen parameters via device properties */ /* Try overriding touchscreen parameters via device properties */
touchscreen_parse_properties(ts->input_dev, true, &ts->prop); touchscreen_parse_properties(ts->input_dev, true, &ts->prop);
dev_dbg(&ts->client->dev, "(%d, %d, %d)", ts->prop.max_x, ts->prop.max_y, ts->max_touch_num);
if (!ts->prop.max_x || !ts->prop.max_y || !ts->max_touch_num) { if (!ts->prop.max_x || !ts->prop.max_y || !ts->max_touch_num) {
dev_err(&ts->client->dev, dev_err(&ts->client->dev,
@ -1133,17 +1128,9 @@ static void goodix_config_cb(const struct firmware *cfg, void *ctx)
{ {
struct goodix_ts_data *ts = ctx; struct goodix_ts_data *ts = ctx;
int error; int error;
int i;
if (cfg) { if (cfg) {
/* send device configuration to the firmware */ /* send device configuration to the firmware */
while(i < cfg->size)
{
dev_dbg(&ts->client->dev, "reg %d: %#x\n", i, cfg->data[i]);
i ++;
}
error = goodix_send_cfg(ts, cfg->data, cfg->size); error = goodix_send_cfg(ts, cfg->data, cfg->size);
if (error) if (error)
goto err_release_cfg; goto err_release_cfg;
@ -1243,11 +1230,8 @@ reset:
ts->chip = goodix_get_chip_data(ts->id); ts->chip = goodix_get_chip_data(ts->id);
ts->load_cfg_from_disk = 0;
if (ts->load_cfg_from_disk) { if (ts->load_cfg_from_disk) {
/* update device config */ /* update device config */
dev_dbg(&client->dev, "Configure from Disk\n");
ts->cfg_name = devm_kasprintf(&client->dev, GFP_KERNEL, ts->cfg_name = devm_kasprintf(&client->dev, GFP_KERNEL,
"goodix_%s_cfg.bin", ts->id); "goodix_%s_cfg.bin", ts->id);
if (!ts->cfg_name) if (!ts->cfg_name)
@ -1265,7 +1249,6 @@ reset:
return 0; return 0;
} else { } else {
dev_dbg(&client->dev, "Configure from Device\n");
error = goodix_configure_dev(ts); error = goodix_configure_dev(ts);
if (error) if (error)
return error; return error;

View File

@ -263,8 +263,8 @@ function luckfox_pico_pro_max_pin_diagram_file() {
- - GND | | GND - - - - GND | | GND - -
PWM4_M2 - SPI0_M0_CLK - GPIO1_C1 | | GPIO2_A3 - - PWM4_M2 - SPI0_M0_CLK - GPIO1_C1 | | GPIO2_A3 - -
PWM5_M2 - SPI0_M0_MOSI - GPIO1_C2 | | GPIO2_A2 - - PWM5_M2 - SPI0_M0_MOSI - GPIO1_C2 | | GPIO2_A2 - -
PWM6_M2 - SPI0_M0_MISO - GPIO1_C3 | | GPIO2_A1 - I2C4_M0_SCL - PWM6_M2 - SPI0_M0_MISO - GPIO1_C3 | | GPIO2_A1 - -
PWM5_M1 - I2C1_M1_SCL - GPIO2_B0 | | GPIO2_A0 - I2C4_M0_SDA - PWM5_M1 - I2C1_M1_SCL - GPIO2_B0 | | GPIO2_A0 - -
- - GND | | GND - - - - GND | | GND - -
PWM3_M2 - UART3_M1_TX - GPIO1_D0 | | GPIO2_A5 - UART1_M1_RX - PWM3_M2 - UART3_M1_TX - GPIO1_D0 | | GPIO2_A5 - UART1_M1_RX -
PWM10_M2 - UART3_M1_RX - GPIO1_D1 | | GPIO2_A4 - UART1_M1_TX - PWM10_M2 - UART3_M1_RX - GPIO1_D1 | | GPIO2_A4 - UART1_M1_TX -
@ -1300,7 +1300,7 @@ function luckfox_csi_app() {
#endregion #endregion
} }
function luckfox_rgb_check_params(){ function luckfox_rgb_check_params() {
local params=("$@") local params=("$@")
for param in "${params[@]}"; do for param in "${params[@]}"; do
@ -1334,17 +1334,19 @@ function luckfox_rgb_app() {
local rgb_de_active="${14}" local rgb_de_active="${14}"
local rgb_pclk_active="${15}" local rgb_pclk_active="${15}"
local rgb_mode_active gpio0_phandle local gpio0_phandle reset_gpio_action enable_gpio_action
local pre_action local pre_action
pre_action=$(luckfox_get_pin_mode "$(luckfox_get_pinctrl_addr "lcd-pins")") pre_action=$(luckfox_get_pin_mode "$(luckfox_get_pinctrl_addr "lcd-pins")")
# create fdt overlay content # create fdt overlay content
if [ "$action" == 1 ]; then if [ "$action" == 1 ]; then
if [ "$rgb_mode" == "enable" ] ;then if [ "$rgb_mode" == "enable" ]; then
rgb_mode_active=0x1 reset_gpio_action=okay
elif [ "$rgb_mode" == "reset" ] ;then enable_gpio_action=disabled
rgb_mode_active=0x0 elif [ "$rgb_mode" == "reset" ]; then
reset_gpio_action=disabled
enable_gpio_action=okay
else else
luckfox_result_handle $LF_ERR "Wrong rgb_mode!" luckfox_result_handle $LF_ERR "Wrong rgb_mode!"
return 1 return 1
@ -1354,6 +1356,22 @@ function luckfox_rgb_app() {
if [[ $? -ne 0 ]]; then if [[ $? -ne 0 ]]; then
luckfox_result_handle $LF_ERR "Wrong rgb_params!" luckfox_result_handle $LF_ERR "Wrong rgb_params!"
return 1 return 1
else
# decimal to hex
rgb_clk_hex=$(printf '0x%x\n' $rgb_clk)
rgb_h_hex=$(printf '0x%x\n' $rgb_h)
rgb_v_hex=$(printf '0x%x\n' $rgb_v)
rgb_hb_hex=$(printf '0x%x\n' $rgb_hb)
rgb_hf_hex=$(printf '0x%x\n' $rgb_hf)
rgb_vb_hex=$(printf '0x%x\n' $rgb_vb)
rgb_vf_hex=$(printf '0x%x\n' $rgb_vf)
rgb_h_len_hex=$(printf '0x%x\n' $rgb_h_len)
rgb_v_len_hex=$(printf '0x%x\n' $rgb_v_len)
rgb_h_active_hex=$(printf '0x%x\n' $rgb_h_active)
rgb_v_active_hex=$(printf '0x%x\n' $rgb_v_active)
rgb_de_active_hex=$(printf '0x%x\n' $rgb_de_active)
rgb_pclk_active_hex=$(printf '0x%x\n' $rgb_pclk_active)
fi fi
luckfox_check_pin_diagram "GPIO1_D0" "GPIO1_D1" "GPIO1_C2" "GPIO1_C3" "GPIO1_C1" \ luckfox_check_pin_diagram "GPIO1_D0" "GPIO1_D1" "GPIO1_C2" "GPIO1_C3" "GPIO1_C1" \
@ -1421,37 +1439,41 @@ function luckfox_rgb_app() {
}; };
" "
# Get GPIO0 phandle # Get GPIO0 phandle
gpio0_phandle=$(luckfox_get_pinctrl_addr "gpio@ff380000" 11) #gpio0_phandle=$(luckfox_get_pinctrl_addr "gpio@ff380000" 11)
local lcd_time_content=" local lcd_time_content="
/dts-v1/; /dts-v1/;
/plugin/; /plugin/;
&{/panel}{ &{/panel/reset}{
${rgb_mode}-gpios = <$gpio0_phandle 0x1 $rgb_mode_active>; status=\"$reset_gpio_action\";
${rgb_mode}-delay-ms = <100>;
}; };
&{/panel/display-timings/timging0}{ &{/panel/enable}{
clock-frequency = <$rgb_clk>; status=\"$enable_gpio_action\";
hactive = <$rgb_h>; };
vactive = <$rgb_v>;
hback-porch = <$rgb_hb>;
hfront-porch = <$rgb_hf>; &{/panel/display-timings/timing0}{
vback-porch = <$rgb_vb>; clock-frequency = <$rgb_clk_hex>;
vfront-porch = <$rgb_vf>; hactive = <$rgb_h_hex>;
hsync-len = <$rgb_h_len>; vactive = <$rgb_v_hex>;
vsync-len = <$rgb_v_len>; hback-porch = <$rgb_hb_hex>;
hsync-active = <$rgb_h_active>; hfront-porch = <$rgb_hf_hex>;
vsync-active = <$rgb_v_active>; vback-porch = <$rgb_vb_hex>;
de-active = <$rgb_de_active>; vfront-porch = <$rgb_vf_hex>;
pixelclk-active = <$rgb_pclk_active>; hsync-len = <$rgb_h_len_hex>;
vsync-len = <$rgb_v_len_hex>;
hsync-active = <$rgb_h_active_hex>;
vsync-active = <$rgb_v_active_hex>;
de-active = <$rgb_de_active_hex>;
pixelclk-active = <$rgb_pclk_active_hex>;
}; };
" "
# fdt overlay # fdt overlay
luckfox_fdt_overlay "$fdt_content" luckfox_fdt_overlay "$fdt_content"
if [ "$action" == 1 ] ;then if [ "$action" == 1 ]; then
luckfox_fdt_overlay "$lcd_time_content" luckfox_fdt_overlay "$lcd_time_content"
elif [ "$action" == 0 ] && [ "$pre_action" == 1 ]; then elif [ "$action" == 0 ] && [ "$pre_action" == 1 ]; then
luckfox_set_pin_mode "$(luckfox_get_pinctrl_addr "lcd-pins")" 1 luckfox_set_pin_mode "$(luckfox_get_pinctrl_addr "lcd-pins")" 1
@ -1459,7 +1481,7 @@ function luckfox_rgb_app() {
# update cfg # update cfg
luckfox_set_pin_cfg "RGB_ENABLE" "$action" luckfox_set_pin_cfg "RGB_ENABLE" "$action"
if [ "$action" == 1 ] ;then if [ "$action" == 1 ]; then
luckfox_set_pin_cfg "RGB_MODE" "$rgb_mode" luckfox_set_pin_cfg "RGB_MODE" "$rgb_mode"
luckfox_set_pin_cfg "RGB_CLK" "$rgb_clk" luckfox_set_pin_cfg "RGB_CLK" "$rgb_clk"
luckfox_set_pin_cfg "RGB_HACTIVE" "$rgb_h" luckfox_set_pin_cfg "RGB_HACTIVE" "$rgb_h"
@ -2005,30 +2027,30 @@ function luckfox_RGB() {
2>&1 >/dev/tty) 2>&1 >/dev/tty)
if [ -z "$rgb_enable" ]; then if [ -z "$rgb_enable" ]; then
luckfox_advanced_options luckfox_advanced_options
elif [ "$rgb_mode" == 0 ] ;then elif [ "$rgb_mode" == 0 ]; then
rgb_mode_str="reset" rgb_mode_str="reset"
elif [ "$rgb_mode" == 1 ] ;then elif [ "$rgb_mode" == 1 ]; then
rgb_mode_str="enable" rgb_mode_str="enable"
fi fi
if [ -f "$LUCKFOX_RGB_PARAMS" ] ;then if [ -f "$LUCKFOX_RGB_PARAMS" ]; then
touch "$LUCKFOX_RGB_PARAMS" touch "$LUCKFOX_RGB_PARAMS"
fi fi
# init params # init params
init_rgb_clk=$(luckfox_get_pin_cfg "RGB_CLK") init_rgb_clk=$(luckfox_get_pin_cfg "RGB_CLK")
init_rgb_h=$(luckfox_get_pin_cfg "RGB_HACTIVE" ) init_rgb_h=$(luckfox_get_pin_cfg "RGB_HACTIVE")
init_rgb_v=$(luckfox_get_pin_cfg "RGB_VACTIVE" ) init_rgb_v=$(luckfox_get_pin_cfg "RGB_VACTIVE")
init_rgb_hb=$(luckfox_get_pin_cfg "RGB_HBACKPORCH" ) init_rgb_hb=$(luckfox_get_pin_cfg "RGB_HBACKPORCH")
init_rgb_hf=$(luckfox_get_pin_cfg "RGB_HFRONTPORCH" ) init_rgb_hf=$(luckfox_get_pin_cfg "RGB_HFRONTPORCH")
init_rgb_vb=$(luckfox_get_pin_cfg "RGB_VBACKPORCH" ) init_rgb_vb=$(luckfox_get_pin_cfg "RGB_VBACKPORCH")
init_rgb_vf=$(luckfox_get_pin_cfg "RGB_VFRONTPORCH" ) init_rgb_vf=$(luckfox_get_pin_cfg "RGB_VFRONTPORCH")
init_rgb_h_len=$(luckfox_get_pin_cfg "RGB_HSYNC_LEN" ) init_rgb_h_len=$(luckfox_get_pin_cfg "RGB_HSYNC_LEN")
init_rgb_v_len=$(luckfox_get_pin_cfg "RGB_VSYNC_LEN" ) init_rgb_v_len=$(luckfox_get_pin_cfg "RGB_VSYNC_LEN")
init_rgb_h_active=$(luckfox_get_pin_cfg "RGB_HSYNC_ACTIVE") init_rgb_h_active=$(luckfox_get_pin_cfg "RGB_HSYNC_ACTIVE")
init_rgb_v_active=$(luckfox_get_pin_cfg "RGB_VSYNC_ACTIVE") init_rgb_v_active=$(luckfox_get_pin_cfg "RGB_VSYNC_ACTIVE")
init_rgb_de_active=$(luckfox_get_pin_cfg "RGB_DE_ACTIVE" ) init_rgb_de_active=$(luckfox_get_pin_cfg "RGB_DE_ACTIVE")
init_rgb_pclk_active=$(luckfox_get_pin_cfg "RGB_PCLK_ACTIVE" ) init_rgb_pclk_active=$(luckfox_get_pin_cfg "RGB_PCLK_ACTIVE")
LUCKFOX_RGB_PARAMS=$(mktemp) LUCKFOX_RGB_PARAMS=$(mktemp)
dialog --no-cancel --form "Enter RGB Parameters" 15 50 0 \ dialog --no-cancel --form "Enter RGB Parameters" 15 50 0 \
@ -2037,8 +2059,8 @@ function luckfox_RGB() {
"Vsync-Active:" 3 1 "$init_rgb_v_active" 3 15 10 0 \ "Vsync-Active:" 3 1 "$init_rgb_v_active" 3 15 10 0 \
"DE-Active :" 4 1 "$init_rgb_de_active" 4 15 10 0 \ "DE-Active :" 4 1 "$init_rgb_de_active" 4 15 10 0 \
"PCLK-Active :" 5 1 "$init_rgb_pclk_active" 5 15 10 0 \ "PCLK-Active :" 5 1 "$init_rgb_pclk_active" 5 15 10 0 \
2> "$LUCKFOX_RGB_PARAMS" 2>"$LUCKFOX_RGB_PARAMS"
IFS=$'\n' read -d '' -r rgb_clk rgb_h_active rgb_v_active rgb_de_active rgb_pclk_active < "$LUCKFOX_RGB_PARAMS" IFS=$'\n' read -d '' -r rgb_clk rgb_h_active rgb_v_active rgb_de_active rgb_pclk_active <"$LUCKFOX_RGB_PARAMS"
rm -f "$LUCKFOX_RGB_PARAMS" rm -f "$LUCKFOX_RGB_PARAMS"
LUCKFOX_RGB_PARAMS=$(mktemp) LUCKFOX_RGB_PARAMS=$(mktemp)
@ -2051,18 +2073,18 @@ function luckfox_RGB() {
"VFont-Porch :" 6 1 "$init_rgb_vf" 6 15 10 0 \ "VFont-Porch :" 6 1 "$init_rgb_vf" 6 15 10 0 \
"Hsync-Len :" 7 1 "$init_rgb_h_len" 7 15 10 0 \ "Hsync-Len :" 7 1 "$init_rgb_h_len" 7 15 10 0 \
"Vsync-Len :" 8 1 "$init_rgb_v_len" 8 15 10 0 \ "Vsync-Len :" 8 1 "$init_rgb_v_len" 8 15 10 0 \
2> "$LUCKFOX_RGB_PARAMS" 2>"$LUCKFOX_RGB_PARAMS"
IFS=$'\n' read -d '' -r rgb_h rgb_v rgb_hb rgb_hf rgb_vb rgb_vf rgb_h_len rgb_v_len < "$LUCKFOX_RGB_PARAMS" IFS=$'\n' read -d '' -r rgb_h rgb_v rgb_hb rgb_hf rgb_vb rgb_vf rgb_h_len rgb_v_len <"$LUCKFOX_RGB_PARAMS"
rm -f "$LUCKFOX_RGB_PARAMS" rm -f "$LUCKFOX_RGB_PARAMS"
dialog --msgbox "All parameters are valid." 15 50 dialog --msgbox "All parameters are valid." 15 50
luckfox_rgb_app 1 "$rgb_mode_str" "$rgb_clk"\ luckfox_rgb_app 1 "$rgb_mode_str" "$rgb_clk" \
"$rgb_h" "$rgb_v" \ "$rgb_h" "$rgb_v" \
"$rgb_hb" "$rgb_hf"\ "$rgb_hb" "$rgb_hf" \
"$rgb_vb" "$rgb_vf"\ "$rgb_vb" "$rgb_vf" \
"$rgb_h_len" "$rgb_v_len"\ "$rgb_h_len" "$rgb_v_len" \
"$rgb_h_active" "$rgb_v_active"\ "$rgb_h_active" "$rgb_v_active" \
"$rgb_de_active" "$rgb_pclk_active" "$rgb_de_active" "$rgb_pclk_active"
dialog --msgbox "RGB Effective after restart" 10 30 dialog --msgbox "RGB Effective after restart" 10 30
else else

@ -0,0 +1 @@
Subproject commit cc972b16488ce0f8f289ca413647d65c49b87db6