<oliv3r>
_hipboi_: tom, i see in the shematic you have not connected pin 14 of the HDMI connector, so cubieboard isn't 1.4 compatible is it?
bsdfox has joined #linux-sunxi
bsdfox_ has quit [Ping timeout: 264 seconds]
bsdfox has quit [Ping timeout: 246 seconds]
bsdfox has joined #linux-sunxi
eebrah is now known as eebrah|away
bsdfox_ has joined #linux-sunxi
bsdfox has quit [Ping timeout: 264 seconds]
<_hipboi_>
oliv3r, i just checke the HDMI specification pin 14 is reserved
<oliv3r>
pin 14 is HEC (HDMI Ethernet CHannel)
<oliv3r>
pin 19 is HEC + HDMI hotplug Detect
<oliv3r>
(HEC has + and - like thernet, but only 1 pair for probably half-duplex operaton)
<oliv3r>
I belive hdmi 1.4 added HEC to the standard
<oliv3r>
or was it even 1.3?
<_hipboi_>
oliv3r, i just find the spec of hdmi 1.3 online, pin 14 is reserved
<oliv3r>
yeah that it was 1.4 that added HEC
<oliv3r>
pin 14 and 19 supply the differential signal of HEC
<oliv3r>
while not super interesting I think, in theory, the idea is, that oyu plug your cubie to ethernet, and use HEC to supply internet to your smart tv
bsdfox_ has quit [Ping timeout: 264 seconds]
<oliv3r>
i'm not entirly sure, if the 1.4 spec Requires HEC or if it's optional for .14
<oliv3r>
the other way around is a little more interesting, say oyu have a smartTV with wifi/ethernet connected, and you want to use the cubie as an additional device, you only need to connect HDMI (with CEC and HEC) and have a 1 cable (+power) solution ;)
<oliv3r>
i'm not sure if a10 even supports hec btw
ojn has joined #linux-sunxi
bsdfox has joined #linux-sunxi
FR^2 has joined #linux-sunxi
steev has quit [Ping timeout: 246 seconds]
ojn has quit [Ping timeout: 248 seconds]
jemk has joined #linux-sunxi
bsdfox_ has joined #linux-sunxi
bsdfox\ has joined #linux-sunxi
vicenteH has joined #linux-sunxi
bsdfox has quit [Ping timeout: 260 seconds]
bsdfox_ has quit [Ping timeout: 245 seconds]
<hno>
oliv3r, A10 do not support HEC. And it's entirely optional in HDMI 1.4.
notmart has joined #linux-sunxi
<hno>
arokux1, emac tftp booting is supported in sunxi u-boot since way back.
<hno>
but you need to set the mac address (setenv ethaddr xx:yy:...), and enable phy power on boards requiring it (gpio set Pxxx).
<oliv3r>
hno: it's optional? i thought 1.4 or 1.4+ it was mandatory
<hno>
oliv3r, as far as I know it's optional and advertised separately. Even on cables.
<oliv3r>
hmm, makes sense it's advertised on cables, since if pin14 is missing, your screwed ;p
<oliv3r>
but i though tthat was the whole point of the 1.4 or 1.4+ certification thing
<oliv3r>
bummer, would have been a neat feature ;)
vicenteH has quit [Read error: Connection reset by peer]
<hno>
oliv3r, it also do not require every equipment to handle 4Kx2K, 3D, increased colour depth, audio return, have all of the available connectors, or many other optional features.
<arokux>
= one .git, multiple working directories.
<hno>
arokux, not really needed. git automatically optimizes storage when you clone a local repository.
<arokux>
hno, it is not about it. it is if you want to work on two branches simultaneously
<hno>
arokux, yes?
<hno>
I don't get the difference.
<arokux>
hno, ok. you have linux tree with branches mainline and sunxi-3.4. you want to work on mainline, so you check it out. but you also want to look at sunxi-3.4 -- so you need this one to check out too.
<hno>
arokux, so you clone anc check out.
<arokux>
hno, you mean you clone again?
<arokux>
hno, and end up with two linux trees?
<hno>
from your local copy.
<hno>
yes
<hno>
without wasting another GB in .git storage.
deasy has quit [Remote host closed the connection]
<arokux>
hno, wait, how can it be without wasting?
<arokux>
hno, if you clone it, it will duplicate .git, or?
<arokux>
hno, so instead of doing that you just use this script, it sets up a bunch of symlinks to you .git and checks out in new working directory.
<hno>
there is two modes. The standard secure mode hardlinks .git. Another mode is using --reference to make git look in both .git folders.
<hno>
arete74, with the symlinks you can easily destroy the other tree by accident.
<hno>
even --refrence isn't entirely safe, but chances are much lower.
<hno>
sorry arete74, meant arokux above.
mcbrick has quit [Quit: Leaving]
<arokux>
hno, hm.. ok, need to read about those options more. :)
<arokux>
hno, strange they were not in the answer to those questions.
<hno>
arokux, I find it strange the question was even asked. As I said git does this automatically.
<hno>
even the method used by --reference is done automatically when hardlinking is not possible.
<arokux>
hno, well, not everybody knows it :)
<hno>
$ du -sk kernel/.git kernel-clone/.git
<hno>
1320940kernel/.git
<hno>
4512kernel-clone/.git
<hno>
after a plain clone.
<arokux>
du -sh linux/ sunxi-3.4/
<arokux>
1.7Glinux/
<arokux>
679Msunxi-3.4/
<arokux>
hno, --^
_BJFreeman has joined #linux-sunxi
_BJFreeman is now known as BJfreeman
<arokux>
du -sh linux/.git sunxi-3.4/.git
<arokux>
922Mlinux/.git
<arokux>
4.2Msunxi-3.4/.git
<arokux>
hno, and .gits --^
arokux has quit [Remote host closed the connection]
<hno>
sorry, mixed up the options a little bit, it's --shared for the "symlinked" mode when cloning a local repo. --reference is much the same but used differently (git clone --reference somelocalrepo someremoterepo)
<hno>
that brings down the kernel .git to 136K.
<hno>
+ whatever you needed downloading from the remote repo in the --reference case.
massi has joined #linux-sunxi
<oliv3r>
so git clone --refrence /projects/kernel /projects/kernel_clone is the most efficient way
<hno>
but read git clone manual so you know what you must not do in /projects/kernel when using this.
adrian has joined #linux-sunxi
<adrian>
hi
<adrian>
i am going to compile kernel for olinuxino a20, i need some advice please
<oliv3r>
mripard_: i'm trying to work in the .data from compatible, and it's working quite well, except for that when I want to create a sysfs binary attribute, we have the .read and the .size field
<oliv3r>
the .size needs to be filled from the .data; which at that point doesn't 'exists' i suppose?
<hno>
arokux1, yes after enabling the PHY power. Without setting the gpio bit the PHY power is not reliable.
<mripard_>
oliv3r: yep. I haven't took the time to get all hno asked me, particularly to extract the BROM
<hno>
tested some weeks ago on mele.
<mripard_>
oliv3r: and I'm not convinced by their argumentation either
<hno>
mripard_, extracting the brom is easy... just put it in fel mode and use fel command to read the brom region.
<mripard_>
so I've not given up on putting it into the kernel
<oliv3r>
mripard_: i think we have the brom extracted, but once i've finished the sid driver and sent it to the ML i'll poke it with a stick
<mripard_>
hno: yeah, I just didn't have much time to play with the boards lately, that's all
<oliv3r>
don't we have an A20 brom?
<oliv3r>
i thought luke supplied us the brom from the eoma68-a20
<hno>
oliv3r, A20 is in my Allwinner-Info repo..
<mripard_>
oliv3r: it's the A31 one that I was refering too
<mripard_>
but yes, for that aspect both behaves the same way
<hno>
what is the question for BROM?
<hno>
SID interaction?
<mripard_>
no, it's not really a question actually. It's just that I mentionned the SMP bit in my A20 patches, and oliv3r was asking about wether it should be fixed in u-boot or not
<hno>
Ok.
adrian has quit [Quit: Ex-Chat]
<mripard_>
and the last time we spoke about this, you actually told me to extract the BROM of the A31
<mripard_>
which I didn't do yet
<hno>
iirc A20 boot0 (or was it boot1) sets it.
<oliv3r>
mripard_: well i'll try to look into the a20 since i don't have a31 to test with
<hno>
but memory a little dim.
<hno>
a20 is easy test. Just boot u-boot from SD and look if the bit is set?
<oliv3r>
from my weak memory, I think we found that it wasn't set at all in the bootloader
<oliv3r>
do we know the address? i'm looking at u-boot right now anyway
<oliv3r>
if it's setable this way, i saw on the ML that it was set using ASM
<hno>
oliv3r, its a cp15 bit.
<oliv3r>
that, can we look at that from u-boot?
<oliv3r>
didn't think the arm registers where mapped to memoryspace
<oliv3r>
(if I say stupid stuff it's because I don't know any better ;)
<hno>
oliv3r, right.. a little code is needed probably.
<hno>
mripard_, do you remember which register & bit it is?
<hno>
instruction is at 4, references [pc] which is already two instructions later, C
fldc has quit [Ping timeout: 245 seconds]
<oliv3r>
ah that's a lot more readable yeah
fldc has joined #linux-sunxi
CoSM0 has joined #linux-sunxi
n01 has quit [Ping timeout: 246 seconds]
fldc has quit [Ping timeout: 245 seconds]
<wingrime>
oliv3r: carp, I still have no idea why no one kernel IR protocol decoder can't decode anyting I send to it
adrian has joined #linux-sunxi
fldc has joined #linux-sunxi
<arete74>
utt
<oliv3r>
wingrime: :(
<oliv3r>
wingrime: i keep getting null pointers and don't know why :)
<wingrime>
oliv3r: ir driver small 300 lies
<hno>
crap, what is it with DNS today? Servers down everywhere I look.. both resolvers and authorative servers.
<oliv3r>
wingrime: how come? shutko's driver was like 3000 lines
<oliv3r>
which ones?
<oliv3r>
seems fine here
deasy has joined #linux-sunxi
<oliv3r>
great, printk now not even working
<hno>
oliv3r, dig +trace cubieboard.org
<oliv3r>
that's actually down
<oliv3r>
:p
<oliv3r>
same issue here anyhow
<oliv3r>
mripard_: is there any reason why a randomly placed printk refuses to output anything?
<hno>
ok, both cubieboard.org and marsboard.com apparently have the same DNS provider, bluehost.com.
<oliv3r>
so bluehost might be having issues
PiyushVerma has quit [Ping timeout: 245 seconds]
<hno>
Looks so. And hopefully the outage at my hosting provider is jus ta coincidence.
<oliv3r>
also down
<oliv3r>
maybe they are overheating!
<mripard_>
oliv3r: it's never executed? :)
<oliv3r>
oh
<oliv3r>
of course
<oliv3r>
sysfs_create_group() wants you to check the return value, with device_create_bin_file I never had to
<oliv3r>
so maybe i'm checking for the wrong return value
<oliv3r>
though if!device_create_bin_file() return; sounds sane
<hno>
oliv3r, there is two IP addresses which looks like different networks, but maybe it's all one and the same after all.. it's depressing how little major players care about protecting their DNS from major outages.
<oliv3r>
hno: what do you mean, reduancy and downtime prefention, I dont pay you to think!
<oliv3r>
mripard_: i would have expected an error from probe if it gets a reutrn -ENODEV however
<wingrime>
oliv3r: IR
<oliv3r>
wingrime: shutko has a 3.4 'ir framework compatible' driver on the ML, turl linked it yesterday
<hno>
With result:damn all our customers suddently dropped off the net completely. damn, not even our emergency web server works to keep contact with our customers, damn, cant even send email via google. All because DNS is down.
<oliv3r>
ouch
<oliv3r>
don't you have your own caching DNS server?
<hno>
well, not mine but bluehost...
<oliv3r>
:S
<oliv3r>
that totally sucks
<hno>
yes, happened to one of the largests DNS providers here in Sweden not that long ago.
<wingrime>
oliv3r: there two kinds on IR driver
<wingrime>
oliv3r: 1) RAW RC
<hno>
but some things are a little hard to protect from.. like how .se managed to screw up the whole zone some year ago due to a misplaced ., and thanks to long TTL it took quite some time to sort out.
<wingrime>
2) keycodes only
<hno>
wingrime, and then there is RAW RC -> keycodes..
<oliv3r>
each website that wants a password gets a unique password
<oliv3r>
though I do result to firefox to remember them all for me
<oliv3r>
i started doing that when i noticed passwords where being sent back to me by mail; 'thank you for registering with our service, your password is ....'
<oliv3r>
that made me just go 'wtf'
<oliv3r>
so each site, gets their own passwd now
<wingrime>
oliv3r: crap, I doing same stuff
<oliv3r>
wingrime: shutko's driver is 3.4 only though
<oliv3r>
so don't worry
<oliv3r>
and his driver is only 350 lines too :)
<oliv3r>
so your doing it very right i suppose
<oliv3r>
mripard_: why, why do these stupid pointers not match :(
<mripard_>
oliv3r: which pointers?
<oliv3r>
because i'm an idiot!
<oliv3r>
when putting the data in, i printed sid_data; but on retrieval i printed &sid_data
<mripard_>
that's a valid reason :)
<oliv3r>
so of course not
<oliv3r>
yeah :)
<oliv3r>
what i did initially was, if (!device_create_bin_file) return;
<oliv3r>
but i never got an error code
<oliv3r>
and that might be the reason why things didn't work beyond that, the node got created, but the rest of the driver got destroyed
<oliv3r>
so removing the ! shoudl fix it now
FR^2 has quit [Quit: Connection reset by peer]
<oliv3r>
but i don't get why i don't get an error message or anything
<oliv3r>
i mean, the driver framework checks the probe's return value doensn't it?
<Turl>
mripard_: hm, forgot to title your cover letter :)
<oliv3r>
or does it silently abort/dstroy stuff
<mripard_>
yeah, it should
<mripard_>
Turl: yeah, I know....
<mripard_>
Turl: it's for the same reason that the one oliv3r just mentionned
<wingrime>
oliv3r: are you tested new driver
<mripard_>
it's "because i'm an idiot!" :)
<Turl>
heh
<oliv3r>
wingrime: nope, haven't tested any IR driver yet; it's not new, it was on the ML in march i think? (I just forgot about it)
<oliv3r>
wingrime: but I did submit a ir unification driver :)
<oliv3r>
mripard_: *high five*
<oliv3r>
mripard_: well my probe returned -ENODEV; but silently continued as if nothing was wrong
<oliv3r>
except it crashed horribly when trying to use it
<oliv3r>
mripard_: thank you! it works, sid for a10 + a20 :)
<oliv3r>
just have to test it on a20 ;)
<mripard_>
great :)
<wingrime>
oliv3r: you can pocke shutko, hi remove AW original driver name
<oliv3r>
wingrime: that driver never got merged
<wingrime>
Daniel Wang
<wingrime>
oliv3r: at and
<oliv3r>
i think he wanted to make a new driver, sunxi-cir.c to coexist with sunxi-ir.c
<wingrime>
oliv3r: bad idea
<wingrime>
oliv3r: also he use spinlock in irq context
<oliv3r>
wingrime: it's not merged because it wasn't great i think
<oliv3r>
wingrime: i told him yeterday, that we'll wait for your mainline driver, and then backport it to 3.4
<wingrime>
oliv3r: he tested it
<wingrime>
?
<Turl>
mripard_: sorry, I completely forgot about the A10S series the other day
<mripard_>
Turl: that's fine, I just wanted it not to be forgotten
<Turl>
mripard_: is a reviewed-by ok?
<Turl>
mripard_: I just have that small comment about usbotg vs usb0, but it's not a big deal
Soul has joined #linux-sunxi
<oliv3r>
mripard_: if i want to reserve memory for an array of ints, very simple, but dont' know the size after running some function, do I still use devm_kzalloc() for such a simple thing? The var gets free'd in the same function
<mripard_>
Turl: yep, and a Tested-By would be great as well ;)
<oliv3r>
wingrime: of course :p it should work (tm)
<woprr>
lo
<mripard_>
oliv3r: kzalloc then
<oliv3r>
mripard_: the other option is of course kmalloc() but there's 3 (slub, slob, slab)
<oliv3r>
ah ok
bsdfox has joined #linux-sunxi
<oliv3r>
that's always from slab ;)
<woprr>
incoming Olimex UK Royal AIRmail :)
<oliv3r>
grats!
<wingrime>
Turl: whan IR clock get in mainline for a10/a20
<woprr>
report 5 days delivery time
<wingrime>
*when
<oliv3r>
wingrime: when you as khim nicely to add it ;)
<wingrime>
oliv3r: mail to larml ?
<oliv3r>
wingrime: turl is right here ;)
<oliv3r>
Turl: ^
<Turl>
wingrime: hopefully 3.12-rcN
<oliv3r>
Turl: do you have IR clock in your repository? maybe wingrime can cherry pick it
<Turl>
oliv3r: he's working in sun7i, that complicates things a bit :)
<oliv3r>
Turl: sun4i AND sun7i :p
<oliv3r>
but yeah :)
<oliv3r>
wingrime: i feel your pain :p
<oliv3r>
i want to code against linus's tree, but dependant on a lot of unreleased work
<wingrime>
oliv3r: we can easy support each-other in larm by Teseted-by and ...
<wingrime>
Reviwed-by:
<oliv3r>
wingrime: oh absolutly
<oliv3r>
but i need to setup a testing enviroment :p
<oliv3r>
via tftp
<oliv3r>
but my phy is broken on a10
<oliv3r>
and a20 i don't have a kernel that builds yet
<wingrime>
oliv3r: also, x-modem
<oliv3r>
wingrime: but yes, i tend to sen dmy patches to linux-sunxi only first; so we can test it :)
<oliv3r>
wingrime: yeah i suppose x-modem is a good way too
<oliv3r>
but with tftp, i should be able to do things faster
<oliv3r>
wingrime: 1 sd card that's setup to boot from tftp
<oliv3r>
reboot; done
<woprr>
to DE, securely packaged in carton
<oliv3r>
with xmodem i still have to do a lot of manual things
<oliv3r>
woprr: unpack it allready!
Soul has quit [Remote host closed the connection]
<wingrime>
oliv3r: actualy you can use hno usb-boot and script
<hno>
woprr, Bulgaria to DE using UK Royal Airmail?
<woprr>
oliv3r, it's SD debian already up and running on JTAG, no USB HID yet
<oliv3r>
hno: lol we all wondered the same yesterday
<woprr>
hno, no olimex UK (ebay shop)
<oliv3r>
Tsvetan: it's tstrange that it's cheaper for people from DE, to order in the UK, rather then getting it directly from Bulgaria :)
adrian has quit [Remote host closed the connection]
<woprr>
18EUR DHL... I don't trust in bulgaria post
<hno>
heh
<oliv3r>
it's sad really, if we have to resort to special mail, because normal post is unreliable
<woprr>
*duck* had many issues with some east european postal services, sorry
<oliv3r>
normal post has been really good last century, before all these special companies existed
<oliv3r>
i've orderd tons of stuff from ebay from china/shenzen/hongkong/thailand
<hno>
the packages they have sent to me have all made it.. but they have all been sent as private post not using Olimex as sender..
<oliv3r>
hno: same
<hno>
don't know if that's how they normally do it, or just for these special shipments.
<Tsvetan>
oliv3r no way this to be true
<Tsvetan>
BTW since a year we do not use Bulgarian post but DHL Global Mail
<Tsvetan>
which works this way - DHL takes bag with parcels and send them to Germany, then they are re-distributed by Deutsche Post
<oliv3r>
woprr: ^^^
<oliv3r>
woprr: see, olimex is save ;)
<oliv3r>
Tsvetan: thanks for clearing that up :)
<Tsvetan>
and they have same prices as Bulgarian post
<oliv3r>
Tsvetan: getting ready for hollidays?
<Tsvetan>
yes :)
<oliv3r>
tomorrow i have to travel through germany :S
<oliv3r>
'black saturday' i think is the official day of tomorrow here
<oliv3r>
germany + france + NL (and probably more) all have hollidays now
<oliv3r>
Tsvetan: oh before i forget, what connector did you use for the 'VGA' connector? I tried search for JST mini 6PIN; but it's very hard to find anything that matches, also i think we can also output YUV via that same port (RGB -> YUV)
stekern has quit [Ping timeout: 264 seconds]
<oliv3r>
Tsvetan: you don't happen to have a VGA/YUV/COmposite/COmpenent breakout board with that plug do you?
<Tsvetan>
we will offer low cost VGA cable for A20
stekern has joined #linux-sunxi
<oliv3r>
Tsvetan: only vga?
<Tsvetan>
this is 0.05¨ connector we buy from cvilux.com.tw
<oliv3r>
Tsvetan: Because i think you can use the same port (if setup the right way) as Component OR shvs/composite :)
<Tsvetan>
probably
<oliv3r>
ok 0.05" pitch, i'll try to search some contra plugs fro it
<hno>
oliv3r, you had the connector and didn't recognise it?
<oliv3r>
hno: on ebay :p
<oliv3r>
i don't think i have that connector
<oliv3r>
i need to find some 'connector kit' with all thse standard connectors or something
<hno>
there is no standard...
<oliv3r>
need to get some 4 pinned connector housings for the USB debug ports too
<oliv3r>
well relative defacto standard
<oliv3r>
i think these are called JST and mini JST
<hno>
Yes, those are quite common.
<oliv3r>
Tsvetan: btw, for the next revision, use a 2 pin JST connector for sata power ;) the one you have now looks like a fan header (and doesn't fit my sata + power adapter :p
<oliv3r>
actually, i should have a header somewhere so i can re-solder it
<Tsvetan>
we will make custom cable do not worry ;)
<oliv3r>
:)
<Tsvetan>
also we work on small box with 2.5¨ 320GB SATA drive + A20 + Gigabit ethernet + WiFi
<Tsvetan>
with UPS backup LiPO battery in the box
<Tsvetan>
which allow work for hours if power is down
<oliv3r>
oh nice, do you know if you can run it with 2GB ram yet? Or still same story as with A10 '1g ram max'
<Tsvetan>
no plans for 2GB RAM
<oliv3r>
Tsvetan: from what i saw, the gigabit PHY is connected the same way as the ethernet PHY, pintout is identical, driver wise it's a whole different story. Current driver will do 10/100mbit as before (with the gbit PHY is if support MII)
<Tsvetan>
would make nice home NAS/media server
<Tsvetan>
its matter of software
<oliv3r>
yes absolutly
<Tsvetan>
if the hardware supports it soon or later the driver will be made
<oliv3r>
just saying, for A20, we have no driver for gbit yet
<oliv3r>
yeah i found a similar driver in sun6i dump, so gonna work on porting that when time permits
<Tsvetan>
maybe this will be also base for home automation server
<oliv3r>
it should be emac compatible, which means 100mbit parts will work 'better'
<Tsvetan>
with proper wired/wireless interface for Zigbee sensors etc
<oliv3r>
yeah, that was my plan for ages
<oliv3r>
take a10/a20 soc, with some tablet interface, and hook it up where you have the thermostat normally
<Tsvetan>
so you can log temperature, open/close doors with RFID tags etc
<oliv3r>
Tsvetan: oh! for your 'sensors' section, an I2C or SPI based 'opentherm' board ;)
<Tsvetan>
watch camera stream who is at home etc
<oliv3r>
OpenTherm should be what most heating/cooling systems speak (and the board should be backwards compatible with the ancient relais system)
<oliv3r>
then you can control your thermostat :)
<Tsvetan>
yes with GSM interface
<oliv3r>
i've only researched opentherm very minimally, it's an open standard
<oliv3r>
but there's several ways the pins have to be able to work
<Tsvetan>
once the server is avaialble there are many things which could be done
<oliv3r>
some kettles are wired as a 250V relais :p
<oliv3r>
oh yeah!
<Tsvetan>
I do wonder is A20 can make boot mix from NAND/SATA
<oliv3r>
Tsvetan: once we can boot via mtd from nand, you can load your OS from sata
<oliv3r>
you can do (e)MMC -> sata boot now
<Tsvetan>
I mean the kernel to ne in the NAND then the rootfs to be in SATA drive
<oliv3r>
load the kernel from (e)MMC, and load initrd from sata + os
<oliv3r>
yeah, with mtd should be easy, in theory, you can do that now
<oliv3r>
boot0->boot1->u-boot->boot.img(kernel)
<oliv3r>
the kernel doesn't care where rootfs, so can be on sata
<oliv3r>
i would make a small initramfs, that checks if sata has a valid rootfs, loads that, if not, continues to load from nand
<Tsvetan>
I will have some time now at vacation to think about this home automation server
<Tsvetan>
but it could combine many things: lighting, security, temperature, electricity monitoring, logging
<Tsvetan>
files serving
<oliv3r>
yeah
<oliv3r>
well there's 2 kinds of users
<oliv3r>
those technically inclined that have nothing, no server etc, so for those it can do a bit more
<oliv3r>
and the techies, that have it as an 'extra' device in their network :)
<oliv3r>
but hardware isn't a huge issue, software atm is
<oliv3r>
a few home automation systems, but only little opensource ones that work great
<Tsvetan>
this could be made modular
<Tsvetan>
different modules which to be loaded
<oliv3r>
yeah
<oliv3r>
exciting things possible :)
<oliv3r>
time to go home :)
<oliv3r>
VACATION TIME FOR ME! :D
<oliv3r>
mripard_: i'll try to cleanup and test a20 for sid and mail it today
<Tsvetan>
A20 have 4 TVin i.e. 4 cameras can be monitored
<oliv3r>
testing will not be possible tomorrow + 7 days
<oliv3r>
Tsvetan: oh yeah
<Tsvetan>
so this can be also home DVR
<oliv3r>
and woprr is working on DVB module (a10/a20 have that too)
<woprr>
yeah, if i got usb hid up, the olimex ext4 debian partition and UART0 comms error free ...
<wingrime>
repeat works , but requires valid key code in keymap
fredy has quit [Excess Flood]
<Turl>
wingrime: that should not be in dt I think
<Turl>
mripard_: ^
<wingrime>
Turl: also , IR can be wakeup source
fredy has joined #linux-sunxi
<Turl>
yep :) that would be nice to have to test pm on cb
Soru has quit [Ping timeout: 276 seconds]
<wingrime>
Turl: so, I still need cleanup,test, check-patch ir dirver
<wingrime>
but I can't send untill clocks not in mainline
<Turl>
wingrime: you can send to linux-sunxi so we can review the rest of it
<Turl>
wingrime: add a comment /* HACK */ on the clock code so it is easy to notice :)
<wingrime>
Turl: [RFC] ?
<Turl>
yeah
<pitillo>
hello, does someone know how can I check the amount of memory of a cubieboard? (or which batch came from?)
<Turl>
pitillo: look at the ram chips on the board and do the math :)
rz2k has quit []
<pitillo>
Turl: the problem... cubie is some Km far from home. Thank you by the way. I'll try to contact someone to send a pic :)
<Turl>
pitillo: the other way is guessing :)
<Turl>
pitillo: unless you bought it really early, it's most likely a 1G cubie
<pitillo>
Turl: yeah, I've read about batchs, but as it was sent to play with it, I'm not sure which batch came from
<pitillo>
probably it's a 1GB model but the script.bin was wrong (melea1000 shows dram_size = 512)
<pitillo>
Turl: I'm a bit lost... should I use cubieboard.fex to build script.bin instead of mele_a1000?
<Turl>
pitillo: yes, mele is a set top box, not a cubieboard :)
<pitillo>
Turl: ufff thank you very much Turl, I was ready to test the new script.bin.
<arokux>
Turl, can I use 0.5 for division? probably not...
<wingrime>
arokux: fload in kernel not allowed
<wingrime>
arokux: but you can use "/"
<wingrime>
arokux: but only integer division
<arokux>
wingrime, yeah.. I just hoped it is allowed now
<arokux>
ok
<wingrime>
arokux: FPU context not saved normaly in kernel threads
<pitillo>
this should be an older cubie... Once script.bin is rebuilt from cubieboard.fex it still shows 512
<wingrime>
pitillo: original fex?
<pitillo>
wingrime: built from sunxi-boards/sys_config/a10/cubieboard.fex adding only the MAC address
<wingrime>
pitillo: we have cubieboard_512 for 512
<wingrime>
pitillo: wait
<wingrime>
pitillo: you rebuilded uboot?
<pitillo>
yeah, I saw it too... since I can't access directly to the board to check the chips and know really how much amount it has...
<pitillo>
wingrime: yes, it's built from u-boot-sunxi too
<pitillo>
ummmm
<wingrime>
pitillo: you will not able see 1gb untill you reflash uboot and spl with 1gb settings
<pitillo>
and it was built using mele_a1000... my bad
bsdfox has joined #linux-sunxi
<pitillo>
wingrime: it's currently booting from the SD card, all is built following the first steps guide, and probably I missunderstood the mele_a1000 meaning... all is built for it instead of cubie
bsdfox has quit [Read error: Connection reset by peer]
<wingrime>
pitillo: actualy replacing fex in boot parition not have effect on memory amount
<wingrime>
pitillo: you need reflash SPL
<pitillo>
wingrime: I think I need to create the right spl... it's created using mele_a1000 but I can't see in boards/allwinner
<wingrime>
cubieboard there
<pitillo>
should it be boards/sunxi?
<wingrime>
make cubieboard
<wingrime>
like that
<pitillo>
ummmm
<pitillo>
let's see
ssvb has quit [Quit: Leaving]
<Turl>
arokux: X/0.5 = X*2
<arokux>
Turl, right. but "*" was fixed in my case :)
ssvb has joined #linux-sunxi
eebrah is now known as eebrah|away
<wingrime>
arokux: also shifts a= a/2 same as a >>= 1
<arokux>
wingrime, :) thanks
<wingrime>
Turl: IR can wake , but I can't deal with address and key when sleep
<wingrime>
Turl: also wake source settings should go over dt
tzafrir has quit [Ping timeout: 246 seconds]
rings_IIV has quit [Remote host closed the connection]
buZz has quit [Ping timeout: 246 seconds]
dwilkins has quit [Ping timeout: 246 seconds]
egbert has quit [*.net *.split]
libv has quit [*.net *.split]
naobsd has quit [*.net *.split]
torindel_ has quit [*.net *.split]
hramrach has quit [*.net *.split]
arokux has quit [*.net *.split]
pitillo has quit [*.net *.split]
awafaa has quit [*.net *.split]
wigyori has quit [*.net *.split]
oliv3r has quit [*.net *.split]
\\Mr_C\\ has quit [*.net *.split]
tinti has quit [*.net *.split]
ojn has quit [*.net *.split]
arete74 has quit [*.net *.split]
Kolyan has quit [*.net *.split]
wingrime has quit [*.net *.split]
deasy has quit [*.net *.split]
e-ndy has quit [*.net *.split]
focus has quit [*.net *.split]
cajg has quit [*.net *.split]
mripard_ has quit [*.net *.split]
hark has quit [*.net *.split]
xenoxaos has quit [*.net *.split]
drachensun has quit [*.net *.split]
steev has quit [*.net *.split]
woprr has quit [*.net *.split]
arokux1 has quit [*.net *.split]
zumbi has quit [*.net *.split]
Nikolas has quit [*.net *.split]
Liberato1 has quit [*.net *.split]
Dreadlish has quit [*.net *.split]
fredy has quit [*.net *.split]
specing has quit [*.net *.split]
spenser309 has quit [*.net *.split]
MadSpark has quit [*.net *.split]
FunkyPenguin has quit [*.net *.split]
TheSeven has quit [*.net *.split]
CaCtus491 has quit [*.net *.split]
techn_ has quit [*.net *.split]
fluo75 has quit [*.net *.split]
cyp has quit [*.net *.split]
BJfreeman has quit [*.net *.split]
notmart has quit [*.net *.split]
Tsvetan has quit [*.net *.split]
CoSM0 has quit [*.net *.split]
tkoskine has quit [*.net *.split]
slapin_nb has quit [*.net *.split]
jlj has quit [*.net *.split]
andoma has quit [*.net *.split]
Brodomir has quit [*.net *.split]
Tartarus has quit [*.net *.split]
ganbold has quit [*.net *.split]
Turl has quit [*.net *.split]
setkeh has quit [*.net *.split]
ChanServ has quit [*.net *.split]
lkcl_ has quit [*.net *.split]
mnemoc has quit [*.net *.split]
hno has quit [*.net *.split]
fldc has quit [*.net *.split]
eebrah|away has quit [*.net *.split]
blunden has quit [*.net *.split]
rm has quit [*.net *.split]
mturquette has quit [*.net *.split]
ijc has quit [*.net *.split]
jelly-home has quit [*.net *.split]
ssvb has quit [*.net *.split]
stekern has quit [*.net *.split]
zoobab_ has quit [*.net *.split]
jukivil1 has quit [*.net *.split]
grevaillot has quit [*.net *.split]
bfree has quit [*.net *.split]
_hipboi_ has quit [*.net *.split]
tvall has quit [*.net *.split]
WarheadsSE has quit [*.net *.split]
jinzo has quit [*.net *.split]
uwe_ has quit [*.net *.split]
dlan has quit [*.net *.split]
mdp has quit [*.net *.split]
theOzzieRat has quit [*.net *.split]
_hipboi_ has joined #linux-sunxi
wingrime has joined #linux-sunxi
ojn has joined #linux-sunxi
Kolyan has joined #linux-sunxi
tzafrir_laptop has joined #linux-sunxi
ssvb has joined #linux-sunxi
notmart has joined #linux-sunxi
fredy has joined #linux-sunxi
steev has joined #linux-sunxi
naobsd has joined #linux-sunxi
stekern has joined #linux-sunxi
CoSM0 has joined #linux-sunxi
BJfreeman has joined #linux-sunxi
dwilkins has joined #linux-sunxi
buZz__ has joined #linux-sunxi
tinti has joined #linux-sunxi
fldc has joined #linux-sunxi
rings_VII has joined #linux-sunxi
arokux has joined #linux-sunxi
mcbrick has joined #linux-sunxi
arete74 has joined #linux-sunxi
Nikolas has joined #linux-sunxi
pitillo has joined #linux-sunxi
arokux1 has joined #linux-sunxi
hark has joined #linux-sunxi
cyp has joined #linux-sunxi
uwe_ has joined #linux-sunxi
focus has joined #linux-sunxi
libv has joined #linux-sunxi
wigyori has joined #linux-sunxi
xenoxaos has joined #linux-sunxi
WarheadsSE has joined #linux-sunxi
mturquette has joined #linux-sunxi
jinzo has joined #linux-sunxi
CaCtus491 has joined #linux-sunxi
ijc has joined #linux-sunxi
spenser309 has joined #linux-sunxi
blunden has joined #linux-sunxi
specing has joined #linux-sunxi
tkoskine has joined #linux-sunxi
zumbi has joined #linux-sunxi
jlj has joined #linux-sunxi
mripard_ has joined #linux-sunxi
Tartarus has joined #linux-sunxi
tvall has joined #linux-sunxi
rm has joined #linux-sunxi
ganbold has joined #linux-sunxi
Dreadlish has joined #linux-sunxi
FunkyPenguin has joined #linux-sunxi
woprr has joined #linux-sunxi
jelly-home has joined #linux-sunxi
zoobab_ has joined #linux-sunxi
oliv3r has joined #linux-sunxi
cajg has joined #linux-sunxi
bfree has joined #linux-sunxi
TheSeven has joined #linux-sunxi
Turl has joined #linux-sunxi
hramrach has joined #linux-sunxi
egbert has joined #linux-sunxi
hno has joined #linux-sunxi
jukivil1 has joined #linux-sunxi
MadSpark has joined #linux-sunxi
andoma has joined #linux-sunxi
mdp has joined #linux-sunxi
grevaillot has joined #linux-sunxi
dlan has joined #linux-sunxi
fluo75 has joined #linux-sunxi
setkeh has joined #linux-sunxi
lkcl_ has joined #linux-sunxi
Tsvetan has joined #linux-sunxi
Liberato1 has joined #linux-sunxi
techn_ has joined #linux-sunxi
awafaa has joined #linux-sunxi
torindel_ has joined #linux-sunxi
ChanServ has joined #linux-sunxi
mnemoc has joined #linux-sunxi
eebrah|away has joined #linux-sunxi
drachensun has joined #linux-sunxi
slapin_nb has joined #linux-sunxi
theOzzieRat has joined #linux-sunxi
Brodomir has joined #linux-sunxi
e-ndy has joined #linux-sunxi
<arokux>
Turl, cannot understand how it worked till now
<arokux>
Turl, kz - zeros memory or?
<Turl>
arokux: kzalloc is similar to calloc
<arokux>
Turl, z does not stand for zero?
<Turl>
arokux: yes, it allocates memory initialized to 0, like calloc
<arokux>
ah, clk_data was allocated by kmalloc
<arokux>
with garbage inside
<wingrime>
Turl: I still not see sun7i patches in your sunxi-clk branch
<arokux>
Turl, I though it was also allocated with kzmalloc
<Turl>
wingrime: I still don't have sun7i :p
<wingrime>
i impressed that there is customs worser than in russia
<Turl>
wingrime: :)
<Turl>
wingrime: tracking moved a bit today
<Turl>
wingrime: 'in process of being classified'
<Turl>
wingrime: it arrived more than 2 weeks ago to local customs
<wingrime>
Turl: They plays angry-birds
<wingrime>
on it
rellla has joined #linux-sunxi
<wingrime>
Turl: also, wdt driver in your branch shold be rearranged to kernel patchset
<Turl>
wingrime: haha
<Turl>
wingrime: wdt branch is ancient
<Turl>
wingrime: n01 is working on wdt
<Turl>
I should convert it to tag for historic purposes and drop the branch
<wingrime>
Turl: I for me mostly intersting how work on SDIO goes
<arokux>
Turl, wrong somehow, pll6 should run at 1.2GHz
<oliv3r>
backreading! :)
<Turl>
arokux: pll6 is virtual
<Turl>
arokux: _other runs at 1.2Ghz
<arokux>
Turl, for me it runs at 6MHz
<Turl>
arokux: what?
<arokux>
600*
<Turl>
what device?
<arokux>
mele a1000
<arokux>
well, its according to docs
<Turl>
that's a10, probably rev C, AW did a little magic dance on their driver with revc and pll6 and pll4
<wingrime>
Turl: I hope 80 chars warning does not care
<Turl>
wingrime: if it is strings you can ignore it, do not break grep of error
<arokux>
Turl, so what now?
<Turl>
wingrime: for code, it depends, it is flexible, but try not to break it much if avoidable
<Turl>
arokux: what what?
<Turl>
arokux: "PLL6/25" should be a "/25" fixed divider with pll6_other as parent
<arokux>
Turl, but then it wont have 408MHz as required by usb
<arokux>
480*
<Turl>
arokux: you mean 48?
<Turl>
arokux: see my paste again
<arokux>
Turl, no, 480
<arokux>
Turl, hm, check page 36 in pdf
<Turl>
arokux: 480 can't be PLL6/25
<arokux>
USB_clk USB 480MHz Sourced from PLL
<Turl>
arokux: that would make PLL6 12Ghz
<arokux>
can, if PLL6 is 1.2GHz, as with my dev
<wingrime>
arokux: Usb use 48
<wingrime>
usualy
<Turl>
arokux: 1.2Ghz/25 = 48Mhz
<arokux>
Turl, oops, yes.
<Turl>
arokux: now see the paste again :)
<arokux>
Turl, :p
tvall has quit [Ping timeout: 256 seconds]
tvall has joined #linux-sunxi
<arokux>
Turl, how do you think, what "PLL6 sample 24Mhz to generate 48Mhz" means?
<arokux>
this is from ---> vim arch/arm/mach-sun4i/include/mach/ccmu_regs.h +398
tvall has left #linux-sunxi [#linux-sunxi]
Seppoz has joined #linux-sunxi
<Seppoz>
hi
<oliv3r>
woprr: our 3.4 kernel in hansg's repo is in reasonable shape, testing much appreciated :) mainline kernel is best from mripards a20/clocks wip tree as that's most up to date
<Turl>
arokux: I dunno :p
<Seppoz>
where would i find the defconfig for marsboard?
<Turl>
Seppoz: marsboard is a10 right? sun4i_defconfig should be it
<woprr>
oliv3r, official? links to git repos pls :)
<Seppoz>
and is A10_MID_1GB the right board in uboot?
<Seppoz>
or is there anyone thats more suitable?
<Seppoz>
and yes A10
<woprr>
will try the 3.4 kernel tomorrow, still on fixing the olimex supplied debian, random mac address, security updates etc
<woprr>
setting up emdebian toolchain etc tomorrow
<woprr>
hansg repo @kinux-sunxi.github or what are talking of
<woprr>
installing security updates only from debian armhf, more may break the sunxi-linux core system
<Seppoz>
btw: how is the GPIO support atm? is there an implementation for gpiosys yet or still the *ugly* implementaiton?
<oliv3r>
i use checkpatch -f --strict
<oliv3r>
wingrime: unless you copy/pasted anythinf from daniel wangs driver, i'd ommit that, you wrote it from scratch imo, it's very much different. I don't think it should have a second author until someone really overhauls it
<oliv3r>
wingrime: rc-mapping, doesn't that depend on your remote? e.g. you can use any remote you want? or how would DT deal with that. Then again, each protocol has a fixed amount of keys defined that they map to input messages I would think? Not so easy nor obvious
<oliv3r>
woprr: our offical 3.4 kernel doesn't have a20 support yet :)
<oliv3r>
Seppoz: i think we added marsboard very recently to sunxi-current
<oliv3r>
woprr: i would keep the nand 'as is' and only work from MMC
<wingrime>
oliv3r: yes,but not always
<woprr>
ok thx
<woprr>
no nand here
<wingrime>
oliv3r: you should add table for your remote teoreturcaly
<oliv3r>
ah, so what are you booting from?
<oliv3r>
wingrime: that sounds very user-unfriendly?
<woprr>
the olimex delivered debian sd card 4G
<oliv3r>
users hacking dt to support their remote?
<woprr>
Linux vdr2 3.3.0+ #3 SMP PREEMPT Fri Jun 7 12:24:59 EEST 2013 armv7l GNU/Linux
<wingrime>
oliv3r: aw have own table
<oliv3r>
but its constantly evolving and should be merged into github.com/linux-sunxi/linux-sunxi very soon
<oliv3r>
wingrime: well aw has crap code ;)
<oliv3r>
wingrime: i'll immediatly admit i don't know how 'normal' hardware does this
<wingrime>
oliv3r: about autorship
<woprr>
oliv3r, you said hansg before, what now...
<wingrime>
oliv3r: we should ask mripard and Turl
<oliv3r>
wingrime: I know of two kinds of setups, sometimes you buy hardware, that comes with remote and that mapping is saved
<oliv3r>
wingrime: but I also know, that you can also use your device (vdr for example) that ask you to enter your keys so that it can configure itself
<Turl>
wingrime: what?
<woprr>
[ 0.000000] Linux version 3.3.0+ (root@bundie) (gcc version 4.5.1 (Sourcery G++ Lite 2010.09-50) ) #3 SMP PREEMPT Fri Jun 7 12:24:59 EEST 2013
<oliv3r>
wingrime: I would expect, that most of the keymappsing are handled via the protocols
<woprr>
olimex 4GB debian SDcard
<Seppoz>
can the A10 boot from any sdcard or just a certain slot?
<Turl>
wingrime: can keymapping be changed on runtime?
<wingrime>
Turl: oliv3r ask about drop AW ownership from new driver
<oliv3r>
Seppoz: i think it can boot from sd0 and sd2
<oliv3r>
Seppoz: but check the wiki for specific boot info
<oliv3r>
Turl: in theory, it should be changable, otherwise it kinda sucks hard :)
<Turl>
wingrime: did you use AW code? yes -> keep it, no -> aw has no copyright, right?
<wingrime>
oliv3r: I not handle protocols
<Turl>
oliv3r: ever seen those "all in one" remotes?
<oliv3r>
Turl: about the ownership thing, wingrime rewrote the whole thing, i don't think he copy/pasted anything, so there is no requirement to menition AW (unless they contributed, or significant code was used?)
<Turl>
oliv3r: you need to configure them before use, they have huge tables for config :)
<oliv3r>
wingrime: i think the RC framework handles the NEC, RC5 etc etc protocols
<oliv3r>
Turl: duh
<Turl>
oliv3r: s/significant //
<Seppoz>
oliv3r: where would i font the boot info in the wiki?
<wingrime>
oliv3r: yea
<oliv3r>
Turl: that's a gray area, if i use 1 line i = 0; and it's also the same, but wasn't copy pasted, is that new code
<Turl>
oliv3r: that's a bit extreme don't you think? :)
<Turl>
if he took aw driver and rewrote it -> keep aw notice
<Turl>
if you wrote it all from scratch, there is no need for aw notice
<wingrime>
oliv3r: also thre Trivial criteria in LAW
<oliv3r>
and i think wingrime rewrote it
<oliv3r>
so drop AW!
<Turl>
oliv3r: it's gpl in any case, it doesn't hurt to have it
<Turl>
I'm not a lawyer though, so don't take my word for it
<oliv3r>
Turl: once they start contributing, working with the community, sure i'd agree, but until then, personally, i'd walk as close to that thin line as I could to ommit their name from new code :)
<Turl>
oliv3r: meh
<Turl>
oliv3r: I'd care as much if you wrote (c) Microsoft, Allwinner or FSM, as long as the GPL thing is below
<oliv3r>
lol of course, that has priority
<oliv3r>
but emotionally, it sits on the wrong foot, when they took no effort to participate, but get 'full' credit (cause, what does anybody else really know)
<oliv3r>
'oh these AW folks are so cool, they are contributin!'
<wingrime>
oliv3r: also LRADC more problematic, as it have no author metoned
<Turl>
well, just make it clear if you want
<oliv3r>
wingrime: we have docs, so we can rewrite it from scratch :)
<Turl>
"Inspired by sun4i-ir, \n copyright allwinner blah blah"
<wingrime>
oliv3r: also avout copyright, If every one put own copyright to core linux files, Author list will becomes HUGE
<oliv3r>
Seppoz: the A31 has a nice graph there, i didn't make a nice one :p the a10 and a20 manual have them though ;)
<wingrime>
oliv3r: just imagine topic
<oliv3r>
wingrime: exactly, personally i'd put the main author(s) on it, and if of course you do a really big overhaul, sure, otherwise, you are the first/main author of a new driver, you are the author
<oliv3r>
Seppoz: the a10_boot_process is for the propriatary (now gpled for reference only) boot0/boot1 boot method
<Seppoz>
i just figured that is meand thatnk you ver ymuch
<oliv3r>
the pre-compiled binaries are included in hasng's image
<woprr>
oliv3r, OK got context, thx
<oliv3r>
Seppoz: so if you boot via the opensource GPL u-boot, only look at the BROM page, as that is what is build into the chip and we cannot change
<oliv3r>
Seppoz: we should have NAND support maybe by years end (sooner/later depending on how much effort is put in by voulenteers :)
<Seppoz>
oliv3r: is it safe to use sd2 to boot if we have nand on it?
fredy has quit [Excess Flood]
<Seppoz>
i dont care for the nand at all
<Seppoz>
i only wanna boot from sd
<oliv3r>
Seppoz: nope, internal flash gets booted first, unless you invalidate it. i think olimex boards have a jumper that allows you to cause it to error out and skip
<oliv3r>
if there's no nand connected, it won't try to boot from it afaik
fredy has joined #linux-sunxi
<Seppoz>
so you say use sd0 then?
<oliv3r>
Seppoz: remember, this boot order is in the CHIP itself, it cannot be altered, only 'tricked' (e.g. if there's no nand, it'll continue) this all is even before pinmuxing could possibly take place, since script.bin etc is not loaded nor parsed
<oliv3r>
sd0 is used by default
<Seppoz>
what do i do with the uart0 debug?
<oliv3r>
it has the neat advantage, that you can use a uSD adapter -> Uart converter
<oliv3r>
you can always debug using a different uart, but you would have to tell SPL about that change
<oliv3r>
Seppoz: look at the cubieboard and olimex boards
<oliv3r>
they offer uart + sd0 for boot
<oliv3r>
they use uart1 if my mind serves me right
<Seppoz>
ahh ok!
<oliv3r>
but don't quote me on that ;) look up their pinouts
<arokux>
I think the best is to take info from code
<arokux>
or?
<Seppoz>
oliv3r: where would i find a distro for the a10 to do a quicktest?
<hno>
oliv3r & arokux, what is the question?
<arokux>
hno, mm.. my PLL6 is running at 1.2GHz, the Turl 's at 2.4
<oliv3r>
Seppoz: hansg; google hansg fedora19
<arokux>
hno, I cannot understand should I worry or not
<oliv3r>
pll6 can't run at 2.4
<hno>
PLL6 should be 1.2GHz.
<Seppoz>
ty
<Turl>
the 2.4Ghz is virtual arokux
<oliv3r>
Turl: ohh reset options; those go nicely in the new reset framework
<arokux>
Turl, ok, but my virtual is 1.2 :)
<Turl>
so yours runs at 600 and 100?
<arokux>
this makes the clock for usb only half of the freq
<arokux>
Turl, exactly
<oliv3r>
arokux: what makes you think that
<oliv3r>
afaik pll6 is fixed at 1.2 ghz, no way to change it
<arokux>
cat /sys/kernel/debug/clk/clk_summary
<Turl>
oliv3r: go read the manual :p it's not from what I can see
<oliv3r>
unless you cange the extern 24 MHz oscilator that is
<arokux>
Turl, are you sure your virtual runs at 2.4 then?
<hno>
oliv3r, PLL6 is a PLL just like the others.
<Turl>
arokux: look at the paste :p
<hno>
See CCM_PLL6_CFG
<oliv3r>
hno the manual said that it operates at a fixed freq. of 1.2 :p
<arokux>
Turl, yep, did.
<oliv3r>
that wiki page needs a serious update :p
<Seppoz>
oliv3r: sorry that doesnt get me anything
<oliv3r>
then again, i added the info from the manual
<Turl>
arokux: I'm using an A10S though, it might just be different chip defaults
<Turl>
as I said, these are unconfigured so far, they have default values from uboot/chip
<hno>
oliv3r, it needs to be at 1.2 for SATA and some other things, but can be used at other frequiencies if you don't use those modules. It is one of the clock sources many things can be derived from.
<oliv3r>
hno: then we should update the wikipage to reflect htat, i only entered the values in the first table as i saw it in the datasheet (not usermanual)
<arokux>
Turl, mine is as by manual: 0x21009911
<arokux>
Turl, checked after uboot, by md 0x01C20028
<hno>
oliv3r, it is documented in the wiki..
<oliv3r>
Turl should update the wiki page as he knows most
<oliv3r>
hno: yeah the configuration TOO pll6; but in the top description, where it lists the capabilities of each of the clocks
<oliv3r>
so 2 datasheets and a wii editor is all I had :)
<oliv3r>
wiki*
deasy has quit [Quit: Quitte]
<arokux>
oliv3r, DEFINE20?
<hno>
arokux, you can do that on arm in some cases, but better to use writel/readl and related functions, much les pitfalls. Or ioread/write as oliv3r said
<oliv3r>
arokux: what does 0x20 mean, you can't just write a random value to a random register :)
<arokux>
oliv3r, it's not random :)
<oliv3r>
arokux: to you its not, to a random bystander reading your code it is :)
<arokux>
oliv3r, the point is there is one bit, which is switched for Rev C
<arokux>
oliv3r, it is just for testing..
<arokux>
oliv3r, i want to switch this bit
<arokux>
__u32 ClkSwich:1; //bit5, usb clock switch
<oliv3r>
so you'd do reg |= BIT(5); :)
<hno>
arokux, pll1 apparently unreliable on Rev C, so they use PLL6 instead if available.
<arokux>
hno, can i really measure somehow what the freq of the clock is?
<hno>
I don't think so.
<oliv3r>
oscilloscope :)
<hno>
requires the clock to be routed out of the chip first...
<Turl>
oliv3r: inside the soc? it's gonna be fun
<oliv3r>
i know a20 has something called clk_outa; clk_outb;
<Turl>
hno: I think it's pll4
<hno>
and at all trying to look with a oscilloscope at signals in GHz range is interesting...
<oliv3r>
yeah,my scope can' thandle that
<oliv3r>
i got one of those cheap rigols
<hno>
Turl, that's broken? Could be, memmory is a bit dim on the details.
<oliv3r>
100 MHz bandwith
<oliv3r>
i think it was pll4 too
<hno>
oliv3r, it's not trivial to at all attach to a such signal without introducing major disturbances.
<oliv3r>
remember vaguely somewhere mentioning
<hno>
we fighted with that one for months.. but was too long ago.
<oliv3r>
ok really have to put the laptop down and close eyes, 10+ hour drive ahead tomorrow
<arokux>
<oliv3r> so you'd do reg |= BIT(5); :)
<arokux>
oliv3r, not *reg = ..; ?
<oliv3r>
and i'll try to mail off the sunxi_sid for testing to linux-sunxi, but can't test on a20 till i get back