]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: tegra: convert boards to text env
authorSvyatoslav Ryhel <clamor95@gmail.com>
Mon, 24 Jun 2024 17:13:47 +0000 (20:13 +0300)
committerSvyatoslav Ryhel <clamor95@gmail.com>
Sun, 13 Oct 2024 14:20:26 +0000 (17:20 +0300)
Convert boards to use text based env. This is the first stage of
conversion, common inclusions should be converted next.

Acked-by: Francesco Dolcini <francesco.dolcini@toradex.com> # Toradex Apalis TK1
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
51 files changed:
board/asus/grouper/grouper.env [new file with mode: 0644]
board/asus/transformer-t20/transformer-t20.env [new file with mode: 0644]
board/asus/transformer-t30/configs/tf600t.config
board/asus/transformer-t30/tf600t.env [new file with mode: 0644]
board/asus/transformer-t30/transformer-t30.env [new file with mode: 0644]
board/htc/endeavoru/endeavoru.env [new file with mode: 0644]
board/lenovo/ideapad-yoga-11/ideapad-yoga-11.env [new file with mode: 0644]
board/lg/x3-t30/configs/p880.config
board/lg/x3-t30/configs/p895.config
board/lg/x3-t30/p880.env [new file with mode: 0644]
board/lg/x3-t30/p895.env [new file with mode: 0644]
board/microsoft/surface-rt/surface-rt.env [new file with mode: 0644]
board/nvidia/cardhu/cardhu.env [new file with mode: 0644]
board/nvidia/p2771-0000/p2771-0000.env [new file with mode: 0644]
board/nvidia/p3450-0000/p3450-0000.env [new file with mode: 0644]
board/toradex/apalis-tk1/apalis_tk1.env [new file with mode: 0644]
board/toradex/apalis_t30/apalis_t30.env [new file with mode: 0644]
board/toradex/colibri_t20/colibri_t20.env [new file with mode: 0644]
board/toradex/colibri_t30/colibri_t30.env [new file with mode: 0644]
board/wexler/qc750/qc750.env [new file with mode: 0644]
configs/apalis-tk1_defconfig
configs/apalis_t30_defconfig
configs/cardhu_defconfig
configs/colibri_t20_defconfig
configs/colibri_t30_defconfig
configs/endeavoru_defconfig
configs/grouper_common_defconfig
configs/ideapad-yoga-11_defconfig
configs/p2771-0000-000_defconfig
configs/p3450-0000_defconfig
configs/qc750_defconfig
configs/surface-rt_defconfig
configs/transformer_t20_defconfig
configs/transformer_t30_defconfig
include/configs/apalis-tk1.h
include/configs/apalis_t30.h
include/configs/cardhu.h
include/configs/colibri_t20.h
include/configs/colibri_t30.h
include/configs/endeavoru.h
include/configs/grouper.h
include/configs/ideapad-yoga-11.h
include/configs/p2771-0000.h
include/configs/p3450-0000.h
include/configs/qc750.h
include/configs/surface-rt.h
include/configs/transformer-common.h [deleted file]
include/configs/transformer-t20.h
include/configs/transformer-t30.h
include/configs/x3-t30.h
include/env/nvidia/prod_upd.env [new file with mode: 0644]

diff --git a/board/asus/grouper/grouper.env b/board/asus/grouper/grouper.env
new file mode 100644 (file)
index 0000000..b1f4aeb
--- /dev/null
@@ -0,0 +1,15 @@
+#include <env/nvidia/prod_upd.env>
+
+button_cmd_0_name=Volume Down
+button_cmd_0=bootmenu
+button_cmd_1_name=Lid
+button_cmd_1=poweroff
+partitions=name=emmc,start=0,size=-,uuid=${uuid_gpt_rootfs}
+
+bootmenu_0=mount internal storage=usb start && ums 0 mmc 0; bootmenu
+bootmenu_1=fastboot=echo Starting Fastboot protocol ...; fastboot usb 0; bootmenu
+bootmenu_2=update bootloader=run flash_uboot
+bootmenu_3=reboot RCM=enterrcm
+bootmenu_4=reboot=reset
+bootmenu_5=power off=poweroff
+bootmenu_delay=-1
diff --git a/board/asus/transformer-t20/transformer-t20.env b/board/asus/transformer-t20/transformer-t20.env
new file mode 100644 (file)
index 0000000..2f7e820
--- /dev/null
@@ -0,0 +1,17 @@
+#include <env/nvidia/prod_upd.env>
+
+button_cmd_0_name=Volume Down
+button_cmd_0=bootmenu
+button_cmd_1_name=Lid sensor
+button_cmd_1=poweroff
+partitions=name=emmc,start=0,size=-,uuid=${uuid_gpt_rootfs}
+boot_dev=1
+
+bootmenu_0=mount internal storage=usb start && ums 0 mmc 0; bootmenu
+bootmenu_1=mount external storage=usb start && ums 0 mmc 1; bootmenu
+bootmenu_2=fastboot=echo Starting Fastboot protocol ...; fastboot usb 0; bootmenu
+bootmenu_3=update bootloader=run flash_uboot
+bootmenu_4=reboot RCM=enterrcm
+bootmenu_5=reboot=reset
+bootmenu_6=power off=poweroff
+bootmenu_delay=-1
index b3734869f5910f66a9d9e4cf33ba747f72c9d8fa..a452a19fe477630a0471bae82db8aa5867547898 100644 (file)
@@ -1,3 +1,4 @@
+CONFIG_ENV_SOURCE_FILE="tf600t"
 CONFIG_DEFAULT_DEVICE_TREE="tegra30-asus-tf600t"
 CONFIG_BOOTCOMMAND="setenv gpio_button 222; if run check_button; then poweroff; fi; setenv gpio_button 132; if run check_button; then echo Starting SPI flash update ...; run update_spi; fi; run bootcmd_usb0; run bootcmd_mmc1; run bootcmd_mmc0; poweroff;"
 # CONFIG_I2C_MUX is not set
diff --git a/board/asus/transformer-t30/tf600t.env b/board/asus/transformer-t30/tf600t.env
new file mode 100644 (file)
index 0000000..7bc2b80
--- /dev/null
@@ -0,0 +1,16 @@
+#include <env/nvidia/prod_upd.env>
+
+button_cmd_0_name=Volume Down
+button_cmd_0=bootmenu
+button_cmd_1_name=Lid sensor
+button_cmd_1=poweroff
+partitions=name=emmc,start=0,size=-,uuid=${uuid_gpt_rootfs}
+
+bootmenu_0=mount internal storage=usb start && ums 0 mmc 0; bootmenu
+bootmenu_1=mount external storage=usb start && ums 0 mmc 1; bootmenu
+bootmenu_2=fastboot=echo Starting Fastboot protocol ...; fastboot usb 0; bootmenu
+bootmenu_3=update bootloader=run update_spi
+bootmenu_4=reboot RCM=enterrcm
+bootmenu_5=reboot=reset
+bootmenu_6=power off=poweroff
+bootmenu_delay=-1
diff --git a/board/asus/transformer-t30/transformer-t30.env b/board/asus/transformer-t30/transformer-t30.env
new file mode 100644 (file)
index 0000000..2f7e820
--- /dev/null
@@ -0,0 +1,17 @@
+#include <env/nvidia/prod_upd.env>
+
+button_cmd_0_name=Volume Down
+button_cmd_0=bootmenu
+button_cmd_1_name=Lid sensor
+button_cmd_1=poweroff
+partitions=name=emmc,start=0,size=-,uuid=${uuid_gpt_rootfs}
+boot_dev=1
+
+bootmenu_0=mount internal storage=usb start && ums 0 mmc 0; bootmenu
+bootmenu_1=mount external storage=usb start && ums 0 mmc 1; bootmenu
+bootmenu_2=fastboot=echo Starting Fastboot protocol ...; fastboot usb 0; bootmenu
+bootmenu_3=update bootloader=run flash_uboot
+bootmenu_4=reboot RCM=enterrcm
+bootmenu_5=reboot=reset
+bootmenu_6=power off=poweroff
+bootmenu_delay=-1
diff --git a/board/htc/endeavoru/endeavoru.env b/board/htc/endeavoru/endeavoru.env
new file mode 100644 (file)
index 0000000..53e9b56
--- /dev/null
@@ -0,0 +1,13 @@
+#include <env/nvidia/prod_upd.env>
+
+button_cmd_0_name=Volume Down
+button_cmd_0=bootmenu
+partitions=name=emmc,start=0,size=-,uuid=${uuid_gpt_rootfs}
+
+bootmenu_0=mount internal storage=usb start && ums 0 mmc 0; bootmenu
+bootmenu_1=fastboot=echo Starting Fastboot protocol ...; fastboot usb 0; bootmenu
+bootmenu_2=update bootloader=run flash_uboot
+bootmenu_3=reboot RCM=enterrcm
+bootmenu_4=reboot=reset
+bootmenu_5=power off=poweroff
+bootmenu_delay=-1
diff --git a/board/lenovo/ideapad-yoga-11/ideapad-yoga-11.env b/board/lenovo/ideapad-yoga-11/ideapad-yoga-11.env
new file mode 100644 (file)
index 0000000..7bc2b80
--- /dev/null
@@ -0,0 +1,16 @@
+#include <env/nvidia/prod_upd.env>
+
+button_cmd_0_name=Volume Down
+button_cmd_0=bootmenu
+button_cmd_1_name=Lid sensor
+button_cmd_1=poweroff
+partitions=name=emmc,start=0,size=-,uuid=${uuid_gpt_rootfs}
+
+bootmenu_0=mount internal storage=usb start && ums 0 mmc 0; bootmenu
+bootmenu_1=mount external storage=usb start && ums 0 mmc 1; bootmenu
+bootmenu_2=fastboot=echo Starting Fastboot protocol ...; fastboot usb 0; bootmenu
+bootmenu_3=update bootloader=run update_spi
+bootmenu_4=reboot RCM=enterrcm
+bootmenu_5=reboot=reset
+bootmenu_6=power off=poweroff
+bootmenu_delay=-1
index 57c2885779b599be1c76d08760af6b2366579566..44e0fa7ef775e09f6367e0705236d2a928debc4a 100644 (file)
@@ -1,3 +1,4 @@
+CONFIG_ENV_SOURCE_FILE="p880"
 CONFIG_DEFAULT_DEVICE_TREE="tegra30-lg-p880"
 CONFIG_SYS_PROMPT="Tegra30 (P880) # "
 CONFIG_VIDEO_LCD_RENESAS_R69328=y
