* [U-Boot] u-boot-v2
@ 2009-01-21 0:18 John Jeffers
2009-01-21 3:13 ` Nishanth Menon
0 siblings, 1 reply; 2+ messages in thread
From: John Jeffers @ 2009-01-21 0:18 UTC (permalink / raw)
To: u-boot
Hi
If I use for u-boot-v2
#ln -s arm cross_arch
#ln -s
/opt/arm-v5te-linux-gnueabi/gcc-4.1.2-glibc-2.5-binutils-2.17-kernel-2.6.18/arm-v5te-linux-gnueabi/bin
\ cross_compile
During make menuconfig the arm is not picked up as the architecture. I
appear to get sandbox.
Obviously I am not telling the menuconfig to use my architecture.
Perhap the /board is more appropriate.'
Regards John
For u-boot-v2 we are instructed:
U-Boot uses the Linux kernel's build system. It consists of two parts:
the makefile infrastructure (kbuild), plus a configuration system
(kconfig). So building U-Boot is very similar to building the Linux kernel.
For the examples below, we use the User Mode U-Boot implementation,
which is a port of U-Boot to the Linux userspace. This makes it possible
to test drive the code without having real hardware. So for this test
scenario, ARCH=sandbox is the valid architecture selection. This
currently only works on ia32 hosts and partly on x86-64.
Selection of the architecture and the cross compiler can be done in two
ways. You can either specify it using the environment variables ARCH and
CROSS_COMPILE, or you can create the soft links cross_arch and
cross_compile pointing to your architecture and compiler. For
ARCH=sandbox we do not need a cross compiler so it is sufficient to
specify the architecture:
# ln -s sandbox cross_arch
In order to configure the various aspects of U-Boot, start the U-Boot
configuration system:
# make menuconfig
^ permalink raw reply [flat|nested] 2+ messages in thread
* [U-Boot] u-boot-v2
2009-01-21 0:18 [U-Boot] u-boot-v2 John Jeffers
@ 2009-01-21 3:13 ` Nishanth Menon
0 siblings, 0 replies; 2+ messages in thread
From: Nishanth Menon @ 2009-01-21 3:13 UTC (permalink / raw)
To: u-boot
John Jeffers said the following on 01/20/2009 06:18 PM:
> #ln -s arm cross_arch
>
> #ln -s
> /opt/arm-v5te-linux-gnueabi/gcc-4.1.2-glibc-2.5-binutils-2.17-kernel-2.6.18/arm-v5te-linux-gnueabi/bin
> \ cross_compile
>
> During make menuconfig the arm is not picked up as the architecture. I
> appear to get sandbox.
>
> Obviously I am not telling the menuconfig to use my architecture.
> Perhap the /board is more appropriate.'
>
>
This is how i build for omap3 beagle platform:
alias mymake='make ARCH=arm CROSS_COMPILE=arm-none-eabi- V=1'
mymake omap3430_sdp3430_per_uart_defconfig
mymake
I could ofcourse do mymake menuconfig and go ahead.. (I use 2007q3
codesourcery compiler)
Regards,
Nishanth Menon
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-01-21 3:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-21 0:18 [U-Boot] u-boot-v2 John Jeffers
2009-01-21 3:13 ` Nishanth Menon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox