uboot编译内容详解

1 uboot 配置

  • 配置过程
export ARCH=arm CROSS_COMPILE=arm-linux-gnueabi-;make vexpress_ca9x4_defconfig;

或

make ARCH=arm CROSS_COMPILE=arm-hisiv300-linux- hi3531a_config

  • 配置过程作了什么
  
1/抓取过程
make ARCH=arm CROSS_COMPILE=arm-hisiv300-linux- hi3531a_config  -n > ../log_config
 
  1 rm -f include/config.h include/config.mk \
  2     board/*/config.tmp board/*/*/config.tmp \
  3     include/autoconf.mk include/autoconf.mk.dep
  4 /home/xxx/sdk_root/Hi3531A_SDK_V1.0.4.0/osdrv/opensource/uboot/u-boot/mkconfig hi3531a arm hi3531a hi3531a NULL hi3531a
  
2/抓取结果 
diff -ur u-boot_before_config u-boot_after_config > diff_config
    
  1 只在 u-boot_after_config/arch/arm/include/asm 存在:arch
  2 只在 u-boot_after_config/arch/arm/include/asm 存在:proc
  3 只在 u-boot_after_config/include 存在:asm
  4 只在 u-boot_after_config/include 存在:config.h
  5 只在 u-boot_after_config/include 存在:config.mk
 

2 uboot 编译

  • 编译命令

export ARCH=arm CROSS_COMPILE=arm-linux-gnueabi-;make -j8

或

make ARCH=arm CROSS_COMPILE=arm-hisiv300-linux- //上面的语句会读取配置的信息然后编译uboot,配置信息在config.h中
  • 编译过程做了什么

1/抓取过程
make ARCH=arm CROSS_COMPILE=arm-hisiv300-linux- -n > ../log_make

抓取过程太多,在附录1中附件
  
2/抓取结果
diff -ur u-boot_before_make u-boot_after_make > diff_make

只在 u-boot_after_make/api 存在:libapi.a
只在 u-boot_after_make/arch/arm/cpu/hi3531a 存在:chip.o
只在 u-boot_after_make/arch/arm/cpu/hi3531a 存在:cpu.o
只在 u-boot_after_make/arch/arm/cpu/hi3531a 存在:.depend
只在 u-boot_after_make/arch/arm/cpu/hi3531a/hi3531a 存在:.depend
只在 u-boot_after_make/arch/arm/cpu/hi3531a/hi3531a 存在:libhi3531a.a
只在 u-boot_after_make/arch/arm/cpu/hi3531a/hi3531a 存在:reset.o
只在 u-boot_after_make/arch/arm/cpu/hi3531a/hi3531a 存在:timer.o
只在 u-boot_after_make/arch/arm/cpu/hi3531a 存在:libhi3531a.a
只在 u-boot_after_make/arch/arm/cpu/hi3531a 存在:lowlevel_init_v300.o
只在 u-boot_after_make/arch/arm/cpu/hi3531a 存在:start.o
只在 u-boot_after_make/arch/arm/cpu/hi3531a 存在:uart.o
只在 u-boot_after_make/arch/arm/include/asm 存在:arch
只在 u-boot_after_make/arch/arm/include/asm 存在:proc
只在 u-boot_after_make/arch/arm/lib 存在:board.o
只在 u-boot_after_make/arch/arm/lib 存在:bootm.o
只在 u-boot_after_make/arch/arm/lib 存在:cache-cp15.o
只在 u-boot_after_make/arch/arm/lib 存在:cache.o
只在 u-boot_after_make/arch/arm/lib 存在:cpu_info.o
只在 u-boot_after_make/arch/arm/lib 存在:ddr_layout.o
只在 u-boot_after_make/arch/arm/lib 存在:ddr_size.o
只在 u-boot_after_make/arch/arm/lib 存在:.depend
只在 u-boot_after_make/arch/arm/lib 存在:eabi_compat.o
只在 u-boot_after_make/arch/arm/lib 存在:interrupts.o
只在 u-boot_after_make/arch/arm/lib 存在:libarm.a
只在 u-boot_after_make/arch/arm/lib 存在:mmu.o
只在 u-boot_after_make/arch/arm/lib 存在:process.o
只在 u-boot_after_make/arch/arm/lib 存在:reset.o
只在 u-boot_after_make/board/hi3531a 存在:board.o
只在 u-boot_after_make/board/hi3531a 存在:.depend
只在 u-boot_after_make/board/hi3531a 存在:libhi3531a.a
只在 u-boot_after_make/common 存在:cmd_bootm.o
只在 u-boot_after_make/common 存在:cmd_boot.o
只在 u-boot_after_make/common 存在:cmd_ddr_training_v2.o
只在 u-boot_after_make/common 存在:cmd_dec.o
只在 u-boot_after_make/common 存在:cmd_fat.o
只在 u-boot_after_make/common 存在:cmd_getinfo.o
只在 u-boot_after_make/common 存在:cmd_help.o
只在 u-boot_after_make/common 存在:cmd_load.o
只在 u-boot_after_make/common 存在:cmd_mem.o
只在 u-boot_after_make/common 存在:cmd_mii.o
只在 u-boot_after_make/common 存在:cmd_nand.o
只在 u-boot_after_make/common 存在:cmd_net.o
只在 u-boot_after_make/common 存在:cmd_nvedit.o
只在 u-boot_after_make/common 存在:cmd_pcmcia.o
只在 u-boot_after_make/common 存在:cmd_sf.o
只在 u-boot_after_make/common 存在:cmd_usb.o
只在 u-boot_after_make/common 存在:cmd_version.o
只在 u-boot_after_make/common 存在:cmd_vo_hi3531a.o
只在 u-boot_after_make/common 存在:command.o
只在 u-boot_after_make/common 存在:console.o
只在 u-boot_after_make/common 存在:.depend
只在 u-boot_after_make/common 存在:dlmalloc.o
只在 u-boot_after_make/common 存在:download_process.o
只在 u-boot_after_make/common 存在:env_common_func.o
只在 u-boot_after_make/common 存在:env_common.o
只在 u-boot_after_make/common 存在:env_nand.o
只在 u-boot_after_make/common 存在:env_sf.o
只在 u-boot_after_make/common 存在:exports.o
只在 u-boot_after_make/common 存在:flash.o
只在 u-boot_after_make/common 存在:flash_part.o
只在 u-boot_after_make/common 存在:image.o
只在 u-boot_after_make/common 存在:libcommon.a
只在 u-boot_after_make/common 存在:main.o
只在 u-boot_after_make/common 存在:memsize.o
只在 u-boot_after_make/common 存在:miiphyutil.o
只在 u-boot_after_make/common 存在:nand_logif.o
只在 u-boot_after_make/common 存在:spiflash_logif.o
只在 u-boot_after_make/common 存在:s_record.o
只在 u-boot_after_make/common 存在:stdio.o
只在 u-boot_after_make/common 存在:usb.o
只在 u-boot_after_make/common 存在:usb_storage.o
只在 u-boot_after_make/common 存在:xyzModem.o
只在 u-boot_after_make/disk 存在:.depend
只在 u-boot_after_make/disk 存在:libdisk.a
只在 u-boot_after_make/disk 存在:part_dos.o
只在 u-boot_after_make/disk 存在:part.o
只在 u-boot_after_make/drivers/bios_emulator 存在:libatibiosemu.a
只在 u-boot_after_make/drivers/block 存在:libblock.a
只在 u-boot_after_make/drivers/ddr/cmd_bin 存在:ddr_cmd.bin
只在 u-boot_after_make/drivers/ddr 存在:ddr_cmd_ctl.o
只在 u-boot_after_make/drivers/ddr 存在:ddr_cmd_loc.o
只在 u-boot_after_make/drivers/ddr 存在:ddr_training_boot.o
只在 u-boot_after_make/drivers/ddr 存在:ddr_training_ctl.o
只在 u-boot_after_make/drivers/ddr 存在:ddr_training_custom.o
只在 u-boot_after_make/drivers/ddr 存在:ddr_training_impl.o
只在 u-boot_after_make/drivers/ddr 存在:libddr.a
只在 u-boot_after_make/drivers/dma 存在:libdma.a
只在 u-boot_after_make/drivers/fpga 存在:libfpga.a
只在 u-boot_after_make/drivers/gpio 存在:libgpio.a
只在 u-boot_after_make/drivers/hwmon 存在:libhwmon.a
只在 u-boot_after_make/drivers/i2c 存在:libi2c.a
只在 u-boot_after_make/drivers/input 存在:libinput.a
只在 u-boot_after_make/drivers/misc 存在:libmisc.a
只在 u-boot_after_make/drivers/mmc 存在:libmmc.a
只在 u-boot_after_make/drivers/mtd 存在:.depend
只在 u-boot_after_make/drivers/mtd 存在:hifmc_common.o
只在 u-boot_after_make/drivers/mtd 存在:hifmc_hi3531a.o
只在 u-boot_after_make/drivers/mtd 存在:libmtd.a
只在 u-boot_after_make/drivers/mtd/nand 存在:.depend
只在 u-boot_after_make/drivers/mtd/nand/hifmc100 存在:libhifmcv100.a
只在 u-boot_after_make/drivers/mtd/nand/hifmc100_nand 存在:libhifmc100_nand.a
只在 u-boot_after_make/drivers/mtd/nand/hinfc301 存在:.depend
只在 u-boot_after_make/drivers/mtd/nand/hinfc301 存在:hinfc301_spl_ids.o
只在 u-boot_after_make/drivers/mtd/nand/hinfc301 存在:libhinfcv301.a
只在 u-boot_after_make/drivers/mtd/nand/hinfc504 存在:libhinfcv504.a
只在 u-boot_after_make/drivers/mtd/nand/hinfc610 存在:.depend
只在 u-boot_after_make/drivers/mtd/nand/hinfc610 存在:hinfc610_gen.o
只在 u-boot_after_make/drivers/mtd/nand/hinfc610 存在:hinfc610.o
只在 u-boot_after_make/drivers/mtd/nand/hinfc610 存在:hinfc610_read_retry_hynix_bg_bdie.o
只在 u-boot_after_make/drivers/mtd/nand/hinfc610 存在:hinfc610_read_retry_hynix_bg_cdie.o
只在 u-boot_after_make/drivers/mtd/nand/hinfc610 存在:hinfc610_read_retry_hynix_cg_adie.o
只在 u-boot_after_make/drivers/mtd/nand/hinfc610 存在:hinfc610_read_retry_micron.o
只在 u-boot_after_make/drivers/mtd/nand/hinfc610 存在:hinfc610_read_retry_samsung.o
只在 u-boot_after_make/drivers/mtd/nand/hinfc610 存在:hinfc610_read_retry_toshiba.o
只在 u-boot_after_make/drivers/mtd/nand/hinfc610 存在:hinfc610_spl_ids.o
只在 u-boot_after_make/drivers/mtd/nand/hinfc610 存在:hinfc620_gen.o
只在 u-boot_after_make/drivers/mtd/nand/hinfc610 存在:libhinfcv610.a
只在 u-boot_after_make/drivers/mtd/nand 存在:hinfc_common.o
只在 u-boot_after_make/drivers/mtd/nand/hisnfc100 存在:libhisnfcv100.a
只在 u-boot_after_make/drivers/mtd/nand 存在:libnand.a
只在 u-boot_after_make/drivers/mtd/nand 存在:nand_base.o
只在 u-boot_after_make/drivers/mtd/nand 存在:nand_bbt.o
只在 u-boot_after_make/drivers/mtd/nand 存在:nand_ecc.o
只在 u-boot_after_make/drivers/mtd/nand 存在:nand_ids.o
只在 u-boot_after_make/drivers/mtd/nand 存在:nand.o
只在 u-boot_after_make/drivers/mtd/nand 存在:nand_util.o
只在 u-boot_after_make/drivers/mtd/onenand 存在:libonenand.a
只在 u-boot_after_make/drivers/mtd/spi 存在:.depend
只在 u-boot_after_make/drivers/mtd/spi/hifmc100 存在:.depend
只在 u-boot_after_make/drivers/mtd/spi/hifmc100 存在:hifmc100.o
只在 u-boot_after_make/drivers/mtd/spi/hifmc100 存在:hifmc100_os.o
只在 u-boot_after_make/drivers/mtd/spi/hifmc100 存在:hifmc_spi_nor_ids.o
只在 u-boot_after_make/drivers/mtd/spi/hifmc100 存在:libhifmcv100.a
只在 u-boot_after_make/drivers/mtd/spi/hisfc300new 存在:libhisfcv300new.a
只在 u-boot_after_make/drivers/mtd/spi/hisfc350 存在:libhisfcv350.a
只在 u-boot_after_make/drivers/mtd/spi 存在:libspi_flash.a
只在 u-boot_after_make/drivers/mtd/spi 存在:spi_compatible.o
只在 u-boot_after_make/drivers/mtd/spi 存在:spi_ids.o
只在 u-boot_after_make/drivers/mtd/ubi 存在:libubi.a
只在 u-boot_after_make/drivers/net/higmac 存在:libhigmac.a
只在 u-boot_after_make/drivers/net/higmacv300 存在:ctrl.o
只在 u-boot_after_make/drivers/net/higmacv300 存在:.depend
只在 u-boot_after_make/drivers/net/higmacv300 存在:higmac.o
只在 u-boot_after_make/drivers/net/higmacv300 存在:libhigmacv300.a
只在 u-boot_after_make/drivers/net/higmacv300 存在:mdio.o
只在 u-boot_after_make/drivers/net/hisfv300 存在:libhisfv300.a
只在 u-boot_after_make/drivers/net 存在:libnet.a
只在 u-boot_after_make/drivers/net/phy 存在:libphy.a
只在 u-boot_after_make/drivers/net/stmmac 存在:libstmmac.a
只在 u-boot_after_make/drivers/pci 存在:libpci.a
只在 u-boot_after_make/drivers/pcmcia 存在:.depend
只在 u-boot_after_make/drivers/pcmcia 存在:libpcmcia.a
只在 u-boot_after_make/drivers/pcmcia 存在:rpx_pcmcia.o
只在 u-boot_after_make/drivers/pcmcia 存在:tqm8xx_pcmcia.o
只在 u-boot_after_make/drivers/power 存在:libpower.a
只在 u-boot_after_make/drivers/rtc 存在:date.o
只在 u-boot_after_make/drivers/rtc 存在:.depend
只在 u-boot_after_make/drivers/rtc 存在:librtc.a
只在 u-boot_after_make/drivers/serial 存在:.depend
只在 u-boot_after_make/drivers/serial 存在:libserial.a
只在 u-boot_after_make/drivers/serial 存在:serial_pl01x.o
只在 u-boot_after_make/drivers/spi 存在:libspi.a
只在 u-boot_after_make/drivers/twserial 存在:libtws.a
只在 u-boot_after_make/drivers/usb/gadget/hiudc 存在:libhiudc.a
只在 u-boot_after_make/drivers/usb/gadget 存在:libusb_gadget.a
只在 u-boot_after_make/drivers/usb/host/hiusb 存在:.depend
只在 u-boot_after_make/drivers/usb/host/hiusb 存在:hiusb-ohci.o
只在 u-boot_after_make/drivers/usb/host/hiusb 存在:libhiusb.a
只在 u-boot_after_make/drivers/usb/host/hiusb 存在:xhci-mem.o
只在 u-boot_after_make/drivers/usb/host/hiusb 存在:xhci.o
只在 u-boot_after_make/drivers/usb/host/hiusb 存在:xhci-ring.o
只在 u-boot_after_make/drivers/usb/host 存在:libusb_host.a
只在 u-boot_after_make/drivers/usb/musb 存在:libusb_musb.a
只在 u-boot_after_make/drivers/usb/phy 存在:libusb_phy.a
只在 u-boot_after_make/drivers/video 存在:libvideo.a
只在 u-boot_after_make/drivers/watchdog 存在:libwatchdog.a
只在 u-boot_after_make/examples/standalone 存在:.depend
只在 u-boot_after_make/examples/standalone 存在:hello_world
只在 u-boot_after_make/examples/standalone 存在:hello_world.bin
只在 u-boot_after_make/examples/standalone 存在:hello_world.o
只在 u-boot_after_make/examples/standalone 存在:hello_world.srec
只在 u-boot_after_make/examples/standalone 存在:libstubs.a
只在 u-boot_after_make/examples/standalone 存在:stubs.o
只在 u-boot_after_make/fs/cramfs 存在:libcramfs.a
只在 u-boot_after_make/fs/ext2 存在:libext2fs.a
只在 u-boot_after_make/fs/fat 存在:.depend
只在 u-boot_after_make/fs/fat 存在:fat.o
只在 u-boot_after_make/fs/fat 存在:file.o
只在 u-boot_after_make/fs/fat 存在:libfat.a
只在 u-boot_after_make/fs/fdos 存在:libfdos.a
只在 u-boot_after_make/fs/jffs2 存在:libjffs2.a
只在 u-boot_after_make/fs/reiserfs 存在:libreiserfs.a
只在 u-boot_after_make/fs/ubifs 存在:libubifs.a
只在 u-boot_after_make/fs/yaffs2 存在:libyaffs2.a
只在 u-boot_after_make/include 存在:asm
只在 u-boot_after_make/include 存在:autoconf.mk
只在 u-boot_after_make/include 存在:autoconf.mk.dep
只在 u-boot_after_make/include 存在:config.h
只在 u-boot_after_make/include 存在:config.mk
只在 u-boot_after_make/include 存在:timestamp_autogenerated.h
只在 u-boot_after_make/include 存在:version_autogenerated.h
只在 u-boot_after_make/lib 存在:crc16.o
只在 u-boot_after_make/lib 存在:crc32.o
只在 u-boot_after_make/lib 存在:ctype.o
只在 u-boot_after_make/lib 存在:.depend
只在 u-boot_after_make/lib 存在:display_options.o
只在 u-boot_after_make/lib 存在:div64.o
只在 u-boot_after_make/lib 存在:gunzip.o
只在 u-boot_after_make/lib/hw_dec 存在:libhw_dec.a
只在 u-boot_after_make/lib 存在:ldiv.o
只在 u-boot_after_make/lib/libfdt 存在:libfdt.a
只在 u-boot_after_make/lib 存在:libgeneric.a
只在 u-boot_after_make/lib/lzma 存在:liblzma.a
只在 u-boot_after_make/lib/lzo 存在:liblzo.a
只在 u-boot_after_make/lib 存在:match_table.o
只在 u-boot_after_make/lib 存在:net_utils.o
只在 u-boot_after_make/lib 存在:string.o
只在 u-boot_after_make/lib 存在:strmhz.o
只在 u-boot_after_make/lib 存在:time.o
只在 u-boot_after_make/lib 存在:vsnprintf.o
只在 u-boot_after_make/lib 存在:vsprintf.o
只在 u-boot_after_make/lib 存在:zlib.o
只在 u-boot_after_make/net 存在:bootp.o
只在 u-boot_after_make/net 存在:.depend
只在 u-boot_after_make/net 存在:eth.o
只在 u-boot_after_make/net 存在:libnet.a
只在 u-boot_after_make/net 存在:net.o
只在 u-boot_after_make/net 存在:rarp.o
只在 u-boot_after_make/net 存在:tftp.o
只在 u-boot_after_make/post 存在:libpost.a
只在 u-boot_after_make/product 存在:.depend
只在 u-boot_after_make/product/hiddrtv200 存在:libhiddrtv200.a
只在 u-boot_after_make/product/hiosd/dec 存在:.depend
只在 u-boot_after_make/product/hiosd/dec 存在:hi_JpegDecode.o
只在 u-boot_after_make/product/hiosd/dec 存在:jpegd.o
只在 u-boot_after_make/product/hiosd/dec 存在:jpeg_hdec_rwreg.o
只在 u-boot_after_make/product/hiosd/dec 存在:jpeg_hdec_setpara.o
只在 u-boot_after_make/product/hiosd/dec 存在:jpeg_hdec_table.o
只在 u-boot_after_make/product/hiosd/dec 存在:libjpegd.a
只在 u-boot_after_make/product/hiosd/hdmi/hi3531a 存在:de.o
只在 u-boot_after_make/product/hiosd/hdmi/hi3531a 存在:.depend
只在 u-boot_after_make/product/hiosd/hdmi/hi3531a 存在:drv_hlviic.o
只在 u-boot_after_make/product/hiosd/hdmi/hi3531a 存在:eeprom.o
只在 u-boot_after_make/product/hiosd/hdmi/hi3531a 存在:hdmi.o
只在 u-boot_after_make/product/hiosd/hdmi/hi3531a 存在:hdmitx.o
只在 u-boot_after_make/product/hiosd/hdmi/hi3531a 存在:infofrm.o
只在 u-boot_after_make/product/hiosd/hdmi/hi3531a 存在:libhdmi.a
只在 u-boot_after_make/product/hiosd/hdmi/hi3531a 存在:txvidp.o
只在 u-boot_after_make/product/hiosd/hdmi/hi3531a 存在:txvptbl.o
只在 u-boot_after_make/product/hiosd/hdmi/hi3531a 存在:vmtables.o
只在 u-boot_after_make/product/hiosd/vo/hi3531a 存在:.depend
只在 u-boot_after_make/product/hiosd/vo/hi3531a 存在:libvo.a
只在 u-boot_after_make/product/hiosd/vo/hi3531a 存在:vou_coef_org.o
只在 u-boot_after_make/product/hiosd/vo/hi3531a 存在:vou_drv.o
只在 u-boot_after_make/product/hiosd/vo/hi3531a 存在:vou_hal.o
只在 u-boot_after_make/product/hiosd/vo/hi3531a 存在:vou.o
只在 u-boot_after_make/product/hiupdate 存在:auto_update.o
只在 u-boot_after_make/product/hiupdate 存在:.depend
只在 u-boot_after_make/product/hiupdate 存在:libhiupdate.a
只在 u-boot_after_make/product 存在:libproduct.a
只在 u-boot_after_make/product 存在:sample.o
只在 u-boot_after_make 存在:System.map
只在 u-boot_after_make/tools 存在:crc32.o
只在 u-boot_after_make/tools 存在:default_image.o
只在 u-boot_after_make/tools 存在:.depend
只在 u-boot_after_make/tools 存在:envcrc
只在 u-boot_after_make/tools 存在:envcrc.o
只在 u-boot_after_make/tools 存在:env_embedded.o
只在 u-boot_after_make/tools 存在:fdt.o
只在 u-boot_after_make/tools 存在:fdt_ro.o
只在 u-boot_after_make/tools 存在:fdt_rw.o
只在 u-boot_after_make/tools 存在:fdt_strerror.o
只在 u-boot_after_make/tools 存在:fdt_wip.o
只在 u-boot_after_make/tools 存在:fit_image.o
只在 u-boot_after_make/tools 存在:gen_eth_addr
只在 u-boot_after_make/tools 存在:gen_eth_addr.o
只在 u-boot_after_make/tools 存在:image.o
只在 u-boot_after_make/tools 存在:imximage.o
只在 u-boot_after_make/tools 存在:kwbimage.o
只在 u-boot_after_make/tools 存在:md5.o
只在 u-boot_after_make/tools 存在:mkimage
只在 u-boot_after_make/tools 存在:mkimage.o
只在 u-boot_after_make/tools 存在:os_support.o
只在 u-boot_after_make/tools 存在:sha1.o
只在 u-boot_after_make 存在:u-boot
只在 u-boot_after_make 存在:u-boot.bin
只在 u-boot_after_make 存在:u-boot.lds
只在 u-boot_after_make 存在:u-boot.map
只在 u-boot_after_make 存在:u-boot.srec

附录1:

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值