index 2eba92594b5793e0f42b58ec3171d607471ec92f..267ae3a80d0ca1f5ff0991e1318997edba99fc6c 100644 (file)
@@ -1,3 +1,4 @@
+CONFIG_ENV_SOURCE_FILE="p895"
 CONFIG_DEFAULT_DEVICE_TREE="tegra30-lg-p895"
 CONFIG_SYS_PROMPT="Tegra30 (P895) # "
 CONFIG_VIDEO_LCD_RENESAS_R61307=y
diff --git a/board/lg/x3-t30/p880.env b/board/lg/x3-t30/p880.env
new file mode 100644 (file)
index 0000000..f2bf298
--- /dev/null
@@ -0,0 +1,15 @@
+#include <env/nvidia/prod_upd.env>
+
+button_cmd_0_name=Volume Down
+button_cmd_0=bootmenu
+partitions=name=emmc,start=0,size=-,uuid=${uuid_gpt_rootfs}
+boot_dev=1
+
+bootmenu_0=mount internal storage=usb start && ums 0 mmc 0; bootmenu
+bootmenu_1=mount external storage=usb start && ums 0 mmc 1; bootmenu
+bootmenu_2=fastboot=echo Starting Fastboot protocol ...; fastboot usb 0; bootmenu
+bootmenu_3=update bootloader=run flash_uboot
+bootmenu_4=reboot RCM=enterrcm
+bootmenu_5=reboot=reset
+bootmenu_6=power off=poweroff
+bootmenu_delay=-1
diff --git a/board/lg/x3-t30/p895.env b/board/lg/x3-t30/p895.env
new file mode 100644 (file)
index 0000000..53e9b56
--- /dev/null
@@ -0,0 +1,13 @@
+#include <env/nvidia/prod_upd.env>
+
+button_cmd_0_name=Volume Down
+button_cmd_0=bootmenu
+partitions=name=emmc,start=0,size=-,uuid=${uuid_gpt_rootfs}
+
+bootmenu_0=mount internal storage=usb start && ums 0 mmc 0; bootmenu
+bootmenu_1=fastboot=echo Starting Fastboot protocol ...; fastboot usb 0; bootmenu
+bootmenu_2=update bootloader=run flash_uboot
+bootmenu_3=reboot RCM=enterrcm
+bootmenu_4=reboot=reset
+bootmenu_5=power off=poweroff
+bootmenu_delay=-1
diff --git a/board/microsoft/surface-rt/surface-rt.env b/board/microsoft/surface-rt/surface-rt.env
new file mode 100644 (file)
index 0000000..6829290
--- /dev/null
@@ -0,0 +1,14 @@
+button_cmd_0_name=Volume Down
+button_cmd_0=bootmenu
+button_cmd_1_name=Hall Sensor
+button_cmd_1=poweroff
+partitions=name=emmc,start=0,size=-,uuid=${uuid_gpt_rootfs}
+
+bootmenu_0=mount internal storage=usb start && ums 0 mmc 0; bootmenu
+bootmenu_1=mount external storage=usb start && ums 0 mmc 1; bootmenu
+bootmenu_2=fastboot=echo Starting Fastboot protocol ...; fastboot usb 0; bootmenu
+bootmenu_3=boot from USB=usb reset; usb start; bootflow scan
+bootmenu_4=reboot RCM=enterrcm
+bootmenu_5=reboot=reset
+bootmenu_6=power off=poweroff
+bootmenu_delay=-1
diff --git a/board/nvidia/cardhu/cardhu.env b/board/nvidia/cardhu/cardhu.env
new file mode 100644 (file)
index 0000000..9d1e3e1
--- /dev/null
@@ -0,0 +1,2 @@
+board_name=cardhu-a04
+fdtfile=tegra30-cardhu-a04.dtb
diff --git a/board/nvidia/p2771-0000/p2771-0000.env b/board/nvidia/p2771-0000/p2771-0000.env
new file mode 100644 (file)
index 0000000..6789cc1
--- /dev/null
@@ -0,0 +1,22 @@
+calculated_vars=kernel_addr_r fdt_addr_r scriptaddr pxefile_addr_r ramdisk_addr_r
+
+kernel_addr_r_align=00200000
+kernel_addr_r_offset=00080000
+kernel_addr_r_size=02000000
+kernel_addr_r_aliases=loadaddr
+
+fdt_addr_r_align=00200000
+fdt_addr_r_offset=00000000
+fdt_addr_r_size=00200000
+
+scriptaddr_align=00200000
+scriptaddr_offset=00000000
+scriptaddr_size=00200000
+
+pxefile_addr_r_align=00200000
+pxefile_addr_r_offset=00000000
+pxefile_addr_r_size=00200000
+
+ramdisk_addr_r_align=00200000
+ramdisk_addr_r_offset=00000000
+ramdisk_addr_r_size=02000000
diff --git a/board/nvidia/p3450-0000/p3450-0000.env b/board/nvidia/p3450-0000/p3450-0000.env
new file mode 100644 (file)
index 0000000..a7d7ab3
--- /dev/null
@@ -0,0 +1,7 @@
+/* Only MMC/PXE/DHCP for now, add USB back in later when supported */
+boot_targets=mmc1 mmc0 pxe dhcp
+
+preboot=if test -e mmc 1:1 /u-boot-preboot.scr; then 
+       load mmc 1:1 ${scriptaddr} /u-boot-preboot.scr;
+               source ${scriptaddr};
+       fi
diff --git a/board/toradex/apalis-tk1/apalis_tk1.env b/board/toradex/apalis-tk1/apalis_tk1.env
new file mode 100644 (file)
index 0000000..ff883d6
--- /dev/null
@@ -0,0 +1,45 @@
+/*
+ * Custom Boot configuration:
+ * 1. 8bit SD port (MMC1)
+ * 2. 4bit SD port (MMC2)
+ * 3. eMMC (MMC0)
+ */
+boot_targets=mmc1 mmc2 mmc0 usb pxe dhcp
+
+boot_file=zImage
+boot_script_dhcp=boot.scr
+console=ttyS0
+defargs=lp0_vec=2064@0xf46ff000 core_edp_mv=1150 core_edp_ma=4000 
+       usb_port_owner_info=2 lane_owner_info=6 emc_max_dvfs=0 
+       user_debug=30 pcie_aspm=off
+dfu_alt_info=apalis-tk1.img raw 0x0 0x500 mmcpart 1; 
+       boot part 0 1 mmcpart 0; 
+       rootfs part 0 2 mmcpart 0; 
+       zImage fat 0 1 mmcpart 0; 
+       tegra124-apalis-eval.dtb fat 0 1 mmcpart 0
+fdt_board=eval
+fdt_fixup=;
+fdt_module=apalis-v1.2
+uboot_hwpart=1
+uboot_blk=0
+set_blkcnt=setexpr blkcnt ${filesize} + 0x1ff && 
+       setexpr blkcnt ${blkcnt} / 0x200
+update_uboot=run set_blkcnt && mmc dev 0 ${uboot_hwpart} && 
+       mmc write ${loadaddr} ${uboot_blk} ${blkcnt}
+setethupdate=if env exists ethaddr; then; else setenv ethaddr 
+       00:14:2d:00:00:00; fi; pci enum && tftpboot ${loadaddr} 
+       flash_eth.img && source ${loadaddr}
+setsdupdate=setenv interface mmc; setenv drive 1; mmc rescan; 
+       load ${interface} ${drive}:1 ${loadaddr} flash_blk.img 
+       || setenv drive 2; mmc rescan; load ${interface} ${drive}:1 
+       ${loadaddr} flash_blk.img && 
+       source ${loadaddr}
+setup=setenv setupargs igb_mac=${ethaddr} 
+       consoleblank=0 no_console_suspend=1 console=tty1 
+       console=${console},${baudrate}n8 debug_uartport=lsport,0 
+       ${memargs}
+setupdate=run setsdupdate || run setusbupdate || run setethupdate
+setusbupdate=usb start && setenv interface usb; setenv drive 0; 
+       load ${interface} ${drive}:1 ${loadaddr} flash_blk.img && 
+       source ${loadaddr}
+vidargs=fbcon=map:1
diff --git a/board/toradex/apalis_t30/apalis_t30.env b/board/toradex/apalis_t30/apalis_t30.env
new file mode 100644 (file)
index 0000000..2e5161e
--- /dev/null
@@ -0,0 +1,9 @@
+uboot_hwpart=1
+uboot_blk=0
+
+set_blkcnt=setexpr blkcnt ${filesize} + 0x1ff && 
+       setexpr blkcnt ${blkcnt} / 0x200
+update_uboot=run set_blkcnt && mmc dev 0 ${uboot_hwpart} && 
+       mmc write ${loadaddr} ${uboot_blk} ${blkcnt}
+
+boot_script_dhcp=boot.scr
diff --git a/board/toradex/colibri_t20/colibri_t20.env b/board/toradex/colibri_t20/colibri_t20.env
new file mode 100644 (file)
index 0000000..5e9f063
--- /dev/null
@@ -0,0 +1,3 @@
+/* Environment in NAND, 64K is a bit excessive but erase block is 512K anyway */
+boot_script_dhcp=boot.scr
+update_uboot=nand erase.part u-boot && nand write ${loadaddr} u-boot ${filesize}
diff --git a/board/toradex/colibri_t30/colibri_t30.env b/board/toradex/colibri_t30/colibri_t30.env
new file mode 100644 (file)
index 0000000..2e5161e
--- /dev/null
@@ -0,0 +1,9 @@
+uboot_hwpart=1
+uboot_blk=0
+
+set_blkcnt=setexpr blkcnt ${filesize} + 0x1ff && 
+       setexpr blkcnt ${blkcnt} / 0x200
+update_uboot=run set_blkcnt && mmc dev 0 ${uboot_hwpart} && 
+       mmc write ${loadaddr} ${uboot_blk} ${blkcnt}
+
+boot_script_dhcp=boot.scr
diff --git a/board/wexler/qc750/qc750.env b/board/wexler/qc750/qc750.env
new file mode 100644 (file)
index 0000000..f2bf298
--- /dev/null
@@ -0,0 +1,15 @@
+#include <env/nvidia/prod_upd.env>
+
+button_cmd_0_name=Volume Down
+button_cmd_0=bootmenu
+partitions=name=emmc,start=0,size=-,uuid=${uuid_gpt_rootfs}
+boot_dev=1
+
+bootmenu_0=mount internal storage=usb start && ums 0 mmc 0; bootmenu
+bootmenu_1=mount external storage=usb start && ums 0 mmc 1; bootmenu
+bootmenu_2=fastboot=echo Starting Fastboot protocol ...; fastboot usb 0; bootmenu
+bootmenu_3=update bootloader=run flash_uboot
+bootmenu_4=reboot RCM=enterrcm
+bootmenu_5=reboot=reset
+bootmenu_6=power off=poweroff
+bootmenu_delay=-1
index 7fa6161f22a5b10f492054851aa17a207b54f706..baab3bf8040a8b1e894fb6884969f5f75e14166c 100644 (file)
@@ -4,6 +4,7 @@ CONFIG_ARCH_TEGRA=y
 CONFIG_TEXT_BASE=0x80110000
 CONFIG_SYS_MALLOC_F_LEN=0x2000
 CONFIG_NR_DRAM_BANKS=2
