Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 12-12-2015, 10:39 AM   #1
boom1212
Member
boom1212 began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Apr 2014
Device: Kindle paperwhite2
Thumbs up Someone has flashed the K7/KP2/3/KV to Android 4.4.2!

In China,Someone has flashed the K7/KP2/3/KV to Android 4.4.2!

I send a New Kindle(K7) to him,and he done the work!So amazing!

when i get my K7 back,i compare the information when it boots, via serial,see the picture blow,the uboot has been modifyed by him.

OK,the left is the K7 which running Amazon OS 5.6.5 ,and the right,is the K7 running Android 4.4.2!

[Image violates Posting Guidelines for size - MODERATOR]

I find that the running Android one has a more boot process,it runs another "uboot-test" first,the kernel makes the kindle be recognized as "Android Bootloader Interface",so it can be flashed big system files.
Code:
Hit any key to stop autoboot:  0 
## Booting kernel from Legacy Image at 80800000 ...
   Image Name:   uboot-test
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    152020 Bytes = 148.5 kB
   Load Address: 88400000
   Entry Point:  88400000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...



U-Boot 2009.08-lab126 (12鏈30 2016 - 12:30:30)

CPU: Freescale i.MX6 family TO0.0 at 996 MHz
Temperature:   33 C, calibration data 0x5835065f
mx6sl pll1: 996MHz
mx6sl pll2: 528MHz
mx6sl pll3: 480MHz
mx6sl pll8: 50MHz
ipg clock     : 66000000Hz
ipg per clock : 66000000Hz
uart clock    : 80000000Hz
cspi clock    : 60000000Hz
ahb clock     : 132000000Hz
axi clock   : 198000000Hz
emi_slow clock: 22000000Hz
ddr clock     : 396000000Hz
usdhc1 clock  : 198000000Hz
usdhc2 clock  : 198000000Hz
usdhc3 clock  : 198000000Hz
usdhc4 clock  : 198000000Hz
MMC:  FSL_ESDHC: 0,FSL_ESDHC: 1,FSL_ESDHC: 2
Board: Bourbon PREEVT2 WFO
Boot Reason: [ POR ]
Boot Device: NAND
Board Id: 062070C1526607OS
S/N: 90C6070652740A2Q
I2C:   ready
DRAM:  256 MB
Using default environment

In:    serial
Out:   serial
Err:   serial
POST done in 1 ms
Battery voltage: 4160 mV

Entering fastboot mode...
USB speed: HIGH
Connected to USB host!



The Android 4.4.2 firmware download link is here ,download key is "t4ei"


Flashing!


Flash done!


So...the question is:
1.how to modify the uboot as above?
2.how to extract the uboot from my K7,if can do that ,i can share it for everyone.
Attached Thumbnails
Click image for larger version

Name:	1.jpg
Views:	2961
Size:	181.1 KB
ID:	144547   Click image for larger version

Name:	2.jpg
Views:	4057
Size:	32.9 KB
ID:	144548   Click image for larger version

Name:	3.jpg
Views:	4127
Size:	47.0 KB
ID:	144549   Click image for larger version

Name:	4.jpg
Views:	4144
Size:	13.4 KB
ID:	144550   Click image for larger version

Name:	5.jpg
Views:	4123
Size:	53.3 KB
ID:	144551   Click image for larger version

Name:	6.jpg
Views:	4224
Size:	36.1 KB
ID:	144552  

Last edited by Dr. Drib; 06-13-2016 at 09:06 AM.
boom1212 is offline   Reply With Quote
Old 12-12-2015, 11:00 AM   #2
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
We didn't have anything to do with that alteration.

You will have to get your support from your vendor.
There is no way we can guess what/where/how that vendor has populated their memory map of the device.

Start by requesting the full source code.
Under the terms of its license, that vendor must give you a copy on request.

Last edited by knc1; 12-12-2015 at 11:03 AM.
knc1 is offline   Reply With Quote
Advert
Old 12-13-2015, 01:09 PM   #3
thatworkshop
hub
thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.
 
thatworkshop's Avatar
 
Posts: 715
Karma: 2151032
Join Date: Jan 2012
Location: Iranian in Canada
Device: K3G, DXG, Kobo mini
So you are saying that your KP2 is now running KitKat? legit?
What's working and what not?
thatworkshop is offline   Reply With Quote
Old 12-14-2015, 02:07 PM   #4
kaneorotar
Enthusiast
kaneorotar for a long time would go to bed early.kaneorotar for a long time would go to bed early.kaneorotar for a long time would go to bed early.kaneorotar for a long time would go to bed early.kaneorotar for a long time would go to bed early.kaneorotar for a long time would go to bed early.kaneorotar for a long time would go to bed early.kaneorotar for a long time would go to bed early.kaneorotar for a long time would go to bed early.kaneorotar for a long time would go to bed early.kaneorotar for a long time would go to bed early.
 
