[U-Boot-Users] U-Boot on WR SBC8560 startup problem

Mark Pilant Mark.Pilant at mintera.com
Fri Apr 20 16:05:45 CEST 2007


Greetings.

I looked through the archives to see if my problem had been seen, and it
appears
it has not.

The problem I am having is the serial_init() is hanging waiting for the CPM
to finish
after having "sent" the init Tx & Rx command.  The very strange thing is when
the
code reads the CPM address (0xFF7919C0) it sees the value of 0x00810000 but
using VisionCLICK to probe the address, I get the value of 0x00800000;
indicating
the command had completed.

If I turn off the dcache (clearing bit 31 in L1CSR0), it does finish this
loop, but uboot
appears to have problems later in the initialization sequence.  This is not
entirely
unexpected, but I haven't investigated the later failures.

I am working with the 1.2.0 code base I built from the ISO images on
SourceForge.
I am building the software on a Fedora Core 6 system (all the latest updates)
using
the ELDK crosstools.  Oh yes, I have read the README.sbc8560 document.

The only code I have changed is in sbc8560.h to match the SBC8560.  Here are
the
actual differences:

$ diff -b ./include/configs/sbc8560.h ./include/configs/sbc8560.h.~1~
49c49
< #undef        CONFIG_TSEC_ENET                /* tsec ethernet support
*/
---
> #define CONFIG_TSEC_ENET              /* tsec ethernet support        */
51c51
< #define       CONFIG_ETHER_ON_FCC             /* cpm FCC ethernet support
*/
---
> #undef  CONFIG_ETHER_ON_FCC           /* cpm FCC ethernet support     */
177c177
< #define       CONFIG_CONS_ON_SCC                      /* define if console
on SCC */
---
> #undef  CONFIG_CONS_ON_SCC                    /* define if console on SCC
*/
182,185c182,185
< #undef        CFG_NS16550
< #undef        CFG_NS16550_SERIAL
< #undef        CFG_NS16550_REG_SIZE
< #undef        CFG_NS16550_CLK
---
> #define CFG_NS16550
> #define CFG_NS16550_SERIAL
> #define CFG_NS16550_REG_SIZE  1
> #define CFG_NS16550_CLK               1843200 /* get_bus_freq(0) */
191,192c191,192
< #undef        CFG_NS16550_COM1
< #undef        CFG_NS16550_COM2
---
> #define CFG_NS16550_COM1      ((CFG_BR5_PRELIM & 0xff000000)+0x00700000)
> #define CFG_NS16550_COM2      ((CFG_BR5_PRELIM & 0xff000000)+0x00800000)
315c315
< #define CONFIG_BOOTARGS "root=/dev/nfs rw nfsroot=10.10.12.202:/tftpboot
ip=10.10.12.100:10.10.12.202::255.255.255.0:sbc8560:eth0:
off console=ttyS0,9600"
---
> #define CONFIG_BOOTARGS "root=/dev/nfs rw nfsroot=192.168.0.251:/tftpboot
ip=192.168.0.105:192.168.0.251::255.255.255.0:sbc8560:et
h0:off console=ttyS0,9600"
393c393
< #  define CONFIG_ETHADDR      00:a0:1e:08:14:74
---
> #  define CONFIG_ETHADDR      00:01:af:07:9b:8a
395c395
< #  define CONFIG_ETH1ADDR     00:a0:1e:08:14:74
---
> #  define CONFIG_ETH1ADDR     00:01:af:07:9b:8b
397c397
< #  define CONFIG_ETH2ADDR     00:a0:1e:08:14:74
---
> #  define CONFIG_ETH2ADDR     00:01:af:07:9b:8c
400,402c400,402
< #define CONFIG_SERVERIP         10.10.12.202
< #define CONFIG_IPADDR           10.10.12.100
< #define CONFIG_GATEWAYIP        10.10.12.2
---
> #define CONFIG_SERVERIP               192.168.0.131
> #define CONFIG_IPADDR         192.168.0.105
> #define CONFIG_GATEWAYIP      0.0.0.0
406c406
< #define CONFIG_BOOTFILE         zImage
---
> #define CONFIG_BOOTFILE               pImage
$

The changes fall into three main areas:

    1)	Using the FCC Ethernet interface.
    2)	Using the SCC serial port rather than a 16550 UART.
    3)	Setting the various IP parameters.

Thanks in advance for any help and/or suggestions.

- Mark

This email message and any attachments are confidential and may contain information which is proprietary to Mintera Corporation. If you are not the intended recipient, please notify Mintera Corporation immediately -- by replying to this message or by sending an email to postmaster at mintera.com -- and destroy all copies of this message and any attachments. Thank you.





More information about the U-Boot mailing list