Age | Commit message (Collapse) | Author |
|
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>
|
|
Add implementation of board_mem_get_layout for overriding the memory layout.
Relates-to: ELB-3031
Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
|
|
Add implementation of board_mem_get_layout for overriding the memory layout.
Relates-to: ELB-3031
Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
|
|
Add implementation of board_mem_get_layout for overriding the memory layout.
Relates-to: ELB-3031
Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
|
|
Introduce weak function board_mem_get_layout() which allows overriding
the memory layout from board code e.g. handy to do our SKU handling.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
(cherry picked from commit e3baa4dcecb2ab6a70d8ec5617f544e2f4954027)
|
|
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>
|
|
Re-add select_dt_from_module_version to board_late_init which got
dropped when moving to the later downstream U-Boot version.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Fix booting gziped Image.gz format.
Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
|
|
Now usb is enumerated (and USB OTG can work in both peripheral and host
modes):
Apalis iMX8X # usb reset
resetting USB...
Bus usb@5b0d0000: usb dr_mode not found
USB EHCI 1.00
Bus usbh3: XHCI-imx8 init hccr 0x000000005b130000 and hcor 0x000000005b130080 hc_length 128
Register 2000820 NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus usb@5b0d0000 for devices... EHCI timed out on TD - token=0x80008c80
2 USB Device(s) found
scanning bus usbh3 for devices... 1 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found
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. Provide proper value for CONFIG_SYS_PROMPT
2. Enable pci command.
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>
|
|
Provide proper sys prompt, which should be "Colibri iMX8X #".
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>
|
|
There is no "apply" command enabled for "fdt".
Enable "apply" command to make overlays able to be applied.
Related-to: ELB-2907
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@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>
|
|
Fix broken reset command and removed pinctrl driver.
Fixes: 59f4c8a5ef("verdin-imx8mm: fix device tree and overlay support")
Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
|
|
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
|
|
The Toradex product is called apalis-imx8 consisting of SoM with
i.MX8QM and i.MX8QP SoCs.
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
|
|
The Toradex product is called apalis-imx8x consisting of SoM with
i.MX8QXP and i.MX8DX SoCs.
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
|
|
The Toradex product is called colibri-imx8x consisting of SoM with
i.MX8QXP and i.MX8DX SoCs.
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
|
|
as it is not used
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
|
|
This function is in Mek board so also add it to apalis-imx8 but comment it
out since ther is no console output with it in linux
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
|
|
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
|
|
With this function in I see no UART output in linux, so comment it
for now.
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
|
|
works also without so remove this old description.
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
|
|
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
|
|
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
|
|
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
|
|
This seems to be needed for iMX8 downstream U-Boot
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
|
|
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
|
|
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
|
|
So it is easier to compare to imx8qm-mek.c
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>
|
|
And also adjust it to our needs so it runs faster
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
|
|
The command "env import" is used in distro_bootcmd script.
Enabling it fixes the following bug:
=====================
=> boot
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
1836 bytes read in 17 ms (105.5 KiB/s)
Executing script at 80800000
117103 bytes read in 20 ms (5.6 MiB/s)
14 bytes read in 8 ms (1000 Bytes/s)
env - environment handling commands
Usage:
...
=====================
Related-to: ELB-2920
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
|
|
This provides correct system prompt for U-Boot console.
Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
|
|
Enabled DM_RESET so reset command works properly. Fixes this issue:
Verdin iMX8MM # reset
resetting ...
sysreset_walk_halt() System reset not supported on this platform
ERROR Please RESET the board
Relates-to: ELB-2918
Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
|
|
Add usbg1/usbg2 and appropriate aliases, so correct usbotg is used for
UMS.
Relates-to: ELB-2919
Signed-off-by: Igor Opaniuk <igor.opaniuk@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>
|
|
1. This enables hdp command for loading hdmi firmware
2. Cleanup of config with savefeconfig
Relates-to: ELB-2921
Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
|
|
Enable these Kconfig symbols:
TDX_CFG_BLOCK_EXTRA=y
TDX_HAVE_EEPROM_EXTRA=y
Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
(cherry picked from commit f818da701c42a3c16a165d2cfff0b113dd12f10c)
|
|
Add carrier board info printing during boot time:
U-Boot 2020.07-rc4-02435-g1756e05 (Jun 22 2020 - 22:43:59 +0300)
CPU: Freescale i.MX8MMQ rev1.0 at 1200 MHz
....
Carrier: Toradex Verdin Development Board V1.0A, Serial# 10622780
Verdin iMX8MM #
Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
(cherry picked from commit 06a2efde38372503e51bf6a6b347171348ec88c1)
|
|
Add migration routine from PID8 pre-stored values on EEPROM
(including sane value checks).
Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
(cherry picked from commit 1da2138819aa573b3d53f06bede90ccd6509bb82)
|
|
This introduces support for EEPROM as a storage for the main Toradex
config block and additional config blocks on extra EEPROM chips (on
carrier board or video adapters).
To enable EEPROM as a storage for the main config block:
TDX_HAVE_EEPROM=y.
For additional EEPROMs please enable this Kconfig symbol:
TDX_CFG_BLOCK_EXTRA=y.
Information about existing EEPROM chips is provided via Device Tree
using aliases.
You can also write configuration for the carrier board using
create_carrier subcommand for cfgblock. Example:
Verdin iMX8MM # cfgblock create_carrier
Supported carrier boards:
UNKNOWN CARRIER = [0]
Verdin Carrier Board = [1]
Choose your carrier board (provide ID): 1
Enter carrier board version (e.g. V1.1B): V1.0A
Enter carrier board serial number: 10622780
Also with barcode:
Verdin iMX8MM # cfgblock create carrier -y 0156100010622780
Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
(cherry picked from commit d3eedd52f8e244cc036db522bfff9549397a75ed)
|
|
Add defines for supported carrier boards and display adapters.
Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
(cherry picked from commit 65b107bd845a0df51d52acfdfaeda76934e0dd40)
|