Re: [U-Boot] SPDX header might be wrong in 4 files from Android Open Source Project

2019-11-27 Thread Alex Deymo
Le lun. 25 nov. 2019 à 17:20, Igor Opaniuk a écrit : > + Alex Deymo > > Hi Zdenek > > On Mon, Nov 25, 2019 at 6:05 PM zdenek.bou...@siemens.com > wrote: > > > > Hello, > > > > SPDX-License-Identifier: BSD-3-Clause might be wrong in the following 4 >

[U-Boot] [PATCH] Update include/android_image.h from AOSP

2019-08-05 Thread Alex Deymo
converted from C++ to C style. * Code inside __cplusplus #ifdef blocks were removed. * C++11 struct extensions replaced with a single struct. Signed-off-by: Alex Deymo --- include/android_image.h | 120 ++-- 1 file changed, 90 insertions(+), 30 deletions(-) diff

[U-Boot] [PATCH] Import include/android_bootloader_message.h from AOSP

2019-05-14 Thread Alex Deymo
++ to C comments and adding #ifndef __UBOOT__ block to skip all the function declarations). Signed-off-by: Alex Deymo --- include/android_bootloader_message.h | 246 +++ 1 file changed, 246 insertions(+) create mode 100644 include/android_bootloader_message.h diff --git

[U-Boot] [PATCH] Import Android's dt_table.h for DT image format

2018-05-28 Thread Alex Deymo
removed. Signed-off-by: Alex Deymo <de...@google.com> --- include/dt_table.h | 50 ++ 1 file changed, 50 insertions(+) create mode 100644 include/dt_table.h diff --git a/include/dt_table.h b/include/dt_table.h new file mode 100644 index 0

[U-Boot] FYI: Android bootloader flow documentation published

2018-05-28 Thread Alex Deymo
Just an FYI, earlier this month the team spent some time polishing and publishing in source.android.com documentation about the flows the bootloader goes through in Android, specially true for stock Android like in Pixels phones or other devices based of recent AOSP versions. Take a look at

Re: [U-Boot] [U-Boot, v2, 1/2] common: Add support for Android DT image

2018-05-28 Thread Alex Deymo
Hi, I checked with our team and the include/dt_table.h import as BSD-3 here is fine with us. Would you like me to send a patch with just this header file or just Signed-off-by this whole patch? Thanks, deymo@ Le ven. 25 mai 2018 à 03:54, Tom Rini a écrit : > On Fri, May 18,

Re: [U-Boot] [PATCH v2 1/2] common: Add support for Android DT image

