
Hi,
2008/8/20 thaoth thaoth@cybersoft-vn.com:
Hi Nobuhiro Iwamatsu,
- Clock frequency of board.
#define CONFIG_SYS_CLK_FREQ 33333333 #define TMU_CLK_DIVIDER 4 /* 4 (default), 16, 64, 256 or 1024 */ #define CFG_HZ (CONFIG_SYS_CLK_FREQ / TMU_CLK_DIVIDER)
I don't understand how to set CONFIG_SYS_CLK_FREQ value. From T-Engine support, they said clock frequency of board is 144MHz.
Please set outside clock to CONFIG_SYS_CLK_FREQ.
- Cross compiler tool chain : GCC vs T-Engine toolchain
There are two tool chains
http://www.superh-linux.org/archive/bsp/sh7721_se/toolchain_sh3_gcc4.2.tar.g... support elf32-sh-linux target.
- Tool chain from T-Engine forum support elf32-sh-tkernel
Using both cross compilers, we could turn on LED on debug board by setting correct value LED_A and LED_B value.
- ICE or JTAG debugger and LED debugging.
I don't have these debug tools, and so hard for debugging. T-Engine/SH7727 DevKit has debug board with 8 LEDs. I could turn on/off these LEDs by setting correct value to 0xA1600000 memory. But C function turn on/off LED cannot work. For example
int cpu_init(void) { // Turn off LED 1 to notify cpu_init is called. outw(0x00 & 0xFF, 0xa1600000); return 0; }
I don't know why it isn't called?
I think that cpu_init is not carried out. I think that u-boot stopped on lowlevel_init function.
Would you please give me your ideas? Thank you a lot.
I will get T-Engine board ...... Please wait.
Best regards, Nobuhiro