RV1103开发环境搭建 基于 Luckfox Pico SDK编译
- 本SDK基于RK官方提供的SDK修改而来
- 专为Luckfox Pico系列开发板提供客制化的SDK
- 旨在为开发者提供更好的编程体验
SDK 介绍- 当前main分支,rootfs使用buildroot构建,可以更加轻松的添加或者删除应用程序
- 原先使用busybox直接构建rootfs,被移动到busybox分支
默认应用默认SDK中开启或者装有应用(包括但不限于) - python3
- PERIPHERY
- PILLOW(暂时无法加载字体)
- SERIAL
- SMBUS
- SPIDEV
- ssh
- samba
- adb
SDK 使用说明安装依赖sudo apt-get install repo git ssh make gcc gcc-multilib g++-multilib module-assistant expect g++ gawk texinfo libssl-dev bison flex fakeroot cmake unzip gperf autoconf device-tree-compiler libncurses5-dev pkg-config
获取SDKgit clone https://github.com/LuckfoxTECH/luckfox-pico.git
环境变量cd {SDK_PATH}/tools/linux/toolchain/arm-rockchip830-linux-uclibcgnueabihf/source env_install_toolchain.sh
build.sh使用说明- SDK使用build.sh脚本实现自动编译,大部分编译操作均可以通过build.sh自动完成.
build.sh全部可用选项Usage: build.sh [OPTIONS]Available options:lunch -Select Board Configureenv -build envmeta -build meta (optional)uboot -build ubootkernel -build kernelrootfs -build rootfsdriver -build kernel's driverssysdrv -build uboot, kernel, rootfsmedia -build rockchip media librariesapp -build apprecovery -build recoverytool -build toolupdateimg -build update imageunpackimg -unpack update imagefactory -build factory imageall -build uboot, kernel, rootfs, recovery imageallsave -build all & firmware & saveclean -clean allclean uboot -clean ubootclean kernel -clean kernelclean driver -clean driverclean rootfs -clean rootfsclean sysdrv -clean uboot/kernel/rootfsclean media -clean rockchip media librariesclean app -clean appclean recovery -clean recoveryfirmware -pack all the image we need to boot up systemota -pack update_ota.tarsave -save images, patches, commands used to debugcheck -check the environment of buildinginfo -see the current board building information
选择参考的板级配置./build.sh lunch
将会输出对应的板级配置选项,输入对应板级配置的编号即可切换对应的板级配置 You're building on LinuxLunch menu...pick a combo:BoardConfig-*.mk naming rules:BoardConfig-"启动介质"-"电源方案"-"硬件版本"-"应用场景".mkBoardConfig-"boot medium"-"power solution"-"hardware version"-"applicaton".mk----------------------------------------------------------------1. BoardConfig_IPC/BoardConfig-EMMC-NONE-RV1103_Luckfox_Pico-IPC.mk boot medium(启动介质): EMMC power solution(电源方案): NONE hardware version(硬件版本): RV1103_Luckfox_Pico applicaton(应用场景): IPC--------------------------------------------------------------------------------------------------------------------------------2. BoardConfig_IPC/BoardConfig-EMMC-NONE-RV1103_Luckfox_Pico_Mini_A-IPC.mk boot medium(启动介质): EMMC power solution(电源方案): NONE hardware version(硬件版本): RV1103_Luckfox_Pico_Mini_A applicaton(应用场景): IPC--------------------------------------------------------------------------------------------------------------------------------3. BoardConfig_IPC/BoardConfig-SPI_NAND-NONE-RV1103_Luckfox_Pico_Mini_B-IPC.mk boot medium(启动介质): SPI_NAND power solution(电源方案): NONE hardware version(硬件版本): RV1103_Luckfox_Pico_Mini_B applicaton(应用场景): IPC--------------------------------------------------------------------------------------------------------------------------------4. BoardConfig_IPC/BoardConfig-SPI_NAND-NONE-RV1103_Luckfox_Pico_Plus-IPC.mk boot medium(启动介质): SPI_NAND power solution(电源方案): NONE hardware version(硬件版本): RV1103_Luckfox_Pico_Plus applicaton(应用场景): IPC--------------------------------------------------------------------------------------------------------------------------------5. BoardConfig_IPC/BoardConfig-SPI_NAND-NONE-RV1106_Luckfox_Pico_Pro_Max-IPC.mk boot medium(启动介质): SPI_NAND power solution(电源方案): NONE hardware version(硬件版本): RV1106_Luckfox_Pico_Pro_Max applicaton(应用场景): IPC----------------------------------------------------------------Which would you like? [0]:
输入对应的序号选择对应的参考板级。 一键自动编译./build.sh lunch # 选择参考板级./build.sh # 一键自动编译
单独编译U-Boot./build.sh clean uboot./build.sh uboot
生成镜像文件: output/image/MiniLoaderAll.bin output/image/uboot.img 单独编译kernel./build.sh clean kernel./build.sh kernel
生成镜像文件: output/image/boot.img 单独编译rootfs./build.sh clean rootfs./build.sh rootfs
- 注:编译后需使用./build.sh firmware命令重新打包
单独编译media./build.sh clean media./build.sh media
生成文件的存放目录: output/out/media_out
- 注:编译后需使用./build.sh firmware命令重新打包
单独编译参考应用./build.sh clean app./build.sh app
- 注1:app依赖media
- 注2:编译后需使用./build.sh firmware命令重新打包
固件打包./build.sh firmware
生成文件的存放目录: output/image 注意事项在windows下复制源码包时,linux下的可执行文件可能变为非可执行文件,或者软连接失效导致无法编译使用。因此使用时请注意不要在windows下复制源代码包。
|