uboot understanding

Publisher:InspiredDreamerLatest update time:2024-10-17 Source: cnblogsKeywords:uboot  mini6410 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

make---》Define the system structure---》Define the host operating system type---》Define the shell that executes the shell script---》

make XXX_config ---》Execute the mkconfig of the top-level directory (a script)

The mkconfig script does three things: 1. Create a soft link 2. Create include/configs.mk 3. Create include/config.h

1. The soft link connects a:arm common header file b:header file for specific cpu c:special files for cpu (structure, assembly function...)

2. The include/config.mk file contains: ARCH CPU BOARD VENDOR SOC etc.

3.include/config.h contains some common header files: config_cmd_defaults.h config_defaults.h configs/XXX.h asm/config.h


make all--->sinclude $(obj)inluce/autoconf.mk (include file in include config.h)--->sinclude $(obj)include/autoconf.mk.dep (include macro definition in include config.h|commod.h)--->include include/config.mk (the one generated above)--->include top-level config.mk (does 3 things) 1. Specify the assembly tool 2. Specify the assembly rules 3. Include the required config.mk

3. What is included: For example: arm/config.mk smdk64XX/config.mk arm1176/config.mk $(board)/config.mk (it sets the text address)

u-boot: depend $(SUBDIRS) $(objs) $(libs) ....$u-boot.lds

The depend rule is to go into each required directory and run make_depend

The _depend target is in the top-level rules.mk, which will generate the target dependency files required in the current directory.

ARCH CPU BOARD VENDOR SOC

$(MKCONFIG) in mini6410 mini6410 arm s3c64xx mini6410 samsung s3c6410 Nand ram256

$1 $2 $3 $4 $5 $6 $7 $8


Keywords:uboot  mini6410 Reference address:uboot understanding

Previous article:UART Learning Notes
Next article:Porting u-boot-2010.03 --- Use tftp to download and run the kernel

Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号