电子产业一站式赋能平台

PCB联盟网

搜索
查看: 1265|回复: 0
收起左侧

【HarmonyOS HiSpark AI Camera试用连载 】第三篇 UBOOT中的华为代码

[复制链接]

2607

主题

2607

帖子

7472

积分

高级会员

Rank: 5Rank: 5

积分
7472
发表于 2020-11-26 09:56:47 | 显示全部楼层 |阅读模式
【HarmonyOS HiSpark AI Camera试用连载 】第三篇 UBOOT中的华为代码, uboot\arch\arm\mach-hi35xx(文件夹)

uboot\arch\arm\include\asm\arch-hi3516dv300(文件夹)

uboot\arch\arm\cpu\armv7\hi3516dv300

uboot\board\hisilicon\hi3516dv300(文件夹)

uboot\cmd\hisilicon\getinfo.c

uboot\cmd\cmd_dec.c

uboot\cmd\cmd_vo.c

uboot\configs\hi3516dv300_emmc_smp_defconfig

uboot\configs\hi3516dv300_smp_defconfig



uboot\drivers\Makefile(obj-$(CONFIG_DDR_TRAINING_v2) += ddr/hisilicon/default/)

uboot\drivers\ddr\hisilicon\default(文件夹)

uboot\drivers\ddr\hisilicon\hi3516dv300(文件夹)

uboot\drivers\mmc\himci.c

uboot\drivers\mmc\himci.h

uboot\drivers\mmc\himci_hi3516dv300.c

uboot\drivers\mmc\hisi_sdhci.c

uboot\drivers\mtd\nand\raw\hifmc100(文件夹)

uboot\drivers\mtd\nand\raw\hiNFC_common.c

uboot\drivers\mtd\spi\hifmc100(文件夹)

uboot\drivers\mtd\spi\hisi_spi.h

uboot\drivers\mtd\spi\hisi_spi_nor.c



uboot\drivers\net\Kconfig

config HISFV300_ETH

         bool “HiSilicon Fast Ethernet Controller“

         help

           This driver supports HISFV300 Ethernet controller found on

           HiSilicon SoCs.



uboot\drivers\net\Makefile

obj-$(CONFIG_HISFV300_ETH) += hisfv300/

uboot\drivers\net\hisfv300



uboot\drivers\phy\hibvt(PHY_HISI_USB support for PHY on Hisilicon Socs)(文件夹)



uboot\drivers\reset\reset-hisilicon.c



uboot\drivers\usb\gadget\hiudc3(文件夹)



uboot\env\ufs.c

ufs_get_env_addr

write_env

env_ufs_save

read_env

env_ufs_load



uboot\include\configs\hi3516dv300.h



uboot\lib\hw_dec (文件夹)//硬解压1.0

#if ((defined CONFIG_TARGET_HI3559V200) || (defined CONFIG_TARGET_HI3556V200) || \

         (defined CONFIG_TARGET_HI3516DV300) || (defined CONFIG_TARGET_HI3516AV300) || \

         (defined CONFIG_TARGET_HI3516CV500) || (defined CONFIG_TARGET_HI3516EV200) || \

         (defined CONFIG_TARGET_HI3516EV300) || (defined CONFIG_TARGET_HI3518EV300) || \

         (defined CONFIG_TARGET_HI3516DV200) || (defined CONFIG_TARGET_HI3566V100)  || \

         (defined CONFIG_TARGET_HI3562V100))

#include “hw_decompress_v1.c“

#endif



uboot\lib\Makefile

ifndef CONFIG_HISI_MC

obj-y += crc7.o

obj-y += crc8.o

endif

ifndef CONFIG_HISI_MC

obj-$(CONFIG_MD5) += md5.o

endif

obj-$(CONFIG_HWDEC) += hw_dec/

ifndef CONFIG_HISI_MC

obj-$(CONFIG_SHA1) += sha1.o

obj-$(CONFIG_SHA256) += sha256.o

endif

obj-$(CONFIG_CMD_NAND) +=match_table.o



uboot\product



uboot\scripts\config_whitelist.txt

CONFIG_PRODUCTNAME



uboot\Makefile

HW_DIR                = hw_compressed

ifndef CONFIG_MINI_BOOT

...

libs-y += drivers/usb/gadget/hiudc3/

...

endif

# FOR hiosd

sinclude Makefile-hiproduct

ifndef CONFIG_MINI_BOOT

libs-$(CONFIG_CIPHER_ENABLE) += product/cipher/

libs-$(CONFIG_OTP_ENABLE) += product/hiotp/

endif

libs-$(CONFIG_OPTEE) += product/hitzasc/

libs-$(CONFIG_I2C_HIBVT) += product/hii2c/

libs-$(CONFIG_AUTO_UPDATE) += product/hiupdate/

libs-$(CONFIG_OSD_ENABLE) += product/hisec/



CONFIG_PRODUCTNAME 用到的地方

uboot\Makefile-hiproduct

uboot\cmd\Makefile-hiproduct

uboot\include\configs\hi3516av300.h

uboot\product\hiosd\dec\Makefile

uboot\product\hiosd\hdmi\hdmi_2_0\drv\Makefile

uboot\product\hiosd\vo\Makefile

uboot\product\hiotp\Makefile

uboot\scripts\config_whitelist.txt



海思添加的CONFIG

CONFIG_PRODUCTNAME(*)

CONFIG_AUTO_SD_UPDATE

CONFIG_AUTO_UPDATE

CONFIG_AUTO_UPDATE_ADAPTATION

CONFIG_AUTO_USB_UPDATE

CONFIG_CMD_ENV

CONFIG_CMD_UGZIP

CONFIG_COMMAND_HISTORY

CONFIG_DDR_TRAINING_V2

CONFIG_CUR_UART_BASE(*)

//uboot\drivers\net\higmacv300

CONFIG_HIGMAC_PHY0_ADDR,

CONFIG_HIFMC_BUFFER_BASE

CONFIG_HIFMC_MAX_CS_NUM

CONFIG_HIFMC_REG_BASE

CONFIG_HIGMAC_DESC_4_WORD

CONFIG_HIGMAC_PHY0_ADDR

CONFIG_HIGMAC_PHY0_INTERFACE_MODE

CONFIG_HIGMAC_PHY1_ADDR

CONFIG_HIGMAC_PHY1_INTERFACE_MODE

CONFIG_HIMCI_MAX_FREQ

CONFIG_HISI_SDHCI

CONFIG_HISI_SDHCI_MAX_FREQ

CONFIG_I2C_HIBVT



CONFIG_MMC_HS200_SUPPORT

CONFIG_MMC_HS400_SUPPORT

CONFIG_MMC_PHY

CONFIG_MMC_POWER_OFF_TIMEOUT

CONFIG_MMC_POWER_ON_TIMEROUT

CONFIG_MMC_RESET_HIGH_TIMEROUT

CONFIG_MMC_RESET_LOW_TIMEOUT

CONFIG_MMC_SDHCI

CONFIG_MMC_SDHCI_ADMA

CONFIG_MMC_SDHCI_SDMA



CONFIG_OHOS_SEC_BOOT_ENABLE

CONFIG_OHOS_SEC_BOOT_SUPPORT

CONFIG_OHOS_UBOOT_START_ADDR

CONFIG_OHOS_X509_BIN_START_ADDR

CONFIG_OSD_ENABLE
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则


联系客服 关注微信 下载APP 返回顶部 返回列表