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
cnxsoft has joined #linux-sunxi
Benjojo has quit [Ping timeout: 480 seconds]
arnd has quit [Ping timeout: 480 seconds]
lvrp16 has quit [Ping timeout: 480 seconds]
narmstrong_ has joined #linux-sunxi
narmstrong has quit [Ping timeout: 480 seconds]
lvrp16 has joined #linux-sunxi
Benjojo has joined #linux-sunxi
arnd has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
vagrantc has quit [Quit: leaving]
cmeerw has joined #linux-sunxi
Danct12 has quit [Read error: Connection reset by peer]
Danct12 has joined #linux-sunxi
cnxsoft has quit [Remote host closed the connection]
cnxsoft has joined #linux-sunxi
ftg^ has joined #linux-sunxi
<ad__> hello :) on this wiki https://wiki.banana-pi.org/Banana_Pi_BPI-M2_ZERO there is at least one error aboout 40 pin connector signals
<ad__> anyone here knows who should be contacted to fix it ?
<mps> how to enable lima driver for xorg, anyone have hint or url where can read about it
<gamiee> mps: it should work out of the box, but that depends on various things. also I guess #lima channel would be better for this question
<mps> gamiee: it should but it doesn't in my case
<gamiee> firstly, does your kernel have lima module enabled? Secondly, does your mesa have lima enabled?
<mps> gamiee: thanks, I will continue with trying
<mps> both have
<gamiee> in any case, do you use buildroot?
<mps> no, I build kernel on alpine linux
<gamiee> https://gitlab.freedesktop.org/mesa/mesa/-/issues/4861 try to read this, I had this issue few months ago
<mps> reading....
cnxsoft has quit []
warpme_ has joined #linux-sunxi
ptf has quit [Remote host closed the connection]
<mps> gamiee: solved problem, xorg works on olimex teres with alpine linux
<gamiee> @mps great! Where been a problem?
<mps> gamiee: had to install xf86-video-fbdev. heh so simple but I forgot :)
<mps> but still need to find how to run X with lima driver
<mps> iirc need to set vga_switch in kernel, I run panfrost quite fine and without any tweak on another device
<smaeul> ad__: it's a wiki! so you can fix the error yourself; or if you tell us what the error is, anyone else here can fix it
cnxsoft has joined #linux-sunxi
cnxsoft has quit []
Mangy_Dog has joined #linux-sunxi
<anarsoul> mps: you need xf86-video-modesetting, not xf86-video-fbdev
<mps> anarsoul: I have it installed already
<mps> but with it X don't start
<mps> I don't know why it want fbdev
<anarsoul> so debug it? you won't get lima running with xf86-video-fbdev
<mps> will do for sure, but enough for today, I have to move few hours out of screen
<ad__> smaeul, i oanly see a log-in, not a register. Anyway, issue is pwm i on PA5, not PA6
<smaeul> ad__: "create account" in the top corner?
<smaeul> ad__: oh, I missed that you were looking at the BPi wiki, not the linux-sunxi wiki
<smaeul> sorry, I can't help you with that
<ad__> yes no problem, that's likely another story
<MoeIcenowy> mps: I think you need to check whether your device's device tree has proper display enabled with sun4i-drm
<MoeIcenowy> because Lima can never work with simplefb (it needs some advanced feature of DRM)
<MoeIcenowy> and historically we rely on simplefb to provide display on sunxi (before sun4i-drm is developed)
<MoeIcenowy> and when DT is not configured with your display but U-Boot is configured so, simplefb will still be used
<mps> MoeIcenowy: can't find any drm reference in arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts
<mps> in 5.14.10 kernel
<mps> actually 'grep drm arch/arm64/boot/dts/allwinner/*' doesn't show anything
<anarsoul> it's there for teres, likely you don't have some driver for complete display pipeline
<anarsoul> can you paste your dmesg somewhere?
<mps> anarsoul: https://tpaste.us/eV7E
<anarsoul> yeah, it's using simplefb
<anarsoul> compare it with yours and enable missing sunxi drivers
<anarsoul> make sure you also have anx6345 driver enabled
<anarsoul> as well as PANEL_SIMPLE
<mps> aha, thanks
<anarsoul> and CONFIG_DRM_PANEL_FEIYANG_FY07024DI26A30D
<mps> right now I'm trying to configure and build new kernel
<anarsoul> however panel can be different for teres
<anarsoul> I'm not sure if anyone added it there
<anarsoul> well, check teres dts on whether it declares a panel
<mps> anarsoul: no referent to panel in teres dts
<mps> anarsoul: that is what I got with just updated kernel https://tpaste.us/OrBo
<anarsoul> can you show your dmesg?
<anarsoul> try removing xf86-video-fbdev?
<anarsoul> looks like it switched to sun4i-drm from simplefb
<mps> I tried but then X doesn't start
<anarsoul> try sway?
<anarsoul> or weston
<mps> hm, I don't have experience with them
<mps> but I could try, not sure will I succeed
<anarsoul> just install it and start it
<anarsoul> sway is very similar to i3
<mps> I need only to run 'sway' from console?
<anarsoul> yes
<mps> ok, will do
<anarsoul> or weston if you don't like tiled wm :)
<mps> I'm long time awesome wm user ;)
<mps> but sway says it cannot start DRM session
JohnDoe_71Rus has quit []
<anarsoul> well, grab a working distro for you laptop, then try replicating configuration in alpine
<mps> if there is one I would
<mps> maybe newest armbian
<mps> anarsoul: thank you for helping me to config kernel and rest
<anarsoul> np
<anarsoul> manjaro works fine for me on my original pinebook
<anarsoul> it has pretty similar hw to teres-i
<mps> is manjaro debian or archlinux based
<jakllsch> istr it's based on arch
<mps> thanks. looked at it but don't see teres is supported
vagrantc has joined #linux-sunxi
Mangy_Dog has quit [Ping timeout: 480 seconds]
Mangy_Dog has joined #linux-sunxi
ftg^ has quit [Ping timeout: 480 seconds]
cmeerw has quit [Ping timeout: 480 seconds]
apritzel has joined #linux-sunxi
<apritzel> smaeul: if it's just about rebasing: I did that already, fixing up the conflicts mechanically
<apritzel> smaeul: I was just wondering if there are hidden issues (I just compile tested), I will try to do some actual testing tomorrow
<smaeul> with v2?
<apritzel> ah, sorry, just found v2 in my inbox
<smaeul> apritzel: well, like I mention in the comment on v2 patch 4, some boards got i2c disabled in SPL due to some other recent commits
<smaeul> and this new patch fixes a compile error caused by that
<smaeul> either we need to select SPL_I2C, or make some mass defconfig change
<smaeul> also, I would like to rebase on top of your branch soon (with or without the I2C series) so I can send more patches :)
<smaeul> fwiw I ran buildman on the v2 series, and there was one set of warnings for an A80 board without a PMIC... so maybe selecting SPL_I2C is the wrong thing to do. but I'm not familiar with the tools for adding SPL_I2C=y to all of the board defconfigs except that one
<apritzel> smaeul: so who would need SPL_I2C? Just some boards? Or (almost) all boards with a certain SoC?
<smaeul> any board using i2c in SPL
<smaeul> so anything with a PMIC and not P2WI or RSB
<apritzel> any chance "default y if ..." in common/spl/Kconfig would help?
<smaeul> you mean imply SPL_I2C in arch/arm/Kconfig? ;) probably. I will make a list of affected boards
<apritzel> no, I meant "default y if ARCH_SUNXI & ..." in the "config SPL_I2C" section. We do this already in some other places
<smaeul> yes, I was poking fun at the (apparently) religious issue of "config FOO imply BAR" versus "config BAR default y if FOO"
<apritzel> well, I don't really care, but I know that "default y ..." works and was preferred at some point (by Simon, I think?)
<apritzel> it does not look right to taint generic features with platforms specific defaults, but the alternatives are worse, AFAIK