<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
<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>
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]
<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
<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]