rellla changed the topic of #linux-sunxi to: Allwinner/sunxi /development discussion - did you try looking at our wiki? https://linux-sunxi.org - Don't ask to ask. Just ask and wait! - https://github.com/linux-sunxi/ - Logs at http://irclog.whitequark.org/linux-sunxi - *only registered users can talk*
<catphish> then perhaps i'm looking for the wrong thing, i'm looking for the code that drives the most basic display functions of the A20
<gnarface> i'm not sure if you're looking for the wrong thing or if you're just not looking for enough things
<catphish> ah, i think what i want is probably in here https://github.com/linux-sunxi/linux-sunxi/tree/sunxi-3.4/drivers/video/sunxi
<gnarface> hmmm, maybe yea.
<gnarface> but there's also some compatibility barrier between < 3.11 and > 4.x
<gnarface> so make sure you're not trying to use 3.x stuff on a 4.x kernel too
popolon has quit [Quit: WeeChat 2.3]
<gnarface> and you may also need some... dtb thing?
<catphish> i'm actully just looking for information, interested in writing my own low level (non linux) hello world
<gnarface> oh
<gnarface> are you familiar with u-boot?
<catphish> not particularly, no
<gnarface> ok
<gnarface> you might want to look in there first if you're trying something non-linux
<catphish> though i'm told it provides some basic IO APIs that could help me
<gnarface> yea basically (my understanding is very limited) imagine an ARM boot loader that's based on a stripped-down linux kernel fork
<gnarface> it has to be able to initialize all the hardware so people have built in almost full OS capabilities directly.
<catphish> i'm actually using uboot to boot my own code, but don't know much about it, i just let it load my code then i'm on my own :)
<gnarface> i think the example code to activate your devices probably would be easier to find in there
<catphish> that sounds sensible, i'll have a look, perhaps it'll be a little simpler
wasutton3_mobile has joined #linux-sunxi
<gnarface> one other complication is that there isn't just one u-boot. there's actually several competing u-boot forks that aren't all for the same hardware or kernel versions
<catphish> http://git.denx.de/?p=u-boot.git;a=blob;f=drivers/video/sunxi/sunxi_display.c;h=6dd9bec351fb4525b357db4d75a2c1ed49db7ed5;hb=HEAD
<gnarface> *and* of those forks, much of the new ARM hardware on the market only works with 3rd party patches
<catphish> that may be what i want :)
<gnarface> hmm. maybe yes
<catphish> it's much easier to use uboot + tftp to avoid constant switching of sd cards while testing :)
<gnarface> i bet
<catphish> so far all i have it code that boots and prints stuff to the serial port
<catphish> but hoping i can get the display working, all just for fun
juri_ has quit [Remote host closed the connection]
<gnarface> yea i'm sorry i don't know enough about the A20 to know if you need a 3rd party patch for that or just a different u-boot fork
<gnarface> and in getting the answer, it might matter which kernel you plan on running
<gnarface> or i guess, since you're planning on running neither, which ... kernel API versions you're planning on mimicking?
<gnarface> there are people in here who do know though
<gnarface> it's hard to get their attention
<gnarface> anarsoul helped me with my pinebook, but it needed extra patches for the LCD panel itself
<gnarface> i don't think that'll be a concern with your A20
<gnarface> but again, i could be wrong
\\Mr-C\\ has joined #linux-sunxi
\\Mr_C\\ has quit [Ping timeout: 250 seconds]
<catphish> thanks, i'll have a read of the uboot implementation, see if that has what i need
return0e has quit [Ping timeout: 244 seconds]
BenG83_ has quit [Remote host closed the connection]
return0e has joined #linux-sunxi
tllim has quit [Read error: Connection reset by peer]
Andy-D has joined #linux-sunxi
Andy-D has quit [Remote host closed the connection]
wasutton3_mobile has quit [Ping timeout: 250 seconds]
BenG83 has joined #linux-sunxi
\\Mr-C\\ has quit [Quit: (Read error: Connection reset by beer)]
\\Mr_C\\ has joined #linux-sunxi
vagrantc has quit [Quit: leaving]
catphish has quit [Quit: Leaving]
juri_ has joined #linux-sunxi
\\Mr_C\\ has quit [Quit: (Read error: Connection reset by beer)]
\\Mr_C\\ has joined #linux-sunxi
noblock has quit [Remote host closed the connection]
anarsoul|2 has quit [Ping timeout: 246 seconds]
lurchi_ is now known as lurchi__
egbert has quit [Ping timeout: 244 seconds]
return0e has quit [Read error: Connection reset by peer]
return0e has joined #linux-sunxi
victhor has quit [Remote host closed the connection]
Gerwin_J has joined #linux-sunxi
Gerwin_J has quit [Client Quit]
Gerwin_J has joined #linux-sunxi
LargePrime has quit [Quit: Leaving]
dddddd has quit [Remote host closed the connection]
kaspter has quit [Quit: kaspter]
egbert has joined #linux-sunxi
merlin1991 has quit [Remote host closed the connection]
kelvan has quit [Remote host closed the connection]
merlin1991 has joined #linux-sunxi
kelvan has joined #linux-sunxi
leviathanch has joined #linux-sunxi
foxx_ has joined #linux-sunxi
IgorPec has joined #linux-sunxi
lurchi_ has joined #linux-sunxi
lurchi__ has quit [Ping timeout: 250 seconds]
megi has quit [Ping timeout: 250 seconds]
reinforce has joined #linux-sunxi
lkm has joined #linux-sunxi
beeble has joined #linux-sunxi
X-Scale has quit [Read error: Connection reset by peer]
foxx_ has quit [Ping timeout: 250 seconds]
_whitelogger has joined #linux-sunxi
nuuuciano_ has joined #linux-sunxi
nuuuciano has quit [Ping timeout: 250 seconds]
clemens3 has joined #linux-sunxi
msimpson has joined #linux-sunxi
maz has joined #linux-sunxi
NeuroScr has quit [Ping timeout: 250 seconds]
NeuroScr has joined #linux-sunxi
afaerber has joined #linux-sunxi
florianH has joined #linux-sunxi
kaspter has joined #linux-sunxi
raspo666 has joined #linux-sunxi
__patrol__ has joined #linux-sunxi
__patrol__ has quit [Client Quit]
BenG83 has quit [Ping timeout: 246 seconds]
foxx_ has joined #linux-sunxi
matthias_bgg has joined #linux-sunxi
Xalius_Ph has joined #linux-sunxi
chewitt has quit [Read error: Connection reset by peer]
chewitt has joined #linux-sunxi
yann has quit [Ping timeout: 250 seconds]
ganbold has quit [Quit: Leaving]
ganbold has joined #linux-sunxi
ganbold has quit [Remote host closed the connection]
ganbold has joined #linux-sunxi
yangxuan has joined #linux-sunxi
agraf has quit [Ping timeout: 240 seconds]
yangxuan has quit [Quit: Leaving]
yangxuan has joined #linux-sunxi
dddddd has joined #linux-sunxi
foudubassan has joined #linux-sunxi
victhor has joined #linux-sunxi
victhor has quit [Ping timeout: 252 seconds]
victhor has joined #linux-sunxi
cryptic has joined #linux-sunxi
yann has joined #linux-sunxi
agraf has joined #linux-sunxi
cryptic has quit [Remote host closed the connection]
<MoeIcenowy> succeeded to run slightly hack armhf glmark2-es2-drm (one line hack) on H6 with Mali-T720 blob
<MoeIcenowy> ;-)
<MoeIcenowy> and not-hacked weston works
foudubassan has quit [Ping timeout: 245 seconds]
Andy-D has joined #linux-sunxi
megi has joined #linux-sunxi
njoseph has joined #linux-sunxi
<njoseph> Can someone explain to me how the kernels in Armbian, Sunxi and Linux are related? Like if they are forks of each other or independent.
<rellla> armbian uses legacy and mainline kernels and puts patches on top of them.
<rellla> for example, depending on your armbian build config it chooses the appropriate src for legacy (https://github.com/armbian/build/blob/master/config/sources/sun7i.conf#L8) or mainline, patches the src with https://github.com/armbian/build/tree/master/patch/kernel/sun7i-default and uses a defined .config file.
<rellla> for details you may better switch over to #armbian
<njoseph> Thanks.
<njoseph> Can you also answer how sunxi and torvalds/linux are related? I can't find anything on the wiki about this. I'm also confused about where mainline kernel comes from, whether it's sunxi or linux?
<raspo666> they're not.
<raspo666> kernel comes from kernel.org
f0xx has joined #linux-sunxi
foxx_ has quit [Ping timeout: 244 seconds]
<rellla> njoseph: with "sunxi" you mean the linux kernel, which is/was shipped by allwinner and there vendors. we call it "legacy" kernel. it is based on the 3.4 or 3.10 linux version and some newer probably.
f0xx has quit [Ping timeout: 246 seconds]
<njoseph> My use case is to use an A20 board as a web server. So I should probably go for the mainline kernel as indicated in the warning message on this page. https://linux-sunxi.org/Linux
f0xx has joined #linux-sunxi
<montjoie> always use the mainline!
<montjoie> how do you trust kernel from people doing RSA in CBC mode
<rellla> njoseph: http://linux-sunxi.org/Linux_mainlining_effort A20 is nearly completely supported. always use mainline!
<rellla> the legacy kernel is just for history imho.
<rellla> to finish my statement above, the legacy kernels include dirty drivers and hacks which where added by allwinner and are not maintaineable. they weren't updated and should not be used except one has a really really good reason.
<rellla> moreover they will not be supported here...
<njoseph> Thanks for the explanation.
<njoseph> Olimex recently changed the ethernet controller on OlinuXino Lime2 from rev J onwards. The mainline kernel no longer works. That's why I'm looking for other options.
<njoseph> The Armbian fork of the kernel works but I don't know if the OS has any non-free blobs. I found non-free and contrib enabled in its apt sources.list
<njoseph> It might negate the benefit of using an OSHW board like the Lime 2.
<diego71> njoseph: from the olimex forum, looks like you need to patch u-boot
yann has quit [Ping timeout: 240 seconds]
<diego71> (probably it's all you need to make it works with the mainline kernel)
<diego71> also, it should works with a 100Mbit connection (as a workaround, at least)
<njoseph> It seems like the person in the forum is using a patched kernel from Armbian with one custom setting for u-boot - CONFIG_GMAC_TX_DELAY=4
raspo666 has quit [Quit: Leaving]
<diego71> njoseph: I think it's made the test with only the patched u-boot (but it's not very clear, I can be wrong)
<diego71> /it's/he/
alexxey has joined #linux-sunxi
Gerwin_J has quit [Quit: Gerwin_J]
nuuuciano_ has quit [Ping timeout: 268 seconds]
netlynx has joined #linux-sunxi
tllim has joined #linux-sunxi
lurchi_ is now known as lurchi__
foudubassan has joined #linux-sunxi
lkm has quit [Ping timeout: 246 seconds]
yann has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
tllim has quit [Quit: Leaving]
fkluknav_ has joined #linux-sunxi
fkluknav has quit [Read error: Connection reset by peer]
yann has quit [Ping timeout: 246 seconds]
return0e has quit []
f0xx has quit [Ping timeout: 240 seconds]
xes_ is now known as xes
scelestic has quit [Remote host closed the connection]
yann has joined #linux-sunxi
reinforce has quit [Quit: Leaving.]
yann has quit [Ping timeout: 250 seconds]
AneoX_ has joined #linux-sunxi
AneoX has quit [Ping timeout: 250 seconds]
IgorPec has quit [Ping timeout: 250 seconds]
wasutton3_mobile has joined #linux-sunxi
f0xx has joined #linux-sunxi
xes has quit [Quit: bye..]
yann|work has joined #linux-sunxi
matthias_bgg has quit [Remote host closed the connection]
xes has joined #linux-sunxi
matthias_bgg has joined #linux-sunxi
yann|work has quit [Ping timeout: 250 seconds]
xes has quit [Quit: bye..]
leviathanch has quit [Ping timeout: 250 seconds]
xes has joined #linux-sunxi
maz has quit [Ping timeout: 250 seconds]
leviathanch has joined #linux-sunxi
fkluknav_ is now known as fkluknav
IgorPec has joined #linux-sunxi
Xalius_Ph has quit [Ping timeout: 250 seconds]
yann|work has joined #linux-sunxi
clemens3 has quit [Remote host closed the connection]
<freemangordon> Hi, is anybody aware of some USB-OTG not working regression in linux 4.19?
<freemangordon> MoeIcenowy: ^^^ ?
msimpson has quit [Read error: Connection reset by peer]
BenG83 has joined #linux-sunxi
Xalius_Ph has joined #linux-sunxi
Xalius_Ph has quit [Client Quit]
foudubassan has quit [Ping timeout: 268 seconds]
yann|work has quit [Ping timeout: 244 seconds]
yangxuan has quit [Remote host closed the connection]
yangxuan has joined #linux-sunxi
yangxuan has quit [Ping timeout: 246 seconds]
maz has joined #linux-sunxi
aalm has quit [Ping timeout: 246 seconds]
matthias_bgg has quit [Quit: Leaving]
foudubassan has joined #linux-sunxi
wasutton3_mobile has quit [Ping timeout: 240 seconds]
lkm has joined #linux-sunxi
wasutton3_mobile has joined #linux-sunxi
alexxey has quit [Ping timeout: 240 seconds]
maz has quit [Ping timeout: 246 seconds]
anarsoul|2 has joined #linux-sunxi
m4ssi has quit [Remote host closed the connection]
random_yanek has quit [Ping timeout: 245 seconds]
wasutton3_mobile has quit [Ping timeout: 268 seconds]
foudubassan has quit [Ping timeout: 250 seconds]
return0e has joined #linux-sunxi
arjanvanvught has joined #linux-sunxi
random_yanek has joined #linux-sunxi
nuuuciano has joined #linux-sunxi
quark_ has quit [Quit: Reconnecting]
vagrantc has joined #linux-sunxi
quark_ has joined #linux-sunxi
ganbold has quit [Quit: Leaving]
ganbold has joined #linux-sunxi
netlynx has quit [Quit: Ex-Chat]
maz has joined #linux-sunxi
arjanvanvught has quit []
popolon has joined #linux-sunxi
florianH has quit [Quit: Connection closed for inactivity]
JohnDoe_71Rus has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
raspo666 has joined #linux-sunxi
chewitt has quit [Max SendQ exceeded]
chewitt has joined #linux-sunxi
catphish has joined #linux-sunxi
tllim has joined #linux-sunxi
BenG83 has quit [Remote host closed the connection]
nuuuciano has quit [Ping timeout: 250 seconds]
BenG83 has joined #linux-sunxi
leviathanch has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
iamfrankenstein has joined #linux-sunxi
aalm has joined #linux-sunxi
<willmore> Oh, hey, this is several kinds of awesome: https://bootlin.com/blog/bootlin-spi-nand-support-uboot/
<raspo666> willmore, not on a R40 :-(, no spi nodes...
<willmore> Can't fix hardware with software, raspo666. :)
<willmore> Well, you can't 'add' it at least.
<raspo666> willmore, they are not in the dts, I've tried to add one, but the kernel drops it's pants, the r/v40 actually tries to boot from spi, but SPL get's stuck
nuuuciano has joined #linux-sunxi
<willmore> Ahh, so it has SPI, but you can't get the kernel to understand it? Or is uboot failing accessing the SPI?
<raspo666> willmore, both, u-boot fails to compile anything useful for sun8i spi and it' not defined in the dts, so the kernel can't find any spi0/1....
<raspo666> willmore, there's only a sun4 spi in drivers/spi
tllim has quit [Quit: Leaving]
banned-why has joined #linux-sunxi
<banned-why> hello
<banned-why> good news I found a script.bin fully compatible with my device.
<banned-why> sound and display working correctly.
<banned-why> now it is running android 4.0.4.
<banned-why> I decided to give a try on compiling linux for it, however didn't manage to be successful doing this task
<banned-why> the wiki doesn't mention anything. only that in linaro the recommended version of gcc is the 4.9.4
<banned-why> is it a requirement for other systems too?
<banned-why> I'm talking about the toolchain.
f0xx has quit [Ping timeout: 240 seconds]
iamfrankenstein has quit [Quit: iamfrankenstein]
lurchi__ is now known as lurchi_
<BenG83> banned-why, I would start with bin2fex script.bin script.fex
<BenG83> so you can see the configuration that works
<banned-why> BenG83: after this, whats the next step?
<BenG83> build mainline u-boot and a kernel
<BenG83> do you have a serial console now?
<banned-why> I had the idea to compile the kernel and start sorting out which dts is the one that works correctly or which changes should I do in order to get one working for my device
<banned-why> BenG83: no.
<banned-why> it is necessary for testing?
<banned-why> I'm completely a newbie on this thing.
<BenG83> it's really hard to debug anything there without a serial console
<BenG83> you could try to fly blind and get HDMI working of course
<banned-why> thats what I had in mind
<banned-why> is it a dumb move? It will take some days to get access to the serial console as I don't have the necessary hardware..
<banned-why> BenG83: note that I have hdmi working under android and the lcd panel too.
<BenG83> build u-boot, write it to a sdcard and see what happens
<banned-why> mainline u-boot?
<BenG83> yeah
<catphish> would anyone be willing to briefly talk me through at a low level how the sunxi display works, and what steps are required to enable the output and write some pixels to the display? i've tried reading the drivers, but i'm not terribly clear about the process, if not i'll read the code a few more times
<catphish> sadly the manuals just seem to have lists of registers with not much in the way of explanation
IgorPec has quit [Ping timeout: 246 seconds]
yangxuan has joined #linux-sunxi
_whitelogger has joined #linux-sunxi
raspo666 has quit [Quit: Leaving]
mpmc has quit [Quit: ZNC 1.6.5+deb1+deb9u1 - http://znc.in]
mpmc has joined #linux-sunxi
Putti has quit [Ping timeout: 250 seconds]
yangxuan has quit [Remote host closed the connection]
yangxuan has joined #linux-sunxi
maz has quit [Ping timeout: 246 seconds]
dev1990 has quit [Quit: Konversation terminated!]
aballier has quit [Remote host closed the connection]
aballier has joined #linux-sunxi
aballier has joined #linux-sunxi
jailbox has quit [Ping timeout: 240 seconds]
yangxuan has quit [Ping timeout: 240 seconds]