View Single Post
Old 04-30-2022, 02:37 PM   #16
NonaSuomy
Junior Member
NonaSuomy began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Apr 2022
Device: None
Quote:
Originally Posted by jpa View Post
Yeah, I guess my post wasn't very clear on that. I had the extra complication that my device wouldn't boot even rupor rescue from SD card, so I had to use solder wires to hardware serial port to effect recovery.

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
and copy uboot_new.bin to rupor rescue SD card, along with the other files that are already there.
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
5. And then write a new one:
Code:
dd if=uboot_new.bin of=/dev/mmcblk2 seek=786432 bs=1 count=131072
After that it should boot (in normal mode) from SD card that has my image on it. Rescue mode should still work as before, as this only changes the "active uboot env" instead of "rescue uboot env".

As usual, no warranty and be careful with the numbers


Thank you for further explaining this and uploading your SD image! It was a great help!



Working nice once again WiFi and USB not crashing!


SDCard Boot directions for Sony PRS-T1


Copy contents of https://discord.com/channels/8092057...07186154438686 to root of SDCard folder

Copy uboot_new.bin https://discord.com/channels/8092057...33364454834197 to Rupor Rescue SD Card, along with the other files that are already there…

SD Card Layout
Code:
OS Firmware
|-files
| |-update.img
uboot_new.bin
Boot Rupor Rescue to get serial shell over USB (Hold HOME + MENU buttons before you turn on device).

Remount SD Card as writable.

Code:
mount -o remount,rw /dev/mmcblk0p1 /initrd/mnt/sd
Change directory to the SD Card mounted.

Code:
cd /initrd/mnt/sd
Backup the old uboot env to a file.
Code:
 dd if=/dev/mmcblk2 skip=786432 of=uboot_old.bin bs=1 count=131072
Write a new one.

Code:
dd if=uboot_new.bin of=/dev/mmcblk2 seek=786432 bs=1 count=131072
Reset device and it should now be booting to the SD Card image.
NonaSuomy is offline   Reply With Quote