Skip to contentSkip to conversation

s3c2440 -- serial_init

U-Boot-Users Tiju 1 participant 1 message Mar 31, 2008

lore
Share & tools
lore

Tiju

author
#0 lore raw

Hi Michael,

I have verified all the RAM initializations in board/smdk2440/lowlevel_init.S and it seems to be fine. The other changes that I have done are

1. In the board/smdk2440/config.mk file I changed TEXT_BASE = 0x33F80000 to
TEXT_BASE = 0x00000000 because I am booting from the NOR flash. The NOR flash address range is 0x00000000 - 0x08000000. The RAM address range is 0x30000000 - 0x38000000.

If I compile it with TEXT_BASE = 0x33F80000 it does not run at all!

2. When I changed this I found that it has a clash with the stack building in cpu/arm920t/start.S. Therefore I changed it to
.........
/* Set up the stack */
stack_setup:
/* ldr r0, _TEXT_BASE */ /* upper 128 KiB: relocated uboot */

    mov r0, #0x33           /* make stack at 33F8*/
    mov r0, r0, lsl #24
    mov r1, #0xF8
    mov r1, r1, lsl #16
    orr r0, r0, r1

.......

Would these be a problem for the memory initializations?

Thanks in advance
Tiju

Quoted 12 lines

Hi all

I am trying to port u-boot to a s3c2440 samsung processor.

I applied the smdk2440 boards patch (almost similar architecture) and trying to modify it for our board's requirement. But during the serial_init it goes to the _serial_putc and then after certain loops it goes to the hang function and hangs there.

What could be the problem? Or am I doing some wrong initializations?

Are you sure that the memory inizializzation is correct?

Regards Michael

Unlimited freedom, unlimited storage. Get it now, on http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20080331/3df9bfd0/attachment.htm