From 63caf3276e0020a0c1244b358159f58b600c1271 Mon Sep 17 00:00:00 2001 From: Ryan Alexander Date: Tue, 10 Nov 2015 19:10:25 -0800 Subject: [PATCH 1/2] Disable u-boot output over vga --- chip-fel-flash.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/chip-fel-flash.sh b/chip-fel-flash.sh index 0f2ba8f..34b28e4 100755 --- a/chip-fel-flash.sh +++ b/chip-fel-flash.sh @@ -96,7 +96,13 @@ prepare_uboot_script() { echo "setenv bootargs root=ubi0:rootfs rootfstype=ubifs rw earlyprintk ubi.mtd=4" >> "${UBOOT_SCRIPT_SRC}" echo "setenv bootcmd 'if test -n \${fel_booted} && test -n \${scriptaddr}; then echo '(FEL boot)'; source \${scriptaddr}; fi; mtdparts; ubi part UBI; ubifsmount ubi0:rootfs; ubifsload \$fdt_addr_r /boot/sun5i-r8-chip.dtb; ubifsload \$kernel_addr_r /boot/zImage; bootz \$kernel_addr_r - \$fdt_addr_r'" >> "${UBOOT_SCRIPT_SRC}" echo "setenv fel_booted 0" >> "${UBOOT_SCRIPT_SRC}" - echo "saveenv" >> "${UBOOT_SCRIPT_SRC}" + + echo "echo Enabling splash" >> "${UBOOT_SCRIPT_SRC}" + echo "setenv stdout serial" >> "${UBOOT_SCRIPT_SRC}" + echo "setenv stderr serial" >> "${UBOOT_SCRIPT_SRC}" + echo "setenv splashpos m,m" >> "${UBOOT_SCRIPT_SRC}" + + echo "saveenv" >> "${UBOOT_SCRIPT_SRC}" if [[ "${METHOD}" == "fel" ]]; then echo "nand write.slc-mode.trimffs $UBI_MEM_ADDR 0x1000000 $UBI_SIZE" >> "${UBOOT_SCRIPT_SRC}" From 8627ac0d2056be653386be8f2436ab2cb662f162 Mon Sep 17 00:00:00 2001 From: Ryan Alexander Date: Wed, 11 Nov 2015 18:58:01 -0800 Subject: [PATCH 2/2] Add video mode config --- chip-fel-flash.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chip-fel-flash.sh b/chip-fel-flash.sh index 34b28e4..626e08a 100755 --- a/chip-fel-flash.sh +++ b/chip-fel-flash.sh @@ -97,11 +97,14 @@ prepare_uboot_script() { echo "setenv bootcmd 'if test -n \${fel_booted} && test -n \${scriptaddr}; then echo '(FEL boot)'; source \${scriptaddr}; fi; mtdparts; ubi part UBI; ubifsmount ubi0:rootfs; ubifsload \$fdt_addr_r /boot/sun5i-r8-chip.dtb; ubifsload \$kernel_addr_r /boot/zImage; bootz \$kernel_addr_r - \$fdt_addr_r'" >> "${UBOOT_SCRIPT_SRC}" echo "setenv fel_booted 0" >> "${UBOOT_SCRIPT_SRC}" - echo "echo Enabling splash" >> "${UBOOT_SCRIPT_SRC}" + echo "echo Enabling Splash" >> "${UBOOT_SCRIPT_SRC}" echo "setenv stdout serial" >> "${UBOOT_SCRIPT_SRC}" echo "setenv stderr serial" >> "${UBOOT_SCRIPT_SRC}" echo "setenv splashpos m,m" >> "${UBOOT_SCRIPT_SRC}" + echo "echo Configuring Video Mode" + echo "setenv video-mode sunxi:640x480-24@60,monitor=composite-ntsc" >> "${UBOOT_SCRIPT_SRC}" + echo "saveenv" >> "${UBOOT_SCRIPT_SRC}" if [[ "${METHOD}" == "fel" ]]; then