Age | Commit message (Collapse) | Author |
|
Set mtest default end address to 0xB0000000, testing 512MB memory that
is fine with any of our SKU. Without this change mtest without
parameters just crash on module with 1GB of memory.
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
|
|
"rel_imx_5.4.70_2.3.6"
|
|
[ backport https://lore.kernel.org/all/20220421092358.132912-1-dev@pschenker.ch/ from mailing-list ]
systemd prints its messages on the last console= statement that it finds
in the kernel arguments. The current ordering sends the systemd messages
to tty1, by default this is the display.
Ensure that systemd sends its messages to the default UART, reorder the
console= statements accordingly.
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
Reviewed-by: Stefano Babic <sbabic@denx.de>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
When the 1st 16MB of DDR is ECC protected, the end of
DDR region is reserved for ECC data - 1MB out of 512M
and 2MB out of 1024M config.
Signed-off-by: Nitin Garg <nitin.garg@nxp.com>
(cherry picked from commit 0d9a65af80bfd6d2b10657e84a3e509f787dfb1f)
|
|
Reduce memory test area to 500Mb to support
memory test on 1GB SKU to avoid u-boot being overwritten.
Signed-off-by: Denys Drozdov <denys.drozdov@toradex.com>
|
|
Reserve 64M for Linux kernel image and relocate
kernel_addr_r to 0x96000000 to avoid overlaps with
other load addresses and either getting overwritten.
Signed-off-by: Denys Drozdov <denys.drozdov@toradex.com>
|
|
Reserve 64M for Linux kernel image and relocate
kernel_addr_r to 0x96000000 to avoid overlaps with
other load addresses and either getting overwritten.
Signed-off-by: Denys Drozdov <denys.drozdov@toradex.com>
|
|
Change the memory map for the latest Linux kernel image
to run 64M kernel image to avoid overlapping conflicts
with recent defconfig.
New Memory Map:
kernel: 0x4000_0000 - 0x43FF_FFFF (64M)
fdt: 0x4400_0000 - 0x444F_FFFF (5M)
load address: 0x4450_0000 - 0x46FF_FFFF (1M)
distro boot: 0x4700_0000 - 0x473F_FFFF (4M)
ram disk: 0x4740_0000 - 0x4B3F_FFFF (64M)
Signed-off-by: Denys Drozdov <denys.drozdov@toradex.com>
|
|
Drop Apalis iMX8X platform as no longer supported.
Signed-off-by: Denys Drozdov <denys.drozdov@toradex.com>
|
|
When booting the Toradex Easy Installer from USB recovery
select_dt_from_module_version is not automatically executed and thus
${soc} is not set correctly. Make the function available as a cli
command so it can be executed as part of the bootcmd_mfg.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Verdin iMX8M Plus on-module Ethernet device is eqos, while the optional
secondary Ethernet is fec, update the Ethernet aliases in the .dts file
so that ethaddr is set to eqos and eth1addr to fec.
Without this change, the Ethernet interfaces may have different MAC
addresses between Linux and U-Boot.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
update_boot command is more convenient to update u-boot.
User could download u-boot by tftp and type update_boot
Related-to: ELB-4149
Signed-off-by: Denys Drozdov <denys.drozdov@toradex.com>
|
|
update_boot command is more convenient to update u-boot.
User could download u-boot by tftp and type update_boot
Related-to: ELB-4149
Signed-off-by: Denys Drozdov <denys.drozdov@toradex.com>
|
|
The following expression is used to construct the device tree name:
fdtfile=${soc}-colibri-${fdt_board}.dtb
- soc is set dynamically (either imx8qxp imx8dx)
- fdt_board can be modified by the user (eval-V3, aster, iris/iris-V2)
Related-to: ELB-2800
Signed-of-by: Stefano Viola <stefano.viola@toradex.com>
|
|
The following expression is used to construct the device tree name:
fdtfile=${soc}-apalis${variant}-${fdt_board}.dtb
- soc is set dynamically (either imx8qp or imx8qm),
- variant is set dynamically (either empty or -v1.1),
- fdt_board can be modified by the user (eval or ixora)
Related-to: ELB-3338
Signed-off-by: Denys Drozdov <denys.drozdov@toradex.com>
|
|
Toradex Linux kernel supports different device trees
for Apalis iMX8QM and Apalis iMX8QP SKUs and
board revisions. Update apalis-imx8 to support both
QM and QP revisions
Related-to: ELB-3338
Signed-off-by: Denys Drozdov <denys.drozdov@toradex.com>
|
|
Enable usb configs options for imx8mn audio board 2 targets
Signed-off-by: Adrian Alonso <adrian.alonso@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit 0f2ac0ce21ef81769a273733d730a98fa090950e)
|
|
Enable usb configs options for imx8mm audio board 2 targets
Signed-off-by: Adrian Alonso <adrian.alonso@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit ef033c71ee133c9d49f10432612a1f48bd565d86)
|
|
The distro boot script for TEZI has another name to prevent u-boot of
regular BSP trying to boot TEZI image. Expand the usage of
TDX_EASY_INSTALLER Kconfig option to seek and use the TEZI-specific
name of the script.
Related-to: TEI-791
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
|
|
The distroboot script system scans boot_scripts variable and
try to find and use to boot each script name mentioned there.
Setting global variable "script" breaks this general mechanism
of searching and running a distro boot script.
Remove global variables "script" to fix working the general
distro boot script mechanism.
Related-to: TEI-791
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
|
|
Variable rootpath is used by distroboot script as a default path to
a rootfs on an NFS server. Set this variable properly for all aarch64
modules, which support a Distro Boot.
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
|
|
toradex_imx_v2020.04_5.4.70_2.3.0
Update to NXP BSP tag rel_imx_5.4.70_2.3.2
https://source.codeaurora.org/external/imx/uboot-imx/tag/?h=rel_imx_5.4.70_2.3.2
Related-to: ELB-3957
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Remove CONFIG_FEC_MXC_PHYADDR, CONFIG_FEC_XCV_TYPE and PHY_ANEG_TIMEOUT
in favour of device tree configuration via DM_ETH_PHY/PHYLIB.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Eqos is set to primary as it is the on-module Ethernet interface
nothing to do with its MDIO usage which BTW isn't even correct in the
i.MX 8M Plus LPDDR4 EVK case!
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Remove DWC_NET_PHYADDR in favour of device tree configuration via
DM_ETH_PHY/PHYLIB.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
This adds initial minimal support for the Toradex Verdin iMX8M Plus Quad
4GB WB IT V1.0A and Toradex Verdin iMX8M Plus Quad 2GB V1.0A modules.
They are strapped to boot from eFuses which are factory fused to
properly boot from their on-module eMMC. U-Boot supports booting from
the on-module eMMC or, if the recovery button/pin is asserted, via USB
serial download aka SDP support.
Functionality wise the following is known to be working:
- eMMC, 8-bit and 4-bit MMC/SD card slots
- Ethernet (but only 2nd one available on the Verdin Development board)
- GPIOs
- I2C
Boot sequence is:
SPL ---> ATF (TF-A) ---> U-boot proper
ATF, U-boot proper and u-boot.dtb images are packed into a FIT image,
loaded by SPL.
Boot:
U-Boot SPL 2020.04-00217-gfad48768ba (Nov 18 2020 - 14:22:31 +0100)
DDRINFO: start DRAM init
DDRINFO: DRAM rate 4000MTS
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
Normal Boot
Trying to boot from BOOTROM
Find FIT header 0x4803afa0, size 855
Need continue download 1024
Download 833424, total fit 834544
NOTICE: BL31: v2.2(release):imx_5.4.24_er3-6-g0a236bda5
NOTICE: BL31: Built : 13:40:19, Nov 12 2020
U-Boot 2020.04-00217-gfad48768ba (Nov 18 2020 - 14:22:31 +0100)
alloc_simple() alloc space exhausted
CPU: i.MX8MP[8] rev1.0 1800 MHz (running at 1200 MHz)
CPU: Commercial temperature grade (0C to 95C) at 46C
Reset cause: POR
DRAM: 4 GiB
MMC: FSL_SDHC: 1, FSL_SDHC: 2
In: serial
Out: serial
Err: serial
Model: Toradex Verdin iMX8M Plus Quad 4GB Wi-Fi / BT IT V1.0A, Serial# 06775455
MISSING TORADEX CARRIER CONFIG BLOCKS
BuildInfo:
- ATF 0a236bd
- U-Boot 2020.04-00217-gfad48768ba
Detect USB boot. Will enter fastboot mode!
Net:
Warning: ethernet@30bf0000 (eth1) using random MAC address - 56:c0:c6:84:63:a0
eth0: ethernet@30be0000, eth1: ethernet@30bf0000 [PRIME]
Fastboot: Normal
Boot from USB for mfgtools
*** Warning - Use default environment for mfgtools
, using default environment
Run bootcmd_mfg: fastboot 0
Hit any key to stop autoboot: 0
Verdin iMX8MP #
Related-to: ELB-3208
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Enable and set preboot var with fdtfile evaluation.
It will be checked and run immediately before starting the
CONFIG_BOOTDELAY countdown and/or running the auto-boot command resp.
entering interactive mode.
This provides possibility to use different boot cmds in interactive mode
without manual setting fdtfile value, as it it's already evaluated
before entering interactive mode.
Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
|
|
Drop legacy nfsboot script in favor of distroboot DHCP boot.
Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
|
|
Use the same name of DHCP Distroboot script as in regular eMMC case
Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
|
|
Use $load_cmd for hdpload command, which is set by distro_bootcmd.
As "run $setup" is invoked only by our distroboot script, this save to
do that.
Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
|
|
Use $load_cmd for hdpload command, which is set by distro_bootcmd.
As "run $setup" is invoked only by our distroboot script, this save to
do that.
Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
|
|
Use $load_cmd for hdpload command, which is set by distro_bootcmd.
As "run $setup" is invoked only by our distroboot script, this save to
do that.
Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
|
|
V1.1A HW switched the PMIC from BD71837 to PCA9450.
- If only one PMIC is configured in include/configs/*.h use that
unconditional.
- Detect PCA9450 PMIC with a fallback to BD71837 PMIC if not found.
- Disable combined DVS in PCA9450_BUCK123_DVS.
- Increase DDR Voltage to 0.95V as we use a 1.5GHz RAM.
- Configure WDOG_B behaviour.
Copied and adapted the PMIC initialization from
board/freescale/imx8mm_ab2/spl.c
Related-to: ELB-3130
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
We need a delay on RGMII TXC clock line by 2ns to accomodate to the
data-line edges. In the RGMII standard this has to be done by the MAC
for TXC and by the PHY for RXC.
fsl,rgmii_txc_dly that is used in linux-kernel is not implemented in
U-Boot so use the actual implemented define FEC_ENET_ENABLE_TXC_DELAY
RXC delay will be done by KSZ9131 PHY.
Related-to: ELB-3056
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
|
|
Variable "kernel_image" is used in boot.scr script only, that sets
its own default value to the value of "boot_file" or constant string
in case "kernel_image" is not set.
The default name of the kernel image shipped with BSP 5.0 is "Image.gz".
Setting kernel_image="Image" as a predefined u-boot variable
breaks booting system with modern version of boot.scr, whereas
renaming it fixes booting with modern script and don't break working
of earlier versions of boot.scr.
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
|
|
When booting from USB for mfgtools, 'bootcmd_mfg' must be set to be
able to boot with default env.
This fixes a Tezi recovery not boot issue on apalis-imx8x.
Relates-to: TOR-1399
Signed-off-by: Ming Liu <ming.liu@toradex.com>
|
|
When booting from USB for mfgtools, 'bootcmd_mfg' must be set to be
able to boot with default env.
This fixes a Tezi recovery not boot issue on colibri-imx8x.
Relates-to: TOR-1399
Signed-off-by: Ming Liu <ming.liu@toradex.com>
|
|
Fix booting gziped Image.gz format.
Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
|
|
Provide proper value for FEC_MXC_PHYADDR, which fixes broken FEC1.
Now ethernet is functional:
Net: eth0: ethernet@5b040000 [PRIME]
....
Apalis iMX8X # dhcp
BOOTP broadcast 1
BOOTP broadcast 2
DHCP client bound to address 192.168.88.254 (578 ms)
Using ethernet@5b040000 device
TFTP from server 192.168.88.2; our IP address is 192.168.88.254
Filename 'zImage'.
Load address: 0x80280000
Loading: ################################################## 9 MiB
6.5 MiB/s
done
Bytes transferred = 9400832 (8f7200 hex)
Relates-to: ELB-2948
Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
|
|
1. Fix issue with fdt_addr_r, when trying to write to address provided
U-Boot reports this issue:
** Reading file would overwrite reserved memory **
2. Provide different loadaddr, which is different to kernel_addr_r,
which lets as to use it for Image.gz boot image format.
Relates-to: ELB-1372
Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
|
|
Correct loadaddr, so it doesn't overlap with kernel_addr_r.
Relates-to: ELB-1372
Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
|
|
1. Drop fdt_addr_r duplicate
2. Correct kernel load address, as it doesn't fit into the old one and
overlaps loaded dtb which leads to this error:
14 bytes read in 18 ms (0 Bytes/s)
33118720 bytes read in 995 ms (31.7 MiB/s)
ERROR: Did not find a cmdline Flattened Device Tree
FDT and ATAGS support not compiled in - hanging
ERROR Please RESET the board
Now kernel boots properly:
33118720 bytes read in 994 ms (31.8 MiB/s)
Flattened Device Tree blob at 43000000
Booting using the fdt blob at 0x43000000
Loading Device Tree to 00000000bd6f8000, end 00000000bd729fff ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 5.4.47-5.0.0-devel+git.98042fb779d6 (oe-user@oe-host) (gcc version 9.3.0 (GCC)) #1 SMP PREEMPT Thu Aug 20 22:34:15 UTC 2020
[ 0.000000] Machine model: Toradex Verdin iMX8M Mini WB on Verdin Development Board
...
TDX Wayland with XWayland 4.0.0-devel-202008+build.6 (zeus) verdin-imx8mm ttymxc0
Verdin-iMX8MM_Console-Image
verdin-imx8mm login:
Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
|
|
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
|
|
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
|
|
- Devicetree naming corrected
- Changed addresses as follows:
* SYS_SDRAM_BASE 0x80000000 0.125MiB
* SYS_TEXT_BASE 0x80020000 2.375MiB
* kernel_addr_r 0x80280000 45.5MiB
* fdt_addr_r 0x83000000 1MiB
* scriptaddr 0x83100000 15MiB
* __RESERVED__ 0x84000000 48MiB
* loadaddr 0x87000000 48MiB
* ramdisk_addr_r 0x8a000000 288MiB (to hdp_addr)
* SYS_MEMTEST_START 0x90000000
* hdp_addr 0x9c000000
* SYS_MEMTEST_END 0xC0000000
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
|
|
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
|
|
This fixes distroboot script invocation and finally gets Linux
kernel booting:
ERROR: Did not find a cmdline Flattened Device Tree
FDT and ATAGS support not compiled in - hanging
ERROR ### Please RESET the board
With this fix kernel boots:
=> boot
MMC: no card present
MMC: no card present
switch to partitions #0, OK
mmc0(part 0) is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
1243 bytes read in 14 ms (85.9 KiB/s)
106496 bytes read in 13 ms (7.8 MiB/s)
Loading hdp firmware from 0x000000009c000000 offset 0x0000000000002000
Loading hdp firmware Complete
105758 bytes read in 15 ms (6.7 MiB/s)
21563904 bytes read in 650 ms (31.6 MiB/s)
Booting using the fdt blob at 0x83800000
Loading Device Tree to 00000000fd634000, end 00000000fd650d1d ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.14.170-3.0.4+gbaa6c24240a4 (oe-user@oe-host) (gcc version 8.2.0 (GCC)) #1 SMP PREEMPT Tue Apr 21 04:11:13 UTC 2020
[ 0.000000] Boot CPU: AArch64 Processor [410fd034]
[ 0.000000] Machine model: Toradex Apalis iMX8QM/QP on Apalis Evaluation Board
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] Reserved memory: created CMA memory pool at 0x0000000096000000, size 960 MiB
[ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x0000000090400000, size 28 MiB
[ 0.000000] OF: reserved mem: initialized node rpmsg_dma@0x90400000, compatible id shared-dma-pool
[ 0.000000] NUMA: No NUMA configuration found
[ 0.000000] NUMA: Faking a node at [mem 0x0000000080200000-0x00000008ffffffff]
[ 0.000000] NUMA: NODE_DATA [mem 0x8fff5a780-0x8fff5c57f]
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000080200000-0x00000000ffffffff]
[ 0.000000] Normal [mem 0x0000000100000000-0x00000008ffffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000080200000-0x0000000083ffffff]
[ 0.000000] node 0: [mem 0x0000000086400000-0x000000008fffffff]
[ 0.000000] node 0: [mem 0x0000000094c00000-0x00000000ffffffff]
[ 0.000000] node 0: [mem 0x0000000880000000-0x00000008ffffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000080200000-0x00000008ffffffff]
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.1 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000] psci: SMC Calling Convention v1.1
[ 0.000000] percpu: Embedded 23 pages/cpu s53656 r8192 d32360 u94208
Relates-to: ELB-2927
Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
|
|
Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
|
|
Related-to: ELB-1299
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
(cherry picked from commit 3173b9aa17bc4c2580076376942a9ee1b6b8f636)
(cherry picked from commit d2bca738761fb78dc86090f3118cd81c07798fe1)
|