コード例 #1
0
void App_Register_Process(void)
{
    #if defined (CONFIG_SECURITY_BOOT)
    Add_Command_Table ("SecureInit" , 0, STAGE_PROCESS);
    #endif
    #ifdef CONFIG_DISPLAY_VERSIONINFO
    Add_Command_Table ("mversion" , 0, STAGE_PROCESS);
    #endif
    Add_Command_Table ("bootargs_set" , 0, STAGE_PROCESS);
    Add_Command_Table ("if_51OnRam_set" , 0, STAGE_PROCESS);

}
コード例 #2
0
void Core_Register_MsInit(void)
{
    //'initDbgLevel must be executed in begining
    Add_Command_Table ("initDbgLevel" , 0, STAGE_MSINIT);
    #if (CONFIG_APP_IN_SPI)  
    Add_Command_Table ("spi ptinit" , 0, STAGE_MSINIT);
    #endif
    #if !(CONFIG_LOGO_STORE_IN_MBOOT)  
    Add_Command_Table ("dbtable_init" , 0, STAGE_MSINIT);
    #endif
    Add_Command_Table ("updatemiureg" , 0, STAGE_MSINIT);
	
}
コード例 #3
0
ファイル: MsAppRegister.c プロジェクト: Scorpio92/mstar6a918
void App_Register_Process(void)
{
#if CONFIG_RESCUE_ENV
#if CONFIG_RESCUE_ENV_AUTO_TRIGGER
    Add_Command_Table ("BrickTerminator" , 0, STAGE_PROCESS);
#else
#if CONFIG_RESCUE_ENV_IR_TRIGGER
    {
        unsigned int u32Value = 0;
        char *pEnv = getenv(BRICK_TERMINATOR_IR_TRIGGERED_STRING);
        if(NULL != pEnv)
        {
            u32Value = (unsigned int)simple_strtoul(pEnv, NULL, 10);
            if(1 == u32Value)
            {
                Add_Command_Table ("BrickTerminator" , 0, STAGE_PROCESS);
            }
        }
    }
#endif //CONFIG_RESCUE_ENV_IR_TRIGGER
#endif //CONFIG_RESCUE_ENV_AUTO_TRIGGER
#endif //CONFIG_RESCUE_ENV
    Add_Command_Table ("sync_mmap" , 0, STAGE_PROCESS);
    #if defined (CONFIG_SECURITY_BOOT)
    Add_Command_Table ("SecureInit" , 0, STAGE_PROCESS);
    #endif
    #ifdef CONFIG_DISPLAY_VERSIONINFO
    Add_Command_Table ("mversion" , 0, STAGE_PROCESS);
    #endif
    Add_Command_Table ("bootargs_set" , 0, STAGE_PROCESS);
    Add_Command_Table ("config2env" , 0, STAGE_PROCESS);
    Add_Command_Table ("if_51OnRam_set" , 0, STAGE_PROCESS);
}
コード例 #4
0
//you can type "showtb 0" in mboot console to see registered cmd.
void App_Register_ToKernel(void)
{
	#if (CONFIG_MUNICH_PNL_EN)
	#if (CONFIG_ENABLE_RTPM)
    	Add_Command_Table ("runtime_pm" , 0, STAGE_TOKERNEL);
	#endif
	#endif
	
    #ifdef CONFIG_POWER_MUSIC
    Add_Command_Table ("audio_preinit" , 0, STAGE_TOKERNEL);
    #endif

#if (CONFIG_PANEL_INIT)
    Add_Command_Table ("panel_pre_init" , 0, STAGE_TOKERNEL);
#endif
#if defined(CONFIG_ENABLE_4K2K_PANEL)
#if defined(CONFIG_INX_NOVA_VB1)
    Add_Command_Table("inx_panel_set_init", 0, STAGE_TOKERNEL);
#endif
#endif

#if(ENABLE_XC_Init==1)
#if (CONFIG_URSA_UNION)
    if ((MDrv_URSA_COM_Get_URSA_Type() == URSA_COMMON_U9) || (MDrv_URSA_COM_Get_URSA_Type() == URSA_COMMON_U11)) {
#endif
    Add_Command_Table ("xc_init" , 0, STAGE_TOKERNEL);
#if (CONFIG_URSA_UNION)
    }
#endif
#endif

#if(ENABLE_CVBS_OUT==1)
    Add_Command_Table ("cvbs" , 0, STAGE_TOKERNEL);
#endif

#if (CONFIG_MUNICH_PNL_EN == 0)
#if (CONFIG_ENABLE_RTPM)
    Add_Command_Table ("runtime_pm" , 0, STAGE_TOKERNEL);
#endif
#endif

#if (ENABLE_HDMI_TX == 1)
    Add_Command_Table ("hdmi init" , 0, STAGE_TOKERNEL);
#endif

#if defined(CONFIG_URSA6_VB1) || defined(CONFIG_URSA_UNION)
#if (CONFIG_URSA_UNION)
    if (MDrv_URSA_COM_Get_URSA_Type() == URSA_COMMON_U6) {
#endif
    Add_Command_Table ("send_I2C_cmd_to_ursa6" , 0, STAGE_TOKERNEL);
#if (CONFIG_URSA_UNION)
    }
#endif
#endif

    #ifdef CONFIG_DISPLAY_LOGO
    char        *BootlogoFile                       = NULL;
    char        BootlogoCmd[CMD_BUF]  = {0};

    BootlogoFile = getenv("BootlogoFile");
    if( BootlogoFile==NULL )
    {
        #if defined(CONFIG_BOOTLOGO_4K2K)
        strncpy(BootlogoCmd,"bootlogo 0 0 1 1 boot0.jpg",CMD_BUF);
        #else
        strncpy(BootlogoCmd,"bootlogo",CMD_BUF);
        #endif
    }
    else
    {
        snprintf(BootlogoCmd,CMD_BUF,"bootlogo 0 0 1 1 %s",BootlogoFile);
    }

    char* opt_logo = NULL;
    opt_logo = getenv("logo");
    if(opt_logo != NULL)
    {
        int logo_on = 0;
        logo_on = simple_strtol(opt_logo, NULL, 10);
        if(logo_on > 0 && logo_on < 3)
        {
            Add_Command_Table (BootlogoCmd , 0, STAGE_TOKERNEL);
            #if defined (CONFIG_URSA_6M40)
            Add_Command_Table ("ursa_lvds_on" , 0, STAGE_TOKERNEL);
            #endif
			#if defined (CONFIG_URSA_8)
            Add_Command_Table ("ursa8_lvds_on" , 0, STAGE_TOKERNEL);
			#endif
        }
    }
    else
    {
            Add_Command_Table (BootlogoCmd , 0, STAGE_TOKERNEL);
            #if defined (CONFIG_URSA_6M40)
            Add_Command_Table ("ursa_lvds_on" , 0, STAGE_TOKERNEL);
            #endif
    }
    #endif

#if ENABLE_STB_BOOT
        Add_Command_Table ("read_boot_info" , 0, STAGE_TOKERNEL);
#endif

#if defined(CONFIG_INX_VB1) && defined(CONFIG_BOOTLOGO_4K2K)
        Add_Command_Table("panel_inx_vb1_init",0,STAGE_TOKERNEL);
#endif

    #ifdef CONFIG_POWER_MUSIC
    char* opt_music = NULL;
    opt_music = getenv("music");
    if(opt_music != NULL)
    {
        int music_on = 0;
        music_on = simple_strtol(opt_music, NULL, 10);
        if(music_on > 0 && music_on < 3)
        {
            Add_Command_Table ("bootmusic" , 0, STAGE_TOKERNEL);
        }
    }
    else
    {
        Add_Command_Table ("bootmusic" , 0, STAGE_TOKERNEL);
    }
    #endif

    #if (CONFIG_MSTAR_FASTBOOT_ENABLE)
    Add_Command_Table ("fastboot" , 0, STAGE_TOKERNEL);
    #endif

    #ifdef CONFIG_GENERIC_MMC
		Add_Command_Table ("mmc slcrelwrchk" , 0, STAGE_TOKERNEL);
    #endif


#if defined(CONFIG_INX_NOVA_VB1)
    Add_Command_Table ("inx_nova_set_4k2k_2division", 0, STAGE_TOKERNEL);
#endif

#if defined(CONFIG_URSA_8)
        Add_Command_Table ("ursa8_set_osd_mode" , 0, STAGE_TOKERNEL);
#endif

#if defined(CONFIG_URSA_6M40)
        Add_Command_Table ("ursa_set_osd_mode" , 0, STAGE_TOKERNEL);
#endif

#if defined(CONFIG_UART_RX)
    Add_Command_Table ("uart_rx" , 0, STAGE_TOKERNEL);
#endif

// EosTek Patch Begin
    Add_Command_Table ("led stop" , 0, STAGE_TOKERNEL);
// EosTek Patch End
#if (ENABLE_MODULE_TEE==1) // alway in bottom
     Add_Command_Table ("SecureBootCmd" , 0, STAGE_TOKERNEL);
#endif

#if defined(CONFIG_SEC_SYSTEM) // jump to non-TEE second kernel
     Add_Command_Table ("Boot2secKernel" , 0, STAGE_TOKERNEL);
#endif

}
コード例 #5
0
ファイル: MsAppRegister.c プロジェクト: Scorpio92/mstar6a918
//you can type "showtb 0" in mboot console to see registered cmd.
void App_Register_ToKernel(void)
{
    // Add_Command_Table ("delay 0" , 0, STAGE_TOKERNEL);
#if (CONFIG_PANEL_INIT)
    Add_Command_Table ("panel_pre_init" , 0, STAGE_TOKERNEL);
#endif
#if defined(CONFIG_ENABLE_4K2K_PANEL)
#if defined(CONFIG_INX_NOVA_VB1)
    Add_Command_Table("inx_panel_set_init", 0, STAGE_TOKERNEL);
#endif
#endif
#if(ENABLE_HDMI_TX == 1)
    Add_Command_Table ("hdmi init" , 0, STAGE_TOKERNEL);
#endif

    Add_Command_Table ("pm_power_test" , 0, STAGE_TOKERNEL);
#if (CONFIG_ENABLE_RTPM)
    Add_Command_Table ("runtime_pm" , 0, STAGE_TOKERNEL);
#endif

#if defined (CONFIG_URSA6_VB1)
    Add_Command_Table ("send_I2C_cmd_to_ursa6" , 0, STAGE_TOKERNEL); 
#endif

    #ifdef CONFIG_DISPLAY_LOGO
    #if defined(CONFIG_BOOTLOGO_4K2K)
        #define BOOTLOGO "bootlogo 0 0 1 1 boot0.jpg"
    #elif (ENABLE_MSTAR_KENYA == 1)
        #define BOOTLOGO "bootlogo 0 0 1 1 bootlogo.jpg"
    #else
        #define BOOTLOGO "bootlogo"
    #endif
    char* opt_logo = NULL;
    opt_logo = getenv("logo");
    if(opt_logo != NULL)
    {
        int logo_on = 0;
        logo_on = simple_strtol(opt_logo, NULL, 10);
        if(logo_on > 0 && logo_on < 3)
        {
            Add_Command_Table (BOOTLOGO , 0, STAGE_TOKERNEL);
            #if defined (CONFIG_URSA_6M40)
            Add_Command_Table ("ursa_lvds_on" , 0, STAGE_TOKERNEL);
            #endif
			#if defined (CONFIG_URSA_8)
            Add_Command_Table ("ursa8_lvds_on" , 0, STAGE_TOKERNEL);
			#endif
        }
    }
    else
    {
            Add_Command_Table (BOOTLOGO , 0, STAGE_TOKERNEL);
            #if defined (CONFIG_URSA_6M40)
            Add_Command_Table ("ursa_lvds_on" , 0, STAGE_TOKERNEL);
            #endif
    }
    #endif

#if defined(CONFIG_INX_VB1) && defined(CONFIG_BOOTLOGO_4K2K)
        Add_Command_Table("panel_inx_vb1_init",0,STAGE_TOKERNEL);
#endif

    #ifdef CONFIG_POWER_MUSIC
    char* opt_music = NULL;
    opt_music = getenv("music");
    if(opt_music != NULL)
    {
        int music_on = 0;
        music_on = simple_strtol(opt_music, NULL, 10);
        if(music_on > 0 && music_on < 3)
        {
            Add_Command_Table ("bootmusic" , 0, STAGE_TOKERNEL);
        }
    }
    else
    {
        Add_Command_Table ("bootmusic" , 0, STAGE_TOKERNEL);
    }
    #endif

    #if (CONFIG_MSTAR_FASTBOOT_ENABLE)
    Add_Command_Table ("fastboot" , 0, STAGE_TOKERNEL);
    #endif

    #ifdef CONFIG_GENERIC_MMC
		Add_Command_Table ("mmc slcrelwrchk" , 0, STAGE_TOKERNEL);
    #endif
#if (CONFIG_WDT)
    {
        char cmd[CMD_BUF] = {};
        unsigned int u32Timeout = WDT_TIMEOUT_DEFAULT;
        char *pEnv = getenv(WDT_TIMEOUT_ENV_STR);

        if(pEnv != NULL)
        {
            u32Timeout = (unsigned int)simple_strtol(pEnv, NULL, 10);
        }
        if(u32Timeout < WDT_TIMEOUT_MIN) // NOTE: should not be too short to prevent infinite reboot
        {
            printf("%s: Incorrect WDT TIMEOUT, should be not less than '%u', at %d\n", __func__, WDT_TIMEOUT_MIN, __LINE__);
            u32Timeout = WDT_TIMEOUT_MIN;
        }
        memset(cmd, 0, sizeof(cmd));
        sprintf(cmd, "wdt_enable %u", u32Timeout);
        Add_Command_Table (cmd , 0, STAGE_TOKERNEL);
    }
#endif
#if defined (CONFIG_INX_NOVA_VB1)
    Add_Command_Table ("inx_nova_set_4k2k_2division", 0, STAGE_TOKERNEL);
#endif
#if defined (CONFIG_URSA_8)
        Add_Command_Table ("ursa8_set_osd_mode" , 0, STAGE_TOKERNEL);
#endif
#if defined (CONFIG_URSA_6M40) 
        Add_Command_Table ("ursa_set_osd_mode" , 0, STAGE_TOKERNEL);
#endif

#if (ENABLE_MODULE_TEE==1) // alway in bottom
     Add_Command_Table ("SecureBootCmd" , 0, STAGE_TOKERNEL);
#endif

}
コード例 #6
0
//you can type "showtb 0" in mboot console to see registered cmd.
void App_Register_ToKernel(void)
{
    // Add_Command_Table ("delay 0" , 0, STAGE_TOKERNEL);

    // check the boot mode.if normal mode, run through this cmd.
    #ifdef CONFIG_DISPLAY_LOGO
    unsigned int  u8IsSkipInitPanel = 0;
    if (MDrv_PM_GetWakeupSource() == E_PM_WAKEUPSRC_RTC2)
    {
        u8IsSkipInitPanel = 1;
	}	
    char* opt_logo = NULL;
    opt_logo = getenv("logo");
    if(opt_logo != NULL)
    {
        int logo_on = 0;
        logo_on = simple_strtol(opt_logo, NULL, 10);
        if(logo_on > 0 && logo_on < 3)
        {
        	if(0 == u8IsSkipInitPanel)
        	{
            	Add_Command_Table ("bootlogo" , 0, STAGE_TOKERNEL);
        	}
#if defined (CONFIG_URSA_6M40)
            Add_Command_Table ("ursa_lvds_on" , 0, STAGE_TOKERNEL);
#endif
#if defined (CONFIG_URSA_6M30)
			//open local diming, only for cmo  65" panel, msd6369+6m30qsc
			Add_Command_Table ("pnl_localdimming_on" , 0, STAGE_TOKERNEL);
#endif

        }
    }
    #endif

    #ifdef CONFIG_POWER_MUSIC
    char* opt_music = NULL;
    opt_music = getenv("music");
    if(opt_music != NULL)
    {
        int music_on = 0;
        music_on = simple_strtol(opt_music, NULL, 10);
        if(music_on > 0 && music_on < 3)
		{        	
			if(0 == u8IsSkipInitPanel)
        	{
            	Add_Command_Table ("bootmusic" , 0, STAGE_TOKERNEL);
        	}
        }
    }
    #endif

    #ifdef CONFIG_GENERIC_MMC
		Add_Command_Table ("mmc slcrelwrchk" , 0, STAGE_TOKERNEL);
    #endif
    #if (CONFIG_WDT)
	    Add_Command_Table ("wdt_enable 20" , 0, STAGE_TOKERNEL);
	#endif

	#if (TEMP_SECURE_BOOT)
	    Add_Command_Table ("bootNuttx 20" , 0, STAGE_TOKERNEL);
	#endif
}