Skip to contentSkip to conversation

MPC8548CDS/MPC8555CDS configs fails to link

U-Boot-Users New Marcel Moolenaar 3 participants 11 messages Feb 15, 2008 – Feb 22, 2008

lore
Share & tools
lore
#0 lore raw

All,

I've just pulled the 1.3.2-rc1 snapshot from GIT and I run into a link failure right out of the box (ok, after changing the Makefile to the right cross-compiler :-)

Build machine: FreeBSD-6.1

apg-bbuild09% gmake distclean
find: -lname: unknown option
find: -lname: unknown option
find: -lname: unknown option
apg-bbuild09% gmake MPC8548CDS_config
Configuring for MPC8548CDS board...
apg-bbuild09% gmake
for dir in tools examples api_examples ; do gmake -C $dir _depend ; done gmake[1]: Entering directory `/.amd/uranus1/vol/homes/homes1/marcelm/U- Boot/u-boot-1.3.2/tools'

	...

gmake[1]: Entering directory `/.amd/uranus1/vol/homes/homes1/marcelm/U- Boot/u-boot-1.3.2/api' /volume/fwtools/gnusense/340_2004a-magnesium.1/bin/powerpc-juniper- eabi-ar crv libapi.a
gmake[1]: Leaving directory /.amd/uranus1/vol/homes/homes1/marcelm/U- Boot/u-boot-1.3.2/api' UNDEF_SYM=/volume/fwtools/gnusense/340_2004a-magnesium.1/bin/powerpc- juniper-eabi-objdump -x lib_generic/libgeneric.a board/freescale/ common/libfreescale.a board/freescale/mpc8548cds/libmpc8548cds.a cpu/ mpc85xx/libmpc85xx.a lib_ppc/libppc.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 drivers/ bios_emulator/libatibiosemu.a drivers/block/libblock.a drivers/dma/ libdma.a drivers/hwmon/libhwmon.a drivers/i2c/libi2c.a drivers/input/ libinput.a drivers/misc/libmisc.a drivers/mtd/libmtd.a drivers/mtd/ nand/libnand.a drivers/mtd/nand_legacy/libnand_legacy.a drivers/mtd/ onenand/libonenand.a drivers/net/libnet.a drivers/net/sk98lin/ libsk98lin.a drivers/pci/libpci.a drivers/pcmcia/libpcmcia.a drivers/ spi/libspi.a drivers/qe/qe.a drivers/rtc/librtc.a drivers/serial/ libserial.a drivers/usb/libusb.a drivers/video/libvideo.a post/ libpost.a post/drivers/libpostdrivers.a post/lib_ppc/libpostppc.a post/ lib_ppc/fpu/libpostppcfpu.a common/libcommon.a libfdt/libfdt.a api/

libapi.a |sed  -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
		cd /.amd/uranus1/vol/homes/homes1/marcelm/U-Boot/u-boot-1.3.2 && / 

volume/fwtools/gnusense/340_2004a-magnesium.1/bin/powerpc-juniper-eabi- ld -Bstatic -T /.amd/uranus1/vol/homes/homes1/marcelm/U-Boot/u- boot-1.3.2/board/freescale/mpc8548cds/u-boot.lds -n -Ttext 0xfff80000 $UNDEF_SYM cpu/mpc85xx/start.o cpu/mpc85xx/resetvec.o \
--start-group lib_generic/libgeneric.a board/freescale/common/
libfreescale.a board/freescale/mpc8548cds/libmpc8548cds.a cpu/mpc85xx/ libmpc85xx.a lib_ppc/libppc.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 drivers/bios_emulator/ libatibiosemu.a drivers/block/libblock.a drivers/dma/libdma.a drivers/ hwmon/libhwmon.a drivers/i2c/libi2c.a drivers/input/libinput.a drivers/ misc/libmisc.a drivers/mtd/libmtd.a drivers/mtd/nand/libnand.a drivers/ mtd/nand_legacy/libnand_legacy.a drivers/mtd/onenand/libonenand.a drivers/net/libnet.a drivers/net/sk98lin/libsk98lin.a drivers/pci/ libpci.a drivers/pcmcia/libpcmcia.a drivers/spi/libspi.a drivers/qe/ qe.a drivers/rtc/librtc.a drivers/serial/libserial.a drivers/usb/ libusb.a drivers/video/libvideo.a post/libpost.a post/drivers/ libpostdrivers.a post/lib_ppc/libpostppc.a post/lib_ppc/fpu/ libpostppcfpu.a common/libcommon.a libfdt/libfdt.a api/libapi.a --end- group -L /.amd/svl-eng001-cf2/vol/tools/bt/fwtools-fbsd6.1-x86/ gnusense/340_2004a-magnesium.1/bin/../lib/gcc/powerpc-juniper-eabi/ 3.4.0/nof -lgcc \
-Map u-boot.map -o u-boot
/volume/fwtools/gnusense/340_2004a-magnesium.1/bin/powerpc-juniper-
eabi-ld: skipping incompatible /usr/lib/libgcc.a when searching for - lgcc
cpu/mpc85xx/cpu_init.o(.text+0xa4): In function `cpu_init_early_f':
/.amd/uranus1/vol/homes/homes1/marcelm/U-Boot/u-boot-1.3.2/cpu/mpc85xx/ cpu_init.c:150: undefined reference to init_laws' cpu/mpc85xx/cpu_init.o(.text+0x1ac): In function cpu_init_r':
/.amd/uranus1/vol/homes/homes1/marcelm/U-Boot/u-boot-1.3.2/cpu/mpc85xx/ cpu_init.c:258: undefined reference to disable_law' common/libcommon.a(cmd_bootm.o)(.text+0x950): In function do_bootm_linux':
/.amd/uranus1/vol/homes/homes1/marcelm/U-Boot/u-boot-1.3.2/common/ cmd_bootm.c:748: undefined reference to fdt_check_header' common/libcommon.a(cmd_bootm.o)(.text+0xacc):/.amd/uranus1/vol/homes/ homes1/marcelm/U-Boot/u-boot-1.3.2/common/cmd_bootm.c:799: undefined reference to fdt_check_header' common/libcommon.a(cmd_bootm.o)(.text+0xbc4):/.amd/uranus1/vol/homes/ homes1/marcelm/U-Boot/u-boot-1.3.2/common/cmd_bootm.c:849: undefined reference to fdt_check_header' common/libcommon.a(cmd_bootm.o)(.text+0xcfc):/.amd/uranus1/vol/homes/ homes1/marcelm/U-Boot/u-boot-1.3.2/common/cmd_bootm.c:965: undefined reference to fdt_open_into' common/libcommon.a(cmd_bootm.o)(.text+0xd44):/.amd/uranus1/vol/homes/ homes1/marcelm/U-Boot/u-boot-1.3.2/common/cmd_bootm.c:978: undefined reference to `fdt_chosen'
common/libcommon.a(cmd_bootm.o)(.text+0x153c): In function `do_bootm':
/.amd/uranus1/vol/homes/homes1/marcelm/U-Boot/u-boot-1.3.2/common/ cmd_bootm.c:1622: undefined reference to do_bootvx' common/libcommon.a(cmd_bootm.o)(.text+0x1578):/.amd/uranus1/vol/homes/ homes1/marcelm/U-Boot/u-boot-1.3.2/common/cmd_bootm.c:1636: undefined reference to do_bootelf'
common/libcommon.a(env_flash.o)(.text+0x118): In function `saveenv':
/.amd/uranus1/vol/homes/homes1/marcelm/U-Boot/u-boot-1.3.2/common/ env_flash.c:312: undefined reference to flash_sect_protect' common/libcommon.a(env_flash.o)(.text+0x138):/.amd/uranus1/vol/homes/ homes1/marcelm/U-Boot/u-boot-1.3.2/common/env_flash.c:316: undefined reference to flash_sect_erase' common/libcommon.a(env_flash.o)(.text+0x188):/.amd/uranus1/vol/homes/ homes1/marcelm/U-Boot/u-boot-1.3.2/common/env_flash.c:329: undefined reference to `flash_sect_protect' board/freescale/mpc8548cds/libmpc8548cds.a(mpc8548cds.o)(.text+0x798):
In function `ft_pci_setup':
/.amd/uranus1/vol/homes/homes1/marcelm/U-Boot/u-boot-1.3.2/board/ freescale/mpc8548cds/mpc8548cds.c:528: undefined reference to `fdt_path_offset' board/freescale/mpc8548cds/libmpc8548cds.a(mpc8548cds.o)(.text +0x7bc):/.amd/uranus1/vol/homes/homes1/marcelm/U-Boot/u-boot-1.3.2/ board/freescale/mpc8548cds/mpc8548cds.c:532: undefined reference to `fdt_getprop' board/freescale/mpc8548cds/libmpc8548cds.a(mpc8548cds.o)(.text +0x7f0):/.amd/uranus1/vol/homes/homes1/marcelm/U-Boot/u-boot-1.3.2/ board/freescale/mpc8548cds/mpc8548cds.c:535: undefined reference to `do_fixup_by_path' board/freescale/mpc8548cds/libmpc8548cds.a(mpc8548cds.o)(.text +0x804):/.amd/uranus1/vol/homes/homes1/marcelm/U-Boot/u-boot-1.3.2/ board/freescale/mpc8548cds/mpc8548cds.c:539: undefined reference to `fdt_getprop' board/freescale/mpc8548cds/libmpc8548cds.a(mpc8548cds.o)(.text +0x838):/.amd/uranus1/vol/homes/homes1/marcelm/U-Boot/u-boot-1.3.2/ board/freescale/mpc8548cds/mpc8548cds.c:542: undefined reference to do_fixup_by_path' board/freescale/mpc8548cds/libmpc8548cds.a(ft_board.o)(.text+0x2c): In function ft_board_setup':
../common/ft_board.c:66: undefined reference to ft_cpu_setup' board/freescale/mpc8548cds/libmpc8548cds.a(ft_board.o)(.text+0x44):../ common/ft_board.c:36: undefined reference to fdt_path_offset' board/freescale/mpc8548cds/libmpc8548cds.a(ft_board.o)(.text+0x5c):../ common/ft_board.c:39: undefined reference to fdt_getprop' board/freescale/mpc8548cds/libmpc8548cds.a(ft_board.o)(.text+0x70):../ common/ft_board.c:41: undefined reference to fdt_path_offset' board/freescale/mpc8548cds/libmpc8548cds.a(ft_board.o)(.text+0x88): In function `ft_board_setup':
/.amd/uranus1/vol/homes/homes1/marcelm/U-Boot/u-boot-1.3.2/include/ libfdt.h:408: undefined reference to fdt_getprop' cpu/mpc85xx/libmpc85xx.a(spd_sdram.o)(.text+0x304): In function setup_laws_and_tlbs':
/.amd/uranus1/vol/homes/homes1/marcelm/U-Boot/u-boot-1.3.2/cpu/mpc85xx/ spd_sdram.c:1093: undefined reference to `set_law'
gmake: *** [u-boot] Error 1

Is this a known issue and is someone looking into this?

Thanks,

PS1: This is a regression WRT 1.3.1, where only flash_sect_erase and flash_sect_protect were undefined.

PS2: The MPC8555CDS config is broken in the same way.

Signature · 2 lines
Marcel Moolenaar
marcelm at juniper.net
#1 lore raw
Quoted 158 lines · Marcel Moolenaar

All,

I've just pulled the 1.3.2-rc1 snapshot from GIT and I run into a link failure right out of the box (ok, after changing the Makefile to the right cross-compiler :-)

Build machine: FreeBSD-6.1

apg-bbuild09% gmake distclean
find: -lname: unknown option
find: -lname: unknown option
find: -lname: unknown option
apg-bbuild09% gmake MPC8548CDS_config
Configuring for MPC8548CDS board...
apg-bbuild09% gmake
for dir in tools examples api_examples ; do gmake -C $dir _depend ; done
gmake[1]: Entering directory `/.amd/uranus1/vol/homes/homes1/marcelm/ U-
Boot/u-boot-1.3.2/tools'

	...

