leowt changed the topic of #linux-rockchip to: Rockchip development discussion | http://linux-rockchip.info | http://irclog.whitequark.org/linux-rockchip
nighty-_ has quit [Quit: Disappears in a puff of smoke]
ferric has quit [Ping timeout: 276 seconds]
tonikasch has quit [Quit: Bye!]
Astralix1 has joined #linux-rockchip
Astralix has quit [Ping timeout: 252 seconds]
cnxsoft has joined #linux-rockchip
cnxsoft has quit [Remote host closed the connection]
ferric has joined #linux-rockchip
fenixfunk has joined #linux-rockchip
cnxsoft has joined #linux-rockchip
cnxsoft has quit [Remote host closed the connection]
cnxsoft has joined #linux-rockchip
ferric_ has joined #linux-rockchip
ferric has quit [Disconnected by services]
ferric_ is now known as ferric
cnxsoft has quit [Ping timeout: 252 seconds]
cnxsoft has joined #linux-rockchip
hramrach has quit [Remote host closed the connection]
<fenixfunk> OK so I found a post on where the UART pads on the UG802 are. Since I can't get it to back to where I can flash it, should I maybe just try to hook up to the UART and see if I can get anything coming out that way? I know it's only a $40 stick but I just lost my job :/
<ferric> fenixfunk: why can't you flash it?
<fenixfunk> this board only has two pads near the NAND that I'm supposed to short so that rkbatchtool can see it
<fenixfunk> i've tried to shorting them to no avail. i believe it's a UG802 clone.
<ferric> aha
<ferric> damn the clones.
<fenixfunk> I also have the Timing Power rk3188 stick and the picuntu 4.5 image does not work for me so sometime this week I think I'll be trying to find UART pads on it, upload some pics and start working on getting a kernel up and going :)
hramrach has joined #linux-rockchip
<ferric> just run kitkat, fenix. :P
<ferric> fenixfunk: btw, the rk3288 soc design is up on rk3288.com if you're interested.
<fenixfunk> ;p
<fenixfunk> thanks for that! checking it out now!
<fenixfunk> HAH! Wouldn't you know! I just duct-taped the larger of two lenses from a pair of broken binoculars, used the flathead bit of a cheapo car boot screwdriver on those two pads i mentioned earlier, and rkbatchtool sees the device now. maybe this ug802 clone isn't worthless!
<fenixfunk> (i taped the lens to my face, left that out in the excitement...hah)
cnxsoft has quit [Ping timeout: 240 seconds]
cnxsoft has joined #linux-rockchip
_massi_ has joined #linux-rockchip
<fenixfunk> ok, the iPazzPort brand UG802 clone (model no. NC19) is now running an Ubuntu 3.0.8 kernel... this is definitely progress considering I thought I had lost it for good :)
AstralixNB has joined #linux-rockchip
AstralixNB has left #linux-rockchip [#linux-rockchip]
cnxsoft has quit [Ping timeout: 240 seconds]
AstralixNB has joined #linux-rockchip
cnxsoft has joined #linux-rockchip
ncrmnt has joined #linux-rockchip
rz2k has joined #linux-rockchip
tonikasch has joined #linux-rockchip
valentyn has joined #linux-rockchip
valentyn has quit [Client Quit]
valentyn has joined #linux-rockchip
FreezingCold has quit [Ping timeout: 240 seconds]
valentyn has quit [Client Quit]
valentyn has joined #linux-rockchip
<valentyn> Hello everyone. Question about my Minix Neo X7 Mini. I tried to reflash the system partition with rkflashtool, but it doesn't work. Flashing with upgrade_tool works fine.
<valentyn> Is rkflashtool out of date? Did something change in Rockchip's USB protocol?
<ncrmnt> valentyn: rkflashtool worked reliably for me so far.
<valentyn> what happens is rather odd:
<valentyn> $ sudo ./rkflashtool p
<valentyn> ... CMDLINE:console=ttyFIQ0 androidboot.console=ttyFIQ0 init=/init initrd=0x62000000,0x00800000 mtdparts=rk29xxnand:0x00002000@0x00002000(misc),0x00008000@0x00004000(kernel),0x00008000@0x00012000(boot),0x00010000@0x00020000(recovery),0x00020000@0x00030000(backup),0x00040000@0x00050000(cache),0x00800000@0x00090000(userdata),0x00002000@0x00890000(kpanic),0x00130000@0x00892000(system),-@0x009c5000(user)
<valentyn> Now I use: sudo ./rkflashtool r 0x0892000 0x0130000 > /tmp/systm.img
<valentyn> Then, immediately afterwards:
<valentyn> sudo ./rkflashtool w 0x0892000 0x0130000 < /tmp/systm.img
<valentyn> ... then a third time: $ sudo ./rkflashtool r 0x0892000 0x0130000 > /tmp/systm.img.rewritten
<valentyn> md5sum /tmp/systm.img*: c68fb2809046ec95ef2fa7c29b13ad5f /tmp/systm.img
<valentyn> a4ffc9c99766c7d68006a0e3c0290874 /tmp/systm.img.rewritten
<valentyn> ... and finally:
<valentyn> $ sudo ./upgrade_tool di -s /tmp/systm.img
<ncrmnt> Hm.... have a look with a hexeditor, may be some garbage/missing chunk at the end?
<ncrmnt> never actually cared to do md5summing
<valentyn> sudo ./rkflashtool r 0x0892000 0x0130000 > /tmp/systm.img.rewritten-with-upgrade_tool
<valentyn> ... md5sum is c68fb2809046ec95ef2fa7c29b13ad5f again!
<ncrmnt> try cmp
<valentyn> I already looked, there are subtle differences between systm.img and systm.img-rewritten
<ncrmnt> Where's the first mismatch?
<valentyn> for a in /tmp/systm.img*; do dd if=$a count=100 2>/dev/null|xxd > $a.xxd; done
<valentyn> diff /tmp/systm.img.rewritten.xxd /tmp/systm.img.xxd
<valentyn> < 0000400: e808 0000 2009 0700 0000 0000 ce01 0000 .... ...........
<valentyn> ---
<valentyn> < 0000410: 9302 0000 0100 0000 0000 0000 0000 0000 ................
<valentyn> > 0000400: 080c 0000 0080 0900 0000 0000 cc76 0200 .............v..
<valentyn> > 0000410: b305 0000 0100 0000 0000 0000 0000 0000 ................
<valentyn> 68c68
<valentyn> < 0000430: aa37 1f4d 0000 ffff 53ef 0200 0000 0000 .7.M....S.......
<valentyn> ---
<valentyn> > 0000430: 8e1d 1f4d 0000 ffff 53ef 0100 0000 0000 ...M....S.......
<valentyn> 70c70
<valentyn> < 0000450: 0000 0000 0b00 0000 8000 0000 2000 0000 ............ ...
<valentyn> ---
<valentyn> > 0000450: 0000 0000 0b00 0000 8000 0000 2400 0000 ............$...
<valentyn> That's not what I'd call "random garbage at the end", it's random extra 1 bits for free or something.
<ncrmnt> Hm... First time I see this, lol.
<ncrmnt> git://git.code.sf.net/p/rkflashtool/Git - I got my rkflashtool here
<ncrmnt> Since there's a dozen forks and no semiofficial may be you got a buggy build?
<ncrmnt> Although... sounds really unlikely.
<valentyn> You see, I wrote http://valentijn.sessink.nl/?p=382 september 2012, then found out this very procedure messed up my Neo X5 in december 2012;
<valentyn> ... then, April 2013 someone asked me by mail - and I wrote http://valentijn.sessink.nl/?p=446#more-446 this follow-up...
<ncrmnt> Do you have any other devices with rk3188?
<valentyn> ... and now the same happens with my X7. (I found out how to fix it :-)
<valentyn> Yes, I own a tablet with rk3066
<valentyn> That's what the original rkflashtool message was about.
<ncrmnt> Hm... Is it the same nasty stuff there as well?
<ncrmnt> The only thing I can suggest - is trying to debug it.
<valentyn> No, I guess not - I rooted my tablet with it originally.
<ncrmnt> Might be well a usb problem. dwc_otg the rockchip uses is 146%-shitty ASIC by design.
<ncrmnt> If it turns out to be a dwc_otg weirdness when connected to your super-special usb-host on the PC - I won't be surprised.
<valentyn> It probably is. Still, upgrade_tool does work and rkflashtool doesn't...
<ncrmnt> Well, may be it' time to look at their sources
<ncrmnt> rz2k: ping
<rz2k> ncrmnt: whats up
<ncrmnt> Trying to get fbturbo and kwin_gles working in jessie. Well, it mostly works, but dragging windows is slow as hell with working mali.
<ncrmnt> And es2_info segfaults. Looks like the XInitThreads problem exception13 solved by patching
<valentyn> Hmm. It gets weirder now: I seem to have managed to rewrite a clean image for the first time, md5sums match :-S
<valentyn> Obscure timing problem :-(
<ncrmnt> Since my blobs didn't pop XinitThreads in readelf, I quickly threw up an LD_PRELOAD hack (the second, after fake_mali_clz_lut.so)
<ncrmnt> But so far it didn't help. Is there any known working method of fixing this one?
<ncrmnt> I also have es2gears background transparent (lol), but that looks like a totally different problem.
<ncrmnt> valentyn: try connecting to a different usb host on the pc with no hubs.
<ncrmnt> rz2k: xf86-video-mali from the sunxi repo looks totally screwed up. Is it being maintained in any way?
<rz2k> no
<rz2k> throw it away and use fbturbo
<rz2k> it has mali drm support
<rz2k> as well as sunxi display layers and etc
<rz2k> for zerocopy
<ncrmnt> Well, see my writeup above about performance.
<rz2k> es2_info segfaulting was patched long ago in sunxi-mali repo
<ncrmnt> Hm, I'm using the current master branch
<rz2k> also I bet you wont be able to have a decent desktop experience out of rk and mali
<rz2k> there might be anything in between starting from low memory bw ending with fb written with mdelay()'s between syncs
<ncrmnt> Well, so far 2d performance in kicad is quite decent.
<tonikasch> i have been using rk with mali and fbturbo without problems...
<ncrmnt> tonikasch: Does kwin_gles work for you?
<tonikasch> mmm, I haven't checked that
<tonikasch> Not near a rk device now, I'll check later
<ncrmnt> rz2k: Does fbturbo need a lot of ofscreen memory? Looking at my current kernel - I have 24MiBs allocated for FB0
<ncrmnt> which is 1920*1080 @ 32bpp
<rz2k> if I remember correctly, yes
<rz2k> for sunxi_disp it even has a check for that
<rz2k> so it wont use disp if you dont have resolution x 3 of memory
<ncrmnt> 1920*1080*4*3 =24883200, that's just what I have allocated
<ncrmnt> so, unlikely
<tonikasch> have you managed to get true color?
<ncrmnt> Yep
<ncrmnt> In fact, true color was a hell of a lol. I used radxa wiki fbset tricks
<ncrmnt> to get true color, but the fonts and the borders of window still looked like shit
<ncrmnt> causing even my eyes to bleed
<ncrmnt> After 2 days of digging into the guts of rk_fb I decided to take a screenshot and open on a laptop
<ncrmnt> Well, it turned out that Philips 55' TV has some 'Digital Crystal Clear' tech that 'improves' the picture quality.
<ncrmnt> With it disable the picture is... well, distorted.
<ncrmnt> *disabled.
<tonikasch> :\
nighty-_ has joined #linux-rockchip
cnxsoft has quit [Read error: Connection reset by peer]
cnxsoft has joined #linux-rockchip
cnxsoft has quit [Ping timeout: 240 seconds]
cnxsoft has joined #linux-rockchip
AstralixNB has left #linux-rockchip [#linux-rockchip]
ganbold_ has joined #linux-rockchip
<ncrmnt> Great, ap6210 is giving me creeps already. Anybody managed to get bluetooth part of it working?
GriefNorth has joined #linux-rockchip
rz2k has quit []
tonikasch has quit [Quit: Bye!]
jgay has joined #linux-rockchip
FreezingCold has joined #linux-rockchip
jgay has quit [Ping timeout: 240 seconds]
jgay has joined #linux-rockchip
cnxsoft has quit [Quit: cnxsoft]
rz2k has joined #linux-rockchip
valentyn has quit [Remote host closed the connection]
tonikasch has joined #linux-rockchip
_massi_ has quit [Quit: Leaving]
ncrmnt has quit [Ping timeout: 276 seconds]
ncrmnt has joined #linux-rockchip
Astralix1 is now known as Astralix
Astralix has left #linux-rockchip [#linux-rockchip]
Astralix has joined #linux-rockchip
Astralix is now known as Astralix_
Astralix_ is now known as Astralix1
Astralix1 is now known as Astralix
ncrmnt has quit [Ping timeout: 265 seconds]
GriefNorth has quit [Ping timeout: 252 seconds]
irsol has quit [Ping timeout: 264 seconds]
irsol has joined #linux-rockchip
rz2k has quit []
Rj_ has quit [Ping timeout: 240 seconds]
Rj_ has joined #linux-rockchip
tonikasch has quit [Quit: Bye!]
tonikasch has joined #linux-rockchip
tonikasch has quit [Client Quit]
jgay has quit [Quit: Ex-Chat]
ferric has quit [Quit: Lost terminal]
ferric has joined #linux-rockchip
FreezingCold has quit [Ping timeout: 276 seconds]
nighty-_ has quit [Quit: Disappears in a puff of smoke]
tonikasch has joined #linux-rockchip
ganbold_ has quit [Remote host closed the connection]