Posts: 41
Karma: 17678
Join Date: Aug 2011
Location: CA, USA
Device: K3, KW3, PW4
So it seems that with the correct u-boot flashed, any latest generation Kindle devices can enter fastboot mode and download the Android ROM and run it. Am I right?

I found some general article regarding u-boot:
https://boundarydevices.com/u-boot-u...-core-2gb-ddr/
https://boundarydevices.com/fastboot-on-i-mx/

But I suppose the 'memory map' in u-boot mentioned by knc1 is device specific so it is crucial for rebuilding the u-boot image?

Anyway, these are just some of my wild guesses. My apology if it doesn't help.
kaneorotar is offline   Reply With Quote
Old 12-14-2015, 02:27 PM   #5
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
None of which changes the hard fact that the Kindles only have 256 Mbyte of RAM.
And that is the most that the board layout allows (the flash can be upgraded with the same board layout - not the ram).

You will note that the least amount of ram on the devices linked to is 1 Gbyte.
knc1 is offline   Reply With Quote
Advert
Old 12-14-2015, 03:18 PM   #6
kaneorotar
Enthusiast
kaneorotar for a long time would go to bed early.kaneorotar for a long time would go to bed early.kaneorotar for a long time would go to bed early.kaneorotar for a long time would go to bed early.kaneorotar for a long time would go to bed early.kaneorotar for a long time would go to bed early.kaneorotar for a long time would go to bed early.kaneorotar for a long time would go to bed early.kaneorotar for a long time would go to bed early.kaneorotar for a long time would go to bed early.kaneorotar for a long time would go to bed early.
 
Posts: 41
Karma: 17678
Join Date: Aug 2011
Location: CA, USA
Device: K3, KW3, PW4
Quote:
Originally Posted by knc1 View Post
None of which changes the hard fact that the Kindles only have 256 Mbyte of RAM.
And that is the most that the board layout allows (the flash can be upgraded with the same board layout - not the ram).

You will note that the least amount of ram on the devices linked to is 1 Gbyte.
There is a build option which has 512 MB RAM in the first link:
i.MX6Solo 512MB nitrogen6s_config

According to Wikipedia, Voyage and KPW3 have 512MB RAM.
The difference is that these two devices have i.MX6 SoloLite rather than i.MX6 Solo, not sure if this is a big problem.

KT2, on the other hand, does have only 256 MB of RAM (again according to Wikipedia). But the guy who did the porting managed to make Android work on KT2. So I guess it is possible to modify the build configuration file (flash_header.s?) by specifying the details of RAM in the device.

I found this: http://www.radiumboards.com/i.MX_6So...uide_A0-02.pdf

Which is a device that has CPU and Memory that are quite similar to KT2 and has u-boot running. Maybe this can help?

Last edited by kaneorotar; 12-14-2015 at 03:32 PM.
kaneorotar is offline   Reply With Quote
Old 12-14-2015, 05:31 PM   #7
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by kaneorotar View Post
- - - - -
Which is a device that has CPU and Memory that are quite similar to KT2 and has u-boot running. Maybe this can help?
"and has u-boot running" ? What do you mean ?
You think maybe the KT2 does not?

Where is it listed that device can fastboot install a file larger than its native ram ?
Which is the O.P. intent.
knc1 is offline   Reply With Quote
Old 12-15-2015, 09:19 AM   #8
kaneorotar
Enthusiast
kaneorotar for a long time would go to bed early.kaneorotar for a long time would go to bed early.kaneorotar for a long time would go to bed early.kaneorotar for a long time would go to bed early.kaneorotar for a long time would go to bed early.kaneorotar for a long time would go to bed early.kaneorotar for a long time would go to bed early.kaneorotar for a long time would go to bed early.kaneorotar for a long time would go to bed early.kaneorotar for a long time would go to bed early.kaneorotar for a long time would go to bed early.
 
Posts: 41
Karma: 17678
Join Date: Aug 2011
Location: CA, USA
Device: K3, KW3, PW4
Quote:
Originally Posted by knc1 View Post
"and has u-boot running" ? What do you mean ?
You think maybe the KT2 does not?

