This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#9096 - Display NAND chip id in TCC77x bootloader
Attached to Project:
Rockbox
Opened by Rob Purchase (shotofadds) - Monday, 16 June 2008, 22:27 GMT+2
Last edited by Rob Purchase (shotofadds) - Friday, 18 July 2008, 15:47 GMT+2
Opened by Rob Purchase (shotofadds) - Monday, 16 June 2008, 22:27 GMT+2
Last edited by Rob Purchase (shotofadds) - Friday, 18 July 2008, 15:47 GMT+2
|
DetailsThe attached patch is a rudimentary attempt to read a NAND chip id from a TCC77x device during bootloader initialisation, for initial testing purposes (I don't currently have the correct hardware to try this myself).
It should be possible to test this on M200 (hardware rev. 1.x and 2.x(?), not 3.x or 4.x), also Logik DAX and the ATMT MP170. |
This task depends upon
Closed by Rob Purchase (shotofadds)
Friday, 18 July 2008, 15:47 GMT+2
Reason for closing: Out of Date
Additional comments about closing: Superceded by ata-nand-telechips.c in current SVN.
Friday, 18 July 2008, 15:47 GMT+2
Reason for closing: Out of Date
Additional comments about closing: Superceded by ata-nand-telechips.c in current SVN.
Marc Guay mentioned on IRC that running the nand_read_id() function seems to be causing the problem.
I'm starting to go through the other nand functions as well.
0xEC 0xD3 0x51 0x95 0x58
0xEC 0xD3 0x51 0x95 0x58
Also, as noted by gevaerts, the printf statement is too wide for the screen. It needs to be split onto 2 lines.
+ /* From the Sansa C100 firmware */
+ CSCFG2 = 0x318a8010;
+
+ GPIOC_DIR |= 0x2000000; /* output mode */
+ GPIOC_FUNC &= ~0x2000000; /* normal IO port */
+ GPIOC_FUNC |= 0x1;
For the record, my M240 also returns 0xEC 0xD3 0x51 0x95 0x58.
EDIT: New simpler patch attached.
I could not find a v1.0 version of the firmware, so I've been using the v2.0 firmware for disassembly. It seems as though it can use the NFC controller (0x90000000) or an external controller (?) through the 0x60000000 registers. And it doesn't appear to be hard coded as to which controller to use. When I get time, I will try to make a simple patch to read the id through the other interface.