Hi!

I'm playing with S4 mini, and I can get to init/main.c:

  writel(0xffffff, (void *) 0x88100030);
  print_kernel_cmdline(saved_command_line);

I'm not sure I have right .config or pass right parameters to
mkbootimg.

I started from

commit b51f999a8ab27982c2b5ea07f963cd226058ac04 (origin/msm8227-6.19, 
origin/HEAD)
Author: user0-07161 <[email protected]>
Date:   Sun Dec 21 12:01:52 2025 +0100

    fix wifi for loganre and break wifi for others

commit 661c321a9c4bdf9ae41fc084e1f1bdb5bf338622
Author: user0-07161 <[email protected]>
Date:   Sat Dec 20 22:02:23 2025 +0100

    make the charger driver compile again

commit 48f5ca0471184a7bcbe4beffb29180f7da076b91
Author: user0-07161 <[email protected]>
Date:   Sat Dec 20 20:58:55 2025 +0100

    replace l22 value with the one from downstream

commit 94fd592c86d23706c60289147c8b21f73f3c7a18
Author: Julian Rother <[email protected]>
Date:   Fri Oct 24 23:29:06 2025 +0200

    Initial dts for Samsung Galaxy S4 Mini International LTE

I got config by

cp ./arch/arm/configs/qcom_msm8227_defconfig .config

and I'm attempting to boot from lk2nd

make -j 25 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- oldconfig zImage dtbs
cat arch/arm/boot/zImage 
arch/arm/boot/dts/qcom/qcom-msm8930-samsung-serranolte.dtb > kernel.bin

mkbootimg -o boot.img --pagesize 4096 --base 0x80200000 --kernel_offset 
0x00008000 --ramdisk_offset 0x02000000 --second_offset 0x00f00000 --tags_offset 
0x00000100 --kernel kernel.bin --ramdisk ../rootfs.cpio.gz --cmdline 
"console=ttyMSM0,115200 earlycon"

fastboot boot boot.img

Would someone be willing to supply known-good .config and mkbootimg
parameters?

I noticed lk2nd puts framebuffer at different address, so I did:

+++ b/arch/arm/boot/dts/qcom/qcom-msm8930-samsung-serranolte.dts
@@ -27,7 +27,7 @@ chosen {
 
        framebuffer0: framebuffer@88300000 {
                compatible = "simple-framebuffer";
-               reg = <0x88300000 0x300000>;
+               reg = <0x88100000 0x300000>;

...but I get hang with or without that patch. I also tried
origin/msm8227-6.15 , but same results.

I attempted to debug things by enabling early access to framebuffer
and then drawing dots. That works, but I was told there's "earlyfb"
patch that would make that easier. I could not find it, so pointer
would be welcome.

Thanks and best regards,
                                                        Pavel
-- 
I don't work for Nazis and criminals, and neither should you.
Boycott Putin, Trump, Netanyahu and Musk!

Attachment: signature.asc
Description: PGP signature

Reply via email to