当前位置:网站首页>Pupanvr hardware and software board side development environment configuration (4)
Pupanvr hardware and software board side development environment configuration (4)
2022-06-12 04:56:00 【hi_ LeTian】
Run the compiler directly on the hardware C,C++ Warning message about incorrect version of Library , It seems that the compiler version is inconsistent with the current board end system , Need to update rootfs, Use the compiler's corresponding BSP package :Hi3536C V100R001C02SPC040, Compile the rootfs, To facilitate development , Use jffs2 File system .
- Partition configuration :
mem=300M console=ttyAMA0,115200 root=/dev/mtdblock2 rootfstype=jffs2 rw mtdparts=hi_sfc:1M(boot),4M(kernel),11M(rootfs);- BSP compile
decompression BSP After package , stay Hi3536C V100R001C02SPC040\01.software\board find Hi3536CV100_SDK_V2.0.4.0.tgz, Unpack , Execute in the directory :sdk.unpack.
reference osdrv\opensource\kernel Explanation , hold kernel Download and unzip , Fix the patch , Back to osdrv Under the table of contents , An Zhao readme_cn.txt Description compilation .
In my ubuntu20 Tips mkimage Can't find , This one uses apt-get Just install the corresponding tools .
When compiling to the file system mtd-utils1.5.0 Will compile but , The record of how it was handled a few years ago is updated to 1.5.2 It's a good version .
Misunderstanding mainly means that you can't find major,minor These functions , This time, we corrected the mistakes , In the corresponding file #include <sys/sysmacros.h> Statement , There are also hints zlib The header file for cannot be found , Modify the corresponding Makefile, Because you only need mkfs.jffs2, Make sure that this tool has not been changed after it has been compiled , Make up mkfs.jffs2 after , Kao to osdrv/pub/bin/pc/mkfs.jffs2.
- reference SDK The way in the world , Pack it up rootfs:
osdrv/pub/bin/pc/mkfs.jffs2 -d osdrv/pub/rootfs_glibc -l -e 0x10000 -o osdrv/pub/rootfs_glibc_64k.jffs2
- stay ubuntu Install it in the middle tftpd-hpa Service for ;
- Into the plate end uboot In command , Configure the relevant IP Address ;
- adopt tftp,sf Write a fever under the tool rootfs, Like my environment :
tftp 0x8200000 rootfs_glibc_64k.jffs2;
sf probe 0;sf erase 0x500000 0xb00000; sf write 0x82000000 0x500000 0xb00000;After entering the system, set up IP, mount To uboot Of NFS Catalog , The running program did not report an error .
- MPP Environment configuration ;
hold Hi3536CV100_SDK_V2.0.4.0\mpp\ko Put the directory into the mount directory , Execute at the board end , Dan Bao Unknown symbol devm_pinctrl_put These modules are wrong , It seems kernel It's better to update it .
First put the end of the plate kernel The backup to come out , Update again kernel.
Direct use BSP Compiled in Kernel Can run normally , The Internet is normal , It seems lucky , Manufacturer and official DEMO A little change , Then execute the following script .
./load3536c -i -total 512 -osmem 300
MPP Corresponding to ko All loaded .
With these environments , You can basically develop all business functions on this board , hold SDK Inside mpp The driver 、 Copy to ubuntu Under the mount directory of , You can load it by command !
/nfsroot/hi3536c/mpp/ko # lsmod
Module Size Used by Tainted: P
hi3536c_adec 6099 0
hi3536c_aenc 85360 0
hi3536c_ao 355555 0
hi3536c_ai 206470 1 hi3536c_aenc
hi3536c_aio 25556 0
hi3536c_ive 183354 0
hi3536c_vda 566389 0
hi3536c_jpege 46427 0
hi3536c_h265e 157524 0
hi3536c_h264e 139170 0
hi3536c_vedu 11723 0
hi3536c_chnl 36078 0
hi3536c_venc 227024 3 hi3536c_jpege,hi3536c_h265e,hi3536c_h264e
hi3536c_rc 180446 0
hi3536c_hdmi 295031 0
hifb 79096 0
hi3536c_vou 436942 0
hi3536c_vpss 365830 0
hi3536c_vgs 170236 0
hi3536c_region 76502 0
hi3536c_tde 99004 0
hi3536c_jpegd 4373 0
hi3536c_vfmw 1283461 0
hi3536c_vdec 233615 0
hi3536c_sys 65523 3 hi3536c_aenc,hi3536c_aio,hi3536c_venc
hi3536c_base 47502 24 hi3536c_adec,hi3536c_aenc,hi3536c_ao,hi3536c_ai,hi3536c_aio,hi3536c_ive,hi3536c_vda,hi3536c_jpege,hi3536c_h265e,hi3536c_h264e,hi3536c_vedu,hi3536c_chnl,hi3536c_venc,hi3536c_rc,hi3536c_hdmi,hifb,hi3536c_vou,hi3536c_vpss,hi3536c_vgs,hi3536c_region,hi3536c_tde,hi3536c_vfmw,hi3536c_vdec,hi3536c_sys
hi_osal 58462 26 hi3536c_adec,hi3536c_aenc,hi3536c_ao,hi3536c_ai,hi3536c_aio,hi3536c_ive,hi3536c_vda,hi3536c_jpege,hi3536c_h265e,hi3536c_h264e,hi3536c_vedu,hi3536c_chnl,hi3536c_venc,hi3536c_rc,hi3536c_hdmi,hifb,hi3536c_vou,hi3536c_vpss,hi3536c_vgs,hi3536c_region,hi3536c_tde,hi3536c_jpegd,hi3536c_vfmw,hi3536c_vdec,hi3536c_sys,hi3536c_base
sys_config 2845 0 Check these ko All loaded !
PUPANVR
边栏推荐
- ShanMeng and Beijing Adoption Day start NFT digital collection public offering
- Chrome is amazingly fast, fixing 40 vulnerabilities in less than 30 days
- Yolo opencv scale identification scale reading identification water gauge identification water level identification source code
- Walking "daily question" and "DP"
- Force/release learning arrangement in IC Verification (5) research on the influence of reg type signals
- Gao Xiang slam14 notes on three Lie groups and Lie algebra
- Jwt Learning and use
- JS set the position of the current scroll bar
- Drive safety coding & troubleshooting guide
- Pytorch was reported by a large number of netizens that torchrec, a new library, was "born" and has a large scale
猜你喜欢

