![]() |
#1 |
THE NOOB
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 701
Karma: 1545649
Join Date: Jan 2012
Location: Italy
Device: Kindle Touch 5.3.2
|
OK, I bricked it...shame on me
Good night!
I bricked my Kindle playing with /etc/upstart files. I know, I'm a real stupid! ![]() I edited the dbus.conf file and now I'm stuck at the "under the tree" image. I can enter in diagnostic mode (thanks Geekmaster!!), I can mount USB and drop files in it. I also have a backup copy of that file, but I don't manage to replace it. Here's what I'm doing: in diagnostic mode, I select USB device mode, than open my Kindle USB drive. I drop data.tar.gz, dbus.conf and this RUNME.sh: Code:
test -f /mnt/us/RUNME.done && exit # The following set of commands will be executed (in the context of your Kindle) exactly once. To make them execute again, remove RUNME.done # # (mntroot rw and mntroot ro below are only shown for convenience, and not needed for this particular script. These commands allow # to modify the internal file system. Use only if you know what you are doing. Oh well, you should have only ended up needing this advice # if you knew what you were doing in the first place. ;-) mntroot rw mv -f /mnt/us/dbus.conf /etc/upstart/dbus.conf mntroot ro touch /mnt/us/RUNME.done Any help? |
![]() |
![]() |
![]() |
#2 | |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
![]() In the worst case, use fastboot to flash a clean main partition and matching kernel, then update the firmware to whatever version you want to use, then continue the development cycle at the next step. ![]() If I were you, I would get all my stuff and custom scripts installed, then make a backup of mmcblk0p1 with dd, and then later you can flash that to backstep to the last known good development image you were working on. Then you would not need to reflash a kernel. EDIT: If I were you, I would use diags SSH to fix the problem in an interactive exploratory manner. A RUNME.sh should check to see if it is running from main or diags, and mount main at /mnt/mmc if it needs to, then make changes there. Last edited by geekmaster; 05-28-2012 at 08:52 PM. |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
THE NOOB
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 701
Karma: 1545649
Join Date: Jan 2012
Location: Italy
Device: Kindle Touch 5.3.2
|
I.E brick it again... ![]() Anyway, is that RUNME.sh correct? Do I need to switch from diag to main to copy that damn file? EDIT: I was thinking the same thing...then, how to use SSH in diag? I can start USBnet in diag mode but I can't ssh into kindle using the way I always do (with winscp or putty)... EDIT2: I get "connection refused" even if I can see the Kindle in the right mood (detected as Linux USB Ethernet/RNDIS gadget in my windows xp...) EDIT3: I think I got it. I need to get to fastboot mode, use mmcblk0p2_ssh.img.gz to have ssh in diags, activate the USBnet in diag, than I should be able to use WinSCP to fix that damn file... I need to make windows xp to use fastboot! Last edited by silver18; 05-28-2012 at 09:03 PM. |
![]() |
![]() |
![]() |
#4 |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
A complication is that there have been some reports of a recent OTA update that adds a startup script that deletes the diags /usr/local folder containing the dropbear files needed for SSH. This requires a fastboot reflash to restore them.
It is worth making a data.tar.gz that contains all the /usr/local files for diags, so after OTA is naughty to you, just drop the data.tar.gz (and ENABLE_DIAGS) on the USB drive and reboot to diags, and SSH should work again. Last edited by geekmaster; 05-28-2012 at 09:08 PM. |
![]() |
![]() |
![]() |
#5 |
THE NOOB
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 701
Karma: 1545649
Join Date: Jan 2012
Location: Italy
Device: Kindle Touch 5.3.2
|
Ok, kindle-fastboot detected by windows...now...I should send these commands:
Code:
In fastboot mode, do: gunzip mmcblk0p2.img.gz sudo ./fastboot flash diags mmcblk0p2.img Then reboot to diags mode. Select menu items N) U) Z) X). Wait 20 seconds for dropbear to startup. Do: sudo ifconfig usb0 192.168.15.201 ssh root@192.168.15.244 The password is mario. ![]() |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Those are linux commands. You can unzip the image with 7-zip (or whatever you prefer). The "sudo ./" is a linux thing. Just do "fastboot flash diags mmcblk0p2.img".
Instead of the linux "ssh", use putty. Instead of "scp", use winscp. Do them from a command prompt. |
![]() |
![]() |
![]() |
#7 |
THE NOOB
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 701
Karma: 1545649
Join Date: Jan 2012
Location: Italy
Device: Kindle Touch 5.3.2
|
Ok, I just flashed the new diag with SSH using:
Code:
fastboot flash diags mmcblk0p2_ssh.img I hope it is charging right now (it's connected to the USB)... If so, I hope to be able to reboot in diag mode, activate USBnet, use putty and replace the file... Than it should be ok... ![]() Anyway...before bricking it I had this problem: CLICK. Is it possible to plain install 5.1.0 firmware to fix it while debricking? EDIT: I switched to a wall charger and now I have my "beloved" under the tree screen. I'm letting the kindle to charge a little more, than I'll try SSH... Last edited by silver18; 05-29-2012 at 03:46 AM. |
![]() |
![]() |
![]() |
#8 |
THE NOOB
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 701
Karma: 1545649
Join Date: Jan 2012
Location: Italy
Device: Kindle Touch 5.3.2
|
Finally I managed to enter in SSH...I found that /etc/upstart was pretty empty so I added all missing files from my backup, I rebooted in main mode but no luck....I'm still under the tree....
What to try next? |
![]() |
![]() |
![]() |
#9 |
THE NOOB
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 701
Karma: 1545649
Join Date: Jan 2012
Location: Italy
Device: Kindle Touch 5.3.2
|
Reading and reading and reading....
![]() I think I need to flash the main partition...it should be mmcblk0p1...If I take a 5.0.0 firmware image, it should also fix the collateral problem I talked about...Am I wrong? But where can I find the main partition image? I can't see it in debrick post... Than I should copy mmcblk0p1 to /mnt/us, run in SSH this command: Code:
dd if=/mnt/us/mmcblk0p1.img of=/dev/mmcblk0p1 bs=4 Code:
dd if=/dev/zero of=/dev/mmcblk0p3 bs=4K count=1K Finally I should run the factory_restore script, but where can I find it? And how can I run it? Thanks to all! I promise I'll write down a noob guide for the future...including also all problems related to using Windows! |
![]() |
![]() |
![]() |
#10 | |||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,669
Karma: 2300001
Join Date: Mar 2011
Location: Türkiye
Device: Kindle 5.3.7
|
Quote:
![]() Quote:
Code:
#!/bin/sh mntroot rw /usr/sbin/factory_reset echo "Done " > /mnt/us/result.txt Quote:
![]() |
|||
![]() |
![]() |
![]() |
#11 |
THE NOOB
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 701
Karma: 1545649
Join Date: Jan 2012
Location: Italy
Device: Kindle Touch 5.3.2
|
|
![]() |
![]() |
![]() |
#12 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,669
Karma: 2300001
Join Date: Mar 2011
Location: Türkiye
Device: Kindle 5.3.7
|
Quote:
http://gitbrew.org/~dasmoover/kindle/touch/forensic/ > mmcblk0p1-kt-5.0.0.img |
|
![]() |
![]() |
![]() |
#13 |
THE NOOB
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 701
Karma: 1545649
Join Date: Jan 2012
Location: Italy
Device: Kindle Touch 5.3.2
|
Wow, thanks!!!!
Last question before diving into debricking: do I need to flash also the kernel (as I'll use 5.0.0 main image, I'll need to use kernel-5.0.0.img)? |
![]() |
![]() |
![]() |
#14 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,669
Karma: 2300001
Join Date: Mar 2011
Location: Türkiye
Device: Kindle 5.3.7
|
Quote:
But just remembered that there is a good page about this whole process: tinyurl.com/touchunbrick |
|
![]() |
![]() |
![]() |
#15 |
THE NOOB
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 701
Karma: 1545649
Join Date: Jan 2012
Location: Italy
Device: Kindle Touch 5.3.2
|
Right now I'm downloading the main partition image.
I think I'll act like this: - enter in diag mode - go in USB mode - drop mmcblk0p1.img from 5.0.0 firmware - exit USB mode - go in fastboot mode - flash 5.0.0 kernel with Code:
fastboot flash kernel kernel-5.0.0.img - enter in USBnet mode - copy mmcblk0p1.img with Code:
dd if=/mnt/us/mmcblk0p1.img of=/dev/mmcblk0p1 bs=4K Code:
dd if=/dev/zero of=/dev/mmcblk0p3 bs=4K count=1K Code:
/usr/sbin/factory_reset ![]() |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Hall of Shame - don't buy these ebooks! | Logseman | General Discussions | 18 | 12-08-2010 09:27 AM |
Hall of Shame | AlexBell | General Discussions | 38 | 08-27-2010 02:55 AM |
Google and Viacom put us to shame | Iphinome | Lounge | 4 | 05-22-2010 09:33 AM |
Such a shame. Calibre could be great | DownSouth | Calibre | 22 | 05-05-2010 12:27 AM |
Wow-- I feel sympathetic shame for Mobileread | ardeegee | Feedback | 8 | 04-20-2010 04:50 AM |