summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeLines
* MA-9530-2 [iot] Revet avb in ubootimx_v2015.04_brillofang hui2017-04-27-1921/+831
| | | | | | | | Revert "libavb: upgrade avb" This reverts commit 94734eeca56e8d1b9f1baedf67e16cd0397fc178. Change-Id: I6eae3fa9579fb43fa6956c450011b230875d0a96
* MA-9530-1 [iot] Revet avb in ubootfang hui2017-04-27-3/+1
| | | | | | | | Revert "MA-9432 set boot slot when avb verified success" This reverts commit 5f1cf1c789cc3fecd536c330cc31056415e0460d. Change-Id: I71910edcb4c02ee3614015f7096eaec2c01ea13e
* MA-9526 - [iot]: userdata, system partition's fs type should be ext4fang hui2017-04-27-7/+13
| | | | | | | Hard code userdata, system partition's fs type to ext4. Change-Id: I683d5dceba853325a63f30283e25cbff3eee3eae Signed-off-by: fang hui <hui.fang@nxp.com>
* MA-9508 Move all android-things board definition to freescale board folderChen Guoyin2017-04-24-10/+10
| | | | | | | | Move pico imx6ul&imx7d into freescale board folder Define SYS_VENDOR as freescale Change-Id: I56b65b28588de534f459e1c7d8d47645b0ceaaaa Signed-off-by: Chen Guoyin <guoyin.chen@nxp.com>
* MLK-13486: imx: logos: use NXP logoPeng Fan2017-04-24-0/+0
| | | | | | | | | Use NXP logo. The vendor and board dir not changed, only replace the contents of freescale.bmp. Change-Id: I774324adc19f85ba6597c47c68647f39f6fce6f9 Signed-off-by: Peng Fan <peng.fan@nxp.com>
* imx: mx6ul_aquila: Initial Murata 6ul Aquila boardHaoran Wang2017-04-19-0/+1932
| | | | | Change-Id: Iaddd7750176516610b599aafcc3ff4d4690f5763 Signed-off-by: Haoran Wang <elven.wang@nxp.com>
* MA-9432 set boot slot when avb verified successHaoran Wang2017-04-11-1/+3
| | | | | | | | Set ab_suffix into second bootargs when avb verified pass. Change-Id: I53feba41ad256c1d14e0aad1e2cc02e15a986801 Signed-off-by: Haoran Wang <elven.wang@nxp.com>
* libavb: upgrade avbHaoran Wang2017-04-10-831/+1921
| | | | | | | | | Upgrade avb libs to: AndroidPartnerRepo/brillo/platform/external/avb: commit 030120cf1c89345deecbd94c9c0d12f61718ba39 Change-Id: I71a84a8b7afa5661a5e008f5a509f8cc790f154f Signed-off-by: Haoran Wang <elven.wang@nxp.com>
* Revert "Use bootctl instead of AVB"Haoran Wang2017-02-11-4/+4
| | | | | | | | | | | Since use AVB in bootloader make no impact for mfgtool for Android Things so add it back. Also fixed typto bug in codes. This reverts commit 2c14d018c186d530cc1c73737e3e08168be28c4c. Change-Id: I6ed371e141dd8136cadbafe0a3e507953cfc53f9 Signed-off-by: Haoran Wang <elven.wang@nxp.com>
* Use bootctl instead of AVBHaoran Wang2017-02-10-3/+3
| | | | | | | | | | | Since AVB not ready for Android Things. So use bootctl for: * Pico 6ul * Argon 6ul * Pico 7d Change-Id: I01424645a077be3b6f652e5cda8d7b2002126cb2 Signed-off-by: Haoran Wang <elven.wang@nxp.com>
* Support system_ramdisk in bootctlHaoran Wang2017-02-10-3/+8
| | | | | | | Add SYSTEM_RAMDISK support in BOOTCTL enabled situation. Change-Id: I7198b4d29605acbdca96bc102f2b4ae0801583fc Signed-off-by: Haoran Wang <elven.wang@nxp.com>
* MA-9195 - Add VARIANT_NAME for imx7d_pico boardfang hui2017-01-20-2/+2
| | | | | | | | use "imx7d" for PRODUCT_NAME. Use "imx7d_pico" for VARIANT_NAME. Change-Id: I7198b4d29602acbdcd96bc102f2b4ae0801583fc Signed-off-by: fang hui <hui.fang@nxp.com>
* MA-9140 Add variant as imx6ul_pico or imx6ul_iopb depending on the boardChen Guoyin2017-01-20-3/+9
| | | | | | | | | | The bootloader is currently reporting the variant (ie imx6ul_pico) for the product variable and not reporting a product variable. This needs to be changed to report product=imx6ul for both boards and variant=imx6ul_pico or imx6ul_iopb depending on the board. Change-Id: Ic2fd160519b065a9164996fa7e18f24e3500f5df Signed-off-by: Chen Guoyin <guoyin.chen@nxp.com>
* MLK-12748-3 imx: adjust imx7d lpddr3 lpsr exit flowAnson Huang2017-01-19-1/+13
| | | | | | | | | | | | | On i.MX7D lpddr3, retention mode exit flow should restore more registers to make sure the ddr controller and ddr phy settings restored properly, otherwise, some of the boards can NOT pass memtester after retention mode exited. For LPSR mode, ddr resume flow is same as retention mode, just adjust it accordingly. Change-Id: I6ef16964ef71e7f290f0b415019ef2a65498ab49 Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
* MLK-12748-2 imx: remove IOMUXC GPR setting for i.mx7d retention modeAnson Huang2017-01-19-3/+3
| | | | | | | | | i.MX7D TO1.2 removes the DDR PADs retention mode setting in IOMUXC GPR, it is same as TO1.0, so only apply the IOMUXC GPR setting for TO1.1. Change-Id: I2312623802890c639f39b4a9d7dedf9a9be698c4 Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
* MLK-12748-1 imx: adjust i.mx7d standby voltage settingAnson Huang2017-01-19-16/+16
| | | | | | | | i.MX7D VDD_ARM/SOC standby voltage should be 0.95V, adding 25mV margin, so set it to 0.975V; Change-Id: If59684d4206b742242cb77e1c1cffc97d3bbc981 Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
* MLK-12705-2 imx7d: add build target for TO1.1Anson Huang2017-01-19-6/+6
| | | | | | | | Default build target supports TO1.0 and TO1.2, TO1.1 uses its own defconfig. Change-Id: I7025ac724b7ed30f81bb8e77eba458d1904143c8 Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
* MLK-12705-1 ARM: imx: add support for i.MX7D TO1.2Anson Huang2017-01-19-59/+59
| | | | | | | | i.MX7D TO1.2 uses same DDR script as TO1.0, TO1.1 uses dedicated DDR script. Change-Id: I046111e76163f054891aed2923afecf8deb21d93 Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
* MA-9194 imx7d: fix ahb clock mux 1Stefan Agner2017-01-19-1/+1
| | | | | | | | | | | | | | | | | The clock parent of the AHB root clock when using mux option 1 is the SYS PLL 270MHz clock. This is specified in Table 5-11 Clock Root Table of the i.MX 7Dual Applications Processor Reference Manual. While it could be a documentation error, the 270MHz parent is also mentioned in the boot ROM configuration in Table 6-28: The clock is by default at 135MHz due to a POST_PODF value of 1 (=> divider of 2). Signed-off-by: Stefan Agner <stefan@agner.ch> (cherry picked from commit 8183b60202754d9d33ac1a2a68a5cc2cc4640fc6) Change-Id: I5734f134a88249629dca0a956987a224f91744e9
* MA-9193 Add all SD/EMMC slot check for the return from get_boot_deviceChen Guoyin2017-01-19-13/+27
| | | | | | | Use mmc_get_env_devno to get the right slot for emmc/sdcard Change-Id: I13cffe2b00e32e2b571f307da4ffcebd26e894cd Signed-off-by: Chen Guoyin <guoyin.chen@nxp.com>
* MA-9192 pico-imx7d, add build configuration for DDR 512MBChen Guoyin2017-01-19-4/+176
| | | | | | | | | | | | | commit fb36b60c46392f3593f0fa15eaedfbf7b27b0e20 Author: Richard Hu <richard.hu@technexion.com> Date: Tue Dec 20 16:59:01 2016 +0800 pico-imx7: add build configuration for DDR 512MB There are two different DDR types for pico-imx7: 1GB and 512MB. Change-Id: Ifa1bdaeb7dcd623fc93514760091b82d59f26437 Signed-off-by: Chen Guoyin <guoyin.chen@nxp.com>
* MA-9191 Add brillo related feature for pico-imx7d boardChen Guoyin2017-01-19-1/+116
| | | | | Change-Id: Id4e3c593a886e84e6284c16cac1642eac0e9ecc2 Signed-off-by: Chen Guoyin <guoyin.chen@nxp.com>
* MA-9190 Add pico-imx7d board supportWig C2017-01-19-0/+1507
| | | | | | | | Ethnet is not supported in uboot. But ethnet on kernel relay the config in uboot. Once ethnet on kernel is indepedent, will remove ethnet code in uboot. Change-Id: If44705d2fbfc1c596cbce010ff7106fcd7556b9f
* MA-9137 Support "fastboot erase" command for emmc deviceChen Guoyin2016-12-29-45/+125
| | | | | | | | | | | Refine the fastboot erase implementation as below: * Follow rx_process_flash() to define rx_process_erase() * Add process_erase_mmc() to execute "fastboot erase" * No support the commands for SATA storage * Add flag FASTBOOT_PTENTRY_FLAGS_UNERASEABLE for unearseable parition Change-Id: I14a932bbdb30a3f9e45ee9fe3ac85d28437d62f2 Signed-off-by: Chen Guoyin <guoyin.chen@nxp.com>
* MA-9131 Build warning as implicit declaration of function 'mmc_get_env_devno'Chen Guoyin2016-12-22-0/+1
| | | | | | | Add declaration of the function mmc_get_env_devno() Change-Id: Ice5b52ee34b9bbb141c7a52fdd20c628d3e6ad49 Signed-off-by: Chen Guoyin <guoyin.chen@nxp.com>
* MA-9122 mx7d config: Enable SYSTEM_RAMDISK_SUPPORTChen Guoyin2016-12-20-1/+1
| | | | | | | Add SYSTEM_RAMDISK_SUPPORT for mx7d sabresd brillo config Change-Id: Ic759fe747583ce37e85a99044c4e83ac0e7d1730 Signed-off-by: Chen Guoyin <guoyin.chen@nxp.com>
* MA-9121 mx7d: "root=/dev/mmcblk1p3" isn't valid block device in kernelChen Guoyin2016-12-20-1/+4
| | | | | | | Use api mmc_map_to_kernel_blk to get the kernel block device number Change-Id: I8c6ecbdd318acb624f08bd72c7d96fef7ed998e6 Signed-off-by: Chen Guoyin <guoyin.chen@nxp.com>
* MA-9119 - [IOT] iot-flashall-imx6ul.sh some times exit asfang hui2016-12-19-4/+5
| | | | | | | | | | | | | | | | | | | "ERROR: device is LOCKed!" The issue occurs when the "fbmisc" partition is empty. So the decode data is not same as plain text, then goto lock status. When "gpt" change from invalid to valid, set unlock status can fix it. When set unlock status, will fist check current status, if unlock, do nothing. In the previous code, when check lock status, since not re-load partition table to memory, fail to find "fbmisc" partition, So just return unlock status. To fix it, when "gpt" change from invalid to valid, fisrt re-load partition table, then set unlock status. Change-Id: Iec6cfe6bf1030b986d2b839f9c81a3e048d91dcd Signed-off-by: fang hui <hui.fang@nxp.com>
* MA-9116 - [IOT] iot-flashall-imx6ul.sh some times blockedfang hui2016-12-16-1/+8
| | | | | | | | | | | | | | | | | | after flash "gpt" partition. The issue occurs when slot is ok but gpt partiton is damaged. After "fastboot flash gpt", the partition table in memory still has just two entries(gpt and bootloader). When run "fastboot reboot bootloader", the command should write to the "misc" partiton. But no entry in the partition table in memory. After "fastboot flash gpt", Re-load the partition table to memory can fix it. Change-Id: I5d3664962aaba12f718e4d7be58e7a223db47746 Signed-off-by: fang hui <hui.fang@nxp.com>
* MA-9095 configs: enable 7d's avb using RPMBWinter Wang2016-12-08-1/+14
| | | | | | | | | | | * use caam encrypted fastboot LOCK/UNLOCK for 7d; * add CONFIG_AVB_SUPPORT; as 7d doesn't have enough FUSE bits to store RPMB key, use the "fault" fuse bank size 0 to disable write/read to fuse, also not set CONFIG_AVB_FUSE to prevent any possiable key write to RPMB. Change-Id: I7d75d9bf465feada2b1204615da3c127c8f10b69 Signed-off-by: Winter Wang <wente.wang@nxp.com>
* MA-9094 caam: enable 7d's caamWinter Wang2016-12-08-70/+89
| | | | | | | open caam's clock gate in 7d, add caam related configs. Change-Id: I56351e3fcdbee96911d0c510990ba8fcd05c457f Signed-off-by: Winter Wang <wente.wang@nxp.com>
* MA-9077 configs: enable fuse program in pico/iopbWinter Wang2016-12-08-2/+2
| | | | | | | really program to FUSE in order to store RPMB key Change-Id: I4191aefb3e72530d6f2c28e4a9956513cb166f3e Signed-off-by: Winter Wang <wente.wang@nxp.com>
* MA-9077 libavb: fsl: use rpmbWinter Wang2016-12-08-336/+617
| | | | | | | | | | use rpmb to store public key/rollback index for avb. rpmb's key will be generated by caam hw rng , then caam encrypted and programmed to fuse; CONFIG_AVB_FUSE need to be set. Change-Id: Ic0c534420299b450f7aa11f1a2616c5fcf06513b Signed-off-by: Winter Wang <wente.wang@nxp.com>
* MA-9077 libavb: fsl: add utilsWinter Wang2016-12-08-64/+86
| | | | | | | | | extract block margin ops from fsl_avb.c to utils will be used in other modules. protect it from 0 blksz input. Change-Id: I5e81774dfb7d7d3377299241616c68ec22ba425c Signed-off-by: Winter Wang <wente.wang@nxp.com>
* MA-9077 caam: add hwrngWinter Wang2016-12-01-33/+102
| | | | | | | add caam based hwrng Change-Id: Ifabc4ec9da5531e1f1804587901a5dc438db99df Signed-off-by: Winter Wang <wente.wang@nxp.com>
* MA-9077 mmc: support emmc 5.1Winter Wang2016-11-30-0/+5
| | | | | | | | as uboot didn't officially support emmc version > 5.0 force use 5.0 if hardware is 5.1 Change-Id: If18b0d721d44ce7c87c59b17d6090db094e8b75d Signed-off-by: Winter Wang <wente.wang@nxp.com>
* MA-9077 configs: add rpmb supportWinter Wang2016-11-30-0/+2
| | | | | Change-Id: I7704dacd129d97548b4d2f130ba48dff4d32370e Signed-off-by: Winter Wang <wente.wang@nxp.com>
* MA-9073 Make uboot into fastboot mode if failed on normal bootChen Guoyin2016-11-29-4/+0
| | | | | | | Execute fastboot command on normal boot failure Change-Id: Idbe6d74b2ba4ace97a44f0659db84c74b1f02b25 Signed-off-by: Chen Guoyin <guoyin.chen@nxp.com>
* MA-9044 Support boot from ramdisk of system.imgChen Guoyin2016-11-24-4/+66
| | | | | | | | | | Add CONFIG_SYSTEM_RAMDISK_SUPPORT to support system's ramdisk * Normal boot: cmdline to bypass ramdisk in boot.img, but use the one from related slot's system.img * Recovery boot: Use the ramdisk in boot.img Change-Id: I6f429fec54fd5039d136e488ed218d73e3716938 Signed-off-by: Chen Guoyin <guoyin.chen@nxp.com>
* libavb: workaround: do not touch A/B metadata in UNLOCKEDWinter Wang2016-11-24-667/+16
| | | | | | | | do the same thing in 927e32925f456345d3d3daa3172a5dea11cabe8f move it to libavb_ab Change-Id: I4125efa842b378b285ed6b61ba827fb8e2679065 Signed-off-by: Winter Wang <wente.wang@nxp.com>
* libavb: fsl: use fsl_avb.h as top level headerWinter Wang2016-11-23-10/+8
| | | | | | | | 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-88/+852
| | | | | | | | | update avb to: https://android.googlesource.com/platform/external/avb/ commit:baf59e232e48d0111e4b38f74c60c89e6f8f0b14 Change-Id: I4bff97d5bbd819217e25367b69a220400c7095af Signed-off-by: Winter Wang <wente.wang@nxp.com>
* MA-9043 Append the real selected slot in bootargs_sec envChen Guoyin2016-11-23-1/+3
| | | | | | | | Set the args androidboot.slot_suffix based on the real selected slot in unlock state Change-Id: I83e60a346d52e3fbba708f26595400df1af77383 Signed-off-by: Chen Guoyin <guoyin.chen@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>
* libavb: do not touch a/b metadata in UNLOCKWinter Wang2016-11-21-0/+16
| | | | | | | | | avb should not touch a/b metadata in UNLOCK state, otherwise if verifies fail, a/b metadata is set to unbootable and leads to boot from an unbootable slot. Change-Id: I6638e4b1b5c154b01272f1a1c81302b443e0b2d5 Signed-off-by: Winter Wang <wente.wang@nxp.com>
* libavb: fsl: use bootctl to select slot in UNLOCKWinter Wang2016-11-21-10/+45
| | | | | | | | | if avb verifies fail in UNLOCK, modify fsl_bootctl to read a/b metadata, select curr slot based on metadata. Change-Id: Ic34a687bb4eb1f07bf58338ad7a995f241fdeec0 Signed-off-by: Winter Wang <wente.wang@nxp.com>
* MA-9030 fastboot: getvar return FAIL if var not definedWinter Wang2016-11-21-101/+124
| | | | | | | | | modify get_slotvar in bootctl, buffer contains error string if fails; add FAIL to cb_getvar's response buffer if the input var is not defined. Change-Id: I91d60a434b654030457f1e6e7f3d067bfb179297 Signed-off-by: Winter Wang <wente.wang@nxp.com>
* MA-9027 libavb: fsl: bootctl: add var 'slot-count'Winter Wang2016-11-18-0/+5
| | | | | | | | return 2 for getvar 'slog-count' as there are 2 slots Change-Id: I273d8d24fccef09ab24a21cae2f4c9028255b118 Signed-off-by: Winter Wang <wente.wang@nxp.com>
* MA-9027 fastboot: support set_active to 'a' 'b'Winter Wang2016-11-18-16/+23
| | | | | | | | new version of fastboot set_active sends 'a'/'b' instead of '_a'/'_b' Change-Id: I1c56f9401e82cba6801e4eff59d413ce5a2617c7 Signed-off-by: Winter Wang <wente.wang@nxp.com>
* MA-9012 Support boot commands from bcb infoChen Guoyin2016-11-16-253/+143
| | | | | | | | | | | | | | * 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>