[U-Boot] u-boot for imx27 Board
Lejin K Joy
lejin at spacomp.com
Thu Aug 21 18:13:53 CEST 2008
Dear Sascha,
Thanks for your wonderful support and guidance. Unfortunately I am stuck up
towards the end of building.
Could you kindly suggest me the arm cross compiler's link /name using which
you have compiled the u-boot. I am using obsolete-gcc-3.3.2.tar.bz2
compiler.
First two steps was successful but got stuck up in the final make. Please
find the errors attached. Could you please share your inputs in this
regards.
(Attached below Outputs)
Thanking you,
Lejin
---------------------
1)
[root at localhost u-boot-v2]# ARCH=arm
CROSS_COMPILE=/Lijin/usr/local/arm/3.3.2/bin/arm-linux- make
mx27ads_defconfig
*
* Linux Kernel Configuration
*
Select your board
1. mx1ads (MACH_MX1ADS)
2. Synertronixx scb9328 (MACH_SCB9328)
3. phyCORE-i.MX27 (MACH_PCM038)
> 4. Freescale i.MX27ADS (MACH_IMX27ADS)
5. eco920 (MACH_ECO920)
6. Hilscher Netx nxdb500 (MACH_NXDB500)
7. phyCORE-i.MX31 (MACH_PCM037)
8. Texas Instruments' OMAP based platforms (MACH_OMAP)
9. Atmel AT91SAM9260-EK (MACH_AT91SAM9260_EK)
10. Ronetix PM9263 (MACH_PM9263)
choice[1-10]: 4
clko command (IMX_CLKO) [Y/n/?] y
*
* Arm specific settings
*
Send commandline to kernel (CMDLINE_TAG) [Y/n/?] y
send memory definition to kernel (SETUP_MEMORY_TAGS) [Y/n/?] y
send initrd params to kernel (INITRD_TAG) [N/y/?] n
*
* General Settings
*
*
* memory layout
*
TEXT_BASE (TEXT_BASE) [0xa7f00000] 0xa7f00000
select memory layout
> 1. use default memory layout (MEMORY_LAYOUT_DEFAULT)
2. manually assign a memory layout (MEMORY_LAYOUT_FIXED)
choice[1-2]: 1
Stack size (STACK_SIZE) [0x8000] 0x8000
malloc area size (MALLOC_SIZE) [0x400000] 0x400000
Prompt for broken or incomplete code (BROKEN) [N/y] n
Prompt for experimental code (EXPERIMENTAL) [N/y] n
run machine low-level init (MACH_DO_LOWLEVEL_INIT) [Y/n/?] y
U-Boot command prompt (PROMPT) [uboot:] uboot:
Default baudrate (BAUDRATE) [115200] 115200
Enable long help texts (LONGHELP) [Y/n] y
Buffer size for input from the Console (CBSIZE) [1024] 1024
max. Number of arguments accepted for monitor commands (MAXARGS) [16] 16
Select your shell
> 1. hush parser (SHELL_HUSH)
2. Simple parser (SHELL_SIMPLE)
choice[1-2]: 1
hush globbing support (GLOB) [N/y/?] n
hush PS2 (PROMPT_HUSH_PS2) [> ] >
Enable command line editing (CMDLINE_EDITING) [Y/n] y
Enable auto completion (AUTO_COMPLETE) [Y/n] y
Generate the crc32 table dynamically (DYNAMIC_CRC_TABLE) [Y/n/?] y
print error values as text (ERRNO_MESSAGES) [Y/n] y
print timestamp information from images (TIMESTAMP) [Y/n/?] y
Enable full console support (CONSOLE_FULL) [Y/n/?] y
activate first console on startup (CONSOLE_ACTIVATE_FIRST) [Y/n/?] y
Open Firmware flat device tree support (OF_FLAT_TREE) [N/y] n
Enable Partitions (PARTITION) [Y/n] y
Compile in default environment (DEFAULT_ENVIRONMENT) [Y/n/?] y
Default environment path (DEFAULT_ENVIRONMENT_PATH) [board/imx27ads/env]
board/imx27ads/env
*
* Debugging
*
enable debug symbols (DEBUG_INFO) [N/y/?] n
verbose flash handling (ENABLE_FLASH_NOISE) [N/y/?] n
verbose partition handling (ENABLE_PARTITION_NOISE) [N/y/?] n
verbose device handling (ENABLE_DEVICE_NOISE) [N/y/?] n
*
* Commands
*
*
* scripting
*
edit (CMD_EDIT) [Y/n] y
sleep (CMD_SLEEP) [Y/n] y
saveenv (CMD_SAVEENV) [Y/n] y
loadenv (CMD_LOADENV) [Y/n] y
export (CMD_EXPORT) [Y/n] y
printenv (CMD_PRINTENV) [Y/n] y
readline (CMD_READLINE) [Y/n] y
true (CMD_TRUE) [Y/n] y
false (CMD_FALSE) [Y/n] y
*
* file commands
*
ls (CMD_LS) [Y/n] y
rm (CMD_RM) [Y/n] y
cat (CMD_CAT) [Y/n] y
mkdir (CMD_MKDIR) [Y/n] y
rmdir (CMD_RMDIR) [Y/n] y
cp (CMD_CP) [Y/n] y
pwd (CMD_PWD) [Y/n] y
cd (CMD_CD) [Y/n] y
mount (CMD_MOUNT) [Y/n] y
umount (CMD_UMOUNT) [Y/n] y
*
* console
*
clear (CMD_CLEAR) [Y/n] y
echo (CMD_ECHO) [Y/n] y
*
* memory
*
loadb (CMD_LOADB) [N/y] n
meminfo (CMD_MEMINFO) [Y/n] y
md and mw (CMD_MEMORY) [Y/n] y
crc (CMD_CRC) [Y/n] y
mtest (CMD_MTEST) [Y/n] y
alternative mtest implementation (CMD_MTEST_ALTERNATIVE) [Y/n] y
*
* flash
*
protect/erase (CMD_FLASH) [Y/n] y
nand (CMD_NAND) [N/y] n
*
* booting
*
bootm (CMD_BOOTM) [Y/n] y
bootm with zlib support (CMD_BOOTM_ZLIB) [N/y] n
bootm with bzlib support (CMD_BOOTM_BZLIB) [N/y] n
show image information (CMD_BOOTM_SHOW_TYPE) [Y/n] y
reset (CMD_RESET) [Y/n] y
go (CMD_GO) [Y/n] y
timeout (CMD_TIMEOUT) [Y/n] y
addpart/delpart (CMD_PARTITION) [Y/n] y
test (CMD_TEST) [Y/n/?] y
version (CMD_VERSION) [Y/n] y
help (CMD_HELP) [Y/n] y
devinfo (CMD_DEVINFO) [Y/n] y
*
* Networking Support
*
Networking Support (NET) [Y/n] y
bootp support (NET_BOOTP) [Y/n] y
dhcp support (NET_DHCP) [Y/n] y
rarp protocol support (NET_RARP) [N/y] n
sntp support (NET_SNTP) [N/y] n
nfs support (NET_NFS) [N/y] n
ping support (NET_PING) [Y/n] y
tftp support (NET_TFTP) [Y/n] y
*
* Drivers
*
*
* serial drivers
*
i.MX serial driver (DRIVER_SERIAL_IMX) [Y/n] y
NS16550 serial driver (DRIVER_SERIAL_NS16550) [N/y/?] n
*
* Network drivers
*
smc911x ethernet driver (DRIVER_NET_SMC911X) [N/y/?] n
i.MX27 Ethernet driver (DRIVER_NET_IMX27) [Y/n] y
*
* SPI drivers
*
Enable SPI driver support (SPI) [Y/n] y
i.MX SPI Master driver (DRIVER_SPI_IMX) [Y/n] y
MC13783 a.k.a. PMIC driver (DRIVER_SPI_MC13783) [Y/n] y
*
* flash drivers
*
cfi flash driver (DRIVER_CFI) [Y/n/?] y
new cfi flash driver (DRIVER_CFI_NEW) [Y/n/?] y
Support Intel flash chips (DRIVER_CFI_INTEL) [N/y] n
support AMD flash chips (DRIVER_CFI_AMD) [Y/n] y
Support 8-bit buswidth (DRIVER_CFI_BANK_WIDTH_1) [Y/n/?] y
Support 16-bit buswidth (DRIVER_CFI_BANK_WIDTH_2) [Y/n/?] y
Support 32-bit buswidth (DRIVER_CFI_BANK_WIDTH_4) [Y/n/?] y
Support 64-bit buswidth (DRIVER_CFI_BANK_WIDTH_8) [N/y/?] n
use cfi driver with buffer write (CFI_BUFFER_WRITE) [Y/n] y
*
* NAND support
*
NAND support (NAND) [N/y] n
*
* Filesystem support
*
cramfs support (FS_CRAMFS) [N/y] n
ramfs support (FS_RAMFS) [Y/n] y
devfs support (FS_DEVFS) [Y/n] y
#
# configuration written to .config
#
--------------------------------------
2)
[root at localhost u-boot-v2]# ARCH=arm
CROSS_COMPILE=/Lijin/usr/local/arm/3.3.2/bin/arm-linux- make menuconfig
scripts/kconfig/mconf arch/arm/Kconfig
*** End of U-Boot configuration.
*** Execute 'make' to build U-Boot or try 'make help'.
------------------------------
3)
[root at localhost u-boot-v2]# ARCH=arm
CROSS_COMPILE=/Lijin/usr/local/arm/3.3.2/bin/arm-linux- make
scripts/kconfig/conf -s arch/arm/Kconfig
SYMLINK include/asm-arm/arch -> include/asm-arm/arch-imx
SYMLINK include/asm-arm/proc -> include/asm-arm/proc-armv
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/linux/utsrelease.h
UPD include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
SYMLINK include/config.h -> board/imx27ads/config.h
CC scripts/mod/empty.o
cc1: error: invalid option `abi=apcs-gnu'
make[2]: *** [scripts/mod/empty.o] Error 1
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
---------------------------------------------
-----Original Message-----
From: Sascha Hauer [mailto:s.hauer at pengutronix.de]
Sent: Thursday, August 21, 2008 8:49 PM
To: Lejin K Joy
Cc: u-boot at lists.denx.de
Subject: Re: [U-Boot] u-boot for imx27 Board
On Thu, Aug 21, 2008 at 06:54:53PM +0530, Lejin K Joy wrote:
>
> Thanks a lot Sascha,
>
> I was able to downlaod it and I was compiling it. If you have worked on
the
> same platform kindly give your valuable inputs.
>
> I am compiling the U-boot for imx27ads board.
I just updated mx27ads support and added a defconfig file, so please do
a 'git pull'.
>
> I have set the env variables using the following commands :
>
> #ln -s arm cross_arch [I also tried setting it to machi-imx.
This
> also is not helping]
> #ln -s arm cross_compile
Sorry, documentation is a bit outdated here, the links do not work any
more. You have to specify architecture and cross compiler on the command
line:
ARCH=arm CROSS_COMPILE=/whereever/it/is/arm-..-gcc make mx27ads_defconfig
ARCH=arm CROSS_COMPILE=/whereever/it/is/arm-..-gcc make menuconfig
ARCH=arm CROSS_COMPILE=/whereever/it/is/arm-..-gcc make
This should give you a uboot.bin which you can try on your board. If you
already have a bootloader (redboot?) on your board which you want to
keep, it's best to start U-Boot from RAM first. Load it somewhere to RAM
and jump there (don't know how to do this with redboot though).
Regards,
Sascha
--
Pengutronix - Linux Solutions for Science and Industry
Handelsregister: Amtsgericht Hildesheim, HRA 2686
Hannoversche Str. 2, 31134 Hildesheim, Germany
Phone: +49-5121-206917-0 | Fax: +49-5121-206917-9
More information about the U-Boot
mailing list