summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-01-30apalis-imx8: use eMMC as environment location/default boot devicetoradex_imx_v2017.03_4.9.51_imx8_beta1-bring_upStefan Agner
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>
2018-01-17apalis-imx8: set device tree to Apalis DT by defaultStefan Agner
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2018-01-11apalis-imx8: remove unused GPIOsStefan Agner
Remove GPIOs used on the validation board but not required on Apalis iMX8. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2018-01-11apalis-imx8: use UART1 as console UARTStefan Agner
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>
2018-01-11imx8: support UART1 as console UART for Apalis iMX8Stefan Agner
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>
2018-01-04apalis-imx8: fix EthernetStefan Agner
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>
2018-01-04apalis-imx8: remove PCA9557 GPIO controllersStefan Agner
The Apalis iMX8 module does not have PCA9557 GPIO controllers on the module. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2018-01-04apalis-imx8: remove unavailable peripheralsStefan Agner
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2018-01-04apalis-imx8: fix eMMC/MMC/SD interface muxingStefan Agner
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2018-01-04apalis-imx8: add Apalis iMX8 specific device treeStefan Agner
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2018-01-04apalis-imx8: initial addStefan Agner
Initial board support for Apalis iMX8 using a copy of NXP iMX8QM ARM2 LPDDR4 board. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2017-11-28MLK-17011 imx8qm/qxp: Fix wrong boot type for flexspiYe Li
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)
2017-11-29MLK-17018 Correct CopyrightPeng Fan
Correct Copyright Signed-off-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit b5ac280de59fdec71df972ef93639b4746c7f43e)
2017-11-22MA-10703 [Android] use the usb_ep_queue for muti requestzhang sanshan
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>
2017-11-22MA-10479 Remove CONFIG_FSL_BOOTCTL from u-bootji.luo
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>
2017-11-22Refine support for 'fastboot getvar all' commandji.luo
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>
2017-11-22Enable multiple packets sent on fastbootji.luo
Change-Id: I2b8fd610258ffcf81fed25184e69a2d7f34c4b88 Signed-off-by: ji.luo <ji.luo@nxp.com>
2017-11-22Remove leading zeroes of some getvar variablesji.luo
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>
2017-11-22MA-10338-3 Refine misc local variables in get_single_var()ji.luo
Change-Id: I0b57cae7a172d906bf7d43f19e938a72c74b3b16 Signed-off-by: ji.luo <ji.luo@nxp.com>
2017-11-22MA-10338-4 Correct 'fastboot getvar current-slot' commandji.luo
Remove the underscore prefix of current slot. Change-Id: I07a0513dfcfbf395087d57e3680c8d662ec827aa Signed-off-by: ji.luo <ji.luo@nxp.com>
2017-11-22MA-10338-2 Add support for some fastboot getvar commandji.luo
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>
2017-11-22MA-10338-1 Correct 'fastboot getvar partition-type' commandji.luo
Correct some partition file system type from 'emmc' to 'raw'. Change-Id: If417ab9f14abfe27b4d5da5f7354922a80c4df18 Signed-off-by: ji.luo <ji.luo@nxp.com>
2017-11-21MLK-16895 imx8: use netboot when mmcboot failPeng Fan
Use netboot when mmcboot fail. Signed-off-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit 8bf9ea2eca354c0ac50d1e0bc68e7908cc0667ec)
2017-11-16MLK-16882: imx8qxp: config: add NAND boot environmentHan Xu
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)
2017-11-16MA-10633 [Android] enlarge the timeout for waiting DATA0zhang sanshan
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>
2017-11-15MA-10477[Android] Remove NAND partition definitions and operations in bcbZhang Bo
Remove NAND partitions definitions in .h file. Remove NAND related bcb operations. Change-Id: I38774732e80f0402d63ea6d3f862e385f3e01e31 Signed-off-by: Zhang Bo <bo.zhang@nxp.com>
2017-11-15MA-10476[Android]Remove <board>_nand_defconfig used for androidZhang Bo
Android does not support NAND boot again, remove related defconfig Change-Id: I1621d4fdab41a7be9dba44044ea379151b2b406c Signed-off-by: Zhang Bo <bo.zhang@nxp.com>
2017-11-15MA-10475[Android]Remove NAND support from fastbootZhang Bo
Android does not support NAND boot again. Change-Id: I4da83b50448601d11214af7cb5fbf24e1dc0f0b6 Signed-off-by: Zhang Bo <bo.zhang@nxp.com>
2017-11-15MA-10474[Android]Remove CONFIG_SECURE_BOOT from bootaZhang Bo
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
2017-11-16MA-10622 add android configure to support mx8qm mek boardRichard Liu
Add android configure to support mx8qm mek board on android build. Change-Id: I6dd885258f58c2f81b81bba87ca56184c653b9a1 Signed-off-by: Richard Liu <xuegang.liu@nxp.com>
2017-11-10MLK-16797 imx8qm/qxp: Fix memory bank size calculation issueYe Li
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)
2017-11-09MLK-16793: imx8qxp: config: fix the nand partition size and env offsetHan Xu
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)
2017-11-08MA-10586 [Android]u-boot: Remove build warning in cmd_fsl_caam.cZhang Bo
This build warning is because unnecessary conversion. Change-Id: Icfad58b95b62c15021ff57370d73b644133f6697 Signed-off-by: Zhang Bo <bo.zhang@nxp.com>
2017-11-08MA-10587 [Android]u-boot: Remove build warning in f_fastboot.cZhang Bo
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>
2017-11-02MLK-16758-2 imx8qxp_mek: Enable USBOTG1 support on MEK base board for androidYe Li
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)
2017-11-02MLK-16758-1 DTS: imx8qxp: Remove duplicated nodes for USB OTG1 and phyYe Li
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)
2017-11-02MA-10570[Android] Change bootdelay to 1s for imx8 to avoid stopping at ↵Zhang Bo
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>
2017-11-01MLK-16749 imx8qm/qxp: Fix mmcpart env variable issueYe Li
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)
2017-11-01MLK-16739 imx8qm/qxp/mq: Change environment offset to avoid overlayYe Li
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)
2017-10-31MLK-16729 tools: fix build break when libpython3-dev is installedYe Li
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)
2017-10-31MLK-16732 DTS: imx8qm-arm2: Remove UART0 CTS and RTS pinmuxYe Li
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)
2017-10-31MA-10557 [Android] enlarge malloc sizezhang sanshan
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>
2017-10-30MA-10552-10 [Android] enable A/B system in androidzhang sanshan
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>
2017-10-29MA-10552-7 [Android] enable A/B system in androidzhang sanshan
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>
2017-10-29MA-10552-6 [Android] enable A/B system in androidzhang sanshan
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>
2017-10-18MLK-16608: configs: add flexspi config for imx8qm mekHan Xu
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)
2017-10-18MLK-16598-2: configs: add flexspi config for i.mx8qxp mekHan Xu
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)
2017-10-18MLK-16598-1: imx8qxp_mek: add qspi boot configHan Xu
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)
2017-10-15MLK-16587-2 imx8qm/qxp: Change to use SCFW API to get boot deviceYe Li
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)
2017-10-15MLK-16587-1 imx8qm/qxp: Sync SCFW API to latestYe Li
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)