luckfox-pico-sdk/project/make_meta/readme.txt
luckfox-eng29 8f34c2760d 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>
2024-10-14 09:47:04 +08:00

72 lines
2.5 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

1. 编译说明:
清除编译文件:
./build_meta.sh -c
./build_meta.sh --clean
编译sc230ai对应的meta.img
./build_meta.sh --main_sensor_iq sensor_iqfile_bin/sc230ai_CMK-OT2115-PC1_30IRC-F16.bin
编译主摄是sc3338副摄是sc230ai对应的meta.img
./build_meta.sh --main_sensor_iq sensor_iqfile_bin/sc3338_FKO1_30IRC-F16.bin \
--second_sensor_iq sensor_iqfile_bin/sc230ai_CMK-OT2115-PC1_30IRC-F16.bin
注意: sensor_iqfile_bin目录下的IQ文件需要单独更新。
2. 命令说明:
make_meta_host 运行在服务器端
make_meta 运行在板端
make_meta -h 查看具体命令
通过rz把init_sensor.bin下载到板端
板端更新init_sensor.bin的命令
make_meta --update --meta_path /path-to-meta --sensor_init ./init_sensor.bin
板端更新ae_awb_table.bin的命令
make_meta --update --meta_path /path-to-meta --ae_awb_tab ./ae_awb_table.bin
板端更新sc230ai_CMK-OT2115-PC1_30IRC-F16.bin的命令
然后rz sc230ai_CMK-OT2115-PC1_30IRC-F16.bin到板端运行如下命令
make_meta --update --meta_path /path-to-meta --sensor_iq_bin ./sc230ai_CMK-OT2115-PC1_30IRC-F16.bin
对于双摄像头:
make_meta --update --meta_path /path-to-meta \
--sensor_iq_bin ./sc230ai_CMK-OT2115-PC1_30IRC-F16.bin \
--secondary_sensor_iq_bin sc3338_FKO1_30IRC-F16.bin
make_meta --update --meta_path /path-to-meta \
--secondary_sensor_iq_bin sc3338_FKO1_30IRC-F16.bin
make_meta --update --meta_path /path-to-meta \
--sensor_iq_bin ./sc230ai_CMK-OT2115-PC1_30IRC-F16.bin
也可以同时更新并且支持修改其他参数
make_meta --update --meta_path /path-to-meta \
--sensor_init ./init_sensor.bin \
--ae_awb_tab ./ae_awb_table.bin \
--sensor_iq_bin ./sc230ai_CMK-OT2115-PC1_30IRC-F16.bin \
--rk_led_value 23
dump meta数据
make_meta -d /path-to-meta
恢复meta数据IQ bin不支持
make_meta -r /path-to-meta
注意:
1. /path-to-meta参数是meta分区的设备地址
2. 可以通过cat /proc/cmdline 查看meta分区如下meta分区在第5个分区
mtdparts=sfc_nor:64K(env),256K@64K(idblock),256K(uboot),64K(misc),384K(meta),8M(boot),3584K(recovery),3M(userdata)
3. 对于双摄方案meta分区大小要改为704KB
对于spi nor第5个分区节点是/dev/mtdblock4
对于emmc, 第5个分区节点是/dev/mmcblk0p5
3. 如何新增sensor支持
a. 拷贝新IQ bin文件到 sensor_iqfile_bin/ 目录
b. 参考其他sensor在 sensor_ae_awb_table和 sensor_init/目录增加对应的文件
c. 在build_meta.sh 里增加支持 support_sensors="sc230ai sc3338"