Where is it listed that device can fastboot install a file larger than its native ram ?
Which is the O.P. intent.
Well, thanks for pointing it out for me. As you can see I do have little to almost no knowledge about the Android/Linux booting process.

I knew that KT2 should also have u-boot but I thought maybe building the u-boot our own could enable the fastboot capability and allow it to magically boot into Android.

I guess it's time for me to stop picking up random article from a simple Google search and posting it here. This is clearly not a simple problem, otherwise people would have solved it long time ago.

P.S. You seem to doubt the authenticity of this 'hack', but the guy who did it has been selling his service online for a few months. Quite a few people sent their Kindle to him and got them back with Android running. There are videos and pictures so I tend to believe it is true.
kaneorotar is offline   Reply With Quote
Old 12-15-2015, 09:38 AM   #9
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by kaneorotar View Post
Well, thanks for pointing it out for me. As you can see I do have little to almost no knowledge about the Android/Linux booting process.

I knew that KT2 should also have u-boot but I thought maybe building the u-boot our own could enable the fastboot capability and allow it to magically boot into Android.
We do have a custom copy of u-boot posted for the series 5 devices that includes fastboot.

But it **is not** modified to do 'read-back & verify' what it writes to flash, not is it modified to flash a file larger than available ram.

For the purposes it was posted for, those features where not needed.

Keep in mind that the series 5 devices have two (2) u-boot setups installed normally -
The tiny one, that runs in the SoC internal ram -
The large one (bist), the runs in the external ram.

You aren't automagically going to run Android.
You need to build an **ANDROID** kernel that includes the **AMAZON** hardware drivers.
**NOT** a small project (you will find several threads here where people have started to make that cross-breed kernel).
Quote:
Originally Posted by kaneorotar View Post
I guess it's time for me to stop picking up random article from a simple Google search and posting it here. This is clearly not a simple problem, otherwise people would have solved it long time ago.
We have addressed the problem here, numerous times.
Quote:
Originally Posted by kaneorotar View Post
P.S. You seem to doubt the authenticity of this 'hack', but the guy who did it has been selling his service online for a few months. Quite a few people sent their Kindle to him and got them back with Android running. There are videos and pictures so I tend to believe it is true.
I don't doubt that someone did it.
I just want to see them release the sources as required by the license.

The people at this site do not support Dorkan, because they abuse the terms of the Open Source, software licenses.

You can't expect the people here to support an un-released version of the Open Source kernel for Android nor the Open Source Android itself.

Everything you find here (done by our members, not just passers-by) is Open Source and the sources are published in public repositories.

When the Chinese learn to do the same, we might even help them.

But the fact is, there is very little experience in running an Open Source project among the Chinese.

So twobob and I set up a site for the purpose of collaborating with a Chinese manufacturer.
We would run the site and be technical advisors (for free) until the first completed project was marketed, and then turn operations over to the (then trained) Chinese manufacturer.

Part way through, the manufacturer bailed out.
But the site is still there and if this person who is abusing Open Source for profit wants to change their ways - the site is available:
https://gunshi.org

Last edited by knc1; 12-15-2015 at 09:50 AM.
knc1 is offline   Reply With Quote
Old 12-16-2015, 04:57 AM   #10
boom1212
Member
boom1212 began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Apr 2014
Device: Kindle paperwhite2
Quote:
Originally Posted by kaneorotar View Post
So it seems that with the correct u-boot flashed, any latest generation Kindle devices can enter fastboot mode and download the Android ROM and run it. Am I right?

I found some general article regarding u-boot:
https://boundarydevices.com/u-boot-u...-core-2gb-ddr/
https://boundarydevices.com/fastboot-on-i-mx/

But I suppose the 'memory map' in u-boot mentioned by knc1 is device specific so it is crucial for rebuilding the u-boot image?

Anyway, these are just some of my wild guesses. My apology if it doesn't help.
it looks interesting! but idon't know how to do it with the following, so i think is there any easier ways to get the u-boot, which has been modified in my device, if we extract it as the file "xxx.bin", we can use the command such as"fastboot flash bootloader xxx.bin" to reach our object.
boom1212 is offline   Reply With Quote
Old 12-16-2015, 07:36 AM   #11
bt4wang
Member
bt4wang began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jan 2010
Device: none
Quote:
Originally Posted by boom1212 View Post
it looks interesting! but idon't know how to do it with the following, so i think is there any easier ways to get the u-boot, which has been modified in my device, if we extract it as the file "xxx.bin", we can use the command such as"fastboot flash bootloader xxx.bin" to reach our object.
In the zip file you pasted above, there is a file named 'loader.bin'. If you open it with any HEX editor, you will find some interesting stuff.