+CONFIG_ENV_SOURCE_FILE="apalis-tk1"
 CONFIG_ENV_SIZE=0x2000
 CONFIG_ENV_OFFSET=0xFFFFDE00
 CONFIG_DEFAULT_DEVICE_TREE="tegra124-apalis"
@@ -19,7 +20,7 @@ CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_BOOTDELAY=1
 CONFIG_OF_SYSTEM_SETUP=y
-CONFIG_BOOTCOMMAND="setenv fdtfile ${soc}-${fdt_module}-${fdt_board}.dtb && run distro_bootcmd"
+CONFIG_BOOTCOMMAND="setenv fdtfile ${soc}-${fdt_module}-${fdt_board}.dtb && bootflow scan"
 CONFIG_SYS_CBSIZE=1024
 CONFIG_SYS_PBSIZE=1054
 CONFIG_CONSOLE_MUX=y
index d7da23ed752fe36097a61bd85979ca7cc5234d2c..963b280a675fcc62087b8d7614f99f58a98139f4 100644 (file)
@@ -4,6 +4,7 @@ CONFIG_ARCH_TEGRA=y
 CONFIG_TEXT_BASE=0x80110000
 CONFIG_SYS_MALLOC_F_LEN=0x2000
 CONFIG_NR_DRAM_BANKS=2
+CONFIG_ENV_SOURCE_FILE="apalis_t30"
 CONFIG_ENV_SIZE=0x2000
 CONFIG_ENV_OFFSET=0xFFFFDE00
 CONFIG_DEFAULT_DEVICE_TREE="tegra30-apalis"
index 7d88a25eb712013b3afca635287eb742a73d55e7..3fca1ae345ed5ff84fdb80fc6869c91524ecedd2 100644 (file)
@@ -4,6 +4,7 @@ CONFIG_SYS_L2CACHE_OFF=y
 CONFIG_ARCH_TEGRA=y
 CONFIG_TEXT_BASE=0x80110000
 CONFIG_NR_DRAM_BANKS=2
+CONFIG_ENV_SOURCE_FILE="cardhu"
 CONFIG_SF_DEFAULT_SPEED=24000000
 CONFIG_ENV_SIZE=0x2000
 CONFIG_ENV_OFFSET=0xFFFFE000
index 67456c89e7787c0cfc619ac7815f9e8e42eeaff0..a1a12e2b5122f0226f0165eb23c96dbdfe1ad710 100644 (file)
@@ -4,6 +4,7 @@ CONFIG_ARCH_TEGRA=y
 CONFIG_TEXT_BASE=0x00110000
 CONFIG_SYS_MALLOC_F_LEN=0x2000
 CONFIG_NR_DRAM_BANKS=2
+CONFIG_ENV_SOURCE_FILE="colibri_t20"
 CONFIG_ENV_SIZE=0x10000
 CONFIG_ENV_OFFSET=0x200000
 CONFIG_DEFAULT_DEVICE_TREE="tegra20-colibri"
index 5044febb20feabedf164f20210ba31984b812e26..3be175b46bf13d91964c992f6ad4eb4cebbef180 100644 (file)
@@ -4,6 +4,7 @@ CONFIG_ARCH_TEGRA=y
 CONFIG_TEXT_BASE=0x80110000
 CONFIG_SYS_MALLOC_F_LEN=0x2000
 CONFIG_NR_DRAM_BANKS=2
+CONFIG_ENV_SOURCE_FILE="colibri_t30"
 CONFIG_ENV_SIZE=0x2000
 CONFIG_ENV_OFFSET=0xFFFFDE00
 CONFIG_DEFAULT_DEVICE_TREE="tegra30-colibri"
index fddc3d87ed33b77ffb776cc5b78168374b34307e..f0c8ce16142523bfff73895f7dccbbf51887181c 100644 (file)
@@ -5,6 +5,7 @@ CONFIG_CMDLINE_TAG=y
 CONFIG_INITRD_TAG=y
 CONFIG_TEXT_BASE=0x80110000
 CONFIG_NR_DRAM_BANKS=2
