<Netrunner__>
Hello people, I need some help getting an I2S device to work on an A20 itead-based board. Has anybody had any experience with it?
bonbons has joined #linux-sunxi
paulk-aldrin has joined #linux-sunxi
rellla has left #linux-sunxi [#linux-sunxi]
konradoo77 has quit [Ping timeout: 272 seconds]
<wens>
mripard_: thx
MY123 has joined #linux-sunxi
<MY123>
I now have a "proper" PC.
rellla has joined #linux-sunxi
konradoo77 has joined #linux-sunxi
rellla has left #linux-sunxi [#linux-sunxi]
rellla has joined #linux-sunxi
heart has quit [Changing host]
heart has joined #linux-sunxi
montjoie[home] has quit [Quit: Lost terminal]
montjoie[home] has joined #linux-sunxi
montjoie[home] has quit [Client Quit]
montjoie[home] has joined #linux-sunxi
lerc has quit [Ping timeout: 272 seconds]
Netrunner__ has quit [Ping timeout: 246 seconds]
avsm has joined #linux-sunxi
MY123 has quit [Ping timeout: 256 seconds]
yann_s|AFK has joined #linux-sunxi
yann_s|AFK is now known as yann_s
nabblet has joined #linux-sunxi
avsm has quit [Read error: Connection reset by peer]
avsm has joined #linux-sunxi
Renard has joined #linux-sunxi
rafaelMOD has quit [Ping timeout: 240 seconds]
konradoo87 has joined #linux-sunxi
konradoo77 has quit [Ping timeout: 240 seconds]
<libv>
ah, cool, i of course had not looked that far
deasy has joined #linux-sunxi
rafaelMOD has joined #linux-sunxi
xeros has joined #linux-sunxi
<libv>
aha, one broken android mbr
<paulk-aldrin>
libv, following up on my NAND problems, I now have a blocking read that makes systemd hang (a few reads seem to succeed before that, though)
<libv>
paulk-aldrin: ouch, that's pretty bad
<libv>
paulk-aldrin: how many issues have you fixed already, just the one?
<paulk-aldrin>
just the buffer oveflow one that was the initial oops
<libv>
right
<paulk-aldrin>
so now it boots ups but hangs systemd
<paulk-aldrin>
I can still login on UART but there is a ever-locked mutex on the nand blk devices
<paulk-aldrin>
so whetever I try to mount them, I get stuck in the lock
<paulk-aldrin>
whenever*
<libv>
paulk-aldrin: right
avsm has quit [Quit: Leaving.]
<libv>
paulk-aldrin: what hw was this again?
bertrik has quit [Remote host closed the connection]
<paulk-aldrin>
Ampe A76 (A13)
bmk has joined #linux-sunxi
<libv>
paulk-aldrin: can you pastebin the buffer overflow patch?
<libv>
i wonder why it happened at all
<paulk-aldrin>
libv, well, I didn't make a patch yet, and what I did is nasty as well
<paulk-aldrin>
basically, they hardcoded a buffer of size 4 * 16
<libv>
also: ALLWINNER: NAND CODE! NOW!
<paulk-aldrin>
and then did memcpy on that buffer with 4 * (variable thing that is often 16 but 32 in my case)
<paulk-aldrin>
(size)
<paulk-aldrin>
so I just hardcoded 4 * 32 instead of 4 * 16, but it's better to malloc I suppose
<paulk-aldrin>
unless 32 is reliably an upper limit
<libv>
i'd still like to see the code so i can help figure out why this failed, and perhaps why it now fails somewhere else
<paulk-aldrin>
(has lots of debug prints added, too)
<libv>
so you just increased the buffersizes everywhere?
<paulk-aldrin>
yes
<paulk-aldrin>
(I'm not saying it's a proper fix)
lauri has quit [Ping timeout: 245 seconds]
<paulk-aldrin>
I get: <3>SYSCALL do_sync_read(): asked to read 512 bytes at cafffe00
<paulk-aldrin>
and then: <3>SYSCALL do_sync_read(): aio_read returned with -4
<paulk-aldrin>
with a delay of ~10/20 secs in between
<paulk-aldrin>
EINTR apparently
<libv>
paulk-aldrin: did you locate which line caused the initial bufferoverflow?
<paulk-aldrin>
one of the memcpy with SECTOR_CNT_OF_SINGLE_PAGE * 4 size
<paulk-aldrin>
which is legit
<paulk-aldrin>
the one in _write_signle_page
lauri has joined #linux-sunxi
<paulk-aldrin>
the memset apparently set part of writeop to 0xff as well, due to the overflow
<paulk-aldrin>
(hence the invalid connect mode error you spotted yesterday, it was not using the initial value of writeop->chip, but 0xff instead)
konradoo77 has joined #linux-sunxi
<paulk-aldrin>
mhh, I've gotta eat, bbl
<libv>
so SectorCntPerPage = 32
<paulk-aldrin>
in my case, yes
<paulk-aldrin>
I'm suspecting the code assumes 16 at other places, which is perhaps what makes the read fail
konradoo87 has quit [Ping timeout: 260 seconds]
<paulk-aldrin>
now I'm sure that a newer version of sunxi_nand has that fixed already… the message the nand driver shows on Android reports a newer minor version
ddc has joined #linux-sunxi
nabblet has quit [Quit: leaving]
<libv>
right :(
<libv>
hrm, filled with -1 :(
zeRez has joined #linux-sunxi
<ddc>
Hi there, I'm working on porting bbrezillon mtd nand driver to u-boot. So far the driver is working ok with u-boot (nand, mmc) using the device tree control( dtb combined with u-boot binary). I can load the legacy uImage as well as FIT image
bengal has joined #linux-sunxi
<ddc>
But I;m not able to boot.
<ddc>
the kernel
<ddc>
Can anyone point me some info about the address relocation for the sunxi u-boot
bmk has quit [Ping timeout: 246 seconds]
<ddc>
I meant information about calculating the relocation address
<ddc>
:-(
<ddc>
I guess I should try the mailing list, or the u-boot channel
ddc has quit [Quit: Page closed]
Akagi201 has quit [Ping timeout: 240 seconds]
Akagi201 has joined #linux-sunxi
konradoo87 has joined #linux-sunxi
konradoo77 has quit [Ping timeout: 250 seconds]
rz2k has joined #linux-sunxi
yann_s has quit [Ping timeout: 246 seconds]
netlynx has joined #linux-sunxi
ricardocrudo has joined #linux-sunxi
tomcheng86 has quit [Read error: Connection reset by peer]
tomcheng76 has joined #linux-sunxi
ricardocrudo has quit [Ping timeout: 245 seconds]
yann_s|AFK has joined #linux-sunxi
yann_s|AFK is now known as yann_s
konradoo77 has joined #linux-sunxi
konradoo87 has quit [Ping timeout: 272 seconds]
<paulk-aldrin>
libv, hang happens when reading what is reported to be the last 8 sectors (or blocks)
<paulk-aldrin>
I'll check the offsets/sizes that the android kernel reports to compare
<paulk-aldrin>
libv, huh, just found source for the newer version