ChanServ changed the topic of #linux-sunxi to: Allwinner/sunxi development - Did you try looking at our wiki? https://linux-sunxi.org - Don't ask to ask. Just ask and wait for an answer! - This channel is logged at https://oftc.irclog.whitequark.org/linux-sunxi
exkcmoeadmin[m] has quit []
apritzel has quit [Ping timeout: 480 seconds]
vagrantc has quit [Quit: leaving]
flyback has quit [Ping timeout: 480 seconds]
exkc has quit []
flyback has joined #linux-sunxi
<macromorgan> okay cool. I just had some folks ask if I could make an image of a debian bookworm system for them (it's what I use for dev work) and I wanted to start with all the correct patches. I'm still actually using an A-TF branch that can't control the PMIC currently...
wasutton3 has joined #linux-sunxi
<tokyovigilante> apritzel: agreed, they are more or less arrived-at by trial and error currently, and probably not quite right given the odd detection failure at bootup.
Schimsalabim has joined #linux-sunxi
montjoie_ has quit [Ping timeout: 480 seconds]
wasutton3 has quit [Ping timeout: 480 seconds]
wasutton3 has joined #linux-sunxi
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
gsz has joined #linux-sunxi
hexdump01 has joined #linux-sunxi
hexdump0815 has quit [Ping timeout: 480 seconds]
montjoie has joined #linux-sunxi
gsz has quit [Ping timeout: 480 seconds]
wasutton3 has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has joined #linux-sunxi
wasutton3 has joined #linux-sunxi
wasutton- has joined #linux-sunxi
wasutton3 has quit [Ping timeout: 480 seconds]
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
ungeskriptet has quit [Read error: Connection reset by peer]
ungeskriptet has joined #linux-sunxi
apritzel has joined #linux-sunxi
smaeul has quit [Remote host closed the connection]
smaeul has joined #linux-sunxi
wasutton3 has joined #linux-sunxi
wasutton| has joined #linux-sunxi
wasutton- has quit [Ping timeout: 480 seconds]
wasutton3 has quit [Ping timeout: 480 seconds]
wasutton3 has joined #linux-sunxi
wasutton- has joined #linux-sunxi
wasutton| has quit [Ping timeout: 480 seconds]
apritzel has quit [Ping timeout: 480 seconds]
wasutton3 has quit [Ping timeout: 480 seconds]
<tokyovigilante> outstanding, got the kernel booting over tftp
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
<tokyovigilante> Do I still need initramfs support if I'm building a minimal kernel without modules? have disabled initramfs and loadable module support so the tftp-ed image is standalone, but my wifi/bt firmware won't load, even with the drivers built-in
<tokyovigilante> ah, seems a driver can't load firmware from filesystem if the filesystem's not mounted yet...
apritzel has joined #linux-sunxi
<tokyovigilante> well, that's the evening... got a fully-scripted tftp-boot going though with a minimal kernel config, so that's ideal. Will get into the u-boot effort next. Shall I just throw the DRAM patches out first for comment? That will be the most controversial I think, as they're all basically either magic numbers or guesses
<apritzel> tokyovigilante: please try to avoid too custom or minimal kernels, that just limits what people can do with that
<apritzel> actually people should not bake their own kernels, rather leaving that to the distributions
<apritzel> if you *need* a custom kernel, base that on something public, like a distro kernel, and use that config
<apritzel> or use mainline and defconfig, and just *add* the options you need
<Jookia> yeah, make a distro kernel and add patches to it if you can
<tokyovigilante> Oh this is literally just to make it easier for me to write the sound driver, I'm not intending this for any distribution
<tokyovigilante> just neat to have it all working together
<tokyovigilante> Ideally we will just get everything mainlined and people can just run a distribution or buildroot away
<Jookia> ah ok
<tokyovigilante> plus I am learning everything I never wanted to know (or even knew existed) about the kernel
<Jookia> Were you in to embedded Linux before this, or are you now down the rabbit hole? :)
<tokyovigilante> have got my EDR cycle down to about a minute and one command (and one USB unplug-replug), which makes it pretty painless
<tokyovigilante> no not at all
<apritzel> tokyovigilante: if in doubt, just leave an option in. Otherwise this just comes and bites you later, when you suddenly need a feature or want to try something
<tokyovigilante> apritzel: sure. this is just a good experiment. now I know how to do it I can roll back to the full config
<apritzel> tokyovigilante: for development I'd just go with defconfig plus the required sunxi drivers compiled in
<apritzel> this simplifies updating the config over various kernel versions
<apritzel> I have my .config under git version control (in a separate build directory), so I can switch between kernel versions, and also you can have branches for things like "tiny config"
<apritzel> this also prevents you losing a once working config accidentally
rsglobal[m] has quit []
<tokyovigilante> sounds good, will give it a go
<tokyovigilante> the more I think about it, am I gaining anything using the USB gadget over FEL-boot and just uploading the kernel?
<tokyovigilante> *gadget ethernet I mean
<apritzel> the Ethernet gadget is much faster. But if you do FEL booting anyway, it's actually simpler to upload all in one go, via FEL
<tokyovigilante> seem to have so much flux in both u-boot and kernel, makes sense to have both over FEL and just use the SD card image for userspace
<apritzel> a 20MB kernel (Image.gz) takes about 80 seconds via FEL, with gadget Ethernet it's more like 5 seconds
<tokyovigilante> although either way I'd need to build an initramfs for modules and firmware I assume?
<tokyovigilante> ah yup
<tokyovigilante> ok, will stick with my frankensetup for now then
<apritzel> for kernel development I'd go with either userland on a proper SD partition, or a fixed initramfs, on the SD card as well. The latter is better if you crash the kernel often
<apritzel> not sure how many userland tools you need for audio testing, might be easier to use a proper distro for that
<tokyovigilante> still using my fedora image with the ALSA user tools and pipewire
<apritzel> for my basic kernel testing I have a ~3 MB initrd, with the basic tools I need, that's quick to load, even via FEL
<tokyovigilante> am just testing out the clock calibration patch from the list also, and it seems the H616 structs aren't actually in the mainline kernel?
<tokyovigilante> maybe in clk-next actually
KNULLNoNeAll[m] has quit []
<tokyovigilante> hmm, in fact it seems https://lore.kernel.org/linux-rtc/20210802003952.19942-8-andre.przywara@arm.com/ never actually got merged
<apritzel> it somewhat did, but not in this form
<apritzel> don't remember the details, but I think we figured the actual RTC *clock* bits are the same as for the H6, hence don't need a separate structure?
<apritzel> ah no, scratch that, commit 8a93720329d4d2 gives a hint: the H616 RTC clock parts are now in drivers/clk/sunxi-ng/ccu-sun6i-rtc.c. Check the git log for that file ...
<apritzel> tokyovigilante: but good find, that means that this patch is based on some bogus tree?
<tokyovigilante> yeah by the looks
<tokyovigilante> was just digging through the archives and see there was a v3 then v4 patch (yours) which split up the implementation
<tokyovigilante> sorry a v9 then v10
<tokyovigilante> so in theory the H6 changes should be enough for the H616
<apritzel> there was a revert from jernej a while ago: initially both the H6 and H616 RTC clocks were handled in the new driver, but the H6 got moved back: 60d9f050da63b71
<tokyovigilante> that revert doesn't seem to touch the h616 struct though, it looks like it never made it in.
<tokyovigilante> the rest of the patch applies and the h616 is listed as compatible, so will give it a quick test and reply to Alois
<tokyovigilante> interested to see if it helps with the bluetooth out-of-order packet issues I've been seeing
<apritzel> tokyovigilante: so thanks for the heads up, replying as well
<apritzel> but I don't think this patch will work in this form, the H616 *clock* is only handled in the new driver
<tokyovigilante> np, ah right. I will leave you to respond then
<apritzel> (note the confusing subtleties between the clock parts and the RTC parts: there is no CLK_OF_DECLARE_DRIVER line for the H616 in rtc-sun6i.c)
<apritzel> please feel free to respond anyway, I will CC: you on my response anyways
<tokyovigilante> have done. So you don't think just enabling the bits is sufficient?
<apritzel> the patch would need to be ported to ccu-sun6i-rtc.c. Conceptually it's still the same, but the structs are different
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
dsimic is now known as Guest3012
dsimic has joined #linux-sunxi
Guest3012 has quit [Ping timeout: 480 seconds]
wasutton- has quit [Ping timeout: 480 seconds]
wasutton3 has joined #linux-sunxi
wasutton3 has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has quit [Quit: KVIrc 5.2.0 Quasar http://www.kvirc.net/]
Schimsalabim has quit [Read error: No route to host]
Schimsalabim has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
mripard has quit [Quit: mripard]
JohnDoe_71Rus has joined #linux-sunxi
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
asriel has quit [Quit: Don't drink the water. They put something in it to make you forget.]
Danct12 has quit [Quit: ZNC 1.9.0 - https://znc.in]
Danct12 has joined #linux-sunxi
vagrantc has joined #linux-sunxi
wasutton3 has joined #linux-sunxi
sh1 has joined #linux-sunxi
gsz has joined #linux-sunxi
<macromorgan> tokyovigilante: are you still booting from FEL? I'm using your branch for U-boot and think I'm back to square 1 with U-Boot.
<Raqbit> I just spent a long time trying to figure out why TF-A was only partially compiling (and not giving a build artifact) - turns out it doesn't compile bl31 if you have the $BL31 env variable set
gsz has quit [Ping timeout: 480 seconds]
ftg has joined #linux-sunxi
JohnDoe_71Rus has quit [Quit: KVIrc 5.2.2 Quasar http://www.kvirc.net/]
<Jookia> that kind of makes sense
<tokyovigilante> macromorgan: the rg35xx-upstream branch i posted a day or two ago should work, its what i'm using currently. also works fine written to a card, although i need to formally test apritzel's 256k offset patch
<tokyovigilante> what trouble are having?
<tokyovigilante> Raqbit: that story sums up most of my devwlopment efforts ;) I see my first kernel patch has had its first correction...
<tokyovigilante> exit
<macromorgan> what offset do you write it to (without the 256k patch)?
<macromorgan> that could be my issue
<macromorgan> I've been using 8k
<macromorgan> I honestly don't remember how I got it to work last time, I think my offsets were off maybe
<Raqbit> tokyovigilante: With the rg35xx-upstream u-boot branch & the TF-A PMIC patch sets I get as far as I did previously - nothing from the UART after "Trying to boot from FEL", and no fel communication is possible after
<macromorgan> dammit, I think this is the memory issue that I had and fixed before, but since forgot (and accidentally deleted my defconfig too)
mripard1 has quit []
<macromorgan> nope... back to square one where a `make mrproper` and then a `make anbernic_rg35xxh_defconfig` doesn't get me booting. Darn.
<macromorgan> will have to troubleshoot more
ungeskriptet has quit [Read error: Connection reset by peer]
Hypfer is now known as Guest3169
Hypfer has joined #linux-sunxi
ungeskriptet has joined #linux-sunxi
Guest3169 has quit [Ping timeout: 480 seconds]
paulk has quit [Ping timeout: 480 seconds]
electricworry_ has joined #linux-sunxi
electricworry has quit [Ping timeout: 480 seconds]