ChanServ 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 [Server closed connection]
Danct12 has joined #msm8937-mainline
<Saalim[m]> barni2000: gonna try compiling my asus 8937 tonight with your source. I can make PRs right?
<barni2000[m]> Yes but under msm89x7-mainline
<barni2000[m]> I will pull things together soon
<Saalim[m]> and pmaport package you got?
<Saalim[m]> like linux-qcom-postmarket-8937 something
<barni2000[m]> That is just temp all things should be sent to pmos
<Saalim[m]> This is the branch right
<barni2000[m]> Saalim[m]: Currently i am building with envkernel against msm8917
<Saalim[m]> barni2000[m]: I see, that is fine, Ill put together one ig
<Saalim[m]> my device is already on pmos, just need to update kernel and cmdline I guess
<Andr[m]> Hi, is anyone working on motorola-cedric. I'm looking for a (WIP) dts file for this device. The wiki points to https://github.com/Hacker1245/linux/tree/msm8937-cedric, but that branch seems to be gone.
<Andr[m]> * device. The pmOS wiki points
<Saalim[m]> a very dumb thing barni2000 , what desktop you choose usually
<Saalim[m]> like what in the downstream and what in the upstream
<Saalim[m]> the list seems to have changed since last year ig
f_ is now known as funderscore
<barni2000[m]> <Andr[m]> "Hi, is anyone working on..." <- Yes, hacker420:
<barni2000[m]> <Saalim[m]> "a very dumb thing barni2000..." <- phosh or plamo
<Saalim[m]> barni2000[m]: but like it doesnt even get listed here
<barni2000[m]> Because gpu line missing from deviceinfo
<barni2000[m]> But you can install them later
<Saalim[m]> so console or framebuffer?
<barni2000[m]> postmarketos-ui-phosh
<barni2000[m]> Saalim[m]: console
hacker420[m] has joined #msm8937-mainline
<hacker420[m]> <barni2000[m]> "Yes, hacker420:..." <- working is s strong worf
<hacker420[m]> *word
<barni2000[m]> was working
<barni2000[m]> btw i have g5s what is very similar
<Andr[m]> Is the current state publicly available?
<barni2000[m]> montana
<Saalim[m]> I have sanders and cedric but need to find them
<barni2000[m]> <Andr[m]> "Is the current state publicly..." <- Idk
<Saalim[m]> barni2000: which defconfig?
funderscore is now known as f_
<barni2000[m]> msm8917 with couple of modofication
<barni2000[m]> I can send my config later 28 nm usb phy should be selected a qcom wled
<barni2000[m]> *and
<Saalim[m]> I am trying 8916 defconfig for now. Lets see
<Saalim[m]> I added dts and panel driver
<Saalim[m]> compiles nice
<barni2000[m]> <Saalim[m]> "I am trying 8916 defconfig for..." <- Not enough
<Saalim[m]> <barni2000[m]> "Not enough" <- Oh, then Ill wait for you to push then ig
<barni2000[m]> i can send my config a minute
<Saalim[m]> Thanks
<barni2000[m]> you should enable only 1 ts because they are using same gpio and it will not probing
<barni2000[m]> for multi touch support we can use lk2nd to choose one if it is binded to the panel
<barni2000[m]> * multi touch controller support we
<barni2000[m]> if not than you can do something similar like markw or other msm8953 devices do https://wiki.postmarketos.org/wiki/Xiaomi_Redmi_4_Prime_(xiaomi-markw)#Touch_Screens
<barni2000[m]> msmgpio is tlmm now
<Saalim[m]> barni2000[m]: Alright
<hacker420[m]> <Andr[m]> "Is the current state publicly..." <- goddamnit, think I lost the DTS somewhere
<hacker420[m]> searching...
<hacker420[m]> I think this might be it
<hacker420[m]> ah yeah
<hacker420[m]> you'll need simpledrm nodes...
<hacker420[m]> that was from when I was trying to get the panel up
<barni2000[m]> panel is working now
<barni2000[m]> * working now you can use the panel generator
<barni2000[m]> i have upstreamed mdp5 and dsi phy
<hacker420[m]> I think I had some panel power up issues
<hacker420[m]> might retry
<hacker420[m]> which branch do I grab?
<hacker420[m]> 6.6-experimental?
<Saalim[m]> <barni2000[m]> ".config" <- this doesnt pass kconfig checks
<Saalim[m]> :_;
<barni2000[m]> yes maybe zstd is missing but it is working
<Saalim[m]> ye
<Saalim[m]> okie
<Andr[m]> <hacker420[m]> "msm8937-motorola-cedric.dts" <- thanks
<hacker420[m]> just remove the panel nodes
<hacker420[m]> or try to bring it up if you want
<hacker420[m]> report any success
<hacker420[m]> hacker420[m]: and add simpledrm
<hacker420[m]> smth like this should work but adapt it to simpledrm
<barni2000[m]> <hacker420[m]> "6.6-experimental?" <- my ugglite-6.10 branch
<barni2000[m]> but the issue is on 6.6 clocks is missed typed to clock and dsi clocks are missing from gcc
<hacker420[m]> oh
<hacker420[m]> could that have caused the boot issues?
<hacker420[m]> or rather panel issues?
<barni2000[m]> santoni has working gpu+panel i was playing with supertuxkart
<barni2000[m]> hacker420[m]: yes it caused it
<hacker420[m]> on 6.6 or 6.20
<hacker420[m]> on 6.6 or 6.10
<hacker420[m]> barni2000[m]: good to know
<barni2000[m]> panel also works on msm8917 now
<barni2000[m]> i have tested dpu also but i don't have device with cmd mode panel
<hacker420[m]> wait so I need your fork?
<barni2000[m]> you can make your devicetree against my fork now i am doing some schema clean ups and cherry-picking the upstreamd commits
<hacker420[m]> mind sending a link?
<barni2000[m]> i have right to upload everything under msm89x7-mainline i can upload as a branch there
<hacker420[m]> do it
<hacker420[m]> or send the fork
<hacker420[m]> wait I got ti
<barni2000[m]> ok it seems i cannot create a new branch only a new repo :(
<barni2000[m]> for panel configs you can open a PR here https://github.com/msm89x7-mainline/linux-panel-drivers
<barni2000[m]> i am going to generate the drivers with this
<barni2000[m]> regulators are not necessary to add but i can cherry-pick pmi8950_labibb
<Saalim[m]> the device booted after logo
<Saalim[m]> on first trial
<Saalim[m]> no ramoops either
<Saalim[m]> s/booted/rebooted/
<hacker420[m]> barni2000 you have any idea if you can use a local folder instead of a git repo in an apkbuild?
<barni2000[m]> -p
<barni2000[m]> or you want it to build without pmbootstrap?
<barni2000[m]> oh now i understand
<barni2000[m]> you can place it beside the APKBUILD
<barni2000[m]> it should work
<hacker420[m]> does it matter if I make the panel a module or a built in?
<Saalim[m]> Saalim[m]: anything you wanna suggest barni2000
<barni2000[m]> i need to check your dt
<barni2000[m]> try to pull /sys/fs/pstore from twrp with adb
<Saalim[m]> and there was no backlight change either, it just rebooted again from logo
<Saalim[m]> barni2000[m]: it is empty
<barni2000[m]> maybe you will need reserved-gpio-ranges
<barni2000[m]> do you have lk2nd?
<Saalim[m]> barni2000[m]: yes, like I have a working fork of it
<barni2000[m]> you will need this https://github.com/msm8916-mainline/lk2nd/pull/384
<Saalim[m]> barni2000[m]: but I cant replace lk2nd can I
<Saalim[m]> it is a bootloader and requires signature for it to work
<hacker420[m]> what
<Saalim[m]> fastboot boot lk2nd.img boots the device to lk2nd
<hacker420[m]> yes
<Saalim[m]> so how to boot-up the device,
<Saalim[m]> fastboot boot lk2nd,
<Saalim[m]> flash rootfs, boot and then reboot?
<Saalim[m]> or does it work in a different way
<barni2000[m]> Saalim[m]: just apply this pr for your fork
<hacker420[m]> you are not touching the vendor bootloader
<barni2000[m]> it is a boot.img not aboot
<hacker420[m]> any specific kernel config options I'
<hacker420[m]> any specific kernel config options I'd want?
<barni2000[m]> i have sent my config
<Saalim[m]> lemme try
<Saalim[m]> barni2000[m]: which lk2nd fork you are using, I can just add my device tree on top of that,
<barni2000[m]> i am using msm8916-mainline with those pr
<Saalim[m]> alright, gimme a sec
<barni2000[m]> git fetch origin pull/ID/head:BRANCH_NAME
<barni2000[m]> git cherry-pick FETCH_HEAD
<barni2000[m]> ...
<barni2000[m]> git log FETCH_HEAD could help how many commit you should cherry-pick
<barni2000[m]> s//`/, s//`/, s/commit/commits/
<barni2000[m]> in this PR there are 2
<Saalim[m]> nice
<Saalim[m]> <barni2000[m]> "do you have lk2nd?" <- now I do
<Saalim[m]> but yeah it gives the same status even when I flash the device on lk2nd
<barni2000[m]> did you do fastboot boot boot.img from lk2nd or flash it from lk2nd?
<Saalim[m]> barni2000[m]: I tried both
<barni2000[m]> what about pstore?
<Saalim[m]> barni2000[m]: i went to recovery and it was still empty
<barni2000[m]> check your pstore address
<barni2000[m]> twrp also writes it
<barni2000[m]> try to grep for pstore/ramoops
<Saalim[m]> I made sure to use the correct twrp, I had pstore working fine on downstream
<Saalim[m]> lemme c address once
<Saalim[m]> address is fine too
<Saalim[m]> I actually had
<Saalim[m]> working on my device
<Saalim[m]> before
<Saalim[m]> barni2000[m]: > <@barni2000:matrix.org> ```... (full message at <https://matrix.org/_matrix/media/v3/download/matrix.org/OPqroiAlXZpFJrPrVAVoaNnZ>)
<Saalim[m]> in dmesg
<barni2000[m]> what about if you search for pstore?
<barni2000[m]> i think reserved memory section also not fine in that dt
<Saalim[m]> [ 0.143430] console [pstore-1] enabled
<Saalim[m]> [ 0.143582] pstore: Registered ramoops as persistent store backend
<barni2000[m]> and you don't have any other line grep for ramoops
<Saalim[m]> nopee
<barni2000[m]> wait i think i know what is missing
<hacker420[m]> <barni2000[m]> "you can place it beside the..." <- wait how
<hacker420[m]> without changing the apkbuild?
<barni2000[m]> hacker420[m]: no you should add it as a source
<hacker420[m]> by default it will try to pull it from gh
<Saalim[m]> barni2000[m]: alright lemme check
<barni2000[m]> but check your values maybe there are some difference
<hacker420[m]> like this?
<Saalim[m]> barni2000[m]: i just noticed that my reserved memory was to a different node
<Saalim[m]> I fixed that,
<barni2000[m]> hacker420[m]: > <@hacker420:kde.org> ```... (full message at <https://matrix.org/_matrix/media/v3/download/matrix.org/nyiQpVHeTrMafJqvPyFYDUzL>)
<barni2000[m]> btw why don't you use pmbootstrap build --envkernel linux-postmarketos-qcom-msm8917?
<hacker420[m]> too late :p
<barni2000[m]> * btw why don't you use pmbootstrap build --envkernel linux-postmarketos-qcom-msm8917?
<hacker420[m]> guess I do that
<barni2000[m]> if you build it in the same config with -c param you can install it from /mnt/packages in chroot -r or pmbootstrap install will install the latest
<hacker420[m]> the hell
<hacker420[m]> make[4]: *** No rule to make target 'arch/arm64/boot/dts/qcom/msm8916-samsung-cprime.dtb', needed by 'arch/arm64/boot/dts/qcom/dtbs-list'. Stop.
<hacker420[m]> let me comment it out for now
<hacker420[m]> goddamnit
<hacker420[m]> I think something got fucked up when I moved the origin urls
<hacker420[m]> nah I am recloning this
<hacker420[m]> what now
<hacker420[m]> >>> linux-motorola-cedric-mainline*: Create linux-motorola-cedric-mainline-6.6_p20240821231313-r0.apk
<hacker420[m]> mkdir: can't create directory '/home/pmos/packages//pmos/aarch64': Permission denied
<hacker420[m]> `
<barni2000[m]> try with linux-postmarketos-qcom-msm8917
<hacker420[m]> nope
<barni2000[m]> you can add that as a dependency for your cedric kernel and that can be a meta package
<hacker420[m]> I can't envkernel build it
<barni2000[m]> idk why you have permission denied btw
<hacker420[m]> I think I will try just copying the directory
<barni2000[m]> <Felix_> "so i have to follow https://wiki..." <- did you followed this?
<hacker420[m]> yes
<hacker420[m]> goddamnit
<hacker420[m]> cp: cannot copy cyclic symbolic link
<hacker420[m]> nah leaving this for tomorrow
<Saalim[m]> btw barni2000 land is also stuck on logo
<barni2000[m]> idk how you port it i have an half working port for land
<barni2000[m]> but a lot of stuff is missing for it
<Saalim[m]> <barni2000[m]> "idk how you port it i have an..." <- Can you send the dts
<barni2000[m]> idk where i put it
<barni2000[m]> show your current sources
<barni2000[m]> wait where are the panel drivers? you should generate them
<Saalim[m]> barni2000[m]: I did generate them for asus
<barni2000[m]> or enable simple frambuffer node
<Saalim[m]> barni2000[m]: defining it in the dts should be fine na?
<barni2000[m]> yes, change disabled to okay
<Saalim[m]> oh fuck
<Saalim[m]> I can avoid panel driver and check using framebuffer right?
<barni2000[m]> yes
<barni2000[m]> first it helps with check if it is booting
<Saalim[m]> and panel status to disabled or keep it at that?
<barni2000[m]> you can keep it
<Saalim[m]> Okie, gimme a sec
<barni2000[m]> it would be great fix the pstore somehow
<Saalim[m]> Nope, still the same, Maybe something is wrong with my environment perhaps
<barni2000[m]> try to adjust the pstore values
<barni2000[m]> if you get an pmesg or console-message it will help a lot
<Andr[m]> lk2nd can read ramoops, too. With lk2nd.pass-ramoops=zap added to kernel parameters, lk2nd makes the necessary changes to the dts file