hno changed the topic of #linux-sunxi to: Allwinner/sunxi development discussion - Don't ask to ask. Just ask! - See http://linux-sunxi.org | https://github.com/linux-sunxi/ | Logs at http://irclog.whitequark.org/linux-sunxi
<libv> servili007: nobody is using it
<libv> servili007: it'll at best play q3a
<libv> no, scrap that, it will at best play q3a demo
<libv> picuntu is full of it
<servili007> hehe, thought so :)
<servili007> it's a heavy and awesome undertaking though
<libv> well, i also took a non-standard approach
<libv> i did not throw some things into gallium quickly
<libv> i actually wanted lima to be competitive, performance wise, with the binary driver
<libv> luckily the hw played along, and q3a ran as fast as it did first time round
<libv> the hw also turned out to be a lot less obvious than some of its competitors
<servili007> Yeah I read through some of your older posts about how it performed and scaled on the various platforms
<servili007> the memory management as well
<libv> from the beginning i had stipulated that, if the driver is 80% of the speed of the binary, the binary will not see much use anymore
<libv> 80% of the speed, with the same power usage, that is
<servili007> I'd agree with that
<libv> we actually might manage that, even with the extra overhead that mesa might impose
<servili007> any concerns with further legal action?
<libv> oh, none whatsoever
<libv> i know what i am doing :)
<servili007> hehe
<libv> and ARM knew what i was doing since at least June 2011
<libv> as i described in detail what i was doing, how i was doing it
<libv> and all they could do was whine about the name when i gave them a few weeks notice before the big announcements at FOSDEM
<libv> FOSDEM2012
<servili007> right, remali?
<libv> yes
<libv> anyway, ARM management hates the project, but there is nothing that they can do to stop it, and they have been given many opportunities to proactively help lima, but utterly refused to do so
<libv> lima is going to be very bad marketing for them
<libv> in as far as it hasn't been already
<libv> i should actually do with lima like i did with unichrome back in 2005
<libv> sprinkle "$company does in no way endorse or support this project" everywhere
<servili007> no doubt. I'm still amazed at how often we have someone put out hardware with half baked software, shun free open source help (yes it's a legal headache for them too), then see their product take off and not even concern themselves with bettering the software side
<naobsd> (just a monologue: I want to try q3a on some boards with Mali)
<libv> servili007: the arm code does not seem too bad tbh
<libv> servili007: but it's a hassle to deal with binaries
<libv> and it will not migrate to upcoming windowing systems and such
naobsd has quit [Quit: Page closed]
<servili007> you mean you don't want precompiled, once and done drivers!?
<servili007> surely they'll satisfy everyone's needs
<servili007> I have mixed feelings on the whole industry and state of things
<libv> it's all too much stuck in fully-embedded thinking
<libv> it's all stuck in a long dark damp cave.
<servili007> I wonder where it'll end up in 15 years...
egbert has quit [Disconnected by services]
egbert has joined #linux-sunxi
<hno> It will improve.
winocm has quit [Quit: Lost terminal]
_BJFreeman has joined #linux-sunxi
_BJFreeman is now known as BJfreeman
tinti has quit [Ping timeout: 246 seconds]
_BJFreeman has joined #linux-sunxi
BJfreeman is now known as Guest17598
_BJFreeman is now known as BJfreeman
Guest17598 has quit [Ping timeout: 252 seconds]
Soru_ has joined #linux-sunxi
Soru has quit [Read error: Connection reset by peer]
BJfreeman has quit [Ping timeout: 252 seconds]
_BJFreeman has joined #linux-sunxi
_BJFreeman is now known as BJfreeman
TheSeven has quit [Disconnected by services]
[7] has joined #linux-sunxi
BJfreeman has quit [Quit: had a good time]
Tartarus has quit [Ping timeout: 240 seconds]
^vincenzo^ has quit [Remote host closed the connection]
^vincenzo^ has joined #linux-sunxi
n01 has joined #linux-sunxi
^vincenzo^ has quit [Remote host closed the connection]
^vincenzo^ has joined #linux-sunxi
hipboi has joined #linux-sunxi
^vincenzo^ has quit [Remote host closed the connection]
^vincenzo^ has joined #linux-sunxi
thisarme has joined #linux-sunxi
<thisarme> hi
<thisarme> plz help me my log http://pastebin.com/AK9yzhRX
^vincenzo^ has quit [Remote host closed the connection]
^vincenzo^ has joined #linux-sunxi
<rm> no
atiti has quit [Ping timeout: 276 seconds]
<thisarme> u.u
<thisarme> o.o?
eebrah|away is now known as eebrah
eebrah is now known as Guest37055
wingrime has joined #linux-sunxi
<rm> thisarme, describe properly what is the problem
<rm> rather than sending everyone read a huge log without explanation
<rm> and then maybe someone will help
atiti has joined #linux-sunxi
hipboi has quit [Ping timeout: 260 seconds]
hipboi has joined #linux-sunxi
n01 has quit [Quit: leaving]
Guest37055 is now known as eebrah_
thisarme has quit [Quit: Page closed]
eebrah_ is now known as eebrah|away
rellla has joined #linux-sunxi
geecko has joined #linux-sunxi
<geecko> hi
<Dreadlish> eh
<Dreadlish> i don't know what is wrong with his log
jemk has joined #linux-sunxi
geecko_ has joined #linux-sunxi
geecko has quit [Ping timeout: 276 seconds]
notmart has joined #linux-sunxi
notmart has joined #linux-sunxi
<geecko_> needing help :(
<geecko_> i compiled my own kernel following this tutorial : http://olimex.wordpress.com/2013/06/19/building-linux-for-a10s-from-scratch
paulk-desktop has joined #linux-sunxi
<geecko_> using gnueabi and gnueabihf toolchains
<geecko_> doesn't work
<geecko_> i have my uImage and the modules
<geecko_> the only difference is that i'm using gcc 4.7 instead of gcc 4.6, is it a problem?
<rm> no
<geecko_> rm, i have no clue then :(
<rm> what's your device, Olinuxino A10S?
<geecko_> rm, yep
<rm> doesn't it have easily accessible pins for serial console?
<geecko_> rm, unfortunately i don't have the necessary tools for this
<rm> so obtain them
<geecko_> rm, omg i DO have it
<geecko_> great
<geecko_> rm, i need the newest inux-sunxi kernel
<geecko_> maybe you are right though
<Tsvetan> geecko_ the ready image is with same kernel as the one blogged
<geecko_> Tsvetan, gawd, i will try it then
Tsvetan2 has joined #linux-sunxi
Tsvetan has quit [*.net *.split]
eebrah|away is now known as eebrah
Superpelican has joined #linux-sunxi
jinzo has quit [Ping timeout: 246 seconds]
Black_Horseman has quit [Quit: Zwi se logou mou!!!]
hipboi_ has joined #linux-sunxi
hipboi has quit [Ping timeout: 260 seconds]
rellla has quit [Quit: Nettalk6 - www.ntalk.de]
Superpelican has quit [Quit: Konversation terminated!]
<atiti> hm
<atiti> is there a kernel module for cedar?
<atiti> or just the binary blob shared library?
rellla has joined #linux-sunxi
Superpelican has joined #linux-sunxi
<oliv3r> atiti: both :)
<oliv3r> kernel _ shared blob
<oliv3r> kernel is oss, but really messy
<atiti> so its an either or?
<atiti> like either the kernel driver is used, or the shared blob?
Superpelican has quit [Ping timeout: 264 seconds]
^vincenzo^ has quit [Remote host closed the connection]
^vincenzo^ has joined #linux-sunxi
<oliv3r> both
<oliv3r> we have a really bad opensource kernel driver
<oliv3r> that interacts with the hated libcedar.so blob
<oliv3r> the libcedar blob is a special api frontend around some ffmpeg/libjpeg code, that calls the ko
<atiti> what about the libhybris stuff?
Soru_ has quit [Read error: Connection reset by peer]
Soru has joined #linux-sunxi
<oliv3r> that's a wrapper, around the android version of libcedar.so blob
<oliv3r> we had expected or wanted to test the differences between the regular linux userspace blob and the android one
<oliv3r> they are quite similar, with a few differences naturally, the kernel abckend is identical
<atiti> ok
<atiti> do you have a guide on how to test it all?
_BJFreeman has joined #linux-sunxi
<atiti> i see theres a sun5i_cedar.ko module
<atiti> fails to load for me though
<atiti> it says "No such device"
_BJFreeman is now known as BJfreeman
<oliv3r> what's your device?
<oliv3r> did you compile your own kernel?
<oliv3r> should be sunxi_cedar with the most recent kernels, as they have been merged not to long ago
<oliv3r> or should get merged ;)
<atiti> running hans' fedora 18
<atiti> mk802+
<atiti> kernel 3.4.43.sun5i+
jemk has quit [Quit: Verlassend]
<wingrime> oliv3r: are you saw my issue: screen have unseable bordes on HDMI
BJfreeman has quit [Quit: had a good time]
Tartarus has joined #linux-sunxi
geecko_ has quit [Quit: Quitte]
^vincenzo^ has quit [Remote host closed the connection]
^vincenzo^ has joined #linux-sunxi
Tartarus has quit [Client Quit]
Soru has quit [Ping timeout: 252 seconds]
rz2k has joined #linux-sunxi
<oliv3r> wingrime: i know nothing about disp
<oliv3r> atiti: you did read the readme, that states all of those things are not supported, right?
<oliv3r> well some things are not supported anyway, i don't even know what things :)
soul has joined #linux-sunxi
<atiti> oliv3r: i did :) But would be fun to add support for it :D
^vincenzo^ has quit [Remote host closed the connection]
^vincenzo^ has joined #linux-sunxi
<Turl> wingrime: sounds like you should play with "format" button on tv, try to set to 16:9 instead of "stretch" or other options
<oliv3r> atiti: that said, it should/could work of course ;)
<oliv3r> Turl: *wave*
<atiti> oliv3r: the way i see it in the sources, the only difference between the sunxi_cedar and sun5i_cedar is that sun5i and sun4i has been unified
<atiti> so i guess my older, ununified sun5i should work ok too
<oliv3r> atiti: in theory, yes
<oliv3r> but it also means you are using old stuff ;)
<oliv3r> did you enable memory for cedarX from the commandline
<oliv3r> and hence 'enabled' the hardware?
<oliv3r> (if it works that way at all)
<atiti> most likely not :p
<atiti> at least in the kernel cmdline i got sunxi_g2d_mem_reserve=0 sunxi_ve_mem_reserve=0 sunxi_fb_mem_reserve=16 sunxi_no_mali_mem_reserve
<atiti> which i guess means 0 bytes are allocated to cedar?
<oliv3r> exactly
<oliv3r> sunxi_ve_mem_reserve=32 i guess, i have no clue what a sane default is for it
<oliv3r> but you'll need that at the very least
<atiti> + if (ve_size == 0)
<atiti> + return -ENODEV;
<atiti> ok that makes a lot of sense
<oliv3r> :)
<atiti> thx :D
<atiti> what is g2d? hardware 3d accelerator
<atiti> ?
<oliv3r> hardware 2D accelerator :p
^vincenzo^ has quit [Remote host closed the connection]
<rz2k> 2d accelerator in sun4i and sun67i
<oliv3r> but i think cedar outputs directly to the framebuffer
<atiti> sweet, do we know how it works?
<rz2k> we have Xorg driver that can use g2d on that devices
^vincenzo^ has joined #linux-sunxi
<oliv3r> sun5i has 'Iimage Enhancment Processor' as a replacement
<atiti> i guess it can do hardware scaling of surfaces?
<oliv3r> i belive so
<rz2k> disp module can scale things
<oliv3r> atiti: what are your plans? :) just play, write patches?
<rz2k> g2d is only for simple operations like filling/blittin
<rz2k> g
<atiti> right now just playing, I think I need to learn a lot more to be leet enough to write patches
<rz2k> atiti: here is the xorg driver https://github.com/ssvb/xf86-video-sunxifb
<atiti> thx rz2k
<rz2k> [15:55:31] <oliv3r> sun5i has 'Iimage Enhancment Processor' as a replacement - any ideas how to use it?
<rz2k> and does it have public ioctl api as g2d has?
<oliv3r> a13 user manaual is pretty complete i think
<oliv3r> it does things like reduce flickering (from TL sources) etc
<oliv3r> i haven't really looked at it
<oliv3r> nor do I know if we have drivers fro it :)
<atiti> nice, sun5i_cedar now loads :p
<oliv3r> atiti: :p
<atiti> im actually porting an SDL application
<atiti> which will try to decode low latency h264 streams using cedar
<ssvb> atiti: beware of 'sunxi_no_mali_mem_reserve' option, it's a bit dangerous
<atiti> ssvb: oh? how so?
<ssvb> atiti: if somebody tries to modprobe the mali kernel module, your system locks up
<rz2k> lol
<oliv3r> rm libmali.so
<oliv3r> :D
<atiti> hehe, ok ill watch out for it
hipboi_ has quit [Ping timeout: 246 seconds]
* ssvb needs to remind about some old patches in the mailing list
* Turl needs to talk with hipboi but he keeps dropping :p
hegemoOn has joined #linux-sunxi
<oliv3r> i still need to thank hipboi, but he hasn't been around lots
<rz2k> ssvb: I think we need to pick more people to have access to pushing patches to kernel
<atiti> ok, so whats the difference between g2d and disp?
<atiti> disp i guess is the framebuffer driver
<rz2k> since mnemoc is not available right now and hno & oliv3r only push patches that they had a hand on.
^vincenzo^ has quit [Remote host closed the connection]
<Turl> rz2k: I can push patches
^vincenzo^ has joined #linux-sunxi
<Turl> rz2k: just don't blame me if stuff breaks :D
<rz2k> then review ton of stuff from HdG :p
<Turl> rz2k: oh look, a cubietruck on an apple store!
<Turl> j/k :P
<atiti> ah thx
<ssvb> atiti: basically, g2d can do various 2d operations with arbitrary buffers in the physical memory
<oliv3r> rz2k: i don't have push access to the kernel, only u-boot
<rz2k> oh, sorry then :p
<oliv3r> and if something gets properly reviewed on the ML; i don't mind pushing u-boot stuff from patches :)
^vincenzo^ has quit [Remote host closed the connection]
^vincenzo^ has joined #linux-sunxi
<oliv3r> but yeah, there's tons of patches that need reviewing and mergin
<oliv3r> but we need an 'overview' at the least
<ssvb> atiti: and disp is responsible for making sure that you see the pixels from your framebuffer (which is also some area in the physical memory) on lcd, hdmi, vga or any other output device
<atiti> sweeet, so the mixer processor can do scaling and colorspace conversions etc in hardware
<ssvb> yes, it can
<oliv3r> menmeoc asked if someone was able to have a tree, that he could pull; but nobody responded :)
<atiti> and those memory regions the mixer works with gets displayed by the disp
<oliv3r> so the disp engine could be rewritten, without affecting the fb driver, mali driver, cedar driver
<atiti> nice, thanks ssvb
<ssvb> atiti: disp can also do scaling and colorspace conversion on the pixel data sent to hdmi/lcd/...
<atiti> in hardware?
<ssvb> atiti: actually disp has also 'writeback' capability, so it can store the scaled and colorspace converted result back to the memory
<ssvb> yes, disp and g2d are both hardware units, and some of their functionality is overlapping a bit
hipboi_ has joined #linux-sunxi
<atiti> ah, i see
<ssvb> disp provides better quality scaling if you check the documentation :)
<oliv3r> ssvb: so disp could be rewritten and cleaned up without affecting much of the rest?
<ssvb> oliv3r: disp has a shitload of weird ioctls, which need to be preserved if we want not to break android
<ssvb> oliv3r: but if you mean the mainline kernel, then nobody stops anyone from reimplementing if from scratch
<oliv3r> ssvb: interesting and curious :)
<oliv3r> pff, android
<ssvb> oliv3r: hipboi_ seems to be back :)
<ssvb> Turl: ^
<oliv3r> hipboi_: hey Tom!
<Turl> ssvb: yep I'm talking with him :)
<ssvb> ko :)
<ssvb> ok
<hipboi_> hi
<hipboi_> yes
<hipboi_> new life in Shenzhen now
<oliv3r> hipboi_: good stuffs!
<oliv3r> hipboi_: I never had a chance to thank you for c2 and uSD adapter; thanks :) arrived well in time :)
<oliv3r> hipboi_: been using it to hack stuff allready, u-boot atm mostly :)
<hipboi_> oliv3r, good to hear
<rz2k> ssvb: lets make a local tree with all the patches in the tube and then I can test them on a13 and you can do same on a10
<rz2k> then mnemoc will pull it
<oliv3r> hipboi_: once my patches are merged we should have equal performance as boot0, so all is well :)
<ssvb> oliv3r: except that the boot0 does not show great performance either
<Turl> rz2k: ++
<oliv3r> ssvb: well that's something we might not be able to help/fix
<oliv3r> AW knows the memory details
<ssvb> oliv3r: the memory latency for a20 is still worse than a10
<ssvb> oliv3r: yes, there's nothing we can do
<oliv3r> kinda sucks really :(
<oliv3r> i mean we can randomly try and tune bits and pieces
<ssvb> oliv3r, hipboi_: I wanted to post some a20 benchmarks in my blog, but currently I'm holding back because memory is likely still misconfigured and the cpu is likely underclocked
<ssvb> oliv3r: randomly trying is not the best thing we can do
<hipboi_> cpu clock is limited
<hipboi_> problem of the chip itself
<oliv3r> 912 MHz highest reliable safe speed?
<hipboi_> yes
<ssvb> hipboi_: is this going to be resolved in future a20 revisions?
<oliv3r> hipboi_: i know you probably can't tell, but is the dram controller AW's own IP, or is it someone elses
<hipboi_> all the current a20 product is 912M
<hipboi_> ssvb: it should be resolved in the future version of the chip
<oliv3r> so A20 r2 could see higher clocks?
<oliv3r> or will they skip a20 r2 and just go for a40 :)
<hipboi_> they use A, B, C
<oliv3r> this what we have now is revA? or allready revB
<hipboi_> revA currently
<hipboi_> allwinenr is punched by rockchips now
<oliv3r> aye
<oliv3r> but rockchips OSS support is much worse
<oliv3r> so who knows
<oliv3r> will AW do a revB for A20 or go to something new and not waste resources on the A20
<hipboi_> so allwinner is promoting that it support OSS
<ssvb> hipboi_: do you know what cpu clock frequency is used in Mele A5?
<hipboi_> and their official weibo is posting open hardware
<oliv3r> hipboi_: LOL
<hipboi_> eoma, olimex, cubieboard
<oliv3r> support is a strong word ;)
<hipboi_> all list there
<oliv3r> but yes, this is something we can use to our advantage
<oliv3r> but they still need to help us with docs (and cedarX source)
<hipboi_> ssvb, mele A5? never heard that model
<oliv3r> hipboi_: it's a1000 + a20 basically
<oliv3r> about 90 USD on dx.com
<hipboi_> oliv3r, ok, mele m5
<oliv3r> ah yes, i see the typo :)
* ssvb is confused with too many A-something things :)
<oliv3r> hipboi_: so dram controller; no AW IP is it? if not, that could mean we can try to find if someone implemented it properly allready ;)
<ssvb> hipboi_: it seems to be advertised as 1.2GHz there
<oliv3r> lies!
<ssvb> hipboi_: also the specs at https://cubieboard.myshopify.com/collections/allwinner-a20/products/cubieboard2 advertise 512K of L2 cache
<oliv3r> 900 MHz A20 + 300 MHz mali
notmart has quit [Quit: notmart terminated!]
<Tsvetan2> oliv3r we clock A20-OLinuXino at 1008 Mhz and didnt saw any problems
<Tsvetan2> you have board can you check?
<ssvb> hipboi_: but I can only see 256K by running tests and benchmarks, and the allwinner website is suspiciously quiet about L2 size in A20
<oliv3r> Tsvetan2: my a20 is at home :) yeah ssvb ran some test and could clock it higher without problems :)
<oliv3r> Tsvetan2: but i think 'officially' the a20 only runs at 912 MHz, above that 'you are on your own'
<Tsvetan2> where is this officially statement :)
<Turl> Tsvetan2: on the code? :P
<Tsvetan2> just core voltage should be set to 1.4V
<Tsvetan2> and we ran boards for hours without freeze or kernel panics
<oliv3r> Tsvetan2: hipboi even said it above; there's some problems with the chip itself :)
<oliv3r> but with an open design like the olinino, it shouldn't be a problem
<oliv3r> but if you put it in a tablet
<oliv3r> warm lcd, warm battery
<hipboi_> i can confirm that it's 256K L2 cache
<Tsvetan2> hipboi_ is there datasheet/paper for this
<hno> rz2k, I can push and review any patches, just have been over my head in work items lately.
<Tsvetan2> we have to measure the temperature but I didnt notice anything unusual
<ssvb> hipboi_: thanks
<Tsvetan2> today I got A31 Android dobgle and it have solid aluminum heatsink glued on top of A31 :))))
<oliv3r> hno: work? vacation time!
<ssvb> Tsvetan2: yep, mine still can run at 1GHz when undervolted to 1.275V, so there seems to be plenty headroom - http://thread.gmane.org/gmane.comp.hardware.netbook.arm.sunxi/1563
<oliv3r> Tsvetan2: i'm working on a31 u-boot support; but it's SO different, it's progressing, but very slwoly :)
<oliv3r> and the weather is to nice to work too much :)
<rz2k> Tsvetan2: its ok for quads, i think, my wandboard-quad has huge heatsink attached by default
<ssvb> Tsvetan2: have you measured the chip temperature under high load?
<ssvb> Tsvetan2: ah, you mean that it's something you are still planning to do
<Tsvetan2> ssvb: nope, but we didnt notice it to be more hot than A10S running at 1008Mhz
<ssvb> Tsvetan2: maybe try cpuburn program on both
<Tsvetan2> ssvb: I still didnt decided
<ssvb> the idle temperature is not too interesting :)
<Turl> Tsvetan2: my A10S runs really cool :)
<ssvb> Turl: while doing what? :)
<Turl> (on idle, didn't run cpuburn on it :P)
<Tsvetan2> Turl same is with A20, they got warm but not too hot
<hipboi_> at the early development of a31
<Tsvetan2> i.e. you can touch with finger without pain so I guess less 60C :)))
<hipboi_> there is one product manger burned by an A31 tablet
<Turl> hipboi_: haha
<oliv3r> hehehee
<oliv3r> so a31 runs hot
<Tsvetan2> hipboi_ I hear rumours that A31 have bugs and there will be new revision, this is why I do not push too much in this direction
<ssvb> Tsvetan2: I guess this is what happens when the cooling system has not been designed/verified under full load - http://lists.linaro.org/pipermail/linaro-toolchain/2013-July/003513.html
<oliv3r> i don't have a31 hardware :)
<oliv3r> and i don't want stinky powervr either!
<hipboi_> a31 is treated as a failure at allwinner
<hipboi_> so they came up a31s
<Tsvetan2> hipboi_ but the price is very attractive, A31 in volume is about $15
<hipboi_> rk3188 is 12$
<mripard> hipboi_: what's the difference between the two?
<Tsvetan2> right but they do not sell to mortals
<mripard> (a31 vs a31s ?)
<oliv3r> a31s 'for phablets' eva says
<Tsvetan2> :)
<hipboi_> a31s is 32bit memory
<hipboi_> and one channel nand flash
<oliv3r> so it's a castrated a31?
<Tsvetan2> rockchip have some proxi lady on the phone Wendy Lin and she will connect you to salesman only if you know his Chinese name :))))
<hipboi_> :D
<Tsvetan2> chicken - egg problem :)))
<Tsvetan2> a31s is crap
<hipboi_> the biggest bug of a31 is the memory clock can not run high
<Tsvetan2> no ethernet
<hipboi_> the memory bandwith is limited
<libv> pvr!
* libv shuts up again
<Tsvetan2> libv: hear hear :)))
<andoma> :)
<libv> Tsvetan2: to my first, or to my second statement? :p
<hipboi_> rk3188 is mali
<hipboi_> so...
<hipboi_> and i visited rockchips last week
<ssvb> hipboi_: rk3188 based cubieboard?
<oliv3r> applying for a job there?
<libv> hipboi_: are kernel and u-boot source available?
<oliv3r> linux-sunxi shifts work towards rk thanks to hipboi :)
<hipboi_> libv, kernel source available
<libv> and if so, has a community developed even half as well as sunxi?
<libv> how long will that community remain, or does that community have an established feeling like sunxi has these days
<Tsvetan2> libv: nope
<Tsvetan2> but there is #linux-rockchip channel
<Tsvetan2> with few ppl there
<oliv3r> i think it's 2 weeks old :)D
<Tsvetan2> they have small progress
<oliv3r> they started linux-rk because they where discussing rk inhere :)
<libv> i think the sunxi movement is 1.5ys old by now
^vincenzo^ has quit [Remote host closed the connection]
<libv> i think i ordered my mele exactly a year ago
<oliv3r> no u-boot sources is ouch :S
^vincenzo^ has joined #linux-sunxi
<Turl> I think I saw rk support on mainline
<Turl> or maybe it was sth else
<Turl> let me check
<ssvb> the competition is good
<mripard> Turl: yeah, it's been merged in 3.11 iirc
<hipboi_> yes, it's mainlined
<hipboi_> very initial
<libv> yes, but for some reason shortlived communities which might vanish 3 months from now are not very productive
<mripard> yet quite featureful already
<ssvb> maybe we will see more oss friendly hardware, and the vendors will become less secretive?
<oliv3r> what do we have for rk? same as initial sunxi 3.8 patch?
<mripard> rockchip seems to use a lot of standards IP
<oliv3r> ah, that helps
<mripard> like they use the synopsys MMC controller
<oliv3r> well allwinner might too, but they keep it secret what they use :S
<mripard> so they already have SD support
<oliv3r> i think one of the things AW should do, is list their own IP, so that atleast we can figure out what the other IP is
<Turl> mripard: I think they just went shopping, then glued all IP together :)
<Tsvetan2> libv: at $12 for 4 core Cortex-A9 while imx6 4 core cost $40 guess its only matter of time RK3188 to hit mainline
<Turl> also hisilicon
<Turl> dunno where they are from :)
<rz2k> imx has a reason for that price
<mripard> Tsvetan2: freescale has other guarantees however
<hipboi_> rockchip will sell fifty million chips this year
<mripard> like guaranteed 10 years supply or so, pin compatibility between each SoC in the same family, very good documentation
* rz2k has a box with imx6, pci-e LTE modem and SATA harddisk
<Turl> rz2k: 4G router? :p
<mripard> operating temperatures are pretty good as well iirc
<rz2k> somewhat
<Tsvetan2> mripard: sure they cant sell so much as Rockchip and have higher expenses
<ssvb> libv: why do you care (so much) if it's all the same mali?
Superpelican has joined #linux-sunxi
<libv> ssvb: in order to be able to work with mali, i had to jump through a lot of hoops
<libv> ssvb: the First_Steps and Binary_Drivers pages, and the sunxi-mali repos are results of that
<ssvb> libv: but now it's not your problem anymore? as long as you have MP1, MP2, and MP4 hardware to test at least with some boards
<mripard> Tsvetan2: I don't have hard numbers, but Freescale is pretty strong in the automotive/industrial markets
<ssvb> libv: the rockchip community should be able to handle the basic adaptation
<libv> ssvb: if everyone has the unbelievably short attention span that i notice so often, then i will soon have nothing left
<rz2k> also dont forget that lower freescale's have E-Ink controller built in
<libv> ssvb: and it is not my experience that communities who came into existence overnight produce useful results
<rz2k> so many e-ink readers have imx5x or imx6s/dl
<libv> ssvb: especially not in the shortlived soc world
<libv> i am happy to be proven wrong
<ssvb> libv: if rockchip really sells millions of these chips, then the SoC will be surely supported by somebody
<libv> but the way in which some of my amalgamations of free-floating information got maimed on linux-sunxi.org, and the fact that i do from time to time still have to step in there to keep some sanity, does not make me very confident
^vincenzo^ has quit [Remote host closed the connection]
^vincenzo^ has joined #linux-sunxi
<libv> ssvb: there have been many popular SoCs so far
<ssvb> libv: frankly speaking, the mali documentation at linux-sunxi.org has been fine for more than a year
<Tsvetan2> mripard: exactly high end automotive entertainment systems is FSC market and its probablt 1/200 of Rockchip/Allwinner tablet market size
<libv> sure, none had the massive code disclosures as allwinner
<libv> ssvb: i definitely do not agree with that
<ssvb> libv: but there will be always some clueless and noisy people who fail no matter how good or foolproof is this stuff :)
<libv> useful binary driver installation has only existed for a few months
<libv> and absolutely no-one has stepped up to debianize it
<ssvb> libv: the initial instructions provided by rz2k used to be very good
<libv> which i find rather awkward
<oliv3r> well the linux-sunxi community isn't producing as much as we could either
<ssvb> libv: your new instructions are slightly better, but it's not a big deal
<libv> and which is a sure sign of something having skewed significantly in the linux world in the last decade
<oliv3r> mnemoc being busy doesn't help of course; but it's been a while since patches have been posted
* oliv3r should get back to work and fix his driver :)
<libv> ssvb: my new instructions?
<libv> ssvb: it basically tells people to use the build system that was created to handle things properly
<libv> but even that gets made more awkward or confusing than it needs to be
<libv> from time to time
<Turl> libv: binary blobs don't play too nice with DFSG :P
<ssvb> libv: yes, there was not a *big* problem to begin with
<libv> Turl: i said debianization, not uploading to debian servers
<Turl> excuses aside, I think bfree was going to debianize some stuff
<libv> Turl: that was 5 months ago
<Turl> libv: well, we got emac on debian officially :)
<rz2k> dont take me into this, I documented stuff that worked and nothing more. if that was not enough to have a magical cookie from libv, I am sorry for taking time. No one cared to delete that page at that time if it was awkwardly bad.
<rz2k> great to see that it was replaced with better stuff
<libv> rz2k: i am not critisizing you or what you documented
<libv> it was already an improvement, and at least some knowledge documented
<ssvb> rz2k: it took me just a few hours to get everything up and running with no prior experience, and your wiki page helped a lot, that's why I think it was good enough
<libv> anyway, with all the difficulties that sunxi has already, for what seems an arm soc community with continuity, i am not too hopeful of other "communities" which spring up
<libv> the androidization of the users has spread too far imho
<libv> and the people with a clue will do actual code before anything else
<libv> and there is no one handling the bits in the middle, noone doing the glue
<oliv3r> i have to agree with libv here, our community is kinda dormant atm as it is :)
* oliv3r shuts up again and starts to code more
<libv> and i see no way to fix this, it's how the world has evolved in the last decade
<Turl> oliv3r: fix SID and get it merged :P
<oliv3r> Turl: i don't know how :p that's why i'm avoiding it
<oliv3r> i'll go to the bathroom and look at it again
<oliv3r> :p
<libv> there is just one way to kind of deal with this, and that is the realization that SoCs and SoC vendors will play hopscotch every few weeks
<libv> and that it is a waste of time to jump on every new SoC
<libv> you end up scratching the surface, and then running off to the next SoC
<libv> never achieving anything.
<libv> just leaving a little mess every few meters, where others are then free to tread in
naobsd has joined #linux-sunxi
<rz2k> about glue - I like freescale in this aspect, they have customized version of ubuntu 11.10 with everything already prepared to use. Like VPU drivers already compiled in gstreamer
<rz2k> and many more
<hno> oliv3r, yes, no work today. Still trying to get that vacation thing started...
<oliv3r> hno: good! vacation is important :)
<oliv3r> rz2k: that's still blob-glue
<oliv3r> we want sources :)
<rz2k> they have sources for each package
<rz2k> you can grab it and build your own image
<libv> rz2k: this is one of my gripes with hardkernel and their odroid
<libv> rz2k: you can dl android and ubuntu images... and that's pretty much it
<mripard> oliv3r: freescale is probably the architecture that have the better mainline support
<libv> you have a really uphill battle to do anything else
<libv> and good luck in a year or two, when you might want to use a newer distribution
<libv> this is beyond the limitations of binaries though, you just get an image, and have no idea what is different from a standard ubuntu
hegemoOn has left #linux-sunxi [#linux-sunxi]
<rz2k> oliv3r: they have only one problem - the GPU (vivante) drivers are only armEL, no armhf :( everything else, like gstreamer support, udev patches and etc is opensource @ download section
Superpelican has quit [Ping timeout: 246 seconds]
<rz2k> libv: odroid never cared about the software quality, I bet because samsung itself doesnt care about it. for example, s5p-mfc in mainline kernel is horribly broken and will never work without 5 patches that you can get emailing the author of this driver.
<oliv3r> rz2k: i bet there's no VPU sources :)
<rz2k> oliv3r: its firmware blob that loads into some place of memory, everything else, iirc, is free.
<rz2k> (frontend I mean)
<libv> rz2k: yeah, my experience from the display side is the same, pretty f-ing useless indeed
<libv> rz2k: but at least samsung actually employs people to deal with code
<libv> allwinner on the other hand...
<libv> we are their developers :p
<oliv3r> i have that feeling too
<rz2k> oliv3r: samsung's VPU s5p-mfc has same idea - blob loads at boot time and then you have v4l2 interface, but freescale actually gives you a frontend
<rz2k> if anyone is interested, you can grab GK802 dongle
<rz2k> its $80
<oliv3r> and raspberry pi only has a blob to boot
<oliv3r> all excuses and exceptions :)
<oliv3r> we want something blob-less
<oliv3r> with cedarx-re work going on, that's actually possible in time
<ssvb> oliv3r: I'm fine with being an unpaid allwinner developer as long as they at least provide full documentation
<ssvb> oliv3r: not employing their own developers just makes things happen slower
<ssvb> oliv3r: and sometimes it is even good, because frankly speaking, I'm a bit freaked out by samsung approach
<oliv3r> what is samsung's approach?
<oliv3r> i have no huge issue with it, but documentation, really
<Tsvetan2> ssvb: allwinner would never understand why they need linux at all and things with Rockchip are x10 times worse than Allwinner, Rockchip is Allwinner 1.5 years ago
<oliv3r> we need it if they want our help.
<ssvb> oliv3r: no important documentation is available, and their developers are pushing the stuff of questionable quality to mainline :/
<rz2k> oliv3r: actually, I dont think that it can be called a blob-driver, driver itself is free, only firmware that gets loaded into the VPU's memory is closed source.
<oliv3r> allwinner is actually 'abusing' us if I belive hipboi, in that they are very open and support etc
<oliv3r> rz2k: if you put the entire 'driver' int he blob and only have a shim that passes messages (think rpi-opengl blob)
<oliv3r> in that regard, allwinners design isn't bad
hipboi_ has quit [Ping timeout: 248 seconds]
<ssvb> oliv3r: basically samsung is kinda suggesting to take a back seat, and just consume whatever they toss over the fence
<rz2k> i remember, Eva from allwinner actually sent people here when questions about linux kernel were asked in support :p
<ssvb> oliv3r: and because they are only caring about android...
<oliv3r> ssvb: ah ok, 'bow to samsung'
<ssvb> oliv3r: about the raspberry pi firmware, I find it most amusing that the noisy people to complain about these 'blobs' were the beagleboard folks
<oliv3r> really?
<oliv3r> the irony
<oliv3r> libv was quite verbose too :)
<rz2k> lol
<mripard> ssvb: except that you can boot the beagleboard without any blob
<ssvb> oliv3r: omap chips used in beagleboard boot in non-secure mode thanks to some restrictive rom, and the access to a lot of hardware registers is locked out
<ssvb> mripard: ^
<ssvb> mripard: it caused some fckup when applying cortex-a8 errata workarounds, and also misconfigured dram controller in omap4430 simply had to remain misconfigured
FR^2 has joined #linux-sunxi
<libv> oliv3r: i just pointed out the actual structure of the videocore graphics driver stack, and exposed that the rpi foundation was actually massively overplaying its hand
<libv> oliv3r: airlied had to take it a few steps further, and spewed useless bullshit because of it
<libv> "_i_ will never accept that in the kernel"... great, this while the same SoC has mach support...
<oliv3r> hehe
<arete74_> /msg hipboi hi
<libv> idiot.
<ssvb> mripard: at least the broadcom firmware can be fixed, if a bug is properly reported - https://plus.google.com/u/0/113201731981878354205/posts/hzSMY2wKziK
<libv> but what do you expect from brainless idiots who always have to be loud, whether they have something to say or not, who even go as far as killing real open source projects as they themselves are not seen to be leading them
\\Mr_C\\ has joined #linux-sunxi
<oliv3r> so true
<oliv3r> *code monkey goes back to code*
geecko has joined #linux-sunxi
<geecko> 491MB ram, yay :D
<geecko> now zram
<Turl> oliv3r: go go go :p
hipboi_ has joined #linux-sunxi
<oliv3r> Turl: you better help me when i get stuck :)
* Turl hands oliver a copy of torvalds' repo
<wingrime> when we can expect new SoC form AW ?
<FR^2> tomorrow.
<oliv3r> Turl: the problme is, what i'm doing, nobody did i think
<oliv3r> Turl: so little/no examples to follow
<oliv3r> greg's blog post doesn't even explain it
<Turl> oliv3r: implement soc bus support :p
<oliv3r> if i did a 'normal' sysfs entry, easy, but binary ones are not done
<oliv3r> Turl: hah
<oliv3r> Turl: i lack skills for that :)
Quarx has joined #linux-sunxi
<Turl> oliv3r: looked quite trivial to me
<oliv3r> writing the whole framework
<Turl> the framework is already there
<Turl> just needs sunxi stuff :)
<oliv3r> ohh
<oliv3r> ok; i'll put it on my todo :)
<oliv3r> let me get this stuff merged first :S
<wingrime> Turl: who can do debianizing?
<wingrime> Turl: I want see all staff only with debbootstrap
<Turl> oliv3r: yeah focus on SID for now :)
<Turl> wingrime: bfree I think :)
Black_Horseman has joined #linux-sunxi
Black_Horseman has quit [Changing host]
Black_Horseman has joined #linux-sunxi
<wingrime> anyone tryed use SDL with opengles2 backend?
<wingrime> also no see any lima build/install manual
<Turl> wingrime: because it cannot do anything other than play q3a demo yet :p
<ssvb> wingrime: I think I tried, but it did not work out of the box
<ssvb> wingrime: the whole GLES support story is pretty grim in the open source software
<wingrime> Turl:ssvb: SDL i think can do
<ssvb> wingrime: I think there were several GLES enabler forks of SDL
<wingrime> ssvb: I saw sdl2.0 have such support
<ssvb> wingrime: but now I have seen the news that the upstream SDL has finally pushed the next major release out, and GLES support should be there
<ssvb> yep
<wingrime> ssvb: I thinking about using SDL as video-out
<ssvb> wingrime: disp layers did not work for you?
<wingrime> ssvb: I want mplayer
<ssvb> just ping me harder for proper Xv support
<wingrime> ssvb: I thinking about write disp support myself for mplayer, but it will be outdated anyway
<ssvb> but if you also want CedarX decoding, things become a bit more complicated
<oliv3r> ssvb should worry about disp stuff so that wingrime can focus on RE-ing :)
<ssvb> wingrime: like this one http://mplayer.garage.maemo.org/ ? :)
<wingrime> oliv3r: we need disp for output anyway
<wingrime> oliv3r: cedar work faster with disp together
<atiti> you guys are awesome :)
<ssvb> wingrime: that was my patched mplayer fork, worked pretty good on a 252MHz ARM9E processor
<wingrime> ssvb: cool, how you make it fly?
<ssvb> wingrime: mplayer supports many video out plugins (the x11, xv, gl, fbdev, ... are all plugins), you just need to implement a new one
hipboi_ has left #linux-sunxi ["Leaving"]
<ssvb> wingrime: but as I said, a "cleaner" solution is support for Xv overlay in the xorg driver
<ssvb> wingrime: so that no modifications are necessary for mplayer
<wingrime> ssvb: agree Xv can be used again when we drop disp
<ssvb> wingrime: still it might be slowed down by an extra buffer copy
<atiti> and X is a memory hog
<ssvb> atiti: how so?
<wingrime> ssvb: why X11 can't use memory mappings
<ssvb> atiti: most of the memory in xorg is allocated on behalf of the applications
<ssvb> wingrime: it uses shm
<atiti> could be
<wingrime> ssvb: as disp can be used for UYV , YCrCb , XV even for software decoding can do much help
<ssvb> wingrime: yes
<ssvb> wingrime: technically the scaling and colorspace conversion can be done quite efficiently with NEON (though it is not done yet in mplayer/ffmpeg!), but most important is video playback without tearing
eebrah is now known as eebrah|away
<wingrime> ssvb: also I still have no idea how make cedarx work with mmu'ed memory
<wingrime> ssvb: It will be cool remove reserved memory for it
dragonn has joined #linux-sunxi
<ssvb> wingrime: cedarx will not work with mmu, it needs physically contiguous memory, which needs to be mapped to userland
<ssvb> wingrime: CMA is the right keyword
<ssvb> wingrime: without CMA we have to use boot time reservations
<wingrime> ssvb: so mail need physically contiguous memory too?
<ssvb> wingrime: no, mali is the most problem free driver with regards to memory reservations
<ssvb> wingrime: mali has its own mmu and can work with arbitrary memory pages
<wingrime> ssvb: CMA awalible on current 3.0/3.4 ?
<ssvb> wingrime: no, but CMA can be backported
<ssvb> wingrime: you can search the linux-sunxi mailing list for the older CMA related posts
<wingrime> ssvb: interesting
<wingrime> ssvb: it still not mainlained?
<wingrime> ssvb: I see CMA have patches for 2.6.39
<ssvb> wingrime: it is
<ssvb> wingrime: one of the kernels after 3.4
<ssvb> wingrime: don't remember which one exactly, but you can google for it
<rellla> is linux-sunxi git repo not forkable atm?
notmart has joined #linux-sunxi
notmart has quit [Changing host]
notmart has joined #linux-sunxi
tinti has joined #linux-sunxi
_BJFreeman has joined #linux-sunxi
_BJFreeman is now known as BJfreeman
atiti has quit [Ping timeout: 260 seconds]
ykchavan has joined #linux-sunxi
soul has quit [Ping timeout: 245 seconds]
Tartarus has joined #linux-sunxi
jlj has joined #linux-sunxi
Superpelican has joined #linux-sunxi
vicenteH has joined #linux-sunxi
tinti_ has joined #linux-sunxi
geecko has quit [Quit: Quitte]
ganbold has quit [Ping timeout: 246 seconds]
ganbold has joined #linux-sunxi
rellla has quit [Quit: Nettalk6 - www.ntalk.de]
<wingrime> jemk: ping
<wingrime> libv: is there any lima install/test manual for a10/a13 (not q3 please)
<wingrime> Tech: tumb2 works?
<wingrime> Tech: for kernel
<wingrime> Tech: last time I tryed , kernel even not started up
<wingrime> Trul:^
<wingrime> Turl:^
<jlj> has the state of the allwinner OTG usb driver changed any the last months? (was kinda unstable for some things last time I tried)
<Turl> wingrime: I don't know
<wingrime> jlj: I sended some fixes, serval mounth ago, It must be workable
<wingrime> jlj: but need some .config magic
<jlj> wingrime: ok, thanks
<wingrime> jlj: you need load choosed driver manualy
<libv> wingrime: make install
<wingrime> libv: can it SDL with opengles2 backend? or only q3?
* libv rolls his eyes
nove has joined #linux-sunxi
<wingrime> libv: lima , not blob
<libv> wingrime: lima is not a driver yet.
<FR^2> libv: I own a cubieboard2 (A20), where could I get the matching kernel (and modules)? In the installation I'm currently using the mali module is missing.
<wingrime> libv: ops
Superpelican has quit [Read error: Operation timed out]
FR^2 has quit [Quit: Connection reset by peer]
hglm has joined #linux-sunxi
<hglm> wingrime: I have the same experience with a Thumb2 kernel, it compiles but doens't boot, no console output. I think Thumb2 kernel has never worked for linux-sunxi. I added some comments to the wiki about this (http://linux-sunxi.org/ARM/Thumb-2#Status_of_Thumb-2_support_for_linux-sunxi). Userland Thumb-2 seems to work fine.
Black_Horseman has quit [Ping timeout: 264 seconds]
<oliv3r> Turl: are you around?
<Turl> oliv3r: sup
<oliv3r> good
<oliv3r> cause i looked over everything and I don't see why it doesn't work
<rz2k> hglm: any chance for you to attach jtag?
<oliv3r> let me get some pastebin magic going
<rz2k> hglm: hno attached OpenOCD jtag via ftdi2232, iirc. other OpenOCD supported adapters should work too
<hglm> rz2k:I only have a tablet, USB serial console gives no output but it is probably too late in the booting process.
<rz2k> do you have any development boards with ftdi2232? like, Xilinx fpga kits, beageboard?
<rz2k> they all use this MCU and it can be used for sunxi jtag
<rz2k> s/beageboard/beagleboard/
^vincenzo^ has quit [Remote host closed the connection]
<rz2k> busblaster from dangerous prototypes can be also used
^vincenzo^ has joined #linux-sunxi
<hglm> rz2k, no I don't. I am not very experienced with remote debugging.
<rz2k> you should try it if you are doing such low level stuff like thumb2 compiling
<hglm> rz2k: Yeah it would be useful to see where it fails. I could also try disabling most drivers.
<oliv3r> Turl: ok here's the paste http://paste.debian.net/14410/
notmart has quit [Quit: notmart terminated!]
Black_Horseman has joined #linux-sunxi
Black_Horseman has joined #linux-sunxi
^vincenzo^ has quit [Remote host closed the connection]
<Turl> oliv3r: does that even compile? you have references without definition :P
^vincenzo^ has joined #linux-sunxi
<oliv3r> Turl: what bit; no it gives me a warning: warning: initialization from incompatible pointer type
<Turl> oliv3r: pretty much all of it
<oliv3r> for .attrs = sunxi_sid_attrs,
<oliv3r> i only copied the relevent bits; want the whole file? :p
<Turl> oliv3r: yeah and that's defined under it
<Turl> need to be over it :p
<oliv3r> i copy pasted the stuff in order so its readable
<oliv3r> not so its compilable :p
<Turl> well I found it the reverse :P was like wtf where's it
<Turl> nevermind though :P
<oliv3r> it was to make explain' easier :p
<oliv3r> here's the thing in its entirity
<oliv3r> i know things could probably be shortened but I wanted to have it working the full way first :p
<oliv3r> but line 103 gives me a warning that I don't follow
<Turl> oliv3r: yeah you have an issue there
<oliv3r> but what
<Turl> sunxi_sid_attrs should be
<Turl> struct attrib sunxi_sid_attrs[] = {...} (no pointer)
<Turl> let me check again
<oliv3r> , NULL,
<oliv3r> it says though, **attrs;
Quarx has quit [Read error: Connection reset by peer]
eebrah|away is now known as eebrah
<Turl> oliv3r: maybe the const is making it incompatible
<oliv3r> yeah i was looking long at the sensor stuff
<oliv3r> but it's quite different still
<oliv3r> actually, i took it from there
<oliv3r> or was inspired by :)
vincenzo has joined #linux-sunxi
<oliv3r> that's what makes it so different
<oliv3r> warning: initialization from incompatible pointer type
<oliv3r> made zero difference :)
<oliv3r> because I didn't save it
<oliv3r> ok seems to work
<oliv3r> work == compile :)
<oliv3r> Turl: i don't understand how the const makes it incompatible
vincenzo has quit [Client Quit]
vincenzo has joined #linux-sunxi
^vincenzo^ has quit [Ping timeout: 245 seconds]
<Turl> usually if you feed a const value to a nonconst thing gcc will complain because you lose the const property
<oliv3r> yeah, but i think it has an error named after that
<oliv3r> and the other thingers are non-const
<oliv3r> so why no complaints there?
<Turl> Uncompressing Linux... done, booting the kernel.
<Turl> and it dies
<Turl> thumb2 on mainline
<oliv3r> yeah
<Turl> for those who were asking :p
<oliv3r> did that a few weeks ago
<oliv3r> check the logs :)
<oliv3r> mripard was shouting at me for doing it :)
eebrah is now known as eebrah|away
<hglm> Turl: So that's on mainline. Some sunxi-specific part that is present in mainline must be broken for thumb-2 then?
Superpelican has joined #linux-sunxi
<Turl> hglm: or maybe thumb2 is broken and nobody noticed because nobody uses it :p
<hglm> Turl: Possible, but it must have been working in the past looking at work that was done for it.
notmart has joined #linux-sunxi
<hglm> There are even some Thumb2-only CPUs that are supposed to be supported I think.
<oliv3r> wtf my uSD card just got real warm, hot rather
<oliv3r> and it cracked (or was cracked)
<Turl> oliv3r: short?
<oliv3r> it was my favorite uSD test card :(
<oliv3r> 128MiB lost to the world
<Turl> it died?
<Turl> also, you had a 128M sdcard? :O
<oliv3r> yep dead
<oliv3r> i don't know if it cracked due to heat, or cracked due to transport and heated from that
<oliv3r> though that sounds likely
<oliv3r> and yeah, it came from an really old phone
<oliv3r> but 128 is plenty for u-boot + mainline kernel :)
<oliv3r> i now have 2 512 test cards, 1 for a10, 1 for a20 :)
<oliv3r> the 512 was my a20 test card
<Turl> oliv3r: I use a 16G card on my olinuxino which I borrowed from my phone
<Turl> conveniently the fat partition started at like 3M so I could dd uboot just fine and still use it on phone ;)
<oliv3r> :)
<oliv3r> lucky
Superpelican has quit [Quit: Konversation terminated!]
[7] has quit [Disconnected by services]
TheSeven has joined #linux-sunxi
wingrime has quit [Ping timeout: 248 seconds]
TheSeven has quit [Ping timeout: 246 seconds]
n01_ has joined #linux-sunxi
nove has quit [Quit: nove]
jlj has quit [Ping timeout: 256 seconds]
<oliv3r> Turl: it doesn't work :(
<oliv3r> unless it creates the eeprom thing elsewhere :p
<Turl> oliv3r: can you send me a full patchset in a paste?
jlj has joined #linux-sunxi
<oliv3r> the sysfs tree is created and all, just the eeprom thing is gone
<Turl> I'll have a look at it, I have my olinuxino on and tftp running :p
<oliv3r> Turl: course
<oliv3r> :)
eebrah|away is now known as eebrah
<Turl> oliv3r: is it /sys/devices/1c20000.soc/1c23800.eeprom/driver/eeprom?
<Turl> I see it but it causes a crash :P
TheSeven has joined #linux-sunxi
<Turl> oliv3r: also on /sys/bus/platform/drivers/sunxi-sid/eeprom
eebrah is now known as eebrah|away
<oliv3r> ohh its in DRIVER eeprom
<oliv3r> i should have done a 'find' :p
<oliv3r> but it crashes
<oliv3r> that's bad
<oliv3r> but why :( it doesn't crash when I do the normal create_bin_file thing
<oliv3r> so something in that chain must be wrong
<oliv3r> i gues the .attr = sunxi_sid.attr;
<Turl> LDD3 says
<Turl> Binary attributes must be created explicitly; they cannot be set up as default attributes. To create a binary attribute, call:
<Turl> int sysfs_create_bin_file(struct kobject *kobj, struct bin_attribute *attr);
<oliv3r> but greg told me i HAD to do it this way
<oliv3r> he even blogged about it
<oliv3r> greg WROTE ldd3, so he should know?
<oliv3r> time to hit the ML again then :S
<libv> co-wrote
<libv> only the third edition
<oliv3r> yeah, i know
<oliv3r> but i think he wrote that section :)
<oliv3r> unless mripard sees anything suspecious that is :)
<Turl> oliv3r: you know what it's doing?
<Turl> it's calling into the size member as if it were .show(..) of a nonbinary attribute :)
<Turl> uglyhacked it as follows and added a printk and indeed it's the case :P
<Turl> static struct bin_attribute sid_bin_attr = { .attr = { .name = "eeprom", .mode = S_IRUGO, }, .size = (u32)&sid_read,//SID_SIZE, .read = sid_read,
<Turl> };
atiti has joined #linux-sunxi
atiti_ has joined #linux-sunxi
atiti has quit [Ping timeout: 245 seconds]
<Turl> oliv3r: # cat /sys/./bus/platform/drivers/sunxi-sid/eeprom|hexdump
<Turl> 0000000 2516 d341 4850 3759 3530 3070 0204 6306
<Turl> 0000010
<oliv3r> is taht right for you?
<oliv3r> is that your sid?
<oliv3r> looks like byte endianess is wrong
<oliv3r> 1625 is your sid
<Turl> I dunno if it is my sid :P
<oliv3r> 1625 is your soc ID isn't it
<oliv3r> looks fine, except byte endianess then
<hno> Turl hexdump -C is easier to read.
<Turl> I hacked it up to work with a non binary thing
<Turl> # cat /sys/./bus/platform/drivers/sunxi-sid/eeprom|hexdump -C
<Turl> 00000000 16 25 41 d3 50 48 59 37 30 35 70 30 04 02 06 63 |.%A.PHY705p0...c|
<Turl> 00000010
<oliv3r> well yeah, that works then :p
<oliv3r> you changed the 'read' function to a 'show' function
<oliv3r> so that's the reason it crashes then
<Turl> yes, and had to skip all the kobj to platform stuff
<oliv3r> yeah
<oliv3r> well if its just to show a point; yeah
<Turl> because it would return me null stuff somehow
<oliv3r> if it has to be a textual sysfs entry, so it be, but i still prefer binary
<hno> Hm.. is all of them having a printable string in char 4-11?
<Turl> yeah ask greg :P
eebrah|away is now known as eebrah
<Turl> hno: yeah PHY kind of makes sense in the context
<Turl> but it might be just a coincidence
<atiti_> what is that?
<atiti_> unique serial number?
atiti_ is now known as atiti
<hno> Turl, how does it make sense?
<Turl> hno: well, PHY :P eth PHY
ganbold__ has joined #linux-sunxi
<Turl> atiti: yes, or crypto keys if you wish to
<hno> Turl, SID have nothing to do with ethernet.
<Turl> atiti: also useful to identify SoC
<atiti> Turl: sweet, is it guaranteed to be unique per SoC?
<oliv3r> you can use SID for MAC address
<hno> And no, at least char 4 is not printable on all.. 50% have 0x80 there.
<oliv3r> i think hansg does that with ones that don't have one
<Turl> hno: I know, but PHY "makes sense", if it said CAR it wouldn't
<hno> oliv3r, not realy. You can generate a inofficial MAC from it, but it's not a MAC.
<Turl> atiti: I dunno, some of them have all 0s, like they forgot to burn them :)
<oliv3r> ok we do inoffcially
<Turl> oliv3r: feel free to add to wiki btw, this is a10s olinuxino micro
<oliv3r> but a manufacturer could store their real one, next to the soc ID and a short serial
<oliv3r> Turl: thanks
<hno> 3 of my boards have all 9.
<hno> all 0.
<atiti> ah
<atiti> that sucks kinda
torindel has joined #linux-sunxi
<hno> oliv3r, yes, but it's easier to just stuff the MAC into the NAND.
<oliv3r> of coruse
<oliv3r> just 'an' option
<oliv3r> also, this can be for those really low cost devices
slapin_nb has joined #linux-sunxi
<hno> oliv3r, really low cost devices do not have ethernet.
<oliv3r> it's just an option, not a requirement :)
hurtigbuffer has joined #linux-sunxi
<hno> The SID could in theory be used for a trusted boot path, but from what I can tell it's not implemented.
ganbold has quit [Ping timeout: 248 seconds]
<hno> so for now I consider it just an optional serial number in structured form.
ZaEarl__ has quit [Ping timeout: 248 seconds]
jelly-home has quit [Ping timeout: 248 seconds]
torindel_ has quit [Ping timeout: 248 seconds]
slapin_n1 has quit [Ping timeout: 248 seconds]
<oliv3r> and entropy seeding :)
FR^2 has joined #linux-sunxi
notmart_ has joined #linux-sunxi
notmart has quit [Read error: Connection reset by peer]
atiti_ has joined #linux-sunxi
atiti has quit [Ping timeout: 276 seconds]
alcides has joined #linux-sunxi
eebrah is now known as eebrah|away
eebrah|away has quit [Read error: Connection reset by peer]
<hno> oliv3r, it's not really an entropy source. But adding it to the entropy pool at least do no hurt..
<hno> but do nothing to improve the entropy of a single server.
notmart_ has quit [Quit: notmart terminated!]
n01_ has quit [Read error: Operation timed out]
dragonn has quit [Ping timeout: 252 seconds]
dragonn has joined #linux-sunxi
dragonn has quit [Client Quit]
dragonn has joined #linux-sunxi
dragonn has quit [Read error: Connection reset by peer]
dragonn has joined #linux-sunxi
dragonn has quit [Client Quit]
dragonn has joined #linux-sunxi
dragonn has quit [Client Quit]
dragonn has joined #linux-sunxi
hglm has quit [Quit: leaving]
dragonn has quit [Ping timeout: 240 seconds]
vrga has joined #linux-sunxi
<vrga> 'lo folks. got a interesting one, is there a way to pull script.bin out of a pre-existing .img file provided by the tablet manufacturer? sadly, my tablet is proving to be unrootable, so i cant get it from there, and i havent found anything on the topic of working with it around the net.
hurtigbuffer is now known as jelly-home
<Turl> there are some tools to unpack the images, yes
ykchavan has quit [Quit: Leaving]
rz2k has quit []
<vrga> Turl, got any names for the tools in question?
<vrga> i have spent the last 4 hours reading up on all the fun and i've missed those pages -.-
FR^2 has quit [Quit: und weg...]
<vrga> Turl, thank you :)
paulk-desktop has quit [Quit: Ex-Chat]
<Turl> vrga: you're welcome
naobsd has quit [Quit: Page closed]