* [U-Boot-Users] ppc_4xx-ld: u-boot: Not enough room for program headers (allocated 2, need 3)
@ 2006-01-03 4:01 腾飞龙
2006-01-03 8:21 ` Wolfgang Denk
0 siblings, 1 reply; 3+ messages in thread
From: 腾飞龙 @ 2006-01-03 4:01 UTC (permalink / raw)
To: u-boot
Hi ,
Thank you so much for answering my questions i mentioned several days ago.
I'm porting u-boot-1.1.4 to Ebedded planet EP405(with ppc 405GPr
processor) and it bases on a similar board CPCI4052 as you suggested.
i did as follow
#cd ../u-boot-1.1.3/board/esd
#mkdir ep405
#cd cpci405
#cp * ../ep405
#cd ../ep405
# mv cpci405.c ep405.c
#cd ../../../include/configs
#cp CPCI4052.h ep405.h
then add text content as follow to u-boot-1.1.3/Makefile
ep_config: unconfig
@./mkconfig $(@:_config=) ppc ppc4xx cpci405 esd
@echo "BOARD_REVISION = $(@:_config=)" >>include/config.mk
#cd ../u-boot-1.1.3
#make distclean
#make ep405_config
#make all
then the error appears:
ppc_4xx-ld: u-boot: Not enough room for program headers (allocated 2, need 3)
ppc_4xx-ld: final link failed: Bad value
would you please tell me why and how to handle it ?
Thank u and best wishes !
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot-Users] ppc_4xx-ld: u-boot: Not enough room for program headers (allocated 2, need 3)
2006-01-03 4:01 [U-Boot-Users] ppc_4xx-ld: u-boot: Not enough room for program headers (allocated 2, need 3) 腾飞龙
@ 2006-01-03 8:21 ` Wolfgang Denk
2006-01-03 9:52 ` [U-Boot-Users] 回复: " 腾飞龙
0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Denk @ 2006-01-03 8:21 UTC (permalink / raw)
To: u-boot
In message <c002eb610601022001u438ce46as@mail.gmail.com> you wrote:
>
> Thank you so much for answering my questions i mentioned several days =
> ago.
> I'm porting u-boot-1.1.4 to Ebedded planet EP405(with ppc 405GPr
> processor) and it bases on a similar board CPCI4052 as you suggested.
Let's keep in mind that similar does not mean the same.
> #cd ../u-boot-1.1.3/board/esd
> #mkdir ep405
This is wrong. Don't do this. "board/esd" is for boards manufactured
by esd electronics only, while the EP405 is by Embedded Planet. So
far we don't have a vendor directory for EP, which means you have to
place your code in board/
> then add text content as follow to u-boot-1.1.3/Makefile
> ep_config: unconfig
> @./mkconfig $(@:_config=) ppc ppc4xx cpci405 esd
Wrong again, as you must provide your own board config file instead of using the cpci405 one.
> would you please tell me why and how to handle it ?
Clean up above problems first, please.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Things that try to look like things often do look more like things
than things. Well-known fact. - Terry Pratchett, _Wyrd Sisters_
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot-Users] 回复: ppc_4xx-ld: u-boot: Not enough room for program headers (allocated 2, need 3)
2006-01-03 8:21 ` Wolfgang Denk
@ 2006-01-03 9:52 ` 腾飞龙
0 siblings, 0 replies; 3+ messages in thread
From: 腾飞龙 @ 2006-01-03 9:52 UTC (permalink / raw)
To: u-boot
Thank u!
I just want to make a test before i modify content of files such as ep405.c .
and i changed the directory as you said to board/ and modified the
Makefile correctly.
then ,
#make clean
#make ep405_config
#make all
the error followed is :
make[1]: Entering directory `/tmp/u-boot-1.1.4/board/ep405'
make[1]: *** No rule to make target `../common/misc.c', needed by
`.depend'. Stop.
so now, where will i check the rule and do some amendments and how to do?
I also confused by another problem: There has been a PlanetCore Boot
Loader resides in flash memoery(in EP405),and there is no JTAG on the
board. so if i erase the existed bootloader which is convinient for
writing flash, it will be difficult for me to write my u-boot image to
flash.
so can i keep the existed bootloader and as it is now and use it to
write u-boot in another region of the flash ? Then after booting from
PlanetCore Boot Loader, i will be able to run u-boot and check if it
has been correctly modified.
if the answer is yes, what should i do during the procedure of
modifying u-boot?
2006/1/3, Wolfgang Denk <wd@denx.de>:
> In message <c002eb610601022001u438ce46as@mail.gmail.com> you wrote:
> >
> > Thank you so much for answering my questions i mentioned several days
> =
> > ago.
> > I'm porting u-boot-1.1.4 to Ebedded planet EP405(with ppc 405GPr
> > processor) and it bases on a similar board CPCI4052 as you suggested.
>
> Let's keep in mind that similar does not mean the same.
>
> > #cd ../u-boot-1.1.3/board/esd
> > #mkdir ep405
>
> This is wrong. Don't do this. "board/esd" is for boards manufactured
> by esd electronics only, while the EP405 is by Embedded Planet. So
> far we don't have a vendor directory for EP, which means you have to
> place your code in board/
>
> > then add text content as follow to u-boot-1.1.3/Makefile
> > ep_config: unconfig
> > @./mkconfig $(@:_config=) ppc ppc4xx cpci405 esd
>
> Wrong again, as you must provide your own board config file instead of using
> the cpci405 one.
>
> > would you please tell me why and how to handle it ?
>
> Clean up above problems first, please.
>
> Best regards,
>
> Wolfgang Denk
>
> --
> Software Engineering: Embedded and Realtime Systems, Embedded Linux
> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
> Things that try to look like things often do look more like things
> than things. Well-known fact. - Terry Pratchett, _Wyrd Sisters_
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-01-03 9:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-03 4:01 [U-Boot-Users] ppc_4xx-ld: u-boot: Not enough room for program headers (allocated 2, need 3) 腾飞龙
2006-01-03 8:21 ` Wolfgang Denk
2006-01-03 9:52 ` [U-Boot-Users] 回复: " 腾飞龙
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox