f_ is now known as notfunderscore
notfunderscore is now known as funderscore
funderscore is now known as f_
<wiiplayer2|m> If you don't have other ideas regarding the driver, I'll remove it from my PR for now so we can at least get the device tree merged. I will continue investigating the panel/driver afterwards.
tadia|m has joined #sm7150-mainline
mxxme|m has joined #sm7150-mainline
<mxxme|m> hello
<mxxme|m> I am new here, I have the snapdragon 730 on the samsung galaxy a71
<mxxme|m> Do I first install u-boot?
<mxxme|m> and from where
<wiiplayer2|m> Hi, I'm currently working on merging my progress on the A71 into the kernel and u-boot. Until that is done you would have to compile everything yourself from my forks.
<mxxme|m> cool how much does this process usually take
<mxxme|m> here?
<wiiplayer2|m> Do you just want to use it or do you want to help in development? If you just want to use it I suggest you wait until it's merged and maybe even longer due to the display currently not working correctly
<mxxme|m> Sure I wanna help by testing
<wiiplayer2|m> Then I would definitely wait. At least until my first PRs are merged.
<mxxme|m> How do i check on that
<wiiplayer2|m> Also I just remembered that my fork is still on 6.13 so you would have to jump through a lot of hoops to have something usable.
<wiiplayer2|m> ^ if you want to track my PRs
<mxxme|m> Thanks, so do I click on the link once in a while to check if there is a link or
<wiiplayer2|m> Do you have a GitHub account?
<mxxme|m> Yes
<wiiplayer2|m> Then you can subscribe to both PRs and you will be notified when something changes (also when it gets merged)
<mxxme|m> How much does this usually take
<mxxme|m> I have never did this before
<wiiplayer2|m> mxxme|m: what exactly?
<mxxme|m> For the u-boot or something that i can try to flash
<mxxme|m> even if it might be broken
<mxxme|m> *
<wiiplayer2|m> If you really REALLY want to test u-boot, you would first need the dev tools, compile it, then flash it. Depending on your OS the packages are different. Are you already using Linux on your PC?
<mxxme|m> I had a laptop but i am going to get a new one this summer. to install twrp, kernel and rom i used heimdall and odin but mobile versions
<mxxme|m> Idk if chroot or proot work, maybe termux until i get a new laptop
<wiiplayer2|m> If you're using Windows you can also enable WSL2
<mxxme|m> uh
<mxxme|m> <mxxme|m> Idk if chroot or proot work, maybe termux until i get a new laptop
<mxxme|m> this
<wiiplayer2|m> So you want to compile on your phone?
<mxxme|m> yes
<mxxme|m> is it ok?
<wiiplayer2|m> it could work but how do you want to flash it afterwards?
<wiiplayer2|m> prob. using twrp?
<mxxme|m> yes
<wiiplayer2|m> you would need packages similar to this:
<wiiplayer2|m>  pkgsCross.aarch64-multiplatform.buildPackages.gcc
<wiiplayer2|m> * you would need packages similar to this:
<wiiplayer2|m> gnutls
<wiiplayer2|m> android-tools
<wiiplayer2|m> openssl
<wiiplayer2|m> 
<wiiplayer2|m> idk how the packages are called in termux although you probably just need gcc/build-essential because you're alread on arm64
<wiiplayer2|m> s/alread/already/
<mxxme|m> with root?
<mxxme|m> like do i need root to do this
<wiiplayer2|m> no
<wiiplayer2|m> when you're in termux you should have all the rights you need
<mxxme|m> ok installed the packages
<mxxme|m> openssl and android-tools worked
<wiiplayer2|m> build-essential & libgnutls?
<mxxme|m> ok done
<mxxme|m> installed them all niw
<mxxme|m> *
<wiiplayer2|m> Then you need to check out my u-boot fork using git and switch to the correct branch
<mxxme|m> can you share a link
<wiiplayer2|m> In the PR you see the fork + branch
<mxxme|m> I see conversation commits checks and files changed
<mxxme|m> here and pess the button shown in the image sent?
<mxxme|m> I will try
<mxxme|m> oh wait
<wiiplayer2|m> I also send the link
<mxxme|m> fork?
<wiiplayer2|m> ?
<mxxme|m> idk
<mxxme|m> fork+branch
<mxxme|m> <wiiplayer2|m> In the PR you see the fork + branch
<mxxme|m> here
<wiiplayer2|m> Yeah the image I sent was for you to know where you can find the fork + branch. I also sent the link to said fork + branch
<mxxme|m> oh
<mxxme|m> so do i follow the tutorial there
<mxxme|m> if there is one
<wiiplayer2|m> There is no tutorial
<wiiplayer2|m> From there you have to check it out
<wiiplayer2|m> git clone --depth 1 -b 2025-03-30 https://github.com/WiiPlayer2/u-boot-sm7150.git should work
<mxxme|m> k
<mxxme|m> done
<wiiplayer2|m> are you in the u-boot directory=?
<wiiplayer2|m> s/=?/?/
<mxxme|m> got in there just now
<wiiplayer2|m>  echo "Configure U-Boot"
<wiiplayer2|m> echo "Build U-Boot"
<wiiplayer2|m> make CROSS_COMPILE=aarch64-unknown-linux-gnu- O=.output qcom_defconfig qcom-phone.config
<wiiplayer2|m> make CROSS_COMPILE=aarch64-unknown-linux-gnu- O=.output -j"$(nproc)" CONFIG_DEFAULT_DEVICE_TREE=qcom/sm7150-samsung-a715f
<wiiplayer2|m> # echo "Build device tree overlay"
<wiiplayer2|m> # mkdir -p ../../.tmp
<wiiplayer2|m> # dtc -@ -I dts -O dtb -o ../../.tmp/a715f.dtbo dts/upstream/src/arm64/qcom/sm7150-samsung-a715f-boot.dtso
<wiiplayer2|m> echo "Assemble Android boot.img"
<wiiplayer2|m> gzip .output/u-boot-nodtb.bin -c > .output/u-boot-nodtb.bin.gz
<wiiplayer2|m> mkbootimg --base '0x0' --kernel_offset '0x00008000' --pagesize '4096' --kernel .output/uboot-dtb -o .output/u-boot.img
<wiiplayer2|m> cat .output/u-boot-nodtb.bin.gz .output/dts/upstream/src/arm64/qcom/sm7150-samsung-a715f.dtb > .output/uboot-dtb
<wiiplayer2|m> 
<wiiplayer2|m> ah, you have to remove the CROSS_COMPILE= stuff
<mxxme|m> do i make it using nano?
<wiiplayer2|m> you can the commands one by one
<wiiplayer2|m> * you can run the commands
<mxxme|m> can i just copy the text and make it a sh tho
<wiiplayer2|m> you can do that as well
<mxxme|m> k
<wiiplayer2|m> but then you should also add #!/usr/bin/env bash to be the first line
<mxxme|m> ohh thats why it had thoose errors
<mxxme|m> let me edit it
<mxxme|m> ok done
<mxxme|m> idk if it worked
<wiiplayer2|m> Did you remove the CROSS_COMPILE= stuff?
<mxxme|m> i forgot
<mxxme|m> the whole line?
<wiiplayer2|m> No, just the argument (including aarch...)
<mxxme|m> make CROSS_COMPILE=aarch64-unknown-linux-gnu- O=.output qcom_defconfigqcom-phone.config
<mxxme|m> this
<wiiplayer2|m> make O=.output qcom_defconfigqcom-phone.config
<wiiplayer2|m> Do the same for the other line
<mxxme|m> oh so i change it with that
<mxxme|m> k
<wiiplayer2|m> Now try running it again
<wiiplayer2|m> whats the output of git status?
<mxxme|m> how do i get a git status output
<wiiplayer2|m> git status
<wiiplayer2|m> what's the output of uname -m?
<mxxme|m> aarch64
<wiiplayer2|m> let me try this on my phone
<mxxme|m> k
<mxxme|m> also do i need to do this on the a71
<mxxme|m> is it functional
<mxxme|m> <wiiplayer2|m> let me try this on my phone
<mxxme|m> also do I need u-boot
<mxxme|m> cause someone told me i dont
<mxxme|m> oh he looked at the page and said wait why does it need other ones dont
<wiiplayer2|m> AFAIK the device package for pmos basically requires u-boot but others might know more about it. I think it's due to the new generic device package which all devices will use. Also I tried building it in nix-on-droid with my existing config but that doesn't work on the phone. I'd have to try in termux directly but I won't have time until after the weekend.
<mxxme|m> ty