hexdump01 has joined #linux-cros-arm
hexdump0815 has quit [Ping timeout: 480 seconds]
<bonfire_> jenneron[m]: ok, manually deleting all my repos and pmbootstrap env worked
<bonfire_> I was able to run checksum linux-postmarketos-mediatek-mt8183
<jenneron[m]> you also need to bump pkgrel
<jenneron[m]> and include patch in source in APKBUILD
<bonfire_> ok, where is that done?
<jenneron[m]> device/testing/linux-postmarketos-mtk-mt8183/APKBUILD
<jenneron[m]> device/testing/linux-postmarketos-mediatek-mt8183/APKBUILD
<bonfire_> this process is considering "adding a patch toa kernel" yes?
<bonfire_> (for my personal documentation)
<jenneron[m]> yes
<jenneron[m]> that's why I asked git diff
<jenneron[m]> I can see if it's done correctly
<bonfire_> so far git status only shows untracked file
<bonfire_> device/testing/linux-postmarketos-mediatek-mt8183/mt8183-kukui-krane-rotation-panel.patch
<bonfire_> is that the correct place for it?
<jenneron[m]> bonfire_: it's better to remember 2 things: 1) all files used in package must be specified in `source` variable 2) `default_prepare` function in APKBUILD checks `source` for files named as *.patch and applies them
<jenneron[m]> I mean it's not related only to kernels, but to any packages
<jenneron[m]> in Alpine
<bonfire_> eh device/testing/linux-postmarketos-mtk-mt8183/APKBUILD
<bonfire_> this dir does not exist in my repo
<bonfire_> is that s/mtk/mediatek/ ?
<bonfire_> or is that in some branch?
<bonfire_> oh just a typo in your first link
<bonfire_> jenneron[m]: is your patch supposed to be in mt8183-panel-orientation.patch or it's own file?
<jenneron[m]> <bonfire_> "so far git status only shows..." <- it will show when you update source and run checksum
<jenneron[m]> bonfire_: hm? use any name ending with .patch
<bonfire_> ok. that's what I did
<jenneron[m]> just add the same to source
<bonfire_> but some .patch files have just one patch, while others have multiple
<jenneron[m]> no
<bonfire_> or do I not understand this
<jenneron[m]> some patches patch multiple files
<jenneron[m]> oh what
<jenneron[m]> does it even work
<bonfire_> ?? heh
<bonfire_> this is all super foreign territory for me
<bonfire_> i'm a webdev :P
<bonfire_> jenneron[m]: here is where I am https://dpaste.com/8RBLVRLYQ
<jenneron[m]> bonfire_: bump pkgrel
<jenneron[m]> i'm now not sure this patch is a good idea
<jenneron[m]> it's going to break touchscreen, not only accelerometer
<jenneron[m]> so may be it's not worth testing
<bonfire_> mmm you tell me
<bonfire_> pkgrel=0 so change to 0.0.1 ?
<bonfire_> 1.0 ?
<jenneron[m]> bonfire_: am i right that your panel is vertical while booting?
<jenneron[m]> bonfire_: 0 > 1
<bonfire_> yes, it's vertical no matter the position of the tablet
<bonfire_> err wait, it's vertical on boot, yes
<bonfire_> no, sorry the 4x penguins and first flash terminal are horizontal when booting
<bonfire_> once loading the GUI it switches to vertical
<jenneron[m]> bonfire_: what about splash screen?
<bonfire_> splash screen is also vertical
<jenneron[m]> are penguins right or they are inverted by 180 degrees?
<bonfire_> whatever happens when loading wayland it kicks it to the right 90 deg
<jenneron[m]> splash screen is still not wayland
<jenneron[m]> try that patch and tell me what happens
<bonfire_> https://wiki.postmarketos.org/wiki/File:Lenovo-ideapad-duet.jpeg when setup like this position the penguins are top left
<jenneron[m]> that's fine
<bonfire_> ok, so pkgrel=1
<bonfire_> updated checksum
<bonfire_> now what do I?
<jenneron[m]> pmbootstrap build linux-postmarketos-mediatek-mt8183
<bonfire_> ah so pkgrel_bump only tells you which value to use
<jenneron[m]> pkgrel_bump does 0 > 1, 1 > 2, etc automatically
<jenneron[m]> but you can edit it manually, it doesn't matter
<jenneron[m]> pkgrel needs to be bumped, so you will have never package version
<jenneron[m]> newer*
<bonfire_> ok. that is built.
<jenneron[m]> use sideload to install it
<bonfire_> ah so that sideloads just the kernel package to the device directly?
<jenneron[m]> yes
<jenneron[m]> your device has sshd enabled for this
<jenneron[m]> unless you disabled it
<bonfire_> nice. that's pretty cool
<bonfire_> bah not done building. very slow
<bonfire_> jenneron[m]: hrm, error on sideloading
<bonfire_> ERROR: /tmp/linux-postmarketos-mediatek-mt8183-5.18-r2.apk: UNTRUSTED signature
<jenneron[m]> it has --install-key or something like this
<jenneron[m]> run pmbootstrap sideload --help
<bonfire_> that the APK signing key?
<bonfire_> ah yah
<bonfire_> hrm, completed the tasks but had this error
<bonfire_> 2022/10/22 19:27:43 only one kernel release/flavor is supported, found: ["/usr/share/kernel/postmarketos-mediatek-mt8183/kernel.release" "/usr/share/kernel/postmarketos-mtk-mt8183/kernel.release"]
<bonfire_> ERROR: postmarketos-mkinitfs-1.5-r0.trigger: script exited with error 1
<jenneron[m]> what
<jenneron[m]> oh
<jenneron[m]> run apk upgrade -a on device
<jenneron[m]> you haven't upgraded your system for some time
<bonfire_> ok
<bonfire_> yah I just started intuitively doing that :P
<bonfire_> ok, sidedloaded without error
<bonfire_> still booting roated 90 right (vertical) once in wayland
<jenneron[m]> and splash screen?
<bonfire_> I actually don't see a splash screen with sxmo
<jenneron[m]> send your /sys/firmware/fdt
<bonfire_> ehh just cat that file or?
<bonfire_> the start of it has loads of encoding corruption
<jenneron[m]> upload somewhere
<jenneron[m]> or decompile with dtc