hi
my demo board is P2020DS , i use the sdk1.2, Add saome macro in the p2020ds.h of uboot such as bellow
#define CONFIG_MTD
#define CONFIG_MTD_DEVICE
#define CONFIG_MTD_PARTITION
#define CONFIG_CMD_MTDPARTS
#define CONFIG_CMD_UBI
#define CONFIG_CMD_UBIFS
#define CONFIG_CMD_MTDPARTS
#define CONFIG_MTD_DEVICE
#define CONFIG_MTD_PARTITIONS
#define CONFIG_RBTREE
#define CONFIG_LZO
when compile the u-boot , some errors as bellow . can U help to slobe this problem 3KS.
/home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/include/config_cmd_default.h:43:0: warning: "CONFIG_CMD_NAND" redefined [enabled by default]
| /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/include/configs/P2020DS.h:331:0: note: this is the location of the previous definition
| powerpc-fsl-linux-gnuspe-ld -n -r -o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/board/freescale/p2020ds/libp2020ds.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/board/freescale/p2020ds/p2020ds.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/board/freescale/p2020ds/ddr.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/board/freescale/p2020ds/law.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/board/freescale/p2020ds/tlb.o
| make[2]: Leaving directory `/home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/board/freescale/p2020ds'
| UNDEF_SYM=`powerpc-fsl-linux-gnuspe-objdump -x /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/board/freescale/p2020ds/libp2020ds.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/api/libapi.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/arch/powerpc/cpu/mpc85xx/libmpc85xx.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/arch/powerpc/cpu/mpc8xxx/ddr/libddr.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/arch/powerpc/cpu/mpc8xxx/lib8xxx.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/arch/powerpc/lib/libpowerpc.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/board/freescale/common/libfreescale.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/common/libcommon.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/disk/libdisk.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/drivers/bios_emulator/libatibiosemu.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/drivers/block/libblock.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/drivers/dma/libdma.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/drivers/fpga/libfpga.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/drivers/gpio/libgpio.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/drivers/hwmon/libhwmon.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/drivers/i2c/libi2c.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/drivers/input/libinput.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/drivers/misc/libmisc.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/drivers/mmc/libmmc.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/drivers/mtd/libmtd.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/drivers/mtd/nand/libnand.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/drivers/mtd/onenand/libonenand.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/drivers/mtd/spi/libspi_flash.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/drivers/mtd/ubi/libubi.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/drivers/net/fm/libfm.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/drivers/net/libnet.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/drivers/net/phy/libphy.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/drivers/pci/libpci.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/drivers/pcmcia/libpcmcia.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/drivers/power/libpower.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/drivers/qe/libqe.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/drivers/rtc/librtc.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/drivers/sec/libsec.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/drivers/serial/libserial.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/drivers/spi/libspi.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/drivers/twserial/libtws.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/drivers/usb/eth/libusb_eth.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/drivers/usb/gadget/libusb_gadget.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/drivers/usb/host/libusb_host.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/drivers/usb/musb/libusb_musb.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/drivers/usb/phy/libusb_phy.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/drivers/usb/ulpi/libusb_ulpi.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/drivers/video/libvideo.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/drivers/watchdog/libwatchdog.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/fs/cramfs/libcramfs.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/fs/ext2/libext2fs.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/fs/fat/libfat.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/fs/fdos/libfdos.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/fs/jffs2/libjffs2.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/fs/reiserfs/libreiserfs.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/fs/ubifs/libubifs.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/fs/yaffs2/libyaffs2.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/lib/libfdt/libfdt.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/lib/libgeneric.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/lib/lzma/liblzma.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/lib/lzo/liblzo.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/lib/zlib/libz.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/net/libnet.o /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/post/libpost.o | sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`; cd /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS && powerpc-fsl-linux-gnuspe-ld -n -T /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/u-boot.lds --gc-sections -Bstatic -Ttext 0xeff80000 $UNDEF_SYM arch/powerpc/cpu/mpc85xx/start.o arch/powerpc/cpu/mpc85xx/resetvec.o --start-group api/libapi.o arch/powerpc/cpu/mpc85xx/libmpc85xx.o arch/powerpc/cpu/mpc8xxx/ddr/libddr.o arch/powerpc/cpu/mpc8xxx/lib8xxx.o arch/powerpc/lib/libpowerpc.o board/freescale/common/libfreescale.o common/libcommon.o disk/libdisk.o drivers/bios_emulator/libatibiosemu.o drivers/block/libblock.o drivers/dma/libdma.o drivers/fpga/libfpga.o drivers/gpio/libgpio.o drivers/hwmon/libhwmon.o drivers/i2c/libi2c.o drivers/input/libinput.o drivers/misc/libmisc.o drivers/mmc/libmmc.o drivers/mtd/libmtd.o drivers/mtd/nand/libnand.o drivers/mtd/onenand/libonenand.o drivers/mtd/spi/libspi_flash.o drivers/mtd/ubi/libubi.o drivers/net/fm/libfm.o drivers/net/libnet.o drivers/net/phy/libphy.o drivers/pci/libpci.o drivers/pcmcia/libpcmcia.o drivers/power/libpower.o drivers/qe/libqe.o drivers/rtc/librtc.o drivers/sec/libsec.o drivers/serial/libserial.o drivers/spi/libspi.o drivers/twserial/libtws.o drivers/usb/eth/libusb_eth.o drivers/usb/gadget/libusb_gadget.o drivers/usb/host/libusb_host.o drivers/usb/musb/libusb_musb.o drivers/usb/phy/libusb_phy.o drivers/usb/ulpi/libusb_ulpi.o drivers/video/libvideo.o drivers/watchdog/libwatchdog.o fs/cramfs/libcramfs.o fs/ext2/libext2fs.o fs/fat/libfat.o fs/fdos/libfdos.o fs/jffs2/libjffs2.o fs/reiserfs/libreiserfs.o fs/ubifs/libubifs.o fs/yaffs2/libyaffs2.o lib/libfdt/libfdt.o lib/libgeneric.o lib/lzma/liblzma.o lib/lzo/liblzo.o lib/zlib/libz.o net/libnet.o post/libpost.o board/freescale/p2020ds/libp2020ds.o --end-group -L /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/sysroots/p2020ds/usr/lib/powerpc-fsl-linux-gnuspe/4.6.2 -lgcc -Map u-boot.map -o u-boot
| powerpc-fsl-linux-gnuspe-ld: section .bootpg loaded at [effff000,effff41f] overlaps section .rodata loaded at [efff1300,f000845c]
| powerpc-fsl-linux-gnuspe-ld: u-boot: section .bootpg lma 0xeffff000 adjusted to 0xf000845d
| powerpc-fsl-linux-gnuspe-ld: u-boot: section .resetvec lma 0xeffffffc adjusted to 0xf000887d
| powerpc-fsl-linux-gnuspe-ld: u-boot: section .reloc lma 0xf0008500 adjusted to 0xf0008881
| powerpc-fsl-linux-gnuspe-ld: u-boot: section .data lma 0xf000d340 adjusted to 0xf000d6c1
| powerpc-fsl-linux-gnuspe-ld: u-boot: section .u_boot_cmd lma 0xf0013d7c adjusted to 0xf00140fd
| make[1]: *** [/home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git/P2020DS/u-boot] Error 1
| make[1]: Leaving directory `/home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/git'
| make: *** [P2020DS] Error 2
| ERROR: oe_runmake failed
| ERROR: Function 'do_compile' failed (see /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/temp/log.do_compile.2636 for further information)
NOTE: package u-boot-git-r17: task do_compile: Failed
ERROR: Task 4 (/home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/meta-fsl-ppc/recipes-kernel/u-boot/u-boot_git.bb, do_compile) failed with exit code '1'
ERROR: '/home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/meta-fsl-ppc/recipes-kernel/u-boot/u-boot_git.bb' failed
xpeng@ubuntu:~/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release$
Hello xiaonan peng,
I didn't find error report in the above log, would you please attach file /home/xpeng/QorIQ-SDK-V1.2-20120614-yocto/build_p2020ds_release/tmp/work/p2020ds-fsl-linux-gnuspe/u-boot-git-r17/temp/log.do_compile.2636?
Thanks,
Yiping
Hi
can u help check the compile error? thank U .
| powerpc-fsl-linux-gnuspe-ld: section .bootpg loaded at [effff000,effff41f] overlaps section .rodata loaded at [efff1300,f000845c]
It seems that there is some input sections that didn't map to any output section in the linker script. Try adding *(.rodata.*)
in the .rodata
section description.
Hi
I have already attached in here