海思芯片文件及查看方法

一:根目标文件系统
根目录的文件:

/ # ls
backup         factory        linuxrc        opt            sys
bin            home           lost+found     proc           tmp
boot           init           mknod_console  root           usr
dev            komod          mnt            sbin           var
etc            lib            models         share

海思芯片文件及查看方法制作根文件系统的方法:https://blog.csdn.net/qq_17308321/article/details/79624536
二:海思芯片
海思芯片系列:Hisi3516V300、3559A。
海思平台的内存分为两部分:os内存和mmz内存。os内存为linux系统内存;mmz内存为由mmz驱动模块管理的供媒体业务单独使用的内存。
查看系统内存:

~ # cat /proc/meminfo 
MemTotal:        4029132 kB
MemFree:          321220 kB
MemAvailable:    3927800 kB
Buffers:           11624 kB
Cached:          3579112 kB
SwapCached:            0 kB
Active:           675868 kB
Inactive:        2916784 kB
Active(anon):       1940 kB
Inactive(anon):        0 kB
Active(file):     673928 kB
...

查看mmz内存:

~ # cat /proc/media-mem 
+---ZONE: PHYS(0x148000000, 0x243FFFFFF), GFP=0, nBYTES=4128768KB,    NAME="anonymous"
   |-MMB: phys(0x148000000, 0x14800BFFF), kvirt=0xFFFFFF8008E70000, flags=0x00000001, length=48KB,    name="sys_scale_coef"
   |-MMB: phys(0x14800C000, 0x14802BFFF), kvirt=0x00000000, flags=0x00000000, length=128KB,    name="TDE_MEMPOOL_MMB"
   |-MMB: phys(0x14802C000, 0x14807CFFF), kvirt=0xFFFFFF800A300000, flags=0x00000001, length=324KB,    name="gdc_node_buf"
   |-MMB: phys(0x14807D000, 0x1481A0FFF), kvirt=0xFFFFFF800A600000, flags=0x00000001, length=1168KB,    name="VGS_NodeBuf"
   |-MMB: phys(0x1481A1000, 0x1481C1FFF), kvirt=0xFFFFFF800A500000, flags=0x00000001, length=132KB,    name="dis_node_buf"
   |-MMB: phys(0x1481C2000, 0x1483AAFFF), kvirt=0xFFFFFF800AE00000, flags=0x00000001, length=1956KB,    name="vo0_coef_buf"
   |-MMB: phys(0x1483AB000, 0x14A34EFFF), kvirt=0x00000000, flags=0x00000000, length=32400KB,    name="hifb_layer0"
   |-MMB: phys(0x14A34F000, 0x14B320FFF), kvirt=0x00000000, flags=0x00000000, length=16200KB,    name="hifb_layer1"
   |-MMB: phys(0x14B321000, 0x14B360FFF), kvirt=0x00000000, flags=0x00000000, length=256KB,    name="hifb_layer2"
   |-MMB: phys(0x14B361000, 0x14B390FFF), kvirt=0xFFFFFF800ADC0000, flags=0x00000001, length=192KB,    name="HIFB COEF"
   |-MMB: phys(0x14B391000, 0x14B410FFF), kvirt=0x00000000, flags=0x00000000, length=512KB,    name="jpegd0_emar"
   |-MMB: phys(0x14B411000, 0x14B445FFF), kvirt=0xFFFFFF800E780000, flags=0x00000001, length=212KB,    name="IVE_QUEUE"
   |-MMB: phys(0x14B446000, 0x14B446FFF), kvirt=0xFFFFFF8008E4D000, flags=0x00000003, length=4KB,    name="IVE_TEMP_NODE"
   |-MMB: phys(0x14B447000, 0x14B466FFF), kvirt=0xFFFFFF800E800000, flags=0x00000001, length=128KB,    name="SVP_NNIE_QUEUE"
   |-MMB: phys(0x14B467000, 0x14B46DFFF), kvirt=0xFFFFFF8008FF8000, flags=0x00000003, length=28KB,    name="SVP_NNIE_MODLE_"

---MMZ_USE_INFO:
 total size=4128768KB(4032MB),used=53688KB(52MB + 440KB),remain=4075080KB(3979MB + 584KB),zone_number=1,block_number=15

查看挂载信息:

~ # df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root               484.3M    243.9M    230.5M  51% /
tmpfs                     1.9G         0      1.9G   0% /dev
...

查看自启动文件:

~ # cd /etc/init.d/
/etc/init.d # ls
board_init.sh     dvr_run.sh        nebula_ntp.sh     nebula_udhcpc.sh
dnode             lite.sh           nebula_run.sh     rcS

查看系统进程的信息:

 ~ # cd /proc
/proc # ls
1              1514           322            637            7              869            iomem          self
10             16             324            638            702            870            ioports        slabinfo
1004           17936          325            6388           705            9              irq            softirqs
1005           18             326            639            8              940            kallsyms       stat
...

参考:https://blog.csdn.net/xinfeismile123/article/details/119577366

上一篇:网易免费邮件开启smtp教程


下一篇:arm64_linux head.S的执行流程- 4.calc_phys_offset