当前位置:网站首页>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
边栏推荐
- Applet pull-down load refresh onreachbottom
- L1-068 harmonic average (10 points)
- National land use data of 30m precision secondary classification
- How to construct a search string?
- [issue 31] 360 background development practice experience - two rounds of technical aspects
- Advanced MySQL knowledge points (7)
- 2022 low voltage electrician test questions and simulation test
- Gavin teacher's perception of transformer live class - rasa dialogue robot project practice in the field of education agency mode and core component source code analysis under the microservice of educ
- Labor
- Shandong University network security range experimental platform -- team and project introduction
猜你喜欢

Some problems of silly girl solved

Enhanced vegetation index evi, NDVI data, NPP data, GPP data, land use data, vegetation type data, rainfall data

存储器的保护

Why is Julia so popular?

According to aiqicha, keep went public in Hong Kong and hit the "first share of online fitness"

Interview must ask: summary of ten classic sorting algorithms

C asynchronous programming (async and await) and asynchronous method synchronous invocation

How to count the total length of roads in the region and draw data histogram

Understanding of day16 array create query static and dynamic array array array performance in memory

【cjson】根节点注意事项
随机推荐
Link: fatal error lnk1168: cannot open debug/test Solution of exe for writing
Simple Tetris
Ray. Tune visual adjustment super parameter tensorflow 2.0
[GIS tutorial] ArcGIS for sunshine analysis (with exercise data download)
Difference between thread and task
Sentinel-2 data introduction and download
LabVIEW about TDMS and Binary Storage Speed
Parallelization of accelerated training tf data. Dataset generator
L1-064 AI core code valued at 100 million (20 points)
Yolo opencv scale identification scale reading identification water gauge identification water level identification source code
[backtracking] backtracking method to solve combinatorial problems
JS to determine whether the tags of multiple classes are empty
PostgreSQL age XID maintenance prevents the database from being read-only
The emergence of new ides and the crisis of programmers?
Enhanced vegetation index evi, NDVI data, NPP data, GPP data, land use data, vegetation type data, rainfall data
Day18 creation and restoration of sparse array
Normalized vegetation index (NDVI) data, NPP data, GPP data, evapotranspiration data, vegetation type data, ecosystem type distribution data
LabVIEW關於TDMS和Binary存儲速度
Operation of simulated examination platform for 2022 safety officer-b certificate examination questions
Pytorch was reported by a large number of netizens that torchrec, a new library, was "born" and has a large scale