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

阅读量0
0
0
ubootarcharmmach-hi35xx(文件夹)
ubootarcharmincludeasmarch-hi3516dv300(文件夹)
ubootarcharmcpuarmv7hi3516dv300
ubootboardhisiliconhi3516dv300(文件夹)
ubootcmdhisilicongetinfo.c
ubootcmdcmd_dec.c
ubootcmdcmd_vo.c
ubootconfigshi3516dv300_emmc_smp_defconfig
ubootconfigshi3516dv300_smp_defconfig

ubootdriversMakefile(obj-$(CONFIG_DDR_TRAINING_V2) += ddr/hisilicon/default/)
ubootdriversddrhisilicondefault(文件夹)
ubootdriversddrhisiliconhi3516dv300(文件夹)
ubootdriversmmchimci.c
ubootdriversmmchimci.h
ubootdriversmmchimci_hi3516dv300.c
ubootdriversmmchisi_sdhci.c
ubootdriversmtdnandrawhifmc100(文件夹)
ubootdriversmtdnandrawhinfc_common.c
ubootdriversmtdspihifmc100(文件夹)
ubootdriversmtdspihisi_spi.h
ubootdriversmtdspihisi_spi_nor.c

ubootdriversnetKconfig
config HISFV300_ETH
        bool "HiSilicon Fast Ethernet Controller"
        help
          This driver supports HISFV300 Ethernet controller found on
          HiSilicon SoCs.

ubootdriversnetMakefile
obj-$(CONFIG_HISFV300_ETH) += hisfv300/
ubootdriversnethisfv300

ubootdriversphyhibvt(PHY_HISI_USB support for PHY on Hisilicon Socs)(文件夹)

ubootdriversresetreset-hisilicon.c

ubootdriversu***gadgethiudc3(文件夹)

ubootenvufs.c
ufs_get_env_addr
write_env
env_ufs_save
read_env
env_ufs_load

ubootincludeconfigshi3516dv300.h

ubootlibhw_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

ubootlibMakefile
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

ubootproduct

ubootscriptsconfig_whitelist.txt
CONFIG_PRODUCTNAME

ubootMakefile
HW_DIR                = hw_compressed
ifndef CONFIG_MINI_BOOT
...
libs-y += drivers/u***/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 用到的地方
ubootMakefile-hiproduct
ubootcmdMakefile-hiproduct
ubootincludeconfigshi3516av300.h
ubootproducthiosddecMakefile
ubootproducthiosdhdmihdmi_2_0drvMakefile
ubootproducthiosdvoMakefile
ubootproducthiotpMakefile
ubootscriptsconfig_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(*)
//ubootdriversnethigmacv300
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

回帖

声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容图片侵权或者其他问题,请联系本站作侵删。 侵权投诉
链接复制成功,分享给好友