09:31
<
KamalChandraUpreti[m] >
<barni2000[m]> "Use dtc to decompile it" <- Thanks a lot
13:43
<
semi2309[m] >
hello, do you think it will be enought to get telnet on initfs hook?
13:57
<
barni2000[m] >
usb will not work this whay
13:57
<
barni2000[m] >
s/whay/way/
13:57
<
semi2309[m] >
i ahve changed usb
13:58
<
semi2309[m] >
this is bad
13:59
<
semi2309[m] >
msm8917.dtsi is included by msm8937.dtsi
14:00
<
barni2000[m] >
there is a pmi8950 usb extcon you should use that check redmi 4x dts
14:01
<
barni2000[m] >
but it depends on what is in the downstream dts
14:01
<
barni2000[m] >
and you will need to define the regulators also for usb to work
14:02
<
semi2309[m] >
barni2000[m]: how to do that?
14:02
<
semi2309[m] >
<barni2000[m]> "> <@semi2309:matrix.org> ```..." <- and how simplefb node looks?
14:02
<
barni2000[m] >
semi2309[m]: check redmi 4x dts
14:03
<
barni2000[m] >
for the correct values you will need to check downstream dt also
14:05
<
semi2309[m] >
do you think i can use some lines from 4x dts?
14:06
<
semi2309[m] >
for example
14:06
<
semi2309[m] >
it is using pm8937 and 8937 is my soc so it should work right?
14:09
<
semi2309[m] >
Regulators values are also from pm8937
14:12
<
barni2000[m] >
semi2309[m]: you should define the voltage ranges like in downstream
14:13
<
barni2000[m] >
and also check which regulators are binded for usb
14:13
<
barni2000[m] >
if you have schematic that also could help a lot
14:14
<
semi2309[m] >
this is it?
14:14
<
barni2000[m] >
yes you will need regulator-max/min-voltages
14:15
<
semi2309[m] >
okay, can i copy &rpm_requests node from xiaomi 4x and change values?
14:15
<
barni2000[m] >
but you should compare everything with downstream
14:16
<
semi2309[m] >
yeah so copy node from 4x dts and change values to be like in downstream dts
14:17
<
barni2000[m] >
and check all regulators are enabled in downstream there is chance for some difference
14:17
<
semi2309[m] >
how do i know if some are disabled?
14:17
<
barni2000[m] >
status="disabled"
14:52
<
semi2309[m] >
values are the same for my lenovo karatep and xiaomi santoni
15:10
<
semi2309[m] >
barni2000: whats next?
15:10
<
barni2000[m] >
Try it
15:13
<
semi2309[m] >
and i think i was supposed to make spframebuffer
15:20
<
barni2000[m] >
yes framebuffer is recommended
15:21
<
semi2309[m] >
how can i find values to framebuffer?
15:21
<
barni2000[m] >
and you will need reserved-memory section also
15:21
<
barni2000[m] >
semi2309[m]: your screen resoultion and check santoni
15:21
<
semi2309[m] >
i have found reserved-memory
15:22
<
barni2000[m] >
for reserved memory you will only need the differnece for 3.18
15:22
<
semi2309[m] >
barni2000[m]: what does that mean?
15:23
<
barni2000[m] >
you will need check reserved memory sections in msm-3.18 reference kernel
15:23
<
barni2000[m] >
reg = <0x00 0x84a00000 0x00 0x1e00000>; this will be the qseecom but 0x1e00000 will be 0x1900000
15:23
<
semi2309[m] >
barni2000[m]: how to do that
15:24
<
semi2309[m] >
barni2000[m]: okay soo pretty much like in santoni
15:25
<
barni2000[m] >
semi2309[m]: i think it will be the same but you should find the qseecom node in downstream
15:26
<
semi2309[m] >
which file?
15:28
<
semi2309[m] >
s/```/````/
15:28
<
semi2309[m] >
if i have a 1080x1920 screen than i sould put hexadecimal values of these numbers here right?
15:30
<
barni2000[m] >
reg = <0x0 0x90001000 0x0 (1080 * 1920 * 3)>;
15:31
<
semi2309[m] >
so reserved-memory section should look like that?
15:32
<
semi2309[m] >
i have found that in downstream dts
15:33
<
barni2000[m] >
semi2309[m]: you will need qseecom node not qseecom_region
15:34
<
barni2000[m] >
reg property will tell the correct range
15:34
<
semi2309[m] >
this?
15:34
<
barni2000[m] >
reg = <0x84a00000 0x1900000>;
15:34
<
semi2309[m] >
like in santoni
15:36
<
semi2309[m] >
okay so, now framebuffer node
15:36
<
semi2309[m] >
what i need to change here
15:37
<
barni2000[m] >
Change the resolution and it will be fine
15:38
<
semi2309[m] >
Soo all of it looks like that:
15:39
<
semi2309[m] >
is it good?
15:42
<
barni2000[m] >
it this correct cd-gpios = <&tlmm 67 GPIO_ACTIVE_LOW>;?
15:42
<
semi2309[m] >
um idk how to check that
15:42
<
barni2000[m] >
compatible = "qcom,msm8937-pmi8950-karatep-row\0qcom,msm8937-pmi8950-qrd-sku1\0qcom,msm8937-qrd\0qcom,msm8937\0qcom,qrd"; this seems downstream compatible to me
15:42
<
barni2000[m] >
semi2309[m]: downstream
15:43
<
semi2309[m] >
barni2000[m]: how should it look?
15:43
<
barni2000[m] >
check santonin
15:43
<
barni2000[m] >
* check santoni
15:44
<
barni2000[m] >
just use msm8937 instead of msm8940
15:44
<
semi2309[m] >
compatible = "lenovo,karatep", "qcom,msm8937";
15:44
<
semi2309[m] >
like that?
15:44
<
semi2309[m] >
cd-gpios = <0xa7 0x43 0x01>; i have that in downstream
15:52
<
semi2309[m] >
Where i would find value of &tlmm
15:58
<
semi2309[m] >
<semi2309[m]> "cd-gpios = <0xa7 0x43 0x01>; i..." <- expect &tlmm all values are correct
15:58
<
semi2309[m] >
i dont know how to find where this is declarated
16:11
<
semi2309[m] >
barni2000:
16:34
<
barni2000[m] >
0x43 = 67, and don't need to mentioning me i am reading the chat just some times i am away
16:35
<
semi2309[m] >
okay, sorry about that
16:35
<
semi2309[m] >
soo this line is correct right?
16:35
<
barni2000[m] >
yes it seems
16:36
<
semi2309[m] >
i have to add more lines
16:36
<
semi2309[m] >
i took this from santoni
16:36
<
semi2309[m] >
beacuse in kernel compilation was error about vph_pwr not defined
16:36
<
barni2000[m] >
yes fixed regulator should be defined
16:37
<
semi2309[m] >
its values are okay?
16:37
<
barni2000[m] >
i guess every device use the same values
16:37
<
semi2309[m] >
so is it ready to go?
16:39
<
barni2000[m] >
it is good for dump some logs if you have issues
16:40
<
semi2309[m] >
and how could i get these logs if i will have issues?
16:40
<
semi2309[m] >
i mean how to acces them
16:40
<
barni2000[m] >
twrp
16:41
<
barni2000[m] >
adb pull /sys/fs/pstore/console-ramoops-0
16:41
<
semi2309[m] >
okay i have added this, so now, compile and try to ran
16:41
<
semi2309[m] >
right?
16:41
<
barni2000[m] >
the trick is you should pull it at first reboot because after twrp will overwrite it
16:42
<
barni2000[m] >
semi2309[m]: right
16:42
<
semi2309[m] >
i have added dts file to Makefile
16:44
<
semi2309[m] >
barni2000[m]: so if i do pmbootstrap flasher boot, and then my device will froze i need to reboot to stock fastboot, boot twrp and type this command right?
16:45
<
barni2000[m] >
why not reboot to twrp instantly
16:45
<
barni2000[m] >
* twrp instantly?
16:46
<
semi2309[m] >
um how could i do that if device will be frozen?
16:46
<
barni2000[m] >
push power+vol up for 10 or 15 seconds
16:46
<
semi2309[m] >
i do not have twrp flashed on device
16:47
<
semi2309[m] >
should i flash it with stock fastboot or lk2nd?
16:49
<
barni2000[m] >
you can use fastboot boot
16:50
<
barni2000[m] >
the easiet way to try it first concatenate zImage with dtb
16:51
<
semi2309[m] >
barni2000[m]: um, what
16:52
<
barni2000[m] >
```cat zImage <your dtb> > zImage-dtb```
16:52
<
barni2000[m] >
fastboot boot zImage-dtb
16:53
<
semi2309[m] >
where i will find zImage
16:53
<
semi2309[m] >
and dtb
16:53
<
barni2000[m] >
it depends how you compile the kernel
16:53
<
barni2000[m] >
arch/arm64/boot/dts/qcom
16:54
<
barni2000[m] >
you will have .output dir
16:54
<
semi2309[m] >
device has frozen after booting kernel
16:54
<
barni2000[m] >
everything is ther
16:54
<
barni2000[m] >
* everything is there
16:58
<
barni2000[m] >
use msm8917 config from pmos packahr
16:58
<
barni2000[m] >
s/packahr/package/
17:01
<
semi2309[m] >
just paste it in configs folder?
17:01
<
barni2000[m] >
copy to arch/arm64/configs as msm8917_defconfig
17:02
<
semi2309[m] >
okayy
17:03
<
barni2000[m] >
but you will need to enable 28nm usb in the config also
17:03
<
barni2000[m] >
make menuconfig
17:04
<
semi2309[m] >
so first make msm8917_defconfig pmos.config
17:04
<
semi2309[m] >
and then make menuconfig?
17:05
<
semi2309[m] >
Qualcomm 28nm High-Speed PHY?
17:05
<
semi2309[m] >
in phy Subsystem
17:07
<
barni2000[m] >
semi2309[m]: yes
17:07
<
semi2309[m] >
i have it
17:07
<
semi2309[m] >
what next
17:08
<
semi2309[m] >
make -j6?
17:08
<
barni2000[m] >
CONFIG_PHY_QCOM_USB_HS_28NM=m
17:08
<
semi2309[m] >
i have set it Y
17:08
<
barni2000[m] >
semi2309[m]: if you have six core
17:09
<
barni2000[m] >
semi2309[m]: Y is fine
17:09
<
semi2309[m] >
oh i have change it to M haha
17:09
<
semi2309[m] >
M is fine as well?
17:09
<
barni2000[m] >
use Y instead
17:10
<
barni2000[m] >
for m you will need to put the module in the initfs
17:10
<
semi2309[m] >
okay, now im waiting for kernel to build
17:10
<
semi2309[m] >
is there easiest way to boot it instead of pmbootstrap
17:10
<
semi2309[m] >
<barni2000[m]> "fastboot boot zImage-dtb" <- you have sent that
17:11
<
semi2309[m] >
but i dont know where files are at .output
17:12
<
barni2000[m] >
the structure is same like source dirs so dtb will be in .output/arch/arm64/boot/dts/qcom and the zImage will be in the .output/zImage
17:12
<
barni2000[m] >
wait
17:13
<
barni2000[m] >
cat .output/arch/arm64/boot/Image.gz .output/arch/arm64/boot/dts/qcom/msm8917-xiaomi-ugglite.dtb > Image.gz-dtb
17:13
<
semi2309[m] >
oh, okay
17:13
<
barni2000[m] >
i have not rememberd correctly sry
17:18
<
semi2309[m] >
it did something
17:18
<
semi2309[m] >
but not too much
17:21
<
semi2309[m] >
It is trying to run
17:21
<
semi2309[m] >
Thats good i think? Haha
17:37
<
barni2000[m] >
now you can create boot.img with pmbootstrap
17:38
<
semi2309[m] >
so, pmbootstrap build --envkernel linux-postmarketos-qcom-msm8916 then pmbootstrap build device-lenovo-karatep then pmbootstrap install then pmbootstrap flasher boot?
17:41
<
semi2309[m] >
should i add PMOS_NOSPLASH to cmdline?
17:44
<
semi2309[m] >
so, i have done that, i have penguin at the top of screan
17:44
<
semi2309[m] >
screen
17:44
<
semi2309[m] >
but nothing else
17:44
<
semi2309[m] >
i have added initfs hook
17:45
<
semi2309[m] >
i have no telnet, and no message in dmesg about new device connecting
17:46
<
semi2309[m] >
without initfs hook the same happens
17:50
<
semi2309[m] >
so usb not working
17:54
<
barni2000[m] >
check usb
17:55
<
barni2000[m] >
did you installed rootfs?
17:58
<
semi2309[m] >
Maybe a silly question but is it diffrence if i connect it to 3.0 or 2.0 port on my host pc?
18:11
<
barni2000[m] >
should not be
18:12
<
semi2309[m] >
Thank you very much i need to end, i will reach out when i will work on this again