[文章]

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

2020-11-26 00:51:18  137 uboot HarmonyOS hi3516
分享
0
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

相关文章

dianzi 2020-11-26 09:21:50
老哥,这帖子一句文字说明都没有吗?
回复

举报

评论

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

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