ChanServ changed the topic of #linux-sunxi to: Allwinner/sunxi development discussion - Don't ask to ask. Just ask! - See | | Logs at
eebrah_ has quit [Ping timeout: 264 seconds]
servili007__ has joined #linux-sunxi
servili007_ has quit [Read error: Connection reset by peer]
BJfreeman has quit [Quit: had a good time]
\\Mr_C\\ has quit []
[7] has quit [Disconnected by services]
TheSeven has joined #linux-sunxi
\\Mr_C\\ has joined #linux-sunxi
bsdfox has joined #linux-sunxi
bsdfox has joined #linux-sunxi
_BJfreeman has joined #linux-sunxi
_BJfreeman is now known as BJfreeman
wingrime has joined #linux-sunxi
<wingrime> mnemoc: maybe we need some repo for cedarx traces
\\Mr_C\\ has quit [Read error: No route to host]
\\Mr_C\\ has joined #linux-sunxi
BJfreeman has quit [Quit: had a good time]
shineworld has joined #linux-sunxi
Undertasker has joined #linux-sunxi
Undertasker has quit [Ping timeout: 252 seconds]
rellla has joined #linux-sunxi
shineworld has quit [Remote host closed the connection]
orly_owl has quit [Read error: Connection reset by peer]
Undertasker has joined #linux-sunxi
hramrach_ has quit [Remote host closed the connection]
hramrach_ has joined #linux-sunxi
<mnemoc> wingrime: you mean in github? name?
<mnemoc> cedarx-traces ?
<mnemoc> wingrime: done
<mnemoc> wingrime: it's empty, so you have to push the first commit before it becomes clone-able
dragonn has joined #linux-sunxi
dragonn has quit [Client Quit]
dragonn has joined #linux-sunxi
Undertasker has quit [Ping timeout: 246 seconds]
paulk-desktop has joined #linux-sunxi
paulk-desktop has quit [Quit: Ex-Chat]
notmart has joined #linux-sunxi
notmart has joined #linux-sunxi
<oliv3r> hno: I think cpu freq is wrong due to this error: Failed to set core voltage!. Can't set CPU frequency
<oliv3r> mripard: you should double check your have and has in the comments
<oliv3r> (i2c)
<oliv3r> and i'll use your i2c driver to learn how modify my driver to use the proper devm_ioremap* etc calls
Undertasker has joined #linux-sunxi
rellla has quit [Quit: Nettalk6 -]
paulk-desktop has joined #linux-sunxi
<hno> oliv3r, is this an unmodified tree?
<hno> It does match the register findings earlier, but I find it odd that boot1 do succeed in talking to your AXP while our SPL code do not..
<hno> and works on all boards I have including my cubieboard.
<hno> oliv3r, can you try the following in u-boot:h "i2c md 34 3 1". Should return 21
Undertasker has quit [Read error: No route to host]
Undertasker has joined #linux-sunxi
paulk-desktop has quit [Quit: Ex-Chat]
<mripard> oliv3r: you should really consider reading resources about device drivers and kernel programming if you're still wondering about such things
Undertasker has quit [Ping timeout: 252 seconds]
_BJfreeman has joined #linux-sunxi
_BJfreeman is now known as BJfreeman
paulk-desktop has joined #linux-sunxi
<Turl> mripard: hi
ganbold___ has joined #linux-sunxi
ganbold__ has quit [Ping timeout: 252 seconds]
dragonn has quit [Remote host closed the connection]
dragonn has joined #linux-sunxi
<dragonn> Hi! How can I download (read) the complet nand to my PC by using the fel mode?
awafaa has quit [Ping timeout: 246 seconds]
<mripard> Turl: hi
Yaku321 has joined #linux-sunxi
hramrach_ has quit [Remote host closed the connection]
hramrach_ has joined #linux-sunxi
mripard_ has joined #linux-sunxi
Liberato1 has joined #linux-sunxi
<Turl> mripard_: I was reading the mails on the list and talking with oliv3r yesterday
<Turl> mripard_: what's the main difference between of_iomap and the other proposed functions you guys were discussing?
<mripard_> of_iomap parses the dt to get the resource, and then call ioremap on it
<mripard_> while you should actually call request_mem_region between the two
<mripard_> to make sure that no other mapping exist for the area in memory you are requesting
<mripard_> ie. no other driver has already mapped it, and potentially use it.
<Turl> mripard_: so that doesn't apply to my driver I'm guessing, as I actually need to share addresses at times
<mripard_> indeed
<wingrime> oliv3r:pinh
<wingrime> ssvb: ping
dragonn has quit [*.net *.split]
BJfreeman has quit [*.net *.split]
mripard has quit [*.net *.split]
Liberator has quit [*.net *.split]
<Turl> mripard_: so I implemented pll6 yesterday (still untested) and that got me wondering about compatible strings
Undertasker has joined #linux-sunxi
_BJfreeman has joined #linux-sunxi
<Turl> pll1 and 4 share the same factors, offsets, etc
<Turl> 5 and 6 too, but different from 1 and 4
<Turl> mripard_: would it be ok to use "...-pll1-clk" compatible for both 1 and 4, and "...pll5-clk" for 5 and 6?
_BJfreeman is now known as BJfreeman
Undertasker has quit [Ping timeout: 264 seconds]
<mripard_> well, if they are compatible... :)
dragonn has joined #linux-sunxi
Yaku321 has quit []
ganbold___ has quit [Remote host closed the connection]
Undertasker has joined #linux-sunxi
<lkcl> has anyone started on a mtd nand driver at all for A10?
<Turl> lkcl: there's one on the ML
<Turl> mripard_: is there any magic incantation to test a branch on all commits for build breakage?
<mripard_> git bisect + a script that invoke make ?
<Turl> no, not that kind of breakage
<Turl> mripard_: I rebased *a lot* today moving stuff around and I want to test make after every commit to make sure I didn't move stuff that was needed to build
<mripard_> ah
<lkcl> Turl: ML? do you have a link at all?
<mripard_> hmmm
<mripard_> I'm not aware of anything that could do that
<mripard_> you'll probably have to script it
<lkcl> Turl: star
<lkcl> great. so this is qiang lu. great!
<Turl> mripard_: I'll script it then :)
<Turl> mripard_: git buildtest v3.10-rc2..sunxi-clk "make -j16 uImage sun4i-a10-cubieboard.dtb"
<Turl> found the first breakage already :P
awafaa_ has joined #linux-sunxi
<mripard_> Turl: if you just do make, it will build a zImage and all the dt
aseigo_home has joined #linux-sunxi
aseigo has quit [Read error: Connection reset by peer]
<Turl> mripard_: my script arg parsing is broken and it's actually executing bare make heh :)
drachensun has quit [Quit: Leaving]
drachensun has joined #linux-sunxi
<mnemoc> lkcl: beware it's very raw, so you will wear out the nand fast
drachensun has quit [Client Quit]
<lkcl> mnemoc: that's the case for all mtd drivers, right?
<mnemoc> lkcl: the rely on the emmc or implement the randomization. the mtd driver for sunxi doesn't do that or anything fancy yet]
<lkcl> mnemoc: i thought randomisation was done by e.g. jffs
<mnemoc> i thought the same, but no.
<mnemoc> they assume the chip does it on it's own
<mnemoc> and if not (nand), the mtd driver has to
<lkcl> jooy!
notmart has quit [Ping timeout: 248 seconds]
wingrime_ has quit [Quit: Lost terminal]
n01_ has quit [Read error: Connection reset by peer]
n01 has joined #linux-sunxi
mab has joined #linux-sunxi
<Turl> oliv3r: remember the weirdness you had on uboot with registers?
<hno> lkcl & mnemoc situation is not that bad. Randomisation is done by the NAND controller.
<lkcl> hno: whew :)
notmart has joined #linux-sunxi
notmart has quit [Changing host]
notmart has joined #linux-sunxi
Undertasker has quit [Read error: No route to host]
Undertasker has joined #linux-sunxi
<oliv3r> Turl: yeah; what abou tit
<oliv3r> hno: it's unmodified, except for the emac renaming patch that i've posted
<oliv3r> mripard_: the thing is, first you told me and n01 to use one thing, then now, it turns out we have to use something else, but even turl doesn't understand why; also, there's no ldd version that includes DT things, ldd3 is all pre-dt
jemk has joined #linux-sunxi
<mripard_> DT changes only very minor details. The whole logic stays there, and is described in LDD
mab has quit [Ping timeout: 240 seconds]
<mripard_> and yes, I overlooked something, I'm just like every one here, I can overlook stuff or be wrong about others.
<mripard_> If I told you this, it's because you raised some very valid questions, but also some basic ones, that are addressed, and should be known before doing kernel stuff. I didn't mean to be rude or anything.
<Turl> oliv3r: well, that's why writel, if you use the others I bet weird stuff like that would happen too
<jemk> wiki seems broken somehow, see
<Turl> mnemoc: ^
wingrime has quit [Read error: Operation timed out]
<mnemoc> uh
<Turl> mnemoc: sounds like latex parsing related, the rest of the wiki seems to work ok
jemk has left #linux-sunxi ["Verlassend"]
jemk has joined #linux-sunxi
<mnemoc> is it new or [[A10/CCM]] has been broken since I moved the wiki a month ago?
<Turl> mnemoc: new, I read that page some days ago
<Turl> and it was working
<mnemoc> ok, so it was with a code update
<mnemoc> and indeed, an update in the Math extension today
<\\Mr_C\\> when i applied that cubie_nand_uboot_partition_image.bin i only have like 500k on it
<\\Mr_C\\> nanda
<\\Mr_C\\> not enough room to put the uimage
<mnemoc> that's probably something to dd
<mnemoc> err
<mnemoc> \\Mr_C\\: android?
<\\Mr_C\\> the cubie board
<mnemoc> yes, saw the cubie_ prefix
<\\Mr_C\\> just blank
<mnemoc> I mean, nand's u-boot assumes you use boot.img on a raw partition
<mnemoc> not a uImage file
lxsameer has joined #linux-sunxi
<mnemoc> that is begging for wikification....
<\\Mr_C\\> thats the one i used
<\\Mr_C\\> if=./cubie_nand_uboot_partition_image.bin of=/dev/nand
<mnemoc> o_O
<\\Mr_C\\> oh does bs=4096 make a difference?
<\\Mr_C\\> i didnt put that
<mnemoc> it's not that.
<\\Mr_C\\> i will repeat the process again and see what it does
<mnemoc> you dumped that image over the full logical nand, not just the boot partition
<mnemoc> don't know what it's intended to be used, but looks awful
<hno> oliv3r, have you tried the i2c command I gave?
<\\Mr_C\\> its in that link you just showed me
<\\Mr_C\\> First, we need to get the boot partition we downloaded earlier on onto the NAND. You can either copy it over using SCP, then use dd to write it to /dev/nand (dd bs=4096 if=./cubie_nand_uboot_partition_image.bin of=/dev/nand), or just copy it directly there with SCP (on my Mac, scp ~/Downloads/cubie_nand_uboot_partition_image.bin root@<CUBIEBOARD IP ADDRESS>:/dev/nand).
<mnemoc> ok
* mnemoc doesn't do the image dumping dance
<\\Mr_C\\> rebooting it like it said
<\\Mr_C\\> moment...
<mnemoc> if you want to repartition, repartition. don't dd unknown stuff...
<mnemoc> awful
<\\Mr_C\\> well thats from the sunxi site
<\\Mr_C\\> and i see it in all the documations
<mnemoc> it's a wiki, anyone can write whatever they want
<hno> \\Mr_C\\, sounds like the partition table in that image is not what you want.
* mnemoc shuts up and tried to fix the math extension
<\\Mr_C\\> oh
<mnemoc> s/tried/tries/
<hno> u-boot supports loading uImage from partitions as well. I find that easier than dealing with Android boot images.
shineworld has joined #linux-sunxi
<\\Mr_C\\> 93 0 3989504 nand
<\\Mr_C\\> 93 2 3988992 nandb
<\\Mr_C\\> 93 1 508 nanda
<\\Mr_C\\> thats what it created
<hno> mnemoc, yes that cubie image is awful, trying to shrinkwrap it all in an binary image.
<hno> \\Mr_C\\, yes, and not what you want I supose. But you can load kernel from /boot in nandb just fine if you want.
<\\Mr_C\\> hmm
<hno> or at least in theory. Not sure what the state of the NAND u-boot is really.
<oliv3r> mnemoc: i think your wrong, i belive mtd simply talks directly to the flash(controller). IF the controller does Wear Leveling, good, you can use mtdblock. otherwise, you use jffs etc
<hno> maybe doesn't support ext*, and very likely can't support ext4 even with a rebuild.
<hno> oliv3r & mnemoc MTD is just an interface to the raw flash. It does not do anything fancy, just raw access. It is up to any upper layers to do bad block management, wear leveling etc.
<mnemoc> but you told me we needed to add randomness and some other fanciness to the mtd driver...
<hno> and there is not usable block device for MTD in the Linux kernel. To use MTD you MUST use an MTD aware filesystem.
<oliv3r> Turl: ahh, you mean because write/read allignment
<oliv3r> Turl: i took that into account
<hno> mnemoc, I think you misunderstood me then. MLC flash do need randomization, but that is handled by the flash controller. But I have not verified if the posted MTD driver do it properly.
<lxsameer> after about 4 days finally i finished cloning the linux-sunxi repo :D
<oliv3r> mripard_: i didn't say you where rude, but I do read _alot_ but there's no 'easy to understand' reading matterial, most of the stuff is 'half' where you allready have to know most on how to use :)
<oliv3r> mnemoc: it's new, i used CCM just last night
<mnemoc> lxsameer: could have downloaded a tarball of a fresh clone from
<lxsameer> mnemoc: that was what i donwloaded :D
<mnemoc> and took you 4 days?!
<hno> git really should handle resumed clone/fetch, reusing what it have already fetched. Some repos are becoing increasingly hard to clone.
<lxsameer> mnemoc: yeah 4 days day and night
<mnemoc> o_O
<lxsameer> mnemoc: do want to hear something funny
<lxsameer> mnemoc: i can't join the ml because of the damn filternet
* mnemoc lost
<hno> lxsameer, your internet is censored?
<mnemoc> [[A10/CCM]] fixed
<lxsameer> hno: yup i live in iran
<mnemoc> (by reverting a commit)
<mnemoc> lxsameer: you can subscribe by sending an email too, no need to have G account
<oliv3r> hno: sorry, 0003: 41 A
<oliv3r> sun4i#i2c md 34 3 1
<lxsameer> mnemoc: i have a G account and send the mail for subscribtion but i did not get any reply
<mnemoc> if you have a G account you just "click" to subscribe
<mnemoc> lxsameer: give me your address on /q (private message)
Undertasker1 has joined #linux-sunxi
Undertasker has quit [Read error: Connection reset by peer]
Undertasker1 has left #linux-sunxi [#linux-sunxi]
<oliv3r> mnemoc who made the commit?
<mnemoc> oliv3r: "upstream"
<mnemoc> aha! but they did a branch for 1.20
<mnemoc> switching now
<oliv3r> math extension?
<mnemoc> yes
<oliv3r> aahh ok
<lxsameer> oliv3r: hi, do you have a minute ?
<oliv3r> lxsameer: sure, depending on what you'd want to ask lil' ol me
<mnemoc> oliv3r: using the new REL1_20 branch instead of master now
<lxsameer> oliv3r: i want to contribute to linux-sunxi, but i need a mentor or a guide to give me some tasks and guide me, do you have time for that ?
<oliv3r> heh, me lol
<oliv3r> i'm mearly learning myself :)
<hno> oliv3r, 41?
<oliv3r> that's what I copy paste
<oliv3r> shall I repeat that in boot1?
<lxsameer> oliv3r: at least you have more experiences than me
<oliv3r> lol i wouldn't be so sure
<oliv3r> lxsameer: anyway, i think the easiest tasks are to do some unification for sun4i and sun5i on the stage/3.4 branch?
<lxsameer> oliv3r: sure , i'll look for such drivers and try to unify them,
<oliv3r> easiest is to use git grep (or some git tool) to find drivers with sun4i and sun5i in their name
<oliv3r> and see if they exist in both platforms
<oliv3r> audio i'll play with tomorrow, as i have to do some housekeeping there anyway
<lxsameer> oliv3r: thanks man
<hno> oliv3r, yes, using the boot1 fel trick to load our u-boot.
jemk has quit [Quit: bye]
<oliv3r> press 2, 'fex boot our u-boot' rgr
<hno> yes
<oliv3r> bah ircdlog doesn't find any reference to fel; lemme see if i can work it out from history :p
<oliv3r> ./fel write 0x4a000000 ../build/cubieboard_hwpack/bootloader/u-boot.bin
<oliv3r> got it
<oliv3r> timing on that is very picky
<hno> timing how?
<oliv3r> i keep 2 pressed
<oliv3r> but 2/3 (this time) it booted through
<lxsameer> what cross compiling toolchain do you suggest ?
<oliv3r> lxsameer: what is your OS
* hno uses Linaro 4.7 toolchain.
<lxsameer> oliv3r: i use embedian on my debian, but i'm in arhc right now
* oliv3r uses Gentoo's 4.6.3
<lxsameer> *archlinux
<oliv3r> i guess arch has a cross dev enviroment oto?
<lxsameer> oliv3r: but i can't find anything,
<oliv3r> sun4i#i2c md 34 3 1
<oliv3r> 0003: 41 A
<lxsameer> hno: does that linaro is good ?
<oliv3r> gentoo has the embedded handbook
<oliv3r> i would hope arch has 'an' embedded handbook?
<oliv3r> hno ^
<oliv3r> same result
<oliv3r> NOT*
<oliv3r> erm nvm
<oliv3r> still not 21 as result in any case
shineworld has quit [Remote host closed the connection]
<hno> oliv3r, ok. Try removing the version check from drivers/power/axp209.c
paulk-desktop has quit [Quit: Ex-Chat]
<hno> lxsameer, linary 4.7 seems fine to me. But kernel do not like linaro-4.8 for some reason.
<oliv3r> hno: ok
<oliv3r> hno: CPU: SUNXI Family
<oliv3r> Board: Cubieboard
<oliv3r> DRAM: 1 GiB
<oliv3r> MMC: SUNXI SD/MMC: 0
<oliv3r> I2C: ready
<oliv3r> MMC init failed
<oliv3r> Using default environment
<oliv3r> after that, get tons of 'bad device' so mmc fails to work, but otherwise its fine
<oliv3r> hmm, booting via USB power is much slower; strange, maybe coincidence; anyhow mmc gets initted by SPL and thus does not work I suppose?
<hno> oliv3r, the MMC should work.
<hno> but you may need an "mmc scan"
<hno> What does PLL1 contain now?
dragonn has quit [Ping timeout: 252 seconds]
<hno> night.
notmart has quit [Quit: notmart terminated!]
servili007 has joined #linux-sunxi
servili007__ has quit [Read error: Connection reset by peer]
servili007 has quit [Read error: Connection reset by peer]
lxsameer has quit [Quit: Leaving]