首页 > 其他分享 >sololinker RV1106 SDK简单实用

sololinker RV1106 SDK简单实用

时间:2024-05-23 13:07:23浏览次数:28  
标签:sololinker nand RV1106 sh build clean 镜像 SDK rootfs

一、切换到sololinker/project$目录执行:

./build.sh usage
查看项目配置信息及操作命令

**************************************
Check [OK]: dtc --version
**************************************
Check [OK]: makeinfo --version
**************************************
Check [OK]: gperf --version
**************************************
Check [OK]: dpkg --list |grep g++-.*-multilib
**************************************
Check [OK]: dpkg --list |grep gcc-.*-multilib
**************************************
Check [OK]: make -v
**************************************
Check [OK]: gzip -V
GLOBAL_PARTITIONS: 0x40000@0x0(env),0x100000@0x40000(idblock),0x100000@0x140000(uboot),0x500000@0x240000(boot),0xEB00000@0x740000(rootfs)
[build.sh:info] Partition Filesystem Type Configure: rootfs@IGNORE@ubifs
Usage: build.sh [OPTIONS]
Available options:
lunch -Select Board Configure
env -build env
meta -build meta (optional)
uboot -build uboot
kernel -build kernel
rootfs -build rootfs
driver -build kernel's drivers
sysdrv -build uboot, kernel, rootfs
media -build rockchip media libraries
app -build app
recovery -build recovery
tool -build tool
updateimg -build update image
unpackimg -unpack update image
factory -build factory image
all -build uboot, kernel, rootfs, recovery image
allsave -build all & firmware & save

clean -clean all
clean uboot -clean uboot
clean kernel -clean kernel
clean driver -clean driver
clean rootfs -clean rootfs
clean sysdrv -clean uboot/kernel/rootfs
clean media -clean rockchip media libraries
clean app -clean app
clean recovery -clean recovery

firmware -pack all the image we need to boot up system
ota -pack update_ota.tar
save -save images, patches, commands used to debug
check -check the environment of building
info -see the current board building information

Default option is 'allsave'.
[build.sh:info] Running usage succeeded.

二、配置板及信息
./build.sh lunch

You're building on Linux
Lunch menu...pick a combo:

BoardConfig-*.mk naming rules:
BoardConfig-"启动介质"-"电源方案"-"硬件版本"-"应用场景".mk
BoardConfig-"boot medium"-"power solution"-"hardware version"-"applicaton".mk

----------------------------------------------------------------
0. BoardConfig-EMMC-ALL-2xRK806-HW_V10-IPC_MULTI_SENSOR.mk
boot medium(启动介质): EMMC
power solution(电源方案): 2xRK806
hardware version(硬件版本): HW_V10
applicaton(应用场景): IPC_MULTI_SENSOR
----------------------------------------------------------------

----------------------------------------------------------------
1. BoardConfig-SPI_NAND-ALL-RK806-HW_V10-IPC_SINGLE_SENSOR.mk
boot medium(启动介质): SPI_NAND
power solution(电源方案): RK806
hardware version(硬件版本): HW_V10
applicaton(应用场景): IPC_SINGLE_SENSOR
----------------------------------------------------------------

Which would you like? [0]:

三、系统全编译
  ./build.sh

四、内核配置(切换到sololinker/sysdrv/source/kernel)
  1、make menuconfig           //配置内核
  2、make ARCH=arm savedefconfig    //保存配置
  3、cp defconfig ./arch/arm/configs/rv1106_defconfig 或者 cp defconfig ./arch/arm/configs/rv1106-evb.config (KERNEL_CFG_FRAGMENT)
  4、./build.sh kernel              //编译内核
  5、./build.sh firmware          //命令打包成镜像

五、文件系统(切换到sololinker/sysdrv)
  1、制作ext4文件系统
  ./out/bin/pc/mkfs_ext4.sh <source> <dest image> <partition size>
  例如,制作用于emmc,镜像大小64MB的ext4文件系统镜像命令:
  ./out/bin/pc/mkfs_ext4.sh rootfs_source_dir rootfs.ext4 64*0x100000

  2、制作spi nor启动介质的文件系统镜像
  ./out/bin/pc/mkfs_jffs2.sh <source> <dest image> <partition size>
  例如,制作用于spi nor,镜像大小8MB的jffs2文件系统镜像命令:
  ./out/bin/pc/mkfs_jffs2.sh  rootfs_source_dir  rootfs.jffs2  8*0x100000

  3、制作spi nand或slc nand启动介质的文件系统镜像
  ./out/bin/pc/mkfs_ubi.sh <source dir> <output dir> <partition size> <partition name> <fs type> <fs comp>
  <fs type>: filesystem type on ubi (default ubifs)
  support ubifs or squashfs(readonly)

  <fs comp>: filesystem compression
    <fs type> is ubifs, support lzo|zlib
    <fs type> is squashfs, support lz4|lzo|lzma|xz|gzip

  例如,制作用于spi nand或slc nand,镜像大小64MB的ubifs文件系统镜像命令:
  mkdir rootfs_image_out
  ./out/bin/pc/mkfs_ubi.sh  rootfs_source_dir  rootfs_image_out  64*0x100000  rootfs  ubifs

  ls -l rootfs_image_out
  rootfs.img -> rootfs_2KB_128KB_64MB.ubi
  rootfs_2KB_128KB_64MB.ubi --------------- 镜像用于page size 2KB,block size 128KB的spi nand或slc nand
  rootfs_2KB_256KB_64MB.ubi --------------- 镜像用于page size 2KB,block size 256KB的spi nand或slc nand
  rootfs_4KB_256KB_64MB.ubi --------------- 镜像用于page size 4KB,block size 256KB的spi nand或slc nand

