From 9a29cb767393c64436f9af96b2761c8e84ee76f8 Mon Sep 17 00:00:00 2001 From: hzy Date: Wed, 27 Jul 2022 09:39:42 +0000 Subject: [PATCH] Update message --- board/amlogic/configs/m8b_onecloud.h | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/board/amlogic/configs/m8b_onecloud.h b/board/amlogic/configs/m8b_onecloud.h index a92d0f4bdebe..d643f0d5c4fb 100644 --- a/board/amlogic/configs/m8b_onecloud.h +++ b/board/amlogic/configs/m8b_onecloud.h @@ -167,9 +167,9 @@ // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // Environment variables // ============================================================================= -#define CONFIG_PREBOOT "run prepare_video; run check_usbburn" +#define CONFIG_PREBOOT "run prepare_video; run check_usbburn; print 'Waiting for autoboot...'" #define CONFIG_BOOTDELAY 3 -#define CONFIG_BOOTCOMMAND "print 'Booting...'; run boot_usb_armbian || run boot_emmc_armbian || print 'Failed to boot'; " +#define CONFIG_BOOTCOMMAND "print 'Autobooting...'; run boot_usb_armbian; run boot_emmc_armbian; print 'Failed to boot'; " #define CONFIG_HOSTNAME "onecloud" #define CONFIG_ETHADDR 00:15:18:01:81:31 #define CONFIG_IPADDR 192.168.1.150 @@ -216,22 +216,25 @@ "\0" \ \ "check_usbburn=" \ - "print 'Checking USBBurn ...'; " \ - "update 1000" \ + "print -n 'Checking USBBurn...'; " \ + "update 1000; " \ + "print 'Fail'; " \ "\0" \ \ "loadaddr=0x12000000\0" \ "boot_emmc_armbian=" \ - "print 'Try to boot from eMMC...'; " \ + "print -n 'Try to boot from eMMC...'; " \ "bootdev='mmc 1'; " \ "rootdev='/dev/mmcblk1p2'; " \ "fatload ${bootdev} ${loadaddr} boot.scr && autoscr ${loadaddr}; " \ + "print 'Fail'; " \ "\0" \ "boot_usb_armbian=" \ - "print 'Try to boot from USB...'; " \ + "print -n 'Try to boot from USB...'; " \ "bootdev='usb 0'; " \ "rootdev='/dev/sda2'; " \ "usb start && fatload ${bootdev} ${loadaddr} boot.scr && autoscr ${loadaddr}; " \ + "print 'Fail'; " \ "\0" \ "" // =============================================================================