05 Dec, 2019

1 commit


14 Jan, 2018

1 commit


10 Jul, 2017

5 commits

  • NAND macro has been changed to CONFIG_NAND_BOOT in uboot2017.

    Conflicts:
    include/configs/pico-imx6dl.h
    include/configs/pico-imx6dl_android_things.h

    Change-Id: I61dd03c0eed8a65100212607447a41bde431cc04
    Signed-off-by: zhang sanshan

    zhang sanshan
     
  • * add board support for android and android things.
    mx6ul_nxpu_iopb, pico-6ul, pico-imx7d, aquila-6ul
    reorganize the Kconfig, and fix the redefine issue.
    * add android configure into configure-while
    * add a common file mx_android_common.h
    it will be included by android and android things.
    defconfig only include ANDROID_THINGS_SUPPORT or ANDROID_SUPPORT
    * move partition_table_valid into f_fastboot.c.
    it's a common code.
    * add invalidate_dcache_range in fixed order.
    It will have salt invalid issue if we do not add it in order
    * add display for pico-7d.

    Change-Id: I6f8a4876c2f8bbd098034d1e3f53033109300bca
    Signed-off-by: zhang sanshan

    zhang sanshan
     
  • * Add CONFIG_SYSTEM_RAMDISK_SUPPORT to support system's ramdisk
    * Normal boot: cmdline to bypass ramdisk in boot.img,
    but use Recovery boot: Use the ramdisk in boot.img
    * commandline is larger than 512, system can't bootup sometime for commandline issue.
    * support fastboot getvar.
    * Support "fastboot erase" command for emmc device.
    TODO: uboot community have api to operate flash, we can unify this part
    * support "fastboot flash" even on damaged gpt

    Change-Id: I080c25d6569d6cab56ff025601cd3b8df21cf3dd

    zhang sanshan
     
  • Fix issue for API changed from v2017.
    porting below patch from v2016.
    commit 44834fd12f60a090e3d10ab6f84a75460894d49d

    Change-Id: Ifaf0b86dd29648f9150646f00f54502676df9013
    Signed-off-by: zhang sanshan

    zhang sanshan
     
  • boot_addr_start for booti should be the addr of Image rather than
    boot.img, so need read Image into hdr->kernel_addr.
    change the offset for bootloader.
    booti do not call android_image_get_kernel to init android env.
    booti can't load boot.img, so it can't init android env.
    init android env through android_image_get_kernel.

    Change-Id: Ifb990ee9c5710ce7bd5fa9a0d4221dcb0e52d341
    Signed-off-by: sanshan zhang

    sanshan zhang
     

21 Jun, 2017

3 commits

  • Add configure for bcb & bootctr & lock_unlock for android.
    change CONFIG_SYS_BOOT_NAND to CONFIG_NAND_BOOT
    correct macro ANDROID_FASTBOOT_NAND_PARTS.

    Change-Id: Iec2190ee940260d770de904889d8d352572a80b5
    Signed-off-by: zhang sanshan

    zhang sanshan
     
  • Fix compile error for api change.

    Porting below patches from v2015.o4:
    MA-7875 Enable CAAM for i.MX6
    MA-7875-1 Support fastboot lock&unlock in u-boot
    MA-7875-2 Support fastboot lock/unlock in i.MX6 platform
    MA-7875-3 Support fastboot lock/unlock in i.MX6UL
    MA-8425 fastboot: return OKAY in fastboot erase
    MA-8418 fix return value check for get_device_and_partition
    MA-8622 - [brillo] fix uboot compile warnings and code style warnings

    Change-Id: I2370c3e5851cc1f92aaa93c200e6c079f7929af2
    Signed-off-by: zhang sanshan

    zhang sanshan
     
  • * Add API to read\write MISC partition.
    * get the boot mode from BCB command when boot up.
    * get the boot up tactics from bootctrl.

    Change-Id: Icbba6340e10983dddc1b04804ecc012a3a3c57d0
    Signed-off-by: zhang sanshan

    zhang sanshan
     

08 May, 2017

1 commit


29 Apr, 2017

5 commits


06 Apr, 2017

