board: tegra: convert boards to text env
cover board: tegra: convert boards to text env
Move env stuff into dedicated files in boards (1st stage).
U-Boot CI passed, boards I own work fine, tests are welcomed.
Svyatoslav Ryhel (1):
board: tegra: convert tegra-based boards to text env
board/asus/grouper/grouper.env | 15 +++ .../asus/transformer-t20/transformer-t20.env | 16 ++++ .../transformer-t30/configs/tf600t.config | 1 + board/asus/transformer-t30/tf600t.env | 16 ++++ .../asus/transformer-t30/transformer-t30.env | 16 ++++ board/htc/endeavoru/endeavoru.env | 13 +++ .../ideapad-yoga-11/ideapad-yoga-11.env | 16 ++++ board/lg/x3-t30/configs/p880.config | 1 + board/lg/x3-t30/configs/p895.config | 1 + board/lg/x3-t30/p880.env | 14 +++ board/lg/x3-t30/p895.env | 13 +++ board/microsoft/surface-rt/surface-rt.env | 14 +++ board/nvidia/cardhu/cardhu.env | 2 + board/nvidia/p2771-0000/p2771-0000.env | 22 +++++ board/nvidia/p3450-0000/p3450-0000.env | 7 ++ board/toradex/apalis-tk1/apalis_tk1.env | 45 +++++++++ board/toradex/apalis_t30/apalis_t30.env | 9 ++ board/toradex/colibri_t20/colibri_t20.env | 3 + board/toradex/colibri_t30/colibri_t30.env | 9 ++ board/wexler/qc750/qc750.env | 14 +++ configs/apalis-tk1_defconfig | 1 + configs/apalis_t30_defconfig | 1 + configs/cardhu_defconfig | 1 + configs/colibri_t20_defconfig | 1 + configs/colibri_t30_defconfig | 1 + configs/endeavoru_defconfig | 1 + configs/grouper_common_defconfig | 1 + configs/ideapad-yoga-11_defconfig | 1 + configs/p2771-0000-000_defconfig | 1 + configs/p3450-0000_defconfig | 1 + configs/qc750_defconfig | 1 + configs/surface-rt_defconfig | 1 + configs/transformer_t20_defconfig | 1 + configs/transformer_t30_defconfig | 1 + include/configs/apalis-tk1.h | 58 ------------ include/configs/apalis_t30.h | 12 --- include/configs/cardhu.h | 4 - include/configs/colibri_t20.h | 11 --- include/configs/colibri_t30.h | 12 --- include/configs/endeavoru.h | 43 --------- include/configs/grouper.h | 45 --------- include/configs/ideapad-yoga-11.h | 58 ------------ include/configs/p2771-0000.h | 20 ---- include/configs/p3450-0000.h | 13 --- include/configs/qc750.h | 42 --------- include/configs/surface-rt.h | 18 ---- include/configs/transformer-common.h | 91 ------------------- include/configs/transformer-t20.h | 4 +- include/configs/transformer-t30.h | 6 +- include/configs/x3-t30.h | 44 --------- include/env/nvidia/prod_upd.env | 59 ++++++++++++ 51 files changed, 326 insertions(+), 475 deletions(-) create mode 100644 board/asus/grouper/grouper.env create mode 100644 board/asus/transformer-t20/transformer-t20.env create mode 100644 board/asus/transformer-t30/tf600t.env create mode 100644 board/asus/transformer-t30/transformer-t30.env create mode 100644 board/htc/endeavoru/endeavoru.env create mode 100644 board/lenovo/ideapad-yoga-11/ideapad-yoga-11.env create mode 100644 board/lg/x3-t30/p880.env create mode 100644 board/lg/x3-t30/p895.env create mode 100644 board/microsoft/surface-rt/surface-rt.env create mode 100644 board/nvidia/cardhu/cardhu.env create mode 100644 board/nvidia/p2771-0000/p2771-0000.env create mode 100644 board/nvidia/p3450-0000/p3450-0000.env create mode 100644 board/toradex/apalis-tk1/apalis_tk1.env create mode 100644 board/toradex/apalis_t30/apalis_t30.env create mode 100644 board/toradex/colibri_t20/colibri_t20.env create mode 100644 board/toradex/colibri_t30/colibri_t30.env create mode 100644 board/wexler/qc750/qc750.env delete mode 100644 include/configs/transformer-common.h create mode 100644 include/env/nvidia/prod_upd.env
Signature · 1 line
2.43.0
PATCH 1/1 board: tegra: convert tegra-based boards to text env
Convert boards to use text based env. This is the first stage of conversion, common inclusions should be converted next.
--- board/asus/grouper/grouper.env | 15 +++ .../asus/transformer-t20/transformer-t20.env | 16 ++++ .../transformer-t30/configs/tf600t.config | 1 + board/asus/transformer-t30/tf600t.env | 16 ++++ .../asus/transformer-t30/transformer-t30.env | 16 ++++ board/htc/endeavoru/endeavoru.env | 13 +++ .../ideapad-yoga-11/ideapad-yoga-11.env | 16 ++++ board/lg/x3-t30/configs/p880.config | 1 + board/lg/x3-t30/configs/p895.config | 1 + board/lg/x3-t30/p880.env | 14 +++ board/lg/x3-t30/p895.env | 13 +++ board/microsoft/surface-rt/surface-rt.env | 14 +++ board/nvidia/cardhu/cardhu.env | 2 + board/nvidia/p2771-0000/p2771-0000.env | 22 +++++ board/nvidia/p3450-0000/p3450-0000.env | 7 ++ board/toradex/apalis-tk1/apalis_tk1.env | 45 +++++++++ board/toradex/apalis_t30/apalis_t30.env | 9 ++ board/toradex/colibri_t20/colibri_t20.env | 3 + board/toradex/colibri_t30/colibri_t30.env | 9 ++ board/wexler/qc750/qc750.env | 14 +++ configs/apalis-tk1_defconfig | 1 + configs/apalis_t30_defconfig | 1 + configs/cardhu_defconfig | 1 + configs/colibri_t20_defconfig | 1 + configs/colibri_t30_defconfig | 1 + configs/endeavoru_defconfig | 1 + configs/grouper_common_defconfig | 1 + configs/ideapad-yoga-11_defconfig | 1 + configs/p2771-0000-000_defconfig | 1 + configs/p3450-0000_defconfig | 1 + configs/qc750_defconfig | 1 + configs/surface-rt_defconfig | 1 + configs/transformer_t20_defconfig | 1 + configs/transformer_t30_defconfig | 1 + include/configs/apalis-tk1.h | 58 ------------ include/configs/apalis_t30.h | 12 --- include/configs/cardhu.h | 4 - include/configs/colibri_t20.h | 11 --- include/configs/colibri_t30.h | 12 --- include/configs/endeavoru.h | 43 --------- include/configs/grouper.h | 45 --------- include/configs/ideapad-yoga-11.h | 58 ------------ include/configs/p2771-0000.h | 20 ---- include/configs/p3450-0000.h | 13 --- include/configs/qc750.h | 42 --------- include/configs/surface-rt.h | 18 ---- include/configs/transformer-common.h | 91 ------------------- include/configs/transformer-t20.h | 4 +- include/configs/transformer-t30.h | 6 +- include/configs/x3-t30.h | 44 --------- include/env/nvidia/prod_upd.env | 59 ++++++++++++ 51 files changed, 326 insertions(+), 475 deletions(-) create mode 100644 board/asus/grouper/grouper.env create mode 100644 board/asus/transformer-t20/transformer-t20.env create mode 100644 board/asus/transformer-t30/tf600t.env create mode 100644 board/asus/transformer-t30/transformer-t30.env create mode 100644 board/htc/endeavoru/endeavoru.env create mode 100644 board/lenovo/ideapad-yoga-11/ideapad-yoga-11.env create mode 100644 board/lg/x3-t30/p880.env create mode 100644 board/lg/x3-t30/p895.env create mode 100644 board/microsoft/surface-rt/surface-rt.env create mode 100644 board/nvidia/cardhu/cardhu.env create mode 100644 board/nvidia/p2771-0000/p2771-0000.env create mode 100644 board/nvidia/p3450-0000/p3450-0000.env create mode 100644 board/toradex/apalis-tk1/apalis_tk1.env create mode 100644 board/toradex/apalis_t30/apalis_t30.env create mode 100644 board/toradex/colibri_t20/colibri_t20.env create mode 100644 board/toradex/colibri_t30/colibri_t30.env create mode 100644 board/wexler/qc750/qc750.env delete mode 100644 include/configs/transformer-common.h create mode 100644 include/env/nvidia/prod_upd.env
board/asus/grouper/grouper.env new file +15 -0
@@ -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
board/asus/transformer-t20/transformer-t20.env new file +16 -0
@@ -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 flash_uboot +bootmenu_4=reboot RCM=enterrcm +bootmenu_5=reboot=reset +bootmenu_6=power off=poweroff +bootmenu_delay=-1
board/asus/transformer-t30/configs/tf600t.config +1 -0
@@ -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
board/asus/transformer-t30/tf600t.env new file +16 -0
@@ -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
board/asus/transformer-t30/transformer-t30.env new file +16 -0
@@ -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 flash_uboot +bootmenu_4=reboot RCM=enterrcm +bootmenu_5=reboot=reset +bootmenu_6=power off=poweroff +bootmenu_delay=-1
board/htc/endeavoru/endeavoru.env new file +13 -0
@@ -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
board/lenovo/ideapad-yoga-11/ideapad-yoga-11.env new file +16 -0
@@ -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
board/lg/x3-t30/configs/p880.config +1 -0
@@ -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
board/lg/x3-t30/configs/p895.config +1 -0
@@ -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
board/lg/x3-t30/p880.env new file +14 -0
@@ -0,0 +1,14 @@ +#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=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
board/lg/x3-t30/p895.env new file +13 -0
@@ -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
board/microsoft/surface-rt/surface-rt.env new file +14 -0
@@ -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
board/nvidia/cardhu/cardhu.env new file +2 -0
@@ -0,0 +1,2 @@ +board_name=cardhu-a04 +fdtfile=tegra30-cardhu-a04.dtb
board/nvidia/p2771-0000/p2771-0000.env new file +22 -0
@@ -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
board/nvidia/p3450-0000/p3450-0000.env new file +7 -0
@@ -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
board/toradex/apalis-tk1/apalis_tk1.env new file +45 -0
45 lines not on this page · raw message
board/toradex/apalis_t30/apalis_t30.env new file +9 -0
@@ -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
board/toradex/colibri_t20/colibri_t20.env new file +3 -0
@@ -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}
board/toradex/colibri_t30/colibri_t30.env new file +9 -0
@@ -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
board/wexler/qc750/qc750.env new file +14 -0
@@ -0,0 +1,14 @@ +#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=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
configs/apalis-tk1_defconfig +1 -0
@@ -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"
configs/apalis_t30_defconfig +1 -0
@@ -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"
configs/cardhu_defconfig +1 -0
@@ -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
configs/colibri_t20_defconfig +1 -0
@@ -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"
configs/colibri_t30_defconfig +1 -0
@@ -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"
configs/endeavoru_defconfig +1 -0
@@ -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"
configs/grouper_common_defconfig +1 -0
@@ -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"
configs/ideapad-yoga-11_defconfig +1 -0
@@ -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"
configs/p2771-0000-000_defconfig +1 -0
@@ -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"
configs/p3450-0000_defconfig +1 -0
@@ -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
configs/qc750_defconfig +1 -0
@@ -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"
configs/surface-rt_defconfig +1 -0
@@ -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"
configs/transformer_t20_defconfig +1 -0
@@ -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"
configs/transformer_t30_defconfig +1 -0
@@ -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"
include/configs/apalis-tk1.h +0 -58
64 lines not on this page · raw message
include/configs/apalis_t30.h +0 -12
@@ -22,18 +22,6 @@*/ #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 */
include/configs/cardhu.h +0 -4
@@ -13,10 +13,6 @@/* 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
include/configs/colibri_t20.h +0 -11
@@ -13,17 +13,6 @@/* 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 */
include/configs/colibri_t30.h +0 -12
@@ -23,18 +23,6 @@*/ #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 */
include/configs/endeavoru.h +0 -43
54 lines not on this page · raw message
include/configs/grouper.h +0 -45
56 lines not on this page · raw message
include/configs/ideapad-yoga-11.h +0 -58
64 lines not on this page · raw message
include/configs/p2771-0000.h +0 -20
@@ -15,26 +15,6 @@/* 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
include/configs/p3450-0000.h +0 -13
@@ -15,19 +15,6 @@/* 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"
include/configs/qc750.h +0 -42
48 lines not on this page · raw message
include/configs/surface-rt.h +0 -18
@@ -13,24 +13,6 @@/* 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
include/configs/transformer-common.h deleted +0 -91
91 lines not on this page · raw message
include/configs/transformer-t20.h +3 -1
@@ -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
include/configs/transformer-t30.h +3 -3
@@ -10,10 +10,10 @@#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
include/configs/x3-t30.h +0 -44
55 lines not on this page · raw message
include/env/nvidia/prod_upd.env new file +59 -0
59 lines not on this page · raw message
Signature · 1 line
2.43.0
Re: [PATCH v1 1/1] board: tegra: convert tegra-based boards to text env
Hello Clamor,
Quoted 30 lines · Svyatoslav Ryhel
Convert boards to use text based env. This is the first stage of conversion, common inclusions should be converted next.
Signed-off-by Svyatoslav Ryhel <[email protected]>--- board/asus/grouper/grouper.env | 15 +++ .../asus/transformer-t20/transformer-t20.env | 16 ++++ .../transformer-t30/configs/tf600t.config | 1 + board/asus/transformer-t30/tf600t.env | 16 ++++ .../asus/transformer-t30/transformer-t30.env | 16 ++++ board/htc/endeavoru/endeavoru.env | 13 +++ .../ideapad-yoga-11/ideapad-yoga-11.env | 16 ++++ board/lg/x3-t30/configs/p880.config | 1 + board/lg/x3-t30/configs/p895.config | 1 + board/lg/x3-t30/p880.env | 14 +++ board/lg/x3-t30/p895.env | 13 +++ board/microsoft/surface-rt/surface-rt.env | 14 +++ board/nvidia/cardhu/cardhu.env | 2 + board/nvidia/p2771-0000/p2771-0000.env | 22 +++++ board/nvidia/p3450-0000/p3450-0000.env | 7 ++ board/toradex/apalis-tk1/apalis_tk1.env | 45 +++++++++ board/toradex/apalis_t30/apalis_t30.env | 9 ++ board/toradex/colibri_t20/colibri_t20.env | 3 + board/toradex/colibri_t30/colibri_t30.env | 9 ++ board/wexler/qc750/qc750.env | 14 +++ configs/apalis-tk1_defconfig | 1 + configs/apalis_t30_defconfig | 1 + configs/cardhu_defconfig | 1 + configs/colibri_t20_defconfig | 1 + configs/colibri_t30_defconfig | 1 +
...
Quoted 51 lines
board/toradex/apalis-tk1/apalis_tk1.env new file +45
-0@@ -0,0 +1,45 @@ +/* + * Custom Distro 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
...
Quoted 12 lines
include/configs/apalis-tk1.h +0
-4@@ -18,64 +18,6 @@#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)
include/configs/apalis-tk1.h line 34
Quoted 10 lines
include/configs/apalis-tk1.h +0
-10-* 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) -
I do recall that to transition to text env file it was required to move from standard boot to distroboot. Did I recall incorrectly?
I commented on apalis-tk1, but from a quick look other boards would have the same issue.
Thanks,
Francesco
Re: [PATCH v1 1/1] board: tegra: convert tegra-based boards to text env
пн, 5 серп. 2024 р. о 08:32 Francesco Dolcini <[email protected]> пише:
Quoted 108 lines
Hello Clamor,
Quoted 30 lines · Svyatoslav Ryhel
Convert boards to use text based env. This is the first stage of conversion, common inclusions should be converted next.
Signed-off-by Svyatoslav Ryhel <[email protected]>--- board/asus/grouper/grouper.env | 15 +++ .../asus/transformer-t20/transformer-t20.env | 16 ++++ .../transformer-t30/configs/tf600t.config | 1 + board/asus/transformer-t30/tf600t.env | 16 ++++ .../asus/transformer-t30/transformer-t30.env | 16 ++++ board/htc/endeavoru/endeavoru.env | 13 +++ .../ideapad-yoga-11/ideapad-yoga-11.env | 16 ++++ board/lg/x3-t30/configs/p880.config | 1 + board/lg/x3-t30/configs/p895.config | 1 + board/lg/x3-t30/p880.env | 14 +++ board/lg/x3-t30/p895.env | 13 +++ board/microsoft/surface-rt/surface-rt.env | 14 +++ board/nvidia/cardhu/cardhu.env | 2 + board/nvidia/p2771-0000/p2771-0000.env | 22 +++++ board/nvidia/p3450-0000/p3450-0000.env | 7 ++ board/toradex/apalis-tk1/apalis_tk1.env | 45 +++++++++ board/toradex/apalis_t30/apalis_t30.env | 9 ++ board/toradex/colibri_t20/colibri_t20.env | 3 + board/toradex/colibri_t30/colibri_t30.env | 9 ++ board/wexler/qc750/qc750.env | 14 +++ configs/apalis-tk1_defconfig | 1 + configs/apalis_t30_defconfig | 1 + configs/cardhu_defconfig | 1 + configs/colibri_t20_defconfig | 1 + configs/colibri_t30_defconfig | 1 +...
Quoted 51 lines
board/toradex/apalis-tk1/apalis_tk1.env new file +45
-0@@ -0,0 +1,45 @@ +/* + * Custom Distro 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...
Quoted 17 lines
include/configs/apalis-tk1.h +0
-9@@ -18,64 +18,6 @@#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) \
Quoted 8 lines
include/configs/apalis-tk1.h line 34
Quoted 5 lines
include/configs/apalis-tk1.h +0
-5- func(MMC, mmc, 0) \ - func(USB, usb, 0) \ - func(PXE, pxe, na) \ -func (DHCP , dhcp, na) -I do recall that to transition to text env file it was required to move from standard boot to distroboot. Did I recall incorrectly?
Are you 100% sure? Have you tried?
Quoted 2 lines
I commented on apalis-tk1, but from a quick look other boards would have the same issue.
Maybe it is worth looking deeper?
Quoted 3 lines
Thanks,
Francesco
Re: [PATCH v1 1/1] board: tegra: convert tegra-based boards to text env
Quoted 115 lines · Svyatoslav Ryhel
пн, 5 серп. 2024 р. о 08:32 Francesco Dolcini <[email protected]> пише:
Quoted 105 lines · Svyatoslav Ryhel
Quoted 30 lines
Convert boards to use text based env. This is the first stage of conversion, common inclusions should be converted next.
Signed-off-by Svyatoslav Ryhel <[email protected]>--- board/asus/grouper/grouper.env | 15 +++ .../asus/transformer-t20/transformer-t20.env | 16 ++++ .../transformer-t30/configs/tf600t.config | 1 + board/asus/transformer-t30/tf600t.env | 16 ++++ .../asus/transformer-t30/transformer-t30.env | 16 ++++ board/htc/endeavoru/endeavoru.env | 13 +++ .../ideapad-yoga-11/ideapad-yoga-11.env | 16 ++++ board/lg/x3-t30/configs/p880.config | 1 + board/lg/x3-t30/configs/p895.config | 1 + board/lg/x3-t30/p880.env | 14 +++ board/lg/x3-t30/p895.env | 13 +++ board/microsoft/surface-rt/surface-rt.env | 14 +++ board/nvidia/cardhu/cardhu.env | 2 + board/nvidia/p2771-0000/p2771-0000.env | 22 +++++ board/nvidia/p3450-0000/p3450-0000.env | 7 ++ board/toradex/apalis-tk1/apalis_tk1.env | 45 +++++++++ board/toradex/apalis_t30/apalis_t30.env | 9 ++ board/toradex/colibri_t20/colibri_t20.env | 3 + board/toradex/colibri_t30/colibri_t30.env | 9 ++ board/wexler/qc750/qc750.env | 14 +++ configs/apalis-tk1_defconfig | 1 + configs/apalis_t30_defconfig | 1 + configs/cardhu_defconfig | 1 + configs/colibri_t20_defconfig | 1 + configs/colibri_t30_defconfig | 1 +...
Quoted 51 lines
board/toradex/apalis-tk1/apalis_tk1.env new file +45
-0@@ -0,0 +1,45 @@ +/* + * Custom Distro 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...
Quoted 17 lines
include/configs/apalis-tk1.h +0
-9@@ -18,64 +18,6 @@#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) \Quoted 8 lines
include/configs/apalis-tk1.h line 34
Quoted 5 lines
include/configs/apalis-tk1.h +0
-5- func(MMC, mmc, 0) \ - func(USB, usb, 0) \ - func(PXE, pxe, na) \ -func (DHCP , dhcp, na) -I do recall that to transition to text env file it was required to move from standard boot to distroboot. Did I recall incorrectly?
Quoted 1 line
Are you 100% sure? Have you tried?
No, I am not, but Simon in copy knows for sure.
What I am sure is that I mean migrating from distroboot to standard boot, the opposite of what I wrote ...
Francesco
Re: [PATCH v1 1/1] board: tegra: convert tegra-based boards to text env
пн, 5 серп. 2024 р. о 10:05 Francesco Dolcini <[email protected]> пише:
Quoted 117 lines · Svyatoslav Ryhel
Quoted 115 lines
пн, 5 серп. 2024 р. о 08:32 Francesco Dolcini <[email protected]> пише:
Quoted 113 lines · Svyatoslav Ryhel
Quoted 30 lines
Convert boards to use text based env. This is the first stage of conversion, common inclusions should be converted next.
Signed-off-by Svyatoslav Ryhel <[email protected]>--- board/asus/grouper/grouper.env | 15 +++ .../asus/transformer-t20/transformer-t20.env | 16 ++++ .../transformer-t30/configs/tf600t.config | 1 + board/asus/transformer-t30/tf600t.env | 16 ++++ .../asus/transformer-t30/transformer-t30.env | 16 ++++ board/htc/endeavoru/endeavoru.env | 13 +++ .../ideapad-yoga-11/ideapad-yoga-11.env | 16 ++++ board/lg/x3-t30/configs/p880.config | 1 + board/lg/x3-t30/configs/p895.config | 1 + board/lg/x3-t30/p880.env | 14 +++ board/lg/x3-t30/p895.env | 13 +++ board/microsoft/surface-rt/surface-rt.env | 14 +++ board/nvidia/cardhu/cardhu.env | 2 + board/nvidia/p2771-0000/p2771-0000.env | 22 +++++ board/nvidia/p3450-0000/p3450-0000.env | 7 ++ board/toradex/apalis-tk1/apalis_tk1.env | 45 +++++++++ board/toradex/apalis_t30/apalis_t30.env | 9 ++ board/toradex/colibri_t20/colibri_t20.env | 3 + board/toradex/colibri_t30/colibri_t30.env | 9 ++ board/wexler/qc750/qc750.env | 14 +++ configs/apalis-tk1_defconfig | 1 + configs/apalis_t30_defconfig | 1 + configs/cardhu_defconfig | 1 + configs/colibri_t20_defconfig | 1 + configs/colibri_t30_defconfig | 1 +...
Quoted 51 lines
board/toradex/apalis-tk1/apalis_tk1.env new file +45
-0@@ -0,0 +1,45 @@ +/* + * Custom Distro 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...
Quoted 12 lines
include/configs/apalis-tk1.h +0
-4@@ -18,64 +18,6 @@#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) include/configs/apalis-tk1.h line 34
Quoted 10 lines
include/configs/apalis-tk1.h +0
-10-* 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) -I do recall that to transition to text env file it was required to move from standard boot to distroboot. Did I recall incorrectly?
Quoted 6 lines
Quoted 1 line
Are you 100% sure? Have you tried?
No, I am not, but Simon in copy knows for sure.
What I am sure is that I mean migrating from distroboot to standard boot, the opposite of what I wrote ...
Tegra uses standard boot
Quoted 3 lines
Francesco
Re: [PATCH v1 1/1] board: tegra: convert tegra-based boards to text env
Quoted 118 lines · Svyatoslav Ryhel
пн, 5 серп. 2024 р. о 10:05 Francesco Dolcini <[email protected]> пише:
Quoted 117 lines · Svyatoslav Ryhel
Quoted 115 lines
пн, 5 серп. 2024 р. о 08:32 Francesco Dolcini <[email protected]> пише:
Quoted 113 lines · Svyatoslav Ryhel
Quoted 30 lines
Convert boards to use text based env. This is the first stage of conversion, common inclusions should be converted next.
Signed-off-by Svyatoslav Ryhel <[email protected]>--- board/asus/grouper/grouper.env | 15 +++ .../asus/transformer-t20/transformer-t20.env | 16 ++++ .../transformer-t30/configs/tf600t.config | 1 + board/asus/transformer-t30/tf600t.env | 16 ++++ .../asus/transformer-t30/transformer-t30.env | 16 ++++ board/htc/endeavoru/endeavoru.env | 13 +++ .../ideapad-yoga-11/ideapad-yoga-11.env | 16 ++++ board/lg/x3-t30/configs/p880.config | 1 + board/lg/x3-t30/configs/p895.config | 1 + board/lg/x3-t30/p880.env | 14 +++ board/lg/x3-t30/p895.env | 13 +++ board/microsoft/surface-rt/surface-rt.env | 14 +++ board/nvidia/cardhu/cardhu.env | 2 + board/nvidia/p2771-0000/p2771-0000.env | 22 +++++ board/nvidia/p3450-0000/p3450-0000.env | 7 ++ board/toradex/apalis-tk1/apalis_tk1.env | 45 +++++++++ board/toradex/apalis_t30/apalis_t30.env | 9 ++ board/toradex/colibri_t20/colibri_t20.env | 3 + board/toradex/colibri_t30/colibri_t30.env | 9 ++ board/wexler/qc750/qc750.env | 14 +++ configs/apalis-tk1_defconfig | 1 + configs/apalis_t30_defconfig | 1 + configs/cardhu_defconfig | 1 + configs/colibri_t20_defconfig | 1 + configs/colibri_t30_defconfig | 1 +...
Quoted 51 lines
board/toradex/apalis-tk1/apalis_tk1.env new file +45
-0@@ -0,0 +1,45 @@ +/* + * Custom Distro 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...
Quoted 12 lines
include/configs/apalis-tk1.h +0
-4@@ -18,64 +18,6 @@#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) include/configs/apalis-tk1.h line 34
Quoted 10 lines
include/configs/apalis-tk1.h +0
-10-* 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) -I do recall that to transition to text env file it was required to move from standard boot to distroboot. Did I recall incorrectly?
Quoted 8 lines
Quoted 6 lines
Quoted 1 line
Are you 100% sure? Have you tried?
No, I am not, but Simon in copy knows for sure.
What I am sure is that I mean migrating from distroboot to standard boot, the opposite of what I wrote ...
Tegra uses standard boot
BOOT_TARGET_DEVICES seems distroboot to me.
Francesco
Re: [PATCH v1 1/1] board: tegra: convert tegra-based boards to text env
пн, 5 серп. 2024 р. о 10:08 Francesco Dolcini <[email protected]> пише:
Quoted 122 lines · Svyatoslav Ryhel
Quoted 120 lines
пн, 5 серп. 2024 р. о 10:05 Francesco Dolcini <[email protected]> пише:
Quoted 119 lines · Svyatoslav Ryhel
Quoted 116 lines
пн, 5 серп. 2024 р. о 08:32 Francesco Dolcini <[email protected]> пише:
Quoted 105 lines · Svyatoslav Ryhel
Quoted 30 lines
Convert boards to use text based env. This is the first stage of conversion, common inclusions should be converted next.
Signed-off-by Svyatoslav Ryhel <[email protected]>--- board/asus/grouper/grouper.env | 15 +++ .../asus/transformer-t20/transformer-t20.env | 16 ++++ .../transformer-t30/configs/tf600t.config | 1 + board/asus/transformer-t30/tf600t.env | 16 ++++ .../asus/transformer-t30/transformer-t30.env | 16 ++++ board/htc/endeavoru/endeavoru.env | 13 +++ .../ideapad-yoga-11/ideapad-yoga-11.env | 16 ++++ board/lg/x3-t30/configs/p880.config | 1 + board/lg/x3-t30/configs/p895.config | 1 + board/lg/x3-t30/p880.env | 14 +++ board/lg/x3-t30/p895.env | 13 +++ board/microsoft/surface-rt/surface-rt.env | 14 +++ board/nvidia/cardhu/cardhu.env | 2 + board/nvidia/p2771-0000/p2771-0000.env | 22 +++++ board/nvidia/p3450-0000/p3450-0000.env | 7 ++ board/toradex/apalis-tk1/apalis_tk1.env | 45 +++++++++ board/toradex/apalis_t30/apalis_t30.env | 9 ++ board/toradex/colibri_t20/colibri_t20.env | 3 + board/toradex/colibri_t30/colibri_t30.env | 9 ++ board/wexler/qc750/qc750.env | 14 +++ configs/apalis-tk1_defconfig | 1 + configs/apalis_t30_defconfig | 1 + configs/cardhu_defconfig | 1 + configs/colibri_t20_defconfig | 1 + configs/colibri_t30_defconfig | 1 +...
Quoted 51 lines
board/toradex/apalis-tk1/apalis_tk1.env new file +45
-0@@ -0,0 +1,45 @@ +/* + * Custom Distro 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...
Quoted 17 lines
include/configs/apalis-tk1.h +0
-9@@ -18,64 +18,6 @@#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) \Quoted 8 lines
include/configs/apalis-tk1.h line 34
Quoted 5 lines
include/configs/apalis-tk1.h +0
-5- func(MMC, mmc, 0) \ - func(USB, usb, 0) \ - func(PXE, pxe, na) \ -func (DHCP , dhcp, na) -I do recall that to transition to text env file it was required to move from standard boot to distroboot. Did I recall incorrectly?
Are you 100% sure? Have you tried?
Quoted 9 lines
Quoted 6 lines
Quoted 4 lines
No, I am not, but Simon in copy knows for sure.
What I am sure is that I mean migrating from distroboot to standard boot, the opposite of what I wrote ...
Tegra uses standard boot
BOOT_TARGET_DEVICESseems distroboot to me.
It seems that Tegra switched to standard boot, but Toradex boards were not adjusted.
Quoted 2 lines
Francesco
Re: [PATCH v1 1/1] board: tegra: convert tegra-based boards to text env
In reply to Francesco Dolciniпн, 5 серп. 2024 р. о 10:08 Francesco Dolcini <[email protected]> пише:
Quoted 124 lines · Svyatoslav Ryhel
Quoted 122 lines
пн, 5 серп. 2024 р. о 10:05 Francesco Dolcini <[email protected]> пише:
Quoted 121 lines · Svyatoslav Ryhel
Quoted 115 lines
пн, 5 серп. 2024 р. о 08:32 Francesco Dolcini <[email protected]> пише:
Quoted 105 lines · Svyatoslav Ryhel
Quoted 30 lines
Convert boards to use text based env. This is the first stage of conversion, common inclusions should be converted next.
Signed-off-by Svyatoslav Ryhel <[email protected]>--- board/asus/grouper/grouper.env | 15 +++ .../asus/transformer-t20/transformer-t20.env | 16 ++++ .../transformer-t30/configs/tf600t.config | 1 + board/asus/transformer-t30/tf600t.env | 16 ++++ .../asus/transformer-t30/transformer-t30.env | 16 ++++ board/htc/endeavoru/endeavoru.env | 13 +++ .../ideapad-yoga-11/ideapad-yoga-11.env | 16 ++++ board/lg/x3-t30/configs/p880.config | 1 + board/lg/x3-t30/configs/p895.config | 1 + board/lg/x3-t30/p880.env | 14 +++ board/lg/x3-t30/p895.env | 13 +++ board/microsoft/surface-rt/surface-rt.env | 14 +++ board/nvidia/cardhu/cardhu.env | 2 + board/nvidia/p2771-0000/p2771-0000.env | 22 +++++ board/nvidia/p3450-0000/p3450-0000.env | 7 ++ board/toradex/apalis-tk1/apalis_tk1.env | 45 +++++++++ board/toradex/apalis_t30/apalis_t30.env | 9 ++ board/toradex/colibri_t20/colibri_t20.env | 3 + board/toradex/colibri_t30/colibri_t30.env | 9 ++ board/wexler/qc750/qc750.env | 14 +++ configs/apalis-tk1_defconfig | 1 + configs/apalis_t30_defconfig | 1 + configs/cardhu_defconfig | 1 + configs/colibri_t20_defconfig | 1 + configs/colibri_t30_defconfig | 1 +...
Quoted 51 lines
board/toradex/apalis-tk1/apalis_tk1.env new file +45
-0@@ -0,0 +1,45 @@ +/* + * Custom Distro 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...
Quoted 17 lines
include/configs/apalis-tk1.h +0
-9@@ -18,64 +18,6 @@#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) \Quoted 8 lines
include/configs/apalis-tk1.h line 34
Quoted 5 lines
include/configs/apalis-tk1.h +0
-5- func(MMC, mmc, 0) \ - func(USB, usb, 0) \ - func(PXE, pxe, na) \ -func (DHCP , dhcp, na) -I do recall that to transition to text env file it was required to move from standard boot to distroboot. Did I recall incorrectly?
Quoted 1 line
Are you 100% sure? Have you tried?
No, I am not, but Simon in copy knows for sure.
Quoted 9 lines
Quoted 4 lines
Quoted 2 lines
What I am sure is that I mean migrating from distroboot to standard boot, the opposite of what I wrote ...
Tegra uses standard boot
BOOT_TARGET_DEVICESseems distroboot to me.Francesco
If you own Apalis TK1 board, may you test
CONFIG_BOOTCOMMAND="setenv fdtfile ${soc}-${fdt_module}-${fdt_board}.dtb && bootflow scan"
in defconfig along with this commit. This should fix the device.
Hello Tom,
Quoted 1 line · Svyatoslav Ryhel
Move env stuff into dedicated files in boards (1st stage).
Is there any plan or expectation to move existing boards to text env file? And what about newly added boards?
Francesco
пн, 5 серп. 2024 р. о 08:33 Francesco Dolcini <[email protected]> пише:
Quoted 10 lines
Hello Tom,
Quoted 1 line · Svyatoslav Ryhel
Move env stuff into dedicated files in boards (1st stage).
Is there any plan or expectation to move existing boards to text env file? And what about newly added boards?
Francesco
If Toradex developers want to deal with this on their own, I have no objections and I will load v2 without Toradex boards.
Best regards,
Svyatoslav R.
Hello Svyatoslav,
Quoted 9 lines · Svyatoslav Ryhel
пн, 5 серп. 2024 р. о 08:33 Francesco Dolcini <[email protected]> пише:
Quoted 5 lines · Svyatoslav Ryhel
Quoted 1 line
Move env stuff into dedicated files in boards (1st stage).
Is there any plan or expectation to move existing boards to text env file? And what about newly added boards?
If Toradex developers want to deal with this on their own, I have no objections and I will load v2 without Toradex boards.
I am fine with you doing the change, I asked this to Tom to know what's the plan, not to push back on your change :-)
Francesco
Quoted 7 lines · Francesco Dolcini
Hello Tom,
Quoted 1 line · Svyatoslav Ryhel
Move env stuff into dedicated files in boards (1st stage).
Is there any plan or expectation to move existing boards to text env file? And what about newly added boards?
Long term, we would like to eliminate include/configs/<board.h> and so yes, conversion to plain text environment is needed for that to happen. Is every use case 1:1 supported? No as for example, boards need to move from "distro boot" (which uses tons of cpp macros that we just can't do in plain text env) to "standard boot" and while no functionality is intended to change with that, it's a conversion that requires the developer to check the result and verify it does what's expected in that case (boards that don't use "distro boot" for example can be if not mechanically converted, at least u-boot-initial-env compared before/after and verified to match).
Signature · 1 line
Tom