Age | Commit message (Collapse) | Author |
|
Do not undef CMD config defines which are set by Kconfig. This
allows to enable those commands using Kconfig.
(Taken from commit 26f0fb6c61e94f8ba52bcc0b4946d378e682ccff
'apalis-imx8: do not undef configs configured using Kconfig')
Related-to: TOR-498
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Sometimes an ethernet PHY interface can’t complete
auto-negotiation and returns “timeout” error.
Overriding default timeout value fixes this issue.
Related-to: #58999
Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@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>
|
|
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Copied from linux, branch nxp/imx_4.14.98_2.2.0 @ e6c2f6322962.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
This will actually clear the value of a variable that is potentially
still existing.
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
|
|
Define CONFIG_SKIP_RESOURCE_CHECING which skips the downstream
proprietary resource checking preventing us from booting any kind of
mainline device tree based Linux kernels.
While at it also fix some indentations/whitespaces.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
|
|
tdxargs are meant for temporary adjusting U-Boot. Use defargs
that suits this purpose better.
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
|
|
As we have issues with MSI enabled we will disable it in default
environment.
Issue: Kernel panic
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
|
|
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
|
|
This commit uses the correct devicetree filename and makes sure, it
doesn't use earlycon by default
while at it make sure to use only tabs.
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>
|
|
The environment variable fdtfile is used in include/config_distro_bootcmd.h
hence we should make sure it is set by default.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
Rather than using NXP proprietary boot script transition to using
proper distroboot one.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
FDT relocation disabled seems to cause issues when using TorizonCore,
probably related to ramdisk.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
Distro boot scripts require scriptaddr. Make sure it is defined to
a sensible address for both Apalis iMX8 as well as Colibri iMX8X.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Change default device tree to the regular one now that parallel RGB is
working.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
The current loading address for the ramdisk images overlaps with
reserved memory for the decoder_boot section of the device tree (see
fsl-imx8qxp.dtsi). This generates a kernel panic early in the boot
process when trying to access that memory region.
Signed-off-by: Ming Liu <liu.ming50@gmail.com>
|
|
Do not undef CMD config defines which are set by Kconfig. This
allows to enable those commands using Kconfig.
Signed-off-by: Ming Liu <liu.ming50@gmail.com>
|
|
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Fix ramdisk relocation address to work accross all our use cases.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
FDT relocation disabled seems to cause issues when using TorizonCore,
probably related to ramdisk.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
Distro boot scripts require scriptaddr. Make sure it is defined to
a sensible address.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
When booting U-Boot in recovery mode the default boot command for
automatic boots is substituted by bootcmd_mfg. For tezi we want this
command to source the boot script inside the boot container that the uuu
utility loads. The precise load address of this script is the one used
in the mkimage_imx8 utility to generate the boot container.
NOTE: this change affects both tezi U-Boot as well as BSP U-Boot. Since
currently only tezi is supporting recovery mode, this shouldn't be a
problem. Otherwise, consider adding preprocessor safeguards.
Signed-off-by: Gerard Salvatella <gerard.salvatella@toradex.com>
|
|
Tezi uses Distro Boot by default. Enable it and modify the appropriate
environment.
Signed-off-by: Gerard Salvatella <gerard.salvatella@toradex.com>
|
|
By default bootm can load kernels of up to 5MB. Our universal kernels in
imx8 are much larger than this, even when compressed. Since recovery
tezi needs to load from memory, allow for larger sizes to be loaded by
bootm.
Signed-off-by: Gerard Salvatella <gerard.salvatella@toradex.com>
|
|
Do not undef CMD config defines which are set by Kconfig. This
allows to enable those commands using Kconfig.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
The current loading address for the ramdisk images overlaps with
reserved memory for the decoder_boot section of the device tree (see
fsl-imx8qm.dtsi). This generates a kernel panic early in the boot
process when trying to access that memory region.
Signed-off-by: Gerard Salvatella <gerard.salvatella@toradex.com>
|
|
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Fused modules boot from eMMC rather than SD card.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Clean-up board file.
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>
|
|
Adjust copyright/licensing headers e.g. universally using SPDX license
identifier.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
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>
|
|
As long as the parallel RGB interface bring-up is not completed default
to dsihdmi device tree instead.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Fused modules boot from eMMC rather than SD card.
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>
|
|
Adjust copyright/licensing headers e.g. universally using SPDX license
identifier.
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)
|
|
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit 6557f1c6c8f5c5e6a5585459ab77e3d994ffff81)
(cherry picked from commit 6efbcb8cd6740e60fc53f9033d60cc27f62b3c74)
|
|
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit 969f430f983d602afd83b6dd75b299e51463eae9)
(cherry picked from commit 2963361493e0f3df76f3a25202a56a76e69fd63f)
|
|
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)
|
|
U-Boot in the current 4.9.123 form freezes when initalizing HSIO.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit 68a2be9b6247eaf5ac577082d8d5c0c930d37132)
(cherry picked from commit e819b0c2d5790ce7b0c2bfc0501eb6e79e98db16)
|
|
Current samples are strapped to boot from SD card by default. Also
make sure that the default U-Boot environment boots from SD card.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
(cherry picked from commit 67cf06ee02ba39a93fbfd4ed2e82509ec86ba53e)
(cherry picked from commit 82ffe3f0c08c9c4f8e988e1402dc814b71e3be92)
(cherry picked from commit 1d7c4df41d20cb2447a6512de42475f8d754c905)
(cherry picked from commit bfaf217291cbe34381ce5d5e9a63a700d211c48d)
|