Age | Commit message (Collapse) | Author |
|
This introduces automatic boot counter that increases after every reset.
After a power-on reset, it will be initialized with 1, and each
reboot will increment the value by 1. By default it's disabled
if bootlimit isn't set.
To enable this feature you have set bootcount limit ("bootlimit"),
alternate boot action ("altbootcmd") that will be performed if
the new value of bootcount exceeds the value of bootlimit, and
"upgrade_available" to let U-Boot automatically increase and save
the counter value after every reset:
> setenv bootlimit 5
> setenv upgrade_available 1
> setenv altbootcmd "bootm ..."
In case the bootlimit exceeds, the message will be shown and albootcmd
executed:
Warning: Bootlimit (5) exceeded. Using altbootcmd.
To reset bootcount run:
> bootcount reset
Print current value:
> bootcount print
Relates-to: ELB-2703
Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
|
|
Enable these Kconfig symbols:
TDX_CFG_BLOCK_EXTRA=y
TDX_HAVE_EEPROM_EXTRA=y
Relates-to: ELB-1402
Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
|
|
This commit makes u-boot choose the right variant wifi or nonwifi
of the devicetree with the information stored in toradex configblock.
Related-to: ELB-2642
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
|
|
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
|
|
All Toradex modules have OF_LIBFDT_OVERLAY enabled but not Verdin iMX8MM so
far. This commit enables devicetree overlay capabilities on U-Boot for Verdin
iMX8MM.
Tested with ATF rel_imx_4.14.98_2.3.1_patch, firmware-imx-8.1.1 and imx-mkimage
imx_4.14.98_2.3.0.
Signed-off-by: Stefan Eichenberger <stefan.eichenberger@toradex.com>
|
|
Related-to: ELB-2322
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
1. Enable CONFIG_SNVS_SEC_SC_AUTO by default
2. Move BOOTAUX_* defines to defconfig
Related-to: ELB-2605
Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
|
|
1. MMC_UHS/HS_ enable in defconfig by default
2. VDD_DRAM/VDD_SOC changes in SPL
3. FEC anatop clock fixes
Related-to: ELB-2605
Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
|
|
1. Adding power-up of base board via SCFW
2. Moved BOOTAUX defines to defconfig
Related-to: ELB-2605
Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
|
|
1. Enable CONFIG_SNVS_SEC_SC_AUTO by default
2. Move BOOTAUX_* defines to defconfig
Related-to: ELB-2605
Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
|
|
This commit adds initial support for the Toradex Verdin iMX8MM 2GB WB IT
V1.0A module. They are now strapped to boot from eFuses which are
factory fused to properly boot from their on-module eMMC. U-Boot
supports either booting from the on-module eMMC or may be used for
recovery purpose using the universal update utility (uuu) aka mfgtools
3.0.
Functionality wise the following is known to be working:
- eMMC, 8-bit and 4-bit MMC/SD card slots
- Gigabit Ethernet
- GPIOs
- I2C
- USB_1 peripheral: fastboot or ums
- USB_2 host: USB mass storage
To prepare the program image for eMMC fastboot using imx-mkimage and
subsequently flash it using U-Boot proceed as follows:
cd imx-mkimage/
make SOC=iMX8MM flash_evk_emmc_fastboot
load mmc 1:1 $loadaddr flash.bin
setexpr blkcnt ${filesize} + 0x1ff && setexpr blkcnt ${blkcnt} / 0x200
mmc dev 0 1
mmc write ${loadaddr} 0x2 ${blkcnt}
To prepare the program image for use with USB recovery aka serial
downloader using imx-mkimage and subsequently download using uuu
with an uuu.auto script proceed as follows:
cd imx-mkimage/
make SOC=iMX8MM flash_evk
uuu_version 1.3.34
SDP: boot -f flash.bin
CFG: SDPU: -vid 0x0525 -pid 0xb4a4
SDPU: delay 1000
SDPU: write -f flash.bin -offset 0x57c00
SDPU: jump
Fusing i.MX 8MM SoC and configuring eMMC for fastboot (already done
during manufacturing):
fuse prog 1 3 0x100020d6 (BT_FUSE_SEL, eMMC boot, SD1, fast boot, 4-bit DDR, high speed, 1.8V)
fuse prog 2 2 0x00000001 (enable boot ack)
mmc bootbus 0 1 0 2 (4-bit, reset bus width, DDR)
mmc partconf 0 1 1 0 (booting from boot area partition 1, send acknowledge)
SD manufaccture boot:
SD manufacture boot only works as long as the module is un-fused and
SD_1_PWR_EN is bypassed on the carrier board.
cd imx-mkimage/
make SOC=iMX8MM flash_evk
sudo dd if=iMX8M/flash.bin of=/dev/mmcblk0 bs=1024 seek=33
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Just like on any of our other modules also use the module type as hush
shell prompt.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Enable device tree overlay support which is used in the current dtconf
implementation in TorizonCore.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
Use one second for the bootdelay like on all other toradex boards
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
|
|
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
|
|
Initial board support for Apalis iMX8QXP using a copy of Colibri iMX8QXP.
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
|
|
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Enable env import by default. It is enabled in other modules too
and it is required to boot TorizonCore.
Signed-off-by: Ming Liu <liu.ming50@gmail.com>
|
|
Enable USB fastboot support (CONFIG_FASTBOOT).
Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
|
|
Enable env import by default. It is enabled in other modules too
and it is required to boot TorizonCore.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Clean-up configuration moving some stuff from include header file to
Kconfig defconfig.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Fix Ethernet functionality. The FEC clock on i.MX 8X really has an
additional by 2 divider plus our design requires the ENET0_RCLK50M_OUT
on the ENET0_RGMII_TXC pin to be turned on for the Micrel PHY.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Clean-up configuration moving some stuff from include header file to
Kconfig defconfig.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit eb0ed0e4283385700db1e5080d78f9a2684f98a5)
|
|
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit 3a5cc1cf85b8e22da78d794a2d71c03490f500b6)
|
|
Initial board support for Colibri iMX8QXP using a copy of Apalis iMX8.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit 62f0f03e1acb4bb6b0fcca8d4e9bd4d2df04ad33)
(cherry picked from commit be14c3ea1850e2614883c86b62fd1c3a1828eac2)
|
|
Add Toradex config block support for i.MX8QM.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
(cherry picked from commit 18426b50681e6cd64ab5977f0ba84efd3f7c4495)
(cherry picked from commit c6d0e1042170d273a5b5434abe867213155d5582)
(cherry picked from commit ae31e946da33510a352795de09aa1c0ea9fc8280)
(cherry picked from commit 0798437c661ef3ca11f84fb45b4cce5b7ac145d9)
|
|
Extend bootcmd to also load the HDMI firmware through hdp
command.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
(cherry picked from commit 41ef3986ae21dc6fcc4355ab53ccc809d80d361e)
(cherry picked from commit 94d78f51638f4ab3519b845c4fbffe92865cc5b3)
(cherry picked from commit cad9542ed852cee3d3dd0b6c25a36a0de6f22c29)
(cherry picked from commit 331fc0f28dc6b3a4938c66a5788041e527eabc8b)
|
|
Make sure that all pins connected to the Micrel KSZ9031 PHY
are muxed. Properly reset the PHY after all muxing has been
applied. This makes sure that strapping is not overwritten by
the SoC default mux (particularly it makes sure that CLK125_NDO
is not driven low during reset).
Make sure to not use CONFIG_DM_ETH as it seems to break ETH
support as is.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
(cherry picked from commit f0a1ceb6f5e2ab3b3618190541b1e7a9fd4c1e4a)
(cherry picked from commit 8f6405070189a8744c2f6a9d9a6e041554fb9046)
(cherry picked from commit 6f24c637fd7725a27249d6a950f587134f30b97c)
(cherry picked from commit 1b3c97e1eb50a56066820596a6b1b83da465af7f)
|
|
The Apalis iMX8 module does not have PCA9557 GPIO controllers
on the module.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
(cherry picked from commit c80b3bfbe693d5a8851129f4878d0cd3a7325d13)
(cherry picked from commit 898ae105703cd0019a542bc0a17649339c934fa6)
(cherry picked from commit 69d385444efa79d2909f772c4a4b404d1bd7274d)
(cherry picked from commit 0f5887d5b80f8535a7f422b73d7a0bf4a4e445af)
|
|
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
(cherry picked from commit aa830cb6a7c953ce85232b2ae951543ab1060948)
(cherry picked from commit f6c37cdf31633a541078d0813ab4f59f6b80babb)
(cherry picked from commit ae70d02213beabcd60853f655e2ff9849375c45c)
(cherry picked from commit ba629689c627a571d5902a1c50fe9927424b45c6)
|
|
Initial board support for Apalis iMX8 using a copy of NXP
iMX8QM ARM2 LPDDR4 board.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
(cherry picked from commit 68e401998ba0654292b7914b85433d8453202ec8)
(cherry picked from commit 6b9234fa1f5889f0eeecc6147afffbc859933c99)
(cherry picked from commit 0b7feded806717b4292615373ed6c018324b8ef5)
Conflicts:
arch/arm/cpu/armv8/imx8/Kconfig, file moved
(cherry picked from commit 393dd8dd4061833fcc3cfd85886d49160b515ce0)
|
|
iMX8DX MEK board has similar design with 8QXP MEK. The major changes are
1. DDR changed to 16bits 1GB DDR part
2. USB3.0 is removed and only support OTG on typec port. (No SW change needed)
This patch adds new defconfigs and DTS file for this new board.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit 5efb4275f6cfefb5dd342f2e498834b40b989883)
|
|
Android does not use usb host function in uboot, and also TCPC function
failure may cause the fastboot does not work, remove all CONFIG_USB_TCPC
configuration items so TCPC is not used in uboot.
Change-Id: I8c54e144517160bd7234a8ae28c6bc83734be538
Signed-off-by: faqiang.zhu <faqiang.zhu@nxp.com>
|
|
Address 0x8880_0000 is reserved for M4 image on imx8q, which
leaves limited memory region for the malloc pool. The avb
will consume much heap memory to verify the kernel and dtbo
image, memory conflicts may happen as the kernel/dtbo image
size is getting larger.
As the avb will load kernel/dtbo in every avb_slot_verify(), but
will only free the memory after both slots are checked(if needed).
And for trusty enabled platforms, extra heap memory will be used
to do the hash calculation.
This commit will free the slot memory once it's marked as unbootable
and will use fixed memory started from CONFIG_FASTBOOT_BUF_ADDR to
help store the data to do the hash calculation. With above change,
we get a chance to decrease the malloc pool size.
Test: boot on imx8qxp and imx8mn.
Change-Id: Id95b9becf6fa7fae4f120a4dc9e9a3ba90da578c
Signed-off-by: Ji Luo <ji.luo@nxp.com>
|
|
Add a module to configure the tamper and secure violation of
the SNVS using the SCU API.
The module also adds some commands:
- snvs_cfg: Configure the SNVS HP and LP registers
- snvs_dgo_cfg: Configure the SNVS DGO bloc if present (8QXP)
- tamper_pin_cfg: Change the configuration of the tamper pins
- snvs_clear_status: Allow to write to LPSR and LPTDSR to clear status bits
Signed-off-by: Franck LENORMAND <franck.lenormand@nxp.com>
(cherry picked from commit 75aa7f2254f0883aa14568ac32702b1ca15367e4)
|
|
Change configs to make imx8mn lpddr4 works on Android.
Test: build and boot.
Change-Id: Ibd27d73a973660a7d80bf85ba285f5f7619ecbb8
Signed-off-by: Ji Luo <ji.luo@nxp.com>
|
|
Add build target for imx8mn lpddr4 board based on
config imx8mn_evk_defconfig.
Change-Id: Iceca7cb65c6417fc3da1878323f8a65ffc31e1ef
Signed-off-by: Ji Luo <ji.luo@nxp.com>
|
|
Both imx8mn/imx8mm EVK boards have eMMC 5.1 chip and support SD3.0
So we enable the HS400ES and UHS configs to enhance eMMC/SD access.
The change also needs to set usdhc clock to 400Mhz and update compatible
string to fsl,imx8mm-usdhc
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
|
|
iMX8MQ EVK board has a eMMC5.0 chip and supports SD3.0, so enable the UHS
and HS400 configs to enhance the eMMC/SD access.
The change also needs to set usdhc clock to 400Mhz, and add the off-on-delay-us
to SD reset pin, otherwise some SD cards will fail to select UHS mode in
re-initialization.
Signed-off-by: Ye Li <ye.li@nxp.com>
|
|
Add support for iMX8MN LPDDR4 EVK board which uses 2GB LPDDR4 and
PCA9450B PMIC.
Signed-off-by: Ye Li <ye.li@nxp.com>
|
|
To align with other iMX8M platforms, use CONFIG_TARGET_IMX8MN_DDR4_EVK for
DDR4 EVK board and will use CONFIG_TARGET_IMX8MN_EVK for LPDDR4 EVK.
Signed-off-by: Ye Li <ye.li@nxp.com>
|
|
The u-boot-spl.bin is getting larger and it will break the ddr
firmware which will cause ddr training fail. Disable unnecessary
configs for imx8mn to reduce the spl image size.
Test: boot on imx8mn_evk.
Change-Id: Id105b0adf8669e471752495f78012314efad24c0
Signed-off-by: Ji Luo <ji.luo@nxp.com>
|
|
"CONFIG_IMX_TRUSTY_OS=y" is added to the corresponding defconfig files
to include trusty related code.
"CONFIG_SPL_ENV_SUPPORT=y" and "CONFIG_SPL_LIBDISK_SUPPORT=y" are added
because "mmc_get_env_dev()" and "blk_get_dev()" are invoked in SPL stage
with trusty related code.
"CONFIG_SHA256=y" is added since SPL will access RPMB now.
MACROs are added in corresponding header files. standard android uboot
has more content than android auto uboot, the uboot malloc pool size is
changed from 76MB to 86MB to make the boot process can be handed over to
kernel without malloc problem.
Change-Id: I7505adeb2e30ddaecc8217cee991e6d7b0785af0
Signed-off-by: faqiang.zhu <faqiang.zhu@nxp.com>
|
|
add below two defconfig files:
configs/imx8qm_mek_android_trusty_defconfig
configs/imx8qxp_mek_android_trusty_defconfig
they are directly copied from below two files for the ease of tracking
the modifications:
configs/imx8qm_mek_android_defconfig
configs/imx8qxp_mek_android_defconfig
Change-Id: I84ca6ce62698b48bceb651df95ad61cf3e565e99
Signed-off-by: faqiang.zhu <faqiang.zhu@nxp.com>
|
|
Open configs to enable dual bootloader feature for imx8m
platforms.
Test: A/B slot switch and spl recovery mode test.
Change-Id: I3fe0217c858b4cb1e06bd76f829a4f8977370cde
Signed-off-by: Ji Luo <ji.luo@nxp.com>
|
|
Duplicate configs to enable dual bootloader for imx8m.
Change-Id: I4e03b73dc42f036e0c8d477ce5d2a6892ac2938c
Signed-off-by: Ji Luo <ji.luo@nxp.com>
|
|
This CONFIG_ENV_DEFAULT_NOWHERE config must be enabled for USB download
when we implemented the override function to select env storage medium.
To avoid adding it to every imx8mn defconfig, enable the config as default
on imx8mn.
Signed-off-by: Ye Li <ye.li@nxp.com>
|
|
Remove the defconfig for flexspi boot, we can use one defconfig
for both SD and flexspi.
Signed-off-by: Ye Li <ye.li@nxp.com>
|