* [U-Boot] [PATCH] P1023RDB: Update default environment
@ 2014-10-17 8:24 Chunhe Lan
2014-10-17 16:22 ` York Sun
2014-11-25 17:39 ` York Sun
0 siblings, 2 replies; 3+ messages in thread
From: Chunhe Lan @ 2014-10-17 8:24 UTC (permalink / raw)
To: u-boot
Signed-off-by: Chunhe Lan <Chunhe.Lan@freescale.com>
---
include/configs/P1023RDB.h | 43 +++++++++++++++++++++++++++++++++++++++++++
1 files changed, 43 insertions(+), 0 deletions(-)
diff --git a/include/configs/P1023RDB.h b/include/configs/P1023RDB.h
index ba3da06..6b29add 100644
--- a/include/configs/P1023RDB.h
+++ b/include/configs/P1023RDB.h
@@ -374,6 +374,49 @@ extern unsigned long get_clock_freq(void);
#endif
#define CONFIG_EXTRA_ENV_SETTINGS \
+ "netdev=eth0\0" \
+ "uboot=" __stringify(CONFIG_UBOOTPATH) "\0" \
+ "loadaddr=1000000\0" \
+ "ubootaddr=" __stringify(CONFIG_SYS_TEXT_BASE) "\0" \
+ "tftpflash=tftpboot $loadaddr $uboot; " \
+ "protect off $ubootaddr +$filesize; " \
+ "erase $ubootaddr +$filesize; " \
+ "cp.b $loadaddr $ubootaddr $filesize; " \
+ "protect on $ubootaddr +$filesize; " \
+ "cmp.b $loadaddr $ubootaddr $filesize\0" \
+ "consoledev=ttyS0\0" \
+ "ramdiskaddr=2000000\0" \
+ "ramdiskfile=rootfs.ext2.gz.uboot\0" \
+ "fdtaddr=c00000\0" \
+ "fdtfile=p1023rdb.dtb\0" \
+ "othbootargs=ramdisk_size=600000\0" \
+ "bdev=sda1\0" \
"hwconfig=usb1:dr_mode=host,phy_type=ulpi\0"
+#define CONFIG_HDBOOT \
+ "setenv bootargs root=/dev/$bdev rw " \
+ "console=$consoledev,$baudrate $othbootargs;" \
+ "tftp $loadaddr $bootfile;" \
+ "tftp $fdtaddr $fdtfile;" \
+ "bootm $loadaddr - $fdtaddr"
+
+#define CONFIG_NFSBOOTCOMMAND \
+ "setenv bootargs root=/dev/nfs rw " \
+ "nfsroot=$serverip:$rootpath " \
+ "ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off " \
+ "console=$consoledev,$baudrate $othbootargs;" \
+ "tftp $loadaddr $bootfile;" \
+ "tftp $fdtaddr $fdtfile;" \
+ "bootm $loadaddr - $fdtaddr"
+
+#define CONFIG_RAMBOOTCOMMAND \
+ "setenv bootargs root=/dev/ram rw " \
+ "console=$consoledev,$baudrate $othbootargs;" \
+ "tftp $ramdiskaddr $ramdiskfile;" \
+ "tftp $loadaddr $bootfile;" \
+ "tftp $fdtaddr $fdtfile;" \
+ "bootm $loadaddr $ramdiskaddr $fdtaddr"
+
+#define CONFIG_BOOTCOMMAND CONFIG_RAMBOOTCOMMAND
+
#endif /* __CONFIG_H */
--
1.7.6.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] P1023RDB: Update default environment
2014-10-17 8:24 [U-Boot] [PATCH] P1023RDB: Update default environment Chunhe Lan
@ 2014-10-17 16:22 ` York Sun
2014-11-25 17:39 ` York Sun
1 sibling, 0 replies; 3+ messages in thread
From: York Sun @ 2014-10-17 16:22 UTC (permalink / raw)
To: u-boot
On 10/17/2014 01:24 AM, Chunhe Lan wrote:
> Signed-off-by: Chunhe Lan <Chunhe.Lan@freescale.com>
> ---
A little bit more information in commit message will help us search for this
patch later.
York
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] P1023RDB: Update default environment
2014-10-17 8:24 [U-Boot] [PATCH] P1023RDB: Update default environment Chunhe Lan
2014-10-17 16:22 ` York Sun
@ 2014-11-25 17:39 ` York Sun
1 sibling, 0 replies; 3+ messages in thread
From: York Sun @ 2014-11-25 17:39 UTC (permalink / raw)
To: u-boot
On 10/17/2014 01:24 AM, Chunhe Lan wrote:
> Signed-off-by: Chunhe Lan <Chunhe.Lan@freescale.com>
> ---
> include/configs/P1023RDB.h | 43 +++++++++++++++++++++++++++++++++++++++++++
> 1 files changed, 43 insertions(+), 0 deletions(-)
Applied to u-boot-mpc85xx master. Awaiting upstream. Thanks.
York
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-11-25 17:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-17 8:24 [U-Boot] [PATCH] P1023RDB: Update default environment Chunhe Lan
2014-10-17 16:22 ` York Sun
2014-11-25 17:39 ` York Sun
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.