5/3/2023 0 Comments U boot configuration![]() Gconfig - Update current config utilising a GTK+ based front-end Xconfig - Update current config utilising a Qt based front-end Menuconfig - Update current config utilising a menu based program Nconfig - Update current config utilising a ncurses menu based The other makefile targets are the following:Ĭonfig - Update current config utilising a line-oriented program It can then be compared with the predefined configuration (configs/stm32mp*defconfig). This target saves the current config as a defconfig file in the build directory. Save your configuration to be able to use it as a defconfig file: Warning: the modification is performed locally in the build directory. You can then compile U-Boot with the updated. Make menuconfig -> menu based program make config -> line-oriented configuration make xconfig -> QT program make gconfig -> GTK program make nconfig -> ncurse menu based program config) by using one of the following five make commands: Change the U-Boot compile configuration (modify.Select a predefined configuration (defconfig file in configs directory ) and generate the first.config file located in the build directory, with the same makefile target. ![]() Like the kernel, the U-Boot build system is based on configuration symbols (defined in Kconfig files). Hence to compile U-Boot, select the and the device tree for the board in order to choose a predefined configuration. įor example, CONFIG_ SPL activates the SPL compilation. DeviceTree: U-Boot binaries include a device tree blob that is parsed at runtimeĪll the configuration flags (prefixed by CONFIG_) are described in the source code, either in the README file or in the documentation directory.STM32MP15x lines : include/configs/stm32mp15_st_common.h.STM32MP13x lines : include/configs/stm32mp13_st_common.h.The file name is configured through CONFIG_SYS_CONFIG_NAME, for example on STMicroelectronics boards: other compilation flags defined in include/configs/stm32mp*.h (these flags are progressively migrated to Kconfig).the selected configuration file: configs/stm32mp*_defconfig.options defined in Kconfig files (CONFIG_ compilation flags).Kbuild infrastructure (as in Linux Kernel, you can use make menuconfig in U-Boot).The U-Boot binary configuration is based on pass the control to the Linux kernel (or to another target application).install the secure monitor (optional) or.load and check images (such as kernel, device tree and ramdisk).Execution of the boot command (by default bootcmd=CONFIG_BOOTCOMMAND):įor example, execution of the command bootm to:.Command execution through autoboot (CONFIG_AUTOBOOT) or console shell.Post-relocation initialization:(common/board_r.c): initialization of all the drivers.Relocation: copy of the code to the end of DDR memory.Pre-relocation initialization (common/board_f.c): minimal initialization (such as CPU, clock, reset, DDR and console) running at the CONFIG_SYS_TEXT_BASE load address.U-Boot executes the following main steps in DDR memory: USB: host (mass storage) or device ( DFU stack).Display: LCD, HDMI, BMP for splashcreen.It supports the following features and commands:.It manages several internal and external devices such as NAND and NOR Flash memories, Ethernet and USB.It loads the kernel into RAM and gives control to the kernel.It features a simple command line interface (CLI), allowing users to interact over a serial port console.U-Boot is the second-stage bootloader ( SSBL) of boot chain for STM32 Arm ® Cortex ® MPUs. loading and execution of U-Boot (or Kernel in Falcon mode : README.falcon ).Ģ.2 U-Boot: SSBL 2.2.1 U-Boot description.board_init_r(): initialization of the other drivers activated in the SPL device tree.configuration of heap in DDR memory (CONFIG_ SPL_SYS_MALLOC_F_LEN).board_init_f(): driver initialization including DDR initialization (mininimal stack and heap: CONFIG_ SPL_STACK_R_MALLOC_SIMPLE_LEN).SPL executes the following main steps in SYSRAM: SPL is not supported in OpenSTLinux as alternate FSBL: it cannot be used for product development. It loads the SSBL ( U-Boot) into the DDR memory.It performs the initial CPU and board configuration (clocks and DDR memory).It is a small binary (bootstrap utility) generated from the U-Boot source and stored in the internal limited-size embedded RAM. The U-Boot SPL or SPL is an alternate first stage bootloader ( FSBL).
0 Comments
Leave a Reply. |