lanefu changed the topic of #armbian-rockchip to: Armbian - Linux for ARM development boards | Rockchip SoC | www.armbian.com | This channel is relayed to the equivalent Discord channel | this channel is logged
<DC-IRC> [Discord] <ioncube7221> Any step by step guidelines to compile Mali-Bitfrost G52 for RK3566 OrangePi 3b? I have panfrost enable in my `X11 gnome` but I cannot find `/dev/mali`
<DC-IRC> [Discord] <beohoff3174> Isn't panfrost a driver? You'd expect to see it in lsmod, not in `/dev`, right?
<DC-IRC> [Discord] <microlinux> Panfrost just works
<DC-IRC> [Discord] <microlinux> Check glxinfo -B, mesa-utils the package
<DC-IRC> [Discord] <beohoff3174> Hey how do you include the linux headers when building the image from scratch? Or do I need to install them using a package
<DC-IRC> [Discord] <beohoff3174> or maybe a better way to ask this question is, is there an issues installing the developmental headers using apt if I'm on linux 6.1.0.3
<DC-IRC> [Discord] <beohoff3174> Nevermind, figured out that the kernel headers can be found at `build/output/debs`
<DC-IRC> [Discord] <igorpec> there is a switch KERNEL_HEADERS = yes or something
<DC-IRC> [Discord] <beohoff3174> armbian-config will install outdated headers, not sure if that's known or intended. I might be in the minority of folks compiling their own image
<DC-IRC> [Discord] <beohoff3174> thank you for the pointers though!
<DC-IRC> [Discord] <igorpec> If you build from sources you ha ve different kernel then repo have
<DC-IRC> [Discord] <alexl83> Dear Friends, I'm trying to enable KASLR on rockchip-rk3588 orangepi5-plus on edge 6.10 kernel, so far I have:
<DC-IRC> [Discord] <alexl83> CONFIG_RANDOMIZE_BASE=y in kernel .config
<DC-IRC> [Discord] <alexl83> CONFIG_CMD_KASLRSEED=y in uboot config
<DC-IRC> [Discord] <alexl83> CONFIG_DM_RNG=y in uboot config
<DC-IRC> [Discord] <alexl83> u-boot 2024.07 mainline
<DC-IRC> [Discord] <alexl83> kaslrseed command in boot.cmd
<DC-IRC> [Discord] <alexl83> crypto and rng nodes in device-tree
<DC-IRC> [Discord] <alexl83> Still: I get dreaded '[ 0.000000] KASLR disabled due to lack of seed' on boot
<DC-IRC> [Discord] <alexl83> Anyone knows anything more that's needed? I'm clearly missing something
<DC-IRC> [Discord] <lanefu> Nope but it's cool you're working on it 🤠
<DC-IRC> [Discord] <alexl83> Thanks 🙏 trying to wrap my head around this: do we have any KASLR-supported board? If so I can dissect here and there to try and understand
<DC-IRC> [Discord] <ioncube7221> Can you take a look here & help me understand (Chemical engineer by profession): https://discord.com/channels/854735915313659944/885190128635641876/1270435797471989770
<DC-IRC> [Discord] <beohoff3174> I wish I could, I don't have much experience with the vendor kernel
<DC-IRC> [Discord] <alexl83> As strange as it sounds, mainline u-boot 2024.07 lacks kaslr-seed node creation support - I could only find in 2024.10-rcX and master
<DC-IRC> [Discord] <Werner> Well then there are two options: try to backport to 07 or play with the 10-rc 😄
<DC-IRC> [Discord] <alexl83> I found a patchseries - it's been merged in june/24 - just need to understand how to pull it off from a web-based mailing list
<DC-IRC> [Discord] <alexl83> will try applying to 2024.07
<DC-IRC> [Discord] <alexl83> ok downloading was easy, comfy download button on webpage - now rummaging to see if it compiles and runs
<DC-IRC> [Discord] <Werner> dealing with patches can be a huge pain..if you don't know what you are doing...like me 😅
<DC-IRC> [Discord] <alexl83> it's a pain in the ass, but a nice hobby
<DC-IRC> [Discord] <alexl83> ok I'm an idiot: does anyone know how to apply a patchwork series format patch OR convert it to something poor sloppy coders like me can use with armbian framework?
<DC-IRC> [Discord] <alexl83> done with a lame git hack and it applies and compiles! now let's test it
<DC-IRC> [Discord] <beohoff3174> What did you end up doing, `git apply`?
<DC-IRC> [Discord] <alexl83> No, applied 4 diffs, then git patch
<DC-IRC> [Discord] <alexl83> It compiles doesn’t work
<DC-IRC> [Discord] <alexl83> Tomorrow will dig deeper
<DC-IRC> [Discord] <alexl83> No, applied 4 diffs, then git diff
<DC-IRC> [Discord] <beohoff3174> @alexl83 , might look at this comment: https://discord.com/channels/854735915313659944/858684284070789130/1265373649938940014
<DC-IRC> [Discord] <beohoff3174> I too use git diff, but I had been wanting to try git format patch
<DC-IRC> [Discord] <alexl83> Nice, thanks!
<DC-IRC> [Discord] <alexl83> I think u-boot 2024.07 doesn’t support kaslrseed
<DC-IRC> [Discord] <alexl83> Its probably better to bump version to 2024.10-rc2
<DC-IRC> [Discord] <alexl83> Gonna try tomorrow
<DC-IRC> [Discord] <alexl83> Damn, it seems armbian-install is not flashing u-boot to emmc
<DC-IRC> [Discord] <alexl83> I'm still stuck at 2024.07-rc4 despite upgrading multiple package versions
<DC-IRC> [Discord] <alexl83> need to burn with dd
<DC-IRC> [Discord] <lanefu> Yeah I think armbian-install is broken there's an open PR I think by the-going to fix it
<DC-IRC> [Discord] <alexl83> yep, it expects u-boot.itb and idbloader.img
<DC-IRC> [Discord] <alexl83> rockchip has everything combined in one file and write_uboot_platform () doesn't handle it
<DC-IRC> [Discord] <alexl83> flashing manually 2024.10-rc2 enables KASLR
<DC-IRC> [Discord] <alexl83> now I'll try backporting to 2024.07 and see if it works
<DC-IRC> [Discord] <alexl83> then will check the-going PR, hpefully it'll help
<DC-IRC> [Discord] <alexl83> can't find the pr but I'm sure I saw it yday
<DC-IRC> [Discord] <alexl83> it's been merged - I think platform-install.sh might need some patching too though
<DC-IRC> [Discord] <alexl83> it's been merged
<DC-IRC> [Discord] <alexl83> backporting works: 2024.07 with KASLR - will commit a pr tomorrow
<DC-IRC> [Discord] <alexl83> PR committed - I'm testing the same for nanopi-r5c it'a bit more invasive but if works i'll push - then code owner will decide
<DC-IRC> [Discord] <beohoff3174> How did you figure this out, out of curosity?
<DC-IRC> [Discord] <alexl83> cat /proc/device-tree/chosen/u-boot,version output was giving out old version
<DC-IRC> [Discord] <alexl83> after dd "if=/u-boot-rockchip.bin" "of=/dev/mmcblk0" bs=32k seek=1 conv=notrunc status=none
<DC-IRC> [Discord] <alexl83> it would update
<DC-IRC> [Discord] <beohoff3174> since I'm asking questions, why turned you on to KASLR?
<DC-IRC> [Discord] <beohoff3174> never heard of it before, until you mentioned it, so I'm curious
<DC-IRC> [Discord] <alexl83> it's a security mechanism that randomizes kernel memory addresses
<DC-IRC> [Discord] <alexl83> like ASLR for userspace programs, it's also present in windows - it's an hardening feature
<DC-IRC> [Discord] <alexl83> and also the error message during boot on dmesg was annoying me
<DC-IRC> [Discord] <alexl83> it also worls on nanopi-r5c will push a PR right now, let's see if it gets accepted
<DC-IRC> [Discord] <beohoff3174> I haven't tried to commit to many projects, but feel like Armbian is one of the fastest I've seen for merging stuff
<DC-IRC> [Discord] <alexl83> it's my first collaboration, I'm not a coder but I have many years experience in Linux, so I get around decently
<DC-IRC> [Discord] <alexl83> and it's a good way to learn while having some nerd fun