summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/configs/apalis_t30.h45
-rw-r--r--include/configs/colibri_t20.h69
-rw-r--r--include/configs/colibri_t30.h45
3 files changed, 79 insertions, 80 deletions
diff --git a/include/configs/apalis_t30.h b/include/configs/apalis_t30.h
index cbf9591fc6a..fb7734a8c5c 100644
--- a/include/configs/apalis_t30.h
+++ b/include/configs/apalis_t30.h
@@ -75,46 +75,51 @@
#define DEFAULT_BOOTCOMMAND \
"run emmcboot; run usbboot; run nfsboot"
+#define EMMC_BOOTCMD \
+ "run setup; " \
+ "setenv bootargs ${defargs} ${mmcargs} ${setupargs} " \
+ "${vidargs};" \
+ "echo Booting from internal eMMC chip...; " \
+ "mmc read 0 ${loadaddr} ${lnxoffset} ${mmc_kernel_size} && bootm"
+
#define NFS_BOOTCMD \
"run setup; " \
- "setenv bootargs ${defargs} ${nfsargs} ${setupargs}; " \
- "echo Booting from NFS...; " \
- "usb start; " \
- "dhcp; " \
- "bootm"
+ "setenv bootargs ${defargs} ${nfsargs} ${setupargs} " \
+ "${vidargs}; " \
+ "echo Booting via DHCP/TFTP/NFS...; " \
+ "usb start && dhcp && bootm"
#define USB_BOOTCMD \
- "setenv bootargs ${defargs} root=/dev/sda3 rw rootwait; " \
- "echo Booting from USB Stick...; " \
- "usb start; " \
- "fatload usb 0:1 ${loadaddr} uimage; " \
- "bootm ${loadaddr}"
-
-#define EMMC_BOOTCMD \
"run setup; " \
- "setenv bootargs ${defargs} ${mmcargs} ${setupargs};" \
- "echo Booting from internal eMMC card...; " \
- "mmc read 0 ${loadaddr} ${lnxoffset} ${mmc_kernel_size}; " \
- "bootm ${loadaddr}"
+ "setenv bootargs ${defargs} ${setupargs} ${usbargs} " \
+ "${vidargs}; " \
+ "echo Booting from USB stick...; " \
+ "usb start && fatload usb 0:1 ${loadaddr} uimage && bootm"
#undef CONFIG_BOOTARGS
#undef CONFIG_BOOTCOMMAND
#undef CONFIG_DIRECT_BOOTARGS
#define CONFIG_BOOTCOMMAND DEFAULT_BOOTCOMMAND
#define CONFIG_NFSBOOTCOMMAND NFS_BOOTCMD
-//moved from disk/part_efi.h to here, give the block where the GP1 partition starts
-//compare with sdargs below
+//moved from disk/part_efi.h to here, give the block where the GP1 partition
+//starts compare with sdargs below
#define GPT_PRIMARY_PARTITION_TABLE_LBA (gd->gpt_offset)
#define CONFIG_LOADADDR 0x80408000
#define CONFIG_EXTRA_ENV_SETTINGS \
CONFIG_STD_DEVICES_SETTINGS \
"defargs=video=tegrafb core_edp_mv=1300 usb_high_speed=1\0" \
"emmcboot=" EMMC_BOOTCMD "\0" \
- "mmcargs=ip=off root=/dev/mmcblk0p1 rw,noatime rootfstype=ext3 rootwait\0" \
+ "mmcargs=ip=off root=/dev/mmcblk0p1 rw,noatime rootfstype=ext3 " \
+ "rootwait\0" \
"mmc_kernel_size=0x4000\0" \
"nfsargs=ip=:::::eth0:on root=/dev/nfs rw netdevwait\0" \
- "setup=setenv setupargs gpt gpt_sector=${gptoffset} igb_mac=${ethaddr} no_console_suspend=1 console=tty1 console=ttyS0,${baudrate}n8 debug_uartport=lsport,0 ${memargs} fbcon=map:1\0" \
+ "setup=setenv setupargs gpt gpt_sector=${gptoffset} " \
+ "igb_mac=${ethaddr} no_console_suspend=1 console=tty1 " \
+ "console=ttyS0,${baudrate}n8 debug_uartport=lsport,0 "
+ "${memargs} fbcon=map:1\0" \
+ "usbargs=root=/dev/sda2 rw rootwait\0" \
"usbboot=" USB_BOOTCMD "\0" \
+ "vidargs=video=tegrafb0:640x480-16@60\0" \
""
/* GPIO */
diff --git a/include/configs/colibri_t20.h b/include/configs/colibri_t20.h
index c333431aa49..9e3ab173f3d 100644
--- a/include/configs/colibri_t20.h
+++ b/include/configs/colibri_t20.h
@@ -94,48 +94,35 @@
#undef CONFIG_LINUXCONSOLE /* dynamically adjusted */
#define DEFAULT_BOOTCOMMAND \
- "run flashboot; run nfsboot"
+ "run flashboot; run usbboot; run nfsboot"
#define FLASH_BOOTCMD \
"run setup; " \
- "setenv bootargs ${defargs} ${flashargs} ${mtdparts} ${setupargs}; " \
+ "setenv bootargs ${defargs} ${flashargs} ${mtdparts} " \
+ "${setupargs} ${vidargs}; " \
"echo Booting from NAND...; " \
"nboot ${loadaddr} 0 ${lnxoffset} && bootm"
-#define MMC_BOOTCMD \
- "echo Loading RAM disk and kernel from MMC/SD card...; "\
- "mmc init && " \
- "fatload mmc 0:1 0xC08000 rootfs-ext2.img.gz && " \
- "fatload mmc 0:1 ${loadaddr} uImage;" \
- "run ramboot"
-
#define NFS_BOOTCMD \
"run setup; " \
- "setenv bootargs ${defargs} ${nfsargs} ${mtdparts} ${setupargs}; " \
- "echo Booting from NFS...; " \
- "usb start; " \
- "dhcp; " \
- "bootm"
-
-#define RAM_BOOTCMD \
- "run setup; " \
- "setenv bootargs ${defargs} ${ramargs} ${mtdparts} ${setupargs}; " \
- "echo Booting from RAM...; " \
- "bootm"
+ "setenv bootargs ${defargs} ${mtdparts} ${nfsargs} " \
+ "${setupargs} ${vidargs}; " \
+ "echo Booting via DHCP/TFTP/NFS...; " \
+ "usb start; && dhcp && bootm"
#define UBI_BOOTCMD \
"run setup; " \
- "setenv bootargs ${defargs} ${ubiargs} ${mtdparts} ${setupargs}; " \
+ "setenv bootargs ${defargs} ${mtdparts} ${setupargs} " \
+ "${ubiargs} ${vidargs}; " \
"echo Booting from NAND...; " \
- "ubi part kernel-ubi && ubi read ${loadaddr} kernel; " \
- "bootm"
+ "ubi part kernel-ubi && ubi read ${loadaddr} kernel && bootm"
#define USB_BOOTCMD \
- "echo Loading RAM disk and kernel from USB stick...; " \
- "usb start && " \
- "fatload usb 0:1 0xC08000 rootfs-ext2.img.gz && " \
- "fatload usb 0:1 ${loadaddr} uImage;" \
- "run ramboot"
+ "run setup; " \
+ "setenv bootargs ${defargs} ${mtdparts} ${setupargs} " \
+ "${usbargs} ${vidargs}; " \
+ "echo Booting from USB stick...; " \
+ "usb start && fatload usb 0:1 ${loadaddr} uimage && bootm"
#ifndef __CONFIG_SDBOOT_H
#define SD_BOOT_ARGS \
@@ -145,13 +132,14 @@
#else /* !__CONFIG_SDBOOT_H */
#define SD_BOOTCMD \
"run setup; " \
- "setenv bootargs ${defargs} ${sdargs} ${mtdparts} ${setupargs}; " \
+ "setenv bootargs ${defargs} ${mtdparts} ${sdargs} "
+ "${setupargs} ${vidargs}; " \
"echo Booting from MMC/SD card...; " \
- "mmc read 0 ${loadaddr} ${lnxoffset} ${sd_kernel_size}; " \
- "bootm"
+ "mmc read 0 ${loadaddr} ${lnxoffset} ${sd_kernel_size} && bootm"
#define SD_BOOT_ARGS \
- "sdargs=root=/dev/mmcblk0p1 ip=off rw,noatime rootfstype=ext3 rootwait gpt\0" \
+ "sdargs=root=/dev/mmcblk0p1 ip=off rw,noatime " \
+ "rootfstype=ext3 rootwait gpt\0" \
"sd_kernel_size=0x4000\0" \
"sdboot=" SD_BOOTCMD "\0"
@@ -164,9 +152,8 @@
#undef CONFIG_DIRECT_BOOTARGS
#define CONFIG_BOOTCOMMAND DEFAULT_BOOTCOMMAND
#define CONFIG_NFSBOOTCOMMAND NFS_BOOTCMD
-#define CONFIG_RAMBOOTCOMMAND RAM_BOOTCMD
-//moved from disk/part_efi.h to here, give the block where the GP1 partition starts
-//compare with sdargs below
+//moved from disk/part_efi.h to here, give the block where the GP1 partition
+//starts compare with sdargs below
#ifdef __CONFIG_SDBOOT_H
#define GPT_PRIMARY_PARTITION_TABLE_LBA (gd->gpt_offset)
#else
@@ -178,16 +165,18 @@
"defargs=video=tegrafb vmalloc=128M usb_high_speed=1\0" \
"flashargs=ip=off root=/dev/mtdblock0 rw rootfstype=yaffs2\0" \
"flashboot=" FLASH_BOOTCMD "\0" \
- "mmcboot=" MMC_BOOTCMD "\0" \
"nfsargs=ip=:::::eth0:on root=/dev/nfs rw netdevwait\0" \
- "ramargs=initrd=0xA1800000,32M ramdisk_size=32768 root=/dev/ram0 rw\0" \
SD_BOOT_ARGS \
"setup=setenv setupargs " \
- SD_BOOT_SETUP \
- "asix_mac=${ethaddr} no_console_suspend=1 console=tty1 console=ttyS0,${baudrate}n8 debug_uartport=lsport,0 ${memargs}\0" \
- "ubiargs=ubi.mtd=0 root=ubi0:rootfs rootfstype=ubifs\0" \
+ SD_BOOT_SETUP \
+ "asix_mac=${ethaddr} no_console_suspend=1 console=tty1 " \
+ "console=ttyS0,${baudrate}n8 debug_uartport=lsport,0 " \
+ "${memargs}\0" \
+ "ubiargs=ubi.mtd=7 root=ubi0:rootfs rootfstype=ubifs\0" \
"ubiboot=" UBI_BOOTCMD "\0" \
+ "usbargs=root=/dev/sda2 rw rootwait\0" \
"usbboot=" USB_BOOTCMD "\0" \
+ "vidargs=video=tegrafb0:640x480-16@60\0" \
""
/* Dynamic MTD partition support */
diff --git a/include/configs/colibri_t30.h b/include/configs/colibri_t30.h
index 298c15cd117..4e39d931a27 100644
--- a/include/configs/colibri_t30.h
+++ b/include/configs/colibri_t30.h
@@ -75,46 +75,51 @@
#define DEFAULT_BOOTCOMMAND \
"run emmcboot; run usbboot; run nfsboot"
+#define EMMC_BOOTCMD \
+ "run setup; " \
+ "setenv bootargs ${defargs} ${mmcargs} ${setupargs} " \
+ "${vidargs};" \
+ "echo Booting from internal eMMC chip...; " \
+ "mmc read 0 ${loadaddr} ${lnxoffset} ${mmc_kernel_size} && bootm"
+
#define NFS_BOOTCMD \
"run setup; " \
- "setenv bootargs ${defargs} ${nfsargs} ${setupargs}; " \
- "echo Booting from NFS...; " \
- "usb start; " \
- "dhcp; " \
- "bootm"
+ "setenv bootargs ${defargs} ${nfsargs} ${setupargs} " \
+ "${vidargs}; " \
+ "echo Booting via DHCP/TFTP/NFS...; " \
+ "usb start && dhcp && bootm"
#define USB_BOOTCMD \
- "setenv bootargs ${defargs} root=/dev/sda3 rw rootwait; " \
- "echo Booting from USB Stick...; " \
- "usb start; " \
- "fatload usb 0:1 ${loadaddr} uimage; " \
- "bootm ${loadaddr}"
-
-#define EMMC_BOOTCMD \
"run setup; " \
- "setenv bootargs ${defargs} ${mmcargs} ${setupargs};" \
- "echo Booting from internal eMMC card...; " \
- "mmc read 0 ${loadaddr} ${lnxoffset} ${mmc_kernel_size}; " \
- "bootm ${loadaddr}"
+ "setenv bootargs ${defargs} ${setupargs} ${usbargs} " \
+ "${vidargs}; " \
+ "echo Booting from USB stick...; " \
+ "usb start && fatload usb 0:1 ${loadaddr} uimage && bootm"
#undef CONFIG_BOOTARGS
#undef CONFIG_BOOTCOMMAND
#undef CONFIG_DIRECT_BOOTARGS
#define CONFIG_BOOTCOMMAND DEFAULT_BOOTCOMMAND
#define CONFIG_NFSBOOTCOMMAND NFS_BOOTCMD
-//moved from disk/part_efi.h to here, give the block where the GP1 partition starts
-//compare with sdargs below
+//moved from disk/part_efi.h to here, give the block where the GP1 partition
+//starts compare with sdargs below
#define GPT_PRIMARY_PARTITION_TABLE_LBA (gd->gpt_offset)
#define CONFIG_LOADADDR 0x80408000
#define CONFIG_EXTRA_ENV_SETTINGS \
CONFIG_STD_DEVICES_SETTINGS \
"defargs=video=tegrafb core_edp_mv=1300 usb_high_speed=1\0" \
"emmcboot=" EMMC_BOOTCMD "\0" \
- "mmcargs=ip=off root=/dev/mmcblk0p1 rw,noatime rootfstype=ext3 rootwait\0" \
+ "mmcargs=ip=off root=/dev/mmcblk0p1 rw,noatime rootfstype=ext3 " \
+ "rootwait\0" \
"mmc_kernel_size=0x4000\0" \
"nfsargs=ip=:::::eth0:on root=/dev/nfs rw netdevwait\0" \
- "setup=setenv setupargs gpt gpt_sector=${gptoffset} asix_mac=${ethaddr} no_console_suspend=1 console=tty1 console=ttyS0,${baudrate}n8 debug_uartport=lsport,0 ${memargs}\0" \
+ "setup=setenv setupargs gpt gpt_sector=${gptoffset} " \
+ "asix_mac=${ethaddr} no_console_suspend=1 console=tty1 " \
+ "console=ttyS0,${baudrate}n8 debug_uartport=lsport,0 "
+ "${memargs}\0" \
+ "usbargs=root=/dev/sda2 rw rootwait\0" \
"usbboot=" USB_BOOTCMD "\0" \
+ "vidargs=video=tegrafb0:640x480-16@60\0" \
""
/* GPIO */