TQM823L flash recognition problem
Hi Everybody,
trying to use the u-boot V1.3.3 on a TQ Module:
TQM823L-AF Rev.311
which had u-boot v1.1.4 running without a problem, I now get this on two modules:
--------------------
U-Boot 1.3.3 (Jun 27 2008 - 14:45:35)
CPU: PPC823EZTnnB2 at 50 MHz: 16 kB I-Cache 8 kB D-Cache Board: TQM823LDB0A3-E50I.311 DRAM: 16 MB FLASH: ## Unknown FLASH on Bank 2 - Size = 0x00000000 = 0 MB 4 MB In: serial Out: serial Err: serial Net: SCC ETHERNET PCMCIA: No Card found
-------------------
The module has four AMD L160DB90VI onboard.
Compiled u-boot after "make TQM823L_config" without modifications.
- Anything I'm missing here?
- Was this answered before?
Thanks much for your help to point me in the right direction.
Tom
Signature · 4 lines
Linux hackers are funny people: They count the time in patchlevels -- Thomas Maenner E-Mail: mailto:tmaenner at aehr.com
Hi Thomas,
Quoted 25 lines · Thomas Maenner
Hi Everybody,
trying to use the u-boot V1.3.3 on a TQ Module:
TQM823L-AF Rev.311which had u-boot v1.1.4 running without a problem, I now get this on two modules:
--------------------
U-Boot 1.3.3 (Jun 27 2008 - 14:45:35)CPU: PPC823EZTnnB2 at 50 MHz: 16 kB I-Cache 8 kB D-Cache Board: TQM823LDB0A3-E50I.311 DRAM: 16 MB FLASH: ## Unknown FLASH on Bank 2 - Size = 0x00000000 = 0 MB 4 MB In: serial Out: serial Err: serial Net: SCC ETHERNET PCMCIA: No Card found-------------------
The module has four AMD L160DB90VI onboard.
Compiled u-boot after "makeTQM823L_config" without modifications.
Quoted 6 lines
- Anything I'm missing here?
- Was this answered before?Thanks much for your help to point me in the right direction.
Tom
Could you please change TQM823L.h:
-#define CFG_FLASH_BANKS_LIST { CFG_FLASH_BASE }
+#define CFG_FLASH_BANKS_LIST { CFG_FLASH_BASE, CFG_FLASH_BASE +0x400000 }
and try again?
There was a switch-over to use the CFI driver (see git history of file TQM823L.h). AFAIK the CFI driver needs a list with fix start addresses of each bank to start the CFI query on.
Best Regards,
Jens
Thanks much Jens!!!
That did the trick - works fine so far!
Cheers
Tom
Quoted 49 lines · On Monday 30 June 2008 04:03:30 Jens Gehrlein wrote:
Hi Thomas,
Quoted 25 lines · Thomas Maenner
Hi Everybody,
trying to use the u-boot V1.3.3 on a TQ Module:
TQM823L-AF Rev.311which had u-boot v1.1.4 running without a problem, I now get this on two modules:
--------------------
U-Boot 1.3.3 (Jun 27 2008 - 14:45:35)CPU: PPC823EZTnnB2 at 50 MHz: 16 kB I-Cache 8 kB D-Cache Board: TQM823LDB0A3-E50I.311 DRAM: 16 MB FLASH: ## Unknown FLASH on Bank 2 - Size = 0x00000000 = 0 MB 4 MB In: serial Out: serial Err: serial Net: SCC ETHERNET PCMCIA: No Card found-------------------
The module has four AMD L160DB90VI onboard.
Compiled u-boot after "makeTQM823L_config" without modifications.Quoted 6 lines
- Anything I'm missing here?
- Was this answered before?Thanks much for your help to point me in the right direction.
Tom
Could you please change
TQM823L.h:(quoted diff) +1
-1-#define CFG_FLASH_BANKS_LIST { CFG_FLASH_BASE } +#define CFG_FLASH_BANKS_LIST { CFG_FLASH_BASE, CFG_FLASH_BASE +
0x400000}and try again?
There was a switch-over to use the CFI driver (see git history of file
TQM823L.h). AFAIK the CFI driver needs a list with fix start addresses of each bank to start the CFI query on.Best Regards,
Jens
Signature · 4 lines
Linux hackers are funny people: They count the time in patchlevels -- Thomas Maenner E-Mail: mailto:tmaenner at aehr.com
Quoted 6 lines · In message <[email protected]> Jens Gehrlein wrote:
Could you please change
TQM823L.h:(quoted diff) +1
-1-#define CFG_FLASH_BANKS_LIST { CFG_FLASH_BASE } +#define CFG_FLASH_BANKS_LIST { CFG_FLASH_BASE, CFG_FLASH_BASE +
0x400000}
Note that a proper patch (and without line wrapping) would have been much more useful.
Quoted 3 lines
There was a switch-over to use the CFI driver (see git history of file
TQM823L.h). AFAIK the CFI driver needs a list with fix start addresses of each bank to start the CFI query on.
Thanks for pointing this out.
The big disadvantage of above code is that it requires a static mapping of the second flash bank, i. e. it works only correctly for fixed flash sizes. This may be not a big problem for the boards in question here, but we use autoconfiguration everywhere else so this doesn't fit in style.
The following patch tries to fix this in a more general way, but it requires slight modification of the CFI driver to support this.