Bootloader and kernel with startup process/compile bootloader/compilation kernel

Source: Internet
Author: User

Bootloader and kernel with the start-up process


--------------------------------------------

The ARM9 board has a Norflash chip that stores the basic Bootlader code, which is the 0 address where the CPU executes the code. The 4kRam space inside the CPU acts as the stack and data segment storage at this time. Because it is Samsung's own chip, so the hardware above can be implemented to Nandflash before the 4K code automatically copied to the Iram (the implementation method is not public, as long as you can understand the way to work). You only need to put the subsequent code of the bootloader into the memory SDRAM. Starting this way, you can no longer use the Norflash chip. The work process:boot-->loader--> start the kernel parameter-->kernel-->mount the root file system.
CORTEX-A8 board, the internal CPU has 96k Iram and 64k Irom. Irom has a Samsung's curing code that can be used to determine whether the startup mode is booting from the SD card or NAND. The hardware automatically copies the first 8k code in NAND into the Iram. The other principle is the same.
Compiling bootloaderMake Distclean purge files that have been generated[1]vim boards.cfg[2]make xxx_config will automatically generate Confg.mk and config.h in include/the config file determines which files are compiled. [3]make arch=arm cross_compile=arm-linux-
1. Clear the. o files and target files that have been compiled in the code make distclean2. Generate configuration file for tiny210 board make tiny210_config3. Compile make4. Write bootloader burn to sd card sudo fdisk- Lsudo DD iflag=dsync oflag=dsync if=tiny210-uboot.bin of=/dev/sdb seek=1
Compile kernel1. Clean the. o files and target files that have been compiled in the code make distclean2. Open a configuration Kernel interface, crop kernel, build the configuration file. Configmake Menuconfig3. Select the directory and the original code MAKE4 to compile according to the. config configuration file. generated kernel in/arch/arm/boot/zimage

Bootloader and kernel with startup process/compile bootloader/compilation kernel

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.