View Full Version : rescue my PRS-505
wenjie1984 06-17-2008, 03:42 PM my 505 was bricked because of my mistake operation on shell after adding a serial console on 505.
the failed bootlogs was below:
NBL for arm/dbmx1/ebook : Build 993 (09:35:39, 06/10/07 JST)
text = 0x10000000 - 0x1002a764
data = ROM(0x1002a764), RAM(0x8000000 - 0x8002134)
bss = 0x8002140 - 0x8003570
heap = 0x8003570 - 0x8203570
amd_nor_register_device(): NOR device 0 : AMD AM29LV160DB
nand_register_device(): NAND device 0 : SAMSUNG K9F2G08U0A
sdm table read, current block = -1
target_setup(): sdm device 0(nor0)
target_setup(): sdm device 1(sbl0)
!!! [8track.c] load_sdmimg():777: Wf load failed.
nbl_exec_linux(): sdm_querybootname(): normal_name = Linux
nbl_exec_linux(): sdm_querybootname(): recovery_name = Linux0
DIP SW2 = 0x57
target_get_hwcfg(): Disable Ethernet: ENABLE
target_get_hwcfg(): Start Diag : NO
target_get_hwcfg(): Disable Console : ENABLE
target_get_hwcfg(): Linux or Shell : LINUX
target_get_hwcfg(): Boot select : CONFIG
!!! [nblexec.c] nbl_read_config():141: cannot find nbl config partition 'nblconfig'.
!!! [nblexec.c] nbl_read_config():141: cannot find nbl config partition 'nblconf
ig'.
!!! [nblexec.c] nbl_read_config():141: cannot find nbl config partition 'nblconf
ig'.
!!! [nblexec.c] nbl_read_config():141: cannot find nbl config partition 'nblconf
ig'.
!!! [nblexec.c] nbl_read_config():141: cannot find nbl config partition 'nblconf
ig'.
!!! [nblexec.c] nbl_exec_linux():552: error: kernel select failed.
Anyone can help me save my 505.
JeffElkins 06-21-2008, 02:00 PM I hope this doesn't mean no openinkpot on the 505 wenjie1984 :(
Good luck finding a fix!
wenjie1984 06-26-2008, 06:27 AM i have found the boot config pins, and also have ported the mx1 original bootstrap code to sony prs-505. now it can download the bootloader into flash. next step is to port the u-boot to the 505 device.
JSWolf 06-26-2008, 09:31 AM Good luck!
JeffElkins 06-26-2008, 12:21 PM i have found the boot config pins, and also have ported the mx1 original bootstrap code to sony prs-505. now it can download the bootloader into flash. next step is to port the u-boot to the 505 device.
Best of luck, and please keep us posted. The best hope for the 505 is free and open firmware, not semi-closed like Sony. I'd love to run openinkpot & fbreader on my 505.
igorsk 06-26-2008, 01:24 PM i have found the boot config pins, and also have ported the mx1 original bootstrap code to sony prs-505. now it can download the bootloader into flash. next step is to port the u-boot to the 505 device.
Before you flash anything big into NAND, try to dump its contents. The waveform table (which is stored there) is tuned for each lot of screens, so it's best to keep the one intended for your unit.
admin 07-01-2008, 03:34 AM next step is to port the u-boot to the 505 device.
How successes? What board from u-boot/board/ you have taken for a basis? mx1ads?
wenjie1984 07-01-2008, 06:40 AM now the u-boot can run on the 505 with nand support which ported from mx1ads and mx1fs2 board .
admin 07-01-2008, 09:02 AM You have ready source codes u-boot ported for 505? You can give to me it? I have same problem.
wenjie1984 07-04-2008, 12:52 AM the code of bootstrap and uboot is put on the http://git.openinkpot.org/, you will need git tools to download ,just use git-clone . if you want get the .bin , i can sent
you (tell me email).
bootstrap-git http://git.openinkpot.org/?p=wenjie/bootstrap-505.git;a=summary
uboot-git http://git.openinkpot.org/?p=wenjie/u-boot-505.git;a=summary
but if you want to download the uboot into the 505 flash, you should solder some pins that make sure you can enter the bootstrap mode or you should write some auto stript (like what igorsk wrote)to flash the uboot into the 505 (have some risk )
jerryleejr 07-04-2008, 02:27 AM Ok maybe this is a really dumb question but What are you doing to "Brick" your PRS so I can avoid it.
JJ
krighton 07-04-2008, 09:28 AM i'm even too paranoid to run the font/clock hack....sounds like the person is doing some pretty fancy stuff with the 505....doubt you would duplicate it by accident.
admin 07-05-2008, 08:29 AM ...
I need to load uboot into SDRAM and re-write NAND
http://wiki.openmoko.org/wiki/NAND_bad_blocks#JTAG_.2F_OpenOCD_.2F_u-boot_RAM_based
It is necessary in u-boot-505/include/configs/mx1ads.h to add support NAND.
wenjie1984 07-06-2008, 11:54 AM in u-boot-505 , there is a config file ebook.h and board directionary ebook which support nand flash.
admin 07-07-2008, 03:17 PM Thanks you!
Tell me please, why the command
nand read 0x9100000 0x0 0x10000
returns ERROR, in fact it is visible, what reading NAND is successful?
//----
U-Boot 1.3.3 (Jul 7 2008 - 14:17:16)Sony PRS-505 OI version
RAM Configuration:
Bank #0: 08000000 64 MB
Flash: 2 MB
NAND: 256 MiB
Using default environment
In: serial
Out: serial
Err: serial
PRS-505> nand device 0
Device 0: NAND 256MiB 3,3V 8-bit... is now current device
PRS-505> nand read 0x9100000 0x2000 0x10000
NAND read: device 0 offset 0x2000, size 0x10000
65536 bytes read: OK
PRS-505> nand read 0x9100000 0x0 0x10000
NAND read: device 0 offset 0x0, size 0x10000
65536 bytes read: ERROR
PRS-505> md 0x9100000 0x1000
09100000: 53446973 0e65b693 00000010 00000002 siDS..e.........
09100010: 756e694c ffff0078 ffffffff ffffffff Linux...........
09100020: 756e694c ff003078 ffffffff ffffffff Linux0..........
09100030: 00000004 ffffffe0 00000004 ffff00ff ................
//------------------skiped-------------------
091001e0: ffffffff ffffffff ffffffff ffffffff ................
091001f0: ffffffff ffffffff ffffffff 4ab87091 .............p.J
09100200: 64616f4c 00007265 00000000 00000000 Loader..........
09100210: 00000000 00000000 00000004 00000000 ................
09100220: 00040000 53446973 00000020 00000000 ....siDS .......
09100230: 00000000 00000000 00000000 67f9b60a ...............g
09100240: 00000000 00000000 00000000 00000000 ................
//------------------skiped-------------------
09100400: 65736552 64657672 00000000 00000000 Reserved........
09100410: 0000001e 00000000 00000001 00000000 ................
09100420: 00010000 53446973 00000020 00000000 ....siDS .......
09100430: 00000000 00000000 00000000 ffffffff ................
//------------------skiped-------------------
wenjie1984 07-08-2008, 02:40 PM How did you flash the u-boot ,use bootstrap?
did you use nand write cmd ,it will return error every time?
i think what you see in the 0x09000000 is from nand flash offset 0x2000
admin 07-08-2008, 05:08 PM I did not flash uboot, I have loaded it in sdram through jtag.
I yet did not try a command "nand write". Only "nand read".
The problem is connected with calculation ECC. If the page is erased - reading O.K. If on it there are data - reading error.
In first four sectors (blocks) nand I see four copies of the partitions table. Two of them - are bad. I wish to try to restore it.
wenjie1984 07-09-2008, 11:07 AM I have check many times in my 505 using nand read cmd ,but there is no error .
Maybe your problem appears in JTAG mode. And could you put what have you
done about 505 device on the http://openinkpot.org/wiki/Prs505 , and you can
join the openinkpot to develope the 505.
admin 07-10-2008, 02:30 PM Maybe your problem appears in JTAG mode.
No... I changed ebook.h, probably, the reason in it.
My prs505 already works. I can make for you dumps nor, nand. You can write them in your 505.
wenjie1984 07-10-2008, 11:36 PM Thank you! You can send them to zwjsq@vip.sina.com ,or can attach them to
openinkpot http://openinkpot.org/wiki/Prs505. Now my nand flash is empity,
and Nor flash is only uboot. by the way , how did you brike your 505 ?
admin 07-11-2008, 06:00 AM Check your mail. 6 parts, all - 50MB, in "rar" archive.
After loading linux make a command
nblconfig -ksel normal
(I created dumps in recovery mode)
how did you brike your 505 ?
I such have bought it. That man make reflash Fsk, I think, that the battery has been low.
wenjie1984 07-12-2008, 12:42 AM I have got the dumps, thank you! But now my nand has nothing , it cannot be
able to boot into linux and my new kernel has not be developed completely. only one way to use is u-boot loadb cmd ,but the nand dumps is too larger . is there any way to restore the dumps? (otherwise until the new kernel support the usb ether or mms/sd card)
admin 07-13-2008, 03:20 PM It is possible to write only the first 0x15a0000 bytes nand. IMHO it enough that it was started linux. From linux write the rest.
|