|
|
Thread Tools | Search this Thread |
04-26-2020, 03:36 PM | #1 |
Junior Member
Posts: 3
Karma: 53192
Join Date: Apr 2020
Device: Sony PRS-T1
|
PRS-T1 run from SD card / UART recovery from broken internal flash
After close to 10 years, my PRS-T1 finally had its internal eMMC flash fail. Not sure if it weared out, or if I messed up something as I was just doing some hacking when it happened. Anyway, the end result is that it just kept blinking yellow light, wouldn't go into recovery and wouldn't boot.
I opened it up and probed until I found serial port (UART) testpoints on the backside of the PCB. They are the three corner points in a group of 3x4 testpoints, shown in image below: Connecting them to USB-serial converter (3.3V voltage), I got access to boot messages. This is where I found about the flash issue: Code:
mmcblk2: retrying using single block read(cmderr=0,dataerr=-110,stoperr=0) mmcblk2: error -110 transferring data, sector 52832, nr 84, card status 0x80900 end_request: I/O error, dev mmcblk2, sector 52832 So I copied everything to a SD card and modified initramfs to mount mmcblk0 instead of mmcblk2. At the same time I added adb support. This is how to rebuild the initrd (on PC Linux): Code:
find | cpio -H newc -R 0:0 -o > ../initrd_new.cpio gzip -c < initrd_new.cpio > initrd_new.gz mkimage -A ARM -O Linux -T ramdisk -a 0x70308000 -C none -n 'Normal Rootfs' -d initrd_new.gz initrd_new sudo dd if=initrd_new of=/dev/mmcblk0 bs=1 seek=5242880
Writing to eMMC is easiest, but if your eMMC was totally broken (not just bad sectors), you'd have to modify the uboot image in NAND so that it would load its configuration from mmc0 instead of mmc2. To get recovery environment to boot, put rupor-rescue on the SD card partition 4 and then use this Python script to temporarily point uboot to load the rescue partition from SD card: Code:
import serial, time, sys s = serial.Serial("/dev/ttyUSB0", 115200, timeout = 0.1) def slowsend(x): for b in x: s.write(b) time.sleep(0.001) while True: d = s.read(32) sys.stdout.write(d) s.write(' ' * 32) # "Any key" for uboot if 'Hit' in d: slowsend("\r\nprintenv\r\n") time.sleep(1.5) # To boot recovery from SD card slowsend("setenv bootargs 'root=/dev/mmcblk0p1 rootfstype=ext4 rw " + "rootwait init=/linuxrc console=ttymxc4,115200 bootdev=2 rawtable=0xF40000'\r\n") # To boot normal system from SD card # slowsend("setenv bootargs 'console=ttymxc4,115200 init=/init bootdev=0 rawtable=0xF40000'\r\n") time.sleep(1.0) slowsend("boot\r\n") break while True: d = s.read(64) sys.stdout.write(d) In the recovery shell you can run this to copy the uboot configuration from SD card to eMMC: Code:
dd if=/dev/mmcblk0 skip=786432 of=/dev/mmcblk2 seek=786432 bs=1 count=131072 --- For reference, here are the addresses of various important blocks that are stored on SD/eMMC before the first partition: Code:
[root (ttyGS0)]# cat /sys/module/rawdatatable/parameters/rawdata_param MBR :0x00000000:0x00000400 uBoot :0x00000400:0x000bfc00 Boot Env :0x000c0000:0x00020000 Reserved1 :0x000e0000:0x00020000 Normal Kernel :0x00100000:0x00400000 Normal Rootfs :0x00500000:0x00100000 Recovery Kernel :0x00600000:0x00400000 Reserved2 :0x00a00000:0x00500000 Normal Boot Env :0x00f00000:0x00020000 Recovery Boot Env :0x00f20000:0x00020000 Raw Data Table :0x00f40000:0x00020000 Info :0x00f60000:0x00020000 Id :0x00f80000:0x00020000 Reserved3 :0x00fa0000:0x00060000 Boot Image :0x01000000:0x00100000 Waveform :0x01100000:0x00200000 LOG :0x01300000:0x00500000 |
04-26-2020, 04:21 PM | #2 |
Junior Member
Posts: 3
Karma: 53192
Join Date: Apr 2020
Device: Sony PRS-T1
|
Here is the SD card image. It has adb enabled, but otherwise stock firmware 1.0.07. Install to SD card (minimum 4 GB card, at least up to 16 GB works) using dd on a Linux PC:
Code:
unxz sd_card_PRS-T1_1.0.07_adb_enabled.bin.xz dd if=sd_card_PRS-T1_1.0.07_adb_enabled.bin of=/dev/mmcblk0 bs=1M status=progress |
Advert | |
|
09-08-2020, 06:27 AM | #3 | |
Member
Posts: 11
Karma: 10
Join Date: Sep 2020
Device: SONY PRS-T1
|
Hello JPA,
My Reader stopped to work after 10years. It is blocked on Opening book... I tryed a lot of solution, but I can reach only recovery console with serial using rupor-rescue on my SD Card. If I try to make a backup of my PRS-T1 with DD, I receive Input/output error on dev/mmcblk2. dd if=/dev/mmcblk2 of=/dev/null skip=119000 count=2000 dd: /dev/mmcblk2: Input/output error So, after reading your posts, I prepared my 8gB SD card with your PRS-T1 1.0.07 image. I don't touch anything else on SD card. Quote:
So I don't undestand exactly how to use your premade image and exactly wich are the instructions to change the uboot configuration. I'm using MacOS. |
|
09-08-2020, 06:48 AM | #4 | |
Junior Member
Posts: 3
Karma: 53192
Join Date: Apr 2020
Device: Sony PRS-T1
|
Quote:
Based on your error messages & symptoms, it seems your flash is broken in the user partition area while my was broken in the kernel area. But doesn't matter, as my image moves it all to SD card. I haven't actually tried this myself, but I think you could get it done this way using the rupor USB shell: 1. Copy the uboot env from my image to a separate file: Code:
dd if=sd_card_PRS-T1_1.0.07_adb_enabled.bin skip=786432 of=uboot_new.bin bs=1 count=131072 2. Boot rupor rescue so that you get serial port shell over USB. 3. Find where the file is visible on PRS-T1 shell, [code]mount[code] command probably tells if the sd card is mounted. 4. You can backup the old uboot env to a file: Code:
dd if=/dev/mmcblk2 skip=786432 of=uboot_old.bin bs=1 count=131072 Code:
dd if=uboot_new.bin of=/dev/mmcblk2 seek=786432 bs=1 count=131072 As usual, no warranty and be careful with the numbers |
|
09-08-2020, 07:03 AM | #5 | |||
Member
Posts: 11
Karma: 10
Join Date: Sep 2020
Device: SONY PRS-T1
|
In your description it is not clear were you are working... for example...
Quote:
If I try this to mount the SD card partition 4 on my MacOS, I receive Quote:
Also.. Quote:
Please, let me know some suggests. |
|||
Advert | |
|
09-08-2020, 11:24 AM | #6 |
Resident Curmudgeon
Posts: 77,120
Karma: 138590940
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Is it worth all this hassle to try to get a T1 up and running? If it was me, I'd be buying a new Reader.
|
09-08-2020, 12:17 PM | #7 |
Member
Posts: 11
Karma: 10
Join Date: Sep 2020
Device: SONY PRS-T1
|
@JSWolf you're right! But I would to try...
And now I don't know what to buy |
09-08-2020, 12:29 PM | #8 | |
Resident Curmudgeon
Posts: 77,120
Karma: 138590940
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Kobo will handle the same ePub your T1 handles. It has a lot more features abd you can patch/add other programs if you want. Plus, it's a lot faster then the T1 and it's high-res 300DPI. |
|
09-09-2020, 12:12 PM | #9 | |
Member
Posts: 11
Karma: 10
Join Date: Sep 2020
Device: SONY PRS-T1
|
Quote:
|
|
09-09-2020, 02:25 PM | #10 |
Wizard
Posts: 2,776
Karma: 30081762
Join Date: Jan 2012
Location: US
Device: ALL DEVICES ARE STOCK: Kobo Clara, Tolino Shine 2, Sony PRS-T3, T1
|
If you are happy with the 6" size the Clara is a good reader. The comfort light is nice and the screen is clear. Early on, there were complaints about a "light bleed" but this eventually got worked out so if you buy a new one now, it should be fine.
|
09-09-2020, 05:43 PM | #11 |
Resident Curmudgeon
Posts: 77,120
Karma: 138590940
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
09-10-2020, 05:15 AM | #12 | |
Member
Posts: 11
Karma: 10
Join Date: Sep 2020
Device: SONY PRS-T1
|
Quote:
Meanwhile, will be usefull some explain from JPA on his good job! |
|
09-25-2020, 05:51 PM | #13 |
Member
Posts: 11
Karma: 10
Join Date: Sep 2020
Device: SONY PRS-T1
|
|
09-25-2020, 06:54 PM | #14 | |
Member
Posts: 11
Karma: 10
Join Date: Sep 2020
Device: SONY PRS-T1
|
Quote:
IT WORKS!! Thanks! I've used GPARTED Live CD to resize READER partition and it is very easy to use! Last edited by indiana71; 10-04-2020 at 10:38 AM. |
|
01-01-2021, 12:00 AM | #15 |
Junior Member
Posts: 1
Karma: 10
Join Date: Dec 2020
Device: Sony PRS-T1
|
Thank you so much !
I have my faulty Sony PRS-T1 working again. Does anybody know how to root this device in order to show the android settings and run other apps ? I suppose it should be easy since it run everything now from the sd card, but I have no experience with Android low level. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How do I flash update.zip via recovery on T62? | loviedovie | Android Devices | 0 | 01-16-2016 08:36 PM |
Boot/flash Custom recovery | ziamrziamr | Onyx Boox | 0 | 11-08-2014 05:32 AM |
Touch Bricked Kobo Touch - no internal SD card (flash memory chip instead) | bher | Kobo Reader | 6 | 07-30-2014 07:22 PM |
Can't get new f/w - flash site broken again and non-flash not updated | jusmee | Astak EZReader | 8 | 03-13-2010 12:26 PM |
PRS-500 PRS-500; UART, U-Boot experts: HELP! | Melongasoil | Sony Reader Dev Corner | 0 | 01-12-2010 05:09 PM |