mirror of
https://github.com/ivoszbg/uniLoader.git
synced 2026-08-15 05:18:32 +00:00
board: Add support for Sony Xperia 1 VI (pdx245)
Xperia 1 VI is a flagship phone manufactured by Sony, based on the
Qualcomm Snapdragon 8 Gen 3 Mobile Platform.
Add support for this board.
NOTE: This board is new, and as such, it requires some ugly hax and
a fallback boot method to boot any sort of [u-boot/uniLoader/mainline]
In short:
- build:
- ARCH=aarch64 CROSS_COMPILE=aarch64-linux-gnu- make -j32
- cat uniLoader.gz dummy.dtb > uni.dtb
- mkbootimg --kernel uni.dtb --ramdisk <some ramdisk (required)> \
--pagesize 4096 --base 0x0 --kernel_offset 0x8000 \
--ramdisk_offset 0x1000000 --tags_offset 0x100 \
--dtb_offset 0x1f00000 --header_version 0 --os_version 16.0.0 \
--os_patch_level 2026-04 -o boot.img
(yes, all properties are required.)
- prepare device:
- boot to fastboot mode (volume up and plug in USB)
- fastboot erase dtbo erase vendor_boot
- flash:
- fastboot flash boot boot.img continue
Where:
- dummy.dtb is a skeleton.dtsi with a reserved memory node called
splash_region as a child of the chosen node.
Signed-off-by: Igor Belwon <igor.belwon@mentallysanemainliners.org>
This commit is contained in:
1 parent
9a497231bb
commit
72226d6b20
5 files changed
+54
No files matched your search
@@ -68,6 +68,7 @@ environment in case of a forced and buggy bootloader.
|
||||
- ZEROFLTE
|
||||
|
||||
### Sony
|
||||
- PDX245
|
||||
- PSVITA
|
||||
|
||||
### Volla
|
||||
|
||||
@@ -242,6 +242,13 @@ menu "Device Support"
|
||||
help
|
||||
Say Y if you want to include support for Samsung Galaxy S6
|
||||
|
||||
config SONY_PDX245
|
||||
bool "Support for Sony Xperia 1 VI"
|
||||
default n
|
||||
depends on SM8650
|
||||
help
|
||||
Say Y if you want to include support for Sony Xperia 1 VI
|
||||
|
||||
config SONY_PSVITA
|
||||
bool "Support for Sony PlayStation Vita"
|
||||
default n
|
||||
|
||||
@@ -31,6 +31,7 @@ lib-$(CONFIG_SAMSUNG_R8S) += samsung/board-r8s.o
|
||||
lib-$(CONFIG_SAMSUNG_STARLTE) += samsung/board-starlte.o
|
||||
lib-$(CONFIG_SAMSUNG_X1S) += samsung/board-x1s.o
|
||||
lib-$(CONFIG_SAMSUNG_ZEROFLTE) += samsung/board-zeroflte.o
|
||||
lib-$(CONFIG_SONY_PDX245) += sony/board-pdx245.o
|
||||
lib-$(CONFIG_SONY_PSVITA) += sony/board-vita.o
|
||||
lib-$(CONFIG_VOLLA_ALGIZ) += volla/board-algiz.o
|
||||
lib-$(CONFIG_XIAOMI_BEGONIA) += xiaomi/board-begonia.o
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
/*
|
||||
* Copyright (c) 2026, Igor Belwon <igor.belwon@mentallysanemainliners.org>
|
||||
*/
|
||||
|
||||
#include <board.h>
|
||||
#include <drivers/framework.h>
|
||||
#include <lib/debug.h>
|
||||
#include <lib/simplefb.h>
|
||||
|
||||
#ifdef CONFIG_SIMPLE_FB
|
||||
static struct video_info pdx245_fb = {
|
||||
.format = FB_FORMAT_ARGB8888,
|
||||
.width = 1080,
|
||||
.height = 2340,
|
||||
.stride = 4,
|
||||
.address = (void *)0xd5100000,
|
||||
|
||||
// The scale that is set by default is extremely large.
|
||||
.scale = 2
|
||||
};
|
||||
#endif
|
||||
|
||||
int pdx245_drv(void)
|
||||
{
|
||||
#ifdef CONFIG_SIMPLE_FB
|
||||
REGISTER_DRIVER("simplefb", simplefb_probe, &pdx245_fb);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
struct board_data board_ops = {
|
||||
.name = "sony-pdx245",
|
||||
.ops = {
|
||||
.drivers_init = pdx245_drv,
|
||||
},
|
||||
.quirks = 0
|
||||
};
|
||||
@@ -0,0 +1,7 @@
|
||||
CONFIG_POSITION_INDEPENDENT=y
|
||||
CONFIG_LINUX_KRNL_HEADER_IMG=y
|
||||
CONFIG_SM8650=y
|
||||
CONFIG_SONY_PDX245=y
|
||||
CONFIG_TEXT_BASE=0xe1bb0000
|
||||
CONFIG_PAYLOAD_ENTRY=0xe5bb0000
|
||||
CONFIG_RAMDISK_ENTRY=0xefbb0000
|
||||
Reference in new issue
Block a user