public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Matteo Facchinetti <matteo.facchinetti@sirius-es.it>
To: u-boot@lists.denx.de
Subject: [U-Boot] mkconfig "arch" link generation
Date: Wed, 14 Jul 2010 15:19:34 +0200	[thread overview]
Message-ID: <4C3DB966.30003@sirius-es.it> (raw)
In-Reply-To: <4C3D8D09.1050106@denx.de>

Stefano Babic wrote:
> Matteo Facchinetti wrote:
>   
>> Hi,
>>
>>     
>
> Hi Matteo,
>
>   
Hi Stefano,
>> I'm updating my uboot to mainline and I have a question about a link 
>> generate from mkconfig (with mpc5121_config).
>> Follwing link in "include/asm", I found a link named "arch" genarated by 
>> mkconfig.
>> This is broken so point to "arch-mpc512x" instead of 
>> "arch/powerpc/cpu/mpc512x".
>>     
>
> Yes, the link is broken. However, all boards in the mainline using the
> MPC512x are compiled clean. This is because asm-offsets.h is included
> only by arch/powerpc/cpu/mpc512x/start.S with "#include "asm-offsets.h",
> and the compiler search for the file in the same directory of start.S
> and can find it.
> The link is not required to compile the 512x boards supported currently
> by u-boot, but it must be set for the ARM architecture. Under the
> kernel, asm-offsets.h is auto-generated (I know, this is the best solution).
>
> However, why do you need this file ? It should be required only by low
> level initialization in assembly, as it is done by start.S. After that,
> it is required in u-boot to access to registers/peripherals via C
> structures and not using offsets.
>   
Yes, you're rigth,
but I'm tring to write nand_spl driver for add nand boot support for my 
TWR-MPC5125 evaluation board.
In first step I take what I need from LTIB (freescale) and  then I 
adjust the code for uboot mainline.
The part takes from LTIB of 2k first stage nandboot code uses directly 
SRAMBAR and SWCRR defines.

Now, I suppose, correct develop is to use the common c code in nand_spl 
directory and eventually customizing for my board unless use 
"include/asm/arch/..." for powerpc arch.
Is it true?

>> Result is "#include <asm/arch/asm-offsets.h>" or similar are be broken.
>>
>> How is the correct way to modify mkconfig?
>>     
>
> Probably not setting the link for powerpc, because it is not required.
>
> Regards,
> Stefano Babic
>
>   

  reply	other threads:[~2010-07-14 13:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-14  9:31 [U-Boot] mkconfig "arch" link generation Matteo Facchinetti
2010-07-14 10:10 ` Stefano Babic
2010-07-14 13:19   ` Matteo Facchinetti [this message]
2010-07-15  7:59     ` Stefano Babic
2010-07-14 19:01 ` Wolfgang Denk
2010-07-15  7:16   ` Matteo Facchinetti
2010-07-15  9:11     ` Wolfgang Denk

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=4C3DB966.30003@sirius-es.it \
    --to=matteo.facchinetti@sirius-es.it \
    --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