gmake[1]: Entering directory `/.amd/uranus1/vol/homes/homes1/marcelm/ U-
Boot/u-boot-1.3.2/api' /volume/fwtools/gnusense/340_2004a-magnesium.1/bin/powerpc-juniper- eabi-ar crv libapi.a
gmake[1]: Leaving directory /.amd/uranus1/vol/homes/homes1/marcelm/U- Boot/u-boot-1.3.2/api' UNDEF_SYM=/volume/fwtools/gnusense/340_2004a-magnesium.1/bin/powerpc- juniper-eabi-objdump -x lib_generic/libgeneric.a board/freescale/ common/libfreescale.a board/freescale/mpc8548cds/libmpc8548cds.a cpu/ mpc85xx/libmpc85xx.a lib_ppc/libppc.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 drivers/ bios_emulator/libatibiosemu.a drivers/block/libblock.a drivers/dma/ libdma.a drivers/hwmon/libhwmon.a drivers/i2c/libi2c.a drivers/input/ libinput.a drivers/misc/libmisc.a drivers/mtd/libmtd.a drivers/mtd/ nand/libnand.a drivers/mtd/nand_legacy/libnand_legacy.a drivers/mtd/ onenand/libonenand.a drivers/net/libnet.a drivers/net/sk98lin/ libsk98lin.a drivers/pci/libpci.a drivers/pcmcia/libpcmcia.a drivers/ spi/libspi.a drivers/qe/qe.a drivers/rtc/librtc.a drivers/serial/ libserial.a drivers/usb/libusb.a drivers/video/libvideo.a post/ libpost.a post/drivers/libpostdrivers.a post/lib_ppc/libpostppc.a post/
lib_ppc/fpu/libpostppcfpu.a common/libcommon.a libfdt/libfdt.a api/

libapi.a |sed  -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
		cd /.amd/uranus1/vol/homes/homes1/marcelm/U-Boot/u-boot-1.3.2 && /

volume/fwtools/gnusense/340_2004a-magnesium.1/bin/powerpc-juniper-
eabi-
ld -Bstatic -T /.amd/uranus1/vol/homes/homes1/marcelm/U-Boot/u- boot-1.3.2/board/freescale/mpc8548cds/u-boot.lds -n -Ttext 0xfff80000 $UNDEF_SYM cpu/mpc85xx/start.o cpu/mpc85xx/resetvec.o \
--start-group lib_generic/libgeneric.a board/freescale/common/
libfreescale.a board/freescale/mpc8548cds/libmpc8548cds.a cpu/mpc85xx/ libmpc85xx.a lib_ppc/libppc.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 drivers/bios_emulator/ libatibiosemu.a drivers/block/libblock.a drivers/dma/libdma.a drivers/ hwmon/libhwmon.a drivers/i2c/libi2c.a drivers/input/libinput.a
drivers/
misc/libmisc.a drivers/mtd/libmtd.a drivers/mtd/nand/libnand.a
drivers/
mtd/nand_legacy/libnand_legacy.a drivers/mtd/onenand/libonenand.a drivers/net/libnet.a drivers/net/sk98lin/libsk98lin.a drivers/pci/ libpci.a drivers/pcmcia/libpcmcia.a drivers/spi/libspi.a drivers/qe/ qe.a drivers/rtc/librtc.a drivers/serial/libserial.a drivers/usb/ libusb.a drivers/video/libvideo.a post/libpost.a post/drivers/ libpostdrivers.a post/lib_ppc/libpostppc.a post/lib_ppc/fpu/ libpostppcfpu.a common/libcommon.a libfdt/libfdt.a api/libapi.a --end- group -L /.amd/svl-eng001-cf2/vol/tools/bt/fwtools-fbsd6.1-x86/ gnusense/340_2004a-magnesium.1/bin/../lib/gcc/powerpc-juniper-eabi/ 3.4.0/nof -lgcc \
-Map u-boot.map -o u-boot
/volume/fwtools/gnusense/340_2004a-magnesium.1/bin/powerpc-juniper-
eabi-ld: skipping incompatible /usr/lib/libgcc.a when searching for - lgcc
cpu/mpc85xx/cpu_init.o(.text+0xa4): In function `cpu_init_early_f':
/.amd/uranus1/vol/homes/homes1/marcelm/U-Boot/u-boot-1.3.2/cpu/
mpc85xx/
cpu_init.c:150: undefined reference to init_laws' cpu/mpc85xx/cpu_init.o(.text+0x1ac): In function cpu_init_r':
/.amd/uranus1/vol/homes/homes1/marcelm/U-Boot/u-boot-1.3.2/cpu/
mpc85xx/
cpu_init.c:258: undefined reference to disable_law' common/libcommon.a(cmd_bootm.o)(.text+0x950): In function do_bootm_linux':
/.amd/uranus1/vol/homes/homes1/marcelm/U-Boot/u-boot-1.3.2/common/ cmd_bootm.c:748: undefined reference to fdt_check_header' common/libcommon.a(cmd_bootm.o)(.text+0xacc):/.amd/uranus1/vol/homes/ homes1/marcelm/U-Boot/u-boot-1.3.2/common/cmd_bootm.c:799: undefined reference to fdt_check_header' common/libcommon.a(cmd_bootm.o)(.text+0xbc4):/.amd/uranus1/vol/homes/ homes1/marcelm/U-Boot/u-boot-1.3.2/common/cmd_bootm.c:849: undefined reference to fdt_check_header' common/libcommon.a(cmd_bootm.o)(.text+0xcfc):/.amd/uranus1/vol/homes/ homes1/marcelm/U-Boot/u-boot-1.3.2/common/cmd_bootm.c:965: undefined reference to fdt_open_into' common/libcommon.a(cmd_bootm.o)(.text+0xd44):/.amd/uranus1/vol/homes/ homes1/marcelm/U-Boot/u-boot-1.3.2/common/cmd_bootm.c:978: undefined reference to `fdt_chosen'
common/libcommon.a(cmd_bootm.o)(.text+0x153c): In function `do_bootm':
/.amd/uranus1/vol/homes/homes1/marcelm/U-Boot/u-boot-1.3.2/common/ cmd_bootm.c:1622: undefined reference to do_bootvx' common/libcommon.a(cmd_bootm.o)(.text+0x1578):/.amd/uranus1/vol/homes/ homes1/marcelm/U-Boot/u-boot-1.3.2/common/cmd_bootm.c:1636: undefined reference to do_bootelf'
common/libcommon.a(env_flash.o)(.text+0x118): In function `saveenv':
/.amd/uranus1/vol/homes/homes1/marcelm/U-Boot/u-boot-1.3.2/common/ env_flash.c:312: undefined reference to flash_sect_protect' common/libcommon.a(env_flash.o)(.text+0x138):/.amd/uranus1/vol/homes/ homes1/marcelm/U-Boot/u-boot-1.3.2/common/env_flash.c:316: undefined reference to flash_sect_erase' common/libcommon.a(env_flash.o)(.text+0x188):/.amd/uranus1/vol/homes/ homes1/marcelm/U-Boot/u-boot-1.3.2/common/env_flash.c:329: undefined reference to `flash_sect_protect' board/freescale/mpc8548cds/libmpc8548cds.a(mpc8548cds.o)(.text+0x798):
In function `ft_pci_setup':
/.amd/uranus1/vol/homes/homes1/marcelm/U-Boot/u-boot-1.3.2/board/ freescale/mpc8548cds/mpc8548cds.c:528: undefined reference to `fdt_path_offset' board/freescale/mpc8548cds/libmpc8548cds.a(mpc8548cds.o)(.text +0x7bc):/.amd/uranus1/vol/homes/homes1/marcelm/U-Boot/u-boot-1.3.2/ board/freescale/mpc8548cds/mpc8548cds.c:532: undefined reference to `fdt_getprop' board/freescale/mpc8548cds/libmpc8548cds.a(mpc8548cds.o)(.text +0x7f0):/.amd/uranus1/vol/homes/homes1/marcelm/U-Boot/u-boot-1.3.2/ board/freescale/mpc8548cds/mpc8548cds.c:535: undefined reference to `do_fixup_by_path' board/freescale/mpc8548cds/libmpc8548cds.a(mpc8548cds.o)(.text +0x804):/.amd/uranus1/vol/homes/homes1/marcelm/U-Boot/u-boot-1.3.2/ board/freescale/mpc8548cds/mpc8548cds.c:539: undefined reference to `fdt_getprop' board/freescale/mpc8548cds/libmpc8548cds.a(mpc8548cds.o)(.text +0x838):/.amd/uranus1/vol/homes/homes1/marcelm/U-Boot/u-boot-1.3.2/ board/freescale/mpc8548cds/mpc8548cds.c:542: undefined reference to do_fixup_by_path' board/freescale/mpc8548cds/libmpc8548cds.a(ft_board.o)(.text+0x2c): In function ft_board_setup':
../common/ft_board.c:66: undefined reference to ft_cpu_setup' board/freescale/mpc8548cds/libmpc8548cds.a(ft_board.o)(.text+0x44):../ common/ft_board.c:36: undefined reference to fdt_path_offset' board/freescale/mpc8548cds/libmpc8548cds.a(ft_board.o)(.text+0x5c):../ common/ft_board.c:39: undefined reference to fdt_getprop' board/freescale/mpc8548cds/libmpc8548cds.a(ft_board.o)(.text+0x70):../ common/ft_board.c:41: undefined reference to fdt_path_offset' board/freescale/mpc8548cds/libmpc8548cds.a(ft_board.o)(.text+0x88): In function `ft_board_setup':
/.amd/uranus1/vol/homes/homes1/marcelm/U-Boot/u-boot-1.3.2/include/ libfdt.h:408: undefined reference to fdt_getprop' cpu/mpc85xx/libmpc85xx.a(spd_sdram.o)(.text+0x304): In function setup_laws_and_tlbs':
/.amd/uranus1/vol/homes/homes1/marcelm/U-Boot/u-boot-1.3.2/cpu/
mpc85xx/
spd_sdram.c:1093: undefined reference to `set_law'
gmake: *** [u-boot] Error 1

