leowt changed the topic of #linux-rockchip to: Rockchip development discussion | http://linux-rockchip.info | http://irclog.whitequark.org/linux-rockchip
<ferric> cosm: what linux are you running on your rk3188? distro/kernel?
<cosm> ferric: kernel: https://github.com/lgeek/Linux3188, distro: linaro (based on ubuntu saucy) http://releases.linaro.org/14.04/ubuntu/saucy-images
<ferric> cosm: nice. i just upgraded picuntu 4.5 to trusty.
<ferric> so i think i'll have a 3.1x.x kernel
<ferric> this is on your pipo x2, cosm?
<cosm> yes
<ferric> cosm: cool. what ROM did you start with? is there a linaro image I can just flash?
<cosm> ferric: I wasn't aware of any kernel > 3.0.x that is ready for general use, could you please double check?
<ferric> cosm: i'm probably wrong. :-)
<ferric> cosm: there's a 3.10 kernel here though
<cosm> ferric: yeah
<ferric> i might end up bricking my device now...
<cosm> anyway, I didn't start with any RK-specific ROM
<ferric> i jsut did do-release-upgrade on saucy. :)
<ferric> cosm: oh. sorry, i'm really new. what did you do?
<cosm> well, I've flashed the kernel image to NAND and I'm using the linaro filesystem from a uSD card
<ferric> aha
<ferric> cosm: are you running xfce too?
<cosm> yep
<ferric> cool. my xfce is definitely slower than running android on the same stick.
<cosm> I use XFCE on all my machines anyway
<cosm> what exactly is slower?
<ferric> but i haven't tried to optimize anything at all, whereas I'm sure android is pretty optimized for that hardware.
<ferric> cosm: it's just not as snappy, no real complaint.
<cosm> oh, ok
<ferric> i'd just be happy if i got my webcam working :)
<cosm> I'm asking because I've only used Android on mine very little
<cosm> but I thought it was really slow
<ferric> so Android was slower than xfce for you?
<cosm> I'd say so, although it's a bit difficult to compare them
<ferric> i have an imito qx2 - maybe it was faster for me cuz of 2G of RAM
<cosm> are you using fbturbo?
<ferric> lol, I love how pipo's site calls it TV Dangle: http://www.pipo.cn/En/index.php?m=Product&a=show1&type=2&id=304
<ferric> cosm: no. what is fbturbo?
<cosm> haha, somewhere in an android menu it says 'donlge' or something like that
<cosm> fbturbo is a slightly faster X driver
<ferric> cosm: ah, sweet. i'll check it out. i haven't got to the point of compiling my own kernels yet...
<cosm> ferric: you can use the standard fbturbo without any kernel patches
<cosm> it's still faster than the regular framebuffer driver
<cosm> but I haven't use picuntu, maybe it comes with it already installed?
<cosm> *haven't used
<ferric> cosm: how can i check?
<cosm> do you have access to that machine now?
<ferric> yep
<cosm> type 'grep -i fbturbo /var/log/Xorg.0.log' in a terminal
<cosm> if you get any output, you're using it
<ferric> nope, nada
<cosm> do you have 3D acceleration working? in that case maybe you're using the mali driver
<ferric> how do i check that?
<ferric> i don't think i do, because the kernel i flashed was from before they got the mali stuff
<ferric> i couldn't flash the mali kernel/rootfs, it keeps bricking my device
<cosm> I see
<ferric> going to try that mali kernel next if this upgrade fails: https://plus.google.com/+IanMORRISON/posts/NEWG6Mtz5U7
<cosm> ferric: good luck!
ganbold has quit [Remote host closed the connection]
ganbold has joined #linux-rockchip
ganbold has quit [Remote host closed the connection]
ganbold has joined #linux-rockchip
<ferric> thx!
<ferric> man, the new rk3288 devices look good
nighty-_ has quit [Quit: Disappears in a puff of smoke]
Astralix has joined #linux-rockchip
Astralix1 has quit [Ping timeout: 252 seconds]
rz2k has quit []
cnxsoft has joined #linux-rockchip
FreezingCold has quit [Ping timeout: 240 seconds]
pbacon has quit [Ping timeout: 264 seconds]
pbacon has joined #linux-rockchip
hramrach has quit [Remote host closed the connection]
hramrach has joined #linux-rockchip
pbacon has quit [Ping timeout: 240 seconds]
hramrach has quit [Remote host closed the connection]
hramrach has joined #linux-rockchip
cnxsoft has quit [Ping timeout: 265 seconds]
pbacon has joined #linux-rockchip
cnxsoft has joined #linux-rockchip
naobsd has joined #linux-rockchip
<naobsd> cosm: ping
<naobsd> cosm: can you make patches for your fbturbo based on latest kernel source from rockchip? https://github.com/linux-rockchip/kernel_rockchip/tree/rockchip-3.0-rbox-kk
<naobsd> cosm: that source may not work on your device. if you want Radxa Rock, please ask me
<naobsd> cosm: latest kernel source should support hw cursor (I just checked code, not tried on Linux)
<naobsd> cosm: Rockchip official gcc is "gcc version 4.6.x-google 20120106 (prerelease)" in Android 4.2/4.4 tree (prebuilts/gcc/linux-x86/arm/arm-eabi-4.6)
cnxsoft has quit [Ping timeout: 265 seconds]
_massi_ has joined #linux-rockchip
ferric_ has joined #linux-rockchip
ferric has quit [Read error: Connection reset by peer]
cnxsoft has joined #linux-rockchip
rz2k has joined #linux-rockchip
irsol_ has joined #linux-rockchip
irsol has quit [Ping timeout: 252 seconds]
irsol_ has quit [Changing host]
irsol_ has joined #linux-rockchip
irsol_ is now known as irsol
cnxsoft has quit [Ping timeout: 265 seconds]
Astralix has quit [*.net *.split]
ganbold has quit [*.net *.split]
mrueg has quit [*.net *.split]
RaYmAn has quit [*.net *.split]
ferric_ has quit [*.net *.split]
cosm has quit [*.net *.split]
markvandenborre has quit [*.net *.split]
ssvb has quit [*.net *.split]
pbacon has quit [*.net *.split]
moofree has quit [*.net *.split]
jcarlos has quit [*.net *.split]
itdaniher has quit [*.net *.split]
ChanServ has quit [*.net *.split]
naobsd has quit [*.net *.split]
FergusL has quit [*.net *.split]
rperier has quit [*.net *.split]
irsol has quit [*.net *.split]
rz2k has quit [*.net *.split]
anatoly has quit [*.net *.split]
hramrach has quit [*.net *.split]
RayFlower has quit [*.net *.split]
npcomp has quit [*.net *.split]
MadSpark has quit [*.net *.split]
_massi_ has quit [*.net *.split]
Tsvetan has quit [*.net *.split]
else- has quit [*.net *.split]
valdur55 has quit [*.net *.split]
VargaD has quit [*.net *.split]
mac- has quit [*.net *.split]
_hipboi_ has quit [*.net *.split]
zoobab has quit [*.net *.split]
phh has quit [*.net *.split]
mnemoc has quit [*.net *.split]
honx has quit [*.net *.split]
irsol has joined #linux-rockchip
cosm has joined #linux-rockchip
mrueg has joined #linux-rockchip
anatoly has joined #linux-rockchip
pbacon has joined #linux-rockchip
ChanServ has joined #linux-rockchip
ferric_ has joined #linux-rockchip
ssvb has joined #linux-rockchip
jcarlos has joined #linux-rockchip
MadSpark has joined #linux-rockchip
RaYmAn has joined #linux-rockchip
rz2k has joined #linux-rockchip
naobsd has joined #linux-rockchip
_hipboi_ has joined #linux-rockchip
mnemoc has joined #linux-rockchip
Tsvetan has joined #linux-rockchip
itdaniher has joined #linux-rockchip
zoobab has joined #linux-rockchip
honx has joined #linux-rockchip
valdur55 has joined #linux-rockchip
markvandenborre has joined #linux-rockchip
moofree has joined #linux-rockchip
_massi_ has joined #linux-rockchip
FergusL has joined #linux-rockchip
VargaD has joined #linux-rockchip
ganbold has joined #linux-rockchip
else- has joined #linux-rockchip
rperier has joined #linux-rockchip
hramrach has joined #linux-rockchip
Astralix has joined #linux-rockchip
mac- has joined #linux-rockchip
phh has joined #linux-rockchip
RayFlower has joined #linux-rockchip
npcomp has joined #linux-rockchip
<cosm> naobsd: if different versions of gcc produce code that behaves differently, it's a bug
<cosm> probably some wrong assumption in manual assembly code
io has joined #linux-rockchip
io is now known as Guest55545
<cosm> naobsd: it might be worth trying to cherry-pick patches one by one for stuff that's not already supported on that kernel
<cosm> naobsd: as far as I remember, only the version I've forked from was working on my device
nighty-_ has joined #linux-rockchip
npcomp has quit [Ping timeout: 240 seconds]
Guest55545 has quit [Ping timeout: 240 seconds]
npcomp has joined #linux-rockchip
cnxsoft has joined #linux-rockchip
RayFlower has quit [Ping timeout: 240 seconds]
ganbold_ has joined #linux-rockchip
cosm has quit [Ping timeout: 250 seconds]
cosm has joined #linux-rockchip
cosm has quit [Ping timeout: 258 seconds]
rz2k has quit []
cosm has joined #linux-rockchip
npcomp has quit [Ping timeout: 255 seconds]
npcomp has joined #linux-rockchip
npcomp has quit [Ping timeout: 258 seconds]
npcomp has joined #linux-rockchip
tonikasch has joined #linux-rockchip
cnxsoft has quit [Remote host closed the connection]
FreezingCold has joined #linux-rockchip
GriefNorth has joined #linux-rockchip
m1r has joined #linux-rockchip
ganbold_ has quit [Remote host closed the connection]
rz2k has joined #linux-rockchip
ganbold_ has joined #linux-rockchip
bgal has joined #linux-rockchip
tonikasch has quit [Quit: Bye!]
cosm has quit [Ping timeout: 252 seconds]
bgal has quit [Ping timeout: 245 seconds]
ganbold_ has quit [Ping timeout: 264 seconds]
RayFlower has joined #linux-rockchip
FreezingCold has quit [Ping timeout: 252 seconds]
bgal has joined #linux-rockchip
RayFlower has quit [Read error: Connection reset by peer]
RayFlower has joined #linux-rockchip
FreezingCold has joined #linux-rockchip
RayFlower has quit [Read error: Connection reset by peer]
RayFlower has joined #linux-rockchip
cosm has joined #linux-rockchip
rz2k has quit [Read error: Connection reset by peer]
_massi_ has quit [Quit: Leaving]
cosm has quit [Ping timeout: 240 seconds]
bgal has quit [Ping timeout: 240 seconds]
m1r has quit [Ping timeout: 264 seconds]
cosm has joined #linux-rockchip
npcomp has quit [Ping timeout: 240 seconds]
<cosm> ok, so my new RK3188 dongle was delivered today
<cosm> this one uses a 32bit wide memory bus
npcomp has joined #linux-rockchip
<cosm> ssvb: it has roughly twice the memory bandwidth of the other one
<ssvb> cosm: heh, using 16bit memory bus is really insane, that's a performance disaster
* ssvb wonders how many rockchip based devices are affected by this
<ssvb> cosm: maybe you still can increase the dram clock speed from 360mhz to something higher in that tablet
<cosm> yeah, I think the Android kernel uses 400 MHz
<cosm> even so, 10%, maybe 20% with overclocking isn't a big deal
<ssvb> allwinner based devices can run dram at up to 480mhz
<cosm> hmm, that sounds a bit better
<cosm> that's with no FB
RayFlower has quit [Read error: Connection reset by peer]
RayFlower has joined #linux-rockchip
RayFlower has quit [Read error: Connection reset by peer]
RayFlower has joined #linux-rockchip
<cosm> uhm
<cosm> I've just played a 1080p h264 video
<cosm> without mplayer complaining that 'your system is too slow'
RayFlower has quit [Read error: Connection reset by peer]
RayFlower has joined #linux-rockchip
GriefNorth has quit [Remote host closed the connection]
<cosm> without mplayer complaining that 'your system is too slow'
RayFlower has quit [Read error: Connection reset by peer]
RayFlower has joined #linux-rockchip
m1r has joined #linux-rockchip
m1r has quit [Ping timeout: 240 seconds]
m1r has joined #linux-rockchip
m1r has quit [Client Quit]
m1r has joined #linux-rockchip
m1r has quit [Ping timeout: 252 seconds]
RayFlower has quit [Read error: Connection reset by peer]
RayFlower has joined #linux-rockchip
m1r has joined #linux-rockchip
RayFlower has quit [Read error: Connection reset by peer]
RayFlower has joined #linux-rockchip
m1r has quit [Ping timeout: 264 seconds]
<ferric_> cosm: congrats. :)
ferric_ is now known as ferric
m1r has joined #linux-rockchip
<cosm> they've got to be kidding me!
<cosm> the bootlog shows DDR DEBUG: Bus Width=32 Col=10 Bank=8 Row=15 CS=1 Total Capability=1024MB
<cosm> android reports 2 GB
<cosm> I've checked the DRAM chips, 4 * 2 Gbit
<cosm> damn scammers
GriefNorth has joined #linux-rockchip
m1r has quit [Client Quit]
m1r1 has joined #linux-rockchip
m1r1 has quit [Ping timeout: 264 seconds]
<ssvb> cosm: I guess, it could have been worse, they could sell you something with 16bit dram bus width again ;-(
<cosm> ssvb: that would have been hilarious
m1r has joined #linux-rockchip
<ferric> what dongle is this now, cosm?
<cosm> MK809 IV
<cosm> this is so annoying
m1r has quit [Ping timeout: 276 seconds]
<ferric> oh that's a nice stick
m1r has joined #linux-rockchip
<cosm> so is there any low cost hardware which actually comes with 2 GB of RAM (and a 32 bit memory bus)?
m1r has quit [Ping timeout: 240 seconds]
<cosm> for the record, this is the RAM: https://i.imgur.com/dzBuR1l.jpg
rz2k has joined #linux-rockchip
GriefNorth has quit [Ping timeout: 250 seconds]
cosm has quit [Ping timeout: 255 seconds]
cosm has joined #linux-rockchip
<cosm> I'm not sure if my last messages made it to the server: for the record, this is the RAM: https://i.imgur.com/dzBuR1l.jpg
<cosm> ferric: by the way, this one seems to run a different Android port
<cosm> it does feel much faster than the one on pipo x2
<cosm> but I'm fairly sure the '1080p' output is just upscaled 720p, which would help a bit with that
<ssvb> :)
<ssvb> about messages reaching the server, you can always check http://irclog.whitequark.org/linux-rockchip
<cosm> ssvb: thanks, I haven't realised logs are published pretty much real-time
nighty-_ has quit [Remote host closed the connection]
FergusL has quit [Ping timeout: 252 seconds]
FergusL has joined #linux-rockchip
tonikasch has joined #linux-rockchip
<naobsd> cosm: probably I can cherry-pick your patches myself, if I have enough free time... :(
FreezingCold has quit [Quit: Out]
<cosm> naobsd: sorry, I don't have time either
<naobsd> cosm: do you need Radxa Rock? it should have 32bit width 2GB RAM
<naobsd> cosm: I see, sorry
<cosm> this little side project already ate a bit more time than it should have :)
<naobsd> I just think it's better to use latest rockchip code for development work
<cosm> initially I thought I'd start from their 3.10 release
<cosm> but I got bored fixing small things for my board before I even got it to successfully boot
<naobsd> I have some other RK3x boards, I also want to run my own kernel compiled from source
<naobsd> but my free time is very few, so I decided to use RR at first because I don't need to use my time to find out pin configuration etc ;)
<naobsd> I'll try other boards when I can get more time
<naobsd> cosm: btw, about your fbturbo, is video layer YUV?
<cosm> yes
<cosm> well, you can also set it to various RGB configurations, but video players use YUV so that's what's implemented for XV
<naobsd> we can skip color space conversion? good!
<naobsd> ah
<naobsd> it's written in README.md ;)
<cosm> yeah, it's a bit faster than X11 even without doing any resizing
<cosm> I'm going to push a few updates tonight
<naobsd> really good :)
* tonikasch mmmm, i'll contact google again regarding that hantro video decoder&encoder... let's see if this gets resolved soon
<naobsd> cosm: when you have a time and want to get Radxa Rock, please ask me :)
<tonikasch> naobsd, cosm: do you know if video encoder/decoder is yet supported under rkchrome tree?
<tonikasch> I ask just in case... because I'm writing to google on this as they promised to answer when they would have more information
<cosm> tonikasch: I don't know, sorry
<tonikasch> no problem
<tonikasch> so I send the email, ok
<cosm> tonikasch: I'm not really sure what's the story, are they looking at releasing the source code for the driver?
cosm has quit [Quit: Leaving]
<tonikasch> yes
<tonikasch> well... the fact is that google produces it, verisillicon licenses it, rockchip produces the soc with this integrated, final vendors mount the soc with some other components...
<naobsd> there are some code about vpu and vcodec(this replaces vpu code) in rkchrome
<tonikasch> :O
<naobsd> I don't know how it works
<tonikasch> naobsd ok, i'll dig into it
<tonikasch> :D thanks
FreezingCold has joined #linux-rockchip
<naobsd> there is vpu_service.c and vcodec_service.c under arch/arm/mach-rockchip/
<naobsd> I guess former is same as 3.0, but I didn't check them
<tonikasch> mmm, I see, so perhaps code is more complete now, nearer the sources they have
<naobsd> ssvb: did you see abstraction layer in cosm's fbturbo? https://github.com/lgeek/xf86-video-fbturbo/commit/0526106f66316311b6ae2103d32e0cdfa6f645e8
cosm has joined #linux-rockchip
<ssvb> naobsd: yes, but I'm currently busy with the other things
<tonikasch> well, have to leave, cu soon
<tonikasch> bye
tonikasch has quit [Quit: Bye!]
<naobsd> ssvb: I see, thanks :)
<ssvb> naobsd: and maybe it's also a good idea to try resolving the "known issues" from https://github.com/lgeek/xf86-video-fbturbo before merging everything
<ssvb> naobsd: but I'm happy to see that cosm is making great progress with rk support
<cosm> ssvb: talking about progress, it turns out I had already fixed the bug causing issues for multi buffering
<cosm> so that's going in ASAP
<ssvb> very good
<ssvb> does it eliminate tearing?
<cosm> yes, as far as I can tell
<cosm> it also allows use of more decoding threads for mplayer
<cosm> (it had to be up to 3 before, otherwise the X process doing memcpy was scheduled away for super extra tearing)
<ssvb> if the videos from http://people.freedesktop.org/~siamashka/files/20130130-tearingtest/ always show a solid vertical line without breaks, then everything is good
<ssvb> naobsd, cosm: also I wonder what is the status of the kernel? are the ioctls for handling overlays, hardware cursor and the 2d engine stable enough between kernel releases?
<cosm> ssvb: In the version I'm using, I had to patch up pretty much all of those things because of horrible bugs
<cosm> ssvb: and I also had to add a few ioctls
valdur55 has quit [Remote host closed the connection]
<cosm> ssvb: yeah, there's no more tearing in the test videos
<ssvb> cosm: for the new ioctls, can we have them defined with the use of _IO/_IOR/_IOW/_IOWR macros?
<cosm> ssvb: we could, but I was actually being consistent with the other macros used in those drivers :D
<cosm> *other ioctl definitions
<ssvb> cosm: something like introducing a new ioctl number by incrementing the last one by 1?
<cosm> ssvb: yes
<ssvb> well, that's exactly the thing that should *not* be done
<ssvb> because if rockchip releases a new kernel and adds a bunch of new ioctls, then they are very likely to clash with yours
<ssvb> and we end up in a horrible mess
<cosm> good point
<ssvb> additionally, the _IO/_IOR/_IOW/_IOWR macros are much safer because they encode the information about input/output arguments of the ioctl
<cosm> for some, for example hardware cursor stuff, I've just reused their ioctls from older chips
<cosm> I think those should be fine
<naobsd> probably latest rockchip kernel still has horrible bugs
<cosm> and I know about those macros, but they're not used anywhere in rockchip drivers, that's why I've said I'm just being consistent
<cosm> ok, maybe that's not a good enough reason :D
<naobsd> if my memory is correct, Rockchip did major changes around fb code some times
<naobsd> conflict should be avoided if possible, but Rockchip will not care about community code
<naobsd> and Rockchip will not care compatibility for their own old code ;) (just my guessing)
<cosm> I get the impression their engineers are really rushed to write code that works *now* and don't really have time for anything else
<naobsd> cosm: totally agree
<ssvb> naobsd: yes, still there are and will be some rk kernel forks around, and it would be not very nice if trying to use some ioctl will oops them or fail in some other nasty way
<naobsd> ssvb: yes
<cosm> hehe, one of my patches actually makes the fb driver return -NOIOCTLCMD (as opposed to 0) for unsupported ioctls
<cosm> if that one doesn't get merged in other forks, it could become a real problem to detect missing features
<naobsd> there are several forks, they don't keep history, I already gave up to refer them
<ssvb> the space of possible 32-bit ioctls numbers is not too large, but still the collision is not very likely if we try to move the new ioctls away from the current rockchip ioctl numbers
<cosm> ssvb: yeah, now that you brought that up, I think it's something we should do
<naobsd> there are many forks which did not use 'fork' button on github...
<cosm> naobsd: it sounds like you've been around this scene for longer than I have
<cosm> naobsd: why is almost nobody merging patches?
<cosm> naobsd: I mean from other forks
<cosm> naobsd: it's really, really fragmented
<ssvb> cosm: adding a special 'identification' ioctl may help, it can return some magic signature and the api version number to be sure that we don't mistake it with the other forks
<cosm> ssvb: yes, that sounds like a good idea for the framebuffer driver
<naobsd> cosm: there was no common/base source for Rockchip devices. unlike sunxi, board specific code such as pin config is hardcoded.
<naobsd> cosm: and there is no information such as pin config for all Rockchip devices.
<naobsd> cosm: at first, people need to care about code for his own device
<cosm> naobsd: I see
<naobsd> cosm: actually some people is working to make his code runnable on other devices
<cosm> naobsd: but it would be so much easier if a config for a board wouldn't be in fork a, support for the wifi adapter in fork b and so on
<cosm> naobsd: is there any serious effort to clean up this stuff for merging upstream?
<naobsd> cosm: Astralix and mmind (and maybe other few people) is doing mainlining
<cosm> naobsd: Oh cool. Do they use a mailing list or something? And do they have a repository?
<naobsd> some code is already merged in mainline
<naobsd> I'm pushing Rockchip's latest 3.0 code (via Radxa) into https://github.com/linux-rockchip/kernel_rockchip/tree/rockchip-3.0-rbox-kk
<naobsd> there are some members in linux-rockchip organization on github, but it's not working community/organization
<naobsd> repository in linux-rockchip at github it was just collection very recently some people pushing code into
<naobsd> sorry
<naobsd> repositories in linux-rockchip at github were just collection and my personal branches. but very recently some people pushing code/make pull request for linux-rockchip
<naobsd> btw, I'm not leader of linux-rockchip or something like that
<naobsd> I'm just a person using linux-rockchip organization on github
<naobsd> cosm: I'm not active developer. I don't know well about communities maintaining their own forks
<cosm> naobsd: thanks for the links
<cosm> I see
<naobsd> cosm: if you want to use github/linux-rockchip, I can add you as member
<cosm> thanks, but I'm ok for now
<cosm> I guess I might want to do that if other people start sending me more generic patches
<naobsd> I see