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*
florianH has quit [Quit: Connection closed for inactivity]
NeuroScr has quit [Read error: Network is unreachable]
NeuroScr has joined #linux-sunxi
NeuroScr has quit [Read error: Network is unreachable]
NeuroScr has joined #linux-sunxi
Rafael1980 has quit [Quit: Konversation terminated!]
anarsoul|2 has quit [Ping timeout: 246 seconds]
apritzel has quit [Ping timeout: 250 seconds]
chomwitt has quit [Ping timeout: 250 seconds]
popolon has quit [Quit: WeeChat 2.3]
indy has quit [Read error: No route to host]
megi has quit [Ping timeout: 250 seconds]
indy has joined #linux-sunxi
victhor has quit [Remote host closed the connection]
itdnhr has quit [Remote host closed the connection]
yangxuan has joined #linux-sunxi
_whitelogger has joined #linux-sunxi
yangxuan has quit [Ping timeout: 246 seconds]
akaizen has quit [Ping timeout: 244 seconds]
wbs18 has joined #linux-sunxi
wbs18 has quit [Remote host closed the connection]
akaizen has joined #linux-sunxi
akaizen has quit [Ping timeout: 250 seconds]
smaeul has quit [Ping timeout: 250 seconds]
akaizen has joined #linux-sunxi
return0e has quit [Ping timeout: 272 seconds]
akaizen has quit [Ping timeout: 250 seconds]
return0e has joined #linux-sunxi
akaizen has joined #linux-sunxi
akaizen has quit [Ping timeout: 240 seconds]
smaeul has joined #linux-sunxi
merlin1991 has quit [Remote host closed the connection]
kelvan has quit [Read error: Connection reset by peer]
kelvan has joined #linux-sunxi
merlin1991 has joined #linux-sunxi
return0e has quit [Read error: Connection reset by peer]
return0e has joined #linux-sunxi
protoCall7 has joined #linux-sunxi
return0e_ has joined #linux-sunxi
return0e has quit [Ping timeout: 250 seconds]
chomwitt has joined #linux-sunxi
return0e_ has quit [Read error: Connection reset by peer]
return0e has joined #linux-sunxi
return0e has quit [Read error: Connection reset by peer]
return0e has joined #linux-sunxi
protoCall7 has quit [Quit: protoCall7]
protoCall7 has joined #linux-sunxi
protoCall7 has quit [Client Quit]
IgorPec has joined #linux-sunxi
xerpi has joined #linux-sunxi
<jernej> catphish: DE2 is very nicely described here: http://linux-sunxi.org/File:Allwinner_DE2.0_Spec_V1.0.pdf
<jernej> older HDMI document might better explain stuff
<KotCzarny> might be nice to mention its a work of wang/wong from aw
nuuuciano has quit [Ping timeout: 250 seconds]
nuuuciano has joined #linux-sunxi
<KotCzarny> or wink
return0e has quit [Read error: Connection reset by peer]
return0e has joined #linux-sunxi
<MoeIcenowy> KotCzarny: it's Wink
<KotCzarny> he should get a raise
<MoeIcenowy> and the surname of him is Huang (although in Cantonese it's pronounced as wong)
tristan_ has joined #linux-sunxi
_whitelogger has joined #linux-sunxi
tristan_ has quit [Client Quit]
tristan-fr has joined #linux-sunxi
<tristan-fr> hello
<tristan-fr> i´m trying to boot an image of armbian i compiled, it seems u-boot has some problems: Trying to boot from MMC1 MMC: no card present spl: mmc init failed with error: -123 SPL: failed to boot from all boot devices
<tristan-fr> (latest 2018-11 u-boot on a OrangePiPC)
<tristan-fr> (OpiPC v2.3)
<tristan-fr> anybody met the same problem? i can boot with another (older) image from Armbian using the same TF card, but not with the u-boot i compiled from source (i followed the instructions from armbian website, it pulls everything fresh from github, i´m surprised to have this problem at all)
gonyere_0 has joined #linux-sunxi
gonyere_0 has quit [Remote host closed the connection]
dev1990 has quit [Quit: Konversation terminated!]
Andy-D has quit [Ping timeout: 272 seconds]
Andy-D has joined #linux-sunxi
return0e_ has joined #linux-sunxi
return0e has quit [Ping timeout: 250 seconds]
leviathanch has joined #linux-sunxi
Putti has joined #linux-sunxi
<catphish> jernej: thanks, i did have the DE2 manual, i hadn't seen the HDMI PHY manual so that's useful, i saw it was you that wrote the u-boot DE2 driver, but it just seems too complicated for me to get my head around :(
<jernej> U-Boot DE2 and HDMI drivers need an update, they were written before manuals were available
<jernej> however, Linux drivers should be much better
<catphish> jernej: tht might be why i'm struggling to understand them, i hadn't even considered looking at the linux drivers instead, perhaps i should
<jernej> and my experience is that if it doesn't work, clocks are usually the reason
<catphish> yeah, the clock config is "extensive"
<jernej> btw, U-Boot DE2 driver is extremely simple in comparison to Linux driver
<KotCzarny> :>
<KotCzarny> are you trying to discourage him?
<catphish> well i guess the first step will be to get the HDMI working, at least i can see that working before moving onto DE
<jernej> no, just stating the fact that it is probably easier to understand U-Boot DE2 driver, which has only few lines that are important
<jernej> catphish: how do you plan to see any output if there is nothing that produces the image?
<jernej> you need at least working TCON and HDMI driver, with enabled test pattern in TCON
<catphish> depends what generated the sync pulses
<jernej> but TCON is almost the same as on A20, so you have at least this part working
<aalm> KotCzarny, about discourage, well, atleast i think this is over the worst already, he's not writing from scratch for the DRAMC after all, so realist won :]
<catphish> jernej: thanks for the pointers, i might have another shot at it with this HDMI manual
stellirin has quit [Quit: #rpm]
<KotCzarny> aalm, sometimes it just takes fresh look to do something nobody else managed
<KotCzarny> seen it in action few times
<aalm> *s/realist/"the realist in him"/
<jernej> catphish: take older version or check Linux HDMI driver
<jernej> *older version of document
<KotCzarny> or initial linux uboot commit?
<KotCzarny> *linux or uboot
<catphish> one thing that seems to be missing is a clock configuration register for the DE, is this hardwired from PLL3, or undocumented?
<catphish> but i don't need that for a while, i should focus on HDMI and TCON first
<jernej> it is documented, chapter 4.3.5.36
<jernej> H3 manual version 1.2
<catphish> jernej: you're right, ffs, it's just missing from the register list so i didn't look :(
<catphish> thanks
<catphish> i was baffled by why the driver was calling an unlisted register location
Putti has quit [Remote host closed the connection]
<jernej> btw, why do you think DE2 is not well documented?
Putti has joined #linux-sunxi
<KotCzarny> because he isnt accustomed to allwinner docs quality
<jernej> I don't know what more can be written, except maybe example or two
<catphish> jernej: actually having looked at the DE2 manual a few more times, i'm less of that opinion
<KotCzarny> or initial setup order
<catphish> jernej: i was just very confused by it, compared to DE1 which is very simple
<catphish> i think that accusation was unfounded, especially as it was partly based on the HDMI docs being missing
<jernej> btw, documentation regarding HDMI differs to U-Boot and Linux code
<jernej> register offsets are mangled
<catphish> does the documentation refer to the "unscrambled" locations?
<catphish> u-boot does something to change the offsets before it does anything else
<jernej> yes, that's it
<jernej> but please have in mind that there is no official DW HDMI controller documentation
<jernej> just for HDMI PHY
<jernej> afaik, Synopsys (maker of HDMI controller) gives it only under NDA
<jernej> fortunately, similar core (registers wise) is documented in i.MX6 manual
<catphish> ah ok
<catphish> well, i'm out of my depth, and theres quite a few components that have to be configured perfectly because i get any indication that i'm succeeding, but i'll give it another try
<jernej> and register offsets will match to that of i.MX6 only if you execute that "unscramble offsets" step
<catphish> that makes sense
stellirin has joined #linux-sunxi
Putti has quit [Quit: Leaving]
<catphish> jernej: thanks a lot for the help, as i said i'm well out of my comfort zone with the complexity of this, but i'll persist
<jernej> no problem
<jernej> I have to study it too for some time before I could wrote those drivers, but that was mostly because I didn't know anything about HDMI or how display pipeline works before
<jernej> it was great learning experience :)
<catphish> luckily for me the available documentation is pretty good now
chewitt has joined #linux-sunxi
<catphish> now i know where it all is :)
<jernej> ah, I meant that I didn't work with HDMI or display drivers at all before
<catphish> well neither had i before i started on this, so learning a few things at once
<catphish> i'm also used to the more hand-holding documentation of MCUs
BenG83 has quit [Ping timeout: 250 seconds]
f0xx has joined #linux-sunxi
pgreco has quit [Ping timeout: 250 seconds]
apritzel has joined #linux-sunxi
pgreco has joined #linux-sunxi
return0e_ has quit [Read error: Connection reset by peer]
victhor has joined #linux-sunxi
return0e has joined #linux-sunxi
BenG83 has joined #linux-sunxi
Net147 has quit [Quit: Quit]
netlynx has joined #linux-sunxi
Net147 has joined #linux-sunxi
dddddd has quit [Ping timeout: 245 seconds]
black_ink has quit [Ping timeout: 252 seconds]
black_ink has joined #linux-sunxi
BenG83_ has joined #linux-sunxi
reinforce has joined #linux-sunxi
chewitt has quit [Quit: Zzz..]
chewitt has joined #linux-sunxi
dddddd has joined #linux-sunxi
BenG83_ has quit [Remote host closed the connection]
aalm has quit [Read error: Connection reset by peer]
BenG has joined #linux-sunxi
Rafael1980 has joined #linux-sunxi
apritzel has quit [Ping timeout: 250 seconds]
apritzel has joined #linux-sunxi
rtp has quit [Remote host closed the connection]
xerpi has quit [Ping timeout: 250 seconds]
apritzel has quit [Ping timeout: 250 seconds]
f0xx has quit [Ping timeout: 250 seconds]
<catphish> well, HDMI plug detection works, so i guess that's step 1 of 100 :)
AneoX has joined #linux-sunxi
AneoX_ has quit [Ping timeout: 240 seconds]
duncan^ has quit []
duncan^ has joined #linux-sunxi
duncan^ has joined #linux-sunxi
duncan^ has left #linux-sunxi [#linux-sunxi]
duncan^ has joined #linux-sunxi
reinforce has quit [Quit: Leaving.]
geomatsi has joined #linux-sunxi
kever has quit [Quit: No Ping reply in 180 seconds.]
kever has joined #linux-sunxi
clemens3_ has joined #linux-sunxi
fl_0 has quit [Ping timeout: 250 seconds]
fl_0 has joined #linux-sunxi
xerpi has joined #linux-sunxi
Putti has joined #linux-sunxi
xerpi has quit [Remote host closed the connection]
xerpi has joined #linux-sunxi
clemens3_ has quit [Ping timeout: 272 seconds]
<miasma> catphish: yea, u-boot takes longer to boot. still < 2 seconds in total. i've started the counting when a mosfet turns the board on
leviathanch has quit [Read error: Connection reset by peer]
kever has quit [Quit: No Ping reply in 180 seconds.]
kever has joined #linux-sunxi
leviathanch has joined #linux-sunxi
<catphish> well that's quite impressive :)
xerpi has quit [Remote host closed the connection]
<Rafael1980> hi to all, I want to start working with the V3s from allwinner. But first I need a compiler. Im working with opensuse tumbleweed and Im wondering what toolchain use. By reading ther sunxi.org they recommend Linaro 4.9. Could be used newer? what about newer linux kernel? is it possible to use the gnu-arm from ARM? thanks for your help
<KotCzarny> which page recommends 4.9?
<KotCzarny> it might be outdated and needing a fix
<catphish> i assumed everyone here just used gcc
<KotCzarny> if you need arm binary you need crosscompiler on x86
<catphish> Rafael1980: i'd be surprised if a newer version didn't work
<Rafael1980> in Linaro toolchain last item
<KotCzarny> recommended only for legacy stuff
leviathanch has quit [Remote host closed the connection]
return0e has quit [Ping timeout: 246 seconds]
<KotCzarny> Xogium: i've created topology file for your setup (hopefully) and fixed build script in one place, and atf built ok
<KotCzarny> oops, wrong chan
return0e has joined #linux-sunxi
<Rafael1980> I download the from ARM the gnu toolchain but I have doubts about using arm-none-eabi and arm-linux-gnueabi
<Rafael1980> im new to embedded world and I want to understand those differences
<catphish> doubts?
<KotCzarny> none is probably for bare metal binaries
<KotCzarny> using arm-none-eabi and arm-linux-gnueabi
<KotCzarny> darn, cant use my mouse today. i meant arm-none-eabi is for bare metal
<Rafael1980> thanks KotCzarny for your answers
<catphish> i only use arm-none-eabi-gcc 6.3.1, dunno if that's maintained by linaro, it just comes with ubuntu
<catphish> just download the latest one and try it :)
<Rafael1980> the thing is Im using opensuse
<KotCzarny> and i use toolchains from here: https://toolchains.bootlin.com/
<Rafael1980> and from what I read is necessary to use ubuntu for sunxi
<Rafael1980> is really necesary?
<KotCzarny> nope
<catphish> shouldn't be, just a lot easier
<KotCzarny> most of those tips i bet is for legacy/bsp
<KotCzarny> if you focus on latest and greatest stuff in mainline dont worry
<Rafael1980> I found this in github https://github.com/yeashen/v3s-linux-sdk
<Rafael1980> it builds the u-boot - kernel and sunxi-tools
<Rafael1980> is that the way to build the SD card to boot linux on V3s?
<catphish> started writing some hdmi code, it's starting to make sense finally https://github.com/catphish/allwinner-bare-metal/blob/master/display.c - hopefully i can make it more readable and configurable once it works
<Rafael1980> I want to use ethernet on V3s, so first I want to learn from scratch. So i need first a toolchain. Do you recomend to use bootlin as toolchain? I have buildroot2018 already
<catphish> Rafael1980: when you say learn from scratch, do you mean you want to use the ethernet on bare metal?
<catphish> or you want to hack support into linux?
<Rafael1980> I have a board with rj45 connected to the V3s and want to use ti
<Rafael1980> use it
megi has joined #linux-sunxi
<catphish> does it run linux?
<catphish> i guess it must do
<Rafael1980> well that is the thing...I read a lot of forums and blogss and mostly (not all) uses ubuntu
<Rafael1980> Im using opensuse TW
<Rafael1980> so first Im trying to get a toolchain
<catphish> that makes sense, it shouldn't be too hard, maybe download the latest from linaro if your OS doesn't provide one out of the bx
<Rafael1980> and wondering what is the toolchain I need for this SoC, so I was aking abou ti
<Rafael1980> Linaro says sunxi.org
<Rafael1980> bootli says others
<Rafael1980> I downalod from ARM the GNU toolchain
<Rafael1980> but it use arm-none-eabi
<catphish> that sounds like what you want
<veremitz> there's several options, and/or you can build your own
<Rafael1980> thanks for your help guys
<catphish> although http://linux-sunxi.org/Mainline_Kernel_Howto recommends arm-linux-gnueabihf-
<catphish> i don't know the difference
<Rafael1980> im really new in this world of embedded
<veremitz> its a bit of a minefield, but you can pick it up pretty easily
<veremitz> if you want good chip/board support, you'll probably need to go with a vendor kernel tree, other than that ..
<veremitz> mainline is supporting more and more as timegoes on
<veremitz> but invariably it lags
<veremitz> rootfs/OS is mostly your choice on top of kernel + bootloader
<Rafael1980> So I need to go with Linaro, im here now https://www.linaro.org/downloads/
<catphish> seems sensible
<Rafael1980> do i donwload this 32-bit Armv7 Cortex-A, hard-float, little-endian
<Rafael1980> ?
nuuuciano has quit [Remote host closed the connection]
<catphish> Rafael1980: yes that all sounds correct
nuuuciano has joined #linux-sunxi
<Rafael1980> the thing is I wanna do it by the book here
<catphish> i'm not the best person to advice though, i've never actaully cross compiled linux, i use gnu-eabi-none- but not for linux
<catphish> if you want to use a book, probably best install ubuntu :)
<Rafael1980> yeah
<catphish> but it really shouldn't matter, any modern cross compiling toolchain for the right platform should work
<Rafael1980> ok
<catphish> the only thing is that i don't personally know the difference between the various arm-x-x-gcc variants
<Rafael1980> do you use Linaro?
<catphish> i use whatever ubuntu provides, i actually don't know if that's maintained by linaro
<catphish> i just "sudo apt install gcc-arm-none-eabi"
<catphish> and i'm sure it has the various other variants too
<Rafael1980> to create a sd card to boot linux on V3s
<catphish> that uses arm-linux-gnueabi-
<catphish> download the linaro toolchain, see what you get
<catphish> it's probably correct
<Rafael1980> this is the V3s http://linux-sunxi.org/V3s
<Rafael1980> do i need this linaro arm-linux-gnueabihf
<Rafael1980> or this arm-eabi
<catphish> i'm not sure
<catphish> try both :)
<catphish> people here probably know, but it might be quicker just to try them
<Rafael1980> then I need to donwload the u-boot, linux kernel and sunxi-tools and create a SD card
juri_ has quit [Read error: Connection reset by peer]
juri_ has joined #linux-sunxi
<willmore> KotCzarny, what channel are you talking to Xogium in? I haven't seen them around #odroid in a while.
<KotCzarny> #h3droid
<willmore> Okay.
<KotCzarny> feel free to join
<willmore> I would if I ran android on H3. :) I've no need for it at this point.
<KotCzarny> on-topic isnt enforced ;)
<willmore> LOL, when is it ever? ;)
<KotCzarny> some channels scoff at offtop angrily ;)
dev1990 has joined #linux-sunxi
apritzel has joined #linux-sunxi
dddddd has quit [Remote host closed the connection]
tristan-fr has quit [Ping timeout: 256 seconds]
<willmore> #fedora does, but I don't idle there.
netlynx has quit [Quit: Ex-Chat]
dev1990 has quit [Read error: Connection reset by peer]
dev1990 has joined #linux-sunxi
megi has quit [Quit: WeeChat 2.3]
<tautologico> Rafael1980: there is a video by one of the bootlin guys about cross-compiling toolchains for ARM
aalm has joined #linux-sunxi
<tautologico> Rafael1980: it's not that hard to compile your own cross-compiling toolchain
_whitelogger has joined #linux-sunxi
aalm has quit [Ping timeout: 246 seconds]
Putti has quit [Remote host closed the connection]
clemens3_ has joined #linux-sunxi
sunshavi has quit [Read error: Connection reset by peer]
NeuroScr has quit [Read error: No route to host]
sunshavi has joined #linux-sunxi
NeuroScr has joined #linux-sunxi
NeuroScr has quit [Ping timeout: 240 seconds]
<Rafael1980> its me again
<Rafael1980> what kernel should I donwload for V3s? linux-sunxi or from kernel.org?
dev1990_ has joined #linux-sunxi
chewitt has quit [Ping timeout: 250 seconds]
dev1990 has quit [Ping timeout: 240 seconds]
NeuroScr has joined #linux-sunxi
IgorPec has quit [Ping timeout: 244 seconds]
apritzel has quit [Ping timeout: 245 seconds]
clemens3_ has quit [Ping timeout: 272 seconds]
aalm has joined #linux-sunxi
gnarface has quit [Ping timeout: 246 seconds]
lkcl has quit [Ping timeout: 268 seconds]
<Rafael1980> where do I find the sun8i defconfig to be able to build the kernel
<Rafael1980> and where do I find the u-boot for the sun8i (V3s)
gnarface has joined #linux-sunxi
gnarface is now known as Guest57518
<catphish> Rafael1980: i'd start with the official kernel https://github.com/torvalds/linux and official u-boot https://github.com/u-boot/u-boot/
<Rafael1980> and u-boot from here http://git.denx.de/?p=u-boot.git;a=shortlog;h=refs/tags/v2018.11
<Rafael1980> is correct?
lkcl has joined #linux-sunxi
<catphish> yep, same as what i linked to (but hosted elsewhere)
dddddd has joined #linux-sunxi
<Rafael1980> according to this page
<Rafael1980> i need the sun8i_defconfig
<Rafael1980> where can I find it?
<Rafael1980> thanks for your help catphish
<catphish> Rafael1980: normally one configures u-boot for a known board, not a cpu
<catphish> since there are other factors (ram in particular) that are board specific
<catphish> same probably applies to linux
<catphish> for example i have http://www.orangepi.org/orangepione/ so i use "make orangepi_one_config"
clemens3_ has joined #linux-sunxi
NeuroScr has quit [Quit: NeuroScr]
geomatsi has quit [Quit: leaving]
apritzel has joined #linux-sunxi
NeuroScr has joined #linux-sunxi
return0e has quit [Read error: Connection reset by peer]
return0e has joined #linux-sunxi
BenG has quit [Quit: Leaving]
chomwitt has quit [Ping timeout: 245 seconds]
BenG83 has quit [Quit: Leaving]
vagrantc has joined #linux-sunxi
_whitelogger has joined #linux-sunxi
clemens3_ has quit [Ping timeout: 245 seconds]
longsleep has quit [Quit: No Ping reply in 180 seconds.]
clemens3_ has joined #linux-sunxi
longsleep has joined #linux-sunxi
<Rafael1980> for example A10 is
<Rafael1980> make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- sun4i_defconfig
<Rafael1980> A13 is
<Rafael1980> make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- sun5i_defconfig
<Rafael1980> my guess is that I need sun8i for the default config