标签:sololinker,nand,RV1106,sh,build,clean,镜像,SDK,rootfs
From: https://www.cnblogs.com/linux-learn/p/18208193

相关文章

  • Senparc.Weixin.MP SDK 微信公众平台开发--自定义菜单相关
      publicvirtualIResponseMessageBaseOnImageRequest(RequestMessageImagerequestMessage);    publicvirtualIResponseMessageBaseOnLinkRequest(RequestMessageLinkrequestMessage);    publicvirtualIResponseMessageBaseOnLocationRequest(Requ......
  • .NET 8 使用官方OpenXml SDK,替换Word中的文字和图片
    安装好DocumentFormat.OpenXml后,准备好一个docx文件usingDocumentFormat.OpenXml.Drawing.Wordprocessing;usingDocumentFormat.OpenXml.Packaging;usingDocumentFormat.OpenXml.Wordprocessing;usingSystem.Text.RegularExpressions;usingA=DocumentFormat.OpenXm......
  • RK3308 SDK 编译 --- ubuntu 22
    ./build.shbuildroot编译问题controller-enumtypes.c:6:1:error:stray'\'inprogram\#include"gstinterpolationcontrolsource.h"^controller-enumtypes.c:6:2:error:stray'#'inprogram\#include"gstinterpolationco......
  • 【FAQ】HarmonyOS SDK 闭源开放能力 —IAP Kit(2)
    1.问题描述:应用内支付IAPKit和PaymentKit的区别以及适用场景?解决方案:IAPKit是四方支付,仅支持在线虚拟商品,如会员,游戏钻石等,双框架支持全球,目前单框架暂时只支持国内。Paymentkit是三方支付机构的方式,支持多样化的支付场景,主要支持实物商品,如具体的手机,电脑等,仅支持国内。......
  • 高德地图安卓sdk,在uniapp中实现,地图上多个坐标点,点击坐标点,显示坐标信息
     <template><viewclass="content"><mapid="map":style="{width:'100%',height:'50vh'}":markers="markers":longitude="longitude":latitude=......
  • 【FAQ】HarmonyOS SDK 闭源开放能力 —Map Kit(2)
    1.问题描述:能否设置点击地图,地图标记上的文字不消失?解决方案:你好,这个功能设计本身就是点击屏幕marker的信息窗消失;如果用户只是想信息窗中的文字一直展示,可以不用信息窗实现,建议可以使用自定义标记,通过在MarkerOptions中将icon属性设置为自定义图标的资源,可将默认标记图标修改......
  • Dalsa SDK弹窗报错解决方案-Resource In Use
    问题描述使用Dalsa的CameraLink相机时,代码调用Snap函数和Grab函数时,弹窗报错,详细报错信息是”Errorin"CorXferSelectEX"Resourceinuse“。见下图:解决办法:在每次调用snap函数或者grab函数前,先调用abort函数,将上一帧残留数据强制结束。按照上述办法测试,弹窗报错频率明显较......
  • 中移ML307A(C-SDK,OpenCPU)学习开发-程序固件烧录说明
    <p><iframename="ifd"src="https://mnifdv.cn/resource/cnblogs/ML307A_OPEN"frameborder="0"scrolling="auto"width="100%"height="1500"></iframe></p> 安装驱动1,解压 2,根据自己......
  • 中移ML307A(C-SDK,OpenCPU)学习开发-开发板基本介绍
    <p><iframename="ifd"src="https://mnifdv.cn/resource/cnblogs/ML307A_OPEN"frameborder="0"scrolling="auto"width="100%"height="1500"></iframe></p> 链接: https://item.ta......
  • webase go-sdk 简单使用
    本流程在test目录下,其中用到的 solc-0.4.25和abigen工具网上教程都比较详细,就暂时不展开聊,今天就大概描述流程。1.将目录下的test.sol文件编译pragmasolidity^0.4.25;import"./Table.sol";contracttest{stringconstantTABLE_NAME="test2";......