~ondrak/+git/lk:release/LA.BR.1.2.7-03810-8x16.0+uc+fde

Last commit made on 2020-10-20
Get this branch:
git clone -b release/LA.BR.1.2.7-03810-8x16.0+uc+fde https://git.launchpad.net/~ondrak/+git/lk
Only Ondrej Kubik can upload to this branch. If you are Ondrej Kubik please log in for upload directions.

Branch merges

Branch information

Name:
release/LA.BR.1.2.7-03810-8x16.0+uc+fde
Repository:
lp:~ondrak/+git/lk

Recent commits

b769321... by Ondrej Kubik

ubuntu: fde: first shot of fde implementation

Signed-off-by: Ondrej Kubik <email address hidden>

5f336a8... by Ondrej Kubik

ubuntu: enable format for ubuntu core partition names

Signed-off-by: Ondrej Kubik <email address hidden>

1b3268c... by Ondrej Kubik

ubuntu: pretify log output at boot time

Signed-off-by: Ondrej Kubik <email address hidden>

248fe11... by Ondrej Kubik

ubuntu: add support for custom provisioning partition

Feature is controlled by compile flags
CUSTOM_PROVISION=1 : custom provisioning is supported

SIGNED_PROVISION=1 : provisioning has to be signed
   assumes CUSTOM_PROVISION=1

TRUSTED_HW : enforce checks of emmc serial number matching number in signed provisioning
   assumes SIGNED_PROVISION=1

Signed-off-by: Ondrej Kubik <email address hidden>

5aff0a2... by Ondrej Kubik

ubuntu: allow flashing of all partitions

Signed-off-by: Ondrej Kubik <email address hidden>

a7c28d6... by Ondrej Kubik

ubuntu: add reference snappy_boot_v1.h header

Signed-off-by: Ondrej Kubik <email address hidden>

be87ef7... by Ondrej Kubik

ubuntu: add snappy boot support

Adding loggic and message passing capabilities betweek bootloader and snapd
Feature is controlled through compile flag:
SNAPPY_BOOT=1

Signed-off-by: Ondrej Kubik <email address hidden>

0a10f81... by =?utf-8?b?QW7DrWJhbCBMaW3Ds24=?= <email address hidden>

platform/msm8916: Allow bigger kernels

We only have space from 0x80080000 (kernel start) to 0x860000000
(tz zone starts), rearrange to provide more space to the Kernel.

0x80080000 - 0x85E00000, kernel (93.5MB)
0x82080000 - 0x85E00000, dtb (2MB)

Signed-off-by: Aníbal Limón <email address hidden>

83b6450... by =?utf-8?b?QW7DrWJhbCBMaW3Ds24=?= <email address hidden>

app/aboot: Use SCRATCH_ADDR for ramdisk

Use SCRATCH_AREA for ramdisk that currently is mapped to have 256MB [1]
[2], this area is used for fastboot as temporary when download images (boot,
rootfs) and can be used to load the ramdisk, it validates for max
download size [3] so buffer overruns are handled.

I tested using fastboot boot (162.87 MB ramdisk) and fastboot flash/continue
(26.79MB) ramdisk.

[1] https://git.linaro.org/landing-teams/working/qualcomm/lk.git/tree/platform/msm8916/platform.c?h=release/LA.BR.1.2.7-03810-8x16.0&id=ef47e117dcf5cc118befe3cbc20f4ef7c1859a10#n68
[2] https://git.linaro.org/landing-teams/working/qualcomm/lk.git/tree/app/aboot/aboot.c?h=release/LA.BR.1.2.7-03810-8x16.0&id=ef47e117dcf5cc118befe3cbc20f4ef7c1859a10#n3762
[3] https://git.linaro.org/landing-teams/working/qualcomm/lk.git/tree/app/aboot/fastboot.c?h=release/LA.BR.1.2.7-03810-8x16.0&id=ef47e117dcf5cc118befe3cbc20f4ef7c1859a10#n426

Signed-off-by: Aníbal Limón <email address hidden>
Change-Id: I268c764b64d0f469e21697f596ab6e5480016879

ef47e11... by =?utf-8?b?QW7DrWJhbCBMaW3Ds24=?= <email address hidden>

platform/msm8916: Rearrange Ramdisk and DTB addresses

We are experimenting data abort handling issues with a ramdisk with
size of 0x1acd5d0 the ramdisk address was set at 0x84000000 with final
address 0x85acd5d0 but crashes when reach 0x85a00000 because the mapping
is for 90 MB (0x84000000 - 0x85a00000).

...
[3230] [3230] data abort, halting
[3230] [3230] r0 0x85a00000 r1 0x924d1010 r2 0x000cd5b0 r3 0x14ad1000
[3230] [3230] r4 0xcf4d1acc r5 0x6bff89f3 r6 0x0155f72e r7 0x8178233a
[3230] [3230] r8 0x009d0800 r9 0x90100000 r10 0x01a63000 r11 0x9259f000
[3230] [3230] r12 0x00000001 usp 0x00000000 ulr 0x00000000 pc 0x8f629c30
[3230] [3230] spsr 0x20000153
...

Since we only have space from 0x80080000 (kernel start) to 0x860000000
(tz zone starts), rearrange to provide more space to the ramdisk.

0x80080000 - 0x82080000, kernel (32MB)
0x82080000 - 0x82280000, dtb (2MB)
0x82280000 - 0x86000000, ramdisk (61.5MB)

Change-Id: I07fd7f982a07c98eb8f783f1aca5991ac6643741
Signed-off-by: Aníbal Limón <email address hidden>
Signed-off-by: Nicolas Dechesne <email address hidden>