<akaizen>
libv: oh hey whats up? i wanted to ask you about tamil, have you found time to work on that?
mmarker has quit [Ping timeout: 246 seconds]
mmarker has joined #linux-sunxi
mmarker has joined #linux-sunxi
joedj has quit [Ping timeout: 244 seconds]
Nacho_ has quit [Ping timeout: 244 seconds]
joedj has joined #linux-sunxi
Nacho_ has joined #linux-sunxi
akaizen has quit [Remote host closed the connection]
akaizen has joined #linux-sunxi
xypron has quit [Read error: Connection reset by peer]
Igorpec3 has joined #linux-sunxi
orly_owl has quit [Ping timeout: 255 seconds]
akaizen has quit [Remote host closed the connection]
cubeast has joined #linux-sunxi
montjoie has quit [Quit: leaving]
montjoie has joined #linux-sunxi
khuey is now known as khuey|away
JohnDoe_71Rus has joined #linux-sunxi
Igorpec3 has quit [Ping timeout: 264 seconds]
orly_owl has joined #linux-sunxi
akaizen_ has joined #linux-sunxi
florian_ has joined #linux-sunxi
Igorpec3 has joined #linux-sunxi
reinforce has joined #linux-sunxi
domidumont has joined #linux-sunxi
domidumont has quit [Remote host closed the connection]
domidumont has joined #linux-sunxi
florian_ has quit [Ping timeout: 256 seconds]
philectro has joined #linux-sunxi
dlan has quit [Ping timeout: 272 seconds]
dlan has joined #linux-sunxi
dlan has quit [Ping timeout: 260 seconds]
dlan has joined #linux-sunxi
viccuad has joined #linux-sunxi
_massi has joined #linux-sunxi
florian_ has joined #linux-sunxi
BBerry82 has joined #linux-sunxi
viccuad has quit [Quit: WeeChat 1.1.1]
hehopmajieh__ has joined #linux-sunxi
HeHoPMaJIeH has quit [Read error: Connection reset by peer]
popolon has joined #linux-sunxi
viccuad has joined #linux-sunxi
paulk-collins has joined #linux-sunxi
viccuad has quit [Ping timeout: 250 seconds]
viccuad has joined #linux-sunxi
cubeast has quit [Quit: Leaving]
ssvb has quit [Ping timeout: 260 seconds]
enrico_ has joined #linux-sunxi
<oliv3r>
ijc: you are quite involved with the debian installer for sunxi are you not? Where are the kernel packages that you use for this?
ssvb has joined #linux-sunxi
<ijc>
oliv3r: They are the current regular kernel packages in the suite from which the installer image was built. What are you trying to actually find out?
<oliv3r>
ijc: for example i know that fedora installs dtb files in /boot/dtb afaik
<oliv3r>
so was curious how arm does this 'by default'
<ijc>
oliv3r: s/arm/Debian/? And are you talking about the kernel+dtb used for the installer itself, or what the eventually installed system will look like?
<oliv3r>
well technically, right now, i'm only curious about the final looks
<oliv3r>
so i can match that on my platform
<oliv3r>
in the long run, i reccon that the kerne's make deb-pkg would package all this properly? ( does it even package dtb files at all i wonder ...)
<oliv3r>
i generate my kernels via that, but never checked
arete74_ has joined #linux-sunxi
arete74 has quit [Read error: Connection reset by peer]
<oliv3r>
ijc: ah wait i did look, and saw that the default linux-image puts files in /boot, but the kernel is a vmlinuz which i don't think we can boot; and it installs no dtb files at all
<ijc>
The Debian kernel packages ship all dtbs in /usr/lib/something-withte-the-uname and a tool called "flash-kernel" ensures the right DTB ends up in /boot/. The path used changed recently, I forget what to, but I think it was to add /boot/dtbs/thing.dtb for compatiblity with some bootloaders etc.
<oliv3r>
ijc: but what i notice is that in the default kernel package, there is not a single dtb, so debian packages the dtb seperatly?
<ijc>
oliv3r: Which package are you looking at? The dtbs are in the same package as /boot/vmlinuz-$VERSION
<oliv3r>
ijc: i'm looking at my own generate make deb-pkg from the mainline kernel
<oliv3r>
ijc: hence my initial question, how did you do it for the installer :)
mirceac has joined #linux-sunxi
<oliv3r>
so i was wondering, which package exactly is used for the kernel
<mirceac>
hello everybody
<oliv3r>
so i could peek and figure out where debian (i guess flash-kernel) looks for stuff
<oliv3r>
what kernel name it expects etc
<mirceac>
I was wondering about the cool and cheap Orange* line of boards
<mirceac>
Could anybody kindly advice me if they are supported correctly and which one should I get for a small home server ?
<mirceac>
There are Orange Pi, Orange Pi+ and Orange Pi2
<mirceac>
They look kind'of similar at a first glance but the devil is usually in the details
<mirceac>
Also what is Allwinner H3, is some new device or a rebadged A10/A20 ?
<ijc>
oliv3r: You say "the default kernel package" does not contain DTBs. Exactly which kernel package are you talking about there? Also these references to the installer make no sense to me, it does nothing special other than install the kernel and flash-kernel.
<mirceac>
If somebody wants a link to their page I can provide it if it's OK, but I suppose you guys kenw about them
simosx has joined #linux-sunxi
mirceac has quit [Quit: Page closed]
arete74_ has quit [Read error: Connection reset by peer]
arete74 has joined #linux-sunxi
paulk-cccamp has joined #linux-sunxi
paulk-cccamp has quit [Remote host closed the connection]
paulk-tereshkova has joined #linux-sunxi
lioka has quit [Ping timeout: 250 seconds]
lioka has joined #linux-sunxi
lioka has quit [Changing host]
lioka has joined #linux-sunxi
paulk-tereshkova has quit [Ping timeout: 264 seconds]
<oliv3r>
ijc: i assumed the installer makes use of 'a' package from there
<ijc>
oliv3r: You said "the default kernel package... there is not a single dtb". If you aren't looking at some specific package which you think is the default kernel package how did you conclude that?
<oliv3r>
well i'm looking for it :)
<oliv3r>
and i can't find it, and in the kernel package generated by make deb-pkg from the vanilla mainline package it is not included
<oliv3r>
so where are the arm(hf) kernel packages from debian
<oliv3r>
(that work on sunxi)
<gzamboni>
hi, maybe someone could help me out, i'm trying to attach a NOR SPI memory (m25p10) to a olinuxino micro A20 board on spi0, i did add on the dts the needed values, i did add to my config the M25P80 and the needed options but i cant see the mtd on the dev directory. on the dmesg i dont have any relevant information. on /sys/bus/spi/drivers/ i see the m25p80 is present. Some pastebin info follows:
<gzamboni>
the dts spi part: http://pastebin.com/MAwJMeYQ (of course i added the spi alias in the beggining of the dts)
<gzamboni>
anyone have an idea of how can i deep debug this, and/or do i need any tweak on the sunxi spi driver to make this possible ?
<gzamboni>
sometimes changing the dts compatible field with the commented ones i get in dmesg: [ 0.853529] m25p80 spi0.0: unrecognized JEDEC id bytes: ff, ff, ff and [ 0.859800] m25p80: probe of spi0.0 failed with error -2
<oliv3r>
gzamboni: where did you define your partitions? i thought they needed to be in cmdline, dts?
<oliv3r>
though i have no experience with spi-nor
<oliv3r>
gzamboni: also you very well may need alex's spi patch
<ijc>
There is also the plain armmp flavour of all those (without lpae enabled) which is what the installer would actually use itself while running, even on lpae capable platforms, but it would install armmp-lpae on capable platforms
<oliv3r>
i wasn't aware of the mp variant of arm (i only know armel and armhf)
<gzamboni>
oliv3r, i could declare the partitions on the dts, but in this case i dont need it.
cnxsoft1 has joined #linux-sunxi
cnxsoft has quit [Ping timeout: 264 seconds]
cnxsoft1 is now known as cnxsoft
<gzamboni>
this memory has the firmware of a dsp that in the bootup process access its data to load his software, the idea is to upgrade the dsp firmware with linux. There will be a hardware switch to change the spi master bus, but atm i'm connecting the NOR directly and only to the A20
IgorPecovnik has quit [Ping timeout: 264 seconds]
<gzamboni>
one silly question, where do i set the demux of each pin in the dts ? it does automatly due to the requested feature ?
<gzamboni>
oliv3r, this patch isnt in mainline yet ? i'm using 4.2.0-rc4-00313
<oliv3r>
gzamboni: no it's not, there's discussion on the ML about it
<oliv3r>
Michal is a little reluctant to have it merged, because with 4.3 we have SPI-DMA support
<gzamboni>
humm, let me try it out
<oliv3r>
but you need it to get any spi support working properly with large transfers
<oliv3r>
so that on that
<oliv3r>
and yeah, you need to set the mux for spi
<gzamboni>
where do i set the mux in mainline ?
<oliv3r>
gzamboni: but you do that via pinctrl-0 = <&spi0_pins_a> part
<gzamboni>
on the dts i dont see anything about it
<gzamboni>
ah, ok, its already done
<oliv3r>
i successfully used spi-mmc via spi1
<oliv3r>
so i know it can work, just didn't use spi-nor yet
<gzamboni>
if i dont manage to make the linux driver to work i will use spidev and do it on the userspace, but i dont see why its not working, maybe this patch you told me
<gzamboni>
thanks oliv3r
ssvb has quit [Ping timeout: 240 seconds]
<oliv3r>
i dont' think you can use spidev from userspace
<oliv3r>
big mail discussion as to why not
afaerber has joined #linux-sunxi
<gzamboni>
yes, i saw that, but that should be specific to the spi-sunxi, because i can see several other dts using it
<oliv3r>
yeah, i dunno :)
paulk-collins has quit [Quit: Quitte]
<gzamboni>
i'm reading it now, as i understand it works, but we cant set it as default on the dts because of the naming rules
<gzamboni>
there are severals boards that use the spidev specification on the dts, dunno why the patch for the sunxi was refused. http://pastebin.com/aUWzb3TS
<oliv3r>
old stuff that got sneaked in?
<gzamboni>
yes, i did put that exemple, but it was for the 3.4
<oliv3r>
that site has mainline stuff in it too
<oliv3r>
and was updated a few months ago
<gzamboni>
let me check
<gzamboni>
it works, but apparently its not the right way of doing it, i get a warning on the kernel log: spidev spi0.0: buggy DT: spidev listed directly in DT
<oliv3r>
exactly
<oliv3r>
that's the problem, it's caused by BUG() int he spidev driver if you use it as such in the devicetree
<mripard>
gzamboni: your error has nothing to do with spidev
<mripard>
most likely, your bus isn't working
<mripard>
and spidev will not help.
<mripard>
check your wiring and pin mux
<oliv3r>
mripard: how up to speed are you with simple-framebuffer?
<oliv3r>
mripard: also, Hi! :)
<mripard>
oliv3r: enough, I guess
<mripard>
why don't you ask your real question
<oliv3r>
mripard: or rather, i'm reading the simple-framebuffer.txt from the devicetree bindings and see there is an optional display phadle that is supposed to point to the display hardware node, but in the current sunxi dtsi files there is no hardware node (yet)
<oliv3r>
well actually, the real problem i'm encountering is, that I have both simplefb and ssd1307fb enabled in the kernel, and the simplefb becomes fb0; where i want it to be fb1 if there is a ssd1307fb framebuffer device
<oliv3r>
but i don't know if i can have an alias for display0 = &ssd11307; hence, the question if i can put up an alias for the simpleframebuffer
<oliv3r>
if that makes any sense at all
diego_r has quit [Remote host closed the connection]
T0mW has joined #linux-sunxi
diego_r has joined #linux-sunxi
<mripard>
oliv3r: you can, I don't know if the fbdev framework handles it.
<gzamboni>
mripard, spidev is working, i just checked with an osciloscope
<oliv3r>
mripard: so i should just try :)
<oliv3r>
mripard: any other suggestion help the kernel/userspace figure out which fb sits where?
<mripard>
oliv3r: udev?
<mripard>
gzamboni: you're sure of your max frequency ? is it really an SPI NOR and not an AT25
<gzamboni>
my ic is a ST M25P10 SPI NOR
<mripard>
ok
<gzamboni>
i followed the /Documentation/devicetree/bindings/mtd/jedec,spi-nor.txt instructions
<gzamboni>
as it is and jedec compatible device
<mripard>
how do you know that spidev works ? what test did you make ?
<gzamboni>
and as said in the m25p_ids[] in /drivers/mtd/devices/m25p80.c i specified nor-jedec for the m25p10
<gzamboni>
i can only say it sends binary data, i didnt verify the content
<gzamboni>
but i can do so if you want
<oliv3r>
mripard: oh yeah that might work yeah
<oliv3r>
mripard: thanks :)
<gzamboni>
humm, i just found a possible problem, in the ic datasheet it says that for each byte it change the CS state of the spi bus, and i did forced it to zero (the working logic) , let me try with the CS attached
<oliv3r>
spi won't really work without CS though
vishnup has joined #linux-sunxi
<gzamboni>
it depends on the IC, you can force it to the working state of the chipselect of the ic (zero or one)
<gzamboni>
but it requires CS changes only for writing on my IC so it should be probing it
<mripard>
gzamboni: then you have no idea that you can actually read anything from the nor
<mripard>
which is exactly what the driver tries to do
florian_ has quit [Ping timeout: 250 seconds]
ssvb has joined #linux-sunxi
<gzamboni>
spidev sends 0xFF for whatever value i send
<gzamboni>
so i should say spidev does not work
<mripard>
you see that using a logical analyzer ?
JohnDoe_71Rus has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
arete74 has quit [Read error: Connection reset by peer]
arete74_ has joined #linux-sunxi
<gzamboni>
yes, but i'm checking also if its a lenght problem, as my cable is about 15/20cm and signal looses strength
<mripard>
14:27:09 < mripard > most likely, your bus isn't working
florian_ has joined #linux-sunxi
<mripard>
maybe some pull-ups that are too strong?
<gzamboni>
we did only put a external pullup on the clock as recommended on the m25p10 datasheet
<gzamboni>
we didnt change any of the internal pullup configuration of the A20
florian_ has quit [Ping timeout: 250 seconds]
<gzamboni>
sorry, we have only pulldown on the clk, and the clk signal is good, we will try to adjust the others cables