+CONFIG_ENV_SOURCE_FILE="endeavoru"
 CONFIG_ENV_SIZE=0x3000
 CONFIG_ENV_OFFSET=0xFFFFD000
 CONFIG_DEFAULT_DEVICE_TREE="tegra30-htc-endeavoru"
index 7d8cb6110f3f01243fcf5cbd8e5d951eb4b10635..a7b7209c6a5c0e3680fd3ae954053bd6bcd4f851 100644 (file)
@@ -5,6 +5,7 @@ CONFIG_CMDLINE_TAG=y
 CONFIG_INITRD_TAG=y
 CONFIG_TEXT_BASE=0x80110000
 CONFIG_NR_DRAM_BANKS=2
+CONFIG_ENV_SOURCE_FILE="grouper"
 CONFIG_ENV_SIZE=0x3000
 CONFIG_ENV_OFFSET=0xFFFFD000
 CONFIG_DEFAULT_DEVICE_TREE="tegra30-asus-nexus7-grouper-E1565"
index 4618c5253b6bf89dc29e8395f0ab090c1b64d003..a9dd5216ccff75d80a28a5a88357af783f99e582 100644 (file)
@@ -5,6 +5,7 @@ CONFIG_CMDLINE_TAG=y
 CONFIG_INITRD_TAG=y
 CONFIG_TEXT_BASE=0x80110000
 CONFIG_NR_DRAM_BANKS=2
+CONFIG_ENV_SOURCE_FILE="ideapad-yoga-11"
 CONFIG_ENV_SIZE=0x3000
 CONFIG_ENV_OFFSET=0xFFFFD000
 CONFIG_DEFAULT_DEVICE_TREE="tegra30-lenovo-ideapad-yoga-11"
index 3554ba6a720ae7211cceacbd2adb923132518c37..a12586523e95d6cdcaea39efb9c800fb1368eec8 100644 (file)
@@ -5,6 +5,7 @@ CONFIG_SYS_L2CACHE_OFF=y
 CONFIG_ARCH_TEGRA=y
 CONFIG_TEXT_BASE=0x80080000
 CONFIG_NR_DRAM_BANKS=1026
+CONFIG_ENV_SOURCE_FILE="p2771-0000"
 CONFIG_ENV_SIZE=0x2000
 CONFIG_ENV_OFFSET=0xFFFFE000
 CONFIG_DEFAULT_DEVICE_TREE="tegra186-p2771-0000-000"
index ac7ed8e10fceac871f9f49fb6aff0ed1a0be588f..a002178b7fbe8edf990a444c79dd6899ac16dcce 100644 (file)
@@ -6,6 +6,7 @@ CONFIG_ARCH_TEGRA=y
 CONFIG_TEXT_BASE=0x80080000
 CONFIG_SYS_MALLOC_LEN=0x2500000
 CONFIG_NR_DRAM_BANKS=2
+CONFIG_ENV_SOURCE_FILE="p3450-0000"
 CONFIG_SF_DEFAULT_SPEED=24000000
 CONFIG_ENV_SIZE=0x2000
 CONFIG_ENV_OFFSET=0xFFFFE000
index d0b07ee07c4129475691b388e40617b8c03d8e26..58a3c83ade0f544dc7e19addc652e83ebd0e93e3 100644 (file)
@@ -5,6 +5,7 @@ CONFIG_CMDLINE_TAG=y
 CONFIG_INITRD_TAG=y
 CONFIG_TEXT_BASE=0x80110000
 CONFIG_NR_DRAM_BANKS=2
+CONFIG_ENV_SOURCE_FILE="qc750"
 CONFIG_ENV_SIZE=0x3000
 CONFIG_ENV_OFFSET=0xFFFFD000
 CONFIG_DEFAULT_DEVICE_TREE="tegra30-wexler-qc750"
index dbb08abbb1abb2e97922741dbd4745b4b70e5e4f..c1fd4a56a8fd7931b0d799c2d152e1993b1c9add 100644 (file)
@@ -5,6 +5,7 @@ CONFIG_CMDLINE_TAG=y
 CONFIG_INITRD_TAG=y
 CONFIG_TEXT_BASE=0x80110000
 CONFIG_NR_DRAM_BANKS=2
+CONFIG_ENV_SOURCE_FILE="surface-rt"
 CONFIG_ENV_SIZE=0x3000
 CONFIG_ENV_OFFSET=0xFFFFD000
 CONFIG_DEFAULT_DEVICE_TREE="tegra30-microsoft-surface-rt"
index f424ce8c273779eadfdd5f49efaf69dd923ccfcd..df993c31c72aa22ffbb52df5a425c59baa1e434f 100644 (file)
@@ -5,6 +5,7 @@ CONFIG_CMDLINE_TAG=y
 CONFIG_INITRD_TAG=y
 CONFIG_TEXT_BASE=0x00110000
 CONFIG_NR_DRAM_BANKS=2
+CONFIG_ENV_SOURCE_FILE="transformer-t20"
 CONFIG_ENV_SIZE=0x3000
 CONFIG_ENV_OFFSET=0xFFFFD000
 CONFIG_DEFAULT_DEVICE_TREE="tegra20-asus-tf101"
index 10784033e7eda77d2f0c3bad210cbb34fc81dcae..11ea7176d8023fe2a5894d3d589635e91b903171 100644 (file)
@@ -5,6 +5,7 @@ CONFIG_CMDLINE_TAG=y
 CONFIG_INITRD_TAG=y
 CONFIG_TEXT_BASE=0x80110000
 CONFIG_NR_DRAM_BANKS=2
+CONFIG_ENV_SOURCE_FILE="transformer-t30"
 CONFIG_ENV_SIZE=0x3000
 CONFIG_ENV_OFFSET=0xFFFFD000
 CONFIG_DEFAULT_DEVICE_TREE="tegra30-asus-tf201"
index 71d4727ca98da8d0a95c82ae26231a2d59979f63..4c690a17856fe0799ef8e68537789abcfb3049b7 100644 (file)
 #define FDT_MODULE                     "apalis-v1.2"
 #define FDT_MODULE_V1_0                        "apalis"
 
-/*
- * Custom Distro Boot configuration:
- * 1. 8bit SD port (MMC1)
- * 2. 4bit SD port (MMC2)
- * 3. eMMC (MMC0)
- */
-#define BOOT_TARGET_DEVICES(func) \
-       func(MMC, mmc, 1) \
-       func(MMC, mmc, 2) \
-       func(MMC, mmc, 0) \
-       func(USB, usb, 0) \
-       func(PXE, pxe, na) \
-       func(DHCP, dhcp, na)
-
-#define DFU_ALT_EMMC_INFO      "apalis-tk1.img raw 0x0 0x500 mmcpart 1; " \
-                               "boot part 0 1 mmcpart 0; " \
-                               "rootfs part 0 2 mmcpart 0; " \
-                               "zImage fat 0 1 mmcpart 0; " \
-                               "tegra124-apalis-eval.dtb fat 0 1 mmcpart 0"
-
-#define UBOOT_UPDATE \
-       "uboot_hwpart=1\0" \
-       "uboot_blk=0\0" \
-       "set_blkcnt=setexpr blkcnt ${filesize} + 0x1ff && " \
-               "setexpr blkcnt ${blkcnt} / 0x200\0" \
-       "update_uboot=run set_blkcnt && mmc dev 0 ${uboot_hwpart} && " \
-               "mmc write ${loadaddr} ${uboot_blk} ${blkcnt}\0" \
-
-#define BOARD_EXTRA_ENV_SETTINGS \
-       "boot_file=zImage\0" \
-       "boot_script_dhcp=boot.scr\0" \
-       "console=ttyS0\0" \
-       "defargs=lp0_vec=2064@0xf46ff000 core_edp_mv=1150 core_edp_ma=4000 " \
-               "usb_port_owner_info=2 lane_owner_info=6 emc_max_dvfs=0 " \
-               "user_debug=30 pcie_aspm=off\0" \
-       "dfu_alt_info=" DFU_ALT_EMMC_INFO "\0" \
-       "fdt_board=eval\0" \
-       "fdt_fixup=;\0" \
-       "fdt_module=" FDT_MODULE "\0" \
-       UBOOT_UPDATE \
-       "setethupdate=if env exists ethaddr; then; else setenv ethaddr " \
-               "00:14:2d:00:00:00; fi; pci enum && tftpboot ${loadaddr} " \
-               "flash_eth.img && source ${loadaddr}\0" \
-       "setsdupdate=setenv interface mmc; setenv drive 1; mmc rescan; " \
-               "load ${interface} ${drive}:1 ${loadaddr} flash_blk.img " \
-               "|| setenv drive 2; mmc rescan; load ${interface} ${drive}:1 " \
-               "${loadaddr} flash_blk.img && " \
-               "source ${loadaddr}\0" \
-       "setup=setenv setupargs igb_mac=${ethaddr} " \
-               "consoleblank=0 no_console_suspend=1 console=tty1 " \
-               "console=${console},${baudrate}n8 debug_uartport=lsport,0 " \
-               "${memargs}\0" \
-       "setupdate=run setsdupdate || run setusbupdate || run setethupdate\0" \
-       "setusbupdate=usb start && setenv interface usb; setenv drive 0; " \
-               "load ${interface} ${drive}:1 ${loadaddr} flash_blk.img && " \
-               "source ${loadaddr}\0" \
-       "vidargs=fbcon=map:1\0"
-
 #include "tegra-common-post.h"
 
 #endif /* __CONFIG_H */
