author | Xindong Xu <xindong.xu@amlogic.com> | 2019-07-16 04:45:50 (GMT) |
---|---|---|
committer | Xindong Xu <xindong.xu@amlogic.com> | 2019-07-17 05:19:43 (GMT) |
commit | e3ea46e6025ad7ba93878c2075357d7454364a95 (patch) | |
tree | 7d5e30b394ecea2a5a7fe05ba216c87b6ad83a3e | |
parent | 3588d2dc5bcf7902a56cc7a8b28cf95ec1321d1c (diff) | |
download | uboot-e3ea46e6025ad7ba93878c2075357d7454364a95.zip uboot-e3ea46e6025ad7ba93878c2075357d7454364a95.tar.gz uboot-e3ea46e6025ad7ba93878c2075357d7454364a95.tar.bz2 |
fastboot: add bootloader_version to kernel cmdline [1/1]
PD#SWPL-11345
Problem:
fastbootd need to get bootloader_version
Solution:
add bootloader_version to kernel cmdline
Verify:
franklin
Change-Id: I92798590a13007896b158dce6bf227a58c9cd17d
Signed-off-by: Xindong Xu <xindong.xu@amlogic.com>
72 files changed, 125 insertions, 37 deletions
diff --git a/board/amlogic/axg_s400_v1/axg_s400_v1.c b/board/amlogic/axg_s400_v1/axg_s400_v1.c index d7aaaa6..f7a7339 100644 --- a/board/amlogic/axg_s400_v1/axg_s400_v1.c +++ b/board/amlogic/axg_s400_v1/axg_s400_v1.c @@ -763,6 +763,7 @@ const char * const _env_args_reserve_[] = "firstboot", "lock", "upgrade_step", + "bootloader_version", NULL//Keep NULL be last to tell END }; diff --git a/board/amlogic/axg_s400_v1_gva/axg_s400_v1_gva.c b/board/amlogic/axg_s400_v1_gva/axg_s400_v1_gva.c index f136e28..615d3cf 100644 --- a/board/amlogic/axg_s400_v1_gva/axg_s400_v1_gva.c +++ b/board/amlogic/axg_s400_v1_gva/axg_s400_v1_gva.c @@ -722,6 +722,7 @@ const char * const _env_args_reserve_[] = "firstboot", "lock", "upgrade_step", + "bootloader_version", NULL//Keep NULL be last to tell END }; diff --git a/board/amlogic/axg_s420_v1/axg_s420_v1.c b/board/amlogic/axg_s420_v1/axg_s420_v1.c index 65f6a9d..bc91add 100644 --- a/board/amlogic/axg_s420_v1/axg_s420_v1.c +++ b/board/amlogic/axg_s420_v1/axg_s420_v1.c @@ -668,6 +668,7 @@ const char * const _env_args_reserve_[] = "firstboot", "lock", "upgrade_step", + "bootloader_version", NULL//Keep NULL be last to tell END }; diff --git a/board/amlogic/axg_s420_v1_gva/axg_s420_v1_gva.c b/board/amlogic/axg_s420_v1_gva/axg_s420_v1_gva.c index 27e7f12..c5ba685 100644 --- a/board/amlogic/axg_s420_v1_gva/axg_s420_v1_gva.c +++ b/board/amlogic/axg_s420_v1_gva/axg_s420_v1_gva.c @@ -590,6 +590,7 @@ const char * const _env_args_reserve_[] = "firstboot", "lock", "upgrade_step", + "bootloader_version", NULL//Keep NULL be last to tell END }; diff --git a/board/amlogic/configs/axg_s400_v1.h b/board/amlogic/configs/axg_s400_v1.h index eb350b6..82e45d7 100644 --- a/board/amlogic/configs/axg_s400_v1.h +++ b/board/amlogic/configs/axg_s400_v1.h @@ -138,8 +138,9 @@ "else fi;"\ "\0"\ "storeargs="\ + "get_bootloaderversion;" \ "setenv bootargs ${initargs} ${fs_type} reboot_mode_android=${reboot_mode_android} logo=${display_layer},loaded,${fb_addr} vout=${outputmode},enable panel_type=${panel_type} osd_reverse=${osd_reverse} video_reverse=${video_reverse} androidboot.selinux=${EnableSelinux} androidboot.firstboot=${firstboot} jtag=${jtag}; "\ - "setenv bootargs ${bootargs} androidboot.hardware=amlogic;"\ + "setenv bootargs ${bootargs} androidboot.hardware=amlogic androidboot.bootloader=${bootloader_version} androidboot.build.expect.baseband=N/A;"\ "run cmdline_keys;"\ "\0"\ "switch_bootmode="\ diff --git a/board/amlogic/configs/axg_s400_v1_gva.h b/board/amlogic/configs/axg_s400_v1_gva.h index 3440b49..21785b3 100644 --- a/board/amlogic/configs/axg_s400_v1_gva.h +++ b/board/amlogic/configs/axg_s400_v1_gva.h @@ -138,8 +138,9 @@ "else fi;"\ "\0"\ "storeargs="\ + "get_bootloaderversion;" \ "setenv bootargs ${initargs} ${fs_type} reboot_mode_android=${reboot_mode_android} logo=${display_layer},loaded,${fb_addr} vout=${outputmode},enable panel_type=${panel_type} osd_reverse=${osd_reverse} video_reverse=${video_reverse} androidboot.selinux=${EnableSelinux} androidboot.firstboot=${firstboot} jtag=${jtag}; "\ - "setenv bootargs ${bootargs} androidboot.hardware=amlogic;"\ + "setenv bootargs ${bootargs} androidboot.hardware=amlogic androidboot.bootloader=${bootloader_version} androidboot.build.expect.baseband=N/A;"\ "run cmdline_keys;"\ "\0"\ "switch_bootmode="\ diff --git a/board/amlogic/configs/axg_s420_v1.h b/board/amlogic/configs/axg_s420_v1.h index 978660f..bd1d93f 100644 --- a/board/amlogic/configs/axg_s420_v1.h +++ b/board/amlogic/configs/axg_s420_v1.h @@ -118,8 +118,9 @@ "else fi;"\ "\0"\ "storeargs="\ + "get_bootloaderversion;" \ "setenv bootargs ${initargs} ${fs_type} logo=${display_layer},loaded,androidboot.selinux=${EnableSelinux} androidboot.firstboot=${firstboot} jtag=${jtag}; "\ - "setenv bootargs ${bootargs} androidboot.hardware=amlogic;"\ + "setenv bootargs ${bootargs} androidboot.hardware=amlogic androidboot.bootloader=${bootloader_version} androidboot.build.expect.baseband=N/A;"\ "run cmdline_keys;"\ "\0"\ "switch_bootmode="\ diff --git a/board/amlogic/configs/axg_s420_v1_gva.h b/board/amlogic/configs/axg_s420_v1_gva.h index a8195d2..51e2ecb 100644 --- a/board/amlogic/configs/axg_s420_v1_gva.h +++ b/board/amlogic/configs/axg_s420_v1_gva.h @@ -113,8 +113,9 @@ "else fi;"\ "\0"\ "storeargs="\ + "get_bootloaderversion;" \ "setenv bootargs ${initargs} logo=${display_layer},loaded,androidboot.selinux=${EnableSelinux} androidboot.firstboot=${firstboot} jtag=${jtag}; "\ - "setenv bootargs ${bootargs} androidboot.hardware=amlogic;"\ + "setenv bootargs ${bootargs} androidboot.hardware=amlogic androidboot.bootloader=${bootloader_version} androidboot.build.expect.baseband=N/A;"\ "setenv bootargs ${bootargs} slot_suffix=${active_slot};"\ "run cmdline_keys;"\ "\0"\ diff --git a/board/amlogic/configs/axg_skt_v1.h b/board/amlogic/configs/axg_skt_v1.h index 9bc636a..138c941 100644 --- a/board/amlogic/configs/axg_skt_v1.h +++ b/board/amlogic/configs/axg_skt_v1.h @@ -119,8 +119,9 @@ "else fi;"\ "\0"\ "storeargs="\ + "get_bootloaderversion;" \ "setenv bootargs ${initargs} ${fs_type} logo=${display_layer},loaded,${fb_addr} vout=${outputmode},enable panel_type=${panel_type} osd_reverse=${osd_reverse} video_reverse=${video_reverse} androidboot.selinux=${EnableSelinux} androidboot.firstboot=${firstboot} jtag=${jtag} i2c_auto_test=${i2c_auto_test}; "\ - "setenv bootargs ${bootargs} androidboot.hardware=amlogic;"\ + "setenv bootargs ${bootargs} androidboot.hardware=amlogic androidboot.bootloader=${bootloader_version} androidboot.build.expect.baseband=N/A;"\ "run cmdline_keys;"\ "\0"\ "switch_bootmode="\ diff --git a/board/amlogic/configs/g12a_deadpool_v1.h b/board/amlogic/configs/g12a_deadpool_v1.h index 1549220..0cd2885 100644 --- a/board/amlogic/configs/g12a_deadpool_v1.h +++ b/board/amlogic/configs/g12a_deadpool_v1.h @@ -128,8 +128,9 @@ "else fi;"\ "\0"\ "storeargs="\ + "get_bootloaderversion;" \ "setenv bootargs ${initargs} ${fs_type} reboot_mode_android=${reboot_mode_android} logo=${display_layer},loaded,${fb_addr} vout=${outputmode},enable panel_type=${panel_type} hdmitx=${cecconfig},${colorattribute} hdmimode=${hdmimode} frac_rate_policy=${frac_rate_policy} cvbsmode=${cvbsmode} osd_reverse=${osd_reverse} video_reverse=${video_reverse} androidboot.selinux=${EnableSelinux} androidboot.firstboot=${firstboot} jtag=${jtag}; "\ - "setenv bootargs ${bootargs} androidboot.hardware=amlogic;"\ + "setenv bootargs ${bootargs} androidboot.hardware=amlogic androidboot.bootloader=${bootloader_version} androidboot.build.expect.baseband=N/A;"\ "run cmdline_keys;"\ "\0"\ "switch_bootmode="\ diff --git a/board/amlogic/configs/g12a_skt_v1.h b/board/amlogic/configs/g12a_skt_v1.h index da7cdbc..b13df47 100644 --- a/board/amlogic/configs/g12a_skt_v1.h +++ b/board/amlogic/configs/g12a_skt_v1.h @@ -129,8 +129,9 @@ "else fi;"\ "\0"\ "storeargs="\ + "get_bootloaderversion;" \ "setenv bootargs ${initargs} ${fs_type} otg_device=${otg_device} logo=${display_layer},loaded,${fb_addr} vout=${outputmode},enable panel_type=${panel_type} hdmitx=${cecconfig},${colorattribute} hdmimode=${hdmimode} hdmi_read_edid=${hdmi_read_edid} cvbsmode=${cvbsmode} osd_reverse=${osd_reverse} video_reverse=${video_reverse} androidboot.selinux=${EnableSelinux} androidboot.firstboot=${firstboot} jtag=${jtag}; "\ - "setenv bootargs ${bootargs} androidboot.hardware=amlogic;"\ + "setenv bootargs ${bootargs} androidboot.hardware=amlogic androidboot.bootloader=${bootloader_version} androidboot.build.expect.baseband=N/A;"\ "run cmdline_keys;"\ "\0"\ "switch_bootmode="\ diff --git a/board/amlogic/configs/g12a_u200_v1.h b/board/amlogic/configs/g12a_u200_v1.h index 249a38e..a4cb2a1 100644 --- a/board/amlogic/configs/g12a_u200_v1.h +++ b/board/amlogic/configs/g12a_u200_v1.h @@ -133,8 +133,9 @@ "else fi;"\ "\0"\ "storeargs="\ + "get_bootloaderversion;" \ "setenv bootargs ${initargs} ${fs_type} otg_device=${otg_device} reboot_mode_android=${reboot_mode_android} logo=${display_layer},loaded,${fb_addr} vout=${outputmode},enable panel_type=${panel_type} hdmitx=${cecconfig},${colorattribute} hdmimode=${hdmimode} frac_rate_policy=${frac_rate_policy} hdmi_read_edid=${hdmi_read_edid} cvbsmode=${cvbsmode} osd_reverse=${osd_reverse} video_reverse=${video_reverse} irq_check_en=${Irq_check_en} androidboot.selinux=${EnableSelinux} androidboot.firstboot=${firstboot} jtag=${jtag}; "\ - "setenv bootargs ${bootargs} androidboot.hardware=amlogic;"\ + "setenv bootargs ${bootargs} androidboot.hardware=amlogic androidboot.bootloader=${bootloader_version} androidboot.build.expect.baseband=N/A;"\ "run cmdline_keys;"\ "\0"\ "switch_bootmode="\ diff --git a/board/amlogic/configs/g12a_u202_v1.h b/board/amlogic/configs/g12a_u202_v1.h index 8dc8344..2237aa7 100644 --- a/board/amlogic/configs/g12a_u202_v1.h +++ b/board/amlogic/configs/g12a_u202_v1.h @@ -133,8 +133,9 @@ "else fi;"\ "\0"\ "storeargs="\ + "get_bootloaderversion;" \ "setenv bootargs ${initargs} ${fs_type} otg_device=${otg_device} reboot_mode_android=${reboot_mode_android} logo=${display_layer},loaded,${fb_addr} vout=${outputmode},enable panel_type=${panel_type} hdmitx=${cecconfig},${colorattribute} hdmimode=${hdmimode} frac_rate_policy=${frac_rate_policy} hdmi_read_edid=${hdmi_read_edid} cvbsmode=${cvbsmode} osd_reverse=${osd_reverse} video_reverse=${video_reverse} irq_check_en=${Irq_check_en} androidboot.selinux=${EnableSelinux} androidboot.firstboot=${firstboot} jtag=${jtag}; "\ - "setenv bootargs ${bootargs} androidboot.hardware=amlogic;"\ + "setenv bootargs ${bootargs} androidboot.hardware=amlogic androidboot.bootloader=${bootloader_version} androidboot.build.expect.baseband=N/A;"\ "run cmdline_keys;"\ "\0"\ "switch_bootmode="\ diff --git a/board/amlogic/configs/g12a_u211_v1.h b/board/amlogic/configs/g12a_u211_v1.h index cdf29b9..0154293 100644 --- a/board/amlogic/configs/g12a_u211_v1.h +++ b/board/amlogic/configs/g12a_u211_v1.h @@ -130,8 +130,9 @@ "else fi;"\ "\0"\ "storeargs="\ + "get_bootloaderversion;" \ "setenv bootargs ${initargs} ${fs_type} reboot_mode_android=${reboot_mode_android} logo=${display_layer},loaded,${fb_addr} vout=${outputmode},enable panel_type=${panel_type} hdmitx=${cecconfig},${colorattribute} hdmimode=${hdmimode} frac_rate_policy=${frac_rate_policy} hdmi_read_edid=${hdmi_read_edid} cvbsmode=${cvbsmode} osd_reverse=${osd_reverse} video_reverse=${video_reverse} androidboot.selinux=${EnableSelinux} androidboot.firstboot=${firstboot} jtag=${jtag}; "\ - "setenv bootargs ${bootargs} androidboot.hardware=amlogic;"\ + "setenv bootargs ${bootargs} androidboot.hardware=amlogic androidboot.bootloader=${bootloader_version} androidboot.build.expect.baseband=N/A;"\ "run cmdline_keys;"\ "\0"\ "switch_bootmode="\ diff --git a/board/amlogic/configs/g12a_u212_v1.h b/board/amlogic/configs/g12a_u212_v1.h index efd5cdb..4b891f0 100644 --- a/board/amlogic/configs/g12a_u212_v1.h +++ b/board/amlogic/configs/g12a_u212_v1.h @@ -132,8 +132,9 @@ "else fi;"\ "\0"\ "storeargs="\ + "get_bootloaderversion;" \ "setenv bootargs ${initargs} ${fs_type} otg_device=${otg_device} reboot_mode_android=${reboot_mode_android} logo=${display_layer},loaded,${fb_addr} vout=${outputmode},enable panel_type=${panel_type} hdmitx=${cecconfig},${colorattribute} hdmimode=${hdmimode} frac_rate_policy=${frac_rate_policy} hdmi_read_edid=${hdmi_read_edid} cvbsmode=${cvbsmode} osd_reverse=${osd_reverse} video_reverse=${video_reverse} irq_check_en=${Irq_check_en} androidboot.selinux=${EnableSelinux} androidboot.firstboot=${firstboot} jtag=${jtag}; "\ - "setenv bootargs ${bootargs} androidboot.hardware=amlogic;"\ + "setenv bootargs ${bootargs} androidboot.hardware=amlogic androidboot.bootloader=${bootloader_version} androidboot.build.expect.baseband=N/A;"\ "run cmdline_keys;"\ "\0"\ "switch_bootmode="\ diff --git a/board/amlogic/configs/g12a_u220_v1.h b/board/amlogic/configs/g12a_u220_v1.h index 2b1f8b9..e9d9978 100644 --- a/board/amlogic/configs/g12a_u220_v1.h +++ b/board/amlogic/configs/g12a_u220_v1.h @@ -129,8 +129,9 @@ "else fi;"\ "\0"\ "storeargs="\ + "get_bootloaderversion;" \ "setenv bootargs ${initargs} ${fs_type} reboot_mode_android=${reboot_mode_android} logo=${display_layer},loaded,${fb_addr} vout=${outputmode},enable panel_type=${panel_type} hdmitx=${cecconfig},${colorattribute} hdmimode=${hdmimode} frac_rate_policy=${frac_rate_policy} hdmi_read_edid=${hdmi_read_edid} cvbsmode=${cvbsmode} osd_reverse=${osd_reverse} video_reverse=${video_reverse} androidboot.selinux=${EnableSelinux} androidboot.firstboot=${firstboot} jtag=${jtag}; "\ - "setenv bootargs ${bootargs} androidboot.hardware=amlogic;"\ + "setenv bootargs ${bootargs} androidboot.hardware=amlogic androidboot.bootloader=${bootloader_version} androidboot.build.expect.baseband=N/A;"\ "run cmdline_keys;"\ "\0"\ "switch_bootmode="\ diff --git a/board/amlogic/configs/g12a_u221_v1.h b/board/amlogic/configs/g12a_u221_v1.h index 34e75a8..3df8a8c 100644 --- a/board/amlogic/configs/g12a_u221_v1.h +++ b/board/amlogic/configs/g12a_u221_v1.h @@ -132,8 +132,9 @@ "else fi;"\ "\0"\ "storeargs="\ + "get_bootloaderversion;" \ "setenv bootargs ${initargs} ${fs_type} otg_device=${otg_device} reboot_mode_android=${reboot_mode_android} logo=${display_layer},loaded,${fb_addr} vout=${outputmode},enable panel_type=${panel_type} hdmitx=${cecconfig},${colorattribute} hdmimode=${hdmimode} frac_rate_policy=${frac_rate_policy} hdmi_read_edid=${hdmi_read_edid} cvbsmode=${cvbsmode} osd_reverse=${osd_reverse} video_reverse=${video_reverse} androidboot.selinux=${EnableSelinux} androidboot.firstboot=${firstboot} jtag=${jtag}; "\ - "setenv bootargs ${bootargs} androidboot.hardware=amlogic;"\ + "setenv bootargs ${bootargs} androidboot.hardware=amlogic androidboot.bootloader=${bootloader_version} androidboot.build.expect.baseband=N/A;"\ "run cmdline_keys;"\ "\0"\ "switch_bootmode="\ diff --git a/board/amlogic/configs/g12b_skt_v1.h b/board/amlogic/configs/g12b_skt_v1.h index d4cb57b..4fbce8f 100644 --- a/board/amlogic/configs/g12b_skt_v1.h +++ b/board/amlogic/configs/g12b_skt_v1.h @@ -128,8 +128,9 @@ "else fi;"\ "\0"\ "storeargs="\ + "get_bootloaderversion;" \ "setenv bootargs ${initargs} ${fs_type} otg_device=${otg_device} logo=${display_layer},loaded,${fb_addr} vout=${outputmode},enable panel_type=${panel_type} hdmitx=${cecconfig},${colorattribute} hdmimode=${hdmimode} frac_rate_policy=${frac_rate_policy} hdmi_read_edid=${hdmi_read_edid} cvbsmode=${cvbsmode} osd_reverse=${osd_reverse} video_reverse=${video_reverse} androidboot.selinux=${EnableSelinux} androidboot.firstboot=${firstboot} jtag=${jtag}; "\ - "setenv bootargs ${bootargs} androidboot.hardware=amlogic;"\ + "setenv bootargs ${bootargs} androidboot.hardware=amlogic androidboot.bootloader=${bootloader_version} androidboot.build.expect.baseband=N/A;"\ "run cmdline_keys;"\ "setenv bootargs ${bootargs} androidboot.slot_suffix=${active_slot};"\ "\0"\ diff --git a/board/amlogic/configs/g12b_w400_v1.h b/board/amlogic/configs/g12b_w400_v1.h index dfd2cc9..1f556a8 100644 --- a/board/amlogic/configs/g12b_w400_v1.h +++ b/board/amlogic/configs/g12b_w400_v1.h @@ -132,8 +132,9 @@ "else fi;"\ "\0"\ "storeargs="\ + "get_bootloaderversion;" \ "setenv bootargs ${initargs} ${fs_type} otg_device=${otg_device} reboot_mode_android=${reboot_mode_android} logo=${display_layer},loaded,${fb_addr} vout=${outputmode},enable panel_type=${panel_type} hdmitx=${cecconfig},${colorattribute} hdmimode=${hdmimode} frac_rate_policy=${frac_rate_policy} hdmi_read_edid=${hdmi_read_edid} cvbsmode=${cvbsmode} osd_reverse=${osd_reverse} video_reverse=${video_reverse} irq_check_en=${Irq_check_en} androidboot.selinux=${EnableSelinux} androidboot.firstboot=${firstboot} jtag=${jtag}; "\ - "setenv bootargs ${bootargs} androidboot.hardware=amlogic;"\ + "setenv bootargs ${bootargs} androidboot.hardware=amlogic androidboot.bootloader=${bootloader_version} androidboot.build.expect.baseband=N/A;"\ "run cmdline_keys;"\ "\0"\ "switch_bootmode="\ diff --git a/board/amlogic/configs/g12b_w411_v1.h b/board/amlogic/configs/g12b_w411_v1.h index e28ca98..5f5e8b4 100644 --- a/board/amlogic/configs/g12b_w411_v1.h +++ b/board/amlogic/configs/g12b_w411_v1.h @@ -130,8 +130,9 @@ "else fi;"\ "\0"\ "storeargs="\ + "get_bootloaderversion;" \ "setenv bootargs ${initargs} ${fs_type} reboot_mode_android=${reboot_mode_android} logo=${display_layer},loaded,${fb_addr} vout=${outputmode},enable panel_type=${panel_type} hdmitx=${cecconfig},${colorattribute} hdmimode=${hdmimode} frac_rate_policy=${frac_rate_policy} hdmi_read_edid=${hdmi_read_edid} cvbsmode=${cvbsmode} osd_reverse=${osd_reverse} video_reverse=${video_reverse} androidboot.selinux=${EnableSelinux} androidboot.firstboot=${firstboot} jtag=${jtag}; "\ - "setenv bootargs ${bootargs} androidboot.hardware=amlogic;"\ + "setenv bootargs ${bootargs} androidboot.hardware=amlogic androidboot.bootloader=${bootloader_version} androidboot.build.expect.baseband=N/A;"\ "run cmdline_keys;"\ "\0"\ "switch_bootmode="\ diff --git a/board/amlogic/configs/gxb_p200_v1.h b/board/amlogic/configs/gxb_p200_v1.h index cdf6fc5..a88e18a 100644 --- a/board/amlogic/configs/gxb_p200_v1.h +++ b/board/amlogic/configs/gxb_p200_v1.h @@ -130,8 +130,9 @@ "else fi;"\ "\0"\ "storeargs="\ + "get_bootloaderversion;" \ "setenv bootargs ${initargs} ${fs_type} reboot_mode_android=${reboot_mode_android} androidboot.selinux=${EnableSelinux} logo=${display_layer},loaded,${fb_addr},${outputmode} vout=${outputmode},enable hdmimode=${hdmimode} cvbsmode=${cvbsmode} hdmitx=${cecconfig} cvbsdrv=${cvbs_drv} androidboot.firstboot=${firstboot} jtag=${jtag}; "\ - "setenv bootargs ${bootargs} androidboot.hardware=amlogic;"\ + "setenv bootargs ${bootargs} androidboot.hardware=amlogic androidboot.bootloader=${bootloader_version} androidboot.build.expect.baseband=N/A;"\ "run cmdline_keys;"\ "\0"\ "switch_bootmode="\ diff --git a/board/amlogic/configs/gxb_p201_v1.h b/board/amlogic/configs/gxb_p201_v1.h index e26cef8..4af1e7f 100644 --- a/board/amlogic/configs/gxb_p201_v1.h +++ b/board/amlogic/configs/gxb_p201_v1.h @@ -127,8 +127,9 @@ "else fi;"\ "\0"\ "storeargs="\ + "get_bootloaderversion;" \ "setenv bootargs ${initargs} ${fs_type} reboot_mode_android=${reboot_mode_android} androidboot.selinux=${EnableSelinux} logo=${display_layer},loaded,${fb_addr},${outputmode} vout=${outputmode},enable hdmimode=${hdmimode} cvbsmode=${cvbsmode} hdmitx=${cecconfig} cvbsdrv=${cvbs_drv} androidboot.firstboot=${firstboot} jtag=${jtag}; "\ - "setenv bootargs ${bootargs} androidboot.hardware=amlogic;"\ + "setenv bootargs ${bootargs} androidboot.hardware=amlogic androidboot.bootloader=${bootloader_version} androidboot.build.expect.baseband=N/A;"\ "run cmdline_keys;"\ "\0"\ "switch_bootmode="\ diff --git a/board/amlogic/configs/gxl_beast_v1.h b/board/amlogic/configs/gxl_beast_v1.h index a7dd1fa..ded28e4 100644 --- a/board/amlogic/configs/gxl_beast_v1.h +++ b/board/amlogic/configs/gxl_beast_v1.h @@ -138,8 +138,9 @@ "else fi;"\ "\0"\ "storeargs="\ + "get_bootloaderversion;" \ "setenv bootargs ${initargs} ${fs_type} reboot_mode_android=${reboot_mode_android} androidboot.selinux=${EnableSelinux} logo=${display_layer},loaded,${fb_addr},${outputmode} maxcpus=${maxcpus} vout=${outputmode},enable hdmimode=${hdmimode} frac_rate_policy=${frac_rate_policy} cvbsmode=${cvbsmode} hdmitx=${cecconfig} cvbsdrv=${cvbs_drv} androidboot.firstboot=${firstboot} jtag=${jtag}; "\ - "setenv bootargs ${bootargs} androidboot.hardware=amlogic;"\ + "setenv bootargs ${bootargs} androidboot.hardware=amlogic androidboot.bootloader=${bootloader_version} androidboot.build.expect.baseband=N/A;"\ "setenv bootargs ${bootargs} page_trace=${page_trace};" \ "setenv bootargs ${bootargs} androidboot.rpmb_state=${rpmb_state};"\ "run cmdline_keys;"\ diff --git a/board/amlogic/configs/gxl_p212_v1.h b/board/amlogic/configs/gxl_p212_v1.h index 3af9c69..ddfbe82 100644 --- a/board/amlogic/configs/gxl_p212_v1.h +++ b/board/amlogic/configs/gxl_p212_v1.h @@ -140,8 +140,9 @@ "else fi;"\ "\0"\ "storeargs="\ + "get_bootloaderversion;" \ "setenv bootargs ${initargs} ${fs_type} otg_device=${otg_device} reboot_mode_android=${reboot_mode_android} androidboot.selinux=${EnableSelinux} logo=${display_layer},loaded,${fb_addr},${outputmode} maxcpus=${maxcpus} vout=${outputmode},enable hdmimode=${hdmimode} frac_rate_policy=${frac_rate_policy} cvbsmode=${cvbsmode} hdmitx=${cecconfig},${colorattribute} cvbsdrv=${cvbs_drv} irq_check_en=${Irq_check_en} androidboot.firstboot=${firstboot} jtag=${jtag}; "\ - "setenv bootargs ${bootargs} androidboot.veritymode=enforcing androidboot.hardware=amlogic;"\ + "setenv bootargs ${bootargs} androidboot.veritymode=enforcing androidboot.hardware=amlogic androidboot.bootloader=${bootloader_version} androidboot.build.expect.baseband=N/A;"\ "setenv bootargs ${bootargs} page_trace=${page_trace};" \ "setenv bootargs ${bootargs} androidboot.rpmb_state=${rpmb_state};"\ "run cmdline_keys;"\ diff --git a/board/amlogic/configs/gxl_p241_v1.h b/board/amlogic/configs/gxl_p241_v1.h index d59bfd1..70a6e91 100644 --- a/board/amlogic/configs/gxl_p241_v1.h +++ b/board/amlogic/configs/gxl_p241_v1.h @@ -135,8 +135,9 @@ "else fi;"\ "\0"\ "storeargs="\ + "get_bootloaderversion;" \ "setenv bootargs ${initargs} ${fs_type} otg_device=${otg_device} reboot_mode_android=${reboot_mode_android} androidboot.selinux=${EnableSelinux} logo=${display_layer},loaded,${fb_addr},${outputmode} maxcpus=${maxcpus} vout=${outputmode},enable hdmitx=${cecconfig},${colorattribute} hdmimode=${hdmimode} frac_rate_policy=${frac_rate_policy} cvbsmode=${cvbsmode} hdmitx=${cecconfig} cvbsdrv=${cvbs_drv} irq_check_en=${Irq_check_en} androidboot.firstboot=${firstboot} jtag=${jtag}; "\ - "setenv bootargs ${bootargs} androidboot.hardware=amlogic;"\ + "setenv bootargs ${bootargs} androidboot.hardware=amlogic androidboot.bootloader=${bootloader_version} androidboot.build.expect.baseband=N/A;"\ "setenv bootargs ${bootargs} page_trace=${page_trace};" \ "run cmdline_keys;"\ "\0"\ diff --git a/board/amlogic/configs/gxl_p271_v1.h b/board/amlogic/configs/gxl_p271_v1.h index 6f772dc..ce110b8 100644 --- a/board/amlogic/configs/gxl_p271_v1.h +++ b/board/amlogic/configs/gxl_p271_v1.h @@ -133,8 +133,9 @@ "else fi;"\ "\0"\ "storeargs="\ + "get_bootloaderversion;" \ "setenv bootargs ${initargs} ${fs_type} reboot_mode_android=${reboot_mode_android} androidboot.selinux=${EnableSelinux} logo=${display_layer},loaded,${fb_addr},${outputmode} maxcpus=${maxcpus} vout=${outputmode},enable hdmimode=${hdmimode} cvbsmode=${cvbsmode} hdmitx=${cecconfig} cvbsdrv=${cvbs_drv} androidboot.firstboot=${firstboot} jtag=${jtag}; "\ - "setenv bootargs ${bootargs} androidboot.hardware=amlogic;"\ + "setenv bootargs ${bootargs} androidboot.hardware=amlogic androidboot.bootloader=${bootloader_version} androidboot.build.expect.baseband=N/A;"\ "run cmdline_keys;"\ "\0"\ "switch_bootmode="\ diff --git a/board/amlogic/configs/gxl_p281_v1.h b/board/amlogic/configs/gxl_p281_v1.h index bfb98ec..61527b7 100644 --- a/board/amlogic/configs/gxl_p281_v1.h +++ b/board/amlogic/configs/gxl_p281_v1.h @@ -134,8 +134,9 @@ "else fi;"\ "\0"\ "storeargs="\ + "get_bootloaderversion;" \ "setenv bootargs ${initargs} ${fs_type} reboot_mode_android=${reboot_mode_android} androidboot.selinux=${EnableSelinux} logo=${display_layer},loaded,${fb_addr},${outputmode} maxcpus=${maxcpus} vout=${outputmode},enable hdmimode=${hdmimode} cvbsmode=${cvbsmode} hdmitx=${cecconfig} cvbsdrv=${cvbs_drv} androidboot.firstboot=${firstboot} jtag=${jtag}; "\ - "setenv bootargs ${bootargs} androidboot.hardware=amlogic;"\ + "setenv bootargs ${bootargs} androidboot.hardware=amlogic androidboot.bootloader=${bootloader_version} androidboot.build.expect.baseband=N/A;"\ "run cmdline_keys;"\ "\0"\ "switch_bootmode="\ diff --git a/board/amlogic/configs/gxl_p400_v1.h b/board/amlogic/configs/gxl_p400_v1.h index ea9861f..a2829b8 100644 --- a/board/amlogic/configs/gxl_p400_v1.h +++ b/board/amlogic/configs/gxl_p400_v1.h @@ -129,8 +129,9 @@ "else fi;"\ "\0"\ "storeargs="\ + "get_bootloaderversion;" \ "setenv bootargs ${initargs} ${fs_type} reboot_mode_android=${reboot_mode_android} androidboot.selinux=${EnableSelinux} maxcpus=${maxcpus} androidboot.firstboot=${firstboot} jtag=${jtag}; "\ - "setenv bootargs ${bootargs} androidboot.hardware=amlogic;"\ + "setenv bootargs ${bootargs} androidboot.hardware=amlogic androidboot.bootloader=${bootloader_version} androidboot.build.expect.baseband=N/A;"\ "run cmdline_keys;"\ "\0"\ "switch_bootmode="\ diff --git a/board/amlogic/configs/gxl_p401_v1.h b/board/amlogic/configs/gxl_p401_v1.h index faef3a8..575fddf 100644 --- a/board/amlogic/configs/gxl_p401_v1.h +++ b/board/amlogic/configs/gxl_p401_v1.h @@ -129,8 +129,9 @@ "else fi;"\ "\0"\ "storeargs="\ + "get_bootloaderversion;" \ "setenv bootargs ${initargs} ${fs_type} reboot_mode_android=${reboot_mode_android} androidboot.selinux=${EnableSelinux} logo=${display_layer},loaded,${fb_addr},${outputmode} maxcpus=${maxcpus} vout=${outputmode},enable hdmimode=${hdmimode} cvbsmode=${cvbsmode} hdmitx=${cecconfig} cvbsdrv=${cvbs_drv} pq=${pq} androidboot.firstboot=${firstboot} jtag=${jtag}; "\ - "setenv bootargs ${bootargs} androidboot.hardware=amlogic;"\ + "setenv bootargs ${bootargs} androidboot.hardware=amlogic androidboot.bootloader=${bootloader_version} androidboot.build.expect.baseband=N/A;"\ "run cmdline_keys;"\ "\0"\ "switch_bootmode="\ diff --git a/board/amlogic/configs/gxm_q200_v1.h b/board/amlogic/configs/gxm_q200_v1.h index 8fca7a0..b5f21cc 100644 --- a/board/amlogic/configs/gxm_q200_v1.h +++ b/board/amlogic/configs/gxm_q200_v1.h @@ -133,8 +133,9 @@ "else fi;"\ "\0"\ "storeargs="\ + "get_bootloaderversion;" \ "setenv bootargs ${initargs} ${fs_type} otg_device=${otg_device} reboot_mode_android=${reboot_mode_android} androidboot.selinux=${EnableSelinux} logo=${display_layer},loaded,${fb_addr},${outputmode} maxcpus=${maxcpus} vout=${outputmode},enable hdmitx=${cecconfig},${colorattribute} hdmimode=${hdmimode} cvbsmode=${cvbsmode} hdmitx=${cecconfig} cvbsdrv=${cvbs_drv} pq=${pq} androidboot.firstboot=${firstboot} jtag=${jtag}; "\ - "setenv bootargs ${bootargs} androidboot.hardware=amlogic;"\ + "setenv bootargs ${bootargs} androidboot.hardware=amlogic androidboot.bootloader=${bootloader_version} androidboot.build.expect.baseband=N/A;"\ "run cmdline_keys;"\ "\0"\ "switch_bootmode="\ diff --git a/board/amlogic/configs/gxm_q201_v1.h b/board/amlogic/configs/gxm_q201_v1.h index 018a894..40e1e16 100644 --- a/board/amlogic/configs/gxm_q201_v1.h +++ b/board/amlogic/configs/gxm_q201_v1.h @@ -130,8 +130,9 @@ "else fi;"\ "\0"\ "storeargs="\ + "get_bootloaderversion;" \ "setenv bootargs ${initargs} ${fs_type} reboot_mode_android=${reboot_mode_android} androidboot.selinux=${EnableSelinux} logo=${display_layer},loaded,${fb_addr},${outputmode} maxcpus=${maxcpus} vout=${outputmode},enabletx=${cecconfig},${colorattribute} hdmimode=${hdmimode} cvbsmode=${cvbsmode} hdmitx=${cecconfig} cvbsdrv=${cvbs_drv} pq=${pq} androidboot.firstboot=${firstboot} jtag=${jtag}; "\ - "setenv bootargs ${bootargs} androidboot.hardware=amlogic;"\ + "setenv bootargs ${bootargs} androidboot.hardware=amlogic androidboot.bootloader=${bootloader_version} androidboot.build.expect.baseband=N/A;"\ "run cmdline_keys;"\ "\0"\ "switch_bootmode="\ diff --git a/board/amlogic/configs/sm1_sabrina_v1.h b/board/amlogic/configs/sm1_sabrina_v1.h index 64bece6..725539a 100755..100644 --- a/board/amlogic/configs/sm1_sabrina_v1.h +++ b/board/amlogic/configs/sm1_sabrina_v1.h @@ -132,8 +132,9 @@ "else fi;"\ "\0"\ "storeargs="\ + "get_bootloaderversion;" \ "setenv bootargs ${initargs} ${fs_type} reboot_mode_android=${reboot_mode_android} logo=${display_layer},loaded,${fb_addr} vout=${outputmode},enable panel_type=${panel_type} hdmitx=${cecconfig},${colorattribute} hdmimode=${hdmimode} frac_rate_policy=${frac_rate_policy} hdmi_read_edid=${hdmi_read_edid} cvbsmode=${cvbsmode} osd_reverse=${osd_reverse} video_reverse=${video_reverse} irq_check_en=${Irq_check_en} androidboot.selinux=${EnableSelinux} androidboot.firstboot=${firstboot} jtag=${jtag}; "\ - "setenv bootargs ${bootargs} androidboot.hardware=amlogic;"\ + "setenv bootargs ${bootargs} androidboot.hardware=amlogic androidboot.bootloader=${bootloader_version} androidboot.build.expect.baseband=N/A;"\ "run cmdline_keys;"\ "\0"\ "switch_bootmode="\ diff --git a/board/amlogic/configs/txl_p320_v1.h b/board/amlogic/configs/txl_p320_v1.h index f9089dc..52c255a 100644 --- a/board/amlogic/configs/txl_p320_v1.h +++ b/board/amlogic/configs/txl_p320_v1.h @@ -142,9 +142,10 @@ "else fi;"\ "\0"\ "storeargs="\ + "get_bootloaderversion;" \ "setenv bootargs ${initargs} ${fs_type} reboot_mode_android=${reboot_mode_android} logo=${display_layer},loaded,${fb_addr} vout=${outputmode},enable panel_type=${panel_type} osd_reverse=${osd_reverse} video_reverse=${video_reverse} androidboot.selinux=${EnableSelinux} androidboot.firstboot=${firstboot} jtag=${jtag}; "\ "setenv bootargs ${bootargs} page_trace=${page_trace};" \ - "setenv bootargs ${bootargs} androidboot.hardware=amlogic;"\ + "setenv bootargs ${bootargs} androidboot.hardware=amlogic androidboot.bootloader=${bootloader_version} androidboot.build.expect.baseband=N/A;"\ "run cmdline_keys;"\ "\0"\ "switch_bootmode="\ diff --git a/board/amlogic/configs/txl_p321_v1.h b/board/amlogic/configs/txl_p321_v1.h index 0c23730..a505b50 100644 --- a/board/amlogic/configs/txl_p321_v1.h +++ b/board/amlogic/configs/txl_p321_v1.h @@ -142,9 +142,10 @@ "else fi;"\ "\0"\ "storeargs="\ + "get_bootloaderversion;" \ "setenv bootargs ${initargs} ${fs_type} otg_device=${otg_device} reboot_mode_android=${reboot_mode_android} logo=${display_layer},loaded,${fb_addr} vout=${outputmode},enable panel_type=${panel_type} osd_reverse=${osd_reverse} video_reverse=${video_reverse} androidboot.selinux=${EnableSelinux} irq_check_en=${Irq_check_en} androidboot.firstboot=${firstboot} jtag=${jtag}; "\ "setenv bootargs ${bootargs} page_trace=${page_trace};" \ - "setenv bootargs ${bootargs} androidboot.hardware=amlogic;"\ + "setenv bootargs ${bootargs} androidboot.hardware=amlogic androidboot.bootloader=${bootloader_version} androidboot.build.expect.baseband=N/A;"\ "run cmdline_keys;"\ "\0"\ "switch_bootmode="\ diff --git a/board/amlogic/configs/txl_p323_v1.h b/board/amlogic/configs/txl_p323_v1.h index c4a3fae..0411699 100644 --- a/board/amlogic/configs/txl_p323_v1.h +++ b/board/amlogic/configs/txl_p323_v1.h @@ -141,9 +141,10 @@ "else fi;"\ "\0"\ "storeargs="\ + "get_bootloaderversion;" \ "setenv bootargs ${initargs} ${fs_type} reboot_mode_android=${reboot_mode_android} logo=${display_layer},loaded,${fb_addr} vout=${outputmode},enable panel_type=${panel_type} osd_reverse=${osd_reverse} video_reverse=${video_reverse} androidboot.selinux=${EnableSelinux} androidboot.firstboot=${firstboot} jtag=${jtag}; "\ "setenv bootargs ${bootargs} page_trace=${page_trace};" \ - "setenv bootargs ${bootargs} androidboot.hardware=amlogic;"\ + "setenv bootargs ${bootargs} androidboot.hardware=amlogic androidboot.bootloader=${bootloader_version} androidboot.build.expect.baseband=N/A;"\ "run cmdline_keys;"\ "\0"\ "switch_bootmode="\ diff --git a/board/amlogic/configs/txl_p341_v1.h b/board/amlogic/configs/txl_p341_v1.h index 07b3bdf..298465a 100644 --- a/board/amlogic/configs/txl_p341_v1.h +++ b/board/amlogic/configs/txl_p341_v1.h @@ -141,9 +141,10 @@ "else fi;"\ "\0"\ "storeargs="\ + "get_bootloaderversion;" \ "setenv bootargs ${initargs} ${fs_type} reboot_mode_android=${reboot_mode_android} logo=${display_layer},loaded,${fb_addr} vout=${outputmode},enable panel_type=${panel_type} osd_reverse=${osd_reverse} video_reverse=${video_reverse} androidboot.selinux=${EnableSelinux} androidboot.firstboot=${firstboot} jtag=${jtag}; "\ "setenv bootargs ${bootargs} page_trace=${page_trace};" \ - "setenv bootargs ${bootargs} androidboot.hardware=amlogic;"\ + "setenv bootargs ${bootargs} androidboot.hardware=amlogic androidboot.bootloader=${bootloader_version} androidboot.build.expect.baseband=N/A;"\ "run cmdline_keys;"\ "\0"\ "switch_bootmode="\ diff --git a/board/amlogic/configs/txl_p341_v2.h b/board/amlogic/configs/txl_p341_v2.h index e372eaf..382e9fb 100644 --- a/board/amlogic/configs/txl_p341_v2.h +++ b/board/amlogic/configs/txl_p341_v2.h @@ -141,9 +141,10 @@ "else fi;"\ "\0"\ "storeargs="\ + "get_bootloaderversion;" \ "setenv bootargs ${initargs} ${fs_type} reboot_mode_android=${reboot_mode_android} logo=${display_layer},loaded,${fb_addr} vout=${outputmode},enable panel_type=${panel_type} osd_reverse=${osd_reverse} video_reverse=${video_reverse} androidboot.selinux=${EnableSelinux} androidboot.firstboot=${firstboot} jtag=${jtag}; "\ "setenv bootargs ${bootargs} page_trace=${page_trace};" \ - "setenv bootargs ${bootargs} androidboot.hardware=amlogic;"\ + "setenv bootargs ${bootargs} androidboot.hardware=amlogic androidboot.bootloader=${bootloader_version} androidboot.build.expect.baseband=N/A;"\ "run cmdline_keys;"\ "\0"\ "switch_bootmode="\ diff --git a/board/amlogic/configs/txl_p346_v1.h b/board/amlogic/configs/txl_p346_v1.h index 56e324e..45bbf7a 100644 --- a/board/amlogic/configs/txl_p346_v1.h +++ b/board/amlogic/configs/txl_p346_v1.h @@ -140,9 +140,10 @@ "else fi;"\ "\0"\ "storeargs="\ + "get_bootloaderversion;" \ "setenv bootargs ${initargs} ${fs_type} reboot_mode_android=${reboot_mode_android} logo=${display_layer},loaded,${fb_addr} vout=${outputmode},enable panel_type=${panel_type} osd_reverse=${osd_reverse} video_reverse=${video_reverse} androidboot.selinux=${EnableSelinux} androidboot.firstboot=${firstboot} jtag=${jtag}; "\ "setenv bootargs ${bootargs} page_trace=${page_trace};" \ - "setenv bootargs ${bootargs} androidboot.hardware=amlogic;"\ + "setenv bootargs ${bootargs} androidboot.hardware=amlogic androidboot.bootloader=${bootloader_version} androidboot.build.expect.baseband=N/A;"\ "run cmdline_keys;"\ "\0"\ "switch_bootmode="\ diff --git a/board/amlogic/configs/txlx_t962e_r321_v1.h b/board/amlogic/configs/txlx_t962e_r321_v1.h index ff43a9e..06a7fab 100644 --- a/board/amlogic/configs/txlx_t962e_r321_v1.h +++ b/board/amlogic/configs/txlx_t962e_r321_v1.h @@ -130,9 +130,10 @@ "else fi;"\ "\0"\ "storeargs="\ + "get_bootloaderversion;" \ "setenv bootargs ${initargs} ${fs_type} otg_device=${otg_device} reboot_mode_android=${reboot_mode_android} logo=${display_layer},loaded,${fb_addr} vout=${outputmode},enable panel_type=${panel_type} osd_reverse=${osd_reverse} video_reverse=${video_reverse} hdmimode=${hdmimode} frac_rate_policy=${frac_rate_policy} cvbsmode=${cvbsmode} androidboot.selinux=${EnableSelinux} irq_check_en=${Irq_check_en} androidboot.firstboot=${firstboot} jtag=${jtag}; "\ "setenv bootargs ${bootargs} page_trace=${page_trace};" \ - "setenv bootargs ${bootargs} androidboot.hardware=amlogic;"\ + "setenv bootargs ${bootargs} androidboot.hardware=amlogic androidboot.bootloader=${bootloader_version} androidboot.build.expect.baseband=N/A;"\ "run cmdline_keys;"\ "\0"\ "switch_bootmode="\ diff --git a/board/amlogic/configs/txlx_t962x_r311_v1.h b/board/amlogic/configs/txlx_t962x_r311_v1.h index 13638a7..a71567d 100644 --- a/board/amlogic/configs/txlx_t962x_r311_v1.h +++ b/board/amlogic/configs/txlx_t962x_r311_v1.h @@ -137,9 +137,10 @@ "else fi;"\ "\0"\ "storeargs="\ + "get_bootloaderversion;" \ "setenv bootargs ${initargs} ${fs_type} otg_device=${otg_device} reboot_mode_android=${reboot_mode_android} logo=${display_layer},loaded,${fb_addr} vout=${outputmode},enable panel_type=${panel_type} osd_reverse=${osd_reverse} video_reverse=${video_reverse} androidboot.selinux=${EnableSelinux} irq_check_en=${Irq_check_en} androidboot.firstboot=${firstboot} jtag=${jtag} ui_mode=${ui_mode}; "\ "setenv bootargs ${bootargs} page_trace=${page_trace};" \ - "setenv bootargs ${bootargs} androidboot.hardware=amlogic;"\ + "setenv bootargs ${bootargs} androidboot.hardware=amlogic androidboot.bootloader=${bootloader_version} androidboot.build.expect.baseband=N/A;"\ "run cmdline_keys;"\ "\0"\ "switch_bootmode="\ diff --git a/board/amlogic/configs/txlx_t962x_r314_v1.h b/board/amlogic/configs/txlx_t962x_r314_v1.h index c8f908b..03e52af 100644 --- a/board/amlogic/configs/txlx_t962x_r314_v1.h +++ b/board/amlogic/configs/txlx_t962x_r314_v1.h @@ -138,9 +138,10 @@ "else fi;"\ "\0"\ "storeargs="\ + "get_bootloaderversion;" \ "setenv bootargs ${initargs} ${fs_type} otg_device=${otg_device} reboot_mode_android=${reboot_mode_android} logo=${display_layer},loaded,${fb_addr} vout=${outputmode},enable panel_type=${panel_type} osd_reverse=${osd_reverse} video_reverse=${video_reverse} androidboot.selinux=${EnableSelinux} androidboot.firstboot=${firstboot} jtag=${jtag} ui_mode=${ui_mode}; "\ "setenv bootargs ${bootargs} page_trace=${page_trace};" \ - "setenv bootargs ${bootargs} androidboot.hardware=amlogic;"\ + "setenv bootargs ${bootargs} androidboot.hardware=amlogic androidboot.bootloader=${bootloader_version} androidboot.build.expect.baseband=N/A;"\ "run cmdline_keys;"\ "\0"\ "switch_bootmode="\ diff --git a/board/amlogic/g12a_deadpool_v1/g12a_deadpool_v1.c b/board/amlogic/g12a_deadpool_v1/g12a_deadpool_v1.c index 5c7ace7..85e78db 100644 --- a/board/amlogic/g12a_deadpool_v1/g12a_deadpool_v1.c +++ b/board/amlogic/g12a_deadpool_v1/g12a_deadpool_v1.c @@ -833,6 +833,7 @@ const char * const _env_args_reserve_[] = "firstboot", "lock", "upgrade_step", + "bootloader_version", NULL//Keep NULL be last to tell END }; diff --git a/board/amlogic/g12a_u200_v1/g12a_u200_v1.c b/board/amlogic/g12a_u200_v1/g12a_u200_v1.c index 7675539..e59c5d3 100644 --- a/board/amlogic/g12a_u200_v1/g12a_u200_v1.c +++ b/board/amlogic/g12a_u200_v1/g12a_u200_v1.c @@ -852,6 +852,7 @@ const char * const _env_args_reserve_[] = "firstboot", "lock", "upgrade_step", + "bootloader_version", NULL//Keep NULL be last to tell END }; diff --git a/board/amlogic/g12a_u202_v1/g12a_u202_v1.c b/board/amlogic/g12a_u202_v1/g12a_u202_v1.c index 48a9c15..6ec5206 100644 --- a/board/amlogic/g12a_u202_v1/g12a_u202_v1.c +++ b/board/amlogic/g12a_u202_v1/g12a_u202_v1.c @@ -852,6 +852,7 @@ const char * const _env_args_reserve_[] = "firstboot", "lock", "upgrade_step", + "bootloader_version", NULL//Keep NULL be last to tell END }; diff --git a/board/amlogic/g12a_u211_v1/g12a_u211_v1.c b/board/amlogic/g12a_u211_v1/g12a_u211_v1.c index 07b56cd..786cc4a 100644 --- a/board/amlogic/g12a_u211_v1/g12a_u211_v1.c +++ b/board/amlogic/g12a_u211_v1/g12a_u211_v1.c @@ -816,6 +816,7 @@ const char * const _env_args_reserve_[] = "firstboot", "lock", "upgrade_step", + "bootloader_version", NULL//Keep NULL be last to tell END }; diff --git a/board/amlogic/g12a_u212_v1/g12a_u212_v1.c b/board/amlogic/g12a_u212_v1/g12a_u212_v1.c index 1836757..9090f86 100644 --- a/board/amlogic/g12a_u212_v1/g12a_u212_v1.c +++ b/board/amlogic/g12a_u212_v1/g12a_u212_v1.c @@ -848,6 +848,7 @@ const char * const _env_args_reserve_[] = "firstboot", "lock", "upgrade_step", + "bootloader_version", NULL//Keep NULL be last to tell END }; diff --git a/board/amlogic/g12a_u220_v1/g12a_u220_v1.c b/board/amlogic/g12a_u220_v1/g12a_u220_v1.c index e7f166c..3b6fcb4 100644 --- a/board/amlogic/g12a_u220_v1/g12a_u220_v1.c +++ b/board/amlogic/g12a_u220_v1/g12a_u220_v1.c @@ -829,6 +829,7 @@ const char * const _env_args_reserve_[] = "firstboot", "lock", "upgrade_step", + "bootloader_version", NULL//Keep NULL be last to tell END }; diff --git a/board/amlogic/g12a_u221_v1/g12a_u221_v1.c b/board/amlogic/g12a_u221_v1/g12a_u221_v1.c index 20a3381..973bf00 100644 --- a/board/amlogic/g12a_u221_v1/g12a_u221_v1.c +++ b/board/amlogic/g12a_u221_v1/g12a_u221_v1.c @@ -831,6 +831,7 @@ const char * const _env_args_reserve_[] = "firstboot", "lock", "upgrade_step", + "bootloader_version", NULL//Keep NULL be last to tell END }; diff --git a/board/amlogic/g12b_w400_v1/g12b_w400_v1.c b/board/amlogic/g12b_w400_v1/g12b_w400_v1.c index ef9559f..df34779 100644 --- a/board/amlogic/g12b_w400_v1/g12b_w400_v1.c +++ b/board/amlogic/g12b_w400_v1/g12b_w400_v1.c @@ -798,6 +798,7 @@ const char * const _env_args_reserve_[] = "firstboot", "lock", "upgrade_step", + "bootloader_version", NULL//Keep NULL be last to tell END }; diff --git a/board/amlogic/g12b_w411_v1/g12b_w411_v1.c b/board/amlogic/g12b_w411_v1/g12b_w411_v1.c index ffc2ea6..99359cb 100644 --- a/board/amlogic/g12b_w411_v1/g12b_w411_v1.c +++ b/board/amlogic/g12b_w411_v1/g12b_w411_v1.c @@ -802,6 +802,7 @@ const char * const _env_args_reserve_[] = "firstboot", "lock", "upgrade_step", + "bootloader_version", NULL//Keep NULL be last to tell END }; diff --git a/board/amlogic/gxb_p200_v1/gxb_p200_v1.c b/board/amlogic/gxb_p200_v1/gxb_p200_v1.c index b54078a..d41b851 100644 --- a/board/amlogic/gxb_p200_v1/gxb_p200_v1.c +++ b/board/amlogic/gxb_p200_v1/gxb_p200_v1.c @@ -505,6 +505,7 @@ const char * const _env_args_reserve_[] = "firstboot", "lock", "upgrade_step", + "bootloader_version", NULL//Keep NULL be last to tell END }; diff --git a/board/amlogic/gxb_p201_v1/gxb_p201_v1.c b/board/amlogic/gxb_p201_v1/gxb_p201_v1.c index db44b76..2b613b0 100644 --- a/board/amlogic/gxb_p201_v1/gxb_p201_v1.c +++ b/board/amlogic/gxb_p201_v1/gxb_p201_v1.c @@ -488,6 +488,7 @@ const char * const _env_args_reserve_[] = "firstboot", "lock", "upgrade_step", + "bootloader_version", NULL//Keep NULL be last to tell END }; diff --git a/board/amlogic/gxl_beast_v1/gxl_beast_v1.c b/board/amlogic/gxl_beast_v1/gxl_beast_v1.c index 2352cef..34ad231 100644 --- a/board/amlogic/gxl_beast_v1/gxl_beast_v1.c +++ b/board/amlogic/gxl_beast_v1/gxl_beast_v1.c @@ -691,6 +691,8 @@ const char * const _env_args_reserve_[] = "aml_dt", "firstboot", "lock", + "upgrade_step", + "bootloader_version", NULL//Keep NULL be last to tell END }; diff --git a/board/amlogic/gxl_p212_v1/gxl_p212_v1.c b/board/amlogic/gxl_p212_v1/gxl_p212_v1.c index 7d19d38..f520adc 100644 --- a/board/amlogic/gxl_p212_v1/gxl_p212_v1.c +++ b/board/amlogic/gxl_p212_v1/gxl_p212_v1.c @@ -638,6 +638,7 @@ const char * const _env_args_reserve_[] = "firstboot", "lock", "upgrade_step", + "bootloader_version", NULL//Keep NULL be last to tell END }; diff --git a/board/amlogic/gxl_p241_v1/gxl_p241_v1.c b/board/amlogic/gxl_p241_v1/gxl_p241_v1.c index 03266c3..91b597c 100644 --- a/board/amlogic/gxl_p241_v1/gxl_p241_v1.c +++ b/board/amlogic/gxl_p241_v1/gxl_p241_v1.c @@ -545,6 +545,7 @@ const char * const _env_args_reserve_[] = "firstboot", "lock", "upgrade_step", + "bootloader_version", NULL//Keep NULL be last to tell END }; diff --git a/board/amlogic/gxl_p271_v1/gxl_p271_v1.c b/board/amlogic/gxl_p271_v1/gxl_p271_v1.c index 8852c3f..4523654 100644 --- a/board/amlogic/gxl_p271_v1/gxl_p271_v1.c +++ b/board/amlogic/gxl_p271_v1/gxl_p271_v1.c @@ -526,6 +526,7 @@ const char * const _env_args_reserve_[] = "firstboot", "lock", "upgrade_step", + "bootloader_version", NULL//Keep NULL be last to tell END }; diff --git a/board/amlogic/gxl_p281_v1/gxl_p281_v1.c b/board/amlogic/gxl_p281_v1/gxl_p281_v1.c index ca0be44..60eaac0 100644 --- a/board/amlogic/gxl_p281_v1/gxl_p281_v1.c +++ b/board/amlogic/gxl_p281_v1/gxl_p281_v1.c @@ -521,6 +521,7 @@ const char * const _env_args_reserve_[] = "firstboot", "lock", "upgrade_step", + "bootloader_version", NULL//Keep NULL be last to tell END }; diff --git a/board/amlogic/gxl_p400_v1/gxl_p400_v1.c b/board/amlogic/gxl_p400_v1/gxl_p400_v1.c index d4013b4..bb7d416 100644 --- a/board/amlogic/gxl_p400_v1/gxl_p400_v1.c +++ b/board/amlogic/gxl_p400_v1/gxl_p400_v1.c @@ -513,6 +513,7 @@ const char * const _env_args_reserve_[] = "firstboot", "lock", "upgrade_step", + "bootloader_version", NULL//Keep NULL be last to tell END }; diff --git a/board/amlogic/gxl_p401_v1/gxl_p401_v1.c b/board/amlogic/gxl_p401_v1/gxl_p401_v1.c index ea76503..8847a08 100644 --- a/board/amlogic/gxl_p401_v1/gxl_p401_v1.c +++ b/board/amlogic/gxl_p401_v1/gxl_p401_v1.c @@ -573,6 +573,7 @@ const char * const _env_args_reserve_[] = "firstboot", "lock", "upgrade_step", + "bootloader_version", NULL//Keep NULL be last to tell END }; diff --git a/board/amlogic/gxm_q200_v1/gxm_q200_v1.c b/board/amlogic/gxm_q200_v1/gxm_q200_v1.c index 3ecb36b..24f470e 100644 --- a/board/amlogic/gxm_q200_v1/gxm_q200_v1.c +++ b/board/amlogic/gxm_q200_v1/gxm_q200_v1.c @@ -519,6 +519,7 @@ const char * const _env_args_reserve_[] = "firstboot", "lock", "upgrade_step", + "bootloader_version", NULL//Keep NULL be last to tell END }; diff --git a/board/amlogic/gxm_q201_v1/gxm_q201_v1.c b/board/amlogic/gxm_q201_v1/gxm_q201_v1.c index 11ed420..b99d04b 100644 --- a/board/amlogic/gxm_q201_v1/gxm_q201_v1.c +++ b/board/amlogic/gxm_q201_v1/gxm_q201_v1.c @@ -524,6 +524,7 @@ const char * const _env_args_reserve_[] = "firstboot", "lock", "upgrade_step", + "bootloader_version", NULL//Keep NULL be last to tell END }; diff --git a/board/amlogic/sm1_sabrina_v1/sm1_sabrina_v1.c b/board/amlogic/sm1_sabrina_v1/sm1_sabrina_v1.c index 37c13d4..d1ba102 100755..100644 --- a/board/amlogic/sm1_sabrina_v1/sm1_sabrina_v1.c +++ b/board/amlogic/sm1_sabrina_v1/sm1_sabrina_v1.c @@ -831,6 +831,7 @@ const char * const _env_args_reserve_[] = "firstboot", "lock", "upgrade_step", + "bootloader_version", NULL//Keep NULL be last to tell END }; diff --git a/board/amlogic/txl_p320_v1/txl_p320_v1.c b/board/amlogic/txl_p320_v1/txl_p320_v1.c index 8a336b3..7a1493d 100644 --- a/board/amlogic/txl_p320_v1/txl_p320_v1.c +++ b/board/amlogic/txl_p320_v1/txl_p320_v1.c @@ -539,6 +539,7 @@ const char * const _env_args_reserve_[] = "firstboot", "lock", "upgrade_step", + "bootloader_version", NULL//Keep NULL be last to tell END }; diff --git a/board/amlogic/txl_p321_v1/txl_p321_v1.c b/board/amlogic/txl_p321_v1/txl_p321_v1.c index 586dff9..9c7e268 100644 --- a/board/amlogic/txl_p321_v1/txl_p321_v1.c +++ b/board/amlogic/txl_p321_v1/txl_p321_v1.c @@ -670,6 +670,7 @@ const char * const _env_args_reserve_[] = "firstboot", "lock", "upgrade_step", + "bootloader_version", NULL//Keep NULL be last to tell END }; diff --git a/board/amlogic/txl_p323_v1/txl_p323_v1.c b/board/amlogic/txl_p323_v1/txl_p323_v1.c index 7e8c4f6..08d43da 100644 --- a/board/amlogic/txl_p323_v1/txl_p323_v1.c +++ b/board/amlogic/txl_p323_v1/txl_p323_v1.c @@ -670,6 +670,7 @@ const char * const _env_args_reserve_[] = "firstboot", "lock", "upgrade_step", + "bootloader_version", NULL//Keep NULL be last to tell END }; diff --git a/board/amlogic/txl_p341_v1/txl_p341_v1.c b/board/amlogic/txl_p341_v1/txl_p341_v1.c index 4d96b2c..18c4cf8 100644 --- a/board/amlogic/txl_p341_v1/txl_p341_v1.c +++ b/board/amlogic/txl_p341_v1/txl_p341_v1.c @@ -631,6 +631,7 @@ const char * const _env_args_reserve_[] = "firstboot", "lock", "upgrade_step", + "bootloader_version", NULL//Keep NULL be last to tell END }; diff --git a/board/amlogic/txl_p341_v2/txl_p341_v2.c b/board/amlogic/txl_p341_v2/txl_p341_v2.c index 4792ea2..4d77150 100644 --- a/board/amlogic/txl_p341_v2/txl_p341_v2.c +++ b/board/amlogic/txl_p341_v2/txl_p341_v2.c @@ -620,6 +620,7 @@ const char * const _env_args_reserve_[] = "firstboot", "lock", "upgrade_step", + "bootloader_version", NULL//Keep NULL be last to tell END }; diff --git a/board/amlogic/txl_p346_v1/txl_p346_v1.c b/board/amlogic/txl_p346_v1/txl_p346_v1.c index b1bf8be..a49c423 100644 --- a/board/amlogic/txl_p346_v1/txl_p346_v1.c +++ b/board/amlogic/txl_p346_v1/txl_p346_v1.c @@ -610,6 +610,7 @@ const char * const _env_args_reserve_[] = "firstboot", "lock", "upgrade_step", + "bootloader_version", NULL//Keep NULL be last to tell END }; diff --git a/board/amlogic/txlx_t962e_r321_v1/txlx_t962e_r321_v1.c b/board/amlogic/txlx_t962e_r321_v1/txlx_t962e_r321_v1.c index 04a6441..a7f2519 100644 --- a/board/amlogic/txlx_t962e_r321_v1/txlx_t962e_r321_v1.c +++ b/board/amlogic/txlx_t962e_r321_v1/txlx_t962e_r321_v1.c @@ -528,6 +528,7 @@ const char * const _env_args_reserve_[] = "firstboot", "lock", "upgrade_step", + "bootloader_version", NULL//Keep NULL be last to tell END }; diff --git a/board/amlogic/txlx_t962x_r311_v1/txlx_t962x_r311_v1.c b/board/amlogic/txlx_t962x_r311_v1/txlx_t962x_r311_v1.c index ce9010e..c8668dd 100644 --- a/board/amlogic/txlx_t962x_r311_v1/txlx_t962x_r311_v1.c +++ b/board/amlogic/txlx_t962x_r311_v1/txlx_t962x_r311_v1.c @@ -533,6 +533,7 @@ const char * const _env_args_reserve_[] = "firstboot", "lock", "upgrade_step", + "bootloader_version", NULL//Keep NULL be last to tell END }; diff --git a/board/amlogic/txlx_t962x_r314_v1/txlx_t962x_r314_v1.c b/board/amlogic/txlx_t962x_r314_v1/txlx_t962x_r314_v1.c index 2419385..4d417c7 100644 --- a/board/amlogic/txlx_t962x_r314_v1/txlx_t962x_r314_v1.c +++ b/board/amlogic/txlx_t962x_r314_v1/txlx_t962x_r314_v1.c @@ -523,6 +523,7 @@ const char * const _env_args_reserve_[] = "firstboot", "lock", "upgrade_step", + "bootloader_version", NULL//Keep NULL be last to tell END }; diff --git a/common/cmd_version.c b/common/cmd_version.c index 1be0667..7b15146 100644 --- a/common/cmd_version.c +++ b/common/cmd_version.c @@ -30,6 +30,22 @@ static int do_version(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) return 0; } +static int do_bootloadr_version(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) +{ + char s_version[24]; + strcpy(s_version, "01.01."); + strcat(s_version, U_BOOT_DATE_TIME); + printf("s_version: %s\n", s_version); + setenv("bootloader_version", s_version); + return 0; +} + +U_BOOT_CMD( + get_bootloaderversion, 1, 0, do_bootloadr_version, + "print bootloader version", + "" +); + U_BOOT_CMD( version, 1, 1, do_version, "print monitor, compiler and linker version", |