<user135>
so how does that sd to microsd card plug into my pc?
<mnemoc>
with a uart/usb adapter
<mnemoc>
ttl
<user135>
okay, let me look
<user135>
ok, so can I emulate with this a microsd card & get console output?
<user135>
if I get both a uart/usb adapter and card converter module
<user135>
?
<mnemoc>
you can replace nanda's u-boot with one that configure the uSD pins as uart/jtag, connect the breakout and the uart/usb adapter, and get a serial console. yes
hramrach has quit [Ping timeout: 276 seconds]
<user135>
hmm, that seems a bit excessive for what I'm trying to do maybe, I'll explain:
<user135>
I have a recovery.img file which I compiled
<mnemoc>
2:30... need to go to sleep now. keep poking Turl
<mnemoc>
good night
<user135>
lol ok
<rz2k>
good night mnemoc
<user135>
Thanks anyway
<user135>
good night
<rz2k>
anyone worked with i2c or spi on sunxi'es?
<theOzzieRat>
rz2k, i am right now
<theOzzieRat>
spi that is
<rz2k>
does it envolve ton of chinese shit-code?
<rz2k>
or is it standard-wired to linux api for it?
<theOzzieRat>
not a ton, but not real good
<theOzzieRat>
it is a driver that is used by the standard linux spi subsystem
<rz2k>
I have a guy who wants to connect an spi or i2c for data reading from external MCU
<rz2k>
not really sure what to answer him
<rz2k>
oh
<theOzzieRat>
i have it working talking to an external atmel mcu
<rz2k>
then its ok
<rz2k>
cool
<theOzzieRat>
at present it only supports half duplex
<theOzzieRat>
i have found a couple of bugs with it and am putting together a couple of patches
<user135>
Which kernel defconfig should I be using for a13_mid? Is it a13_nuclear?
<rz2k>
great
<rz2k>
we have only one available
<theOzzieRat>
after that I will make it handle full duplex, I have done a quick hack that has it working full duplex for transfers <64 bytes
<rz2k>
for it
<rz2k>
theOzzieRat: that guy who contacted me is doing some sort of 'clever house' systems and wants to use cheap sunxi tablets as a GUI mounted in walls
<rz2k>
as far as I understood
<theOzzieRat>
that sounds like a good use. mine is being a web server connected to a board I built that collects data from my weather station
<rz2k>
dont you mind if I ask your contact info in PM? he is money-interested in this, also I'm not a best developer in the world, so I might give up at some point :p
<theOzzieRat>
no problem
hipboi has joined #linux-sunxi
<theOzzieRat>
can anyone tell me how many CS's there are on each port of the A10 and A13?
bfree_ has quit [Ping timeout: 252 seconds]
bfree__ has joined #linux-sunxi
hramrach has joined #linux-sunxi
<Turl>
theOzzieRat: on SPI?
<Turl>
theOzzieRat: according to the docs, SPI0 has 4 chip selects and SPI1 has 1
<theOzzieRat>
Turl, which doc was that? The docs I have read say that SPI0-3 all have CS0 and CS1. And the spi_sunxi.c is different again.
<Turl>
user135: you need a device tree like _zatab or _mk802ii ones
<Turl>
the example repo got outdated
<Turl>
you'll be better off cloning the zatab one and modifying it to fit
<user135>
ok
<Turl>
theOzzieRat: google 'a10 datasheet', first result
<theOzzieRat>
I think that overview is wrong in section 15.1. In the same datasheet under the multiplex functions all SPI ports have CS0 and CS1. The overview also doesn't mention SPI2 or SPI3
<rz2k>
allwinner datasheets have errors in DDR3 setup
<rz2k>
what do you want them in SPI :p
<theOzzieRat>
Just trying to confirm it before I submit a patch to fix spi_sunxi.c
<theOzzieRat>
rz2k, talking about SPIx_CSy
<user135>
okay, Turl, is there any specific changes I need to make to ZaTab for a13_mid besides the defconfig?
rz2k has quit []
<Turl>
user135: well, I don't know what your mid has, you might need to adjust the sensor definitions, partition layout, recovery keymapping, etc
<user135>
ok
<user135>
well I'm only making a recovery image, but I guess I won't know the keymappings until I test
user135 has quit [Quit: Leaving]
ZaEarl has quit [Ping timeout: 246 seconds]
user135 has joined #linux-sunxi
<user135>
Turl, I've made some progress I think, the screen now lights up
hipboi has quit [Ping timeout: 252 seconds]
hipboi has joined #linux-sunxi
user135 has quit [Quit: Leaving]
ZaEarl has joined #linux-sunxi
anunnaki has quit [Remote host closed the connection]
anunnaki has joined #linux-sunxi
rellla has joined #linux-sunxi
anunnaki has quit [Remote host closed the connection]
Guest77256 is now known as fredy
fredy is now known as Guest30019
Guest30019 is now known as fredy
anunnakiii has joined #linux-sunxi
rellla has quit [Remote host closed the connection]
anunnaki has joined #linux-sunxi
user135 has joined #linux-sunxi
paulk-desktop has joined #linux-sunxi
<paulk-desktop>
hi there
<libv>
i will be deprecating mali-libs and libump today.
<paulk-desktop>
any way to get u-boot prompt on sun5i tablets.
<paulk-desktop>
?
<libv>
just had someone mail the lima ml where he first explained how he installed mali-libs :(
<libv>
paulk-desktop: uart.
<paulk-desktop>
libv, where are the connectors?
<libv>
paulk-desktop: that's the million dollar question.
<libv>
paulk-desktop: every device is different.
<libv>
paulk-desktop: if it is not documented on our wiki, then you are on your own.
<paulk-desktop>
libv, I'd like to understand a bit better all this:
<paulk-desktop>
basically, A13 is a SoC made by Allwinner
<libv>
*sigh*
<paulk-desktop>
but the tablets are all unbranded?
<libv>
paulk-desktop: SoC != device
<paulk-desktop>
libv, but A13 is the SoC, not the device?
<libv>
yes
<paulk-desktop>
so no misunderstanding there
<paulk-desktop>
A13B/Q88 are the tablets
<paulk-desktop>
libv, so I guess each tablet has a separate board file in the kernel?
<libv>
now, if you understand that, what is the difficulty in understanding that there are multiple devices out there, from various manufacturers, some with branding, some rebranded, some without branding
<libv>
yes
<libv>
with wildly different board layouts as well
<paulk-desktop>
libv, then I'm interested in knowing which tablets have public board files and defconfigs :)
<libv>
paulk-desktop: linux-sunxi.org
<libv>
paulk-desktop: if you had gone through FirstSteps, you would know
<libv>
unless marked differently in the respective wiki-page, but beware, wikis are never 100% correct and up to date
<paulk-desktop>
libv, if I buy a Q88 tablets on ebay, should I assume that all the Q88 tablets I can find are the same to this one?
<libv>
no
<paulk-desktop>
or are there differences even between tablets of the same model
<libv>
paulk-desktop: we are not the makers of this hw
<paulk-desktop>
I see
<libv>
paulk-desktop: board/device makers do crazy things
<libv>
there is a high probability though
<libv>
but no assurance.
<paulk-desktop>
so a Q88 tablet I buy may, in facts, not be suitable for the kernel you release?
<libv>
what are you trying to achieve?
<paulk-desktop>
libv, I'm a Replicant (fully free Android distribution) developer and my problem is that we release prebuilt images, so if the hardware changes between tablets, it's not suitable for replicant
<paulk-desktop>
basically, we won't tell our users: rebuilt a kernel with your particular tablet config
<paulk-desktop>
rebuild*
<libv>
paulk-desktop: kernel is not the issue
<libv>
which you would've known if you had run through FirstSteps
<libv>
paulk-desktop: uboot and script.bin are device specific
<paulk-desktop>
ah then this is an highly uncommon process then :)
<libv>
really?
<user135>
not really, I wrote a script to do it
<libv>
i expect DT to be a similar but more widespread system for the same
<paulk-desktop>
libv, other android devices come with one kernel per board
<paulk-desktop>
best case scenario, one defconfig per board
<libv>
paulk-desktop: DT is devicetree
<paulk-desktop>
libv, yes but nobody uses DT for now
<paulk-desktop>
it's just beginning
<paulk-desktop>
current Android devices are still released with 1 kernel and 1 defconfig per board
<paulk-desktop>
(which is the usual case for embedded ARM devices)
<libv>
paulk-desktop: well, we have 1 defconfig for sun4i and 1 for sun5i
<paulk-desktop>
that's pretty good
<libv>
and then we have the uboot and script.bin differences
<paulk-desktop>
libv, are the u-boot sources for all tablets released?
<paulk-desktop>
it's GPLvsomething IIRC
<libv>
it needs device specific info
<libv>
to set up dram
<libv>
we have a small tool to find out the dram settings for us
<paulk-desktop>
yeah but that should have been released by the vendors
<libv>
paulk-desktop: welcome to the real world.
<paulk-desktop>
:)
<paulk-desktop>
that's why I prefer to work with mainstream manufacturers
<libv>
sure.
<paulk-desktop>
at least they release what they have to release
<libv>
it took long enough to convince them to do so
<libv>
and they are not immediate
<paulk-desktop>
yeah
<libv>
what do you concretely want to do?
<paulk-desktop>
libv, I would be interested in buying such a tab and helping to port replicant to it
<libv>
and how does that relate to your direct uboot question you started out with?
<paulk-desktop>
because I like the SoC and u-boot support
<paulk-desktop>
libv, that was to help user135, who has such a tab
<paulk-desktop>
libv, but I'm interested in buying one too, so I'm asking general questions as well
<user135>
indeed, but I don't have GPU drivers!
<user135>
:)
<libv>
paulk-desktop: best chance is indeed finding a tablet that is listed in our wiki
<user135>
I think that's what I'm a needing anyways.
<paulk-desktop>
libv, so basically, u-boot and script.bin are already in the tab when I buy it?
<user135>
yes
<paulk-desktop>
but in binary for obviously
<paulk-desktop>
so if I want to rebuild, I have to figure it out from binary/from the device
<user135>
well, you'll need to compile uboot
<libv>
paulk-desktop: you should also verify sunxi-boards for the related .fex file, which can then be turned into script.bin
<user135>
and script.bin is in binary on nanda
<libv>
paulk-desktop: somewhat/yes.
<paulk-desktop>
libv, alright
<libv>
paulk-desktop: the dram parameters for that we have a special tool
<paulk-desktop>
libv, good
<paulk-desktop>
so it's doable?
<libv>
and those parameters go into uboot
<libv>
the script.bin can be read out from the fs directly, and then converted to a .fex
<paulk-desktop>
libv, is u-boot specific too or is the specific part only script.bin ?
<libv>
both are specific
<libv>
but we can get the uboot specific data separately
<paulk-desktop>
so I won't be able to release u-boot for all sun5i boards, got it
<paulk-desktop>
libv, just curiosity, how come Linux can figure out which touchscreen to use (for instance) ? cmdline?
<libv>
no idea
<paulk-desktop>
ok but it works?
<libv>
i am a graphics driver guy, haven't bothered with touchscreen at all
<paulk-desktop>
nice
<paulk-desktop>
libv, mhh I think I remember seeing you around in #lima
<libv>
paulk-desktop: yes
<libv>
paulk-desktop: given that i started the lima thing, that's no surprise
<paulk-desktop>
libv, I see :)
<user135>
so say if I had a a13_mid tablet, and I had compiled u-boot, and the screen turned on but it was blank ... what could be the problem?
<paulk-desktop>
I was searching for the FOSDEM presentation to figure out your name
<user135>
and would there be anyway of diagnosing the problem? :/
<paulk-desktop>
libv, I have to say, it's really really good to have people like you doing this
<paulk-desktop>
so thanks a lot
<paulk-desktop>
(as a Galaxy S2 user)
<paulk-desktop>
anyway I guess I'll get a Q88 tab and see
<libv>
it is a very important problem that needs a solution
<paulk-desktop>
libv, one told me that you almost got rid of the non-free shader compiler
<libv>
paulk-desktop: cwabbott has thrown me some shaders that he compiled with his own compiler
<libv>
these shaders should enable a fully free q3a
<libv>
but the road to a full, performant, and correct compiler is still long
<paulk-desktop>
libv, but that quake 3 arena video -- was it with the non-free compiler or not?
<libv>
non-free
<paulk-desktop>
ok
<libv>
but that demo only requires 2 vertex shaders, and 4 fragment shaders
<libv>
and we could hand-assemble the fragment shaders
<paulk-desktop>
that's pretty amazing anyway
<libv>
matching performance with the binary driver is the amazing one
<libv>
and this with only some general optimizations
<libv>
on mali, we can have a free software driver which matches the binary
<libv>
which is unique
<paulk-desktop>
given that we're talking about graphics, that's truly great
<libv>
user135: describe in more detail what you have done to get this display to light up
<user135>
okay, it's a bit complex, but I'll explain
<user135>
tar: binary/dev/*: Cannot mknod: Operation not permitted
<user135>
nm, had to use sudo to extract
bfree__ has quit [Ping timeout: 252 seconds]
bfree__ has joined #linux-sunxi
user135 has quit [Ping timeout: 260 seconds]
user135 has joined #linux-sunxi
rz2k has joined #linux-sunxi
<libv>
hrm... i forgot the .gitignores on the mess that is libump...
<libv>
not sure if it pays to go fix that one...
ZaEarl has quit [Ping timeout: 246 seconds]
<libv>
hrm, so no-one has bothered to write up wiki things on how to set up usb-otg gadget things like networking
* libv
has had this working since december
<libv>
due to hansg and others' usb fixes
ganbold_ has quit [Remote host closed the connection]
<paulk-desktop>
is there any uboot tree that can boot from NAND?
<paulk-desktop>
libv, ^^^
<Turl>
yes, the lichee* branches if I recall correctly
user135 has quit [Ping timeout: 252 seconds]
uminded has joined #linux-sunxi
<uminded>
Every kernel I build and ones that I load that others have working give the error: "Unable to handle kernel NULL pointer dereference at virtual address 00000018" is this a hardware issue??
user135 has joined #linux-sunxi
hramrach has joined #linux-sunxi
servili007 has joined #linux-sunxi
<mnemoc>
uminded: might be a script.bin issue
<mnemoc>
identify the driver and see if it's something your device actually has. if not, disable it in script.bin
<uminded>
mnemoc: how do I recompiler the script.bin back to text??
<uminded>
decompile*
<hramrach>
bin2fex
<uminded>
mnemoc: theirs a whole bunch of things in here I don't have like hdmi and tv out, and the PPL6 freq is wrong
<uminded>
the one provided must have been all possible options and not board specific
<hramrach>
I don't think the script.bin frequencies are used
anunnaki has quit [Quit: Changing server]
<uminded>
I got it working now
<uminded>
on the wiki under Fex_Guide it says "Configuration and GPIO. Doc" do you know which one it refers to?
<uminded>
wow the wiki really needs an overhaul, you need to pick through page links to find something simple
<mnemoc>
go ahead :)
<user135>
Does anyone know how to enable usbserial on an a13_mid?
<user135>
zio, I think it's called
<mnemoc>
the ftdi driver is called something zio
<mnemoc>
but it's kind of weird you want usbserial on a tablet...
<mnemoc>
anyhow, recompile your kernel with the stuff you need enabled
<user135>
how do I go about enabling it?
<mnemoc>
eh? enabling the right CONFIG_ in .config before compiling it?
<mnemoc>
never compiled a kernel before?
<user135>
hmm, usb serial is enabled already.
<user135>
thanks anyways.
<mnemoc>
nice
<mnemoc>
they might use it for 3g modems
<techn_>
user135: have you tried framebuffer console?
<user135>
now trying it
<user135>
gotta build the kernel again
<user135>
and make a boot.cmd
<mnemoc>
btw, to connect to the serial console of a device you need the usb driver in your computer, not on the device
<mnemoc>
anyhow, not following the discussion, and time to sleep
<mnemoc>
good night
<user135>
night
rz2k has quit []
user135 has quit [Quit: Leaving]
lous_ has joined #linux-sunxi
paulk-desktop has quit [Quit: Ex-Chat]
lous_ has left #linux-sunxi [#linux-sunxi]
user135 has joined #linux-sunxi
<user135>
Hi, does anyone know why I'm getting these errors whilst enabling the framebuffer:
<user135>
error: implicit declaration of function 'acquire_console_sem'
<user135>
error: implicit declaration of function 'release_console_sem'
<user135>
?
<user135>
in kernel/power
<user135>
consoleearlysuspend.o
<hramrach>
maybe because you enabled early suspend