Turl 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
souther has quit [Remote host closed the connection]
jstein_ has joined #linux-sunxi
jstein_ has quit [Remote host closed the connection]
jstein has quit [Ping timeout: 264 seconds]
pmattern has quit [Quit: Genug für heute.]
interrobangd_ has joined #linux-sunxi
interrobangd has quit [Read error: Connection reset by peer]
iamfrankenstein has quit [Quit: iamfrankenstein]
souther has joined #linux-sunxi
apritzel has quit [Ping timeout: 248 seconds]
dlan has joined #linux-sunxi
Andy-D has joined #linux-sunxi
FDCX has joined #linux-sunxi
interrobangd_ has quit [Quit: Leaving]
Andy-D has quit [Ping timeout: 252 seconds]
egbert has quit [Disconnected by services]
egbert has joined #linux-sunxi
Andy-D has joined #linux-sunxi
ninolein has quit [Ping timeout: 250 seconds]
ninolein has joined #linux-sunxi
cnxsoft has joined #linux-sunxi
p1u3sch1 has quit [Ping timeout: 276 seconds]
orly_owl has joined #linux-sunxi
p1u3sch1_ has joined #linux-sunxi
Deskwizard has quit [Ping timeout: 272 seconds]
TheSeven has quit [Ping timeout: 250 seconds]
TheSeven has joined #linux-sunxi
vagrantc has quit [Quit: leaving]
IgorPec has joined #linux-sunxi
IgorPec has quit [Ping timeout: 240 seconds]
IgorPec has joined #linux-sunxi
IgorPec has quit [Ping timeout: 260 seconds]
mossroy has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
IgorPec has joined #linux-sunxi
IgorPec has quit [Ping timeout: 252 seconds]
IgorPec has joined #linux-sunxi
Andy-D_ has joined #linux-sunxi
Andy-D has quit [Ping timeout: 276 seconds]
JohnDoe_71Rus has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
reinforce has joined #linux-sunxi
dev1990 has joined #linux-sunxi
clonak has quit [Ping timeout: 272 seconds]
cnxsoft has quit [Quit: cnxsoft]
cnxsoft has joined #linux-sunxi
clonak has joined #linux-sunxi
Deskwizard has joined #linux-sunxi
apritzel has joined #linux-sunxi
apritzel has quit [Ping timeout: 248 seconds]
iamfrankenstein has joined #linux-sunxi
bonbons has joined #linux-sunxi
Netlynx has joined #linux-sunxi
Netlynx has joined #linux-sunxi
lemonzest has joined #linux-sunxi
apritzel has joined #linux-sunxi
p1u3sch1_ has quit [Ping timeout: 272 seconds]
p1u3sch1 has joined #linux-sunxi
apritzel has quit [Ping timeout: 248 seconds]
premoboss has joined #linux-sunxi
ricardocrudo has joined #linux-sunxi
cagnot has joined #linux-sunxi
cagnot has quit [Client Quit]
jstein has joined #linux-sunxi
apritzel has joined #linux-sunxi
paulk-collins has joined #linux-sunxi
<longsleep> apritzel: hey, i am currently looking into 1000m mode of pine64 in sunxi-mac - did you see those comments in there about some A version which does not work with 1000M ?
<apritzel> longsleep: no, but I was remembering some other issue yesterday
<apritzel> the DT node for the MAC was wrong in the BSP kernel
<apritzel> can you check the second reg region?
<longsleep> apritzel: reg = <0x00000000 0x01c30000 0x00000000 0x00040000 0x00000000 0x01c00000 0x00000000 0x00000030>;
<apritzel> that should be 0x01C00030 0x4
<apritzel> stupid people, can't even read their own manual
<longsleep> apritzel: uhm :D - you mean i should replace all that with 0x01C00030 0x4 ?
<apritzel> no
<longsleep> drinking didnt help in understanding dt for me :)
<apritzel> <0x00000000 0x01c30000 0x00000000 0x00040000 0x00000000 0x01c00030 0x00000000 0x00000004>
<longsleep> ok i can try that
<apritzel> this is using 64-bit addresses and size, that's why it's a bit confusing
<apritzel> better ormatted it looks like:
<longsleep> 100 mbit works fine and relyably though getting around 93 Mbps
<apritzel> <0x0 0x01c30000 0x0 0x40000>, <0x0 0x01c00030 0x0 0x4>;
<longsleep> ah ok that makes sense
<apritzel> the first region is the MAC register interface, which is fine, the second region is the EMAC clock register, which starts at offset 0x30 and is 4 bytes lon
<apritzel> I stumbled upon this in December, when I first looked at this driver
<longsleep> Cool, i will try the change in a moment. I have added the dumped dts to my build blobs https://github.com/longsleep/build-pine64-image/blob/master/blobs/pine64.dts
<longsleep> changed some things already - will make that change there as well if it works
<apritzel> you can amend the DT easily in U-Boot
<longsleep> yeah, it is quicker to build and pack it for me
<longsleep> booting now
<longsleep> [ 14.450761] libphy: 1c30000.eth: probed
<longsleep> [ 14.455359] sunxi-gmac 1c30000.eth eth0: eth0: PHY ID 001cc915 at 0 IRQ poll (1c30000.eth-0:00)
<longsleep> [ 14.512049] sunxi-gmac 1c30000.eth eth0: Initialize hardware error
<longsleep> apritzel: did not work
<apritzel> I guess they ignore that DT part anyway ;-)
<apritzel> because it didn't work ;-P
<longsleep> but with the value before it works
<apritzel> interesting, from looking at the code it looked wrong
<apritzel> btw: did you recompile their kernel?
<longsleep> yes
<longsleep> +patches and backport of getrandom syscall
<apritzel> montjoie: do you care to share the link to your H3 Ethernet driver in development with longsleep?
<longsleep> apritzel: as i said, 100 Mbit works find and good, but 1000 does not send or receive anything
<longsleep> s/find/fine
<longsleep> i am tempted to disable gbit in the driver and roll an image
<apritzel> please do not waste too much time with this crappy kernel
<apritzel> I can write up an elaborate rant on the reasons - if that wouldn't be wasted time too ...
<apritzel> do you have CONFIG_CPU_OPS_SUNXI defined?
<longsleep> apritzel: well - i do it as excercise - i have to work with another Kernel from Amlogic which is similar crappy and want to have a base for comparison
<longsleep> apritzel: nope # CONFIG_CPU_OPS_SUNXI is not set
<apritzel> great, so you are mainlining Odroid C2 support, then? :-P
<longsleep> not that but might have to use it at work
<longsleep> but as it does not have SPI we will see
<apritzel> yeah, read that the other day
<apritzel> really strange to omit this
<apritzel> btw, the base kernel for their drop is not Greg's 3.10.65, but the Linaro stable kernel
<apritzel> that's why you have many not- Allwinner parts in that one commit
<longsleep> yeah i know - i still based it on linux-stable so i can see the differences
<apritzel> Linaro stable = Greg's 3.10.x plus Linaro backports + Android kernel
IgorPec2 has joined #linux-sunxi
<apritzel> I based it on the right commit and the diff looked much more usefl
<longsleep> well true, i might rebase it eventually
<longsleep> but i rather would prefer to get rid of the android stuff
<longsleep> but - speaking of waste of time :)
IgorPec has quit [Ping timeout: 240 seconds]
<apritzel> yeah ...
<longsleep> so - "ethtool -s eth0 speed 100 duplex full" , ethernet works at once
<longsleep> ethtool -s eth0 speed 1000 duplex full - stops working at once
<longsleep> libphy detects the link just fine in both modes
<longsleep> but in 1000m nothing gets through
<longsleep> apritzel: how would the CONFIG_CPU_OPS_SUNXI option be related?
<apritzel> well, 1000M and 100M is using a different protocol (RGMII vs MII) and also needs the PHY and the clocks to be configured differently
<apritzel> so it's not really a surprise that one works while the other is broken
IgorPec2 has quit [Ping timeout: 264 seconds]
<apritzel> (if they have a bug in their kernel)
<longsleep> ok - in the dt i see phy-mode = "rgmii";
<apritzel> CPU_OPS_SUNXI is apparently a leftover from Allwinner's early experiments
<apritzel> it just wouldn't work with the current firmware
<apritzel> so it's not related to this issue
<apritzel> but when I saw this code I decided to not look any further into that kernel
<longsleep> yeah - wise choice
<apritzel> you should do the same ;-)
<apritzel> I'd rather see you debugging on the mainline kernel :-)
<longsleep> well - i can do that as well but i seem to be unable to help very much as of device tree fun
<apritzel> I see a good chance that we have most features working by summer - apart from 3D, that is
<apritzel> but at least 2D acceleration and video seems to be within reach
<longsleep> yeah true - 3D might as well never happen
<apritzel> never say never ;-)
MY123 has joined #linux-sunxi
<longsleep> but dont you feel that having stable images with the BSP Kernel would be of no value in the meantime?
<KotCzarny> depends
<MY123> GPL seems to be now invalid in China
<apritzel> please don't use stable and BSP in the same sentence
<KotCzarny> if all you need is getting box up and running without caring for anything else
<MY123> damn
<longsleep> apritzel: right, lets nay not crashing
<longsleep> say
<MY123> laws
<apritzel> KotCzarny: you can use the Android image for that purpose
<apritzel> and install a SSH server app
<KotCzarny> apritzel, does one get all onboard devices working?
<longsleep> apritzel: i could build an not crashing Arch Linux image now, which would work to play around with the board and use it as server. Except that i would like to have 1000M
<KotCzarny> (but i agree, having proper drivers is better)
<apritzel> KotCzarny: with which kernel? the BSP one?
tkaiser has joined #linux-sunxi
<KotCzarny> apritzel, right now im using opipc with the droid kernel i think
<longsleep> apritzel, KotCzarny well my intention was to get Ubuntu Snappy running - i could do it now as i have full U-Boot and full Kernel control.
<longsleep> So both points checked based on BSP sources. But for Snappy the rest does not matter so much.
<apritzel> longsleep: btw: did you see that I got upstream U-Boot running, with booti support?
<apritzel> loaded by boot0
<longsleep> apritzel: oh thats cool - no i did not - i want to integrate that then. SO u-boot does no longer link to libdram?
<apritzel> no, I adjusted the TEXT_BASE to be 1.5KB later and prepended a header recognized by boot0
<apritzel> I just use the main U-Boot image, no SPL
<apritzel> also I hacked the booti command to use Allwinner's ATF 64-bit jump
<apritzel> nasty hack, but works
<longsleep> yes i saw that one
<apritzel> but I lost SMP on the way, I guess it's due to the PMIC now not being programmed properly
<apritzel> which the BSP U-Boot did
<longsleep> so you got rid of the ATF as well?
<apritzel> no, but I never wanted to do so
<apritzel> instead I still use their version with some fixes
<apritzel> as soon as Linux support is on the way, I will make a proper port of ATF
<longsleep> ok - sounds like something i want to try next weekend
<apritzel> this is the official repo and is has quite some good documentation
<longsleep> yes - i saw that and applied the BSP patches on top of it to build it for my image
<apritzel> on top of the 1.0 release or on top of the upstream HEAD?
<longsleep> 1.0
<apritzel> but again they do stupid things
<longsleep> no surprise
<apritzel> like having workarounds for A57 and Juno in
<apritzel> and setting the timer frequency to be 24<<20 Hz instead of 24 * 1000 * 1000
<longsleep> what i do not get is why is it so hard for those SOC vendors to make this thing better, or even somewhat good in the first place
<longsleep> is it only about money?
<longsleep> i am not even talkin about licensing - just about code and quality
p1u3sch1 has quit [Ping timeout: 240 seconds]
p1u3sch1 has joined #linux-sunxi
apritzel has quit [Ping timeout: 248 seconds]
IgorPec has joined #linux-sunxi
doppo has quit [Ping timeout: 252 seconds]
doppo has joined #linux-sunxi
cnxsoft has quit [Quit: cnxsoft]
premoboss has quit [Ping timeout: 240 seconds]
avph has quit [Ping timeout: 240 seconds]
premoboss has joined #linux-sunxi
interrobangd has joined #linux-sunxi
avph has joined #linux-sunxi
gusenkovs_ has joined #linux-sunxi
<gusenkovs_> Eror: include/linux/compiler-gcc.h:114:30: fatal error: linux/compiler-gcc5.h: No such file or directory
ricardocrudo has quit [Remote host closed the connection]
ricardocrudo has joined #linux-sunxi
Shirasaka-Hazumi is now known as huawei
apritzel has joined #linux-sunxi
huawei is now known as Shirasaka-Hazumi
<montjoie> apritzel: you could share it
apritzel has quit [Ping timeout: 248 seconds]
gusenkovs_ has quit [Quit: Page closed]
avph has quit [Ping timeout: 240 seconds]
<wens> longsleep: simple reason: time to market and shortage of engineers
avph has joined #linux-sunxi
avph has quit [Ping timeout: 240 seconds]
avph has joined #linux-sunxi
avph has quit [Ping timeout: 240 seconds]
avph has joined #linux-sunxi
avph has quit [Ping timeout: 240 seconds]
avph has joined #linux-sunxi
vagrantc has joined #linux-sunxi
avph has quit [Ping timeout: 240 seconds]
apritzel has joined #linux-sunxi
avph has joined #linux-sunxi
avph has quit [Ping timeout: 240 seconds]
avph has joined #linux-sunxi
<plaes> jemk: nice catch with hdmi stuff
apritzel1 has joined #linux-sunxi
avph has quit [Ping timeout: 240 seconds]
avph has joined #linux-sunxi
<jemk> plaes: yeah, i only wonder why they tried to hide that...
Shirasaka-Hazumi has quit [Ping timeout: 240 seconds]
<plaes> any idea which IP is used for older SOCs?
<plaes> for HDMI
<wens> jemk: you identified the hardware?
<jemk> don't know, but no synopsys i think, but since it is documented in a20 manual it isn't that important
<jemk> wens: the controller part, yes.
<wens> oh? what was it?
<longsleep> apritzel1: yes, when it detects a 1000M link it will still set it to 100M now and disable auto sensing
<longsleep> yes, when it detects a 1000M link it will still set it to 100M now and disable auto sensing
<jemk> wens: some synopsys hdmi tx controller, same as in imx6 and rk3288, but obfuscated
<longsleep> hum my irc client has a problem / sorry for the spam
<apritzel> longsleep: OK, I see, that is good
Shirasaka-Hazumi has joined #linux-sunxi
<plaes> jemk: obfuscated synopsis in A20 too?
<jemk> plaes: no, not a20
<jemk> a20 is documented
<plaes> ah..
avph has quit [Ping timeout: 240 seconds]
<plaes> ok, so it might be in-house :(
apritzel1 has quit [Ping timeout: 248 seconds]
apritzel has quit [Ping timeout: 248 seconds]
avph has joined #linux-sunxi
tkaiser has quit [Ping timeout: 272 seconds]
tkaiser has joined #linux-sunxi
<wens> jemk: obfuscated? registers scrambled or just the blob?
<jemk> wens: the registers
<plaes> that obfuscation isn't that bad
IgorPec has quit [Ping timeout: 240 seconds]
<jemk> it makes reusing the existing mainline driver unnecessary complicated
<jemk> (and it made it really hard to even figure this out)
rds has joined #linux-sunxi
<rds> jemk: great deal man!
<rds> the main question is: why the hell they do that ? Are they stealing anything ?
<rds> Or AW just like to piss off developers!
<KotCzarny> my guess is just on sloppy design
<KotCzarny> with no regard to anyone/anything
<ricardocrudo> is there any way to write boot0/boot1 on A20 using any sunxi tools (besides livesuit)?
<plaes> was there tree on github that had h3 sunxi-3.4 kernel?
doppo has quit [Ping timeout: 240 seconds]
doppo has joined #linux-sunxi
apritzel has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
<tkaiser> plaes: Check branch h3-wip
tkaiser has quit [Quit: jIRCii - http://www.oldschoolirc.com]
avph has quit [Ping timeout: 240 seconds]
avph has joined #linux-sunxi
<KotCzarny> if anyone thought on-device-compilation is slow, makeing crosscompiler+distcc fixes the core shortage
<KotCzarny> *making
rds has quit [Quit: Page closed]
<Wizzup> KotCzarny: or get fast arm devices :)
<KotCzarny> pah
<KotCzarny> ;)
<KotCzarny> but seriously, x86 is so much faster than arm, cheap and plentiful, so why not using it when all it takes is setting up xgcc+distcc
avph has quit [Ping timeout: 240 seconds]
IgorPec has joined #linux-sunxi
avph has joined #linux-sunxi
IgorPec has quit [Ping timeout: 272 seconds]
avph has quit [Ping timeout: 240 seconds]
IgorPec has joined #linux-sunxi
avph has joined #linux-sunxi
avph has quit [Ping timeout: 240 seconds]
kelvan has quit [Remote host closed the connection]
kelvan has joined #linux-sunxi
avph has joined #linux-sunxi
vagrantc has quit [Quit: leaving]
<KotCzarny> Linux banana 4.5.0-rc3 #1 SMP Sun Feb 14 19:23:05 CET 2016 armv7l GNU/Linux
<KotCzarny> oh, wow, compiled and ran on the first try!
<KotCzarny> thank you linux-sunxi for making it painless! :)
<KotCzarny> [ 0.563699] sunxi-rtc 1c20d00.rtc: setting system clock to 2086-02-14 18:45:30 UTC (3664550730)
<KotCzarny> o.O
<KotCzarny> also, still no smp? o.o
<vpeter> KotCzarny: you can read something about this rtc thing here https://github.com/systemd/systemd/issues/1143
<KotCzarny> vpeter, rtc is just anecdotal because ntp is a must anyway
<KotCzarny> but /proc/cpuinfo shows only one cpu
<KotCzarny> even if smp for a20 was mainlined in 3.14
<apritzel> KotCzarny: > smp for axx: wrong turn, it's all about PSCI these days
<apritzel> any chance you are using the wrong U-Boot?
<KotCzarny> could be
<KotCzarny> k, going to compile mainline one
<KotCzarny> good catch tho, thx!
<apritzel> KotCzarny: see the note here: http://linux-sunxi.org/Banana_Pi#Mainline_U-Boot
<KotCzarny> on a side note, can uboot boot from usb?
<KotCzarny> or load files from usb?
<apritzel> Yes
<KotCzarny> that would make writing conditionals easier
<apritzel> since I have my BPi setup here, let me give it a try ...
<KotCzarny> i only need load command to work
<apritzel> yup, works: fatls usb 0
<KotCzarny> ty
heap_ has quit [Ping timeout: 252 seconds]
Andy-D__ has joined #linux-sunxi
Andy-D_ has quit [Ping timeout: 240 seconds]
apritzel has quit [Ping timeout: 248 seconds]
Netlynx has quit [Quit: Leaving]
IgorPec has quit [Ping timeout: 248 seconds]
interrobangd has quit [Quit: Leaving]
orly_owl has quit [Ping timeout: 240 seconds]
<KotCzarny> umkay, mainline uboot worked in a first try too, thank you all linux-sunxi wiki contributors!
alexst has joined #linux-sunxi
<KotCzarny> on a sidenote, rtc seems to be sane now
alexst has quit [Client Quit]
alexst has joined #linux-sunxi
doppo has quit [Ping timeout: 264 seconds]
p1u3sch1 has quit [Ping timeout: 240 seconds]
doppo has joined #linux-sunxi
p1u3sch1 has joined #linux-sunxi
JohnDoe_71Rus has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<KotCzarny> hrm
<KotCzarny> is audio working on a20?
<KotCzarny> i have sun4i_codec loaded, device seems to be there, but trying to play anything (aplay some.wav) just hangs
MY123 has quit [Quit: Goodbye]
apritzel has joined #linux-sunxi
IgorPec has joined #linux-sunxi
IgorPec has quit [Ping timeout: 240 seconds]
Nyuutwo has quit [Ping timeout: 276 seconds]
Nyuutwo has joined #linux-sunxi
Nyuutwo_ has joined #linux-sunxi
Nyuutwo has quit [Ping timeout: 276 seconds]
apritzel has quit [Ping timeout: 248 seconds]
interrobangd has joined #linux-sunxi
reinforce has quit [Quit: Leaving.]
dev1990 has quit [Quit: Konversation terminated!]
arokux_ has joined #linux-sunxi
p1u3sch1 has quit [Ping timeout: 256 seconds]
p1u3sch1 has joined #linux-sunxi
mossroy has quit [Quit: Quitte]
IgorPec has joined #linux-sunxi
IgorPec has quit [Ping timeout: 260 seconds]
interrobangd_ has joined #linux-sunxi
utente_ has joined #linux-sunxi
p1u3sch1 has quit [Ping timeout: 240 seconds]
avph has quit [Ping timeout: 240 seconds]
interrobangd has quit [Ping timeout: 240 seconds]
premoboss has quit [Ping timeout: 240 seconds]
ricardocrudo has quit [Ping timeout: 240 seconds]
Rondom has quit [Ping timeout: 240 seconds]
alexst has quit [Quit: Lost terminal]
p1u3sch1 has joined #linux-sunxi
avph has joined #linux-sunxi
ricardocrudo has joined #linux-sunxi
Rondom has joined #linux-sunxi
avph has quit [Ping timeout: 240 seconds]
avph has joined #linux-sunxi
iamfrankenstein has quit [Quit: iamfrankenstein]
apritzel has joined #linux-sunxi
bonbons has quit [Quit: Leaving]
utente_ has quit [Quit: Sto andando via]
paulk-collins has quit [Read error: Connection reset by peer]
valkyr1e has quit [Ping timeout: 248 seconds]
lemonzest has quit [Quit: Leaving]
valkyr1e has joined #linux-sunxi
vagrantc has joined #linux-sunxi