Quoted 8 lines

Is this a known issue and is someone looking into this?

Thanks,

PS1: This is a regression WRT 1.3.1, where only flash_sect_erase and flash_sect_protect were undefined.

PS2: The MPC8555CDS config is broken in the same way.

I just did a fresh clone and it worked fine for me. (Building both MPC8548CDS and MPC8555CDS)

- k

#2 lore raw
Quoted 11 lines · Kumar Gala
Quoted 6 lines · Marcel Moolenaar

I've just pulled the 1.3.2-rc1 snapshot from GIT and I run into a link failure right out of the box (ok, after changing the Makefile to the right cross-compiler :-)

Build machine: FreeBSD-6.1

I just did a fresh clone and it worked fine for me. (Building both MPC8548CDS and MPC8555CDS)

Interesting. That means that cmd_flash.o is built for you. Can you verify that you have cmd_flash.c in common/.depend and cmd_flash.o in common?

I think this also means that config.mk is different. Do you have CONFIG_CMD_FLASH config.mk?

BTW: Thanks for the feedback. It's probably a tool issue then.

Signature · 2 lines
Marcel Moolenaar
marcelm at juniper.net
#3 lore raw
Quoted 10 lines · Marcel Moolenaar
Quoted 7 lines · Kumar Gala
Quoted 4 lines · Marcel Moolenaar

