最新消息: USBMI致力于为网友们分享Windows、安卓、IOS等主流手机系统相关的资讯以及评测、同时提供相关教程、应用、软件下载等服务。

Ok335xSU-Boot进度条原理跟踪

IT圈 admin 35浏览 0评论

2024年3月23日发(作者:仉浚)

} else {

puts(failed);

hang();

}

#endif

puts("zengjf :n");

#if defined(CONFIG_CMD_NAND)

puts("NAND : ");

nand_init(); /* go init the NAND */ ---------------------+

#endif |

|

#if defined(CONFIG_CMD_ONENAND) |

onenand_init(); |

#endif |

|

#ifdef CONFIG_GENERIC_MMC |

puts("MMC: "); |

mmc_initialize(bd); |

#endif |

|

#ifdef CONFIG_HAS_DATAFLASH |

AT91F_DataflashInit(); |

dataflash_print_info(); |

#endif |

|

/* initialize environment */ |

env_relocate(); |

|

#if defined(CONFIG_CMD_PCI) || defined(CONFIG_PCI) |

arm_pci_init(); |

#endif |

|

/* IP Address */ |

gd->bd->bi_ip_addr = getenv_IPaddr("ipaddr"); |

|

|

jumptable_init(); |

|

#if defined(CONFIG_API) |

/* Initialize API */ |

api_init(); |

#endif |

|

console_init_r(); /* fully init console as a device */ |

|

#if defined(CONFIG_ARCH_MISC_INIT) |

/* miscellaneous arch dependent initialisations */ |

arch_misc_init(); |

#endif |

#if defined(CONFIG_MISC_INIT_R) |

/* miscellaneous platform dependent initialisations */ |

misc_init_r(); ----------------------------------*--------+

#endif | |

| |

/* set up exceptions */ | |

interrupt_init(); | |

/* enable exceptions */ | |

enable_interrupts(); | |

| |

/* Perform network card initialisation if necessary */ | |

#if defined(CONFIG_DRIVER_SMC91111) || defined (CONFIG_DRIVER_LAN91C96) | |

/* XXX: this needs to be moved to board init */ | |

if (getenv("ethaddr")) { | |

uchar enetaddr[6]; | |

eth_getenv_enetaddr("ethaddr", enetaddr); | |

smc_set_mac_addr(enetaddr); | |

} | |

#endif /* CONFIG_DRIVER_SMC91111 || CONFIG_DRIVER_LAN91C96 */ | |

| |

/* Initialize from environment */ | |

s = getenv("loadaddr"); | |

if (s != NULL) | |

load_addr = simple_strtoul(s, NULL, 16); | |

#if defined(CONFIG_CMD_NET) | |

s = getenv("bootfile"); | |

if (s != NULL) | |

copy_filename(BootFile, s, sizeof(BootFile)); | |

#endif | |

| |

#ifdef BOARD_LATE_INIT | |

board_late_init(); | |

#endif | |

| |

2024年3月23日发(作者:仉浚)

} else {

puts(failed);

hang();

}

#endif

puts("zengjf :n");

#if defined(CONFIG_CMD_NAND)

puts("NAND : ");

nand_init(); /* go init the NAND */ ---------------------+

#endif |

|

#if defined(CONFIG_CMD_ONENAND) |

onenand_init(); |

#endif |

|

#ifdef CONFIG_GENERIC_MMC |

puts("MMC: "); |

mmc_initialize(bd); |

#endif |

|

#ifdef CONFIG_HAS_DATAFLASH |

AT91F_DataflashInit(); |

dataflash_print_info(); |

#endif |

|

/* initialize environment */ |

env_relocate(); |

|

#if defined(CONFIG_CMD_PCI) || defined(CONFIG_PCI) |

arm_pci_init(); |

#endif |

|

/* IP Address */ |

gd->bd->bi_ip_addr = getenv_IPaddr("ipaddr"); |

|

|

jumptable_init(); |

|

#if defined(CONFIG_API) |

/* Initialize API */ |

api_init(); |

#endif |

|

console_init_r(); /* fully init console as a device */ |

|

#if defined(CONFIG_ARCH_MISC_INIT) |

/* miscellaneous arch dependent initialisations */ |

arch_misc_init(); |

#endif |

#if defined(CONFIG_MISC_INIT_R) |

/* miscellaneous platform dependent initialisations */ |

misc_init_r(); ----------------------------------*--------+

#endif | |

| |

/* set up exceptions */ | |

interrupt_init(); | |

/* enable exceptions */ | |

enable_interrupts(); | |

| |

/* Perform network card initialisation if necessary */ | |

#if defined(CONFIG_DRIVER_SMC91111) || defined (CONFIG_DRIVER_LAN91C96) | |

/* XXX: this needs to be moved to board init */ | |

if (getenv("ethaddr")) { | |

uchar enetaddr[6]; | |

eth_getenv_enetaddr("ethaddr", enetaddr); | |

smc_set_mac_addr(enetaddr); | |

} | |

#endif /* CONFIG_DRIVER_SMC91111 || CONFIG_DRIVER_LAN91C96 */ | |

| |

/* Initialize from environment */ | |

s = getenv("loadaddr"); | |

if (s != NULL) | |

load_addr = simple_strtoul(s, NULL, 16); | |

#if defined(CONFIG_CMD_NET) | |

s = getenv("bootfile"); | |

if (s != NULL) | |

copy_filename(BootFile, s, sizeof(BootFile)); | |

#endif | |

| |

#ifdef BOARD_LATE_INIT | |

board_late_init(); | |

#endif | |

| |

发布评论

评论列表 (0)

  1. 暂无评论