hi3516开机修改内存和MMZ分配并安装SDK驱动

1. 拿到的开发版中已经安装最小系统,连接串口开机,设置启动文件

# 配置IP地址

ifconfig eth0 172.16.96.151 netmask 255.255.248.0

route add default gw 172.16.100.1

# 启动telnet服务

telnetd

# 启动ftp服务

inetd

 

# 挂载nfs文件系统

mount -t nfs -o nolock -o tcp -o rsize=32768,wsize=32768 172.16.96.85:/c/Deepin/share /mnt

 

2. 查看内存大小,注意系统内存MemTotal和可分配内存VmallocTotal,接下来进行系统内存和MMZ内存分配

cat /proc/meminfo

 

3.查看启动参数命令,注意系统内存mem,后面根据需要对其进行分配

cat /proc/cmdline

mem=64M console=ttyAMA0,115200 root=/dev/mtdblock2 rootfstype=jffs2 rw mtdparts=hi_sfc:1M(boot),4M(kernel),11M(rootfs)

 

3. 开机按任意键,进行启动参数设置,进行系统内存分配

setenv bootargs 'mem=256M console=ttyAMA0,115200 root=/dev/mtdblock2 rootfstype=jffs2 rw mtdparts=hi_sfc:1M(boot),4M(kernel),11M(rootfs)'

saveenv

reset

 

4. 重启启动后查看内存情况

cat /proc/meminfo

 

5. 安装SDK驱动,在提供的SDK中找到驱动文件,注意要和内核版本匹配,否则会安装失败。根据实际情况配置mem_totalos_mem_sizemmz_startmmz_size

驱动文件位置:

3516DV300\Hi3516CV500R001C02SPC020\Hi3516CV500R001C02SPC020\01.software\board\Hi3516CV500_SDK_V2.0.2.0\package\mpp_smp_linux\ko

cd ../ko/

vi load3516dv300

####################Variables Definition##########################                                                                                                                                              
SNS_TYPE0=imx335;           # sensor type                                                                                                                                                                       
SNS_TYPE1=NULL;             # sensor type                                                                                                                                                                       
YUV_TYPE0=0;                # 0 -- raw, 1 -- bt1120/DC, 2 --bt656                                                                                                                                               
CHIP_TYPE=hi3516dv300;      # chip type                                                                                                                                                                         
#DDR start:0x80000000,   kernel start:0x80000000,  OS(128M); MMZ start:0x88000000                                                                                                                               
mem_total=1024                # 512M, total mem                                                                                                                                                                 
mem_start=0x80000000          # phy mem start                                                                                                                                                                   
os_mem_size=256               # 128M, os mem                                                                                                                                                                    
mmz_start=0x90000000;         # mmz start addr                                                                                                                                                                  
mmz_size=768M;               # 384M, mmz size                                                                                                                                                                   
##################################################################

chmod 777 load3516dv300

./load3516dv300 -i -sensor0 imx335 -sensor1 imx335

参考:

SVP开发

https://www.jianshu.com/p/01ada30eebc8

https://www.jianshu.com/p/f80de2d51f99

https://www.jianshu.com/p/58694ca6f8ba

https://zhuanlan.zhihu.com/p/261110728?utm_source=wechat_session

https://blog.csdn.net/eastcnme/article/details/114026848

https://blog.csdn.net/weixin_42031299/article/details/126131893

https://blog.csdn.net/wxchbhd/article/details/113998709

https://www.it610.com/article/1294942711475937280.htm

https://blog.csdn.net/u011728480/article/details/91125581

https://blog.csdn.net/u011728480/article/details/91294917

https://blog.csdn.net/u011728480/article/details/92069793

 

3516驱动问题

https://blog.csdn.net/weixin_39465823/article/details/88088400

https://www.cnblogs.com/pclx/p/14201435.html

https://www.ebaina.com/questions/100000005721

http://bbs.ebaina.com/thread-23347-1-1.html

https://www.ebaina.com/questions/100000009061

 

系统烧写

https://blog.csdn.net/qq_29350001/article/details/52534979

https://blog.csdn.net/qq_29350001/article/details/52526201

https://ost.51cto.com/posts/4483

https://www.tqwba.com/x_d/jishu/356758.html

https://www.freesion.com/article/77621421396/

https://blog.csdn.net/Chen_qi_hai/article/details/104556541

 

posted @ 2022-09-05 08:57  盛夏夜  阅读(478)  评论(0编辑  收藏  举报