I've just pulled the 1.3.2-rc1 snapshot from GIT and I run into a link failure right out of the box (ok, after changing the Makefile to the right cross-compiler :-)

Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

Build machine: FreeBSD-6.1

I just did a fresh clone and it worked fine for me. (Building both MPC8548CDS and MPC8555CDS)

Interesting. That means that cmd_flash.o is built for you. Can you verify that you have cmd_flash.c in common/.depend and cmd_flash.o in common?

I do have cmd_flash.o in common/.depend. and common/cmd_flash.o exists (its about 20k)

Quoted 3 lines

I think this also means that config.mk is different. Do you have CONFIG_CMD_FLASH config.mk?

include/autoconf.mk has CONFIG_CMD_FLASH=y

Quoted 2 lines

BTW: Thanks for the feedback. It's probably a tool issue then.

- k

#4 lore raw
Quoted 4 lines · Kumar Gala
Quoted 2 lines

I think this also means that config.mk is different. Do you have CONFIG_CMD_FLASH config.mk?

include/autoconf.mk has CONFIG_CMD_FLASH=y

Mine is empty (size = 0).
Thanks, that's all I need to know!

Signature · 2 lines
Marcel Moolenaar
marcelm at juniper.net
#5 lore raw
In reply to Marcel Moolenaar

Marcel,

Quoted 4 lines · in message <[email protected]> you wrote:

I've just pulled the 1.3.2-rc1 snapshot from GIT and I run into a link failure right out of the box (ok, after changing the Makefile to the right cross-compiler :-)

There is no need to modify the Makefile. All you have to do is set and export the CROSS_COMPILE environment variable as needed.

Quoted 6 lines

Build machine: FreeBSD-6.1

apg-bbuild09% gmake distclean
find: -lname: unknown option
find: -lname: unknown option
find: -lname: unknown option

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

And you should pay attention to error messages like that. After such errors, all other problems may be just subsequent faults.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
How many QA engineers does it take to screw in a lightbulb? 3:  1  to
screw it in and 2 to say "I told you so" when it doesn't work.
#6 lore raw
Quoted 10 lines · Wolfgang Denk
Quoted 6 lines

Build machine: FreeBSD-6.1

apg-bbuild09% gmake distclean
find: -lname: unknown option
find: -lname: unknown option
find: -lname: unknown option

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

And you should pay attention to error messages like that. After such errors, all other problems may be just subsequent faults.

Those errors are harmless, I've been seeing those for a long time. The problem is with sed(1). The following patch makes things work for me:

apg-bbuild09% diff -u ~/U-Boot/u-boot-1.3.2/tools/scripts/ define2mk.sed.orig ~/U-Boot/u-boot-1.3.2/tools/scripts/define2mk.sed --- /homes/marcelm/U-Boot/u-boot-1.3.2/tools/scripts/
define2mk.sed.orig Thu Dec 6 01:21:19 2007
+++ /homes/marcelm/U-Boot/u-boot-1.3.2/tools/scripts/define2mk.sed Fri

