AndroUser2 has quit [Read error: Connection reset by peer]
AndroUser2 has joined #imx6-dongle
FergusL has joined #imx6-dongle
datagutt has quit [Ping timeout: 264 seconds]
iamfrankenstein has joined #imx6-dongle
AndroUser2 has quit [Ping timeout: 276 seconds]
ajayr has quit [Ping timeout: 256 seconds]
AndroUser2 has joined #imx6-dongle
ajayr has joined #imx6-dongle
AndroUser2 has quit [Read error: Connection reset by peer]
ajayr_ has joined #imx6-dongle
ajayr has quit [Ping timeout: 245 seconds]
ajayr_ is now known as ajayr
ajayr has quit [Client Quit]
ajayr_ has joined #imx6-dongle
ajayr_ is now known as ajayr
ajayr has quit [Client Quit]
ajayr has joined #imx6-dongle
hp__ has quit [*.net *.split]
hp__ has joined #imx6-dongle
iamfrankenstein has joined #imx6-dongle
iamfrankenstein has quit [Excess Flood]
ajayr_ has joined #imx6-dongle
ajayr has quit [Ping timeout: 268 seconds]
ajayr_ is now known as ajayr
ajayr has quit [Client Quit]
ajayr_ has joined #imx6-dongle
ajayr_ is now known as ajayr
ajayr has quit [Client Quit]
ajayr has joined #imx6-dongle
<dgp_>
root@android:/ # hciconfig
<dgp_>
hci0: Type: BR/EDR Bus: UART
<dgp_>
I guess it works :/
hp__ has quit [Read error: Connection reset by peer]
ajayr has quit [Ping timeout: 252 seconds]
ajayr has joined #imx6-dongle
Noskcaj has joined #imx6-dongle
<projectgus>
dgp_: using the 'rda' hciattach?
<projectgus>
have you managed to pair to anything
<projectgus>
?
<projectgus>
apparently the generic hciattach type gets you as far as a local address, but no scan results
<dgp_>
projectgus: I'm using the hciattach from the android image.. my hciattach patched with their changes doesn't work yet
<dgp_>
but it shows my kernel stuff is right
<projectgus>
ah ok
<projectgus>
is there any kernel stuff for the vendor hciattach?
<dgp_>
the is a character device for toggling the gpio
<projectgus>
oh, is it in the kernel source?
<dgp_>
its in the android porting rar that is floating around
<dgp_>
it basically has two ioctls, one for toggling the power and one for getting the model of the bt chip.. but that seems to differ in the hciattach in android, it calls the power ioctl and another ioctl that I don't have source for. It works with just the power one it seems
<dgp_>
just going to check if a scan actually works
<projectgus>
oh, are you talking about android_rda_bt for the rar?
<dgp_>
yeah
<projectgus>
I think the character device there is for a telechips SoC
<projectgus>
in some other board
<projectgus>
although it does say Copyright RDA Micro at the top
<dgp_>
I fixed that
<projectgus>
oh ok
<dgp_>
so it toggles the gpio on the gk802
<projectgus>
which gpio is it on the gk802?
<dgp_>
gpio-55 (bt_enable ) out lo
<dgp_>
confirmed by soldering a wire to the bt chip :)
<projectgus>
nice :)
<projectgus>
how did you find that?
<dgp_>
debugfs
<projectgus>
on the stock image? anything else interesting in there?
<dgp_>
I think I have all the gpios now.. but I only check the bt and button ones
<dgp_>
the only things of interest would be debugfs and the hciattach binary
<projectgus>
oh, i mean in the gpio table in debugfs
<dgp_>
my kernel part works with the hciattach from the android image.. I've since broken my gk802 heh
<abrasive>
which part of the trace did you rip up?
<jas-hacks_>
dgp_: you kernel part allows toggling of pin 2_23
<dgp_>
jas-hacks_: it's 55 in the kernels gpio table.. I think thats 2_23 on the soc
<dgp_>
abrasive: I had a bit of magnet wire attached to the ldo pin on the qfn and it got pulled.. I can't see the trace remains on the wire, but the externally visible pin on the gfn is gone
<abrasive>
oh, nasty. i always thought those were solid.
<dgp_>
jas-hacks_: do you want my source for the kernel part? its only good for the hciattach binary from android
<dgp_>
abrasive: I would have thought the trace would have been kept down by the pad under the qfn
<dgp_>
ohwell
<abrasive>
they do tear.
<dgp_>
yeah, teach me not to tape down tap wires in future
<jas-hacks_>
dgp: yes, thanks. I guess we still need to work out what's happening in hicattach unless I can use the android one.
<abrasive>
tear at the drop of a hat*
<dgp_>
jas-hacks_: you can see what sort of goes on from the rda source that is floating around
<dgp_>
there is a pdf with the timing diagrams in there
<abrasive>
surely we can just use the released source?
<dgp_>
abrasive: that would be best.. I couldn't get the source version to work
<jas-hacks_>
dgp_: I that was what I was doing, so at least you confirmed the pin. Looks like the bt_wakeup pin isn't used as the bank 0 gipo directions are all input.
<abrasive>
so you're using the android binary?
<dgp_>
yeah
<abrasive>
oh well. should be easy enough to dump the traffic then and see what's really going on
<dgp_>
I have a version with their changes and it does something but it doesn't work
jas-hacks_ has left #imx6-dongle [#imx6-dongle]
<dgp_>
abrasive: my next plan was to dump the uart traffic with their binary and then with my patched one
<dgp_>
but I can't do that now heh
<abrasive>
does init fail?
<abrasive>
or does it work but not do radio?
<abrasive>
"work" -> communicate
<dgp_>
an error comes out of hciattch, something about frames
<abrasive>
oh, boo.
<dgp_>
It's possible I just need to get the right init stuff from the binary and put it into the source
<dgp_>
it did do more than it did without the gpio bits at least
<dgp_>
right now I'm toggling the other gpios from debugfs and trying to find if they come out on the board
<abrasive>
i was asking more if init fails with the good hciattach, now that the LDO pin is gone?
<dgp_>
abrasive: yes it fails, tx timeout
<dgp_>
both on the original android and mine
<abrasive>
poo.
<abrasive>
if you put up the hciattach binary somewhere i can have a quick look at pulling the init tables ut of it
<abrasive>
from memory it's super straightforward register writes
Noskcaj has joined #imx6-dongle
<abrasive>
though there's nobody here to test it today, maybe i'll leave it until i'm working on mine again.
<dgp_>
in the source they have tables they upload, which match the stuff in their pdf.. I have a feeling the tables are just different
<dgp_>
if you want to have a go at exacting them that would be good
<abrasive>
should be easy. i don't have a copy of the android though
<dgp_>
I might dump the uart traffic from the working binary later
<dgp_>
I can upload the android image somewhere.. or just binaries if you want?
<abrasive>
do you have another board? or do you think all the init comes before hciattach tries to talk frames?
<abrasive>
in the latter case, strace will be all you need, even with no ldo
<abrasive>
just the hciattach binary would be enough, pretty sure everything gets compiled in there.
<dgp_>
I can probably use strace on the original binary. I just have to put that back into my android build
<dgp_>
I only have the one board unfortunately. The init stuff takes the same path without the ldo though.. it starts complaining about something after the init if the ldo thing isn't done
<dgp>
if it did I wouldn't have spent a week making 4.1.2 work ;)
<Arnieisthebest>
so you know what needs to be done?
jas-hacks_ has joined #imx6-dongle
<dgp>
for 4.1.2 yes but things change a lot between android releases and a lot of the changes aren't documented
<Arnieisthebest>
without soldering there is no way to get the kernel messages?
<dgp>
The stock kernel won't give you any messages because it's talking on a different uart for starters
<dgp>
I will upload all of my hacks from 4.1.2 somewhere in the future if you want to have a go at making 4.2.2 work
<Arnieisthebest>
that is a great idea...
<Arnieisthebest>
because i don't think the factory will ever do the work :(
<dgp>
what do you need from android 4.2.2?
<Arnieisthebest>
a better working xbmc
<Arnieisthebest>
afaik android 4.1 introduced 5.1 sound and better vpu support
<dgp>
mmm ok, 4.1.2 might be enough then?
<Arnieisthebest>
with 4.0 i only have stereo
<Arnieisthebest>
perhaps
<Arnieisthebest>
my phone has 4.2.2 as well
<dgp>
once I can get my image to play nicely with wifi I'll upload it somewhere
<dgp>
I want someone to check bt for me since I've broken my board
<Arnieisthebest>
i'll give it a whirl, no problem
<Arnieisthebest>
i also have a usb-ethernet adapter that works on the current 4.0
<Arnieisthebest>
so i don't necessarily need working wifi
<dgp>
I haven't put anything in for that so it probably wouldn't work
<Arnieisthebest>
asix 1-5:1.0: eth0: register 'asix' at usb-0000:00:13.5-5, ASIX AX88772 USB 2.0 Ethernet, 00:60:6e:42:a5:0c
<dgp>
kernel support is only one part of the puzzle
<Arnieisthebest>
it may be easier to get that to work than wifi
<dgp>
making android understand it's there and wiring it up so it doesn't do crazy shit is another issue
<Arnieisthebest>
i noticed that, most apps refused to work
<Arnieisthebest>
but firefox, speedtest.net and es explorer did
<Arnieisthebest>
google play didn't...
<Arnieisthebest>
and ntp refused to work as well
<dgp>
have you done any android rom hacking stuff?
<dgp>
I'm making this rom for what I think is going to be a kiosk app so it's basic.. I'm not going to add the playstore
<Arnieisthebest>
no haven't bothered
<Arnieisthebest>
but i do have extensive linux background
<Arnieisthebest>
and i programmed in java and c for a living having majored in comp sci in the eighties...
<dgp>
that should be helpful. most of the android stuff isn't well documented.. so the main thing is to be able to use grep well enough to find stuff
<Arnieisthebest>
but if the screen stays black, there is nothing to look for
<Arnieisthebest>
and that's what i got
<dgp>
You need to hook up the uart, but the stock kernel isn't going to work
<dgp>
the stock uboot won't work either I don't think
<dgp>
and you can't use the one from github for android as it needs the stuff to boot android kernel + ramdisk images
<Arnieisthebest>
stock kernel = kernel from linux.org ??
<dgp>
from the freescale stuff
<dgp>
my kernel is the boundary devices kernel + the board support stuff from the gk802 github kernel
rz2k has joined #imx6-dongle
eebrah_ has joined #imx6-dongle
iamfrankenstein has joined #imx6-dongle
iamfrankenstein has quit [Excess Flood]
<dgp>
Arnieisthebest: I have stable working wifi now :)
<Arnieisthebest>
that's good!
<dgp>
First fully working custom rom from the gk802 I think?
<Arnieisthebest>
i am quite sure....
<Arnieisthebest>
but you don't know yet if bt works ....
<dgp>
It worked before I broke my board
ajayr has quit [Ping timeout: 256 seconds]
<dgp>
wifi was doing weird stuff like coming on and then getting turned off again.. working fine now. I have i2c3 working on the header too for adding hardware
ajayr has joined #imx6-dongle
jas-hacks_ has quit [*.net *.split]
iamfrankenstein has joined #imx6-dongle
iamfrankenstein has quit [Excess Flood]
<abrasive>
dgp: first fully working *android* custom rom ;)
<dgp>
abrasive: yeah thats what I meant ;)
<abrasive>
i understand. been delving into android "roms" since i got my new phone
<dgp>
abrasive: did you see my message about the iomux settings for i2c3?
<abrasive>
so different from linux kernel dev, considering the common heritage
<abrasive>
no, i didn't!
<abrasive>
what'd you learn?
<dgp>
I have the settings
<dgp>
and it works
<dgp>
:)
<abrasive>
i2c3 is connected to what though?
<dgp>
the header with the uart
<dgp>
so you can attach i2c stuff now
<abrasive>
oh! yes.
<abrasive>
don't want to burst your bubble, but that was noted
<dgp>
abrasive: it didn't work
<abrasive>
the fact that i don't know whom, when or where means that the noting wasn't anything big...
<abrasive>
what didn't work?
<dgp>
unless the board file is different than what is on github
<dgp>
it needs some iomux settings and the i2c interface to be registered
<abrasive>
yeah, our iomux is fairly conservative
<abrasive>
jas made a great effort to port the android status though
<dgp>
is it possible to tweak it from sysfs like the omap pinmux?
<dgp>
I couldn't find anything
<abrasive>
no, afaik there's no interface
<abrasive>
it's super easy from the kernel files though
<dgp>
so they need to be in the board support stuff then.. at least I put them in the right place :)
<abrasive>
all the iomux stuff should be pretty hard to miss ;)
<dgp>
yeah, well I was thinking it could just be the basic stuff and you do your own stuff via sysfs
<dgp>
from using the beaglebone I'm used to having the pinmux available from a nice debugfs interface
<abrasive>
yeah, nobody's bothered with the mx6
<abrasive>
i agree it'd be nice
<abrasive>
but no.
eebrah_ has quit [Read error: Connection reset by peer]
<dgp>
i2c1 seems to be wired up too as it doesn't timeout scanning with their kernel
<dgp>
so I wonder if it's attached to some of the test points
<abrasive>
maybe even the radio chip
<dgp>
the bt?
<abrasive>
i2c2 is HDMI, at least on the earlier revs
<dgp>
i2c-detect shows a few things connected to i2c2
<dgp>
if I can get another board I might roast the SoC off of this broken board and work out where all the test pads go :)
<abrasive>
bless you!
<dgp>
I need some gpios that can trigger interrupts
eebrah_ has joined #imx6-dongle
jas-hacks_ has joined #imx6-dongle
eebrah_ has quit [Read error: Connection reset by peer]
ajayr has quit [Ping timeout: 245 seconds]
ajayr_ has joined #imx6-dongle
ajayr_ is now known as ajayr
ajayr has quit [Client Quit]
ajayr has joined #imx6-dongle
Arnieisthebest has quit [Remote host closed the connection]
rz2k has quit []
datagutt has quit [*.net *.split]
datagutt has joined #imx6-dongle
hroth has joined #imx6-dongle
linaro_ has joined #imx6-dongle
<hroth>
dgp: I've been re-compiling the Linux kernel that's on jas-hacks, getting a touchscreen to work with the old 3.0 kernel and realizing that I'd love to learn more about getting 4.1 Android working on the GK802 (at least so I can play an .APK file for my daughter!) I was following the IRC logs in the last few days and if you need anyone to test your images I'm game! I would love to get hid-touchscreen working with Android and creat
<hroth>
!create a huge 22" Tablet. :)
<dgp>
hroth: I'll upload an image of my current version tomorrow maybe
linaro has quit [Ping timeout: 268 seconds]
<dgp>
hroth: how does your touchscreen work? did it need special drivers?
<hroth>
dgp: It requires use of the hid-touchscreen.ko module (or compile it in) - but this in turn requires hand-tweaking of two lines in hid-ids.h and hid-core.c to integrate a 3.2 hid-multitouch into the 3.0 kernel.
<dgp>
mmm ok, if you're up to hacking the kernel stuff I reckon we could get it working
<dgp>
I think it would just be a case of adding that module and the ts cal app to android
<hroth>
dgp: I'd hardly call what I do up to the level of 'hacking' but it's just inserting the latest and greatest hid-touchscreen.c files and tying them in. That part of the kernel code appears very clean and surgical. Yes, I'd need to get that ts cal app working too.
<dgp>
thats hacking as far as I'm concerned.. get android running is basically a case of copy and pasting crappy made in china code until it works :p
<hroth>
dgp: I did get some guidance from the kernel module authors so I'd love to check in the code for future GK802 hackers :) - are you going to use the Github with your work?
<dgp>
I might push it it on github eventually. At the moment it's a 8gb lump of android source, uboot and kernel
<hroth>
dgp: Also, have you tried (or is it even possible) to use the Android kernel and partitions with the u-boot multiboot that abrasive and jas-hacks have been working on? They have a nice u-boot multiboot.imx that will go and look for the kernel in sane places.
<dgp>
it should be possible to dual boot android and ubuntu but android needs a special uboot that can load it's kernel+ramdisk images
<dgp>
the version i have is some 2009 uboot, I think the one of github is 201?
<hroth>
dgp: It cycles through the internal and external SD cards and is very convenient if Android can be placed in the right place.
<hroth>
(and I think USB devices too)
<dgp>
That stuff might work with the android patched uboot
<dgp>
I can compile fat support in and load a kernel from a fat partition instead of loading androids boot.img
<hroth>
dgp: Interesting. I was wondering why that u-boot had the fatload and fatls commands.
<dgp>
uboot can load a kernel over serial if you're crazy enough :)
<dgp>
the android patched version of uboot has fastboot support which should allow loading a kernel via usb with adb
<hroth>
Great. Well I'm happy to document the compile and build process from a "dummies" perspective too - it's not too hard for me. :)
<hroth>
I figure it's the least I can do with all you smart hackers around here taking control of this nearly-undocumented device!
<dgp>
bruteforce ;)
<dgp>
I'm glad it's finally paying off though. I spent weeks trying to get a decent mk808 image together
<hroth>
That seems to have a pretty amazing community around it too.. those RK3066 and RK3188 seem like zippy processors. Too bad the GK802 doesn't have a little more oomph with an eMMC or something.
abrasive_ has joined #imx6-dongle
epl_ has joined #imx6-dongle
FergusL has quit [*.net *.split]
Juggie has quit [*.net *.split]
RaYmAn has quit [*.net *.split]
dgp has quit [*.net *.split]
drachensun has quit [*.net *.split]
epl has quit [*.net *.split]
abrasive has quit [*.net *.split]
hroth has quit [Quit: irc2go]
drachensun_ has joined #imx6-dongle
dgp_ has joined #imx6-dongle
Juggie has joined #imx6-dongle
FergusL has joined #imx6-dongle
RaYmAn has joined #imx6-dongle
FergusL has quit [Read error: Operation timed out]
FergusL has joined #imx6-dongle
dgp_ has quit [*.net *.split]
drachensun_ has quit [*.net *.split]
dgp_ has joined #imx6-dongle
drachensun_ has joined #imx6-dongle
Juggie has quit [Changing host]
Juggie has joined #imx6-dongle
ajayr has quit [Ping timeout: 248 seconds]
ajayr has joined #imx6-dongle
iamfrankenstein3 has joined #imx6-dongle
iamfrankenstein3 has quit [Excess Flood]
Noskcaj has joined #imx6-dongle
hp__ has joined #imx6-dongle
dgp has joined #imx6-dongle
dgp_ has quit [Ping timeout: 276 seconds]
drachensun_ has quit [*.net *.split]
drachensun_ has joined #imx6-dongle
fossxplorer has joined #imx6-dongle
FergusL has quit [Ping timeout: 245 seconds]
FergusL has joined #imx6-dongle
jas-hacks_ has quit [Remote host closed the connection]
Juggie` has joined #imx6-dongle
Juggie has quit [*.net *.split]
<dgp>
I've found gpios on the test points :)
otavio_ has joined #imx6-dongle
otavio_ is now known as otavio
wump has joined #imx6-dongle
otavio has joined #imx6-dongle
otavio has quit [Changing host]
datagutt has quit [*.net *.split]
wumpus has quit [*.net *.split]
projectgus has quit [*.net *.split]
datagutt has joined #imx6-dongle
projectgus has joined #imx6-dongle
otavio_ has joined #imx6-dongle
<projectgus>
has anyone else noticed general instability with usb plug/unplug?
otavio has quit [Ping timeout: 256 seconds]
<projectgus>
one symptom I get is "irq 75: nobody cared (try booting with the "irqpoll" option)" on usb disconnect event, and the usb port disables
linaro_ has quit [Ping timeout: 256 seconds]
linaro_ has joined #imx6-dongle
otavio has joined #imx6-dongle
FergusL_ has joined #imx6-dongle
otavio_ has quit [*.net *.split]
FergusL has quit [*.net *.split]
Noskcaj has quit [Ping timeout: 264 seconds]
<projectgus>
hmm it might actually be caused by the usb ethernet driver not anything in imx6 :)