Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 07-18-2015, 10:12 PM   #1
dante9394
Junior Member
dante9394 began at the beginning.
 
dante9394's Avatar
 
Posts: 2
Karma: 10
Join Date: Jul 2015
Device: PW2
Question need help! how to flash a kernel?

Hi, my PW2 wasn't starting,
I tried to rescue it,connected to TTL
boot into recovery menu.
but i select 4.Erase MMC0 by mistake
that's the only thing i can see in putty.

U-Boot 2009.08-lab126 (Sep 04 2013 - 15:37:40)

CPU: Freescale i.MX6 family TO0.0 at 996 MHz
Temperature: 36 C, calibration data 0x55a4dc5f
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: Pinot WFO
Boot Reason: [ POR ]
Boot Device: NAND
Board Id: 02722011336703Q1
S/N: B0 [SN edited out for security reason - MODERATOR]
I2C: ready
DRAM: 256 MB
Using default environment

In: serial
Out: serial
Err: serial
Quick Memory Test 0x80000000, 0xfff0000
POST done in 59 ms
Battery voltage: 3803 mV

Hit any key to stop autoboot: 0
Wrong Image Format for bootm command
ERROR: can't get kernel image!
uboot > bootm 0xE41000
Wrong Image Format for bootm command
ERROR: can't get kernel image!




it seems i have to flash a kernel.



Hit any key to stop autoboot: 0
Wrong Image Format for bootm command
ERROR: can't get kernel image!
uboot > bist fastboot


U-Boot 2009.08-lab126 (Sep 04 2013 - 15:38:09)

CPU: Freescale i.MX6 family TO0.0 at 996 MHz
Temperature: 47 C, calibration data 0x55a4dc5f
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: Pinot WFO
Boot Reason: [ POR ]
Boot Device: NAND
Board Id: 02722011336703Q1
S/N: B05 [Edited out for security reason - MODERATOR]
I2C: ready
DRAM: 256 MB
Using default environment

In: serial
Out: serial
Err: serial
POST done in 0 ms
Battery voltage: 3780 mV

running cmd: fastboot
Entering fastboot mode...
USB speed: HIGH
Connected to USB host!
USB speed: HIGH
Connected to USB host!
Battery voltage: 3781 mV




then i use a android fastboot tool.



E:\kindle\fastboot\fastboot>fastboot flash kernel main_kernel.img
< waiting for device >



that's what i have now.
i'm waiting for along time,and never changed.
putty just comes out battery voltage,never changed too.

Is there anyone could help me?i don't what to do now.
i think i didn't get the right fastboot tool.



Thanks very much.

Last edited by Dr. Drib; 07-19-2015 at 08:21 AM.
dante9394 is offline   Reply With Quote
Old 07-19-2015, 02:20 AM   #2
knc1
Helpdesk Junkie
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: 8,084
Karma: 7025886
Join Date: Feb 2012
Device: Too many.
Ah, another one who thought: "I wonder what 'Erase All' means?"
And then: "I wonder if it works?"

Ans:
It does just what it says.
And yes, it works.
You could have asked instead of pushing it.

- - - -

Only a moderator can change the title (first post) of a thread, but let me tell you now, you need to flash more than a Kernel.
Note the word: All in the label: "Erase All"

The routine even erased the secure flash area that held u-boot, and then replaced it with the copy running in ram at that time.

- - - -

Not all of the Kindle's data is keep in partitioned flash, some data that is owner and/or device specific (like the serial number and board id) are stored **outside** of the partitioned area.

If you had those things written down before you pressed "Erase All" - well and good.
If not, I see you are lucky, the 'erase all' command in your (previous) firmware version kept them for you.
But you REALLY, REALLY, should write them down yourself, now!
Then edit your post to remove them from the public eye.

(There are people out there who WILL reuse those numbers that belong specifically to you.)

- - - - -

BIG NOTE:
Grayscale Kindles **do not** use the Android 'fastboot' they use a specially modified version, specific to the Grayscale Kindles.
If you don't use the proper version of 'fastboot', you can wait forever or until the silicon parts return to their original form as beach sand.

Another important point:
You mention Putty, so you must be using Windoze.
Before going any further, learn to use a Linux LiveCD to boot your machine into Linux.
Getting all of the tools and such to work under Windoze is another can of worms, one that we hate to open here.

- - - -

Hint 1: KuBrick is a Linux LiveCD and I think it includes the proper fastboot on it.
Otherwise, a bit of searching will find you a copy of the **GRAYSCALE KINDLE FASTBOOT**.

Last edited by knc1; 07-19-2015 at 02:34 AM.
knc1 is online now   Reply With Quote
 
Advertisement
Old 07-19-2015, 11:03 PM   #3
eschwartz
Irrational Optimist
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 13,882
Karma: 53676860
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Kubrick already contains all the necessary tools (including the modified Kindle fastboot) for Kindle debricking. That's what it's for.
eschwartz is online now   Reply With Quote
Old 07-20-2015, 06:52 AM   #4
knc1
Helpdesk Junkie
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: 8,084
Karma: 7025886
Join Date: Feb 2012
Device: Too many.
Hmm...
Guess we should mention how to escape from the Wizard to the command line.
Alt-F3 (or maybe Alt-F4, I always forget which).

- - - -

And since this is a PW-2, I don't think it will have the image files on it for that.
Maybe it does.
And I have never run it from a USB stick, I don't know if it makes the rest of the USB stick available for storing files (like the PW-2 images).

But Knoppix + rip tools off of Kubrick + grab the PW-2 images from ixtab's site should certainly work.

Last edited by knc1; 07-20-2015 at 06:56 AM.
knc1 is online now   Reply With Quote
Old 07-20-2015, 10:29 AM   #5
eschwartz
Irrational Optimist
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 13,882
Karma: 53676860
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
You should be able to store the PW2 images on the same flashdrive, from what I remember of Live USBs. Just resize the partition (default == exact size of Kubrick).

And of course, they were useless for Kubrick since USB Downloader mode had been killed off and the people who use a serial port with Kubrick are extremely in the minority.
eschwartz is online now   Reply With Quote
Old 07-20-2015, 10:40 AM   #6
knc1
Helpdesk Junkie
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: 8,084
Karma: 7025886
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by eschwartz View Post
You should be able to store the PW2 images on the same flashdrive, from what I remember of Live USBs. Just resize the partition (default == exact size of Kubrick).

And of course, they were useless for Kubrick since USB Downloader mode had been killed off and the people who use a serial port with Kubrick are extremely in the minority.
That all sounds resonable.

I'll take a look at it myself and maybe write up some directions.

Since it isn't a hotly required item, this will be fairly low on my to-do list. (I am still having a shortage of hobby time here.)
knc1 is online now   Reply With Quote
Old 07-25-2015, 05:50 AM   #7
dante9394
Junior Member
dante9394 began at the beginning.
 
dante9394's Avatar
 
Posts: 2
Karma: 10
Join Date: Jul 2015
Device: PW2
Quote:
Originally Posted by knc1 View Post
That all sounds resonable.

I'll take a look at it myself and maybe write up some directions.

Since it isn't a hotly required item, this will be fairly low on my to-do list. (I am still having a shortage of hobby time here.)
Many Thanks.

last time i had read your post.
i try to download a Kubrick and put it in my USB stick.
it boots and stuck in a screen that lack of some JAVA file Etc.

so i give it up and go back to windows.
because i get a new fastboot tool from another thread.

i type in "fastboot -i VID" to try to hook my device.
then "fastboot devices". but nothing display on the screen.
i think i was fail again,so i type in "fastboot -w" and see what happen
OMG!it works!

that's what it display now.

U-Boot 2009.08-lab126 (Sep 04 2013 - 15:37:40)

CPU: Freescale i.MX6 family TO0.0 at 996 MHz
Temperature: 45 C, calibration data 0x55a4dc5f
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: Unknown
Boot Reason: [ POR ]
Boot Device: NAND
Board Id: ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
S/N: ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
I2C: ready
Invalid board id! Can't determine system type for RAM init.. bailing!
DRAM: 0 kB
Using default environment

In: serial
Out: serial
Err: serial
Quick Memory Test 0x80000000, 0xffff0000
POST done in 4 ms


that command erase the Board Id,S/N !
what's worse,it's stuck.i can't type in anything,i can't get in fastboot mode.
it seems u-boot was destroy.

i don't know what to do now.
can it be rescued by Kubrick?

Best.

Last edited by dante9394; 07-25-2015 at 05:58 AM.
dante9394 is offline   Reply With Quote
Old 07-25-2015, 07:14 AM   #8
knc1
Helpdesk Junkie
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: 8,084
Karma: 7025886
Join Date: Feb 2012
Device: Too many.
No, Kubrick (the Wizard) will not de-brick any model not in the thread title.

Ah, I told you to boot your PC with Kubirck and then escape to the Linux command line.
All of the correct tools you will need can be run from there.