index 80204d706d1fc4f3c299b2e8613e33cdc8265fa5..87a679efde6d59186761881c96821b91bf5950d5 100644 (file)
  */
 #define CFG_SYS_NS16550_COM1           NV_PA_APB_UARTA_BASE
 
-#define UBOOT_UPDATE \
-       "uboot_hwpart=1\0" \
-       "uboot_blk=0\0" \
-       "set_blkcnt=setexpr blkcnt ${filesize} + 0x1ff && " \
-               "setexpr blkcnt ${blkcnt} / 0x200\0" \
-       "update_uboot=run set_blkcnt && mmc dev 0 ${uboot_hwpart} && " \
-               "mmc write ${loadaddr} ${uboot_blk} ${blkcnt}\0" \
-
-#define BOARD_EXTRA_ENV_SETTINGS \
-       UBOOT_UPDATE \
-       "boot_script_dhcp=boot.scr\0"
-
 #include "tegra-common-post.h"
 
 #endif /* __CONFIG_H */
index 82729eb95cf65066868d62b9500f66a90f6faca8..3412b883cbb8a3e59d363e916d7561884b571dd2 100644 (file)
 /* High-level configuration options */
 #define CFG_TEGRA_BOARD_STRING "NVIDIA Cardhu"
 
-#define BOARD_EXTRA_ENV_SETTINGS \
-       "board_name=cardhu-a04\0" \
-       "fdtfile=tegra30-cardhu-a04.dtb\0"
-
 /* Board-specific serial config */
 #define CFG_SYS_NS16550_COM1           NV_PA_APB_UARTA_BASE
 
index ea7d648eb6a49125a6228061abe95cb5fa3e5b2a..bc616d143683ddfadcc447200dbccbc75a2327b4 100644 (file)
 /* Board-specific serial config */
 #define CFG_SYS_NS16550_COM1           NV_PA_APB_UARTA_BASE
 
-/* NAND support */
-
-#define UBOOT_UPDATE \
-       "update_uboot=nand erase.part u-boot && " \
-               "nand write ${loadaddr} u-boot ${filesize}\0" \
-
-/* Environment in NAND, 64K is a bit excessive but erase block is 512K anyway */
-#define BOARD_EXTRA_ENV_SETTINGS \
-       "boot_script_dhcp=boot.scr\0" \
-       UBOOT_UPDATE
-
 #include "tegra-common-post.h"
 
 #endif /* __CONFIG_H */
index 7edb2c0b26d4b98c28c8730c9ca483d61f7d28bd..1f474669a731adef4d53851fa8cdb7051f0a614c 100644 (file)
  */
 #define CFG_SYS_NS16550_COM1           NV_PA_APB_UARTA_BASE
 
-#define UBOOT_UPDATE \
-       "uboot_hwpart=1\0" \
-       "uboot_blk=0\0" \
-       "set_blkcnt=setexpr blkcnt ${filesize} + 0x1ff && " \
-               "setexpr blkcnt ${blkcnt} / 0x200\0" \
-       "update_uboot=run set_blkcnt && mmc dev 0 ${uboot_hwpart} && " \
-               "mmc write ${loadaddr} ${uboot_blk} ${blkcnt}\0" \
-
-#define BOARD_EXTRA_ENV_SETTINGS \
-       UBOOT_UPDATE \
-       "boot_script_dhcp=boot.scr\0"
-
 #include "tegra-common-post.h"
 
 #endif /* __CONFIG_H */
index 348078f9770c6a60a5752cf02d0a3bf2aa99ba1f..33d0021ec1358db7f6db7360b772ef0be17b93dd 100644 (file)
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
-#include <linux/sizes.h>
-
 #include "tegra30-common.h"
 
 /* High-level configuration options */
 #define CFG_TEGRA_BOARD_STRING         "HTC One X"
 
-#define ENDEAVORU_FLASH_UBOOT \
-       "flash_uboot=echo Preparing RAM;" \
-               "mw ${kernel_addr_r} 0 ${boot_block_size_r};" \
-               "mw ${ramdisk_addr_r} 0 ${boot_block_size_r};" \
-               "echo Reading BCT;" \
-               "mmc dev 0 1;" \
-               "mmc read ${kernel_addr_r} 0 ${boot_block_size};" \
-               "echo Reading bootloader;" \
-               "if load mmc 0:1 ${ramdisk_addr_r} ${bootloader_file};" \
-               "then echo Calculating bootloader size;" \
-                       "size mmc 0:1 ${bootloader_file};" \
-                       "ebtupdate ${kernel_addr_r} ${ramdisk_addr_r} ${filesize};" \
-                       "echo Writing bootloader to eMMC;" \
-                       "mmc dev 0 1;" \
-                       "mmc write ${kernel_addr_r} 0 ${boot_block_size};" \
-                       "mmc dev 0 2;" \
-                       "mmc write ${ramdisk_addr_r} 0 ${boot_block_size};" \
-                       "echo Bootloader written successfully;" \
-                       "pause 'Press ANY key to reboot device...'; reset;" \
-               "else echo Reading bootloader failed;" \
-                       "pause 'Press ANY key to return to bootmenu...'; bootmenu; fi\0"
-
-#define ENDEAVORU_BOOTMENU \
-       ENDEAVORU_FLASH_UBOOT \
-       "bootmenu_0=mount internal storage=usb start && ums 0 mmc 0; bootmenu\0" \
-       "bootmenu_1=fastboot=echo Starting Fastboot protocol ...; fastboot usb 0; bootmenu\0" \
-       "bootmenu_2=update bootloader=run flash_uboot\0" \
-       "bootmenu_3=reboot RCM=enterrcm\0" \
-       "bootmenu_4=reboot=reset\0" \
-       "bootmenu_5=power off=poweroff\0" \
-       "bootmenu_delay=-1\0"
-
-#define BOARD_EXTRA_ENV_SETTINGS \
-       "boot_block_size_r=0x200000\0" \
-       "boot_block_size=0x1000\0" \
-       "bootloader_file=u-boot-dtb-tegra.bin\0" \
-       "button_cmd_0_name=Volume Down\0" \
-       "button_cmd_0=bootmenu\0" \
-       "partitions=name=emmc,start=0,size=-,uuid=${uuid_gpt_rootfs}\0" \
-       ENDEAVORU_BOOTMENU
-
 /* Board-specific serial config */
 #define CFG_SYS_NS16550_COM1           NV_PA_APB_UARTA_BASE
 
index 8064b88902e2b666956b5dbaa00a29f3eed76472..b6ef6ff2ecb5a6849110f0bcdf57621ac0b023e8 100644 (file)
@@ -6,56 +6,11 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
-#include <linux/sizes.h>
-
 #include "tegra30-common.h"
 
 /* High-level configuration options */
 #define CFG_TEGRA_BOARD_STRING         "ASUS Google Nexus 7 (2012)"
 
