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
chuangzhu has quit [Ping timeout: 480 seconds]
vagrantc has joined #linux-sunxi
szemzoa_ has joined #linux-sunxi
szemzoa has quit [Read error: Connection reset by peer]
apritzel has quit [Ping timeout: 480 seconds]
cnxsoft has joined #linux-sunxi
vagrantc has quit [Quit: leaving]
grming has quit [Quit: Konversation terminated!]
chuangzhu has joined #linux-sunxi
vagrantc has joined #linux-sunxi
cheetahp1xie has joined #linux-sunxi
cheetahpixie has quit [Ping timeout: 480 seconds]
junari_ has joined #linux-sunxi
junari__ has joined #linux-sunxi
junari__ has quit []
junari_ has quit [Ping timeout: 480 seconds]
vagrantc has quit [Quit: leaving]
apritzel has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has joined #linux-sunxi
warpme_____ has joined #linux-sunxi
macromorgan has quit [Read error: Connection reset by peer]
evgeny_boger has joined #linux-sunxi
mehdix has left #linux-sunxi [#linux-sunxi]
codekipper has joined #linux-sunxi
Daaanct12 has joined #linux-sunxi
junari has joined #linux-sunxi
codekipper has quit []
codekipper has joined #linux-sunxi
junari_ has joined #linux-sunxi
junari has quit [Ping timeout: 480 seconds]
junari__ has joined #linux-sunxi
Daaanct12 has quit [Remote host closed the connection]
junari_ has quit [Ping timeout: 480 seconds]
apritzel has joined #linux-sunxi
codekipper has quit []
codekipper has joined #linux-sunxi
junari_ has joined #linux-sunxi
junari__ has quit [Read error: Connection reset by peer]
junari__ has joined #linux-sunxi
junari_ has quit [Ping timeout: 480 seconds]
junari_ has joined #linux-sunxi
junari__ has quit [Read error: Connection reset by peer]
junari__ has joined #linux-sunxi
junari_ has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has quit [Ping timeout: 480 seconds]
evgeny_boger has quit [Ping timeout: 480 seconds]
evgeny_boger has joined #linux-sunxi
junari__ has quit [Read error: Connection reset by peer]
junari__ has joined #linux-sunxi
evgeny_boger has quit [Quit: evgeny_boger]
evgeny_boger has joined #linux-sunxi
junari__ has quit [Read error: Connection reset by peer]
evgeny_boger has quit [Remote host closed the connection]
junari__ has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
gsz has joined #linux-sunxi
<codekipper> :q
codekipper has quit [Quit: leaving]
junari__ has quit [Remote host closed the connection]
junari__ has joined #linux-sunxi
<apritzel> codekipper: E37: No write since last change (add ! to override)
bauen1 has quit [Ping timeout: 480 seconds]
codekipper has joined #linux-sunxi
vpeter has quit [Ping timeout: 480 seconds]
<codekipper> apritzel: I'm seeing the same issue as junari with my H313 board....kernel stops without warning where the sdcard should be accessed.
vpeter has joined #linux-sunxi
bauen1 has joined #linux-sunxi
<apritzel> codekipper: does your board have a PMIC? If not, does it work if you specify "vmmc-supply = <reg_3v3>;"
JohnDoe_71Rus has quit []
<codekipper> apritzel: the board has an AXP313A....I'll try with reg_3v3
<LordKalma> so, what's the upstreaming process for u-boot and buildroot?
<LordKalma> Our Xiegu project is now maybe mature enough for upstreaming
<LordKalma> apritzel, thank you so very much for the support. This was possible thanks to you: https://www.youtube.com/watch?v=pPYu432vAGM
<apritzel> I guess I should really create this wiki page on board upstreaming I have been thinking about for a while now ...
<apritzel> LordKalma: first step is to send your device tree to the Linux kernel repo
<apritzel> once that gets accepted there, send a defconfig file for U-Boot
<LordKalma> and when that's accepted, send one to buildroot haha
<apritzel> I don't know and frankly don't care about buildroot
<apritzel> I consider this an "embedded distraction"
<LordKalma> yeah, I remember you mentioning that
<LordKalma> it scripts builds for me, which is a plus for someone that can't build OSes :)
<apritzel> for the actual buildroot userland bits, you wouldn't need anything board specific
<LordKalma> I'd need to upstream the dts and the panel driver
<apritzel> yes, though I would split this up
<apritzel> do the DTS bits first, removing the panel bits for now
<apritzel> in parallel you can start the panel driver upstreaming
<apritzel> that would be the driver bits plus the devicetree binding
<LordKalma> thanks, I'll look into the process
<apritzel> does anyone have the schematic of a Mixtile Loft-Q board (A31)? The PDF link on the Mixtile webpage (http://mixtile.github.io/en/loftq/en-intro.html#hardware) is no longer working
<apritzel> (or even better: does anyone have the board and can do some tests with Ethernet?)
<apritzel> LordKalma: feel free to ping me in the evenings for the details of the process
<LordKalma> sure thanks
junari_ has joined #linux-sunxi
codekipper has quit [Ping timeout: 480 seconds]
<gamiee> apritzel: bit offtopic, but what is the reason behind buildroot being embedded distraction?
<apritzel> codekipper: do you (or anyone else) have a datasheet or any information for the AXP313a? Mangopi seems to use that as well, and I just found some sketchy hack here: https://bbs.aw-ol.com/topic/2054/mq-quad-h616-%E4%B8%BB%E7%BA%BF%E5%86%85%E6%A0%B8%E7%BC%96%E8%AF%91%E8%B0%83%E8%AF%95%E8%AE%B0%E5%BD%95-u-boot-kernel-buildroot
junari__ has quit [Ping timeout: 480 seconds]
<LordKalma> gamiee, the TLDR of the anti-buildroot crew is the (very resoable) argument that linux is the same everywhere. There is no "embedded linux". It's a board that runs an OS, why is it special?
<LordKalma> *reasonable
<apritzel> gamiee: yeah, I am not against the idea of building a small userland, but this mixing up of kernel, config, possibly firmware is just ... embedded
<LordKalma> hahaha at least buildroot is understandable
<LordKalma> I tried looking at yocto
<LordKalma> I get some of the advantages of yocto
<LordKalma> but it's just... wow
grming has joined #linux-sunxi
<gamiee> apritzel: ah makes sense, thanks for explanation
<gamiee> LordKalma: 100% Yocto was sooo complicated for me, so I decided to use buildroot instead, and I'm really satisfied with the results.
<gamiee> (this reminds me that buildroot still don't support crust :( )
<LordKalma> and yeah, buildroot is like *everything* shoved together
<LordKalma> very not unix-y
codekipper has joined #linux-sunxi
<LordKalma> current the buildroot we're using for working on the X6100 downloads a linaro toolchain, configures the kernel, u-boot, has the dts, configures a bunch of init.d scripts, adds the lcd panel driver as a kernel module, configures sshd
<LordKalma> so yeah...
<LordKalma> ah, and it creates an sdcard.img :)
<apritzel> in particular I am not a fan of "my board is special" idea: from a quick browse through the board/ directory it seems that all sunxi boards are actually *almost* the same in there
JohnDoe_71Rus has joined #linux-sunxi
<apritzel> LordKalma: that touches several gripes I have:
<apritzel> linaro toolchain: it's not 2014 anymore, proper distros provide readily packaged cross-compiler packages: apt-get install crossbuild-essential-arm64
<apritzel> configures the kernel: that sounds daunting, I wonder how it know how to do that. Distros spent a lot of time and effort in figuring that out
<LordKalma> buildroot can use system provided, can build gcc from source, or use a toolchain of your choice. Choosing linaro was an idea from my russian partner... didn't even know that was a thing.. I just let it build from source...
<LordKalma> you provide the kernel defconfig
<apritzel> the Linaro toolchain was a good thing to have back then, but it's mostly obsolete now
<LordKalma> he did say he has 15 years buildroot experience
<LordKalma> maybe that's why then
<apritzel> yeah, I'd say it shows ;-)
<LordKalma> well, it's faster than letting buildroot build gcc... so there's that
<LordKalma> (and yes, I could use OS provided toolchain)
<LordKalma> building gcc requires bootstraping so you have to build it twice, it's soooo boring
<apritzel> distro toolchains are properly integrated in your distro, allow painless userland compilation, and you can just install libraries like you would do natively
<LordKalma> yap
<apritzel> bootlin and kernel.org provide easy to use bare metal cross-compilers binaries, if you need the latest version
<apritzel> LordKalma: and just to be clear: you can of course use buildroot in whatever configuration, but the idea of "upstreaming board support to it" sounds wrong
<LordKalma> I know you're not "judging" in the gatekeeping sense
szemzoa_ has quit [Read error: Connection reset by peer]
<LordKalma> and I totally buy your arguments
<LordKalma> for me it's just a "I don't know anything, plz do it for me"
<apritzel> the selection of boards in there looks random to me, though there could be one sunxi-32 and one sunxi-64 board, if that helps people
szemzoa has joined #linux-sunxi
<apritzel> yeah, I see that point
<LordKalma> but yeah, it totally is a "do this for THIS board" thing
<LordKalma> which is too restrictive most of the time
<LordKalma> in that sense, yocto is better
<LordKalma> because you can just layer things
<LordKalma> but the layering model takes 3 years of training and documentation is thin
cnxsoft has quit []
junari__ has joined #linux-sunxi
macromorgan has joined #linux-sunxi
junari_ has quit [Ping timeout: 480 seconds]
ftg has joined #linux-sunxi
* maz thinks: who needs buildroot when you can have Debian... and leaves the room.
<LordKalma> well, people wrote armbian
<LordKalma> so I guess debian wasn't enough?
codekipper has quit [Ping timeout: 480 seconds]
* apritzel totally agrees with maz, but stays in the room ;-)
<gamiee> apritzel & mas : what is the alternative, when I need Kernel and userspace as smallest as possible?
<smaeul> apritzel: do you have a branch somewhere of accepted patches for your next U-Boot PR? I'd like to rebase my patches before I (re)send, since several of the Kconfig-related patches are going to conflict
junari__ has quit [Ping timeout: 480 seconds]
<apritzel> smaeul: I was planning on sending a fix PR this week, I will push to sunxi/master later today
<apritzel> once this is through, I wanted to start with next, with the DE2 and AXP patches, plus probably more of your pending ones already (but minus the Kconfig series)
<apritzel> gamiee: buildroot is probably the best for userland then, and then you probably need a tailored kernel config, which involves some work and testing
<gamiee> apritzel: yeah, that's what I am doing, but to other side, tailoring own kernel config is painful :D
<apritzel> gamiee: in my experience going down from defconfig (de-selecting other platforms & PCI & ACPI & stuff) does not bring you down too much
<apritzel> I had massive savings (3-4 MB arm64 kernel) when starting from tinyconfig, but you then have to select everything manually
<apritzel> gamiee: yes, it is painful, and I think people underestimate the efforts it requires
upnix has joined #linux-sunxi
<apritzel> my position is: if you tailor a config this way, then compiling a kernel and putting that into an SD image file are the least of your problems
<gamiee> apritzel: haha, you're absolutely right! I thought that I will have different problems... But tailoring Linux defconfig was the biggest one. It took me few days to find out that HDMI output doesn't work because CONFIG_FB (or other option) is missing in sunxi config.... :D
<apritzel> gamiee: yeah, that's the challenge. It's relatively straight-forward to get a serial only kernel boot into an initrd, but adding WiFi, Ethernet, and especially graphics is quite a task
<apritzel> gamiee: and other than experience or asking here in the channel I don't know of any general guides that would make this a mechanic or scriptable exercise
<apritzel> gamiee: one way could be to somewhat bisect between a working (but big) config and your tiny version
prefixcactus has joined #linux-sunxi
gsz has quit [Ping timeout: 480 seconds]
<gamiee> apritzel: this is exactly what I did. I expected that "sunxi_defconfig" (armhf) will be that "big config" where everything works. It was not. So I compared big Armbian sunxi armhf defconfig (there is nice tool for that in linux scripts), and I was going step by step, trying various options related to GPU (keywords like GPU, DRM, KMS, FB, etc.)
<gamiee> And yes, there is not much information about tailoring own config, so it was all about my improvising and ideas how to find what I'm missing :D
<apritzel> yeah, tailoring your config is by design nothing for the faint of heart. So you either bite the bullet and work through, or leave that to the professionals (distros, defconfig)
<apritzel> gamiee: feel free to list your findings and hints in some Wiki page, though, to give people some breadcrumbs to follow
<apritzel> gamiee: another tip: I use a separate build directory, and have the .config there under git revision control (so separate from the kernel source .git)
<apritzel> gamiee: that helps not only bisecting, but also to keep track of changes and being able to switch back to older kernel version with a equivalent config
<apritzel> and you can have several feature branches, so one for defconfig, one for tiny, one for "all sunxi"=y, and so on
gsz has joined #linux-sunxi
upnix has quit [Quit: Page closed]
sparrow_ has joined #linux-sunxi
sparrow_ has quit []
apritzel_ has joined #linux-sunxi
<gamiee> apritzel: yeah, planning to write up something, just I'm waiting for new wiki server to be live
<gamiee> That git .config bissecting is really nice trick, thanks for sharing!
<apritzel> gamiee: don't want to take away your excuse, but you can edit any time. The "old" server under the canonical URL is up and running, and all edits will be preserved. It's the new (minima) server that will lose its memory
bauen1 has quit [Ping timeout: 480 seconds]
rajkosto has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
apritzel_ has quit [Ping timeout: 480 seconds]
upnix has joined #linux-sunxi
<upnix> What is the best way to include console output in the wiki? I could link to a Gist, or just paste the fairly long file in the Wiki page. It doesn't look like txt file types are allowed to be uploaded.
grming has quit [Ping timeout: 480 seconds]
wens_ has joined #linux-sunxi
wens has quit [Read error: Connection reset by peer]
vagrantc has joined #linux-sunxi
JohnDoe_71Rus has quit []
apritzel_ has joined #linux-sunxi
Danct12 has quit [Quit: Quitting]
Danct12 has joined #linux-sunxi
upnix has quit [Remote host closed the connection]
apritzel_ has quit [Ping timeout: 480 seconds]
<LordKalma> Re: <apritzel> gamiee: yeah, that's the challenge. It's relatively straight-forward to get a serial only kernel boot into an initrd, but adding WiFi, Ethernet, and especially graphics is quite a task
<LordKalma> yeah in the x6100 buildroot when we managed the display driver, my russian colleague wanted to make wifi and bt work, plus usb-otg and since the board has usb-otg, make is a "generic" computer
<LordKalma> the image is now about 500mb
<LordKalma> this is the kernel config
ftg has quit []
grming has joined #linux-sunxi
apritzel_ has joined #linux-sunxi
apritzel_ has left #linux-sunxi [#linux-sunxi]
apritzel has joined #linux-sunxi
bauen1 has joined #linux-sunxi
vagrantc has quit [Quit: leaving]
vagrantc has joined #linux-sunxi
gsz has quit [Quit: leaving]
<apritzel> Upnix: that is a good question, indeed it would be very helpful to host bootlogs and embed them in the page, ideally with an option to hide (fold/collapse) them
<apritzel> upnix: and thanks for putting up the wiki page
grming has quit [Ping timeout: 480 seconds]
<apritzel> upnix: maybe something like this: https://en.wikipedia.org/wiki/User:APritzel/sandbox
vagrantc has quit [Quit: leaving]
<apritzel> upnix: <syntaxhighlight> doesn't work in our wiki, but <pre> works as well
warpme_____ has quit []
<apritzel> upnix: and this is how it looks like: https://linux-sunxi.org/index.php?title=X96QPro&diff=25201&oldid=25173