2 commits

  • In Kconfig, the CONFIG_MXC_EPDC depends on CONFIG_LCD.
    We can't only set the CONFIG_MXC_EPDC in defconfig and set CONFIG_LCD in header file.
    This will cause the both two configs are not selected. So in fact the epdc codes
    are not compiled.

    Signed-off-by: Ye Li

    Ye Li
     
  • add splash screen feature for epdc.
    it's tested on imx6sll arm2 board and evk board.

    Signed-off-by: Robby Cai
    (cherry picked from commit c85c6f2a0f08dfc6c2859fe969b2021ab32b9370)
    Signed-off-by: Ye Li

    Robby Cai
     

05 Apr, 2017

22 commits

  • Fix below build warning by declaring sata_get_dev the in the part.h

    common/env_sata.c: In function 'saveenv':
    common/env_sata.c:70:9: warning: implicit declaration of function 'sata_get_dev' [-Wimplicit-function-declaration]
    sata = sata_get_dev(env_sata);
    ^
    common/env_sata.c:70:7: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
    sata = sata_get_dev(env_sata);
    ^
    common/env_sata.c: In function 'env_relocate_spec':
    common/env_sata.c:116:7: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
    sata = sata_get_dev(env_sata);

    Signed-off-by: Ye Li

    Ye Li
     
  • Since the u-boot size increases after using OF_CONTROL to including DTB,
    we have to adjust ENV_OFFSET to 896K for SD/eMMC/FLASH/SATA.

    Signed-off-by: Ye Li

    Ye Li
     
  • The MX6SL, SLL and ULL have DCP to replace CAAM in SoC. We have to
    disable the CAAM driver for them.

    Signed-off-by: Ye Li

    Ye Li
     
  • Modify the CONFIG_CSF_SIZE to 0x4000 to align with v2016.03. Also remove
    the duplicated setting for CSF size.

    Signed-off-by: Ye Li

    Ye Li
     
  • Add Android support for mx6qarm2 lpddr2 pop target

    Signed-off-by: Adrian Alonso
    (cherry picked from commit 6356f2b420f3571493755f6b3a307a66a539b60c)

    Adrian Alonso
     
  • 1. pass androidboot.storage_type to android, 'init' use it to parse
    different init.freescale.storage.rc.
    2. store new ptable with gpt partition.
    3. we use the last LBA as backup gpt table, there is many warning log
    when boot, change print to debug

    Change-Id: I84070735e9d4c2741b0e240bc1c61b357dabc5b8
    Signed-off-by: Sanshan Zhang
    (cherry picked from commit da0ce2787256a323371641b0764266d386d767a5)
    Signed-off-by: Ye Li

    Sanshan Zhang
     
  • Add android features on i.MX7ULP EVK board.
    Implement the code to get boot device and the serial number on mx7ulp.
    TODO: will add the code which check misc partition after porting BCB.

    Change-Id: I9d06fecba303fa4dfdcaf73da1b6246444697bba
    Signed-off-by: Sanshan Zhang
    (cherry picked from commit 4c60cba3a017b921aebb84dd1268c898e549c99a)
    Signed-off-by: Ye Li

    Sanshan Zhang
     
  • Add board level support for android fastboot feature. Each board has
    a android specified header file for defining android related configuraitons.
    And add build targets for their android uboot images building.

    For mx6qsabreauto, mx6sabresd and mx7dsabresd, we enable the android
    fastboot exclusive with DFU.

    Signed-off-by: Ye Li
    (cherry picked from commit 43fe988af28c5e51fb23aa846e04bc9698256926)

    Ye Li
     
  • Integrate the FSL android fastboot features into community's fastboot.

    1. Use USB gadget g_dnl driver
    2. Integrate the FSL SD/SATA/NAND flash operations, since the GPT and
    EFI partitions are not support by i.MX.
    3. Add FDT support to community's android image.
    4. Add a new boot command "boota" for android image boot. The boota
    implements to load ramdisk and fdt to their loading addresses
    specified in boot.img header, while bootm won't do it for android image.
    5. Support the authentication of boot.img at the "load_addr" for
    both SD and NAND.
    6. We use new configuration CONFIG_FSL_FASTBOOT for Freescale's fastboot
    with relevant header file "fsl_fastboot.h". While disabling the
    configuration, the community fastboot is used.
    7. Overwrite the cmdline in boot.img by using bootargs saved in local environment.
    8. Add recovery and reboot-bootloader support.

    Signed-off-by: Ye Li
    (cherry picked from commit 23d63ff185929fff5e392efc853d69b606ba081a)

    Ye Li
     
  • The i.MX6SL EVK needs this driver in android fastboot support. Add
    this driver to u-boot.

    To use the driver, user must define:

    CONFIG_MXC_KPD Enable the driver
    CONFIG_MXC_KEYMAPPING Key mapping matrix
    CONFIG_MXC_KPD_COLMAX The column size of key mapping matrix
    CONFIG_MXC_KPD_ROWMAX The row size of the key mapping matrix

    Signed-off-by: Ye Li
    (cherry picked from commit 5096e572667ff41217deb4ba9b1bd15e93fa6b59)

    Ye Li
     
  • Add the 10x10 ARM2 and 14x14 ARM2 DTS files. Also convert the board
    codes to use OF_CONTROL and DM drivers.

    Since the DTS files only have UART and SD1 supported. So we only enable
    the DM for these two modules. QSPI and USB are still kept in non-DM fashion.

    Signed-off-by: Ye Li

    Ye Li
     
  • Copy the mx7ulp ARM2 codes from v2016.03 as the base for using
    OF_CONTROL and DM drivers.

    The 14x14 ARM2 LPDDR3 script is v1.5:
    - IMX7ULP1_LPDDR3_320MHz_512MB_32bit_V1.5.inc

    The 10x10 ARM2 LPDDR2 script is v1.1:
    - IMX7ULP1_LPDDR2_320MHz_1GB_32bit_V1.1.inc

    Signed-off-by: Ye Li

    Ye Li
     
  • Add environment variables for mfgtool.

    Signed-off-by: Ye Li

    Ye Li
     
  • Add the OCOTP driver and fuse command configurations.

    Signed-off-by: Ye Li

    Ye Li
     
  • Add board_late_mmc_env_init to support MMC device detection for environment
    variables.

    Signed-off-by: Ye Li

    Ye Li
     
  • Since we can use USB ethernet instead of local ethernet, add ethernet support
    for it. To use USB ethernet function at u-boot, just plug in Micro-AB cable
    at USBOTG1 port with USB2Ethernet adapter connected.

    Signed-off-by: Peter Chen
    (cherry picked from commit 60ffddf87cf6b8502c5d5fc6540364adfd66ebb3)
    Signed-off-by: Ye Li

    Peter Chen
     
  • Enable and setup board level codes for MIPI DSI splashscreen on EVK board.
    User needs set env variable"panel=HX8363_WVGA" for displaying.

    Signed-off-by: Ye Li
    (cherry picked from commit 49cb68f5c17e42f9290336e1252ace6ac7d0b5ce)

    Ye Li
     
  • Add the host driver base from kernel for MIPI DSI controller on i.MX7ULP.
    The controller provides a DPI-2 interface for LCDIF video stream, and a APB interface
    for packet transmission.

    The driver provides APIs to register a MIPI panel device and its driver. The panel
    driver can use the write packet function provided by the host driver to send control
    packets to panel device via APB interface.

    MIPI DSI has its PHY and dedicated PLL. The driver will setup them when enabling the DSI
    host.

    Signed-off-by: Ye Li
    (cherry picked from commit e02115dd1c5d36ec06eabcb5a0b8e09aaf0f29a0)

    Ye Li
     
  • Porting codes to support USB OTG0 on the EVK board. Convert
    to use DM USB driver.

    Signed-off-by: Ye Li

    Ye Li
     
  • Porting the QSPI flash board support from v2016.03, and convert to use
    DM QSPI driver.
    Since we need to support QSPI at default in u-boot, change the default
    DTS file to qspi enabled DTS.

    Signed-off-by: Ye Li

    Ye Li
     
  • Since the SD3.0 kernel driver needs M4 image support, this causes problem to mfgtool.
    To decouple the relationship, we modify the FDT file in u-boot to disable
    SD3.0 when booting for mfgtool. So the kernel won't depend on M4 image.

    Signed-off-by: Ye Li
    Tested-by: Fugang Duan
    (cherry picked from commit 1826d6e4dc732521190c742f812193be95eea211)

    Ye Li
     
  • Enable MMC support.
    The fsl sdhc driver needs regulator to enable power, so enable
    regulator support.

    And bootcmd and more env.

    Signed-off-by: Peng Fan
    Cc: Stefano Babic

    Peng Fan