mirror of
https://github.com/ivoszbg/uniLoader.git
synced 2026-08-15 05:18:32 +00:00
All newer exynos devices with s-boot have the "feature" of placing the android kernel at a random location in dram, specifically around 0x80000000 and 0x83000000. This made it hard to assume where we are at, hence why we made everything as PiE (position-independent) as possible. This, however, resulted in a lot of issues. I usually managed to get around them with ugly hacks, but in the last 5-6 commits, with the fixed support for armv7, everything fell apart for arm64. So, the solution for this is to implement code at the beginning of the bootloader that relocates it to a safe place in memory. This is currently enabled for dreamlte, and it must be enabled and configured for all other boards with that issue. Otherwise they will NOT boot anymore. Boards that don't need this can keep CONFIG_POSITION_INDEPENDENT disabled.
7 lines
200 B
Makefile
7 lines
200 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Copyright (c) 2025 Ivaylo Ivanov <ivo.ivanov.ivanov1@gmail.com>
|
|
|
|
obj-$(CONFIG_POSITION_INDEPENDENT) += aarch64/reloc.o
|
|
obj-y += aarch64/start.o aarch64/memcpy.o
|