From: seedshope <bocui107@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 3/3] SMDK6400: Fix build error for smdk6400 nand_spl support
Date: Sun, 09 Jan 2011 20:27:28 +0800 [thread overview]
Message-ID: <4D29A9B0.500@gmail.com> (raw)
In-Reply-To: <AANLkTikyeE-YeO5hf=u4_g=sK0R1KpQUuAAdmnOLF6za@mail.gmail.com>
On 01/09/2011 03:33 PM, Minkyu Kang wrote:
> Hi
>
> On 9 January 2011 10:14, seedshope<bocui107@gmail.com> wrote:
>> On 01/08/2011 11:15 PM, Minkyu Kang wrote:
>>> Dear seedshope,
>>>
>>> On 8 January 2011 00:53, seedshope<bocui107@gmail.com> wrote:
>>>> From: seedshope<bocui107@gmail.com>
>>>>
>>>> Modify u-boot.lds from nand_spl/board/samsung/smdk6400.
>>>>
>>>> start.o: In function `clbss_l':
>>>> nand_spl/board/samsung/smdk6400/start.S:357: undefined reference to
>>>> `coloured_LED_init'
>>>> nand_spl/board/samsung/smdk6400/start.S:358: undefined reference to
>>>> `red_LED_on'
>>>> start.o: In function `_rel_dyn_start_ofs':
>>>> nand_spl/board/samsung/smdk6400/start.S:366: undefined reference to
>>>> `__rel_dyn_start'
>>>> start.o: In function `_rel_dyn_end_ofs':
>>>> nand_spl/board/samsung/smdk6400/start.S:366: undefined reference to
>>>> `__rel_dyn_end'
>>>> start.o: In function `_dynsym_start_ofs':
>>>> nand_spl/board/samsung/smdk6400/start.S:366: undefined reference to
>>>> `__dynsym_start'
>>>>
>>>> Signed-off-by: seedshope<bocui107@googlemail.com>
>>>>
>>>> diff --git a/arch/arm/cpu/arm1176/start.S b/arch/arm/cpu/arm1176/start.S
>>>> index 237dcfe..bde0357 100644
>>>> --- a/arch/arm/cpu/arm1176/start.S
>>>> +++ b/arch/arm/cpu/arm1176/start.S
>>>> @@ -353,10 +353,11 @@ clbss_l:str r2, [r0] /* clear
>>>> loop... */
>>>> add r0, r0, #4
>>>> cmp r0, r1
>>>> bne clbss_l
>>>> -
>>>> +#ifndef CONFIG_NAND_SPL
>>> CONFIG_PRELOADER is better
>> No, The nand_spl support can't find the define of coloured_LED_init and
>> red_LED_on.
>> It is base on the build error:
>>
>> make smdk6400_config
>> make
>> the error information as following:
>>
>> nand_spl/board/samsung/smdk6400/start.S:357: undefined reference to
>> `coloured_LED_init'
>> nand_spl/board/samsung/smdk6400/start.S:358: undefined reference to
>> `red_LED_on'
>>
> Please add follow define at Makefile.
> AFLAGS += -DCONFIG_PRELOADER -DCONFIG_NAND_SPL
> CFLAGS += -DCONFIG_PRELOADER -DCONFIG_NAND_SPL
ok, It may be a good method.
But I worried other people will be difficult to see the process of the
code running.
So, if add #ifdef CONFIG_NAND_SPL, It is very clear. What do you think
about it?
Thanks,
seedshope
> Thanks
> Minkyu Kang
next prev parent reply other threads:[~2011-01-09 12:27 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-07 15:53 [U-Boot] [PATCH 1/3] SMDK6400: Fix CONFIG_SYS_INIT_SP_ADDR undeclared seedshope
2011-01-07 15:53 ` [U-Boot] [PATCH 2/3] SMDK6400:use common arm1176 u-boot.lds of cpu layer seedshope
2011-01-08 6:04 ` Albert ARIBAUD
2011-01-08 14:54 ` seedshope
2011-01-07 15:53 ` [U-Boot] [PATCH 3/3] SMDK6400: Fix build error for smdk6400 nand_spl support seedshope
2011-01-08 6:14 ` Albert ARIBAUD
2011-01-08 14:57 ` seedshope
2011-01-08 15:15 ` Minkyu Kang
2011-01-09 1:14 ` seedshope
2011-01-09 7:33 ` Minkyu Kang
2011-01-09 12:27 ` seedshope [this message]
2011-01-09 14:12 ` Minkyu Kang
2011-01-09 14:52 ` seedshope
2011-01-08 5:55 ` [U-Boot] [PATCH 1/3] SMDK6400: Fix CONFIG_SYS_INIT_SP_ADDR undeclared Albert ARIBAUD
2011-01-08 15:10 ` seedshope
2011-01-08 15:17 ` Albert ARIBAUD
2011-01-09 1:15 ` seedshope
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=4D29A9B0.500@gmail.com \
--to=bocui107@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.