public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tiju <tj_jac@yahoo.co.in>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] s3c2440 -- serial_init
Date: Mon, 31 Mar 2008 11:18:55 +0530 (IST)	[thread overview]
Message-ID: <222466.42974.qm@web94612.mail.in2.yahoo.com> (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



> 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




      5, 50, 500, 5000 - Store N number of mails in your inbox. Go to 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/aab20735/attachment.htm 

             reply	other threads:[~2008-03-31  5:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-31  5:48 Tiju [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-04-04 14:59 [U-Boot-Users] s3c2440 -- serial_init Tiju
2008-04-06 10:07 ` Harald Welte
2008-03-31  5:48 Tiju
2008-03-28 11:28 Tiju
2008-03-28 11:35 ` michael
2008-04-06 10:04 ` Harald Welte

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=222466.42974.qm@web94612.mail.in2.yahoo.com \
    --to=tj_jac@yahoo.co.in \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox