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

2015-06-04 Thread sergk . admin
So while this might help with some tablets it's not going to work with 
others. 

I understand that tool that provides result immediately is cool but for the 
case when it does not work anyone should try method that  I have passed 
before this tool was created: 

1) Extract firmware from elf files of Android drivers (modules) - I have 
wrote brief manual for this.

Owners of tablet with dualboot also could try to findout firmware from Win 
OS, where it could be even in separate file. 

On Tuesday, June 2, 2015 at 8:16:35 PM UTC+3, Michal Suchanek wrote:

 Hello 

 On 24 May 2015 at 13:49,  raste...@gmail.com javascript: wrote: 
  Forgot to comment that this code extracts the firmware from a running 
 GSL168x chip. This means that you should compile it statically and run it 
 in the original Android system, to get the firmware. 

 I tried the extractor on two tablets. On Inet 86vs I get something 
 extracted (each time different) but on Q8H the android kernel does not 
 have I2C_CHARDEV compiled. I tried building an i2c_dev module from the 
 A23-v1.0.tar.gz sources but the module does not load complaining 
 i2c_dev: no symbol version for module_layout. The vermagic of the 
 i2c_dev module and gslX680.ko pulled from the tablet appears the same 
 so the Chinese must have changed something without changing the 
 version. Also the CSI_VFE module fails to build with the SDK and I 
 have BT options not present in the tablet kernel config. 

 So while this might help with some tablets it's not going to work with 
 others. 

 Thanks 

 Michal 


-- 
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-27 Thread Blake Gripling


On Sunday, May 24, 2015 at 7:43:33 PM UTC+8, 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 javascript:  http://www.rastersoft.com 


Thank you thank you thank you so much for the tool! You're a real hero with 
this one, as my friend David Bentley and I were looking for a similar 
utility to no avail. It would sure help with aiding development for both 
vanilla Linux and Android users such as myself who are into making and 
editing custom ROMs. 

-- 
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-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 javascript:  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-24 Thread rastersoft
Forgot to comment that this code extracts the firmware from a running GSL168x 
chip. This means that you should compile it statically and run it in the 
original Android system, to get the firmware.

-- 
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-24 Thread sergk . admin
Thank you very much! This tool is one that what is missed in complete set 
of make it working GSL1680.

Have ported your code to baytrail.

1st - these lines I think is rudшmental in section include  (it is 
important for porting! ) and came from user space driver where was used 
uinput device.

 #include linux/input.h
#include linux/uinput.h


2nd: It is unbelievable but on Chuwi vi8 looks that idiots put touch 
screen with more resolution than display resolution. After dumping I've got 
the same story from which I was started - resolution of something like 
x=1145 y=1725 - this is the same I have extracted from elf .ko file, this 
is the same I've got with loading Silead.fw taken from Win 8.1.

On Chuwi Vi8 I dis this so: rmod gslx680_ts  (be ready to connect external 
keyboard because touch will not work or use linux scripting\piping to get 
result) then I run twice!!! (only 2nd attempt was working)
Kind regards, 
 
Serge Kolotylo.

-- 
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.