U-Boot is alive and well, that is what is outputting the messages you copied.
**EDIT:** Accept for what was deleted by your "fastboot -w" command entry.
(Hmm... I guess "Erase All" wasn't enough for this guy.)

So next, follow the directions it printed for you -
It output the correct board ID to use and told you it wasn't set (yet) -
Duh...
So set it.
- - - - -
Most likely command to use: the U-boot idme command (probably only in the full (bist) build of u-boot).

And if you can't access the idme command or bist then you have junked out your board.
List it as "For Parts Only" on some trading site.

Last edited by knc1; 07-25-2015 at 01:05 PM.
knc1 is online now   Reply With Quote
Old 08-07-2015, 01:18 PM   #9
edo1
Junior Member
edo1 began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jul 2014
Device: pw2
I did "erase all" too (((

I have got working serial console and fastboot. What I need to do next?

I flashed system, kernel, diags, diags_kernel from http://ixtab.tk/kindle-touch-images/PW2/
but my pw2 still does not boot.

Code:
Hit any key to stop autoboot:  0 
## Booting kernel from Legacy Image at 80800000 ...
   Image Name:   Linux-3.0.35-lab126
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2420416 Bytes =  2.3 MB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

[    0.094331] boot: C def:bcut:batterycut=1
[    0.098349] 
[    0.257893] LPDDR2 MfgId: 0x1 [Samsung]
3.0.35-lab126 #1 Wed Aug 28 15:30:45 PDT 2013 armv7l
Press [ENTER] for recovery menu...       0 //dev/mmcblk0p4:
CHS=4/16/43456 size=1423966208 bytes
flag type      first       last  lba first   lba size
Partition p1:
0x00 0x0b         16 <large>            16    2781168
    CHS: 0/1/1 - <large>
Partition p2:
Partition p3:
Partition p4:
BOOTING DEFAULT.
IP-Config: no devices to configure
[    5.937132] EXT3-fs (mmcblk0p1): error loading journal
[    5.952272] EXT3-fs (mmcblk0p1): error loading journal
kinit: Mounted root (ext2 filesystem) readonly.
[    5.976732] EXT2-fs (mmcblk0p1): error: ext2_check_page: bad entry in directory #5415: : unaligned directory entry - offset=0, inode=4294967295, rec_len=65535, name_len=255
[    5.992197] EXT2-fs (mmcblk0p1): error: remounting filesystem read-only
kinit: opening console: error 2
edo1 is offline   Reply With Quote
Old 08-07-2015, 02:58 PM   #10
edo1
Junior Member
edo1 began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jul 2014
Device: pw2
Code:
$ du -h mmcblk0p1.bin 
350M    mmcblk0p1.bin
$ ./fastboot flash system mmcblk0p1.bin 
downloading 'system'...
OKAY [  7.721s]
writing 'system'...
OKAY [ 35.006s]
finished. total time: 42.727s
8 seconds for 350Mb over USB! Does fastboot really transfer image to kindle?
edo1 is offline   Reply With Quote
Old 08-07-2015, 03:13 PM   #11
eschwartz
Irrational Optimist
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 13,882
Karma: 53676860
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
No.

fastboot cannot send that much data. You will need to copy it via standard USB connection to the userstore, and flash it from the Kindle diags shell via `dd`

Last edited by eschwartz; 08-07-2015 at 04:27 PM.
eschwartz is online now   Reply With Quote
Old 08-07-2015, 03:39 PM   #12
edo1
Junior Member
edo1 began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jul 2014
Device: pw2
thank you, I have found this already )
http://www.mobileread.com/forums/sho...0&postcount=69
edo1 is offline   Reply With Quote
Old 08-07-2015, 03:46 PM   #13
edo1
Junior Member
edo1 began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jul 2014
Device: pw2
Yeah!!! My kindle is working again!

Last edited by edo1; 08-07-2015 at 04:29 PM.
edo1 is offline   Reply With Quote
Old 08-07-2015, 04:27 PM   #14
eschwartz
Irrational Optimist
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 13,882
Karma: 53676860
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Good to hear.
eschwartz is online now   Reply With Quote
Reply

Tags
pw2 brick fastboot kernel

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
K3 how to fix K3G,after flash with wrong kernel. txhy777 Kindle Developer's Corner 2 02-03-2015 03:41 AM
PRS-T1 How-to: Compiling the kernel and kernel modules altruizine Sony Reader Dev Corner 9 09-03-2012 09:12 PM
To Flash or Not to Flash? For the Eee Transformer Ken Maltby Android Devices 4 06-28-2011 04:58 PM
Can't get new f/w - flash site broken again and non-flash not updated jusmee Astak EZReader 8 03-13-2010 11:26 AM
iLiad Kernel 2.6 Jaapjan iRex Developer's Corner 6 09-01-2008 06:17 AM


All times are GMT -4. The time now is 09:40 PM.


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