Compare commits
5 Commits
v2012.04
...
v2012.04.0
| Author | SHA1 | Date | |
|---|---|---|---|
| 415d386877 | |||
| 61ddce07f8 | |||
| 9e02a6b8e5 | |||
| 1723997610 | |||
| 030fca5228 |
2
Makefile
2
Makefile
@ -23,7 +23,7 @@
|
||||
|
||||
VERSION = 2012
|
||||
PATCHLEVEL = 04
|
||||
SUBLEVEL =
|
||||
SUBLEVEL = 01
|
||||
EXTRAVERSION =
|
||||
ifneq "$(SUBLEVEL)" ""
|
||||
U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
|
||||
|
||||
@ -256,6 +256,7 @@ static int create_fdt(bootm_headers_t *images)
|
||||
|
||||
fdt_chosen(*of_flat_tree, 1);
|
||||
fixup_memory_node(*of_flat_tree);
|
||||
fdt_fixup_ethernet(*of_flat_tree);
|
||||
fdt_initrd(*of_flat_tree, *initrd_start, *initrd_end, 1);
|
||||
|
||||
return 0;
|
||||
@ -317,6 +318,7 @@ static void boot_jump_linux(bootm_headers_t *images)
|
||||
unsigned long machid = gd->bd->bi_arch_number;
|
||||
char *s;
|
||||
void (*kernel_entry)(int zero, int arch, uint params);
|
||||
unsigned long r2;
|
||||
|
||||
kernel_entry = (void (*)(int, int, uint))images->ep;
|
||||
|
||||
@ -330,7 +332,15 @@ static void boot_jump_linux(bootm_headers_t *images)
|
||||
"...\n", (ulong) kernel_entry);
|
||||
bootstage_mark(BOOTSTAGE_ID_RUN_OS);
|
||||
announce_and_cleanup();
|
||||
kernel_entry(0, machid, gd->bd->bi_boot_params);
|
||||
|
||||
#ifdef CONFIG_OF_LIBFDT
|
||||
if (images->ft_len)
|
||||
r2 = (unsigned long)images->ft_addr;
|
||||
else
|
||||
#endif
|
||||
r2 = gd->bd->bi_boot_params;
|
||||
|
||||
kernel_entry(0, machid, r2);
|
||||
}
|
||||
|
||||
/* Main Entry point for arm bootm implementation
|
||||
|
||||
@ -90,13 +90,7 @@ int sandbox_main_loop_init(void)
|
||||
|
||||
/* Execute command if required */
|
||||
if (state->cmd) {
|
||||
/* TODO: redo this when cmd tidy-up series lands */
|
||||
#ifdef CONFIG_SYS_HUSH_PARSER
|
||||
run_command(state->cmd, 0);
|
||||
#else
|
||||
parse_string_outer(state->cmd, FLAG_PARSE_SEMICOLON |
|
||||
FLAG_EXIT_FROM_LOOP);
|
||||
#endif
|
||||
os_exit(state->exit_type);
|
||||
}
|
||||
|
||||
|
||||
@ -1338,7 +1338,8 @@ static int builtin_run_command(const char *cmd, int flag)
|
||||
continue;
|
||||
}
|
||||
|
||||
rc = cmd_process(flag, argc, argv, &repeatable);
|
||||
if (cmd_process(flag, argc, argv, &repeatable))
|
||||
rc = -1;
|
||||
|
||||
/* Did the user stop this? */
|
||||
if (had_ctrlc ())
|
||||
|
||||
Reference in New Issue
Block a user