mnemoc changed the topic of #linux-sunxi to: Allwinner/sunxi development discussion - did you try looking at our wiki? https://linux-sunxi.org - Don't ask to ask. Just ask and wait! - https://github.com/linux-sunxi/ - Logs at http://irclog.whitequark.org/linux-sunxi
ddc has joined #linux-sunxi
<quitte> it needs read retry added before it's usable with the ccubietruck's flash chip
<rz2k> bbrezillon already done the readretry
<quitte> or preferably a port to bbrezillon's driver
<rz2k> in mainline part
<quitte> rz2k: since now you don't need experience with u-boot's mtd anymore - may I suggest you take over tomorrow? ;)
<rz2k> I can try, but no promises :p
<rz2k> how often need for readretry occurs when loading spl and kernel?
<ddc> quitte: porting bbrezillon driver to u-boot should not be an issue
<quitte> i have not seen it fail loading uboot. env fails a lot. kernel bigger that 2,4M fails every time
<ddc> quitte: bbrezillon nand driver is based on yuq original work
<rz2k> ddc: not sure about that, nand driver needs couple of things changed in mtd framework itself, so we need to bring that too
<rz2k> we have it waiting for mainline so long because of mtd maintainers deciding wether it is okay to merge his changes to the nand_base
<quitte> that's not an issue with u-boot I think. the nand driver can have the special settings in the environment.
<ddc> rz2k: I guess we need more testing, there is still more issues with non onfi nands
<ddc> rz2k: as well as read retry
xavia has quit [Quit: Leaving.]
Nyuutwo has quit [Remote host closed the connection]
popolon has quit [Quit: Quitte]
<quitte> do you think there is a way to tell wether spl was loaded from nand or from mmc?
<rz2k> check if nand controller is initialized? (clks/etc)
<quitte> sunxi/board.c simply claims it's impossible in a comment
<quitte> it would be very nice to only need one sunxi-spl version
VargaD_ has joined #linux-sunxi
<rz2k> hmm, then you are going to the boot0 land, check the disasm for it, it had a counter somewhere that changed with the current bootsource tried
<rz2k> so its 0 when it tries to read nand, 1 when mmc, 2 when spinor and etc..
<rz2k> it is probably the only one way to get that
VargaD has quit [Ping timeout: 244 seconds]
VargaD_ is now known as VargaD
<quitte> was just looking at it :)
<ddc> quitte: can you just tell by removing your mmc and resetting your borad?
<quitte> ddc: tell what?
<ddc> that you are using nand only spl
<quitte> there is no mmc in my board. hasn't been since i connected it to power
<quitte> but if mmc and nand are the only options looking for an mmc card might work
<quitte> ...does not
<ddc> According to the BROM code it will boot first from mmc
<quitte> yes. but only if at byte 0x8006 or something it finds eGON and the checksum is okay. otherwise it will try the next boot media
Black_Horseman has quit [Ping timeout: 244 seconds]
akaizen has quit [Remote host closed the connection]
akaizen has joined #linux-sunxi
Black_Horseman has joined #linux-sunxi
deasy has quit [Quit: Nom d'un quark, c'est Edmonton !]
Renard has quit [Quit: Renard]
akaizen has quit [Ping timeout: 240 seconds]
imcsk8_ has quit [Quit: Reconnecting]
imcsk8 has joined #linux-sunxi
Nyuutwo has joined #linux-sunxi
akaizen has joined #linux-sunxi
ssvb has quit [Remote host closed the connection]
ganbold_ has quit [Ping timeout: 260 seconds]
ganbold_ has joined #linux-sunxi
<wens> libv: "allwinner,sun5i-a10s-i2c" looks like a placeholder, no real use
ssvb has joined #linux-sunxi
egbert has quit [Disconnected by services]
egbert has joined #linux-sunxi
zeRez_ has joined #linux-sunxi
<wens> Turl: mine has pads for uart, though they were identified by libv :)
zeRez has quit [Ping timeout: 272 seconds]
petr has quit [Ping timeout: 246 seconds]
petr has joined #linux-sunxi
zeRez_ has quit [Remote host closed the connection]
rz2k has quit []
naobsd has quit [Quit: Page closed]
Skaag has joined #linux-sunxi
Skaag has quit [Ping timeout: 272 seconds]
pwhalen has quit [Ping timeout: 250 seconds]
pwhalen has joined #linux-sunxi
akaizen has quit [Remote host closed the connection]
akaizen has joined #linux-sunxi
akaizen has quit [Ping timeout: 272 seconds]
akaizen has joined #linux-sunxi
uwe_ has quit [Ping timeout: 260 seconds]
uwe_ has joined #linux-sunxi
[7] has quit [Ping timeout: 260 seconds]
TheSeven has joined #linux-sunxi
akaizen has quit [Remote host closed the connection]
akaizen has joined #linux-sunxi
Faisal has quit [Ping timeout: 260 seconds]
akaizen has quit [Ping timeout: 240 seconds]
akaizen has joined #linux-sunxi
Skaag has joined #linux-sunxi
pwhalen has quit [Ping timeout: 264 seconds]
pwhalen has joined #linux-sunxi
quitte_ has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
quitte has quit [Ping timeout: 250 seconds]
montjoie[home] has quit [Ping timeout: 255 seconds]
montjoie[home] has joined #linux-sunxi
Faisal has joined #linux-sunxi
Faisal has quit [Read error: Connection reset by peer]
<y0g1> hello
<y0g1> I read about 3.16 on cubietruck and would like to test it, howto check if my u-boot need update or not?
<wens> best just use a new version
<wens> better yet, try out the mainline version # git://git.denx.de/u-boot-sunxi.git
<y0g1> wens: txs, I will do it on my home router. If I change u-boot but without the kernel, will it work?
<y0g1> wens: can I change u-boot on the fly on running cubietruck?
<wens> you cat, just dd over the original
<y0g1> wens: if I do that, will it run kernel 3.4.79 without problem?
akaizen has quit [Read error: Connection reset by peer]
<wens> uh, maybe not :(
akaizen has joined #linux-sunxi
<y0g1> wens: in 3.16.1 there is no sunxi nand partition types support, - will it boot?
<wens> no nand support in mainline
JohnDoe_71Rus has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
yann_s|AFK has joined #linux-sunxi
yann_s|AFK is now known as yann_s
<y0g1> wens: how about sata and gmac support?
Renard has joined #linux-sunxi
<wens> y0g1: in mainline? works
<y0g1> wens: ok
mawe242_ has joined #linux-sunxi
<y0g1> wens: I will wait with update
akaizen has quit [Remote host closed the connection]
akaizen has joined #linux-sunxi
<oliv3r> mornin'
akaizen has quit [Ping timeout: 240 seconds]
<wens> morning
codekipper has joined #linux-sunxi
<codekipper> Hi,
boycottg00gle has joined #linux-sunxi
<codekipper> I'm wondering why in the fex for my MK808 that it describes an SDIO connection for the RTL8723AS(chip confirmed on board)
<codekipper> but to get it working I needed the RTL8723AU driver
<codekipper> Do these WIFI modules that use this chipset have a USB-SDIO converter?
<codekipper> Does the WIFI module on the cubietruck behave in the same manner?, ie. can be seen in lsusb
FR^2 has joined #linux-sunxi
jemk has joined #linux-sunxi
Quarx has joined #linux-sunxi
avsm has joined #linux-sunxi
astr has quit [Ping timeout: 272 seconds]
astr has joined #linux-sunxi
montjoie[home] has quit [Quit: leaving]
bonbons has joined #linux-sunxi
deasy has joined #linux-sunxi
avsm1 has joined #linux-sunxi
avsm1 has quit [Client Quit]
avsm has quit [Ping timeout: 260 seconds]
tgaz has quit [Ping timeout: 260 seconds]
netlynx has joined #linux-sunxi
notmart has joined #linux-sunxi
tgaz has joined #linux-sunxi
<bbrezillon> quitte_: did you manage to read the boot0 partition from Linux ?
<quitte_> bbrezillon: I haven't applied your patches,yet. I could, however read the kernel from linux
<bbrezillon> quitte_: okay, let me know if it works after you've appled my patches
tgaz has quit [Ping timeout: 246 seconds]
<quitte_> bbrezillon: I'll let you know either way. ;) I actually figured out how to enable nandboot in u-boot spl, btw.
<bbrezillon> quitte_: great
tgaz has joined #linux-sunxi
montjoie[home] has joined #linux-sunxi
tgaz has quit [Ping timeout: 272 seconds]
quitte_ has quit [Read error: Connection reset by peer]
quitte has joined #linux-sunxi
tgaz has joined #linux-sunxi
tgaz has quit [Ping timeout: 255 seconds]
sehraf has joined #linux-sunxi
netlynx has quit [Quit: Leaving]
HeHoPMaJIeH has joined #linux-sunxi
quitte has quit [Read error: Connection reset by peer]
quitte has joined #linux-sunxi
paulk-aldrin has joined #linux-sunxi
HeHoPMaJIeH has quit [Ping timeout: 240 seconds]
HeHoPMaJIeH has joined #linux-sunxi
Gerwin_J has joined #linux-sunxi
tgaz has joined #linux-sunxi
tgaz has quit [Ping timeout: 244 seconds]
mawe242_ is now known as mawe242
<mawe242> hi! i'm trying out GPIO access speed on my cubieboard2. using mmap (and a gpio lib i've found) I get bit toggle speeds of around 2MHz. Is there any way of going faster still?
paulk-aldrin has quit [Remote host closed the connection]
Renard has quit [Ping timeout: 260 seconds]
tgaz has joined #linux-sunxi
nabblet has joined #linux-sunxi
tgaz has quit [Ping timeout: 245 seconds]
Renard has joined #linux-sunxi
sehraf has quit [Read error: Connection reset by peer]
sehraf has joined #linux-sunxi
paulk-collins has joined #linux-sunxi
paulk-collins has quit [Remote host closed the connection]
tgaz has joined #linux-sunxi
<Turl> mawe242: I measured a bit over 2mhz toggling on uboot, so I don't think you got too much of a headroom
<mawe242> Turl: thanks! so it's not linux getting in the way, but some kind of HW limit I guess?
<Turl> maybe if you adjust the bus clocks it'll be able to be a bit faster, but I don't know how much you need
<mawe242> Turl: i guess I have to stop this stupid bit-banging and start to make proper use of the SPI module...
<Turl> ah, you're doing SPI? do use the proper spi controller then :)
<Turl> that one can work faster than that
<mawe242> Turl: while we're at it... have you ever made use of the 12-bit touchpad ADC as a generic ADC?
<Turl> nope
<mawe242> shame :-) but thanks for your help on the GPIO!
ogi has joined #linux-sunxi
<Turl> np :)
nabblet has quit [Ping timeout: 260 seconds]
afaerber has joined #linux-sunxi
dlan has quit [Ping timeout: 264 seconds]
dlan has joined #linux-sunxi
<oliv3r> Turl: do we have a sunxi spi controller in 3.4? i was looking for it, but only found spidev
afaerber has quit [Quit: Verlassend]
afaerber has joined #linux-sunxi
quitte has quit [Read error: Connection reset by peer]
quitte has joined #linux-sunxi
<oliv3r> CONFIG_SPI_SUNXI nvm
<oliv3r> oh, ARCH_SUN7I is not listed
<mawe242> oliv3r: i'm on the same path at the moment. seems like the A20 spi controller is not natively supported yet.
paulk-collins has joined #linux-sunxi
<oliv3r> mawe242: hehe, i'm about to send a patch to the mailing list :)
<oliv3r> wow that 'porting guide' is weak
dack has joined #linux-sunxi
_whitelogger has joined #linux-sunxi
konradoo77 has joined #linux-sunxi
hipboi has joined #linux-sunxi
ssvb has joined #linux-sunxi
<mawe242> oliv3r: would I only have to change the "depends" in drivers/spi/Kconfig file to make the sunxi_spi driver work on my A20?
<oliv3r_> right now, I assume that the SPI hardware is identical on sun7i as it is to sun4i
<oliv3r_> i should compare them, but i'm a little lazy
<oliv3r_> i will
<mawe242> i'm trying it out now, compiling a kernel with sunxi_spi enabled. will see how far I get...
<mawe242> the initial patch supplying the sunxi_spi driver suggests that it should work for sun7i.
<oliv3r_> i saw one on the ML, it was horrendous
<mawe242> hm... ok. so what's the difference between spidev and this sunxi_spi?
<oliv3r_> spidev is something different afaik
deasy has quit [Quit: Nom d'un quark, c'est Edmonton !]
<mawe242> oliv3r: are you currently working on this? if so, then I would wait for your patch. otherwise I would change the spi_sunxi driver myself...
<mawe242> (as simply adjusting the Kconfig didn't work. need to modify a few defines in the code as well.
<oliv3r_> mawe242: it's allready done
<oliv3r_> just need to figure out why it's not compiling, but i'm guessing that's because some dma stuff is missing or some path has changed
astr has quit [Ping timeout: 260 seconds]
<mawe242> \o/
<mawe242> great :-)
<gzamboni> spidev is to use the spi as a device in the userspace
<oliv3r_> strange why sun7i is not mentioned in dma_ref.h
<mawe242> gzamboni: but isn't that also the aim of spi_sunxi? to provide a device which you can use from userspace?
<gzamboni> spidev is a virtual device that allows you to use the spi in the" userspace
<gzamboni> you can youse the spi_sunxi with another linux device driver
<mawe242> gzamboni: ah... so spi_sunxi doesn't help me if all I want to do is use SPI from userpace?
<gzamboni> yes, you should compile it with spidev
<gzamboni> spi_sunxi is the driver for the spi controller inside the allwinner ic
<mawe242> ok, and spidev makes that available in userspace. i get it.
<oliv3r_> so you need both :)
<gzamboni> it will create something like spi0.0 in the dev directory so you can do write/read/io controls in C or another pgm language
<gzamboni> remember you should specify in your fex or dt that you will use the spidev
<gzamboni> i made a tutorial in the sunxi wiki
<mawe242> yes, I did that. but modprobing spidev made no device appear. that why I started looking into sunxi_spi
<gzamboni> did you set in your config to comile all the needed stuff ?
<gzamboni> what board are you using ?
<mawe242> gzamboni: i've seen the tutorial, it got me started on the right path. but I'm on cubieboard2 with an A20 chip. that's why I got no sunxi_spi driver in my kernel.
avsm has joined #linux-sunxi
<mawe242> but I'm counting on oliv3r_ to fix that :-)
<gzamboni> oh, ok, didnt see the history, sorry
<gzamboni> bbl
<mawe242> np. thanks for your help!
<mawe242> oliv3r_: if I can help, give me a shout...
astr has joined #linux-sunxi
konradoo87 has joined #linux-sunxi
<oliv3r_> mawe242: you can test :)
<oliv3r_> are you subscribed to our mailinglist?
notmart has quit [Quit: notmart terminated!]
konradoo77 has quit [Ping timeout: 255 seconds]
<mawe242> not yet, but I'm watching via googlegroup
<oliv3r_> ah fair nuff
avsm has quit [Read error: Connection reset by peer]
avsm has joined #linux-sunxi
avsm1 has joined #linux-sunxi
ddc has quit [Quit: Page closed]
<oliv3r_> hmm, the dma stuff is a big pain :(
avsm has quit [Ping timeout: 264 seconds]
<oliv3r_> Turl: i'm sure you looked at sunxi 3.4 dma stuff, it looks like dma is not used for sun7i? or atleast, sun7i does it 'differently' 
quitte has quit [Read error: Connection reset by peer]
quitte has joined #linux-sunxi
<mawe242> oliv3r_, why? isn't it identical to sun4i?
netlynx has joined #linux-sunxi
netlynx has quit [Changing host]
netlynx has joined #linux-sunxi
zeRez has joined #linux-sunxi
linkmauve1 has joined #linux-sunxi
xavia has joined #linux-sunxi
wens_ is now known as wens
<Turl> oliv3r_: sun7i uses a diff dma driver
<Turl> it's on mach-sun7i
<Turl> look at other drivers, they have the ifdefs
<Turl> eg i2c
<libv> seems like the discussion has died down enough that a second patchset for simplefb should go out
<mawe242> oliv3r_: i've got spi_sunxi to at least compile here for sun7i
<mawe242> bbl
avsm1 has quit [Quit: Leaving.]
avsm has joined #linux-sunxi
konradoo87 has quit [Ping timeout: 240 seconds]
HeHoPMaJIeH has quit [Quit: Konversation terminated!]
avsm has quit [Quit: Leaving.]
tonyctl has joined #linux-sunxi
tonyctl has left #linux-sunxi [#linux-sunxi]
konradoo77 has joined #linux-sunxi
Black_Horseman has quit [Quit: Zwi se logou mou!!!]
Black_Horseman has joined #linux-sunxi
Gerwin_J has quit [Quit: Gerwin_J]
xavia has quit [Ping timeout: 245 seconds]
Akagi201 has joined #linux-sunxi
bertrik has joined #linux-sunxi
boycottg00gle has quit [Remote host closed the connection]
nabblet has joined #linux-sunxi
konradoo87 has joined #linux-sunxi
konradoo87 has quit [Client Quit]
konradoo77 has quit [Ping timeout: 240 seconds]
nabblet has quit [Ping timeout: 260 seconds]
xavia has joined #linux-sunxi
FunkyPenguin has quit [Ping timeout: 272 seconds]
FunkyPenguin has joined #linux-sunxi
FunkyPenguin has quit [Ping timeout: 260 seconds]
deasy has joined #linux-sunxi
bertrik has quit [Remote host closed the connection]
FunkyPenguin has joined #linux-sunxi
paulk-collins has quit [Ping timeout: 244 seconds]
FunkyPenguin has quit [Ping timeout: 246 seconds]
FunkyPenguin has joined #linux-sunxi
popolon has joined #linux-sunxi
popolon has joined #linux-sunxi
nabblet has joined #linux-sunxi
rz2k has joined #linux-sunxi
hipboi has quit [Read error: Connection timed out]
hipboi has joined #linux-sunxi
paulk-collins has joined #linux-sunxi
FR^2 has quit [Quit: Connection reset by peer]
nabblet_ has joined #linux-sunxi
akaizen has joined #linux-sunxi
akaizen has quit [Remote host closed the connection]
akaizen has joined #linux-sunxi
akaizen has quit [Ping timeout: 240 seconds]
paulk-collins has quit [Quit: Ex-Chat]
FR^2 has joined #linux-sunxi
dack has quit [Remote host closed the connection]
akaizen has joined #linux-sunxi
akaizen has quit [Remote host closed the connection]
akaizen has joined #linux-sunxi
akaizen has quit [Ping timeout: 240 seconds]
<rafaelMOD> Has anyone managed to make USB Gadget g_audio work on A10/A20??
<libv> rafaelMOD: sounds like there is little sunxi specific about that
<libv> rafaelMOD: did you get otg working on cubie2 btw?
<rafaelMOD> Yes, I have g_ether working perfectlly
<rafaelMOD> with OTG configs on
<libv> ok, seems like i should go revisit my axp id patch then
<rafaelMOD> On cubie1 and cubie2
<libv> rafaelMOD: sunxi-3.4?
<rafaelMOD> 3.4.90-r1
<libv> ok
<libv> yet another thing added to my constantly growing todo list :)
<rafaelMOD> I put on wiki
<libv> yeah, thanks
<libv> but i still need to go figure out why my cubietruck won't do otg :)
<rafaelMOD> no problem
<libv> and then see what i am still missing on my a20 tablets, as they needed some axp gpio fixes as well for device/host detection
<rafaelMOD> I only changed .config and it worked with g_ether, but g_audio isn't working at all!
<rafaelMOD> With g_audio i get: [ 114.282231] WRN:L2728(drivers/usb/sunxi_usb/udc/sw_udc.c):ERR: usb device is not active
<libv> when g_ether works, you should kind of suspect a config issue, or an issue with the driver for the usb audio device itself
<libv> ok?
<rafaelMOD> I am not runing composite... yet!
lukas2511 has quit [Ping timeout: 260 seconds]
afaerber has quit [Quit: Verlassend]
<rafaelMOD> when compiling with .confg for g_audio i get:
<rafaelMOD> WARNING: sound/soc/sunxi/built-in.o(.devinit.text+0x2f0): Section mismatch in reference from the function sunxi_codec_probe() to the function .init.text:snd_card_sunxi_codec_pcm.constprop.11()
<rafaelMOD> The function __devinit sunxi_codec_probe() references a function __init snd_card_sunxi_codec_pcm.constprop.11().
<rafaelMOD> If snd_card_sunxi_codec_pcm.constprop.11 is only used by sunxi_codec_probe then
<rafaelMOD> annotate snd_card_sunxi_codec_pcm.constprop.11 with a matching annotation.
<rafaelMOD> And there is a mismatch when compiling
nabblet has quit [Ping timeout: 246 seconds]
nabblet_ has quit [Ping timeout: 244 seconds]
akaizen has joined #linux-sunxi
lukas2511 has joined #linux-sunxi
<rafaelMOD> libv: i have seen on some A10/A20 schematics USB0_VBUSDET connected in AXP or in a GPIO, usualy defined in the FEX
paulk-collins has joined #linux-sunxi
<rafaelMOD> In my coreboard I put lots of 0R jumpers to make both signal paths possible
nabblet has joined #linux-sunxi
nabblet has quit [Ping timeout: 260 seconds]
Quarx has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
sehraf has quit [Quit: www.miranda-fusion.de ... be part of it...]
ogi has quit [Remote host closed the connection]
dack has joined #linux-sunxi
quitte has quit [Read error: Connection reset by peer]
afaerber has joined #linux-sunxi
quitte has joined #linux-sunxi
leviathanch2 has joined #linux-sunxi
libv has quit [Read error: Connection reset by peer]
libv has joined #linux-sunxi
netlynx has quit [Quit: Leaving]
quitte has quit [Ping timeout: 245 seconds]
Skaag has quit [Ping timeout: 244 seconds]
ninolein_ has quit [Ping timeout: 264 seconds]
ninolein has joined #linux-sunxi
akaizen has quit [Remote host closed the connection]
akaizen has joined #linux-sunxi
dack has quit [Remote host closed the connection]
akaizen has quit [Ping timeout: 240 seconds]
jemk has quit [Quit: leaving]
akaizen has joined #linux-sunxi
Andy-D has joined #linux-sunxi
deasy has quit [Quit: Nom d'un quark, c'est Edmonton !]
<bonbons> rafaelMOD: axp does have USB connection detection and even triggers IRQ when USB gets connected
akaizen has quit [Remote host closed the connection]
akaizen has joined #linux-sunxi
akaizen has quit [Ping timeout: 240 seconds]
leviathanch2 has quit [Ping timeout: 246 seconds]
sehraf has joined #linux-sunxi
akaizen has joined #linux-sunxi
deasy has joined #linux-sunxi
FreezingCold has quit [Ping timeout: 245 seconds]
Gerwin_J has joined #linux-sunxi
Gerwin_J has quit [Client Quit]
petr has quit [Ping timeout: 240 seconds]
Gerwin_J has joined #linux-sunxi
Gerwin_J has quit [Client Quit]
rz2k has quit []
xavia has quit [Remote host closed the connection]
FreezingCold has joined #linux-sunxi
petr has joined #linux-sunxi
sehraf has quit [Quit: www.miranda-fusion.de ... be part of it...]
bonbons has quit [Quit: Leaving]
mawe242 has quit [Remote host closed the connection]
akaizen has quit [Remote host closed the connection]
akaizen has joined #linux-sunxi
ricardocrudo has quit [Remote host closed the connection]
akaizen_ has joined #linux-sunxi
akaizen has quit [Ping timeout: 240 seconds]
<rafaelMOD> bonbons: You are right. I was biased by Itead Coreboard + Iteaduino that implements a different scheme, they use a pullup with 3.3V in VBUS, really strange.
<rafaelMOD> But must work for self powered devices, as the one I am developing. It will be called Bubaboard, the name of our dog here in the company.
<rafaelMOD> ANN: The MOD. www.portalmod.com. A sound effect processor that runs LV2 open standard.
<rafaelMOD> g_audio defietly doesn't work just with .config for cubieboard
rafaelMOD has quit [Quit: Saindo]
ecelis has quit [Ping timeout: 272 seconds]
Nazcafan has joined #linux-sunxi
ecelis has joined #linux-sunxi
Nazcafan has quit [Ping timeout: 264 seconds]