TI DM3730 EBOOT analysis (I)

Source: Internet
Author: User

The main function of EBOOT calls BootLoaderMain (). Microsoft has fixed it. The development of EBoot mainly improves several functions called by BootLoaderMain.

1. relocate globals to RAM
KernelRelocate (pTOC)


2. Init debug support. We can use OEMWriteDebugString afterward.
OEMDebugInit ()

3. initialize platform (clock, drivers, transports, etc)

OEMPlatformInit ()

 

4. call OEM specific pre-download function

OEMPreDownload


5 (1). download image
If (! DownloadImage (& dwImageStart, & dwImageLength, & dwLaunchAddr ))

5 (2). final call to launch the image. never returned
OEMLaunch (dwImageStart, dwImageLength, dwLaunchAddr, (const ROMHDR *) dwpToc );

OEMPlatformInit initialization platform, there is nothing to say, because 35 series and 37 series BSP are integrated, so first judge the CPU model, and then initialize the corresponding processing.

 

Let's take A look at the OEMPreDownload function. The first three tasks are called PreDownload to prepare A, B, and C.

A. BLReserveBootBlocks. Check the implementation function. Nothing to do... it's so shameless... let's continue.

BOOL BLReserveBootBlocks (
BOOT_CFG * pBootCfg
)
{
UNREFERENCED_PARAMETER (pBootCfg );
// Nothing to do...
Return TRUE;
}

B. BLReadBootCfg (& g_bootCfg): Read the configuration parameters of boot. If reading fails, load the default value. You can use the default value if you are not familiar with the configuration information.

C. BLConfigureFlashPartitions (FALSE); this function is important. Let's take a look at FMD_Init, BP_Init, BP_OpenPartition, and BP_LowLevelFormat.

Familiar functions. For a brief explanation, we mainly obtain information about flash memory partitions, boot, OS, and file system partitions. If there is no such information, flash memory will be formatted here,

It is dangerous to generate new partition information. If one attempt to read the information fails, it will all be formatted. Oh, the system information is gone. Be careful when using this information.

 

Related Article

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.