mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-18 02:38:56 +00:00
f8a1b33889
U-boot is intended to replace linux kernel in android boot image(ABL), and it's FIT payload to replace initramfs file. The boot process is similar to boot image with linux: - android bootloader (ABL) unpacks android boot image - ABL sets `linux,initrd-start property` in chosen node in unpacked FDT - ABL sets x0 register to FDT address, and passes control to u-boot - u-boot reads x0 register, and stores it in `prevbl_fdt_addr` env variable - u-boot reads `linux,initrd-start` property, and stores it in `prevbl_initrd_start_addr` In this way, u-boot bootcmd relies on `prevbl_initrd_start_addr` env variable, and boils down to `bootm $prevbl_initrd_start_addr`. If more control on boot process is desired, pack a boot script in FIT image, and put it to default configuration What done: - strip unneeded config options - add FIT image support - add framebuffer node, u-boot logo and video console - increase LMB_MAX_REGIONS, to store all linux dtb reserved memory regions - add linux kernel image header Uart driver causes hang, when u-boot is used in android boot image instead of linux. Temporary disable console driver, until investigated and fixed. Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com> Cc: Ramon Fried <rfried.dev@gmail.com>
62 lines
1 KiB
Text
62 lines
1 KiB
Text
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Samsung S9 SM-G9600 (starqltechn) board device tree source
|
|
*
|
|
* (C) Copyright 2021 Dzmitry Sankouski <dsankouski@gmail.com>
|
|
*
|
|
*/
|
|
|
|
/dts-v1/;
|
|
|
|
#include "sdm845.dtsi"
|
|
|
|
/ {
|
|
model = "Samsung S9 (SM-G9600)";
|
|
compatible = "qcom,sdm845-mtp", "qcom,sdm845", "qcom,mtp";
|
|
#address-cells = <2>;
|
|
#size-cells = <2>;
|
|
|
|
chosen {
|
|
stdout-path = "serial0:921600n8";
|
|
};
|
|
|
|
aliases {
|
|
serial0 = &debug_uart;
|
|
};
|
|
|
|
memory {
|
|
device_type = "memory";
|
|
reg = <0 0x80000000 0 0xfe1bffff>;
|
|
};
|
|
|
|
psci {
|
|
compatible = "arm,psci-1.0";
|
|
method = "smc";
|
|
};
|
|
|
|
framebuffer: framebuffer@9D400000 {
|
|
compatible = "simple-framebuffer";
|
|
reg = <0 0x9D400000 0 (2960 * 1440 * 4)>;//2400000
|
|
width = <1440>;
|
|
height = <2960>;
|
|
stride = <(1440 * 4)>;
|
|
format = "a8r8g8b8";
|
|
};
|
|
|
|
soc: soc {
|
|
serial@a84000 {
|
|
status = "okay";
|
|
};
|
|
|
|
pinctrl@3900000 {
|
|
muic_i2c: muic_i2c {
|
|
pins = "GPIO_33", "GPIO_34";
|
|
drive-strength = <0x2>;
|
|
function = "gpio";
|
|
bias-disable;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
#include "starqltechn-uboot.dtsi"
|