summaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeLines
* libavb: fsl: use fsl_avb.h as top level headerWinter Wang2016-11-23-42/+174
| | | | | | | | google split A/B metadata management and slot verify to 2 libs, move fsl_avb on top of them to use libavb/libavb_ab. Change-Id: I02518d12208ec0df7f63f1da74684b6da5473aec Signed-off-by: Winter Wang <wente.wang@nxp.com>
* libavb: update avbWinter Wang2016-11-23-21/+11
| | | | | | | | | update avb to: https://android.googlesource.com/platform/external/avb/ commit:baf59e232e48d0111e4b38f74c60c89e6f8f0b14 Change-Id: I4bff97d5bbd819217e25367b69a220400c7095af Signed-off-by: Winter Wang <wente.wang@nxp.com>
* imx6ul: change PRODUCT_NAME to match board nameWinter Wang2016-11-21-2/+2
| | | | | | | "imx6ul_iopb" for iopb board, "imx6ul_pico" pico board Change-Id: If7ec3afaf4a278a6ec86fbfd863a7632d16beb51 Signed-off-by: Winter Wang <wente.wang@nxp.com>
* MA-9012 Support boot commands from bcb infoChen Guoyin2016-11-16-14/+21
| | | | | | | | | | | | | | * Remove recovery/bootloader mode checking based on snvs register * Use the API fastboot_run_bootmode() as the entry to check different boot mode * Set boot mode based on commands stored in bcb structure to align Android's bootloader_message_writer.cpp bootonce-bootloader -- > Fastboot mode boot-recovery -- > Recovery mode * Rename the recovery.c as recovery_keypad.c as only handle keypad Change-Id: If34bee0c78bdca252e33296d61443d01a8fc8e96 Signed-off-by: Chen Guoyin <guoyin.chen@nxp.com>
* MA-9005 fastboot: Support sparse image flashing for oem partitionChen Guoyin2016-11-15-0/+2
| | | | | | | Make all partitions can be flashed by sparse image if it is in raw format Signed-off-by: Chen Guoyin <guoyin.chen@nxp.com>
* MA-8986-5 fastboot: add fsl_avb supportWinter Wang2016-11-15-0/+40
| | | | | | | | | | | | | | | | | | | | | | | | | * support avb in picosom/evk_6ul boards; * use CONFIG_FSL_BOOTCTL instead of CONFIG_BRILLO_SUPPORT to separate using FSL version of bootctl or not; * separate all avb part with CONFIG_AVB_SUPPORT; * in picosom/evk_6ul board config headers: modify malloc size as avb needs to load the whole bootimage; add partition uuid which libavb needs. * add avb verify in boota; * add bootctl set_active cb using libavb's interface; * add bootctl getvar cb using libavb's interface; * add vbmeta_a/b partition to store vbmeta image, add avbkey partition to store avb related keyblob; * add LOCK/UNLOCK for avb; if in LOCK state, verify fail will cause boot fail; if in UNLOCK state, verify fail only print a msg and go on boot the "_a" slot, maybe it's better to use bootctl to select the bootable slot, but libavb doesn't have this interface exported. switch from LOCK to UNLOCK causes a erase of rollback_index in avbkey partition. Signed-off-by: Winter Wang <wente.wang@nxp.com>
* MA-8986-3 libavb: fsl: add fsl_avb related functionsWinter Wang2016-11-15-0/+52
| | | | | | | | | * add fsl uboot version of AvbOps; * export some bootctl interface from libavb; * save avb public key and rollback index using keyblob encrypted by caam; Signed-off-by: Winter Wang <wente.wang@nxp.com>
* MA-8984-4 imx: refine header configs for android/brilloWinter Wang2016-11-15-58/+75
| | | | | | unify support for android/brillo. Signed-off-by: Winter Wang <wente.wang@nxp.com>
* MA-8877 - [brillo] uboot support iopb boardfang hui2016-11-09-0/+422
| | | | | | | add iopb config in board/freescale/mx6ul_nxpu_iopb add brillo config in include/configs/mx6ul_nxpu_iopb.h Signed-off-by: fang hui <hui.fang@nxp.com>
* MLK-12483-5 mx6ul: Enable module fuse check EVK board and DDR3 ARM2 boardYe Li2016-11-09-0/+5
| | | | | | | Enable the configurations CONFIG_MODULE_FUSE and CONFIG_OF_SYSTEM_SETUP for module fuse check. And modify board level codes for SD, FEC and EIM. Signed-off-by: Ye Li <ye.li@nxp.com>
* MA-8840 picosom: change to 512M ddr ramWinter Wang2016-10-13-2/+2
| | | | | | | | | Pin GPIO5_IO01 is for detect 256M/512M version, this pin is pulled high for 512M version and low for 256M version. Just print version check message out . Signed-off-by: Winter Wang <wente.wang@nxp.com>
* MA-8795 Enable config to load FreeRTOS binary from ext4 partitionChen Guoyin2016-09-30-0/+3
| | | | | | Add CONFIG_CMD_FS_GENERIC and CONFIG_CMD_EXT4 Signed-off-by: Chen Guoyin <guoyin.chen@nxp.com>
* MA-8793 - [brillo] support imx7d-emmc boardfang hui2016-09-30-0/+70
| | | | | | | | support iot on imx7d emmc board use gpt partition not use encrypt lock for imx7d Signed-off-by: fang hui <hui.fang@nxp.com>
* MA-8775 picoimx: 'fastboot getvar product' incorrectWinter Wang2016-09-26-1/+1
| | | | | | change PRODUCT_NAME to 'imx6ul' Signed-off-by: Winter Wang <wente.wang@nxp.com>
* MA-8757 - support "fastboot update"fang hui2016-09-21-0/+2
| | | | | | | | | | Get valid serialno. Product name should be set according to the special board. The default name set to "NXP i.MX", For picoimx board, use "picoimx". Signed-off-by: fang hui <hui.fang@nxp.com>
* MA-8624 - [briilo] flash large(> 300M) image to system_a, failedfang hui2016-08-25-0/+4
| | | | | | | on picoimx, DRAM is 256M, change CONFIG_USB_FASTBOOT_BUF_SIZE from 400M to 200M Signed-off-by: fang hui <hui.fang@freescale.com>
* MA-8615 - [brillo] support gpt for pico-emmcfang hui2016-08-25-8/+28
| | | | | | | | | | | | | . for pico, add CONFIG_EFI_PARTITION to support gpt . for pico, save boot_para in boot0 area . align partition sequence as brillo defined boot_a, boot_b, system_a, system_b, oem_a, oem_b, misc, userdata, fbmic . in fsl_caam.c, use mask 0xffffffc0 to assure the addr is 64 bytes align Signed-off-by: fang hui <hui.fang@freescale.com>
* MA-8541 env update will overwrite the uboot binaryChen Guoyin2016-08-11-13/+13
| | | | | | | | The uboot binary for auto 6q board may exceed the 512k The env offset need to be larger thn the uboot binary size Extend the env offset to 768k for all imx6/7 boards Signed-off-by: Chen Guoyin <guoyin.chen@freescale.com>
* mmc: update MMC_ERASE argument to match Linux kernel.Eric Nelson2016-08-09-1/+6
| | | | | | | | | | | | | | | | | | | | Table 41 of the JEDEC standard for eMMC says that bit 31 of the command argument is obsolete when issuing the ERASE command (CMD38) on page 115 of this document: http://www.jedec.org/sites/default/files/docs/jesd84-B45.pdf The SD Card Association Physical Layer Simplified Specification also makes no mention of the use of bit 31. https://www.sdcard.org/downloads/pls/part1_410.pdf The Linux kernel distinguishes between secure (bit 31 set) and non-secure erase, and this patch copies the macro names from include/linux/mmc/core.h. Tested-by: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: Eric Nelson <eric@nelint.com> Tested-by: Hector Palacios <hector.palacios@digi.com> (cherry picked from commit 1aa2d074a7acda61eb43e654ced21c139703633c)
* MA-7875-4 Support fastboot getvar commandsWang Haoran2016-07-21-0/+18
| | | | | | | | | | | | | | | Support below fastboot getvar commands: o version-baseband o version-bootloader o product o off-mode-charge o variant o battery-voltage o battery-soc-ok o partition-size:<partition name> o partition-type:< partition name> Signed-off-by: Wang Haoran <Haoran.Wang@freescale.com>
* MA-7875-3 Support fastboot lock/unlock in i.MX6ULWang Haoran2016-07-21-0/+10
| | | | | | | | | Enable fastboot lock/unlock for Brillo in i.MX6UL platforms include: o Pico i.MX6UL o EVK i.MX6UL 14x14 Signed-off-by: Wang Haoran <Haoran.Wang@freescale.com>
* MA-7875-2 Support fastboot lock/unlock in i.MX6 platformWang Haoran2016-07-21-0/+45
| | | | | | | | | | | Enable fastboot lock/unlock support for Android in i.MX6 platform include: o i.MX6QP/Q/DL sabresd o i.MX6QP/Q/DL sabreauto (non NAND) o i.MX6SX sabresd o i.MX6SX sabreauto (nan NAND) Signed-off-by: Wang Haoran <Haoran.Wang@freescale.com>
* MA-7875 Enable CAAM for i.MX6Wang Haoran2016-07-21-0/+74
| | | | | | | | | Cherry-pick patch from Renato Frias <b13784@freescale.com> to enable CAAM in U-Boot. Modify the CAAM Keyblob to general memory mode. Signed-off-by: Wang Haoran <Haoran.Wang@freescale.com>
* MA-8381 - [brillo]: brillo_fastboot_test.py failedfang hui2016-07-19-1/+1
| | | | | | | | | | | | | . Change user data partition name from "data" to "userdata". . Support "product" in "getvar" command. . In "getvar", if the variable is not supported, just response with "OKAY", not with "FAILVariable not implemented". Since the test will verify that the return val is 0, and the value is a hollow string. Signed-off-by: fang hui <hui.fang@freescale.com>
* MA-7633-1 [Android-SD-EMMC] enable BCB partition in androidzhang sanshan2016-04-29-7/+25
| | | | | | | | 1 Add some APIs to operate BCB/command. 2 Add action to check the command of BCB. It can cover the case that power down when do factory-reset\ota in recovery mode. Signed-off-by: zhang sanshan <b51434@freescale.com>
* MA-7373 - [brillo]: store slot meta data in a raw partition, no file system.fang hui2016-04-29-1/+27
| | | | | | | | | | | | | | | Partition name change from slotmeta to misc. Read/write raw data on partition misc, not use ext4 file system. Store meta in bootloader_message.slot_suffix, as defined in bootable/recovery/bootloader.h The first 4 bytes of boot_ctl are defined as magic number. Also, modify code to remove warning in drivers/usb/gadget/bootctrl.c warning: implicit declaration of function 'do_read' Signed-off-by: fang hui <b31070@freescale.com>
* MA-7251 - [evk_6ul]: Support boot conctrol for brillofang hui2016-04-29-2/+20
| | | | | | | | | brillo need bootlader support boot control. bootlader can choose which slot(partition) to boot based on it's tactic. The commit support boot control for evk6ul Signed-off-by: fang hui <hui.fang@nxp.com>
* MLK-12442: imx: mx6qarm2: lpddr2 set dram 2 channel fixed modeAdrian Alonso2016-03-16-1/+13
| | | | | | | | | | | | | Setup MMDC in two channel fixed mode Initialize dram banks for two channel fixed mode DRAM bank = 0x00000000 -> start = 0x10000000 -> size = 0x20000000 DRAM bank = 0x00000001 -> start = 0x80000000 -> size = 0x20000000 Signed-off-by: Adrian Alonso <adrian.alonso@nxp.com>
* MLK-12296 imx: mx7dsabresd: Change default env for M4 boot to TCMYe Li2016-03-16-13/+24
| | | | | | | | | | | | Since the QSPI needs to rework on this board, at default the QSPI is disabled. So bind the M4 QSPI boot with QSPI enabled u-boot image, set default M4 boot to TCM. Need to use TCM m4 image at default. Additional, on SDB there is only one QSPI flash. Considering the A7 QSPI boot case, we have to move M4 image to 1M offset to give enough space for u-boot and env. Signed-off-by: Ye Li <ye.li@nxp.com>
* MA-7455-1 Pico: modify Pico configuration for Brillo.Haoran Wang2016-03-16-1/+7
| | | | | | Modify the picosom to be suit for Brillo configurations. Signed-off-by: Haoran Wang <Haoran.Wang@freescale.com>
* MA-7455 Import picosom boot codesHaoran Wang2016-03-16-0/+383
| | | | | | | | Imported the picosom boot codes and board configs from technexion. Signed-off-by: Tapani Utriainen <tapani@technexion.com> Signed-off-by: Haoran Wang <Haoran.Wang@freescale.com>
* MLK-12195 imx: mx6/7 define CONFIG_SYS_VSNPRINTFPeng Fan2016-03-16-2/+6
| | | | | | | Define CONFIG_SYS_VSNPRINTF to use snprintf, but not sprintf. Coverity ID: 17926. Signed-off-by: Peng Fan <peng.fan@nxp.com>
* net: mdio: Add mdio_free() and mdio_unregister() APIBin Meng2016-03-16-0/+2
| | | | | | | | Currently there is no API to uninitialize mdio. Add two APIs for this. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com> (cherry picked from commit cb6baca77bca0ef999203a7ed73bd123e7da062e)
* MLK-12102 mmc: fsl: introduce wp_enablePeng Fan2016-03-16-1/+2
| | | | | | | | | | | | | | | | | Introudce wp_enable. If want to check WPSPL, then in board code, need to set wp_enable to 1. Take i.MX6UL for example, to some boards, they do not use WP singal, so they does not configure USDHC1_WP_SELECT_INPUT, and its default value is 0(GPIO1_IO02). However GPIO1_IO02 is muxed for i2c usage and SION bit set. So USDHC controller can always get wp signal and WPSPL shows write protect and blocks driver continuing. This is not what we want to see, so add wp_enable, and if set to 0, just omit the WPSPL checking and this does not effect normal working of usdhc controller. Suggested-by: Ye.Li <ye.li@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
* MLK-12034 imx: mx7dsabresd: Add RevB board supportYe.Li2016-03-16-3/+10
| | | | | | | | | | | | | Since i.MX7D SDB revB board has some HW changes, we have modify the BSP file to support new pinmux. 1. OTG2 PWR pin is changed to GPIO1_IO07. 2. A enet2_en pin is added for isolating enet2 signals with EPDC, we also add support for enet2. 3. pin6 of 74LV output is changed for CSI PWDN. Set output to high to power down it. This patch also tries to get the board id and apply changes according with it. Since current RevB board does not burn GP1 fuse for board id, we have to check the TO rev instead even it is not very exact. Will update this if any new way implemented. Signed-off-by: Ye.Li <B37916@freescale.com>
* MLK-11991 arm: config: change imx7d arm2 nand rootfs mtd partition indexHan Xu2016-03-16-1/+1
| | | | | | | change the imx7d arm2 nand rootfs partition index from 3 to 4 since the weim nor was enabled by default and took the first mtd partition. Signed-off-by: Han Xu <b45815@freescale.com>
* MA-7330-1 change tool chain to gcc4.9 for android kernel and ubootZhang Sanshan2016-03-16-0/+3
| | | | | | | | uboot will fail when loader zImage which is larger than 9M. Increasing CONFIG_SYS_BOOTM_LEN from 8 MB to 16 MB is necessary to support uncompressing images larger than 8 MB. Signed-off-by: Zhang Sanshan <b51434@freescale.com>
* Revert "MA-7053 when I add selinux=disable in the cmdline, the board do OTA ↵zhang sanshan2016-03-16-3/+0
| | | | | | | | | update will fail" This reverts commit 24356fe059abbc9eae1b192f7af8a46f204a36f4. Conflicts: common/image-android.c
* MLK-11837 mfgtool: add dummy fat file to avoid windows popup format dialogFrank Li2015-11-11-0/+9
| | | | | | | | | Windows DeviceIoControl SCSI_PASSTHROUGH is not stable when report media is not ready. Use dummy fat file to workaround this issue and avoid windows popup format dialog. Signed-off-by: Frank Li <Frank.Li@freescale.com>
* MA-7053 when I add selinux=disable in the cmdline, the board do OTA update ↵zhang sanshan2015-11-06-0/+3
| | | | | | | | | | | will fail The ota update script will set selinux label with set_metadata when do nand ota update. The root cause is set_metadata will fail if disable selinux in recovery mode. This patch is a workaround which will enable selinux in recovery mode, even if have disable selinux in commandline. Signed-off-by: zhang sanshan <b51434@freescale.com>
* MLK-11767:imx: Modify the u-boot ENV offset for NAND storageYe.Li2015-10-27-7/+7
| | | | | | | | The current 36M offset will conflict with NAND FCB firmware2 when the nand chip block is 1MB size. This patch change it to 36M + 1M offset, so the redundant u-boot at firmware2 will not be broken. Signed-off-by: Ye.Li <B37916@freescale.com>
* MLK-11706: imx6sx: SabreSD: Expand malloc pool to 32MSandor Yu2015-10-16-1/+1
| | | | | | | | | | | Same issue as ENGR00321137, commit 3695635. GIS module need total 3M+3M+1.5M+1.5M=9M video memory. and sys reserved 16M memory for malloc. When gis module enabled, malloc may failed to allocate memory for other modules, that may cause system hang. Expand malloc pool to 32M. Signed-off-by: Sandor Yu <R01008@freescale.com>
* MLK-11718-3: imx: change the NAND env setting addressHan Xu2015-10-15-8/+8
| | | | | | | | The previous 8M address for NAND env might conflict with other boot parameters as the NAND block size increasing, change it to 36M to avoid it. Signed-off-by: Han Xu <b45815@freescale.com>
* MLK-11718-1: mtd: nand: change the maximum nange page size and oob sizeHan Xu2015-10-15-2/+2
| | | | | | | enlarge the maximum nand page size and oob size to 16k byte and 1280byte. Signed-off-by: Han Xu <b45815@freescale.com>
* MLK-11662-1 imx: mx6ul: Change 14x14 LPDDR2 ARM2 memory size to 256MBYe.Li2015-09-30-1/+9
| | | | | | | The actual memory size is 256MB not 512MB, otherwise it has a wrap problem in memory and will cause memtester failed. Signed-off-by: Ye.Li <B37916@freescale.com>
* MLK-11554 imx: mx6ulevk: Modify the mtest memory end to half of PHYS_SDRAM_SIZEYe.Li2015-09-16-1/+1
| | | | | | | Since the mx6ul 9x9 evk has different DDR size with 14x14 evk, change to use the half of PHYS_SDRAM_SIZE for mtest end. Signed-off-by: Ye.Li <B37916@freescale.com>
* MLK-11548 imx: imx6qp: add SabreSD board supportAnson Huang2015-09-15-1/+4
| | | | | | Add i.MX6QP SabreSD board support. Signed-off-by: Anson Huang <b20788@freescale.com>
* MLK-11528 imx: mx6ul check fuse before init beePeng Fan2015-09-10-0/+3
| | | | | | | | | | | Need to check fuse bit 25 of bank 0 word 4 before initialize bee. The bit: 0 means bee enabled, 1 means bee disabled. If disabled, continuing initialize bee will cause system hang, so need to check this bit before initialize bee. Add macro to enable BEE in header file, default disabled. Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
* MLK-11461 imx: imx6ul: enable LDO bypass for 9x9 EVK boardAnson Huang2015-09-01-1/+5
| | | | | | | i.MX6UL-9x9-EVK board has PFUZE3000, so enable LDO bypass support for this board. Signed-off-by: Anson Huang <b20788@freescale.com>
* MLK-11408-2 imx: mx7d: Isolate 26 IP resources to domain 0 for A coreYe.Li2015-08-25-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | In current design, if any peripheral was assigned to both A7 and M4, it will receive ipg_stop or ipg_wait when any of the 2 platforms enter low power mode. We will have a risk that, if A7 enter wait, M4 enter stop, peripheral will have chance to get ipg_stop and ipg_wait asserted same time. There are 26 peripherals impacted by this IC issue: SIM2(sim2/emvsim2) SIM1(sim1/emvsim1) UART1/UART2/UART3/UART4/UART5/UART6/UART7 SAI1/SAI2/SAI3 WDOG1/WDOG2/WDOG3/WDOG4 GPT1/GPT2/GPT3/GPT4 PWM1/PWM2/PWM3/PWM4 ENET1/ENET2 Software Workaround: The solution is set M4 to a different domain with A core. So the peripherals are not shared by them. This way requires the uboot implemented the RDC driver and set the 26 IPs above to domain 0 only. CM4 image will set the M4 to domain 1 only. This patch enables the CONFIG_MXC_RDC for mx7d SABRESD board and ARM2 boards, and setup the 26 IP resources to domain 0. Signed-off-by: Ye.Li <B37916@freescale.com>