-#define GROUPER_FLASH_UBOOT \
-       "flash_uboot=echo Preparing RAM;" \
-               "mw ${kernel_addr_r} 0 ${boot_block_size_r};" \
-               "mw ${ramdisk_addr_r} 0 ${boot_block_size_r};" \
-               "echo Reading BCT;" \
-               "mmc dev 0 1;" \
-               "mmc read ${kernel_addr_r} 0 ${boot_block_size};" \
-               "echo Reading bootloader;" \
-               "if load mmc 0:1 ${ramdisk_addr_r} ${bootloader_file};" \
-               "then echo Calculating bootloader size;" \
-                       "size mmc 0:1 ${bootloader_file};" \
-                       "ebtupdate ${kernel_addr_r} ${ramdisk_addr_r} ${filesize};" \
-                       "echo Writing bootloader to eMMC;" \
-                       "mmc dev 0 1;" \
-                       "mmc write ${kernel_addr_r} 0 ${boot_block_size};" \
-                       "mmc dev 0 2;" \
-                       "mmc write ${ramdisk_addr_r} 0 ${boot_block_size};" \
-                       "echo Bootloader written successfully;" \
-                       "pause 'Press ANY key to reboot device...'; reset;" \
-               "else echo Reading bootloader failed;" \
-                       "pause 'Press ANY key to return to bootmenu...'; bootmenu; fi\0"
-
-#define GROUPER_BOOTMENU \
-       GROUPER_FLASH_UBOOT \
-       "bootmenu_0=mount internal storage=usb start && ums 0 mmc 0; bootmenu\0" \
-       "bootmenu_1=fastboot=echo Starting Fastboot protocol ...; fastboot usb 0; bootmenu\0" \
-       "bootmenu_2=update bootloader=run flash_uboot\0" \
-       "bootmenu_3=reboot RCM=enterrcm\0" \
-       "bootmenu_4=reboot=reset\0" \
-       "bootmenu_5=power off=poweroff\0" \
-       "bootmenu_delay=-1\0"
-
-#define BOARD_EXTRA_ENV_SETTINGS \
-       "boot_block_size_r=0x200000\0" \
-       "boot_block_size=0x1000\0" \
-       "bootloader_file=u-boot-dtb-tegra.bin\0" \
-       "button_cmd_0_name=Volume Down\0" \
-       "button_cmd_0=bootmenu\0" \
-       "button_cmd_1_name=Lid\0" \
-       "button_cmd_1=poweroff\0" \
-       "partitions=name=emmc,start=0,size=-,uuid=${uuid_gpt_rootfs}\0" \
-       GROUPER_BOOTMENU
-
 /* Board-specific serial config */
 #define CFG_SYS_NS16550_COM1           NV_PA_APB_UARTA_BASE
 
index 12c7649f7883175f66d6a486b10be8c59129123a..c4e6b2a647cc7932a304965c8c74803456b6a52b 100644 (file)
 /* High-level configuration options */
 #define CFG_TEGRA_BOARD_STRING         "Lenovo Ideapad Yoga 11"
 
-#define IDEAPAD_FLASH_UBOOT \
-       "flash_uboot=sf probe 0:1;" \
-               "echo Dumping current SPI flash content ...;" \
-               "sf read ${kernel_addr_r} 0x0 ${spi_size};" \
-               "if fatwrite mmc 1:1 ${kernel_addr_r} spi-flash-backup.bin ${spi_size};" \
-               "then echo SPI flash content was successfully written into spi-flash-backup.bin;" \
-                       "echo Reading SPI flash binary;" \
-                       "if load mmc 1:1 ${kernel_addr_r} repart-block.bin;" \
-                       "then echo Writing bootloader into SPI flash;" \
-                               "sf probe 0:1;" \
-                               "sf update ${kernel_addr_r} 0x0 ${spi_size};" \
-                               "echo Bootloader SUCCESSFULLY written into SPI flash;" \
-                               "pause 'Press ANY key to reboot...'; reset;" \
-                       "else echo Preparing RAM;" \
-                               "mw ${kernel_addr_r} 0 ${boot_block_size_r};" \
-                               "mw ${ramdisk_addr_r} 0 ${boot_block_size_r};" \
-                               "echo Reading BCT;" \
-                               "sf read ${kernel_addr_r} 0x0 ${boot_block_size_r};" \
-                               "echo Reading bootloader;" \
-                               "if load mmc 1:1 ${ramdisk_addr_r} ${bootloader_file};" \
-                               "then echo Calculating bootloader size;" \
-                                       "size mmc 1:1 ${bootloader_file};" \
-                                       "ebtupdate ${kernel_addr_r} ${ramdisk_addr_r} ${filesize};" \
-                                       "echo Writing bootloader into SPI flash;" \
-                                       "sf probe 0:1;" \
-                                       "sf update ${kernel_addr_r} 0x0 ${boot_block_size_r};" \
-                                       "sf update ${ramdisk_addr_r} ${boot_block_size_r} ${boot_block_size_r};" \
-                                       "echo Bootloader written SUCCESSFULLY;" \
-                                       "pause 'Press ANY key to reboot...'; reset;" \
-                               "else echo Reading bootloader failed;" \
-                                       "pause 'Press ANY key to reboot...'; reset; fi;" \
-                       "fi;" \
-               "else echo SPI flash backup FAILED! Aborting ...;" \
-                       "pause 'Press ANY key to reboot...'; reset; fi\0"
-
-#define IDEAPAD_BOOTMENU \
-       IDEAPAD_FLASH_UBOOT \
-       "bootmenu_0=mount internal storage=usb start && ums 0 mmc 0; bootmenu\0" \
-       "bootmenu_1=mount external storage=usb start && ums 0 mmc 1; bootmenu\0" \
-       "bootmenu_2=fastboot=echo Starting Fastboot protocol ...; fastboot usb 0; bootmenu\0" \
-       "bootmenu_3=update bootloader=run flash_uboot\0" \
-       "bootmenu_4=reboot RCM=enterrcm\0" \
-       "bootmenu_5=reboot=reset\0" \
-       "bootmenu_6=power off=poweroff\0" \
-       "bootmenu_delay=-1\0"
-
-#define BOARD_EXTRA_ENV_SETTINGS \
-       "spi_size=0x400000\0" \
-       "boot_block_size_r=0x200000\0" \
-       "boot_block_size=0x1000\0" \
-       "bootloader_file=u-boot-dtb-tegra.bin\0" \
-       "button_cmd_0_name=Volume Down\0" \
-       "button_cmd_0=bootmenu\0" \
-       "button_cmd_1_name=Lid sensor\0" \
-       "button_cmd_1=poweroff\0" \
-       "partitions=name=emmc,start=0,size=-,uuid=${uuid_gpt_rootfs}\0" \
-       IDEAPAD_BOOTMENU
-
 /* Board-specific serial config */
 #define CFG_SYS_NS16550_COM1           NV_PA_APB_UARTA_BASE
 
index e409cc3896d793909c8ba67390d2856ec100640a..fc1b7c0302d6a9f1f5fb9d0e60910bd15bcc509e 100644 (file)
 
 /* Environment in eMMC, at the end of 2nd "boot sector" */
 
-#define BOARD_EXTRA_ENV_SETTINGS \
-       "calculated_vars=kernel_addr_r fdt_addr_r scriptaddr pxefile_addr_r " \
-               "ramdisk_addr_r\0" \
-       "kernel_addr_r_align=00200000\0" \
-       "kernel_addr_r_offset=00080000\0" \
-       "kernel_addr_r_size=02000000\0" \
-       "kernel_addr_r_aliases=loadaddr\0" \
-       "fdt_addr_r_align=00200000\0" \
-       "fdt_addr_r_offset=00000000\0" \
-       "fdt_addr_r_size=00200000\0" \
-       "scriptaddr_align=00200000\0" \
-       "scriptaddr_offset=00000000\0" \
-       "scriptaddr_size=00200000\0" \
-       "pxefile_addr_r_align=00200000\0" \
-       "pxefile_addr_r_offset=00000000\0" \
-       "pxefile_addr_r_size=00200000\0" \
-       "ramdisk_addr_r_align=00200000\0" \
-       "ramdisk_addr_r_offset=00000000\0" \
-       "ramdisk_addr_r_size=02000000\0"
-
 #include "tegra-common-post.h"
 
 #endif
index e60f42eaa728917acbe922923ff6872eba67e90e..1138c1d306f25584707b3e295212da64d83ecf5c 100644 (file)
 
 /* Board-specific serial config */
 
-/* Only MMC/PXE/DHCP for now, add USB back in later when supported */
-#define BOOT_TARGET_DEVICES(func) \
-       func(MMC, mmc, 1) \
-       func(MMC, mmc, 0) \
-       func(PXE, pxe, na) \
-       func(DHCP, dhcp, na)
-
-#define BOARD_EXTRA_ENV_SETTINGS \
-       "preboot=if test -e mmc 1:1 /u-boot-preboot.scr; then " \
-               "load mmc 1:1 ${scriptaddr} /u-boot-preboot.scr; " \
-               "source ${scriptaddr}; " \
-       "fi\0"
-
 /* General networking support */
 #include "tegra-common-post.h"
 
index ce6665d0f34ac965dbe32584a92e3fb1aa7343dc..ad9f9146bb77ea84125611b51682f11182ec9c4f 100644 (file)
 /* High-level configuration options */
 #define CFG_TEGRA_BOARD_STRING         "Wexler QC750"
 
