# HiSpark\_taurus介绍
- [简介](#section11660541593)
- [目录](#section161941989596)
- [约束](#section119744591305)
- [编译构建](#section137768191623)
- [hispark\_taurus协议说明](#section1312121216216)
- [third\_party许可说明](#section129654513264)
- [相关仓](#section1371113476307)
## 简介
hispark\_taurus仓为hi3516dv300芯片的底层处理驱动,为“媒体/图形子系统”提供基础的多媒体处理功能。主要功能有:音视频采集、音视频编解码、音视频输出、视频前处理、封装、解封装、文件管理、存储管理、日志系统等。如图1所示。
**图 1** 多媒体子系统架构图

## 目录
```
/device/hisilicon/hispark_taurus/sdk_liteos
├── config # Hi3516DV300设备配置信息
├── mpp
│ ├── lib # Hi3516DV300芯片的媒体库文件、LICENSE文件
│ └── module_init # Hi3516DV300芯片媒体各模块驱动对应的库、LICENSE文件
└── uboot
├── out # 采用third_party\uboot\u-boot-2020.01编译成的U-Boot
├── reg # U-Boot配置文件、LICENSE文件
├── secureboot_ohos # 安全启动相关的编译脚本
└── secureboot_release # 生成安全U-Boot的源代码、License目录
/device/hisilicon/hispark_taurus/sdk_linux/soc
├── ko # Hi3516DV300芯片的内核模块加载脚本
├── lib # Hi3516DV300芯片的媒体图形库文件、LICENSE文件
└── src # Hi3516DV300芯片的linux内核驱动模块源码、LICENSE文件
├── interdrv # 外设模块
│ ├── common # 各芯片通用模块
│ │ ├── cipher # 加解密模块
│ │ ├── hi_adc # adc总线控制器
│ │ ├── hi_ir # 红外控制器
│ │ ├── hi_irq # 用户态驱动中断注册管理模块
│ │ ├── hi_proc # 调试信息管理模块
│ │ └── wtdg # 看门狗
│ └── hi3516cv500 # 芯片相关模块
│ ├── mipi_rx # mipi协议rx方向
│ ├── mipi_tx # mipi协议tx方向
│ └── sysconfig # 系统管脚配置相关配置
├── mpp # 图形媒体相关模块
│ ├── cbb
│ │ ├── based # 日志相关功能
│ │ ├── sysd # 系统基础模块,提供内存、模块绑定等功能
│ │ └── vo # video output
│ └── component
│ ├── hdmi # HDMI接口输出
│ ├── hifb # frame buffer管理
│ └── tde # Two Dimensional Engine
└── osal # 驱动适配层,用于屏蔽系统差异,提供统一接口
```
## 约束
当前支持Hi3516DV300芯片。
## 编译构建
- 编译uboot
1. 从开源社区\(https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads\)下载GCC工具链,当前用于编译uboot的工具链版本为gcc-arm-none-eabi-7-2017-q4-major-linux.tar.bz2,也可以选择其他的GCC版本。
2. 将GCC工具链拷贝到prebuilts目录,并解压。
3. 进入hispark\_taurus\\uboot\\out\\boot目录,修改该目录下的Makefile中的OSDRV\_CROSS所定义的工具链的路径。
4. 编译U-Boot,命令:make clean;make all;
生成的U-Boot存放在hispark\_taurus\\uboot\\out\\boot目录下。
备注:prebuilts\\mkimage由uboot源码生成。
## hispark\_taurus协议说明
- hispark\_taurus\\sdk\_linux\\soc\\lib里面为上海海思的自研库,遵循上海海思的LICENSE,这个目录下有LICENSE文件,LICENSE文件中可以看到版权信息:
```
/ *End User License Agreement ... Copyright (C) 2021 Hisilicon (Shanghai) Technologies Co., Ltd. All rights reserved. * /
```
- hispark\_taurus\\sdk\_linux\\soc\\src目录下为上海海思自研代码,使用基于GPL许可的Hisilicon \(Shanghai\) 版权声明,在该目录下有License目录,许可信息和版权信息通常可以在文件开头看到:
```
/ *Copyright (c) 2021 HiSilicon (Shanghai) Technologies CO., LIMITED.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
* ... * /
```
- hispark\_taurus\\prebuilts目录下为boot源码编译出的工具,源码在device\\hisilicon\\third\_party\\uboot\\u-boot-2020.01路径下,prebuilts使用基于End User License Agreement许可的Hisilicon \(Shanghai\) 版权声明,在该目录下有End User License Agreement 的LICENSE文件,许可信息和版权信息通常可以在文件中看到:
```
/ *End User License Agreement ... Copyright (C) 2021 Hisilicon (Shanghai) Technologies Co., Ltd. All rights reserved. * /
```
- hispark\_taurus\\sdk\_linux\\uboot\\reg目录为上海海思自研代码,使用基于End User License Agreement许可的Hisilicon \(Shanghai\) 版权声明,在该目录下有End User License Agreement的LICENSE文件,许可信息和版权信息通常可以在文件中看到:
```
/ *End User License Agreement ... Copyright (C) 2021 Hisilicon (Shanghai) Technologies Co., Ltd. All rights reserved. * /
```
- hispark\_taurus\\sdk\_liteos\\mpp\\module\_init\\lib和hispark\_taurus\\sdk\_liteos\\mpp\\lib里面为上海海思的自研库,遵循上海海思的LICENSE,这两个目录下均有LICENSE文件,LICENSE文件结尾可以看到版权信息:
```
Copyright (C) 2020 Hisilicon (Shanghai) Technologies Co., Ltd. All rights reserved.
```
- hispark\_taurus\\sdk\_liteos\\mpp\\module\_init\\src目录下为上海海思自研代码,使用基于Apache License Version 2.0许可的Hisilicon \(Shanghai\) 版权声明,在该目录下有Apache License Version 2.0的LICENSE文件,许可信息和版权信息通常可以在文件开头看到:
```
/ *Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED. Licensed under the Apache License,* ... * /
```
- hispark\_taurus\\sdk\_liteos\\uboot\\reg为上海海思的二进制文件,遵循上海海思的LICENSE,该目录下有LICENSE文件,LICENSE文件结尾可以看到:
```
Copyright (C) 2020 Hisilicon (Shanghai) Technologies Co., Ltd. All rights reserved.
```
- hispark\_taurus\\sdk\_liteos\\uboot\\out\\boot是由u-boot-2020.01和reg\_info\_hi3518ev300.bin编译成的U-Boot二进制文件,完全遵从u-boot-2020.01的整体协议,具体请参看third\_party\\uboot\\u-boot-2020.01\\Licenses目录下的README。
- hispark\_aries\\sdk\_liteos\\uboot\\secureboot\_release为安全U-Boot的开源代码,其中自研的部分使用基于GPL许可的Hisilicon \(Shanghai\) 版权声明,在该目录下有License目录,许可信息和版权信息通常可以在文件开头看到:
```
/ *Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
* ... * /
```
- hispark\_taurus\\NOTICE文件描述了使用到的三款开源软件:Das U-Boot 2020.01、mbed TLS 2.16.6、fdk-aac v2.0.1。
### third\_party许可说明
third\_party\\ffmpeg\\ffmpeg-y为ffmpeg开源代码,遵循软件版本自带的开源许可声明,具体请参看third\_party\\ffmpeg\\ffmpeg-y目录下的README。
third\_party\\uboot\\u-boot-2020.01为U-Boot开源代码,遵循软件版本自带的开源许可声明,具体请参看third\_party\\uboot\\u-boot-2020.01\\Licenses目录下的README。
## 相关仓
device/hisilicon/build
device/hisilicon/drivers
device/hisilicon/hardware
**device/hisilicon/hispark\_taurus**
device/hisilicon/modules
device/hisilicon/third\_party/ffmpeg
device/hisilicon/third\_party/uboot
vendor/hisilicon