Click image for larger version

Name:	QQ??20151216202056.png
Views:	1024
Size:	30.5 KB
ID:	144639

Now we need a brave man to flash this file to his pw2.
bt4wang is offline   Reply With Quote
Old 12-16-2015, 09:20 AM   #12
boom1212
Member
boom1212 began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Apr 2014
Device: Kindle paperwhite2
Quote:
Originally Posted by bt4wang View Post
In the zip file you pasted above, there is a file named 'loader.bin'. If you open it with any HEX editor, you will find some interesting stuff.

Attachment 144639

Now we need a brave man to flash this file to his pw2.
Yes.I have noticed it ,just the boot process i have posted(the first picture),
it has another kernel prefer to boot first,which is named "uboot-test",and this kernel makes kindle to be recognized as "Android Bootloader Interface",and this kernel is 148.5KB ,the same as the file i post above named "loader.bin".
While the original kernel is named "Linux-3.0.35-lab126",it's about 2.3MB.
So,i guess that, the modified u-boot has two kernel totally, "uboot-test" boots first, and "Linux-3.0.35-lab126" boots later.
If we just only flash the "loader.bin" to bootloader, it will make Kindle to be brick! Notice it!
And the question is:
1.where should the "loader.bin" be flashed?
2.and the man how to make the "uboot-test" kernel boots earlier than the original one("Linux-3.0.35-lab126") ?
3.how can i extract the "modified u-boot" from my device directly?
Code:
Hit any key to stop autoboot:  0 
## Booting kernel from Legacy Image at 80800000 ...
   Image Name:   uboot-test
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    152020 Bytes = 148.5 kB
   Load Address: 88400000
   Entry Point:  88400000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Last edited by boom1212; 12-16-2015 at 10:11 AM.
boom1212 is offline   Reply With Quote
Old 12-16-2015, 10:55 AM   #13
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
You MUST have the sources at hand and work from them!!!
Really, you need the sources.
So get the sources from the author of your install, they are Open Source and by the terms of there license, must be available to you.

Hey, Kindles are not the first embedded system I have ever worked with. Some of us actually do this shit as a day job.
knc1 is offline   Reply With Quote
Old 12-16-2015, 11:03 AM   #14
Rizla
Member Retired
Rizla ought to be getting tired of karma fortunes by now.Rizla ought to be getting tired of karma fortunes by now.Rizla ought to be getting tired of karma fortunes by now.Rizla ought to be getting tired of karma fortunes by now.Rizla ought to be getting tired of karma fortunes by now.Rizla ought to be getting tired of karma fortunes by now.Rizla ought to be getting tired of karma fortunes by now.Rizla ought to be getting tired of karma fortunes by now.Rizla ought to be getting tired of karma fortunes by now.Rizla ought to be getting tired of karma fortunes by now.Rizla ought to be getting tired of karma fortunes by now.
 
Posts: 3,183
Karma: 11721895
Join Date: Nov 2010
Device: Nook STR (rooted) & Sony T2
The author may not be willing to release the sources. Is it possible to derive the necessary files from the user's install?
Rizla is offline   Reply With Quote
Old 12-16-2015, 11:20 AM   #15
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by Rizla View Post
The author may not be willing to release the sources.
Is it possible to derive the necessary files from the user's install?
Willingness is not relevant, only the license terms.

Test it yourself:
Run a stop sign while driving, see if the police officer who stops you considers your willingness to stop when writing your ticket.

That can not be answered without having the device in-hand.

Last edited by knc1; 12-16-2015 at 11:29 AM.
knc1 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Design and Development of Android Applications:Android Apps Solving Real Problem amazon author Self-Promotions by Authors and Publishers 0 04-03-2015 04:01 AM
PRS-T1 flashed wrong adb-set to T1,and every time connected to PC ,freeze lorenc Sony Reader Dev Corner 1 12-15-2014 08:05 AM
Flashed PE with EE- Major OOps! padna enTourage eDGe 5 10-25-2011 02:24 PM
PRS-300 Flashed my 300! Clock is back!!! DrMoze Sony Reader 8 01-04-2010 02:56 PM


All times are GMT -4. The time now is 11:01 AM.


MobileRead.com is a privately owned, operated and funded community.