public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Craig Day <cday@phytec.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] newbies to u-boot
Date: Fri, 31 Aug 2007 08:28:33 -0700	[thread overview]
Message-ID: <016601c7ebe3$a72e4740$ed03a8c0@CRAIG> (raw)
In-Reply-To: <086601c7ebbc$a6d340b0$9c02a8c0@socpassion>

Hi Bhagwat,

This is the basic U-Boot porting process. Start with a reference board if
you can, copy files, make adjustments, attempt to compile, and then resolve
errors.

Part of the DRAM setup involves defining bank sizes. You need to declare
PHYS_SDRAM_1 and PHYS_SDRAM_1_SIZE in your include/config/moschip.h header
file. PHYS_SDRAM_1 should be the address of your SDRAM, and
PHYS_SDRAM_1_SIZE should be the size.

You will most likely encounter many different errors as you port U-Boot to
your board. Examine the error, look at the source, determine what's wrong,
and look at other working boards/configurations to figure out what you need
to do when required. If all else fails, post an e-mail here!

cheers,
Craig

>HI all,
>
>I got the U-boot code and I am trying to compile it for my SOC.
>I am using ARM926EJS core.
>I have done follwing steps
>1. In makefile I have added below lines
>        moschip_config :        unconfig
>                    @./mkconfig $(@:_config=) arm arm926ejs moschip
>2. I have copied header file in include dir
>    $ cp include/configs/armadillo.h include/configs/moschip.h
>
>3. Then I have copied dir
>    $cp board/armadillo/ board/moschip/
>
>after doing
>$make moschip_config
>$make
>
>I am getting follwoing errs..
>armadillo.c: In function `dram_init':
>armadillo.c:58: error: `PHYS_SDRAM_1' undeclared (first use in this
>function)
>armadillo.c:58: error: (Each undeclared identifier is reported only once
>armadillo.c:58: error: for each function it appears in.)
>armadillo.c:59: error: `PHYS_SDRAM_1_SIZE' undeclared (first use in this
>function)
>make[1]: *** [armadillo.o] Error 1
>
>Can anyone tell me, If i am missing any steps for compilation.
>
>
>Regards,
>__Bhagwat
>

  reply	other threads:[~2007-08-31 15:28 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-30 10:56 [U-Boot-Users] newbies to u-boot Bhagwat
2007-08-30 11:10 ` Martin Krause
2007-08-30 11:12 ` W
2007-08-30 11:53 ` Zoelgert, Anja
2007-08-31 10:49 ` Bhagwat
2007-08-31 15:28   ` Craig Day [this message]
2007-09-03 10:17     ` Bhagwat
2007-09-03 23:42       ` Hebbar
2007-09-02  2:34   ` Hebbar

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='016601c7ebe3$a72e4740$ed03a8c0@CRAIG' \
    --to=cday@phytec.com \
    --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