• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: Compiling u-boot  (Read 5651 times)
hammerinhank
Newbie
*

Karma: 0
Posts: 24


View Profile
« on: May 20, 2009, 10:11:11 AM »

Would one or all of the Marvel engineers here please follow the instructions posted in http://plugcomputer.org/plugforum/index.php?topic=183.0  and download the sources from here http://www.plugcomputer.org/index.php/us/resources/downloads?func=select&id=6 and compile and boot u-boot  and post your finding?   

Following the directions and using the cross compiler chain I downloaded from the website, I am not able to compile this.  I get several undefines.  Specifically MV_BOOTSIZE_16M, CFG_MONITOR_LEN, CFG_ENV_SECT_SIZE, CFG_MONITOR_IMAGE_DST. 

After defining them in mvSysHwConfig.h with seemingly reasonable values from other header files, the linker fails with many undefined references regarding the USB stack.

Before I spend time sorting this out I would like to verify that we are all on the same page.

Thank you.
Logged

rshitrit
Global Moderator
Newbie
*****

Karma: 0
Posts: 14


View Profile
« Reply #1 on: May 20, 2009, 11:58:03 AM »

The thread u pointed is a little messy...
Pls describe your exact steps.
Logged

yotam
Global Moderator
Newbie
*****

Karma: 1
Posts: 10


View Profile
« Reply #2 on: May 20, 2009, 12:06:22 PM »

Please do the following:
1) tar jxvf u-boot-1.1.4.tar.bz2
2) mv u-boot-1.1.4 u-boot-3.4.16
3) unzip u-boot-3.4.16 (this will overwriting existing files)
4) cd u-boot-3.4.16
5) make mrproper
6) make rd88f6281Sheevaplug_config NBOOT=1 LE=1
 7) make

The output should be u-boot-rd88f6281Sheevaplug_400db_nand.bin
Logged

hammerinhank
Newbie
*

Karma: 0
Posts: 24


View Profile
« Reply #3 on: May 20, 2009, 12:12:00 PM »

Yes, it is messy.  That's why I started a new topic.

Following kwonsk's  instructions.

Quote
I've read build instruction from mavell documents set. Basically philipl's instruction is correct.
1) tar jxvf u-boot-1.1.4.tar.bz2
2) mv u-boot-1.1.4 u-boot-3.4.16
3) unzip u-boot-3.4.16 (this will overwriting existing files)
4) cd u-boot-3.4.16
5) tar zxvf sd.tgz
6) Copy attatched mv_kw.h to include/configs/mv_hw.h
7) make rd88f6281Sheevaplug_config NBOOT=1
    make clean; make

I'm just trying to compile it, so I'm not using the sd part, but either one did not work for me.
Logged

hammerinhank
Newbie
*

Karma: 0
Posts: 24


View Profile
« Reply #4 on: May 20, 2009, 12:13:09 PM »

Please do the following:
1) tar jxvf u-boot-1.1.4.tar.bz2
2) mv u-boot-1.1.4 u-boot-3.4.16
3) unzip u-boot-3.4.16 (this will overwriting existing files)
4) cd u-boot-3.4.16
5) make mrproper
6) make rd88f6281Sheevaplug_config NBOOT=1 LE=1
 7) make

The output should be u-boot-rd88f6281Sheevaplug_400db_nand.bin


Yup, that didn't work for me.
Logged

yotam
Global Moderator
Newbie
*****

Karma: 1
Posts: 10


View Profile
« Reply #5 on: May 20, 2009, 12:17:25 PM »

Can you put the outout of your compilation?
Logged

hammerinhank
Newbie
*

Karma: 0
Posts: 24


View Profile
« Reply #6 on: May 20, 2009, 12:36:14 PM »