Qinglong wool - Kaka

CCF access control system

Surface net radiation flux data, solar radiation data, rainfall data, air temperature data, sunshine duration, water vapor pressure distribution, wind speed and direction data, surface temperature

Summary of common interview questions in redis

asp. Net core theme Middleware

kali下安装pycharm并创建快捷访问

kali_ Change_ Domestic source

Operation of simulated examination platform for 2022 safety officer-b certificate examination questions

How to deploy PostgreSQL as a docker container

Memory protection
随机推荐
2022 examination questions and simulation examination for crane driver (limited to bridge crane)
LabVIEW关于TDMS和Binary存储速度
Understanding of day16 array create query static and dynamic array array array performance in memory
Soil type, soil texture, soil nutrient and change data, soil organic matter, soil pH, soil nitrogen, phosphorus and potassium
Qinglong wool - Kaka
2022 fusion welding and thermal cutting recurrent training question bank and simulation examination
Sword finger offer30 days re brush
1009 word search
[backtracking] backtracking method to solve combinatorial problems
SQL注入上传一句话木马(转)
JWT學習與使用
Uview customer management JS
2022 examination questions and online simulation examination for safety management personnel of hazardous chemical business units
Sustainable service business models
JS disable mobile sharing
IC验证中的force/release 学习整理(6)研究对 wire 类型信号的影响
LabVIEW about TDMS and binary storage speeds
JWT学习与使用
JWT learning and use
[backtracking based on bit operation] queen n problem 2