mirror of
https://github.com/ivoszbg/uniLoader.git
synced 2026-08-15 05:18:32 +00:00
89ead8a57a0d2d0227d327e8e43ab221f852d4e9
ALIGN(4) is left over from 32-bit linker script templates. On aarch64 the natural pointer/long alignment is 8, and these sections usually contain 64-bit constants (pointer tables, 64-bit literals). The 4-byte alignment was harmless because the linker happens to align individual symbols anyway, but let's just align it properly for the sake of correctness. For BSS also ensure we have extra padding before the end of the section.
uniLoader
uniLoader is a minimalistic loader, capable of booting Linux kernels. It can be used as an intermediate bootloader, providing a clean booting environment in case of a forced and buggy bootloader.
Supported Architectures
- ARMv7
- ARMv8
Supported Devices
Apple
- N61AP
Amazon
- PW3
Blackview
- Tab15Pro
- Taimen
Huawei
- Agassi2
itel
- P682LPN
Infinix
- X6710
Nokia
- Essential
Nothing
- Tetris
QEMU
- Virt
Realme
- RMX3511
Samsung
- A3XELTE
- A10
- A12S
- A30
- A33X
- BEYOND1LTE
- C1S
- DREAMLTE
- G0S
- GTA4XL
- HEROLTE
- J4LTE
- J5LTE
- JACKPOTLTE
- LUCKY7
- NOBLELTE
- R0Q
- R8S
- STARLTE
- X1S
- ZEROFLTE
Sony
- PDX245
- PSVITA
Volla
- Algiz
Xiaomi
- Begonia
- Blossom
- Camellia
Make Syntax
make ARCH=$(arch) CROSS_COMPILE=$(toolchain)
Building Example
sudo apt install aarch64-linux-gnu
git clone https://github.com/ivoszbg/uniLoader
cd uniLoader
cp /home/user/linux/arch/arm64/boot/Image blob/Image
cp /home/user/linux/arch/arm64/boot/dts/exynos/exynos8895-dreamlte.dtb blob/dtb
cp /home/user/ramdisk.gz blob/ramdisk
make ARCH=aarch64 CROSS_COMPILE=aarch64-linux-gnu- dreamlte_defconfig
make ARCH=aarch64 CROSS_COMPILE=aarch64-linux-gnu-
Build with Clang and LLVM toolchain
make ARCH=aarch64 LLVM=1 dreamlte_defconfig
make ARCH=aarch64 LLVM=1
make ARCH=aarch64 CROSS_COMPILE=aarch64-linux-gnu- LLVM=/bin dreamlte_defconfig
make ARCH=aarch64 CROSS_COMPILE=aarch64-linux-gnu- LLVM=/bin
License
This project is licensed under GPLv2.
Languages
C
82.7%
C++
5.9%
Makefile
4.4%
Assembly
2.9%
Yacc
1.8%
Other
2.3%