UNDEF_SYM=`arm-none-linux-gnueabi-objdump -x lib_generic/libgeneric.a board/mv_feroceon/config_kw/libconfig_kw.a cpu/arm926ejs/libarm926ejs.a lib_arm/libarm.a fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a net/libnet.a disk/libdisk.a rtc/librtc.a dtt/libdtt.a drivers/libdrivers.a drivers/nand/libnand.a drivers/usb/libusb.a drivers/sk98lin/libsk98lin.a post/libpost.a post/cpu/libcpu.a common/libcommon.a |sed  -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
                arm-none-linux-gnueabi-ld -Bstatic -T /root/Sheeva/U-Boot/Sources/u-boot-3.4.16/board/mv_feroceon/config_kw/u-boot.lds -Ttext 0x00600000  $UNDEF_SYM cpu/arm926ejs/start.o \
                        --start-group lib_generic/libgeneric.a board/mv_feroceon/config_kw/libconfig_kw.a cpu/arm926ejs/libarm926ejs.a lib_arm/libarm.a fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a net/libnet.a disk/libdisk.a rtc/librtc.a dtt/libdtt.a drivers/libdrivers.a drivers/nand/libnand.a drivers/usb/libusb.a drivers/sk98lin/libsk98lin.a post/libpost.a post/cpu/libcpu.a common/libcommon.a --end-group -L /root/Sheeva/gcc/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.1 -lgcc \
                        -Map u-boot.map -o u-boot
board/mv_feroceon/config_kw/libconfig_kw.a(mv_main.o): In function `recoveryHandle':
/root/Sheeva/U-Boot/Sources/u-boot-3.4.16/board/mv_feroceon/mv_kw/mv_main.c:1313: undefined reference to `usb_init'
/root/Sheeva/U-Boot/Sources/u-boot-3.4.16/board/mv_feroceon/mv_kw/mv_main.c:1315: undefined reference to `usb_stor_scan'
common/libcommon.a(cmd_ext2.o): In function `get_dev':
/root/Sheeva/U-Boot/Sources/u-boot-3.4.16/common/cmd_ext2.c:77: undefined reference to `usb_stor_get_dev'
common/libcommon.a(cmd_fat.o): In function `get_dev':
/root/Sheeva/U-Boot/Sources/u-boot-3.4.16/common/cmd_fat.c:57: undefined reference to `usb_stor_get_dev'
common/libcommon.a(cmd_usb.o): In function `do_usbboot':
/root/Sheeva/U-Boot/Sources/u-boot-3.4.16/common/cmd_usb.c:347: undefined reference to `usb_stor_get_dev'
common/libcommon.a(cmd_usb.o): In function `usb_display_string':
/root/Sheeva/U-Boot/Sources/u-boot-3.4.16/common/cmd_usb.c:148: undefined reference to `usb_string'
common/libcommon.a(cmd_usb.o): In function `do_usb':
/root/Sheeva/U-Boot/Sources/u-boot-3.4.16/common/cmd_usb.c:454: undefined reference to `usb_stop'
/root/Sheeva/U-Boot/Sources/u-boot-3.4.16/common/cmd_usb.c:456: undefined reference to `usb_init'
/root/Sheeva/U-Boot/Sources/u-boot-3.4.16/common/cmd_usb.c:460: undefined reference to `usb_stor_scan'
/root/Sheeva/U-Boot/Sources/u-boot-3.4.16/common/cmd_usb.c:478: undefined reference to `usb_stop'
/root/Sheeva/U-Boot/Sources/u-boot-3.4.16/common/cmd_usb.c:483: undefined reference to `usb_get_dev_index'
/root/Sheeva/U-Boot/Sources/u-boot-3.4.16/common/cmd_usb.c:490: undefined reference to `usb_get_dev_index'
/root/Sheeva/U-Boot/Sources/u-boot-3.4.16/common/cmd_usb.c:504: undefined reference to `usb_get_dev_index'
/root/Sheeva/U-Boot/Sources/u-boot-3.4.16/common/cmd_usb.c:530: undefined reference to `usb_stor_info'
/root/Sheeva/U-Boot/Sources/u-boot-3.4.16/common/cmd_usb.c:537: undefined reference to `usb_stor_get_dev'
/root/Sheeva/U-Boot/Sources/u-boot-3.4.16/common/cmd_usb.c:564: undefined reference to `usb_stor_get_dev'
/root/Sheeva/U-Boot/Sources/u-boot-3.4.16/common/cmd_usb.c:581: undefined reference to `usb_stor_get_dev'
/root/Sheeva/U-Boot/Sources/u-boot-3.4.16/common/cmd_usb.c:592: undefined reference to `usb_stor_get_dev'
make: *** [u-boot] Error 1
Logged

yotam
Global Moderator
Newbie
*****

Karma: 1
Posts: 10


View Profile
« Reply #7 on: May 20, 2009, 01:00:54 PM »

Are you working under Ubuntu/Fedora...
Logged

hammerinhank
Newbie
*

Karma: 0
Posts: 24


View Profile
« Reply #8 on: May 20, 2009, 01:18:07 PM »

Working under Ubuntu 9.04 on an intel box.   I'm using the cross compiler from http://www.plugcomputer.org/index.php/us/resources/downloads?func=showdown&id=22
Logged

yotam
Global Moderator
Newbie
*****

Karma: 1
Posts: 10


View Profile
« Reply #9 on: May 20, 2009, 01:28:44 PM »

This U-boot version was developed under Fedora.
I am not familiar with you version of Ubuntu but from your first message I can understand that you need to remove the '-e' in line 1745 in the root Makefile
'@echo -e "CPP...
1. Please recreate the source tree
2. Try to modify the Makefile
3. Recompile
Logged

hammerinhank
Newbie
*

Karma: 0
Posts: 24


View Profile
« Reply #10 on: May 20, 2009, 01:55:35 PM »

Thank you very much.  Problem Solved.
Logged

rektide
Newbie
*

Karma: 0
Posts: 17



View Profile WWW
« Reply #11 on: August 24, 2009, 11:16:13 PM »

Please do the following:
1) tar jxvf u-boot-1.1.4.tar.bz2
2) mv u-boot-1.1.4 u-boot-3.4.16
3) unzip u-boot-3.4.16 (this will overwriting existing files)
4) cd u-boot-3.4.16
5) make mrproper
6) make rd88f6281Sheevaplug_config NBOOT=1 LE=1
7) make

The output should be u-boot-rd88f6281Sheevaplug_400db_nand.bin

The final instruction to compile U-Boot is "make all", not make.  This will fix your compile errors.

edit: this ought to fix your compile errors.  it fixed my mainline u-boot compile errors, at least, which looked very very very similar to the errors you are experiencing.

edit2: my undefined reference was at a latter step, never mind.  still, the mainline uboot sequence is make board_config; make all;
« Last Edit: August 24, 2009, 11:25:09 PM by rektide » Logged

Pages: [1]
Print
Jump to: