Commit Graph
136 Commits
Author SHA1 Message Date
Igor Belwon 4cca1ce703 board: volla-algiz: Remove stub init functions
This does not accomplish anything, and with the new initcall logic,
can be harmlessly removed.

Signed-off-by: Igor Belwon <igor.belwon@mentallysanemainliners.org>
2025-10-01 20:02:15 +02:00
Igor Belwon e91301ee42 board: nothing-tetris: Remove stub init functions
This does not accomplish anything, and with the new initcall logic,
can be harmlessly removed.

Signed-off-by: Igor Belwon <igor.belwon@mentallysanemainliners.org>
2025-10-01 20:02:15 +02:00
Igor Belwon 1a54ea51c9 board: nokia-essential: Remove stub init function
This does not accomplish anything, and with the new initcall logic,
can be harmlessly removed.

Signed-off-by: Igor Belwon <igor.belwon@mentallysanemainliners.org>
2025-10-01 20:02:15 +02:00
Igor Belwon 9cd53a91eb board: google-taimen: Remove stub init functions
This does not accomplish anything, and with the new initcall logic,
can be harmlessly removed.

Signed-off-by: Igor Belwon <igor.belwon@mentallysanemainliners.org>
2025-10-01 20:02:15 +02:00
Igor Belwon 66baf5f889 board: apple-n61ap: Remove stub init functions
This does not accomplish anything, and with the new initcall logic,
can be harmlessly removed.

Signed-off-by: Igor Belwon <igor.belwon@mentallysanemainliners.org>
2025-10-01 20:02:15 +02:00
Igor Belwon 66f28ccbfb board: amazon-pw3: Remove stub init functions
This does not accomplish anything, and with the new initcall logic,
can be harmlessly removed.

Signed-off-by: Igor Belwon <igor.belwon@mentallysanemainliners.org>
2025-10-01 20:02:15 +02:00
Igor Belwon dd4009796f board: samsung-zeroflte: Remove stub init function
This does not accomplish anything, and with the new initcall logic,
can be harmlessly removed.

Signed-off-by: Igor Belwon <igor.belwon@mentallysanemainliners.org>
2025-10-01 20:02:15 +02:00
Igor Belwon db32feefde board: samsung-x1s: Remove stub init function
This does not accomplish anything, and with the new initcall logic,
can be harmlessly removed.

Signed-off-by: Igor Belwon <igor.belwon@mentallysanemainliners.org>
2025-10-01 20:02:15 +02:00
Igor Belwon 86a2d04a8d board: samsung-starlte: Remove stub init function
This does not accomplish anything, and with the new initcall logic,
can be harmlessly removed.

Signed-off-by: Igor Belwon <igor.belwon@mentallysanemainliners.org>
2025-10-01 20:02:15 +02:00
Igor Belwon 45a7056e08 board: samsung-r8s: Remove stub init function
This does not accomplish anything, and with the new initcall logic,
can be harmlessly removed.

Signed-off-by: Igor Belwon <igor.belwon@mentallysanemainliners.org>
2025-10-01 20:02:15 +02:00
Igor Belwon ea8ec1bece board: samsung-jackpotlte: Remove stub init function
This does not accomplish anything, and with the new initcall logic,
can be harmlessly removed.

Signed-off-by: Igor Belwon <igor.belwon@mentallysanemainliners.org>
2025-10-01 20:02:15 +02:00
Igor Belwon 5cf2f4b238 board: samsung-j5lte: Remove stub init function
This does not accomplish anything, and with the new initcall logic,
can be harmlessly removed.

Signed-off-by: Igor Belwon <igor.belwon@mentallysanemainliners.org>
2025-10-01 20:02:15 +02:00
Igor Belwon 5f049665e0 board: samsung-j4lte: Remove stub init function
This does not accomplish anything, and with the new initcall logic,
can be harmlessly removed.

Signed-off-by: Igor Belwon <igor.belwon@mentallysanemainliners.org>
2025-10-01 20:02:15 +02:00
Igor Belwon 9da1dd8de1 board: samsung-herolte: Remove stub init function
This does not accomplish anything, and with the new initcall logic,
can be harmlessly removed.

