01-25-2012, 08:42 AM | #1 |
Evangelist
Posts: 425
Karma: 75216
Join Date: Nov 2011
Location: old europe
Device: Kobo Mini, Tolino Epos 2
|
HOWTO: improving recovery mode
Hi folks,
this thread is meant to discuss improving the recovery mode. The one that gets installed via porkupan's enable-adb.zip lacks a few things for me, especially a working e2fsck. But also a menu on the PRST1 would be handy that allows to run fix_permissions, etc. when there is no computer available to access recovery console via serial USB connection. There is even more that could be done: http://wiki.cyanogenmod.com/wiki/How...ecovery_Images So, if you have valuable information on how to achieve this, please post here! FINALLY: If you know any secret key combination on how to switch to recovery mode that works without having to attach the device via USB and without having to launch something on the T1 - just some plain keep button XY pressed during power on - please let me know! Last edited by uboot; 01-25-2012 at 08:47 AM. |
01-25-2012, 10:23 AM | #2 |
Zealot
Posts: 102
Karma: 38810
Join Date: Apr 2011
Device: Sony PRS-T1
|
as I have told, my T1 actually boot every time in recovery mode, instead of doing the normal update...
so it is definitely possible.. so I'm wondering this: is the update mode a recovery mode + update? if it is the case, it should be possible to achieve recovery mode just with a proper update which stops the process... I started to watch the p1 init code... and I think it just switch between normal boot and sd rescue boot.. the info about the button pressed at boot may be in /sys/module/rawdatatable/parameters/mmc_dev_no (see /linuxrc in p1) |
Advert | |
|
01-25-2012, 11:09 AM | #3 |
Zealot
Posts: 102
Karma: 38810
Join Date: Apr 2011
Device: Sony PRS-T1
|
well,
I've tried removing the PRS-T1 updater.package from sd and it did an update... so I recopied the PRS.package and it did an update again... I can't go to recovery anymore :| so the T1 was stuck in recovery mode somehow :O |
01-25-2012, 11:31 AM | #4 |
Zealot
Posts: 102
Karma: 38810
Join Date: Apr 2011
Device: Sony PRS-T1
|
UPDATE: the T1 goes in update mode, the screen flickers and reboots but the update doesn't install.. no script.log generated (it's the problem noted by me and others in the past)... so I suspect that the T1 can't mount the sdcard partition for some reason.
so I formatted the sdcard partition and the update works... this could be a nice solution of those affecting by this problem. Factory reset is a more drastic solution |
01-25-2012, 11:40 AM | #5 |
Zealot
Posts: 102
Karma: 38810
Join Date: Apr 2011
Device: Sony PRS-T1
|
UPDATE2: ok, now I can access recovery mode again.... so it's simple: just put PRS-T1 updater.package
in the READER without tmp or updates folders.. then press home and menu and you are in recovery mode |
Advert | |
|
01-25-2012, 06:49 PM | #6 |
Zealot
Posts: 102
Karma: 38810
Join Date: Apr 2011
Device: Sony PRS-T1
|
UPDATE3:
I was wrong again! actually there are 2 PRS.package, one will do an update, and one will do recovery mode... I managed to extract the 2 package, and here are the 2 different scripts (update.sh): -update mode: http://dl.dropbox.com/u/158338/ebook/update.sh -recovery mode: Code:
#!/bin/sh PATH=/bin:/sbin:/usr/bin:/usr/sbin /usr/bin/chgboot normal mount --bind ./shadow /etc/shadow sync sync sync # reboot # exit 16 as you can see, in both cases chgboot normal is called, so maybe with chgboot it's possible to call other modes. This is a nice method for booting in recovery without windows :P |
01-26-2012, 08:04 PM | #7 |
Junior Member
Posts: 5
Karma: 12
Join Date: Jan 2012
Device: PRS T1
|
How to extract package?
my reader is bricked after resizing the data and system partition, |
01-26-2012, 08:42 PM | #8 |
Zealot
Posts: 102
Karma: 38810
Join Date: Apr 2011
Device: Sony PRS-T1
|
if you can't boot and your sd (p4 partition) isn't accessible, you must do an sd recovery..
you may also want to modidfy the sd rescue package and put in home/ the partition images you want. |
01-26-2012, 10:04 PM | #9 |
Junior Member
Posts: 5
Karma: 12
Join Date: Jan 2012
Device: PRS T1
|
|
01-27-2012, 12:14 AM | #10 | |
Connoisseur
Posts: 83
Karma: 1224
Join Date: Dec 2011
Location: Gijon (Spain)
Device: Sony PRS-T1 black
|
Quote:
Is this what you are looking for? uboot: Sorry. I read too late your PM... I'm very busy this week! Last edited by j0534ng31; 01-27-2012 at 12:27 AM. |
|
01-27-2012, 01:51 AM | #11 |
Junior Member
Posts: 5
Karma: 12
Join Date: Jan 2012
Device: PRS T1
|
I resized the partition,include system,data,internal sdcard.
now I cannot use usb serial to logged into recovery system, I downloaded the sdcard-rescue.zip and used micro sd to hard recovery, refer to wiki, both power and micro sd 's the orange light were blinking when I press home and menu, the progress bar in the "Opening book" page also reached the right side. but about ten minutes later,the progress bar return to left side and not move,the orange light for both are still blinking. what's wrong with it ? |
01-27-2012, 02:49 AM | #12 |
Evangelist
Posts: 425
Karma: 75216
Join Date: Nov 2011
Location: old europe
Device: Kobo Mini, Tolino Epos 2
|
There is nothing wrong with that, all went fine, you just need to read more before asking questions (step 6): https://wiki.mobileread.com/wiki/PRST...bricked_device
So sorry to say this, but this thread is on how to create a better recovery partition on the T1, but now it is cluttered with 10 offtopic-posts |
01-27-2012, 04:50 AM | #13 | |
Zealot
Posts: 102
Karma: 38810
Join Date: Apr 2011
Device: Sony PRS-T1
|
Quote:
and I didn't know the test tool (that still requires a full operational rooted system).. so I just used the recovery PRS.package (I didn't know the porkupan work a at that time :P ) btw, it should be nice to have an sd rescue that acts like a recovery mode.. I think it should be possible. An sd rescue just requires a working p1 partition (instead of p1,p2 and p4 of the recovery), making repartition less dangerous |
|
01-27-2012, 08:42 AM | #14 | |
Connoisseur
Posts: 83
Karma: 1224
Join Date: Dec 2011
Location: Gijon (Spain)
Device: Sony PRS-T1 black
|
This requires only a terminal application (so, a rooted T1)
/system/bin/chgboot recovery && reboot $(busybox which chgboot) recovery && reboot Quote:
You mean that you want a 'new package', almost like 'SD rescue', but only to enter in recovery mode? It can be done... I'll try it this weekend! Last edited by j0534ng31; 01-27-2012 at 08:45 AM. |
|
01-27-2012, 11:11 PM | #15 | |
Junior Member
Posts: 5
Karma: 12
Join Date: Jan 2012
Device: PRS T1
|
Quote:
in th restore-rescue.zip, there is file called the update.img, it's /etc/rc.d/rcS file is shell script that process micro sd recovery, you can modify it and recreate update.img,only to enter in recovery mode, then use usb serial log into system. it 's my exprience,I found this method and recovered a bricked t1. there are three points for those who want to use this method: 1. modify rcS ,insmd kernel modules for usb serial PHP Code:
3. modify root password,add this code in rcS file. PHP Code:
Last edited by figonet; 01-27-2012 at 11:15 PM. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Request Safe mode or recovery mode for Pocket Edge? | felixblackcat | enTourage eDGe | 25 | 01-08-2012 05:07 PM |
Kindle Touch: Anyway to go to Recovery Mode??? | JRyn | Kindle Developer's Corner | 4 | 12-17-2011 01:11 PM |
Request Recovery Mode for Non-to-Mid-Techs and Why Everyone Needs It | muranternet | enTourage eDGe | 28 | 08-08-2011 11:37 AM |
Update Kindle 3 through Recovery Mode | nhanh | Kindle Developer's Corner | 2 | 07-27-2011 03:27 AM |
Recovery mode/google apps help pls | pearsjd | Nook Developer's Corner | 7 | 06-15-2011 02:25 PM |