| 06621a79 | 07-Dec-2017 |
Kever Yang <kever.yang@rock-chips.com> |
rockchip: add rkimg bootloader support
Rockchip use rkimg bootloader to boot Android during development cycle and for other OS, typical content kernel.img with zImage/Image, boot.img and recovery.im
rockchip: add rkimg bootloader support
Rockchip use rkimg bootloader to boot Android during development cycle and for other OS, typical content kernel.img with zImage/Image, boot.img and recovery.img with Ramdisk, packed with 'KNRL' header; and resource.img with dtb and uboot/kernel logo bmp, vendor storage for custom info like SN and MAC address.
Change-Id: I400195a5e622437f234f22d6675a5e96db9085c6 Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
show more ...
|
| f337c9f7 | 20-Nov-2017 |
Algea Cao <algea.cao@rock-chips.com> |
common: edid: Fix some warning
Change-Id: I65483b598fa89bd871913f58ad00935f6dadaa95 Signed-off-by: Algea Cao <algea.cao@rock-chips.com> |
| 21016d27 | 30-Oct-2017 |
Algea Cao <algea.cao@rock-chips.com> |
common: edid: Add more detailed edid parsing
The original edid parsing methods are too simple. The new parsing methods are carried from kernel.
Change-Id: I28b9b14e1bc76c38366f41d23f0e01ac779780d0
common: edid: Add more detailed edid parsing
The original edid parsing methods are too simple. The new parsing methods are carried from kernel.
Change-Id: I28b9b14e1bc76c38366f41d23f0e01ac779780d0 Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
show more ...
|
| 90e877b5 | 10-Nov-2017 |
Weiwen Chen <cww@rock-chips.com> |
android: load fdt from the oem partition
The fdt must be named of "kernel.dtb", and it's saved in the root dir of the oem partition.
Change-Id: I70dc9cbbc295f23b08bf122df3b29bba7dacb82f Signed-off-
android: load fdt from the oem partition
The fdt must be named of "kernel.dtb", and it's saved in the root dir of the oem partition.
Change-Id: I70dc9cbbc295f23b08bf122df3b29bba7dacb82f Signed-off-by: Weiwen Chen <cww@rock-chips.com>
show more ...
|
| 8ce4d284 | 10-Nov-2017 |
Weiwen Chen <cww@rock-chips.com> |
android: add api for loading fdt
If user get the kernel fdt into the independent partition which is the ext4 filesystem, we can use this api to load fdt.
Change-Id: I4fa494beffecb41e8c0e4c02f1e782d
android: add api for loading fdt
If user get the kernel fdt into the independent partition which is the ext4 filesystem, we can use this api to load fdt.
Change-Id: I4fa494beffecb41e8c0e4c02f1e782d0291e2d05 Signed-off-by: Weiwen Chen <cww@rock-chips.com>
show more ...
|
| b3b934b6 | 17-Nov-2017 |
Jason Zhu <jason.zhu@rock-chips.com> |
android: boot the system without a/b and avb
Change-Id: I9a6da661c9cf17e2e3190b55f18acd600f9b63f1 Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com> |
| 7b960a8a | 16-Nov-2017 |
Weiwen Chen <cww@rock-chips.com> |
fastboot: mmc: add actual disk size to response
If GPT buf is invalid, it will send actual disk size back. We can use this actual disk size to build correct GPT partition.
Change-Id: Ia54112951b7b8
fastboot: mmc: add actual disk size to response
If GPT buf is invalid, it will send actual disk size back. We can use this actual disk size to build correct GPT partition.
Change-Id: Ia54112951b7b8daa6afe369bc16a037cdbe8db39 Signed-off-by: Weiwen Chen <cww@rock-chips.com>
show more ...
|
| 0e3d235e | 10-Nov-2017 |
Cody Xie <cody.xie@rock-chips.com> |
androidboot: Pass "androidboot.serialno" to kernel cmdline.
Change-Id: Ia0b693f2652ab35b2e29b1c23335f962b3943050 Signed-off-by: Cody Xie <cody.xie@rock-chips.com> |
| de183ed0 | 18-Sep-2017 |
Jason Zhu <jason.zhu@rock-chips.com> |
android: declare some functions externally
In file boot_android.c, we use some functions belong to common/android_bootloader.c. BUt these functions attribute are static. So we modify these functions
android: declare some functions externally
In file boot_android.c, we use some functions belong to common/android_bootloader.c. BUt these functions attribute are static. So we modify these functions used in the boot_android.c.
And android_avb_boot_flow is added to boot a/b android system.
Change-Id: I3ebc0a6fb24691ab1a0f8475220e16ca633412f1 Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
show more ...
|
| 16d3892d | 25-Jul-2017 |
Kever Yang <kever.yang@rock-chips.com> |
fastboot: mmc: add response for all ack
To pass the build.
Change-Id: Ifafbb3bd586f4ff0a7def210720e4db16064ec4d Signed-off-by: Kever Yang <kever.yang@rock-chips.com> |
| 46eed855 | 25-Jul-2017 |
Kever Yang <kever.yang@rock-chips.com> |
android: do not compile android boot in SPL
Change-Id: I2797754e320255f751aa9d02f168031dcaa50fb9 Signed-off-by: Kever Yang <kever.yang@rock-chips.com> |
| a49a0552 | 22-Apr-2017 |
Alex Deymo <deymo@google.com> |
android: Pass the ramdisk to the kernel.
Android kernel image format can include an initramfs image in the same kernel partition. This patch passes the initramfs to the kernel, which in the normal b
android: Pass the ramdisk to the kernel.
Android kernel image format can include an initramfs image in the same kernel partition. This patch passes the initramfs to the kernel, which in the normal boot mode ignores it by passing "skip_initramfs" in the command line.
Bug: 34346003 Test: `am broadcast -a android.intent.action.MASTER_CLEAR` factory reseted the device.
Change-Id: I21d89e34a0f54badf3b2e3ad8981cef75f6d5edf
show more ...
|
| 170e9eb9 | 02-Apr-2017 |
Alex Deymo <deymo@google.com> |
android: Fix off-by-one error when joining strings
When concatenating the strings to form a new command line in the android bootloader flow, the null-terminator was placed one byte after the end of
android: Fix off-by-one error when joining strings
When concatenating the strings to form a new command line in the android bootloader flow, the null-terminator was placed one byte after the end of the allocated string.
Bug: None Test: booted a rpi3. Change-Id: I120e09a77bb1c27980e7ce2b5f9b8961424ed0c3
show more ...
|
| 180cc7c6 | 25-Mar-2017 |
Alex Deymo <deymo@google.com> |
android: Implement A/B slot select.
The android_bootloader_control struct defined in bootloader_message.h stored the A/B metadata used to decide which slot should we use to boot the device. This pat
android: Implement A/B slot select.
The android_bootloader_control struct defined in bootloader_message.h stored the A/B metadata used to decide which slot should we use to boot the device. This patch implements the bootloader side of the slot selection in a new "android_ab_select" command which decides the current slot and updates the metadata as needed.
Bug: 32707546 Test: Booted a rpi3, updated to the other slot. Change-Id: I9344ff5b76194160d2b466a50e84f4f423b1a98a
show more ...
|
| 80622240 | 25-Mar-2017 |
Alex Deymo <deymo@google.com> |
boot_android: Pass the slot from the command.
In order to support booting from either slot, this patch passes the slot name from the command line.
Bug: 32707546 Test: Booted rpi3. Change-Id: I30582
boot_android: Pass the slot from the command.
In order to support booting from either slot, this patch passes the slot name from the command line.
Bug: 32707546 Test: Booted rpi3. Change-Id: I30582bd8b1b95dc0f25b0c6624e7909ee4118bd0
show more ...
|
| 67dac674 | 09-Nov-2016 |
Alex Deymo <deymo@google.com> |
Initial support for the Android Bootloader flow
An Android Bootloader must comply with certain boot modes and change the kernel command line accordingly. This patch introduces the Android boot mode
Initial support for the Android Bootloader flow
An Android Bootloader must comply with certain boot modes and change the kernel command line accordingly. This patch introduces the Android boot mode concept which determines whether the device should boot to one of the following: * recovery: which should boot to the recovery image, * bootloader: which should boot to the "bootloader" (fastboot) and * normal: which should boot to the system image.
The boot mode is determined in part by the Boot Control Block (BCB) which is stored at the beginning of the "misc" partition. The BCB is defined in the "bootloader_message.h" file in AOSP, now copied here as android_bootloader_message.h with minor modifications.
This patch implements the basic boot flow that loads and boots an Android kernel image assuming an A/B device which implies that it uses boot as recovery (BOARD_USES_RECOVERY_AS_BOOT in the BoardConfig.mk). This means that the recovery image shares the same kernel with the normal boot system image, but stores the recovery image as a ramdisk which is not used in normal mode.
Among the limitations, this patch doesn't implement the A/B slot selection, it only boots from the slot "a".
Bug: 31887729 Test: Booted a rpi3 with this flow.
Signed-off-by: Alex Deymo <deymo@google.com> Change-Id: Ia2932c6f398f1ae713f0cd9670828f84103dca38 update setenv/getenv to env_set/env_get. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
show more ...
|
| 76e2a5a6 | 10-Jan-2017 |
Alex Deymo <deymo@google.com> |
Move Android Image loading logic to image-android.c
This patch moves the Android Image loading logic from the load_android command to a new android_load_image() function in image-android.c so it can
Move Android Image loading logic to image-android.c
This patch moves the Android Image loading logic from the load_android command to a new android_load_image() function in image-android.c so it can be re-used from other commands.
Bug: 32707546 Test: Booted the rpi3 with this patch. Signed-off-by: Alex Deymo <deymo@google.com> Change-Id: I12d206141ead1b94ebbcc90ee05512a276c7595a
show more ...
|
| aba554cc | 23-Nov-2016 |
Jocelyn Bohr <bohr@google.com> |
Handle slow MMC writes
Flashing a 400Mb sparse system image takes ~10 minutes. The fastboot UDP protocol expects a response within 1 minute, so during long flash operations, the device must send fas
Handle slow MMC writes
Flashing a 400Mb sparse system image takes ~10 minutes. The fastboot UDP protocol expects a response within 1 minute, so during long flash operations, the device must send fastboot "INFO" packets.
This patch does the following: - Separate large writes into writes of size FASTBOOT_MAX_BLK_WRITE. This parameter was tuned by hand to result in a ~10 second write. - Keep a timer and send an INFO packet every 30 seconds. - Adjust the sequence number in the header of the fastboot OKAY packet to account for any INFO packets sent during flashing. - Reduce busywaiting in the bcm2835 MMC driver. This change is based on what the kernel does, and doesn't seem to corrupt the MMC. Without this change, "flashall" takes 25 minutes.
Bug: 31887729 Test: "fastboot -s udp:$RPI_IP flashall" works, rpi3 boots - Compute CRC checksum over every write to verify written data was not corrupted.
Change-Id: Ib17ef6a85715705a8b5f722a8b7d3e5fd1a6625d
show more ...
|
| 8b464fa9 | 09-Nov-2016 |
Jocelyn Bohr <bohr@google.com> |
Implement fastboot flash and erase.
Add function to respond to fastboot flash and erase. Flash writes the previously downloaded image to indicated partition. Erase clears the indicated partition. fb
Implement fastboot flash and erase.
Add function to respond to fastboot flash and erase. Flash writes the previously downloaded image to indicated partition. Erase clears the indicated partition. fb_flash and fb_erase are essentially wrappers for fb_mmc_flash_write and fb_mmc_erase, which are implemented in common/fb_mmc.c.
Added common/fb_common.c, where fastboot_okay/fail are implemented. common/fb_mmc.c assumes fasboot_okay() and fastboot_fail() are implemented, but they were tied to the fastboot USB implementation. This refactor adds the response string as a parameter to fastboot_okay/fail, instead of modifying a global.
Bug: 31887729 Test: FLASH: - Create file "foo" containing 2048 chars = "-" - Start "fastboot udp" on device and run "fastboot -s udp:$RPI_IP flash misc foo" from host - From U-boot console, read into memory the first 4 blocks from misc partition, observe each byte is "-".
ERASE - Start "fastboot udp" on device and run "fastboot -s udp:$RPI_IP erase misc" from host - From U-boot console, read into memory many blocks from misc partition, observe each byte is 0x00
Configs that use fastboot USB implementation still build.
Change-Id: I5bd54868990bd9d5736d0969b3db240c2926eeec
show more ...
|
| 6f14746b | 17-Aug-2017 |
Paweł Jarosz <paweljarosz3691@gmail.com> |
rockchip: mkimage: add support for rockchip nand boot image
The Rockchip boot ROM requires a particular file format for booting from NAND:
* It starts with 512-byte, rc4 encoded header and is align
rockchip: mkimage: add support for rockchip nand boot image
The Rockchip boot ROM requires a particular file format for booting from NAND:
* It starts with 512-byte, rc4 encoded header and is aligned to nand page size
* Then first 2KB of first stage loader (tpl) aligned to nand page size * n empty pages
* second 2KB of first stage loader (tpl) aligned to nand page size * n empty pages
* ...
* first 2KB of second stage loader (spl) aligned to nand page size * n empty pages
* second 2KB of first stage loader (spl) aligned to nand page size * n empty pages
* ...
Size of spl and tpl must be aligned to 2KB.
example usage for nand with page size 16384 and one empty page in iteration:
# mkimage -n rk3066 -T rknand -d ./u-boot/tpl/u-boot-tpl.bin:./u-boot/spl/u-boot-spl.bin -X 16384,1 out
Change-Id: Ie4ecb50637449251956a868272ce51ef489c7a1e Signed-off-by: Paweł Jarosz <paweljarosz3691@gmail.com> Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
show more ...
|
| b24d32f4 | 02-Nov-2017 |
Kever Yang <kever.yang@rock-chips.com> |
spl: set SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR to 0x4000 for rockchip
Rockchip use a 'loader2' partition for U-Boot, so u-boot.bin or u-boot.itb load by SPL need to locate at0x4000. Detail here: http://o
spl: set SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR to 0x4000 for rockchip
Rockchip use a 'loader2' partition for U-Boot, so u-boot.bin or u-boot.itb load by SPL need to locate at0x4000. Detail here: http://opensource.rock-chips.com/wiki_Boot_option
Change-Id: I3375346d04538cef1ce797bd2da5480c9ed50674 Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
show more ...
|
| b9e63a96 | 15-Sep-2017 |
Mark Yao <mark.yao@rock-chips.com> |
edid: support decode edid to drm modes
Change-Id: I38f82586d81177a4e6f5c20815af5480b40d2ff8 Signed-off-by: Mark Yao <mark.yao@rock-chips.com> |
| 97900780 | 12-Sep-2017 |
Joseph Chen <chenjh@rock-chips.com> |
fdt: fdt_chosen: support merge uboot and kernel bootargs for Rockchip
Change-Id: Id8a81d729a736d66301ca964f5b765a92f24c642 Signed-off-by: Joseph Chen <chenjh@rock-chips.com> |
| e6cf1f43 | 12-Sep-2017 |
Kever Yang <kever.yang@rock-chips.com> |
spl: optee: add support for Rockchip customize optee
Rockchip change the parameter to r1 instead of lr.
Change-Id: I675e3be2a8a80c548117e449f72f70888d1b4191 Signed-off-by: Kever Yang <kever.yang@ro
spl: optee: add support for Rockchip customize optee
Rockchip change the parameter to r1 instead of lr.
Change-Id: I675e3be2a8a80c548117e449f72f70888d1b4191 Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
show more ...
|
| b7b8d0a6 | 12-Sep-2017 |
Kever Yang <kever.yang@rock-chips.com> |
spl: stash bootstage info before jump to next stage
Since we may jump to next stage like ATF/OP-TEE instead of U-Boot, we need to stash the bootstage info before it.
Change-Id: I4de48f95291be638cc5
spl: stash bootstage info before jump to next stage
Since we may jump to next stage like ATF/OP-TEE instead of U-Boot, we need to stash the bootstage info before it.
Change-Id: I4de48f95291be638cc57be25c2bc27f526d9f9f0 Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
show more ...
|