ArmbianHelper changed the topic of #armbian to: armbian - Linux for ARM development boards | www.armbian.com | Github: github.com/armbian | Commits: #armbian-commits | Developer talk: #armbian-devel | Forum feed: #armbian-rss | Off-Topic: #armbian-offtopic | Logs: -> irc.armbian.com
aasami_ has quit [Quit: leaving]
MrFixIt has quit [Read error: Connection reset by peer]
archetech has quit [Quit: Leaving]
MrFixIt has joined #armbian
MrFixIt has quit [Max SendQ exceeded]
archetech has joined #armbian
MrFixIt has joined #armbian
norwich has quit [Ping timeout: 255 seconds]
norwich has joined #armbian
Suspect has quit [Ping timeout: 252 seconds]
<nekomancer[m]> any pastebin with ANSI colors support?
oida has joined #armbian
p0g0 has joined #armbian
grriz has joined #armbian
jclsn has quit [Ping timeout: 248 seconds]
jclsn has joined #armbian
<Armbian-Discord> <r​pardini> lol
<Armbian-Discord> <r​pardini> I wrote one
<Armbian-Discord> <r​pardini> or, cobbled together
<Armbian-Discord> <r​pardini> https://github.com/rpardini/ansi-hastebin -- not too proud of it, no
<Armbian-Discord> <r​pardini> was gonna call it armbin then armbiansi then gave up
stipa_ has joined #armbian
stipa has quit [Read error: Connection reset by peer]
stipa_ is now known as stipa
grriz has quit [Quit: Leaving]
archetech has quit [Quit: Leaving]
Dagger has quit [Ping timeout: 252 seconds]
Dagger has joined #armbian
<Kreyren> ANSBINAN
* Kreyren grins
<Kreyren> hmm i figured out what the issue is on the encryption setup, but i dunno how to fix it
<Kreyren> basically the framework is doing `# losetup /dev/loop0 path/to/built.img` like it mounts it, but it doesn't show the partitions like /dev/loop0p2, but it shows them in the host
* Kreyren asked in #docker
Smedles has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
Smedles has joined #armbian
ikmaak has quit [Read error: Connection reset by peer]
arch3r has quit [Ping timeout: 246 seconds]
arch3r has joined #armbian
ikmaak has joined #armbian
<CosmicDJ> kreyren: try losetup -P
<Kreyren> CosmicDJ, did, but it didn't help
<CosmicDJ> kreyren: "Note that the partition table parsing depends on sector sizes. The default is sector size is 512 bytes" different sector size?
<Kreyren> like losetup from docker mounts the /dev/loop0 including the partitions /dev/loop0pX on host, but only the /dev/loop0 is available on docker
<CosmicDJ> ah sounds like a Docker problem then
<Kreyren> yep
<Kreyren> it has /dev set a device though
<Kreyren> so like it should work
archetech has joined #armbian
ikmaak has quit [Ping timeout: 248 seconds]
ikmaak has joined #armbian
arch3r has quit [Quit: bye]
arch3r has joined #armbian
danilogondolfo has joined #armbian
flyback has quit [Ping timeout: 252 seconds]
flyback has joined #armbian
Suspect has joined #armbian
Suspect has quit [Quit: Leaving]
kolla has quit [Quit: %fog relay%]
kolla has joined #armbian
qqqhhh8619935 has joined #armbian
qqqhhh861993 has quit [Ping timeout: 252 seconds]
qqqhhh8619935 is now known as qqqhhh861993
arch3r has quit [Quit: bye]
arch3r has joined #armbian
arch3r has quit [Ping timeout: 256 seconds]
arch3r has joined #armbian
\` has quit [Ping timeout: 265 seconds]
LanDi has joined #armbian
LanDi has quit [Remote host closed the connection]
\` has joined #armbian
zeemate_ has joined #armbian
<Armbian-Discord> <T​enkawa> You will want to use these in losetup btw too: -o, --offset <num> start at offset <num> into file
<Armbian-Discord> <T​enkawa> -b, --sector-size <num> set the logical sector size to <num>
<Armbian-Discord> <T​enkawa> If you need to get into offsets and the sector size
<Armbian-Discord> <r​pardini> Maybe just call partprobe inside Docker after losetup. Or reuse some of the helpers
Mangix has quit [Read error: Connection reset by peer]
Mangix has joined #armbian
lyri has joined #armbian
<Armbian-Discord> <T​enkawa> @rpardini if they are having bind problems or offset problems with /dev a partprobe is just going to call a reload of that
<Armbian-Discord> <T​enkawa> partprobe isn't that smart of a tool
<Armbian-Discord> <T​enkawa> it just reloads the table
<Armbian-Discord> <T​enkawa> docker stopping and starting the container itself should be doing that
alekksander has joined #armbian
<Armbian-Discord> <r​pardini> Nah, usually when in Docker and "device shows but partitions don't" it's because of a disconnect between udev (or non-udev'ness) inside Docker vs the host kernel, some event is missed. So the p1's etc show up on the host, but not inside Docker.
<Armbian-Discord> <r​pardini> when you partprobe it manually it "syncs" and the partitions show up.
<Armbian-Discord> <T​enkawa> that's still not going to be inheritantly "fixed" by partprobe... thats a bandaid
<Armbian-Discord> <r​pardini> yep, /dev/loopX inside Docker is a huge patchwork of bandaids.
<Armbian-Discord> <T​enkawa> works fine for me
<Armbian-Discord> <r​pardini> you're lucky. I've hit snags every other way. maybe you've some magical Docker option that makes it work?
<Armbian-Discord> <T​enkawa> No.. you have to keep things "simple" in docker... don't get so overcomplicated
<Armbian-Discord> <r​pardini> Hmmm please instruct me
<Armbian-Discord> <T​enkawa> Part of the armbian builds for example is they try to do too much at once
<Armbian-Discord> <r​pardini> hmmm but doing just that one /dev/loop stuff fails by itself
<Armbian-Discord> <r​pardini> so focus on that one issue, how do I fix it?
<Armbian-Discord> <T​enkawa> If it was committing changes then syncing more it would be easier to manipulating disk changes
<Armbian-Discord> <T​enkawa> do you chroot in or work from inside it?
<Armbian-Discord> <T​enkawa> (I can't remember)
<Armbian-Discord> <r​pardini> specifically, for the case where docker (client) and dockerd (host) are not in the same host, eg, when using Docker Desktop on Mac
<Armbian-Discord> <r​pardini> chroot is irrelevant, /dev/loop with Docker in a VM happens with or without chroot
<Armbian-Discord> <T​enkawa> That is odd...
<Armbian-Discord> <r​pardini> guess you've no idea, then.
<Armbian-Discord> <T​enkawa> I'm on an M1 as well
<Armbian-Discord> <T​enkawa> I'll have to see what our build is doing differently
<Armbian-Discord> <r​pardini> how do I test your build on a Mac M1?
<Armbian-Discord> <r​pardini> cos it's maybe easier for me to peek at yours (since it's better/simpler) than you to look at mine
<Armbian-Discord> <T​enkawa> I've got to write up Docker instructs (mine has been setup for a while and I still prefer to use my full VM because its faster)
<Armbian-Discord> <T​enkawa> Will give me a good chance to (Just realized I had to remove my last one because I was running out of disk space for a RISC-V test)
<Armbian-Discord> <T​enkawa> That risc-v build is nuts
<Armbian-Discord> <r​pardini> yeah well. Armbian's decade-old secrets for remote-Docker lie here, if you wanna peek:
<Armbian-Discord> <r​pardini> - https://github.com/armbian/build/blob/armbian-next/lib/functions/host/docker.sh#L179-L196 (detect remote Docker, bandaids)
<Armbian-Discord> <r​pardini> - https://github.com/armbian/build/blob/armbian-next/lib/functions/host/docker.sh#L480-L501 (apply hacks, even more bandaids)
<Armbian-Discord> <r​pardini> - https://github.com/armbian/build/blob/armbian-next/lib/functions/image/loop.sh (usage of the fake loops, pile of bandaids, retries, etc)
<Armbian-Discord> <T​enkawa> Sifive internal build wants insane amounts of space
<Armbian-Discord> <r​pardini> any insight on how to make it "just work" with any "oddness" is welcome -- even if it's a full rewrite, I don't mind, if we find the fixing principle
<Armbian-Discord> <T​enkawa> Ahhh
<Armbian-Discord> <T​enkawa> I see one big diff
<Armbian-Discord> <T​enkawa> You are using Ubuntu core
<Armbian-Discord> <T​enkawa> I'm using Debian core
<Armbian-Discord> <T​enkawa> makes a huge difference
<Armbian-Discord> <r​pardini> nah, that doesn't solve it, I can switch with 1 parameter, all fail the same way. (some very old Debian fail more even)
<Armbian-Discord> <T​enkawa> no
<Armbian-Discord> <T​enkawa> the tweaks you add for apparmor/etc are part of what I take out
<Armbian-Discord> <T​enkawa> and cgroup
<Armbian-Discord> <T​enkawa> I don't use any of that'
<Armbian-Discord> <r​pardini> that doesn't fix or break the loop issue
<Armbian-Discord> <T​enkawa> It does for me
<Armbian-Discord> <T​enkawa> And I also remove a ton of debug mess from the kernel... there's no point in having it
<Armbian-Discord> <T​enkawa> (not on the build side)
<Armbian-Discord> <r​pardini> well if you have something concrete, any evidence of a any kind of build running on M1 with Docker sans bandaids, I'd love to know.
\` has quit [Ping timeout: 268 seconds]
<Armbian-Discord> <T​enkawa> I will rebuild it and let you know.. is armbian-next good to pull to test with?
<Armbian-Discord> <T​enkawa> or do you want me to use regular armbian?
<Armbian-Discord> <r​pardini> -next, for sure
<Armbian-Discord> <r​pardini> regular/master Armbian's funeral is.... soon, hopefully -- few weeks at max
<Armbian-Discord> <T​enkawa> ok.. I "should" have some time either this weekend or Monday
<Armbian-Discord> <T​enkawa> Just got back to normal today...
<Armbian-Discord> <T​enkawa> (whatever normal is)
<Armbian-Discord> <r​pardini> no problem, any help is welcome. I've struggled with this for months and would love to get rid of those hacks
<Armbian-Discord> <r​pardini> maybe/probably there's something very simple I've overlooked
<Armbian-Discord> <T​enkawa> In other news I'm disappointed but not suprised by what chewitt/narmstrong mentioned about the vim4... think I might hold off on getting one now
<Armbian-Discord> <r​pardini> they said that from the start when it was released. that's why I never got one...
<Armbian-Discord> <T​enkawa> I do like the Edge2 though
<Armbian-Discord> <T​enkawa> It has been actualy a decent surprise
<Armbian-Discord> <r​pardini> https://github.com/armbian/build/pull/4805
<Armbian-Discord> <T​enkawa> haahaa
<Armbian-Discord> <r​pardini> those patches won't work themselves into booting 😄 so go ahead and try
<Armbian-Discord> <T​enkawa> Gotta ask... how did you get by 104-105.. those Spectre/Meltdown ones were kicking me around
<Armbian-Discord> <T​enkawa> I'm running on 104 right now
<Armbian-Discord> <T​enkawa> (I was rebasing on my own)
<Armbian-Discord> <r​pardini> never hit 104 or 105 -- went straight to 110
<Armbian-Discord> <T​enkawa> ummm
<Armbian-Discord> <T​enkawa> bad idea
<Armbian-Discord> <T​enkawa> the entropy pool is broke
<Armbian-Discord> <T​enkawa> thats problem #1
<Armbian-Discord> <T​enkawa> I've already done this too
<Armbian-Discord> <T​enkawa> there's a few things that don't function as they should on the unit
<Armbian-Discord> <T​enkawa> Entropy: 2491
<Armbian-Discord> <T​enkawa> this will be stuck at 256 on that one
<Armbian-Discord> <c​0rnelius> its suppose too be
<Armbian-Discord> <T​enkawa> Not if its reading it properly
<Armbian-Discord> <c​0rnelius> the way it works now its not suppose to go over 256. thats on lts and stable.
<Armbian-Discord> <c​0rnelius> be like that for sometime
wd has joined #armbian
<Armbian-Discord> <T​enkawa> No.. he used Radxa's LTS tree to make a Khadas kernel
<Armbian-Discord> <c​0rnelius> ur wrong
<Armbian-Discord> <T​enkawa> it breaks reading /proc/sys/kernel/random/entropy_avail on the Edge2
<Armbian-Discord> <r​pardini> I used rk3.4
<Armbian-Discord> <T​enkawa> Yeah thats rk3.4
<Armbian-Discord> <r​pardini> anyway, the patches are there, if anyone's interested -- I'm not
<Armbian-Discord> <T​enkawa> Khadas doesn't use that
<Armbian-Discord> <T​enkawa> Notice the paste "from an Edge2'
<Armbian-Discord> <T​enkawa> root@kedge:~# cat /proc/sys/kernel/random/entropy_avail
<Armbian-Discord> <T​enkawa> 2489
<Armbian-Discord> <T​enkawa> not 256
<Armbian-Discord> <T​enkawa> and constantly changes
<Armbian-Discord> <T​enkawa> cat /proc/sys/kernel/random/entropy_avail
<Armbian-Discord> <T​enkawa> 2565
<Armbian-Discord> <T​enkawa> Either way other things are broke...
<Armbian-Discord> <c​0rnelius> i can only assume this got introduced into the 5.10 as well, would seem pretty random that you get 256.
<Armbian-Discord> <T​enkawa> And Khadas doesn't support it
<Armbian-Discord> <T​enkawa> Every SoC I have gets 256 except this one
<Armbian-Discord> <T​enkawa> And my x86 has a non x86 number
<Armbian-Discord> <T​enkawa> hmm interesting...
<Armbian-Discord> <c​0rnelius> thats what I mean. you said its getting stuck at 256. thats not a bug but a feature. now of course there could be something a miss on the source they use, but the overall implementation is intentional.
<Armbian-Discord> <T​enkawa> I do agree its a good feature... I just would like to see more consistency (but we know thats not going to happen)
<Armbian-Discord> <T​enkawa> If I had known that tree worked I could've upgraded a long time ago... I ran that test successfully a long time ago
<Armbian-Discord> <T​enkawa> err... that behaviour
<Armbian-Discord> <T​enkawa> problem is 110 is still ancient even on 5.10
<Armbian-Discord> <c​0rnelius> yeah its not really the height of amazing achievement is it? 😉
<Armbian-Discord> <T​enkawa> unfortunately no
<Armbian-Discord> <T​enkawa> But 6 is a PITA
<Armbian-Discord> <T​enkawa> lol
<Armbian-Discord> <r​pardini> at least -- amazingfate is gonna unify all the things (66, 68, 88, all vendors) under a single rk 5.10 kernel for Armbian
<Armbian-Discord> <c​0rnelius> i saw that. seems like a rough road.
<Armbian-Discord> <r​pardini> yeah, some work, but having six (? or more) different rk legacy kernels and a dozen families is rougher
<Armbian-Discord> <r​pardini> not to mention media which also has some
<Armbian-Discord> <c​0rnelius> can't each board just pull in the source from their respective github? its just a URL right?
<Armbian-Discord> <r​pardini> yeah but that would as many kernels as boards
<Armbian-Discord> <r​pardini> 6 boards, 6 kernels, no thanks -- it's only a few hundred patches difference between them
<Armbian-Discord> <c​0rnelius> and time whilst waiting for mainline
<Armbian-Discord> <c​0rnelius> and then all the effort becomes null
<Armbian-Discord> <E​feCTN> Why there is a group named media
<Armbian-Discord> <r​pardini> yeah, I'm just "clapping for the madhouse ppl to dance" -- I don't even have any 88's 😄
<Armbian-Discord> <c​0rnelius> neither do i 🙂
<Armbian-Discord> <r​pardini> yeah, it would be much clear if instead of media it was called olegs-kernel -- much easier to understand
<Armbian-Discord> <c​0rnelius> specialk
<Armbian-Discord> <E​feCTN> Seems understandable 😅
<Armbian-Discord> <r​pardini> fact is, many ppl have tried to bring back boards from media, but they all disappear over time, while oleg is always there, fixing, and supporting users. and it works -- so I'm all for it.
<Armbian-Discord> <T​enkawa> Problem is... the "support" word is relative... I've had/seen him asked to document his changes and procedures for people and not seen it done once... and I have no tolerance for that.
<Armbian-Discord> <T​enkawa> If "insert person here" is going to take it upon themselves to be the center of contact/support for something... be ready to take responsibility and contact when the everyday person has questions if you don't do that documentation.
<Armbian-Discord> <I​gorPec> i had a long discussion with Oleg last week and I hope he will join at least with rk3588. His compromise goes into direction of maintaining our own fork of Rockchip kernel with integrating patches for radxa, opi, khadas ... is this doable and acceptable, I don't know?
<Armbian-Discord> <I​gorPec> his argument against was - he doesn't trust to base on radxa kernel source
arch3r has quit [Ping timeout: 256 seconds]
<Armbian-Discord> <r​pardini> it's doable -- @EfeCTN (and me, clapping) has proven it's possible
<Armbian-Discord> <r​pardini> but I think rk has to be the base, with Radxa / Xunlong / Khadas patches on top
<Armbian-Discord> <I​gorPec> yes, that way
arch3r has joined #armbian
<Armbian-Discord> <r​pardini> Amazingfate has many more, for the 66/68's too on same kernel
<Armbian-Discord> <r​pardini> so has to be concerted effort I think
<Armbian-Discord> <r​pardini> also: having those squashed/single commit trees Oleg normally does -- a no no
<Armbian-Discord> <r​pardini> we need clean patchset in files against a public well known base
<Armbian-Discord> <I​gorPec> yes.
<Armbian-Discord> <I​gorPec> his argument was that what we do now is not good enough 😉
<Armbian-Discord> <I​gorPec> could be lost in translation, so don't catch on this
<Armbian-Discord> <r​pardini> well it... works. welcome to do better, of course, but squashing in a hidden tree somewhere and hijacking any external contributions... is not "better"
<Armbian-Discord> <I​gorPec> i know
<Armbian-Discord> <r​pardini> so all for doing it better, as long as it is actually better
<Armbian-Discord> <I​gorPec> lets see if @amazingfate and @EfeCTN are also ok with this approach, then we can start thinking about
<Armbian-Discord> <r​pardini> I'd say amazingfate knows more and better, also introduced the 88 legacy originally, so I'd propose he's the lead on this
<Armbian-Discord> <r​pardini> (not to discount @EfeCTN heroic efforts, of course, and my clapping)
<Armbian-Discord> <I​gorPec> agree. Oleg is only adding dt for station m3 and some minor fixes
<Armbian-Discord> <r​pardini> yep that should be very ok. I think they all will coexist no problem... kedge2 might be more effort due to MCU
<Armbian-Discord> <r​pardini> gotta go, and will miss the Lounge tonite, have actual social event 🫡
<Armbian-Discord> <E​feCTN> I think this is just what we're doing by patches. Seems good idea but not big improvement
<Armbian-Discord> <I​gorPec> great! enjoy it. i am still in the wilderness
<Armbian-Discord> <I​gorPec> improvement is that we somehow convince Oleg its better to work together 😉
<Armbian-Discord> <E​feCTN> Nice deal
<Armbian-Discord> <r​pardini> Single legacy Rockchip 5.10 kernel for all rk3566/68/88(s) boards
<Armbian-Discord> <r​pardini> oh damn meant that for armbian-rockchip... sorry
<Kreyren> Btw. I looked through the whole hackerspace and didn't find RK3588S so i will buy it @_@
<Armbian-Discord> <r​pardini> recommend a Mekotronics -- @monkaBlyat has DTs for those
<Armbian-Discord> <a​mazingfate> I think tag linux-5.10-gen-rkr3.6 in my PR should be a good code base because it is an official release from the sdk of rockchip, and clean. We can update by tags when rockchip releases newer
<Armbian-Discord> <E​feCTN> What differences 3.6 has over 3.4. I wonder why radxa doesn't rebase
<Armbian-Discord> <a​mazingfate> I think radxa would update code to their rkr3.4 branch in the future. rkr3.6 fixes some bugs, for example rk3568 with pcie can boot with it.
<Armbian-Discord> <a​mazingfate> https://gitlab.com/rk3588_linux/rk/kernel
<Armbian-Discord> <a​mazingfate> This kernel is upoaded by radxa. It has been kept up to date in the past several mouths. And I think we can remind radxa when the repo need sync from rockchip.
arch3r has quit [Ping timeout: 246 seconds]
arch3r has joined #armbian
arch3r has quit [Excess Flood]
arch3r has joined #armbian
arch3r has quit [Ping timeout: 248 seconds]
arch3r- has joined #armbian
arch3r- is now known as arch3r
<Armbian-Discord> <r​pardini> another possibility, which I think @balbes150 has been exploring, is using edk2 for these boards.
<Armbian-Discord> <r​pardini> I've had big success with the quartz64a with it -- it's full UEFI/ACPI/DSDT though, no DeviceTree at all, and some drivers (eg GMAC) needs glue code, since they were not designed for ACPI, instead DT.
<Armbian-Discord> <r​pardini> Alternatively edk2 -> grub can boot linux passing the DT and acpi=off -- that allows ed2k-in-SPI -> NVMe with grub -> Linux with DT, all working 100%
<Armbian-Discord> <r​pardini> but yeah, building edk2 is... a real pain. all that C++ 😄
<Armbian-Discord> <a​mazingfate> Does the edk2 have video output?
<Armbian-Discord> <r​pardini> Yep -- at least using jarredmcneil's edk2 on the quartz64a it does. What it doesn't have is any nvram, so any settings changed in the "BIOS" are lost with reboot.
<Armbian-Discord> <T​enkawa> This repo is behind "another" active one Radxa one is already actively using though.. so I'm confused though how does that help?
LanDi has joined #armbian
<Armbian-Discord> <r​pardini> It also doesn't see the USB3, but USB2 works (for booting off of)
<Armbian-Discord> <T​enkawa> This repo has got active rk3588 changes as of yesterday:
<Armbian-Discord> <r​pardini> Tenkawa: that is our current base. We want off out of it.
<Armbian-Discord> <r​pardini> we wanna be on rk base.
<Armbian-Discord> <a​mazingfate> You can treat it as the upstream of legacy kernel from rockchip. All vendors are developing based on this.
<Armbian-Discord> <T​enkawa> Ok.. your pai
<Armbian-Discord> <a​mazingfate> And the radxa one is using a tag name as their developing branch's name
<Armbian-Discord> <r​pardini> the rebase is not too painful -- some hundred patches
<Armbian-Discord> <r​pardini> opi5 overlays very nicely on top of it
<Armbian-Discord> <T​enkawa> Once its done I agree.. in its current state its horrible
<Armbian-Discord> <r​pardini> kedge2 is significantly more pain, since its base is that old .66
<Armbian-Discord> <a​mazingfate> Most boards just need a dts patch
<Armbian-Discord> <r​pardini> yep.... Opi5 is mostly DTS stuff... some motorcomm for phy, etc
<Armbian-Discord> <r​pardini> main "work" is moving hacks the vendors do to .dtsi (which would impact the other boards) out of there and into the board's DT or some intermediaty dtsi
LanDi has quit [Quit: LanDi]
junaid_ has joined #armbian
Suspect has joined #armbian
danilogondolfo has quit [Remote host closed the connection]
<lanefu> Linux used to have the alan cox kernel so why not have the Oleg kernel 😃
<lanefu> Are the ar.bia
<lanefu> Are the patches Armbian is providing on top of the vendor legacy kernel for rk3588 adding real value over the kernel trees maintained by Radxa and xunlong?
<lanefu> Is it motivated by managing device tree overlays?
<archetech> theres no rock5 maintainer yet who knows
norwich has quit [Ping timeout: 264 seconds]
alekksander has quit [Ping timeout: 248 seconds]
<yang2_> I have the rock5
alekksander has joined #armbian
junaid_ has quit [Ping timeout: 256 seconds]
alekksander has quit [Quit: Konversation terminated!]
hectroid has quit [Read error: Connection reset by peer]
hectroid has joined #armbian
archetech has quit [Quit: Konversation terminated!]
archetech has joined #armbian
lyri has quit [Ping timeout: 268 seconds]
lyri has joined #armbian
junaid_ has joined #armbian
junaid_ has quit [Ping timeout: 255 seconds]
Suspect has quit [Remote host closed the connection]
Suspect has joined #armbian