Danct12 changed the topic of #msm8937-mainline to: Boot Linux on your MSM8917/37/40 and QM215 mobile! | GitHub: https://github.com/msm89x7-mainline | Logs: https://oftc.irclog.whitequark.org/msm8937-mainline | Bridged to #msm8937-mainline:kde.org on Matrix
Danct12 has quit [Quit: ZNC 1.9.0 - https://znc.in]
Danct12 has joined #msm8937-mainline
asriel has joined #msm8937-mainline
<semi2309[m]> <semi2309[m]> "1000030812.jpg" <- Hello, I have read the last error on this kernel panic and i have found patch that makes iface clk optional: https://lore.kernel.org/lkml/20230506-msm8226-ocmem-v1-3-3e24e2724f01@z3ntu.xyz/ can this patch help in my case or not?
<barni2000[m]> which branch do you use?
<barni2000[m]> as far as i know msm8937 should use smmu instead of iommu
<semi2309[m]> i think i have cloned the main branch
<semi2309[m]> wait a minute
<semi2309[m]> msm89x7/6.6
<semi2309[m]> i have cloned this branch
<semi2309[m]> <barni2000[m]> "as far as i know msm8937..." <- maybe we can change something i kernel config?
<barni2000[m]> semi2309[m]: it is not kernel config issue
<barni2000[m]> but 6.6 branch worked for me on xiaomi-land and motorola-montana iirc
<barni2000[m]> try dev brench
<barni2000[m]> * try dev branch
<semi2309[m]> msm89x7/6.6-develop
<semi2309[m]> this?
<barni2000[m]> y
<semi2309[m]> okay we have only enabled 23nm usb in kconfig right?
<barni2000[m]> you should enable 18nm
<semi2309[m]> 18 or 28?
<semi2309[m]> <barni2000[m]> "```..." <- > <@barni2000:matrix.org> ```... (full message at <https://matrix.org/_matrix/media/v3/download/matrix.org/cabXzMydGPreGBzWAJqOxpth>)
<barni2000[m]> 28
<semi2309[m]> okay, wait i sec i will do this and compile
<semi2309[m]> okay
<semi2309[m]> same error happened
<semi2309[m]> maybe it is something with usb lines in dts file?
<barni2000[m]> it is iommu error
<barni2000[m]> arm_smmu cannot probe and that could be fatal error
<semi2309[m]> Okay, so what can we do about it?
<barni2000[m]> btw idk why you got this error on msm89x7/6.6 because iommu is not defined ther
<barni2000[m]> s/ther/there/
<semi2309[m]> Um i don't know i even get into kernel path and type git branch
<semi2309[m]> <semi2309[m]> "msm89x7/6.6" <- and it said
<barni2000[m]> can you show your git log?
<semi2309[m]> okay but how can i generate this log?
<barni2000[m]> semi2309[m]: ```git log```
<semi2309[m]> oh
<semi2309[m]> this is from dev branch
<semi2309[m]> wait a sec
<semi2309[m]> adreno_smmu: iommu@1c40000 {
<semi2309[m]> but there is
<semi2309[m]> line with iommu
<semi2309[m]> add to my msm8937-lenovo-karatep.dts?
<barni2000[m]> semi2309[m]: yes
<semi2309[m]> okay
<semi2309[m]> okay
<semi2309[m]> something has changed
<barni2000[m]> it seems much better
<semi2309[m]> it is dont even looking as crash
<barni2000[m]> it is just a simple kernel log
<semi2309[m]> so, does it boot?
<barni2000[m]> it seems
<semi2309[m]> okay, so what now?
<barni2000[m]> check usb
<barni2000[m]> if it works you can add wifi etc.
<semi2309[m]> Usb don't work
<semi2309[m]> [ 6159.656826] usb 1-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3... (full message at <https://matrix.org/_matrix/media/v3/download/matrix.org/AatXBYwreNJtvgfdFYTgFFzj>)
<semi2309[m]> last line is after booting image
<semi2309[m]> im booting image created with this command: cat .output/arch/arm64/boot/Image.gz .output/arch/arm64/boot/dts/qcom/msm8937-lenovo-karatep.dtb > Image.gz-dtb
<semi2309[m]> it isn't a problem?
<barni2000[m]> you should generate a boot.img now
<semi2309[m]> with pmbootstrap?
<barni2000[m]> yes
<semi2309[m]> okay i will try
<semi2309[m]> It is stuck at this
<barni2000[m]> how did you generated the boot.img?
<semi2309[m]> um
<semi2309[m]> pmbootstrap build --envkernel linux-postmarketos-qcom-msm8916 this command inside envkernel
<semi2309[m]> next the "pmbootstrap instal device-lenovo-karatep"
<barni2000[m]> normally i have create a device package and reuse the linux-postmarketos-qcom-msm8917
<semi2309[m]> and then pmboostrap install
<semi2309[m]> s/instal/build/
<barni2000[m]> semi2309[m]: it should be fine maybe something is still missing :(
<semi2309[m]> i should type these command inside envkernel?
<barni2000[m]> btw you don't need to run pmbootstrap install you could go into the rootfs with pmbootstrap chroot -r and install the kernel package what was generated by the envkernel
<barni2000[m]> do you have usb0 if you run ip a on your pc?
<semi2309[m]> nope
<barni2000[m]> sad
<semi2309[m]> yeah i agree
<barni2000[m]> check downstream usb node maybe should use pmi8950_vbus
<barni2000[m]> * check downstream usb node maybe you should note use pmi8950_vbus
<barni2000[m]> you can try dummy extcon check Redmi Note 5A PR
<semi2309[m]> usb_otg: usb@78db000 {
<semi2309[m]> qcom,floated-charger-enable = <1>;
<semi2309[m]> };
<semi2309[m]> &usb_otg {
<semi2309[m]> qcom,usbin-vadc = <&pmi8950_vadc>;
<semi2309[m]> };
<barni2000[m]> it seems similar to redmi 4x
<semi2309[m]> but does not want to work with 4x settings
<barni2000[m]> try to pull out pstore console-logs
<semi2309[m]> <semi2309[m]> "```..." <- > <@semi2309:matrix.org> ```... (full message at <https://matrix.org/_matrix/media/v3/download/matrix.org/fOveVvQZKhPYlNufZhsQFugZ>)
<barni2000[m]> which recovery do you use?
<barni2000[m]> in los and pe recovery adb should be enabled manually
<barni2000[m]> s/adb/adbd/
<barni2000[m]> under advanced menu
<semi2309[m]> I have twrp
<barni2000[m]> maybe you should check your cable or you need to reboot your computer
<barni2000[m]> try ```adb kill-server``` first