-#define QC750_FLASH_UBOOT \
-       "flash_uboot=echo Preparing RAM;" \
-               "mw ${kernel_addr_r} 0 ${boot_block_size_r};" \
-               "mw ${ramdisk_addr_r} 0 ${boot_block_size_r};" \
-               "echo Reading BCT;" \
-               "mmc dev 0 1;" \
-               "mmc read ${kernel_addr_r} 0 ${boot_block_size};" \
-               "echo Reading bootloader;" \
-               "if load mmc 1:1 ${ramdisk_addr_r} ${bootloader_file};" \
-               "then echo Calculating bootloader size;" \
-                       "size mmc 1:1 ${bootloader_file};" \
-                       "ebtupdate ${kernel_addr_r} ${ramdisk_addr_r} ${filesize};" \
-                       "echo Writing bootloader to eMMC;" \
-                       "mmc dev 0 1;" \
-                       "mmc write ${kernel_addr_r} 0 ${boot_block_size};" \
-                       "mmc dev 0 2;" \
-                       "mmc write ${ramdisk_addr_r} 0 ${boot_block_size};" \
-                       "echo Bootloader written successfully;" \
-                       "pause 'Press ANY key to reboot device...'; reset;" \
-               "else echo Reading bootloader failed;" \
-                       "pause 'Press ANY key to return to bootmenu...'; bootmenu; fi\0"
-
-#define QC750_BOOTMENU \
-       QC750_FLASH_UBOOT \
-       "bootmenu_0=mount internal storage=usb start && ums 0 mmc 0; bootmenu\0" \
-       "bootmenu_1=mount external storage=usb start && ums 0 mmc 1; bootmenu\0" \
-       "bootmenu_2=fastboot=echo Starting Fastboot protocol ...; fastboot usb 0; bootmenu\0" \
-       "bootmenu_3=update bootloader=run flash_uboot\0" \
-       "bootmenu_4=reboot RCM=enterrcm\0" \
-       "bootmenu_5=reboot=reset\0" \
-       "bootmenu_6=power off=poweroff\0" \
-       "bootmenu_delay=-1\0"
-
-#define BOARD_EXTRA_ENV_SETTINGS \
-       "boot_block_size_r=0x200000\0" \
-       "boot_block_size=0x1000\0" \
-       "bootloader_file=u-boot-dtb-tegra.bin\0" \
-       "button_cmd_0_name=Volume Down\0" \
-       "button_cmd_0=bootmenu\0" \
-       "partitions=name=emmc,start=0,size=-,uuid=${uuid_gpt_rootfs}\0" \
-       QC750_BOOTMENU
-
 /* Board-specific serial config */
 #define CFG_SYS_NS16550_COM1           NV_PA_APB_UARTD_BASE
 
index 30f6450cf38e54933932321f9e15615ce6510b1d..1f0837e179b02bfdf2ba980144e98c7e84115621 100644 (file)
 /* High-level configuration options */
 #define CFG_TEGRA_BOARD_STRING         "Microsoft Surface RT"
 
-#define SURFACE_RT_BOOTMENU \
-       "bootmenu_0=mount internal storage=usb start && ums 0 mmc 0; bootmenu\0" \
-       "bootmenu_1=mount external storage=usb start && ums 0 mmc 1; bootmenu\0" \
-       "bootmenu_2=fastboot=echo Starting Fastboot protocol ...; fastboot usb 0; bootmenu\0" \
-       "bootmenu_3=boot from USB=usb reset; usb start; bootflow scan\0" \
-       "bootmenu_4=reboot RCM=enterrcm\0" \
-       "bootmenu_5=reboot=reset\0" \
-       "bootmenu_6=power off=poweroff\0" \
-       "bootmenu_delay=-1\0"
-
-#define BOARD_EXTRA_ENV_SETTINGS \
-       "button_cmd_0_name=Volume Down\0" \
-       "button_cmd_0=bootmenu\0" \
-       "button_cmd_1_name=Hall Sensor\0" \
-       "button_cmd_1=poweroff\0" \
-       "partitions=name=emmc,start=0,size=-,uuid=${uuid_gpt_rootfs}\0" \
-       SURFACE_RT_BOOTMENU
-
 /* Board-specific serial config */
 #define CFG_SYS_NS16550_COM1           NV_PA_APB_UARTA_BASE
 
diff --git a/include/configs/transformer-common.h b/include/configs/transformer-common.h
deleted file mode 100644 (file)
index bb6817c..0000000
+++ /dev/null
@@ -1,91 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-/*
- * Copyright (c) 2022, Svyatoslav Ryhel <clamor95@gmail.com>.
- */
-
-#ifndef __TRANSFORMER_COMMON_H
-#define __TRANSFORMER_COMMON_H
-
-/* High-level configuration options */
-#define CFG_TEGRA_BOARD_STRING         "ASUS Transformer"
-
-#define TRANSFORMER_FLASH_UBOOT \
-       "flash_uboot=echo Preparing RAM;" \
-               "mw ${kernel_addr_r} 0 ${boot_block_size_r};" \
-               "mw ${ramdisk_addr_r} 0 ${boot_block_size_r};" \
-               "echo Reading BCT;" \
-               "mmc dev 0 1;" \
-               "mmc read ${kernel_addr_r} 0 ${boot_block_size};" \
-               "echo Reading bootloader;" \
-               "if load mmc 1:1 ${ramdisk_addr_r} ${bootloader_file};" \
-               "then echo Calculating bootloader size;" \
-                       "size mmc 1:1 ${bootloader_file};" \
-                       "ebtupdate ${kernel_addr_r} ${ramdisk_addr_r} ${filesize};" \
-                       "echo Writing bootloader to eMMC;" \
-                       "mmc dev 0 1;" \
-                       "mmc write ${kernel_addr_r} 0 ${boot_block_size};" \
-                       "mmc dev 0 2;" \
-                       "mmc write ${ramdisk_addr_r} 0 ${boot_block_size};" \
-                       "echo Bootloader written successfully;" \
-                       "pause 'Press ANY key to reboot device...'; reset;" \
-               "else echo Reading bootloader failed;" \
-                       "pause 'Press ANY key to return to bootmenu...'; bootmenu; fi\0"
-
-#define TRANSFORMER_FLASH_SPI \
-       "update_spi=sf probe 0:1;" \
-               "echo Dumping current SPI flash content ...;" \
-               "sf read ${kernel_addr_r} 0x0 ${spi_size};" \
-               "if fatwrite mmc 1:1 ${kernel_addr_r} spi-flash-backup.bin ${spi_size};" \
-               "then echo SPI flash content was successfully written into spi-flash-backup.bin;" \
-                       "echo Reading SPI flash binary;" \
-                       "if load mmc 1:1 ${kernel_addr_r} repart-block.bin;" \
-                       "then echo Writing bootloader into SPI flash;" \
-                               "sf probe 0:1;" \
-                               "sf update ${kernel_addr_r} 0x0 ${spi_size};" \
-                               "poweroff;" \
-                       "else echo Preparing RAM;" \
-                               "mw ${kernel_addr_r} 0 ${boot_block_size_r};" \
-                               "mw ${ramdisk_addr_r} 0 ${boot_block_size_r};" \
-                               "echo Reading BCT;" \
-                               "sf read ${kernel_addr_r} 0x0 ${boot_block_size_r};" \
-                               "echo Reading bootloader;" \
-                               "if load mmc 1:1 ${ramdisk_addr_r} ${bootloader_file};" \
-                               "then echo Calculating bootloader size;" \
-                                       "size mmc 1:1 ${bootloader_file};" \
-                                       "ebtupdate ${kernel_addr_r} ${ramdisk_addr_r} ${filesize};" \
-                                       "echo Writing bootloader into SPI flash;" \
-                                       "sf probe 0:1;" \
-                                       "sf update ${kernel_addr_r} 0x0 ${boot_block_size_r};" \
-                                       "sf update ${ramdisk_addr_r} ${boot_block_size_r} ${boot_block_size_r};" \
-                                       "echo Bootloader written successfully; poweroff;" \
-                               "else echo Reading bootloader failed;" \
-                                       "poweroff; fi;" \
-                       "fi;" \
-               "else echo SPI flash backup FAILED! Aborting ...;" \
-                       "poweroff; fi\0"
-
-#define TRANSFORMER_BOOTMENU \
-       TRANSFORMER_FLASH_UBOOT \
-       TRANSFORMER_FLASH_SPI \
-       "bootmenu_0=mount internal storage=usb start && ums 0 mmc 0; bootmenu\0" \
-       "bootmenu_1=mount external storage=usb start && ums 0 mmc 1; bootmenu\0" \
-       "bootmenu_2=fastboot=echo Starting Fastboot protocol ...; fastboot usb 0; bootmenu\0" \
-       "bootmenu_3=update bootloader=run flash_uboot\0" \
-       "bootmenu_4=reboot RCM=enterrcm\0" \
-       "bootmenu_5=reboot=reset\0" \
-       "bootmenu_6=power off=poweroff\0" \
-       "bootmenu_delay=-1\0"
-
-#define BOARD_EXTRA_ENV_SETTINGS \
-       "spi_size=0x400000\0" \
-       "boot_block_size_r=0x200000\0" \
-       "boot_block_size=0x1000\0" \
-       "bootloader_file=u-boot-dtb-tegra.bin\0" \
-       "button_cmd_0_name=Volume Down\0" \
-       "button_cmd_0=bootmenu\0" \
-       "button_cmd_1_name=Lid sensor\0" \
-       "button_cmd_1=poweroff\0" \
-       "partitions=name=emmc,start=0,size=-,uuid=${uuid_gpt_rootfs}\0" \
-       TRANSFORMER_BOOTMENU
-
-#endif /* __CONFIG_H */
index ca1e70caa71928bb3d55813ff08e89aaa3050af3..6a3d9b24036b088e9634b8618cac24d96384b6c6 100644 (file)
@@ -11,7 +11,9 @@
 #define __CONFIG_H
 
 #include "tegra20-common.h"