Signed-off-by: Igor Belwon <igor.belwon@mentallysanemainliners.org>
2025-10-01 20:02:15 +02:00
Igor Belwon 14464f151f board: samsung-gta4xl: Remove stub init function
This does not accomplish anything, and with the new initcall logic,
can be harmlessly removed.

Signed-off-by: Igor Belwon <igor.belwon@mentallysanemainliners.org>
2025-10-01 20:02:15 +02:00
Igor Belwon 04673fa214 board: samsung-g0s: Remove stub init function
This does not accomplish anything, and with the new initcall logic,
can be harmlessly removed.

Signed-off-by: Igor Belwon <igor.belwon@mentallysanemainliners.org>
2025-10-01 20:02:15 +02:00
Igor Belwon 928a4609e0 board: samsung-c1s: Remove stub init function
This does not accomplish anything, and with the new initcall logic,
can be harmlessly removed.

Signed-off-by: Igor Belwon <igor.belwon@mentallysanemainliners.org>
2025-10-01 20:02:15 +02:00
Igor Belwon 9717e98b9f board: samsung-a3xelte: Remove stub init function
This does not accomplish anything, and with the new initcall logic,
can be harmlessly removed.

Signed-off-by: Igor Belwon <igor.belwon@mentallysanemainliners.org>
2025-10-01 20:02:15 +02:00
Igor Belwon 98faac3286 board: samsung-a336b: Remove stub init function
This does not accomplish anything, and with the new initcall logic,
can be harmlessly removed.

Signed-off-by: Igor Belwon <igor.belwon@mentallysanemainliners.org>
2025-10-01 20:02:15 +02:00
Igor Belwon d1f194f43e board: samsung-a127f: Remove stub init function
This does not accomplish anything, and with the new initcall logic,
can be harmlessly removed.

Signed-off-by: Igor Belwon <igor.belwon@mentallysanemainliners.org>
2025-10-01 20:02:15 +02:00
Igor Belwon 4f843e6cf0 board: samsung-a105f: Remove stub init function
This does not accomplish anything, and with the new initcall logic,
can be harmlessly removed.

Signed-off-by: Igor Belwon <igor.belwon@mentallysanemainliners.org>
2025-10-01 20:02:15 +02:00
Igor Belwon e53c434ba2 board: qemu-virt: Remove stub init functions
These do not accomplish anything, and with the new initcall logic,
can be harmlessly removed.

Signed-off-by: Igor Belwon <igor.belwon@mentallysanemainliners.org>
2025-10-01 20:02:15 +02:00
Igor Belwon 7993348878 main: Add proper initcall logic
Currently we are checking if the function returns nonzero. This is fine,
however it adds a lot of bloat, for example the late_init initcall is
practically never used and is only a stub function that returns zero. So
- add a proper initcall macro to prepare for cleaning up unused stubs.

Signed-off-by: Igor Belwon <igor.belwon@mentallysanemainliners.org>
2025-10-01 20:02:15 +02:00
Ивайло Иванов 900a8b4ebe Merge pull request #43 from chmcax/essential
board: introduce support for Nokia 3 (essential)
2025-09-30 22:25:14 +03:00
Alexandru Chimac b1dc79758b board: introduce support for Nokia 3 (essential)
Signed-off-by: Alexandru Chimac <alex@chimac.ro>
2025-09-30 21:17:18 +03:00
Ивайло Иванов 82e618c991 Merge pull request #42 from BotchedRPR/master
CMF Phone 1 support
2025-09-29 23:14:04 +03:00
Ивайло Иванов 9be24fd2a0 Merge branch 'master' into master 2025-09-29 23:12:32 +03:00
Ивайло Иванов 3e9a365eb1 Merge pull request #44 from chmcax/gta4xl/two
board: move gta4xl device specific addresses to defconfig
2025-09-29 23:10:08 +03:00
Alexandru Chimac 8834492b1b board: move gta4xl device specific addresses to defconfig
Also, enable POSITION_INDEPENDENT

Signed-off-by: Alexandru Chimac <alex@chimac.ro>
2025-09-09 12:18:01 +03:00
Igor Belwon 4d9be0bc55 board: Add support for the CMF Phone (1)
This device has a broken framebuffer. As such, logs are passed via UART.

