Created
February 23, 2015 22:55
-
-
Save nrmmota/5f1c7d8d0015c9f81051 to your computer and use it in GitHub Desktop.
TBS2910 u-boot changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/include/configs/tbs2910.h b/include/configs/tbs2910.h | |
index c097b98..c3694a3 100644 | |
--- a/include/configs/tbs2910.h | |
+++ b/include/configs/tbs2910.h | |
@@ -62,6 +62,7 @@ | |
#define CONFIG_SYS_TEXT_BASE 0x80000000 | |
#define CONFIG_SYS_BOOTMAPSZ 0x6C000000 | |
+#define CONFIG_SYS_BOOTM_LEN (16 << 20) | |
#define CONFIG_SYS_LOAD_ADDR 0x10800000 | |
/* Serial console */ | |
@@ -82,6 +83,7 @@ | |
#define CONFIG_CMD_SETEXPR | |
#define CONFIG_CMD_MEMTEST | |
#define CONFIG_CMD_TIME | |
+#define CONFIG_DEFAULT_FDT_FILE "imx6q-tbs2910.dtb" | |
/* Filesystems / image support */ | |
#define CONFIG_CMD_EXT4 | |
@@ -222,14 +224,35 @@ | |
"bootcmd_mmc=run bootargs_mmc; mmc dev 2; " \ | |
"mmc read 0x10800000 0x800 0x4000; bootm\0" \ | |
"bootcmd_up1=load mmc 1 0x10800000 uImage\0" \ | |
- "bootcmd_up2=load mmc 1 0x10d00000 uramdisk.img; " \ | |
- "run bootargs_upd; " \ | |
- "bootm 0x10800000 0x10d00000\0" \ | |
+ "bootcmd_up2=load mmc 1 0x11800000 uramdisk.img;\0 " \ | |
+ "bootcmd_now=run bootargs_upd; " \ | |
+ "bootm 0x10800000 - 0x11800000\0" \ | |
+ "boot1=tftpboot 0x11800000 imx6q-tbs2910.dtb\0" \ | |
+ "boot2=tftpboot 0x10800000 uImage\0" \ | |
"console=ttymxc0\0" \ | |
"fan=gpio set 92\0" \ | |
"stdin=serial,usbkbd\0" \ | |
"stdout=serial,vga\0" \ | |
- "stderr=serial,vga\0" | |
+ "stderr=serial,vga\0" \ | |
+ "mmc_uboot_part=1\0" \ | |
+ "mmc_uboot_dev=2\0" \ | |
+ "update_uboot_filename=u-boot.imx\0" \ | |
+ "serverip=192.168.1.247\0" \ | |
+ "ipaddr=192.168.1.137\0" \ | |
+ "get_cmd=tftp\0" \ | |
+ "loadaddr=0x10800000\0" \ | |
+ "update_uboot=" \ | |
+ "if ${get_cmd} ${update_uboot_filename}; then " \ | |
+ "if mmc dev ${mmc_uboot_dev} ${mmc_uboot_part}; then " \ | |
+ "setexpr fw_sz ${filesize} / 0x200; " \ | |
+ "setexpr fw_sz ${fw_sz} + 1; " \ | |
+ "mmc erase 0x0 0x2000; " \ | |
+ "mmc write ${loadaddr} 0x2 ${fw_sz}; " \ | |
+ "fi; " \ | |
+ "fi\0" | |
#define CONFIG_BOOTCOMMAND \ | |
"mmc rescan; " \ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment