20 Mar, 2019

1 commit

  • The boota command boots an Android already written to mmc/emmc.
    It calls get_boot_device() to figure out where to look for Android;
    but when a board is booted over serial, get_boot_device() returns
    an invalid boot mode.

    Explicitly setting the storage_type will enable boota on
    a board booted over serial.

    FB: ucmd setenv storage_type emmc
    FB: ucmd boota

    Signed-off-by: Adrian Negreanu

    Adrian Negreanu
     

22 Feb, 2019

1 commit

  • Grant user the permission to change the bootargs can be very
    dangerous, so add config 'CONFIG_APPEND_BOOTARGS' to guard the
    bootargs appending feature.

    Test: bootargs can't be appended if "CONFIG_APPEND_BOOTARGS" is
    not set.

    Change-Id: I6d6879415ca251c806b56490290e5032aef24277
    Signed-off-by: Ji Luo

    Ji Luo
     

07 Jan, 2019

1 commit

  • Remove this patch to specify wifi vendor info from uboot,
    instead we directly add the bootargs in cmdline.

    Revert commit 9f1a11bdc3fef58bc41bebec858ccab0cd9050e4
    MA-13879[wifi concurrency] Add bootargs to set a
    property for wifi vendor of 8mm

    Change-Id: Icf7e89df2b4993f6e17a6b7cf38b891591f680d7
    Signed-off-by: yang.tian

    yang.tian
     

03 Jan, 2019

1 commit


11 Dec, 2018

1 commit

  • Pass bt mac address from uboot cmdline to write
    ro.boot.btmacaddr property for bluetooth hal to parse
    BDADDR which is composed from ro.boot.serialno,
    or it will fall back to persist property seted in init.rc.

    Change-Id: If6886596c79c699b8530d3249b1cc98f19aad51f
    Signed-off-by: yang.tian

    yang.tian
     

21 Nov, 2018

1 commit


12 Nov, 2018

1 commit


03 Nov, 2018

1 commit

  • Generate the key blob and store it to the last block of boot1 partition
    after setting the rpmb key. The key blob should be checked in spl and be
    passed to Trusty OS if it's valid. If the key blob are damaged, RPMB
    storage proxy service will return fail and should make the device hang.

    Test: Build and boot ok on imx8qm/qxp.

    Change-Id: Ia274cd72109ab6ae15920e91b2a2008e1f1e667c
    Signed-off-by: Ji Luo

    Ji Luo
     

28 Sep, 2018

1 commit

  • VTS need commandline 'androidboot.dtbo_idx='
    to verify fdt overlay. Pass the dtb index as "0" here since we
    only have one dtb in dtbo partition and haven't enabled the dtb
    overlay.

    Test: VTS case "VtsFirmwareDtboVerification#testVerifyOverlay" pass
    on imx8mq and imx8qxp.

    Change-Id: I33b089bf5a945e0b558bbb189b183a38f145dcbe
    Signed-off-by: Ji Luo

    Ji Luo
     

27 Sep, 2018

1 commit


26 Sep, 2018

1 commit


13 Sep, 2018

1 commit


11 Sep, 2018

1 commit

  • Read boot reason from SRC(system reset controller) and report
    it to kernel by "androidboot.bootreason=<>" kernel commandline.
    This is enabled on imx6/7/7ulp/8m, imx8 will report default value
    "androidboot.bootreason=reboot" since it can't get such info on
    A core at u-boot stage.

    Test: Boot reason report ok on imx6qp/imx7ulp/imx8qxp.

    Change-Id: I03effaa03bc513bec6153e82c1a04e29c07e7db8
    Signed-off-by: Ji Luo

    Ji Luo
     

13 Jun, 2018

1 commit


08 Feb, 2018

1 commit

  • The second area of android image was intended to put a 2nd stage
    bootloader but in practice were rarely used (in my knowledge).

    An proposal was made to the AOSP to (re)use the second area as the dtb[1],
    This patch itself doesn't depend on that proposal being accepted but it won't
    be that helpful as well if that proposal won't be accepted. But don't do
    any harm as well.

    [1] https://android-review.googlesource.com/#/c/417447/
    Signed-off-by: Bin Chen
    Reviewed-by: Tom Rini
    Reviewed-by: Kever Yang

    Bin Chen
     

16 Aug, 2017

2 commits

  • We are now using an env_ prefix for environment functions. Rename these
    two functions for consistency. Also add function comments in common.h.

    Quite a few places use getenv() in a condition context, provoking a
    warning from checkpatch. These are fixed up in this patch also.

    Suggested-by: Wolfgang Denk
    Signed-off-by: Simon Glass

    Simon Glass
     
  • We are now using an env_ prefix for environment functions. Rename setenv()
    for consistency. Also add function comments in common.h.

    Suggested-by: Wolfgang Denk
    Signed-off-by: Simon Glass

    Simon Glass
     

12 May, 2017

1 commit

  • Update the Android image header format to the latest version published
    in AOSP. The original code moved to a new repository, so this patch also
    updates the reference to that path.

    Signed-off-by: Alex Deymo
    Reviewed-by: Simon Glass

    Alex Deymo
     

25 Jun, 2016

1 commit


12 Oct, 2015

1 commit


09 May, 2015

1 commit

  • The two tools that create android boot images, mkbootimg and the fastboot
    client, set the kernel address by default to 0x10008000.

    U-boot always honors this field, and will try to relocate the kernel to
    whatever value is set in the header, which won't be mapped to the actual RAM on
    most platforms, resulting in the kernel obviously not booting.

    All the targets in U-Boot right now will download the android boot image to
    CONFIG_SYS_LOAD_ADDR, which means that it will already have been downloaded to
    some location that is suitable for execution.

    In order to have the kernel booting even with the default boot image kernel
    address, if that address is used, just execute the kernel where it is.

    Signed-off-by: Maxime Ripard

    Maxime Ripard
     

28 Oct, 2014

1 commit

  • This patch makes the following changes:
    - Set kernel entry point correctly
    - Append bootargs from image to global bootargs instead
    of replacing them
    - Return end address instead of size from android_image_get_end()
    - Give correct parameter to genimg_get_format() in boot_get_ramdisk()
    - Move ramdisk message printing from android_image_get_kernel() to
    android_image_get_ramdisk()

    Signed-off-by: Ahmad Draidi
    Cc: Tom Rini
    Reviewed-by: Simon Glass

    Ahmad Draidi
     

08 May, 2014

1 commit

  • This patch adds support for the Android boot-image format. The header
    file is from the Android project and got slightly alterted so the struct +
    its defines are not generic but have something like a namespace. The
    header file is from bootloader/legacy/include/boot/bootimg.h. The header
    parsing has been written from scratch and I looked at
    bootloader/legacy/usbloader/usbloader.c for some details.
    The image contains the physical address (load address) of the kernel and
    ramdisk. This address is considered only for the kernel image.
    The "second image" defined in the image header is currently not
    supported. I haven't found anything that is creating this.

    v3 (Rob Herring):
    This is based on http://patchwork.ozlabs.org/patch/126797/ with the
    following changes:
    - Rebased to current mainline
    - Moved android image handling to separate functions in
    common/image-android.c
    - s/u8/char/ in header to fix string function warnings
    - Use SPDX identifiers for licenses
    - Cleaned-up file source information:
    android_image.h is from file include/boot/bootimg.h in repository:
    https://android.googlesource.com/platform/bootable/bootloader/legacy
    The git commit hash is 4205b865141ff2e255fe1d3bd16de18e217ef06a
    usbloader.c would be from the same commit, but it does not appear
    to have been used for any actual code.
    v4:
    - s/andriod/android/
    - Use a separate flag ep_found to track if the entry point has been set
    rather than using a magic value.

    Cc: Wolfgang Denk
    Signed-off-by: Sebastian Andrzej Siewior
    Signed-off-by: Rob Herring
    Reviewed-by: Tom Rini
    Reviewed-by: Lukasz Majewski

    Sebastian Siewior