<gzamboni>
yes i want one, im need to fully understand the language
vicenteH has quit [Ping timeout: 256 seconds]
<mnemoc>
h&s is perfect for that
<gzamboni>
i bougth some books: Building Linux Systems from o'reilly, linux device drivers from o'reilly and Beggining Linux programming from wrox.
<mnemoc>
after that, get love's linux book to learn about the kernel and the extensions the kernel uses
notmart has joined #linux-sunxi
notmart has quit [Changing host]
notmart has joined #linux-sunxi
<gzamboni>
Linux kernel dev from love is to complicated for me :P i could understand some stuff but i need some bases
<mnemoc>
first learn C ;-) .... H&S
<gzamboni>
i know C, not fully. but i'm getting some warnings when compiling. like warning: ISO C90 forbids mixed declarations and code
<mnemoc>
gcc -std=c99
<mnemoc>
you have to tell gcc what language you are building
<mnemoc>
or it will guess, and it will probably guess wrong
<mnemoc>
also don't forget -Wall -Wextra
<gzamboni>
isnt it on the makefile ? im building the kernel modules using make: make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- INSTALL_MOD_PATH=output modules_install
<mnemoc>
uhm
<mnemoc>
building in-tree you shouldn't have to care
<mnemoc>
so go and fix your warnings
<gzamboni>
:)
<gzamboni>
doing it
<gzamboni>
anyway thank you for the C reference, i will buy the book
djahma has quit [Ping timeout: 240 seconds]
jemk has quit [Ping timeout: 268 seconds]
djahma has joined #linux-sunxi
Soru has joined #linux-sunxi
jinzo has joined #linux-sunxi
jinzo has joined #linux-sunxi
jemk has joined #linux-sunxi
FR^2 has joined #linux-sunxi
<oliv3r>
mnemoc: omg wb!
<oliv3r>
where have you been al lt his time
\\Mr_C\\ has joined #linux-sunxi
popolon has joined #linux-sunxi
tzafrir has joined #linux-sunxi
<mnemoc>
oliv3r: first helping a friend to move, then recieving my stuff from spain and then moving myself....
massi_ has joined #linux-sunxi
panda84kde has joined #linux-sunxi
<hramrach>
ohai and wb :)
<hramrach>
gzamboni: it might be also good idea to read what the warning means rather than reading the standard if you have some idea about C already
<mnemoc>
still need to assemble stuff and buy a desk, but I finally have a permanent location (hopefully) and wifi/cable
<hramrach>
oh yeah, assembling stuff
* hramrach
gleans at the heap of boxes in the corner
<mnemoc>
*g*
<oliv3r>
mnemoc: oh you've moved! sweeet!
vicenteH has joined #linux-sunxi
<oliv3r>
btw, also -Werror :)
<hramrach>
can't build kernel with that
<oliv3r>
i'm not supprised
<mnemoc>
-Werror is evil
<mnemoc>
never commit that
<mnemoc>
warnings are warnings and not errors for a reason
<mnemoc>
if they were supposed to be errors, they would be errors. not warnings
<hramrach>
they are only warnings because 1) everyone has buggy code that would not compile with werror
<hramrach>
2) there are bugs in compler that flag warnings on correct code
<oliv3r>
warnings are warnings and should be fixed
<hramrach>
chromebook kernel compiles with -Werror
<hramrach>
but only the defconfig with carefully selected few drivers
<hramrach>
want to attach more harware - does not build
<mnemoc>
oliv3r: not all warnings should be fixed
<mnemoc>
oliv3r: they need to be REVIEWED
<mnemoc>
but not assumed as errorrs
<mnemoc>
it's not at error to not use an argument
<hramrach>
you should be able to tell the compiler that the argument is required by interface definition but you are really not using it
<hramrach>
but only hacks exist for that
<mnemoc>
I do #define UNUSED(x) UNUSED_ ## x __attribute__((unused)) .... but not using such thing doesn't make it an error
<mnemoc>
it's *just* a warning
<mnemoc>
the warnings caused by libev's .h are specially annoying
<mnemoc>
but the only way to "fix" them is to replace all his macros with dedicated static inline functions
<mnemoc>
(which I do)
<mnemoc>
but his macros are more readable, even if gcc hates them
<oliv3r>
so you slepe in a proper bed once again?
<mnemoc>
not yet :p
<oliv3r>
when will you be so lucky?
<mnemoc>
inflated one currently. bed to be assembled. mattress in 2w
<oliv3r>
2W? ouch
<mnemoc>
at least it has a dead line :)
<oliv3r>
heh; they said :)
<oliv3r>
i'll ask you again in 2W's
<oliv3r>
i need to commit my u-boot patches I think
<mnemoc>
oliv3r: :)
jemk has quit [Ping timeout: 246 seconds]
Black_Horseman has joined #linux-sunxi
jinzo has quit [Quit: Leaving]
<oliv3r>
there, u-boot patches sent
<oliv3r>
hno should decide what to do with the ones that I have on my tree until u-boot either accepts or ignores them.
<oliv3r>
I extracted an old iPhone 3gs battery from a phone so I can potentially use that as backup power source :D
<oliv3r>
4.51 W/hr so I wonder how long it can be used to power the A20
<popolon>
Hi
<oliv3r>
1220 mAh nice
<popolon>
the DPMS features standbu and suspend seems to works well, but with fbturbo driver (at least), DPMS off seems to lock the screen off
<popolon>
there is the following error in dmesg and console : disp clks: lcd 146000000 pre_scale 1 hdmi 146000000 pll 219000000 2x 1
<popolon>
A workaround: Add in /usr/share/X11/xorg.conf.d/99-sunxifb.conf the line Option "OffTime" "0"
<popolon>
so still get benefits of standby and suspend mode
<popolon>
do you think I can add it in the wiki, with comment : due to current bug
<popolon>
I'm afraid to forgot to rm it when this bug will be resolved
<popolon>
perhaps a general FAQ page could be a good idea ?
<oliv3r>
heh
<oliv3r>
probably not a bad idea :)
<mnemoc>
that's why it's an open wiki ;-)
<Montjoie>
hello oliv3r, do you have news about sunxi-temperature.c ?
<popolon>
added in Binary drivers & Binary drivers/fr for now
<popolon>
Will make a general FAQ later, I've wrote in some textfiles some errors I encountered
<buZz>
dont forget Binary drivers/cn and Binary drivers/es
<buZz>
>:)
<popolon>
ssvb, do you think this could really be linked to your fb driver ?
<popolon>
buZz, will try :)
<popolon>
there is no zh documentation for now ?
<mnemoc>
translating tutorials makes sense, translating documention.... not so sure
<buZz>
nah i was kidding
<buZz>
french is only the 10th most spoken language in the world
<buZz>
there are so many more popular languages
<mnemoc>
but everyone can read english anyway
<popolon>
chinese is the most popular and spanish too
<popolon>
sorry
<oliv3r>
Montjoie: no i do not :( I'm waiting for mnemoc to push lichee-3.4 to his github ;)
<popolon>
chinese mandarin => english => (hindi ?) => spanish => portuguese
<popolon>
mnemoc, documentation is a kind of tutorial
<mnemoc>
I'm not talking about world population, but about our target audience
<popolon>
yes, I understood, that was an answer to buzz
<mnemoc>
what % of the chinese and india population actually may be interested in hacking a sunxi device?
<buZz>
same with french ;)
<popolon>
at least some cubietech people
<popolon>
same with english
<mnemoc>
sure, but they can READ english
<buZz>
there are quite big chinese forums for sunxi devices
<popolon>
same with world population in fact
<mnemoc>
even if they are ashamed to write it
<buZz>
everybody should just stick to english
<mnemoc>
in this field. yes.
<mnemoc>
everyone into programming can read english
<popolon>
at least a little
<buZz>
if they cant, they should learn
<mnemoc>
enough for some technical documentation and tutorials
<buZz>
and offering documentation in french is not motivating these people to speak the language the rest of the ppl speak
eebrah|noPC has quit [Ping timeout: 245 seconds]
<mnemoc>
it's not that we are writting fancy novels
<popolon>
I seen that lot of french speaking people are active on ubuntu-fr documentation
<popolon>
and that's used by lot of people
Gerwin_J has joined #linux-sunxi
<buZz>
popolon: ubuntu is for n00bs
<popolon>
and that's about the same kind of stuff
<buZz>
sunxi isnt
<popolon>
buZz, computer science is for noobs
<buZz>
i am talking about target audience :)
<mnemoc>
but cs noobs need to be able to read english anyway
<buZz>
ubuntu is the 'my first sony' of linux distros
<popolon>
that was not my first distro, I used, linux from scratch several years, redhat suze, debian, slackware... and now I use xubuntu
<buZz>
for many ppl it is
<popolon>
because I'm tired to recompile everything, and because of ppa etc...
fredy has quit [Excess Flood]
piscodig has joined #linux-sunxi
<mnemoc>
popolon: sure, me too. but he means that ubuntu is the distro of choice for people without a linux background.... and that reflects in their support channels and documentation
fredy has joined #linux-sunxi
<mnemoc>
so you can't compare the kind of contributions in ubuntu-$randomlanguage with ours
<popolon>
perhaps, at least, on some page, french version are more complete than english one now
<mnemoc>
the getting started and frontpages
<popolon>
because I added some tips, it was easier to add in french for me
<mnemoc>
popolon: so go and add the same on the english ones
<popolon>
I try to write back in english after
<popolon>
That's what I done for the DPMS off trick
<oliv3r>
mnemoc: when could you push the lichee-3.4 to the amery github
<popolon>
but at least the documentation is here, someone can translate it later in worst case ^^
<mnemoc>
in the english page you help more people than in the french page
<mnemoc>
oliv3r: tonight
discopig has quit [Ping timeout: 264 seconds]
<oliv3r>
mnemoc: thankyou :)
<mnemoc>
oliv3r: adding a reminder on the phone
<popolon>
I know
<oliv3r>
Montjoie: tomorrow i'll give you details :p
<popolon>
but that's easier for me to write in french
<popolon>
and I've still lot of things to learn on configuration
<popolon>
so step by step
<Montjoie>
thanks oliv3r I will send my current driver anyway:)
<popolon>
and if I can, I will translate it to chinese too
<popolon>
because independant of the proportion of chinese people interested by cubieboard, there should be more people
<mnemoc>
tutorials and overviews, cool. real documentation... gets out of sync FAST
<popolon>
there was already lot of out of sync doc, even in english yes
<popolon>
but that's the same for wikipedia, on which I work a lot :)
<popolon>
(as there are lot of specific topics
HeHoPMaJIeH has quit [Remote host closed the connection]
<popolon>
so need to be update, instead of rewritting a wheel like tutorial
<djahma>
In between yesterday evening and now, someone modified the doc at http://linux-sunxi.org/Fex_Guide in the "sdio wifi configuration" to add modes 8 9 and 10. It reads mode 8 uses bcm40183, from BCM4330 module. How on earth has this guy gotten bcm40183 working? and which kernel branch should be used to get BCM4330 accept modes higher than 6?
<popolon>
djahma, you can add messages on it's user page, it will be notified at next connexion
<popolon>
and could give you answer on your age if you sign your message with ~~~~ (4*~)
<popolon>
s/age/page/
<djahma>
la je comprends plus. comment tu vois celui qui a fait cette modif? et pourquoi devrais-je lui donner mon age?
<popolon>
page
<popolon>
pas age
<djahma>
ok :-)
<popolon>
(faute de frappe)
<popolon>
=> view history
<djahma>
mais c'est qui? qui dois-je contacter
<popolon>
djahma private please
ganbold_ has joined #linux-sunxi
rz2k has joined #linux-sunxi
Black_Horseman has quit [Remote host closed the connection]
FDCX has quit [Ping timeout: 264 seconds]
<oliv3r>
djahma: the SDIO section probably got modified due to the wifi+bt chip on the cubietruck
jemk has joined #linux-sunxi
JohnDoe_71Rus has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
FDCX has joined #linux-sunxi
vicenteH has quit [Ping timeout: 264 seconds]
<hramrach>
oliv3r: no, I just read the source (to which I added link) and dumped the values from there into the table ;-)
<hramrach>
I have no wifi on CT
<hramrach>
is there some?
<popolon>
vlc works just fine with cedarX and defaut linux-sunxi tree
<hramrach>
if you play carefully selected files that don't crash vlc and display correctly and ..
tzafrir has quit [Ping timeout: 256 seconds]
<oliv3r>
hramrach: yeah there's a Broadcom i think BT +Wifi combo
<oliv3r>
if you look at the pcb, below the vga connector, opposite of the RAM, there's a 'metalchip' that'st he BT + Wifi can
<popolon>
hramrach, so I'm really lucky :)
<popolon>
was able to see my box tv channels (unusable in HD, but probably due to my adsl line, never tested), and play HD videos using ethernet
<popolon>
internet-box HD channels use greater bandwidth than common website videos
<popolon>
I was not able to play this kind of video with my desktop computer but the last one
<popolon>
so that's already really good
<popolon>
(in my point of view)
tzafrir has joined #linux-sunxi
<hramrach>
popolon: the TV streams probably use very conservative encoding options
<hramrach>
problems come when you try to play back some random video encoded by some random nerd that likes flipping the checkboxes in their encoding software
<hramrach>
so that it's 'optimized'
<hramrach>
but tehre are many combinations available and very few commenly used and well tested
<hramrach>
oh, the metal chip is wifi
<hramrach>
well, I got no wifi, anyway
<hramrach>
what kernel would I need for that?
<hramrach>
presumably the driver is there but just some GPIO not flipped so the chip is powered off
<hramrach>
or something like that
ykchavan has joined #linux-sunxi
<Tsvetan>
oliv3r ping
<oliv3r>
Tsvetan: pong
<oliv3r>
hramrach: very very likly
<Tsvetan>
oliv3r do you have cubie with 1gbit
<Tsvetan>
we managed to enable the gigabit ethernet but cant make more than 330MBit transfer
<Tsvetan>
and I do wonder if this is A20 problem or something else
<oliv3r>
Tsvetan: that sounds about normal for non-jumbo frames
<oliv3r>
gigabit cards on PCI probably won't make do much more either
<Tsvetan>
a bit dissapointing :)
<oliv3r>
once you enable jumbo frames you can get higher
<Tsvetan>
we try two x86 laptops with gigabit interface too, and the max they do is about 500Mbit
<oliv3r>
but i don't know if the mac (driver/hardware) or the PHY even support jumbo frames
<oliv3r>
fast laptops :D
<oliv3r>
try changin the MTU=9000 on the laptops and retest
<Tsvetan>
in the source is written that they support
<oliv3r>
(on both) without switch/crossover thatshould be possible
<Tsvetan>
cisco switches hard handle MTU=9000 I do wonder if A20 will do it better :P
<oliv3r>
i highly doubt a20 does jumbo frames at all
<oliv3r>
i have a HP switch and that does MTU=9000 just fine
<oliv3r>
Tsvetan: what did you change in the pins to make it work?
<Tsvetan>
there was undocumented pinmux
<Tsvetan>
we found the datasheet which describe them
<Tsvetan>
and now it works
<Tsvetan>
I just wanted to see someone with A20 and Gigabit if does better
<Tsvetan>
or we should not waste more time on this
<Tsvetan>
tomorrow we have to enable the camera and we are done with A20-SOM
<oliv3r>
Tsvetan: the RTL811E datasheet?
<oliv3r>
camera?
<Tsvetan>
A20 datasheet
<oliv3r>
Tsvetan: i haven't tested gigabit yet unfortunatly
<Tsvetan>
yes, our A20-SOM-EVB have 2Mpix@30fps camera
<oliv3r>
Tsvetan: you have one with pinuxes that are differetn from our wiki? (i tried to put it as accurately as possible there)
<oliv3r>
IPcam! :)
<oliv3r>
Tsvetan: i tried to use the gigabit PHY with the emac driver, and while I would expect it work
<oliv3r>
it doesn't
<Tsvetan>
oliv3r yes, the Gigabit pinmux is not complete in the wiki
<Tsvetan>
IPcam with high resolution and OpenCV ;)
<Tsvetan>
doing scene analyzis
<oliv3r>
Tsvetan: if you could get me the info, i'd love to update it
<oliv3r>
i did see that the cubietruck FEX file, uses 3 pins I think is general GPIO's which puzzles me
<Tsvetan>
I will check if the new pdf is not on github and upload it right now, Dimitar found it on the net last Friday
<oliv3r>
ouch, 383 is quite low, but as expected, no jumboframe support
<Tsvetan>
ok, then let assume 330Mbit is OK for now for A20 Gigabit interface
<mnemoc>
>100 :)
<oliv3r>
yeah while I can neither confirm or deny that's normal, it does look quite reasonable imo
<Tsvetan>
maybe it breaks some hopes for A20 servers ;)
<oliv3r>
nah, 330 is still quite nice
<oliv3r>
some driver tweaks can up that a bit; mbus tweaks too probabl
<oliv3r>
Montjoie: your driver seems okay for 3.4 (!TOUCHSCREEN_SUN4I_TS i mean) i'll try to look it later; also it should work for A10 equally, so don't make it sound like it's a A20 only thing
<Tsvetan>
I see imx6 gigabit interface also doesnt make 100MB/s
<aep>
i get flicker that looks like the timing is wrong
hramrach has quit [Remote host closed the connection]
<aep>
like alternating colors on greyscale
<aep>
i assume the difference between "active display period" and "total" is the porch. although i dont understand why the driver is whining and spitting out a formula that doesnt support those numbers
<n01>
aep: no time to see that now, I have to fight with lvds in a couple of week
<aep>
hm only occurs with greyscale. maybe this is something else
ykchavan has quit [Ping timeout: 248 seconds]
<aep>
oh crap. how does greyscale even work? there is not enough bandwidth to code all the values
<aep>
is it like some obscure magic "flip it on and off really fast" ?