FORUMS
Remove All Ads from XDA

How to boot custom compiled kernel

9 posts
Thanks Meter: 0
 
By zyxel84, Junior Member on 19th September 2019, 03:16 PM
Post Reply Email Thread
I have compiled kernel for sm-t725 device and flashed it from twrp. The bootloader is unlocked. After restarting the device it boots to twrp again. Then I choose boot to system and it does not boot.
I can't post photo, but it shows samsung label, yellow exclamation point with text "The tablet is not running Samsung official software..." and some other text at the top left corner of the screen that I don't understand:
Current Binary: Custom (0x30E)
FRP LOCK : OFF
OEM LOCK: ON (U)
KG STATUS: CHECKING
WARRANTY VOID : 0x1 (0x0)
RP SWREV : <some number>
QUALCOMM SECUREBOOT: ENABLE
SECURE DOWNLOAD : ENABLE
ENG MODE : DEV DEVICE
DID : <some number>

I wan't simple to build kernel (maybe rebuild stock) before try to change it.
Maybe I compiled it somehow wrong? I got sources from http://opensource.samsung.com/reception.do (search for sm-t725)
I packed kernel with mkbootimg, I also packed the original kernel to boot.img and it boots well, so there can't be mistake.
Maybe something is wrong with security, perhaps vbmeta, but I flashed vbmeta patition by instruction of installing Lineage OS for this device and think that all security mehanisms are disabled.
From recovery I can get /proc/last_kmsg but I don't know what to search for.
I can post it, and also can post kernel config file.
20th September 2019, 08:32 AM |#2  
OP Junior Member
Thanks Meter: 0
 
More
I solved it. I must use proper dts file. So, to get everything work you need to make dtb file
Code:
dtc -I dts -O dtb -f sdm670.dts -o sdm670.dtb
and then append it to kernel
Code:
cat Image.gz sdm670.dtb > zImage.gz-dtb
and after that make boot.img and flash it to boot partition.
Now my compiled kernel boots and works.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes