Android bootloader


原文

In kermel/main.c:

view plain copy to clipboard print ?
static int bootstrap2(void *arg)  
{  
    dprintf(SPEW, "top of bootstrap2()/n");  
    arch_init();  
    // initialize the rest of the platform  
    dprintf(SPEW, "initializing platform/n");  
    platform_init();  
      
    // initialize the target  
    dprintf(SPEW, "initializing target/n");  
    target_init();  
    dprintf(SPEW, "calling apps_init()/n");  
    apps_init();  
    return 0;  
}  
#if (ENABLE_NANDWRITE)  
void bootstrap_nandwrite(void)  
{  
    dprintf(SPEW, "top of bootstrap2()/n");  
    arch_init();  
    // initialize the rest of the platform  
    dprintf(SPEW, "initializing platform/n");  
    platform_init();  
    // initialize the target  
    dprintf(SPEW, "initializing target/n");  
    target_init();  
    dprintf(SPEW, "calling nandwrite_init()/n");  
    nandwrite_init();  
    return 0;  
}  
#endif  
posted @ 2021-12-23 14:57  月的光景  阅读(80)  评论(0)    收藏  举报