Feb 15 16:43:56 2008

@@ -7,11 +7,11 @@
#

# Only process values prefixed with #define CONFIG_
-/^#define CONFIG_[A-Za-z0-9_]\+/ { +/^#define CONFIG_[A-Za-z0-9_]+/ {
# Strip the #define prefix
s/#define *//;
# Change to form CONFIG_*=VALUE
- s/ \+/=/;
+ s/ +/=/;
# Drop trailing spaces
s/ *$//;

  	# drop quotes around string values

Escaping the '+' makes it a literal character and that's not what's meant here...
...or am I missing something obvious?

Signature · 2 lines
Marcel Moolenaar
marcelm at juniper.net
#7 lore raw

PATCH 1/1 make define2mk.sed work on FreeBSD

In the thread "[1.3.2-rc1] MPC8548CDS/MPC8555CDS configs fails to link", the define2mk.sed script was identified as the source of the link failure on FreeBSD. The problem is that sed(1) does not always support the '+' operator. It isn't on FreeBSD. The attach patch implements the equivalent, using the '*' operator instead and should work everywhere.

Signature · 12 lines
Marcel Moolenaar
marcelm at juniper.net


-------------- next part --------------
A non-text attachment was scrubbed...
Name: u-boot.patch
Type: application/octet-stream
Size: 425 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20080215/28cb2fb1/attachment.obj 
-------------- next part --------------
#8 lore raw

PATCH 1/1 make define2mk.sed work on FreeBSD

Quoted 7 lines · In message <[email protected]> you wrote:

In the thread "[1.3.2-rc1] MPC8548CDS/MPC8555CDS configs fails to link", the define2mk.sed script was identified as the source of the link failure on FreeBSD. The problem is that sed(1) does not always support the '+' operator. It isn't on FreeBSD. The attach patch implements the equivalent, using the '*' operator instead and should work everywhere.

Can you please send a Signed-off-by: for this patch? Thanks!

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Here's a fish hangs in the net like a poor man's right in  the  law.
'Twill hardly come out."     - Shakespeare, Pericles, Act II, Scene 1
#9 lore raw

PATCH 1/1 make define2mk.sed work on FreeBSD

In reply to Marcel Moolenaar

[resent with Signed-off-by and patch produced with git(1)]

All,

In the thread "[1.3.2-rc1] MPC8548CDS/MPC8555CDS configs fails to link", the define2mk.sed script was identified as the source of the link failure on FreeBSD. The problem is that sed(1) does not always support the '+' operator. It isn't on FreeBSD. The attach patch implements the equivalent, using the '*' operator instead and should work everywhere.

Signature · 12 lines
Marcel Moolenaar
marcelm at juniper.net


-------------- next part --------------
A non-text attachment was scrubbed...
Name: ub.diff
Type: application/octet-stream
Size: 505 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20080222/d51f2028/attachment.obj 
-------------- next part --------------
#10 lore raw

PATCH 1/1 make define2mk.sed work on FreeBSD

Quoted 8 lines · In message <[email protected]> you wrote:

In the thread "[1.3.2-rc1] MPC8548CDS/MPC8555CDS configs fails to link", the define2mk.sed script was identified as the source of the link failure on FreeBSD. The problem is that sed(1) does not always support the '+' operator. It isn't on FreeBSD. The attach patch implements the equivalent, using the '*' operator instead and should work everywhere.

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 4 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Nobody goes to that restaurant anymore. It's too crowded.