-#include "transformer-common.h"
+
+/* High-level configuration options */
+#define CFG_TEGRA_BOARD_STRING         "ASUS Transformer"
 
 /* Board-specific serial config */
 #define CFG_SYS_NS16550_COM1           NV_PA_APB_UARTD_BASE
index d2a16f12c183566a3ee9ffcdeed96ce5d6496a38..792b958a3026bec9532fab7b1cd90a34c2f68da5 100644 (file)
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
-#include <linux/sizes.h>
-
 #include "tegra30-common.h"
-#include "transformer-common.h"
+
+/* High-level configuration options */
+#define CFG_TEGRA_BOARD_STRING         "ASUS Transformer"
 
 /* Board-specific serial config */
 #define CFG_SYS_NS16550_COM1           NV_PA_APB_UARTA_BASE
index 78a201286117767ec83101c902ad0263e2028f99..c152af9b7e27b6439eb52193cea1ccc64d94e495 100644 (file)
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
-#include <linux/sizes.h>
-
 #include "tegra30-common.h"
 
 /* High-level configuration options */
 #define CFG_TEGRA_BOARD_STRING         "LG X3 Board"
 
-#define X3_FLASH_UBOOT \
-       "flash_uboot=echo Preparing RAM;" \
-               "mw ${kernel_addr_r} 0 ${boot_block_size_r};" \
-               "mw ${ramdisk_addr_r} 0 ${boot_block_size_r};" \
-               "echo Reading BCT;" \
-               "mmc dev 0 1;" \
-               "mmc read ${kernel_addr_r} 0 ${boot_block_size};" \
-               "echo Reading bootloader;" \
-               "if load mmc 0:1 ${ramdisk_addr_r} ${bootloader_file};" \
-               "then echo Calculating bootloader size;" \
-                       "size mmc 0:1 ${bootloader_file};" \
-                       "ebtupdate ${kernel_addr_r} ${ramdisk_addr_r} ${filesize};" \
-                       "echo Writing bootloader to eMMC;" \
-                       "mmc dev 0 1;" \
-                       "mmc write ${kernel_addr_r} 0 ${boot_block_size};" \
-                       "mmc dev 0 2;" \
-                       "mmc write ${ramdisk_addr_r} 0 ${boot_block_size};" \
-                       "echo Bootloader written successfully;" \
-                       "pause 'Press ANY key to reboot device...'; reset;" \
-               "else echo Reading bootloader failed;" \
-                       "pause 'Press ANY key to return to bootmenu...'; bootmenu; fi\0"
-
-#define X3_BOOTMENU \
-       X3_FLASH_UBOOT \
-       "bootmenu_0=mount internal storage=usb start && ums 0 mmc 0; bootmenu\0" \
-       "bootmenu_1=mount external storage=usb start && ums 0 mmc 1; bootmenu\0" \
-       "bootmenu_2=fastboot=echo Starting Fastboot protocol ...; fastboot usb 0; bootmenu\0" \
-       "bootmenu_3=update bootloader=run flash_uboot\0" \
-       "bootmenu_4=reboot RCM=enterrcm\0" \
-       "bootmenu_5=reboot=reset\0" \
-       "bootmenu_6=power off=poweroff\0" \
-       "bootmenu_delay=-1\0"
-
-#define BOARD_EXTRA_ENV_SETTINGS \
-       "boot_block_size_r=0x200000\0" \
-       "boot_block_size=0x1000\0" \
-       "bootloader_file=u-boot-dtb-tegra.bin\0" \
-       "button_cmd_0_name=Volume Down\0" \
-       "button_cmd_0=bootmenu\0" \
-       "partitions=name=emmc,start=0,size=-,uuid=${uuid_gpt_rootfs}\0" \
-       X3_BOOTMENU
-
 /* Board-specific serial config */
 #define CFG_SYS_NS16550_COM1           NV_PA_APB_UARTD_BASE
 
diff --git a/include/env/nvidia/prod_upd.env b/include/env/nvidia/prod_upd.env
new file mode 100644 (file)
index 0000000..f4e3819
--- /dev/null
@@ -0,0 +1,60 @@
+boot_block_size_r=0x200000
+boot_block_size=0x1000
+bootloader_file=u-boot-dtb-tegra.bin
+spi_size=0x400000
+boot_dev=0
+
+flash_uboot=echo Preparing RAM;
+       mw ${kernel_addr_r} 0 ${boot_block_size_r};
+               mw ${ramdisk_addr_r} 0 ${boot_block_size_r};
+               echo Reading BCT;
+               mmc dev 0 1;
+               mmc read ${kernel_addr_r} 0 ${boot_block_size};
+               echo Reading bootloader;
+               if load mmc ${boot_dev}:1 ${ramdisk_addr_r} ${bootloader_file};
+               then echo Calculating bootloader size;
+                       size mmc ${boot_dev}:1 ${bootloader_file};
+                       ebtupdate ${kernel_addr_r} ${ramdisk_addr_r} ${filesize};
+                       echo Writing bootloader to eMMC;
+                       mmc dev 0 1;
+                       mmc write ${kernel_addr_r} 0 ${boot_block_size};
+                       mmc dev 0 2;
+                       mmc write ${ramdisk_addr_r} 0 ${boot_block_size};
+                       echo Bootloader written successfully;
+                       pause 'Press ANY key to reboot device...'; reset;
+               else echo Reading bootloader failed;
+                       pause 'Press ANY key to return to bootmenu...'; bootmenu; fi
+
+update_spi=sf probe 0:1;
+       echo Dumping current SPI flash content ...;
+       sf read ${kernel_addr_r} 0x0 ${spi_size};
+       if fatwrite mmc 1:1 ${kernel_addr_r} spi-flash-backup.bin ${spi_size};
+       then echo SPI flash content was successfully written into spi-flash-backup.bin;
+               echo Reading SPI flash binary;
+               if load mmc 1:1 ${kernel_addr_r} repart-block.bin;
+               then echo Writing bootloader into SPI flash;
+                       sf probe 0:1;
+                       sf update ${kernel_addr_r} 0x0 ${spi_size};
+                       echo Bootloader SUCCESSFULLY written into SPI flash;
+                       pause 'Press ANY key to reboot...'; reset;
+               else echo Preparing RAM;
+                       mw ${kernel_addr_r} 0 ${boot_block_size_r};
+                       mw ${ramdisk_addr_r} 0 ${boot_block_size_r};
+                       echo Reading BCT;
+                       sf read ${kernel_addr_r} 0x0 ${boot_block_size_r};
+                       echo Reading bootloader;
+                       if load mmc 1:1 ${ramdisk_addr_r} ${bootloader_file};
+                       then echo Calculating bootloader size;
+                               size mmc 1:1 ${bootloader_file};
+                               ebtupdate ${kernel_addr_r} ${ramdisk_addr_r} ${filesize};
+                               echo Writing bootloader into SPI flash;
+                               sf probe 0:1;
+                               sf update ${kernel_addr_r} 0x0 ${boot_block_size_r};
+                               sf update ${ramdisk_addr_r} ${boot_block_size_r} ${boot_block_size_r};
+                               echo Bootloader written SUCCESSFULLY;
+                               pause 'Press ANY key to reboot...'; reset;
+                       else echo Reading bootloader failed;
+                               pause 'Press ANY key to reboot...'; reset; fi;
+               fi;
+       else echo SPI flash backup FAILED! Aborting ...;
+               pause 'Press ANY key to reboot...'; reset; fi