Samsung Galaxy S9 (samsung-starqltechn)

Contributors

 * dsankouski

How to enter flash mode
Hold +  +  until screen shows vendor logo. Use Odin or Heimdall to flash.

Mainline
Mainline kernel can be booted with stock bootloader or u-boot. Logs may be viewed from pstore(ramoops) or simple framebuffer.

Status

 * Green lines - works
 * Blue - in progress
 * Red - backlog

Roadmap

 * boots
 * framebuffer
 * storage, both main and sdcard
 * touchscreen driver (dsankouski)
 * muic driver(max77705), at least detect usb cable
 * assemble firmware package in aports
 * wifi (dsankouski)
 * bluetooth
 * display panel driver

Assembling boot image

 * clone mainline sources
 * build kernel. See also Compiling_kernels_with_envkernel.sh
 * append dtb to gzipped kernel image
 * pushd .output/arch/arm64/boot
 * generate initramfs image
 * make android bootimage
 * make android bootimage

U-boot
Has support in main tree, can boot PostmarketOS and Android.

See also u-boot sdm845 docs

Uart
`/dev/ttyHS8` can be exposed on USB D+D- lines. It's configured in data mover mode by downstream kernel.

Getting logs from pstore
Boot to twrp, and check  folder

Stock bootloader
Loads payload into ram at random physical address for security reason. Initramfs physical load address is 0xa2000000 both for boot image and recovery image