Age | Commit message (Collapse) | Author |
|
Use USDHC1 which is eMMC to store U-Boot environment and as default
root device for Linux.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
Remove GPIOs used on the validation board but not required on
Apalis iMX8.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
NXP LPUART1 is used as Apalis UART1, which is the main console
on our Linux BSP.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
Make sure we return the clock of UART1 when building for
Apalis iMX8. NXP LPUART1 is used as Apalis UART1, which
is typically the main console on our Linux BSP.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
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>
|
|
The Apalis iMX8 module does not have PCA9557 GPIO controllers
on the module.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
Initial board support for Apalis iMX8 using a copy of NXP
iMX8QM ARM2 LPDDR4 board.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
The codes use the QSPI when booting from Flexspi, this cause u-boot prints
out unknown device if we boot from Flexspi NOR.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit 5176bcb214bbb582c990273187fd752552455035)
|
|
Correct Copyright
Signed-off-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit b5ac280de59fdec71df972ef93639b4746c7f43e)
|
|
It need to send muti data through usb for fastboot commands(fastboot getcar all)
this patch use usb_ep_queue to queue usb data.
Change-Id: I5fd256868ac43163a21417a0634dd194e31f3eb7
Signed-off-by: Li Jun <jun.li@nxp.com>
|
|
This function is replaced by AVB, we don't need the
CONFIG_FSL_BOOTCTL anymore.
Change-Id: Ib418a4ec565e2a098f0a0ce574710317619bbebe
Signed-off-by: ji.luo <ji.luo@nxp.com>
|
|
Make the device respond multiple packets after receiving fastboot
command "fastboot getvar all" from the host. It can make the
"fastboot getvar all" work both on Windows host and Linux host.
Change-Id: I428678369134b4228d7544fb3cbcb3469ffec6a1
Signed-off-by: ji.luo <ji.luo@nxp.com>
|
|
Change-Id: I2b8fd610258ffcf81fed25184e69a2d7f34c4b88
Signed-off-by: ji.luo <ji.luo@nxp.com>
|
|
Remove the leading zeroes of 'partition-size', 'max-download-size',
'erase-block-size' and 'logical-block-size' variables.
Change-Id: I981cfced2d82a43e87a8f244caf04c6920bff5b2
Signed-off-by: ji.luo <ji.luo@nxp.com>
|
|
Change-Id: I0b57cae7a172d906bf7d43f19e938a72c74b3b16
Signed-off-by: ji.luo <ji.luo@nxp.com>
|
|
Remove the underscore prefix of current slot.
Change-Id: I07a0513dfcfbf395087d57e3680c8d662ec827aa
Signed-off-by: ji.luo <ji.luo@nxp.com>
|
|
Add support for fastboot getvar command:
fastboot getvar erase-block-size
fastboot getvar logical-block-size
Change-Id: Id1410d46307e67342e5489a26a96725e1d6a259e
Signed-off-by: ji.luo <ji.luo@nxp.com>
|
|
Correct some partition file system type from 'emmc' to 'raw'.
Change-Id: If417ab9f14abfe27b4d5da5f7354922a80c4df18
Signed-off-by: ji.luo <ji.luo@nxp.com>
|
|
Use netboot when mmcboot fail.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit 8bf9ea2eca354c0ac50d1e0bc68e7908cc0667ec)
|
|
add the nand boot related environments for i.MX8QXP ARM2 board.
Signed-off-by: Han Xu <han.xu@nxp.com>
(cherry picked from commit 345bcc28e52eff7a8cee7fee787db9453bcd457f)
|
|
600ms is not enough to erase erase_grp_size for some sdcard.
enlarge to to 1200ms.
Change-Id: Ic980794fa3064f92b479b87380e694f853f83c6a
Signed-off-by: zhang sanshan <sanshan.zhang@nxp.com>
|
|
Remove NAND partitions definitions in .h file.
Remove NAND related bcb operations.
Change-Id: I38774732e80f0402d63ea6d3f862e385f3e01e31
Signed-off-by: Zhang Bo <bo.zhang@nxp.com>
|
|
Android does not support NAND boot again, remove related defconfig
Change-Id: I1621d4fdab41a7be9dba44044ea379151b2b406c
Signed-off-by: Zhang Bo <bo.zhang@nxp.com>
|
|
Android does not support NAND boot again.
Change-Id: I4da83b50448601d11214af7cb5fbf24e1dc0f0b6
Signed-off-by: Zhang Bo <bo.zhang@nxp.com>
|
|
This function is replaced by AVB, not needed again.
Change-Id: I851292d04261a0cdd7c23a65b58a98fd6ac6f2b4
Signed-off-by: Zhang Bo <bo.zhang@nxp.com>
Conflicts:
drivers/usb/gadget/f_fastboot.c
|
|
Add android configure to support mx8qm mek board on android build.
Change-Id: I6dd885258f58c2f81b81bba87ca56184c653b9a1
Signed-off-by: Richard Liu <xuegang.liu@nxp.com>
|
|
The calculation of memory bank size is wrong when the memory on the board is
less than 2GB. It causes memory bank exceeding the real DDR end, and cause
crash in kernel. Fix the issue in this patch.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit 58f55994a406694460767566395e7c160738d431)
|
|
considering the boot binary/kernel size becomes larger, increase the
boot and kernel partition size and accordingly change the offset when
reading data.
Also changed the extra Android misc partition size to 8M which is block
size aligned.
Signed-off-by: Han Xu <han.xu@nxp.com>
(cherry picked from commit 96cf020bd90c5ac32b7fa67c23f88dcd09634a40)
|
|
This build warning is because unnecessary conversion.
Change-Id: Icfad58b95b62c15021ff57370d73b644133f6697
Signed-off-by: Zhang Bo <bo.zhang@nxp.com>
|
|
The warnings in f_fastboot.c is because the size of a pointer is 64bits,
while the variables in header structure is 32bits. Need to convert manually
at first.
The function partition_table_valid() is useful only when CONFIG_FSL_FASTBOOT and
CONFIG_FASTBOOT_LOCK are defined.
Change-Id: I480f254465096bd61b9075dff0d3fb6ab4bc44af
Signed-off-by: Zhang Bo <bo.zhang@nxp.com>
|
|
Android needs to use USBOTG port on MEK base board for fastboot (USB device mode).
Add relevant node to DTS and update configurations to enable the port in android build.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit fc67af9f83a198f2a052d7c47e36f1db4770a729)
|
|
There are duplicated nodes for USBOTG1 and its PHY in imx8qxp DTSi,
remove them.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit 58f4ff9c2f2a028d9140d9045374b4134ed25a44)
|
|
u-boot hardly
The BSP patch "MLK-16467 serial_lpuart: Fix FIFO_RXFE definition in
LPUART driver" disable the FIFO. The UART can only reveive input after some
log output and console is ready. So it is very hard to stop at u-boot if
we set the bootdelay as 0s.
Change the bootdelay time to 1s to avoid stopping at u-boot hardly.
Change-Id: I7134f559b3d43b8f1064171e60fd0098b59358a9
Signed-off-by: Zhang Bo <bo.zhang@nxp.com>
|
|
When booting from flexspi, the mmcpart variable is not defined because
the CONFIG_SYS_MMC_IMG_LOAD_PART binds to SD/eMMC boot image only. This cause we
fails to load kernel image from SD after booting from flexspi.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit f0815e8a2434b5239d386267d53b3e65d0eccd43)
|
|
When M4 images (m4_0 and m4_1) are included into flash.bin, the bin size exceeds
the 1.2MB, which cause overlay with u-boot environment area.
To fix the issue, we change the u-boot environment offset to 4MB for SD and FlexSPI,
and align this for all i.MX8 platforms (i.MX8QM/QXP/MQ).
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit e0ec20c2f1c309c4b3fbba960901eb31e2a11550)
|
|
The u-boot meets break, when host build server has installed swig and libpython3-dev,
but no libpython-dev installed.
tools/libfdt_wrap.c:147:21: fatal error: Python.h: No such file or directory
The root cause is tools/makefile checks the Python.h before building a libfdt Python module.
Since the u-boot is using "python" command not "python3", we should change to check the Python.h
under python2.x directory not every python directory (like python3.x). Otherwise when a python3
develop package is installed, the script will get the file and start to build libfdt if swig
is installed as well.
Signed-off-by: Ye Li <ye.li@nxp.com>
Acked-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit ddb7c3d2730050d257d2d69dd84b88bfc798242b)
|
|
The lpuart0 is configured as console port on i.MX8QM LPDDR4 ARM2 board,
so its cts/rts pins are not necessary. Since M4_1 core will use lpuart2
as its console. We remove these two pinmux from DTS file.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit cfe3b948c8ab95192839848f68123e270f43150b)
|
|
uboot will have below error log when verify boot.img
avb_util.c:199: ERROR: Failed to allocate memory.
the default size of malloc is 36M. But we need to load boot.img
with malloc addr. enlarge the size of malloc to 64M.
Change-Id: I64d0403b0cc970128cdfd1eafe7a4680a92f7c25
Signed-off-by: zhang sanshan <sanshan.zhang@nxp.com>
|
|
CAAM do not work in imx8.
disable FASTBOOT_ENCRYPT_LOCK for lock&unlock and return 0
for fsl avb call back on imx8 device.
Change-Id: I1fcce88c3fbc7e1cad1e0cc6e558d1e24516b397
Signed-off-by: Wang Haoran <elven.wang@nxp.com>
|
|
add macro which support A/B boot and AVB.
change CONFIG_ANDROID_THINGS_SUPPORT to CONFIG_ANDROID_AB_SUPPORT
Change-Id: I08688e7b19ec7b8d71c7adcd298ae2ccc1e309c3
Signed-off-by: zhang sanshan <sanshan.zhang@nxp.com>
|
|
support arm64 kernel image when enable AVB.
put the bootimage at hdr->kernel_addr - hdr->page_size.
copy ramdisk and dts to the addr in bootimage header.
Change-Id: I45c2f8238c2bf055130e6e7c2d5b431ca46e431e
Signed-off-by: zhang sanshan <sanshan.zhang@nxp.com>
|
|
add flexspi config for imx8qm mek board to support boot from octal nor
chip.
Reviewed-by: Frank Li <frank.li@nxp.com>
Signed-off-by: Han Xu <han.xu@nxp.com>
(cherry picked from commit 823d5775d3a7d1e858f8362d7dda3be320c8c422)
|
|
add flexspi config for i.mx8qxp mek to support boot from octal nor chip.
Reviewed-by: Frank Li <frank.li@nxp.com>
Signed-off-by: Han Xu <han.xu@nxp.com>
(cherry picked from commit cad79fad209d9dae0b5592d5ea24b3f78f8b32bb)
|
|
Add boot from QSPI configs for i.mx8qxp mek
Reviewed-by: Frank Li <frank.li@nxp.com>
Signed-off-by: Han Xu <han.xu@nxp.com>
(cherry picked from commit 50eee2d983d216c4c6051d324eed3c4a7a4811fa)
|
|
Since SCFW has implemented a new API sc_misc_get_boot_dev to get boot device,
change u-boot to use this API for QM/QXP, not use ROM INFO.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit d9cc34edfa660a33b511db53a9a0cec90ae9ede2)
|
|
Sync SCFW API to commit a6fd9a48626ef8c93a798c5fb984898b2017bf16.
It adds a API to get boot device.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit 34ee0796ef753abe94b88cfd483ed2caa2716575)
|