1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-08-31 16:22:36 +02:00

Quieter boot

This commit is contained in:
Ondrej Jirman
2019-09-12 03:37:10 +02:00
parent cab51da2a1
commit 95f42fef7c
8 changed files with 21 additions and 21 deletions

View File

@@ -677,9 +677,9 @@ void sunxi_board_init(void)
power_failed |= axp_set_sw(IS_ENABLED(CONFIG_AXP_SW_ON));
#endif
#endif
printf("DRAM:");
// printf("DRAM:");
gd->ram_size = sunxi_dram_init();
printf(" %d MiB\n", (int)(gd->ram_size >> 20));
// printf(" %d MiB\n", (int)(gd->ram_size >> 20));
if (!gd->ram_size)
hang();

View File

@@ -500,18 +500,19 @@ static int do_mmc_dev(cmd_tbl_t *cmdtp, int flag,
return CMD_RET_FAILURE;
ret = blk_select_hwpart_devnum(IF_TYPE_MMC, dev, part);
printf("switch to partitions #%d, %s\n",
part, (!ret) ? "OK" : "ERROR");
//printf("switch to partitions #%d, %s\n",
//part, (!ret) ? "OK" : "ERROR");
if (ret)
return 1;
curr_device = dev;
/*
if (mmc->part_config == MMCPART_NOAVAILABLE)
printf("mmc%d is current device\n", curr_device);
else
printf("mmc%d(part %d) is current device\n",
curr_device, mmc_get_blk_desc(mmc)->hwpart);
*/
return CMD_RET_SUCCESS;
}
static int do_mmc_list(cmd_tbl_t *cmdtp, int flag,

View File

@@ -41,7 +41,7 @@ static const image_header_t *image_get_fdt(ulong fdt_addr)
image_print_contents(fdt_hdr);
puts(" Verifying Checksum ... ");
//puts(" Verifying Checksum ... ");
if (!image_check_hcrc(fdt_hdr)) {
fdt_error("fdt header checksum invalid");
return NULL;
@@ -51,7 +51,7 @@ static const image_header_t *image_get_fdt(ulong fdt_addr)
fdt_error("fdt checksum invalid");
return NULL;
}
puts("OK\n");
//puts("OK\n");
if (!image_check_type(fdt_hdr, IH_TYPE_FLATDT)) {
fdt_error("uImage is not a fdt");
@@ -217,15 +217,15 @@ int boot_relocate_fdt(struct lmb *lmb, char **of_flat_tree, ulong *of_size)
debug("## device tree at %p ... %p (len=%ld [0x%lX])\n",
fdt_blob, fdt_blob + *of_size - 1, of_len, of_len);
printf(" Loading Device Tree to %p, end %p ... ",
of_start, of_start + of_len - 1);
//printf(" Loading Device Tree to %p, end %p ... ",
//of_start, of_start + of_len - 1);
err = fdt_open_into(fdt_blob, of_start, of_len);
if (err != 0) {
fdt_error("fdt move failed");
goto error;
}
puts("OK\n");
//puts("OK\n");
}
*of_flat_tree = of_start;
@@ -424,7 +424,7 @@ int boot_get_fdt(int flag, int argc, char * const argv[], uint8_t arch,
goto no_fdt;
}
printf(" Booting using the fdt blob at %#08lx\n", fdt_addr);
//printf(" Booting using the fdt blob at %#08lx\n", fdt_addr);
fdt_blob = map_sysmem(fdt_addr, 0);
} else if (images->legacy_hdr_valid &&
image_check_type(&images->legacy_hdr_os_copy,

View File

@@ -520,16 +520,16 @@ static const image_header_t *image_get_ramdisk(ulong rd_addr, uint8_t arch,
}
bootstage_mark(BOOTSTAGE_ID_RD_MAGIC);
image_print_contents(rd_hdr);
//image_print_contents(rd_hdr);
if (verify) {
puts(" Verifying Checksum ... ");
//puts(" Verifying Checksum ... ");
if (!image_check_dcrc(rd_hdr)) {
puts("Bad Data CRC\n");
bootstage_error(BOOTSTAGE_ID_RD_CHECKSUM);
return NULL;
}
puts("OK\n");
//puts("OK\n");
}
bootstage_mark(BOOTSTAGE_ID_RD_HDR_CHECKSUM);
@@ -1295,8 +1295,8 @@ int boot_ramdisk_high(struct lmb *lmb, ulong rd_data, ulong rd_len,
bootstage_mark(BOOTSTAGE_ID_COPY_RAMDISK);
*initrd_end = *initrd_start + rd_len;
printf(" Loading Ramdisk to %08lx, end %08lx ... ",
*initrd_start, *initrd_end);
//printf(" Loading Ramdisk to %08lx, end %08lx ... ",
//*initrd_start, *initrd_end);
memmove_wd((void *)*initrd_start,
(void *)rd_data, rd_len, CHUNKSZ);
@@ -1310,7 +1310,7 @@ int boot_ramdisk_high(struct lmb *lmb, ulong rd_data, ulong rd_len,
flush_cache((unsigned long)*initrd_start,
ALIGN(rd_len, ARCH_DMA_MINALIGN));
#endif
puts("OK\n");
//puts("OK\n");
}
} else {
*initrd_start = 0;

View File

@@ -28,3 +28,4 @@ CONFIG_CMD_PART=y
CONFIG_HUSH_PARSER=y
CONFIG_BOOTDELAY=1
CONFIG_ISO_PARTITION=y
CONFIG_SYS_CONSOLE_INFO_QUIET=y

View File

@@ -36,3 +36,4 @@ CONFIG_CMD_PART=y
CONFIG_HUSH_PARSER=y
CONFIG_BOOTDELAY=1
CONFIG_ISO_PARTITION=y
CONFIG_SYS_CONSOLE_INFO_QUIET=y

View File

@@ -35,3 +35,4 @@ CONFIG_BOOTDELAY=1
CONFIG_ISO_PARTITION=y
CONFIG_SY8106A_VOUT1_VOLT=1320
CONFIG_SYS_CLK_FREQ=1296000000
CONFIG_SYS_CONSOLE_INFO_QUIET=y

View File

@@ -445,16 +445,12 @@
"if test -e ${devtype} " \
"${devnum}:${distro_bootpart} " \
"${prefix}${script}; then " \
"echo Found U-Boot script " \
"${prefix}${script}; " \
"run boot_a_script; " \
"echo SCRIPT FAILED: continuing...; " \
"fi; " \
"done\0" \
\
"scan_dev_for_boot=" \
"echo Scanning ${devtype} " \
"${devnum}:${distro_bootpart}...; " \
"for prefix in ${boot_prefixes}; do " \
"run scan_dev_for_extlinux; " \
"run scan_dev_for_scripts; " \