2018-05-08 Thread Alex Deymo
+ u32 page_size; /* flash page size we assume */ > + u32 reserved[1];/* must be zero */ > +}; > + > +struct dt_table_entry { > + u32 dt_size; > + u32 dt_offset; /* offset from head of dt_table_header */ > + > + u32 id; /* optional, must be

Re: [U-Boot] [PATCH v2 2/2] cmd: Add dtimg command

2018-05-08 Thread Alex Deymo
" : name of variable where to store address of FDT\n" > + "dtimg size \n" > + "- get size (hex, bytes) of FDT in the image, by index\n" > + " : image address in RAM, in hex\n" > + " : index of desired FDT in the image\n" > + " : name of variable where to store size of FDT" > +); > diff --git a/common/Makefile b/common/Makefile > index 7011dada99..6ef55d0d7a 100644 > --- a/common/Makefile > +++ b/common/Makefile > @@ -111,6 +111,10 @@ obj-$(CONFIG_IO_TRACE) += iotrace.o > obj-y += memsize.o > obj-y += stdio.o > > +ifdef CONFIG_CMD_DTIMG > +obj-y += image-android-dt.o > +endif > + > ifndef CONFIG_SPL_BUILD > # This option is not just y/n - it can have a numeric value > ifdef CONFIG_FASTBOOT_FLASH > -- > 2.17.0 > You would likely need review from a maintainer, but otherwise this looks fine (just one nit) Reviewed-by: Alex Deymo <de...@google.com> ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] Appended DTB Android boot image support

2018-05-01 Thread Alex Deymo
Hi Ramon, What "header_version" is the boot image you have? The include/android_image.h in U-Boot is a little bit old so it only defines the v0 format. The "unused" field in v0 was renamed to "header_version" where 0 means v0. The v1 adds a few more fields, including a DTB/DTBO for *recovery*

Re: [U-Boot] [PATCH 6/6] cmd: Add "boot_android" command.

2018-04-30 Thread Alex Deymo
Regarding the boot_android command, U-Boot supports loading Android-format kernel images to memory and booting them. That's not the main purpose of boot_android, it actually does that by just calling bootm. The part that U-Boot doesn't support is all the flows around booting an Android device

Re: [U-Boot] [PATCH 0/8] Initial integration of AVB2.0

2018-04-26 Thread Alex Deymo
Hi Kever, libavb and libavb_ab are different things, and we split them for a reason. Adding libavb is great, but you don't need to add libavb_ab as an A/B implementation. The boot_android command referenced by Igor doesn't use that as an A/B implementation, but uses the structs already defined

Re: [U-Boot] [RFC PATCH v1 4/5] dfu: Resolve Kconfig dependency loops

2018-04-25 Thread Alex Deymo
2018-04-25 9:53 GMT+02:00 Lukasz Majewski : > Hi Alex, > > > Fix recursive dependencies in Kconfig introduced by fastboot UDP > > > > Signed-off-by: Alex Kiernan > > --- > > > > cmd/fastboot/Kconfig | 5 +++-- > > 1 file changed, 3 insertions(+), 2

Re: [U-Boot] [RFC PATCH v1 0/5] Add fastboot UDP support

2018-04-25 Thread Alex Deymo
2018-04-25 10:43 GMT+02:00 Alex Kiernan : > >> - what's the correct way of attributing the original authors? I've > >> added Co-authored-by, is that right? checkpatch doesn't seem to know > >> any of the co- tags > > > > I think that two authors (Alex and Jocelyn) have

Re: [U-Boot] [RFC PATCH v1 0/5] Add fastboot UDP support

2018-04-24 Thread Alex Deymo
+Jocelyn. Thanks Alex for taking the time to port this!! Some comments inline here about your questions. 2018-04-24 11:37 GMT+02:00 Alex Kiernan : > > This series merges the fastboot UDP support from AOSP into mainline > U-Boot. > > Open questions: > > - what's the

Re: [U-Boot] [PATCH 0/6] Android A/B Bootloader support

2018-04-16 Thread Alex Deymo
com>: > Hi Alex, > > The Android A/B bootloader patch series looks good. > > How far along are you to have this work integrated ? > > Regards, > Stan > > On 04/02/2017 04:49 PM, Alex Deymo wrote: > >* An "Android Bootloader" has a lot of requirements abo

Re: [U-Boot] [Feature] Android Fastboot over Ethernet

2018-04-16 Thread Alex Deymo
Hi all, Android Things on rpi supports fastboot over udp since most rpis don't expose a suitable USB port for fastboor over USB. It also uses the A/B booting mechanism similar to Pixel phones. The U-Boot code for the latest Android Things preview is in AOSP:

Re: [U-Boot] [PATCH 0/2] Improve Raspberry Pi mmc writes.

2017-04-07 Thread Alex Deymo
2017-04-06 21:53 GMT-07:00 Jaehoon Chung <jh80.ch...@samsung.com>: > On 04/02/2017 03:58 PM, Alex Deymo wrote: > > When experimenting with fastboot from U-Boot on the Raspberry Pi 3 we > > found that the writes to the sdcard are much more slow than when > > acce

[U-Boot] [PATCH 5/6] Initial support for the Android Bootloader flow

2017-04-04 Thread Alex Deymo
: Booted a rpi3 with this flow. Signed-off-by: Alex Deymo <de...@google.com> --- README | 19 +- common/Kconfig | 19 ++ common/Makefile | 1 + common/android_bootloader.c | 350 +

[U-Boot] [PATCH 3/6] cmd: Add 'load_android' command to load Android images.

2017-04-04 Thread Alex Deymo
Android kernel images include a header that specifies addresses and kernel size. This patch adds a command to load these images from storage without specifying the size or address of them, and parsing them from the header instead. --- cmd/Kconfig| 9 + cmd/Makefile | 1 +

[U-Boot] [PATCH 1/6] image: Update include/android_image.h

2017-04-04 Thread Alex Deymo
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 <de...@google.com> --- common/image-android.c | 9 + include/android_i

[U-Boot] [PATCH 0/6] Android A/B Bootloader support

2017-04-04 Thread Alex Deymo
patchset updates the Android-related headers and introduces new commands to boot a recent Android build. This work is based on the bootloader used in the Raspberry Pi in Android Things and extensively tested there. [1] https://source.android.com/devices/tech/ota/ab_updates.html Alex Deymo (6)

[U-Boot] [PATCH 2/6] image: Implement a function to load Android Images.

2017-04-04 Thread Alex Deymo
This patch implements the logic needed to load an Android boot image from storage, since the size and kernel address in Android images is defined in its header. Signed-off-by: Alex Deymo <de...@google.com> --- common/image-android.

[U-Boot] [PATCH 4/6] disk: Return the partition number in part_get_info_by_name()

2017-04-04 Thread Alex Deymo
Similar to what blk_get_device_part_str() does, this patch makes part_get_info_by_name() return the partition number in case of a match. This is useful when the partition number is needed and not just the descriptor. Signed-off-by: Alex Deymo <de...@google.com> --- common/fb_mmc

[U-Boot] [PATCH] Allow boards to initialize the DT at runtime.

2017-04-04 Thread Alex Deymo
the run-time selected device tree overlays. Signed-off-by: Alex Deymo <de...@google.com> --- README | 8 +++- board/raspberrypi/rpi/rpi.c | 10 ++ doc/README.fdt-control | 4 dts/Kconfig | 8 include/fdtdec.h

[U-Boot] [PATCH] rpi: Support both UART interfaces.

2017-04-04 Thread Alex Deymo
ot;skip-init" in the uart0 block, for example this device tree fragment would do it: fragment@0 { target = <>; __overlay__ { skip-init; }; }; Test: Booted a rpi3 with either UART output. Signed-off-by: Alex D

[U-Boot] [PATCH 6/6] cmd: Add "boot_android" command.

2017-04-04 Thread Alex Deymo
Test: Booted a rpi3 build with Android Things. Signed-off-by: Alex Deymo <de...@google.com> --- README | 6 +++ cmd/Kconfig| 10 + cmd/Makefile | 1 + cmd/boot_android.c | 126 + 4 files changed, 143 inserti

[U-Boot] [PATCH 2/2] mmc: sdhci: Wait for SDHCI_INT_DATA_END when transferring.

2017-04-04 Thread Alex Deymo
waits for the SDHCI_INT_DATA_END bit to be set even after sending all the blocks. Test: Reliably wrote 2GiB of data to mmc in a rpi3. Signed-off-by: Alex Deymo <de...@google.com> --- drivers/mmc/sdhci.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/d

[U-Boot] [PATCH 1/2] mmc: bcm2835_sdhci: Speed up mmc writes.

2017-04-04 Thread Alex Deymo
From: Jocelyn Bohr <b...@google.com> The linux kernel driver for this module does not use a delay when writing to the SDHCI_BUFFER register. This patch mimics that behavior in order to speed up the mmc writes on the Raspberry Pi. Signed-off-by: Alex Deymo <de...@google.com> ---

[U-Boot] [PATCH 0/2] Improve Raspberry Pi mmc writes

2017-04-04 Thread Alex Deymo
When experimenting with fastboot from U-Boot on the Raspberry Pi 3 we found that the writes to the sdcard are much more slow than when accessing it from the userspace. These two patches speed up the write and allow us to reliably write the sdcard from U-Boot. Alex Deymo (1): mmc: sdhci: Wait