Signed-off-by: Igor Belwon <igor.belwon@mentallysanemainliners.org>
2025-08-30 14:52:27 +02:00
Ivaylo Ivanov bf49d01793 board: samsung: introduce herolte
Decon is a bit different from newer exynoses.
2025-08-26 11:20:25 +03:00
Igor Belwon 191b8d60a8 soc: Define MediaTek MT6878 SoC
Signed-off-by: Igor Belwon <igor.belwon@mentallysanemainliners.org>
2025-08-23 19:23:06 +02:00
Igor Belwon f6f2c5e030 gitignore: Ignore lz4-built uniLoader 2025-08-23 18:40:17 +02:00
Igor Belwon ac9b574b27 project: Add new compression options
Add support for compressing the uniLoader image with lz4, and while we're at it add two new Kconfig variables for setting compression tools used in the build.
2025-08-23 18:39:52 +02:00
Ivaylo Ivanov 759bc09d8f board: introduce support for Samsung Galaxy A3 2016 2025-08-07 13:54:27 +03:00
Ivaylo Ivanov 1b07caaea4 lib: simplefb: calculate font scaling factor dynamically
Instead of hardcoding it to 2 for all devices, scale it dynamically
per device width and height.
2025-08-07 13:13:05 +03:00
Ivaylo Ivanov 5f0cca1951 lib: simplefb: return on a null fb_info
This should avoid cases where fb_info struct is not populated.
2025-08-07 11:36:45 +03:00
Ivaylo Ivanov aa0163f2a5 lib: simplefb: drop passing fb base via func args
As we can make use of the video_info struct for base address,
this argument is not required anymore and only breaks havoc on
boards that don't set the CONFIG option.
2025-08-07 11:09:29 +03:00
Ивайло Иванов eae304698b Merge pull request #39 from BotchedRPR/master
Introduce support for qemu virt platform
2025-07-30 09:34:31 +03:00
BotchedRPR e8bd7fdf7f board: Introduce support for qemu virt platform
This platform can be used for testing and easier debug of the bootloader.

After compiling, the emulation can be started with this command line:

qemu-system-aarch64 -machine virt -cpu cortex-a72 -nographic -m 512m -kernel uniLoader.o
2025-07-24 23:12:51 +02:00
Ivaylo Ivanov 3472279d6f aarch64: guard reloc's linux header with CONFIG_LINUX_KRNL_HEADER_IMG
Boards can enable it where needed.
2025-07-23 10:45:03 +03:00
Ivaylo Ivanov 0d0f1f8f61 board: introduce support for Google Pixel 2 XL
Simple framebuffer doesn't work due to the previous bootloader messing
up with the display on exit uefi boot services. Uart works with a
usb3.1 cable and a breakout board, where a 51k resistor is connected
A5 and A6, A5 is wired to the +5V, B8 to RX and GND to GND.
2025-07-23 10:40:46 +03:00
Ivaylo Ivanov be87eecf40 aarch64: add an option to append a linux kernel image header for no-PiC 2025-07-23 10:37:48 +03:00
Ivaylo Ivanov 2990092d47 Makefile: set compiler optimizations for armv8-a and provide uniLoader as gzip
uniLoader needs to be gzipped on Qualcomm platforms, as the bootloader
expects that format (usually).
2025-07-23 10:18:30 +03:00
ghatt-o bc7d49209a README: change arm64 build example to aarch64 2025-07-12 13:04:32 +03:00
Ivaylo Ivanov 579bbfa393 lib: break ABI by reworking simplefb and then fix it
Jokes aside, commit adds support for colored indexes based on the
loglevel, introduces a better simplefb probing that does not depend
on hardcoded config options. Implementing support for fdt should be
easier now.
2025-07-11 13:45:58 +03:00
Ivaylo Ivanov 0497f0f546 include: drop unneeded writel definition from main.h 2025-07-11 13:45:58 +03:00
Ivaylo Ivanov 83f36d5576 main: set printk log levels to meaningful values 2025-07-11 13:45:58 +03:00
Ivaylo Ivanov 4bc933e9d5 Makefile: change build priority of folders 2025-07-11 13:45:58 +03:00
Ivaylo Ivanov 5359c3caeb board: rework the board data structure
Since we don't have to worry about writing positionally-independent
code, we can safely pass around globally defined structures and
have more fun with pointers without falling into UB.
2025-07-11 13:45:58 +03:00