[linux-sunxi] Re: Firmware extractor for GSL168x chips

2015-05-27 Thread David Bentley


On Sunday, May 24, 2015 at 7:43:33 AM UTC-4, Sergio Costas wrote:
>
> Hi all: 
>
> I created a firmware extractor for these chips. Hope it is useful. 
>
> Some notes: 
>
>   * Sometimes it fails in the first launch, but launching again with 
> exactly the same parameters works fine. 
>   * Try to unload the touch module before running it, to avoid 
> interferences between both codes. 
>   * Try first with a chunk size of 4 bytes, and change only to 2 or 1 if 
> it fails. 
>
> -- 
> Nos leemos 
>  RASTER(Linux user #228804) 
> ras...@rastersoft.com   http://www.rastersoft.com 
>
>

 Excellent Utility !!

I have now rebuilt my own Firmware from the output of this utility, and 
successfully loaded it in the Android Firmware I created
and am currently working on using the Kernel I made from the SDK, and a 
Driver I had found that loads the firmware directly
from a file. I will now begin to modify the driver sources to work 
similarly and load the firmware directly from a text based file
as does the driver I located ( this driver came from an N821 Tablet 
Firmware).

In order to make the output work I had to do some comparisons to the driver 
supplied firmware.h files until I located several
that were extremely similar. I also did multiple pulls of the running tab 
firmware and did comparisons between them.

The pulled firmwares did have differences on each instance it was pulled, I 
took those to be in memory pages used for
something other than the static firmware and pretty much just removed all 
of the variable sections.

Using the firmware.h file compares I used the 2 most similar ones and did 
some edits to reorder the data to the same
order used in the firmware.h files, then in sections present in All of the 
firmware.h files but not present in the pulled
data I simply inserted the data from the ones most similar (all seemed to 
use the same data with 2 variants thus my 2 
file setups). Both outputs worked with minor differences and I now have a 
fully functional Firmware rebuild.

I will next compile the SDK supplied driver using my rebuilt firmware and 
test that then begin modifications to make the driver
load the Firmware from a file. If I am successful I would like to package 
your utility Giving Proper Credits) with the Final Rom
I produce in order to allow users to pull the data from their own Stock tab 
for use with the driver. This Rom will be intended
to work on many Tablet models with minor patching which is the reason I 
have spent so much effort making this Driver . 

Again Thank You Excellent creative Work !!

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[linux-sunxi] Re: Firmware extractor for GSL168x chips

2015-05-25 Thread David Bentley


On Sunday, May 24, 2015 at 7:43:33 AM UTC-4, Sergio Costas wrote:
>
> Hi all: 
>
> I created a firmware extractor for these chips. Hope it is useful. 
>
> Some notes: 
>
>   * Sometimes it fails in the first launch, but launching again with 
> exactly the same parameters works fine. 
>   * Try to unload the touch module before running it, to avoid 
> interferences between both codes. 
>   * Try first with a chunk size of 4 bytes, and change only to 2 or 1 if 
> it fails. 
>
> -- 
> Nos leemos 
>  RASTER(Linux user #228804) 
> ras...@rastersoft.com   http://www.rastersoft.com 
>
>
Thanks !!

That did the trick, it read just fine and the output is in a form I am 
pretty sure I can work with and finally be able to 
make a driver for this tab that will run with a Kernel Other than the iNet 
Provided ones. Your work on this is Truly appreciated.

If I do manage to get an Android driver that accepts files similar to the 
output of your extractor as loadable firmware
I will be happy to share the sources. It will most certainly end up on my 
Github account, but if there is any interest in it
let me know.

Thanks Again ! :-)

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[linux-sunxi] Re: Firmware extractor for GSL168x chips

2015-05-25 Thread David Bentley


On Sunday, May 24, 2015 at 7:43:33 AM UTC-4, Sergio Costas wrote:
>
> Hi all: 
>
> I created a firmware extractor for these chips. Hope it is useful. 
>
> Some notes: 
>
>   * Sometimes it fails in the first launch, but launching again with 
> exactly the same parameters works fine. 
>   * Try to unload the touch module before running it, to avoid 
> interferences between both codes. 
>   * Try first with a chunk size of 4 bytes, and change only to 2 or 1 if 
> it fails. 
>
> -- 
> Nos leemos 
>  RASTER(Linux user #228804) 
> ras...@rastersoft.com   http://www.rastersoft.com 
>
>
It is great to see someone is still working on the gslx680 I had thought 
the driver porting efforts had died out. 

I have compiled and tried the tool but am having a bit of difficulty 
getting any output. I am not sure I am entering the
parameter for the Device correctly... exactly what is it looking for here ? 
the i2c device name ?  I get "Cant open device error"
on all that I have attempted thus far.

I am attempting to make an android driver for my Touchscreen on an A31s 
Q711C_2M_PG iNet board. This seems to be a bit of
an out of the ordinary driver and I have been completely unable to obtain 
any source code for it, although I have a Large number
of sources that I have downloaded from many places. In any case I would 
like to make something similar to the sunxi-gslx680 and
Rastersoft drivers for Android ie ability to load firmwares from a file. I 
have not yet tried to compile the Rastersoft version and my attempts
to alter the driver included with the A31SDK's have been unfruitful for 
this Tablet so far. I used the firmware extractor from sunxi-gslx680
however i have not been able to do much of anything with the resulting file 
due mainly to my Lack of any recent experience in C
programming and the differences in sunxi and sdk kernel code.

Thanks I hope you can help :-)
 

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.