From: Alexander Dahl <post@lespocky.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH] add patch for building at91bootstrap with gcc 4.6.x
Date: Tue, 31 Jan 2012 17:54:41 +0100 [thread overview]
Message-ID: <19561ec9a868fab957c3ca64a164602e@idefix.lespocky.dyndns.org> (raw)
In-Reply-To: <20120130142015.GF31245@pengutronix.de>
[-- Attachment #1: Type: text/plain, Size: 2640 bytes --]
Hei Michael,
Am 30.01.2012 15:20, schrieb Michael Olbrich:
>> See my mail from January 13th, where I described the problem. It occurs
>> with the OSELAS toolchain 2011.11.0 compiling for arm-v5te.
>
> Yes, I tried that and didn't get any build error. Which at91bootstrap
> config do I select to this error?
Okay I try to give some more information. Meanwhile I switched to the
2011.11.1 toolchain, but the error can be reproduced with this:
arm-v5te-linux-gnueabi-gcc -nostartfiles -nostdlib
-Wl,-Map=nandflash_at91sam9g20ek.map,--cref -T
./../../elf32-littlearm.lds -Ttext 0x200000 -n -o
nandflash_at91sam9g20ek.elf crt0_gnu.o at91sam9g20ek.o main.o gpio.o
pmc.o debug.o sdramc.o nandflash.o _udivsi3.o _umodsi3.o div0.o udiv.o
string.o
/home/adahl/opt/OSELAS.Toolchain-2011.11.1/arm-v5te-linux-gnueabi/gcc-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized/bin/../lib/gcc/arm-v5te-linux-gnueabi/4.6.2/../../../../arm-v5te-linux-gnueabi/bin/ld:
section .text.startup loaded at [00200e84,00200eab] overlaps section
data loaded at [00200e84,00200f47]
collect2: ld returned 1 exit status
You see the toolchain is for arm-v5te-linux-gnueabi and uses gcc 4.6,
it's the toolchain build from the tag v2011.11.1 from the git repo
http://git.pengutronix.de/?p=OSELAS.Toolchain.git;a=summary and the
toolchain is built on the same up-to-date i686 Debian Squeeze VMware
virtual machine where I try to compile the at91bootstrap.
In the platformconfig I chose this:
% grep -irn bootstrap configs
configs/arm-ncl/platformconfig:124:PTXCONF_AT91BOOTSTRAP=y
configs/arm-ncl/platformconfig:125:PTXCONF_AT91BOOTSTRAP_VERSION="1.16"
configs/arm-ncl/platformconfig:126:PTXCONF_AT91BOOTSTRAP_MD5="2d222312cf0af81c56db8747d6a38c7c"
configs/arm-ncl/platformconfig:127:PTXCONF_AT91BOOTSTRAP_CONFIG="at91sam9g20ek"
configs/arm-ncl/platformconfig:128:#
PTXCONF_AT91BOOTSTRAP_BOOT_DATAFLASH is not set
configs/arm-ncl/platformconfig:129:PTXCONF_AT91BOOTSTRAP_BOOT_NAND=y
configs/arm-ncl/platformconfig:130:# PTXCONF_AT91BOOTSTRAP2 is not set
I did a `ptxdist clean at91bootstrap` before and made sure there are no
customized rules or patches used, it's at91bootstrap as it comes with
ptxdist 2012.01.0, which is the version I use for testing this. Do you
need any more information to reproduce this? I attached the
platformconfig, hope this is helpful somehow.
Greets
Alex
--
»With the first link, the chain is forged. The first speech censured,
the first thought forbidden, the first freedom denied, chains us all
irrevocably.« (Jean-Luc Picard, quoting Judge Aaron Satie)
*** GnuPG-FP: 02C8 A590 7FE5 CA5F 3601 D1D5 8FBA 7744 CC87 10D0 ***
[-- Attachment #2: platformconfig --]
[-- Type: text/plain, Size: 6143 bytes --]
#
# Automatically generated make config: don't edit
# PTXdist 2012.01.0
#
PTXCONF_PLATFORMCONFIG_VERSION="2012.01.0"
PTXCONF__platformconfig_MAGIC__=y
#
# ------------------------------------
#
#
# Target Platform Configuration
#
#
# ------------------------------------
#
PTXCONF_PLATFORM="at91sam9g20ncl"
PTXCONF_PLATFORM_VERSION="1"
#
# architecture
#
# PTXCONF_ARCH_ALPHA is not set
# PTXCONF_ARCH_AVR32 is not set
# PTXCONF_ARCH_AVR is not set
PTXCONF_ARCH_ARM=y
# PTXCONF_ARCH_BLACKFIN is not set
# PTXCONF_ARCH_X86 is not set
# PTXCONF_ARCH_MINGW is not set
# PTXCONF_ARCH_PPC is not set
# PTXCONF_ARCH_M68K is not set
# PTXCONF_ARCH_SPARC is not set
# PTXCONF_ARCH_MICROBLAZE is not set
# PTXCONF_ARCH_MIPS is not set
# PTXCONF_ARCH_CRIS is not set
# PTXCONF_ARCH_PARISC is not set
# PTXCONF_ARCH_SH is not set
PTXCONF_ARCH_SUPPORTS_ENDIAN_BIG=y
PTXCONF_ARCH_SUPPORTS_ENDIAN_LITTLE=y
# PTXCONF_ENDIAN_BIG is not set
PTXCONF_ENDIAN_LITTLE=y
# PTXCONF_ARCH_ARM_V6 is not set
# PTXCONF_ARCH_ARM_IWMMXT is not set
# PTXCONF_ARCH_ARM_NEON is not set
# PTXCONF_HAS_HARDFLOAT is not set
PTXCONF_HAS_MMU=y
PTXCONF_SIZEOF_LONG_DOUBLE="8"
PTXCONF_ARCH_STRING="arm"
#
# paths & directories
#
PTXCONF_SYSROOT_TARGET="${PTXDIST_PLATFORMDIR}/sysroot-target"
PTXCONF_SYSROOT_HOST="${PTXDIST_PLATFORMDIR}/sysroot-host"
PTXCONF_SYSROOT_CROSS="${PTXDIST_PLATFORMDIR}/sysroot-cross"
#
# toolchain
#
PTXCONF_CROSSCHAIN_VENDOR="OSELAS.Toolchain-2011.11.1"
PTXCONF_CROSSCHAIN_CHECK="4.6.2"
PTXCONF_LIBC_GLIBC=y
# PTXCONF_LIBC_UCLIBC is not set
PTXCONF_GLIBC_VERSION="2.14.1"
PTXCONF_GNU_TARGET="arm-v5te-linux-gnueabi"
PTXCONF_COMPILER_PREFIX="${PTXCONF_GNU_TARGET}-"
PTXCONF_COMPILER_PREFIX_KERNEL="${PTXCONF_COMPILER_PREFIX}"
PTXCONF_COMPILER_PREFIX_BOOTLOADER="${PTXCONF_COMPILER_PREFIX}"
#
# extra toolchain options
#
PTXCONF_TARGET_EXTRA_CPPFLAGS=""
PTXCONF_TARGET_EXTRA_CFLAGS="-Wcast-align"
PTXCONF_TARGET_EXTRA_CXXFLAGS="-Wcast-align"
PTXCONF_TARGET_EXTRA_LDFLAGS=""
PTXCONF_KERNEL=y
# PTXCONF_KERNEL_INSTALL is not set
PTXCONF_KERNEL_MODULES=y
PTXCONF_KERNEL_MODULES_INSTALL=y
PTXCONF_KERNEL_MODULES_BUILD="modules"
PTXCONF_KERNEL_VERSION="2.6.36.4"
PTXCONF_KERNEL_MD5="c05dd941d0e249695e9f72568888e1bf"
PTXCONF_KERNEL_ARCH_STRING="arm"
# PTXCONF_KERNEL_IMAGE_BZ is not set
# PTXCONF_KERNEL_IMAGE_Z is not set
PTXCONF_KERNEL_IMAGE_U=y
# PTXCONF_KERNEL_IMAGE_VM is not set
# PTXCONF_KERNEL_IMAGE_VMLINUX is not set
# PTXCONF_KERNEL_IMAGE_RAW is not set
# PTXCONF_KERNEL_IMAGE_SIMPLE is not set
PTXCONF_KERNEL_IMAGE="uImage"
# PTXCONF_KERNEL_XZ is not set
# PTXCONF_KERNEL_LZOP is not set
#
# patching & configuration
#
PTXCONF_KERNEL_SERIES="series${PTXDIST_PLATFORMSUFFIX}"
PTXCONF_KERNEL_CONFIG="kernelconfig-${PTXCONF_KERNEL_VERSION}"
#
# Development features
#
PTXCONF_KERNEL_EXTRA_MAKEVARS="CONFIG_DEBUG_SECTION_MISMATCH=y"
# PTXCONF_HOST_DTC is not set
# PTXCONF_DTC is not set
#
# console options
#
PTXCONF_CONSOLE_NAME="/dev/ttyS0"
PTXCONF_CONSOLE_SPEED="115200"
#
# extra kernel
#
#
# bootloaders
#
PTXCONF_AT91BOOTSTRAP=y
PTXCONF_AT91BOOTSTRAP_VERSION="1.16"
PTXCONF_AT91BOOTSTRAP_MD5="2d222312cf0af81c56db8747d6a38c7c"
PTXCONF_AT91BOOTSTRAP_CONFIG="at91sam9g20ek"
# PTXCONF_AT91BOOTSTRAP_BOOT_DATAFLASH is not set
PTXCONF_AT91BOOTSTRAP_BOOT_NAND=y
# PTXCONF_AT91BOOTSTRAP2 is not set
# PTXCONF_BAREBOX is not set
PTXCONF_BOOTLOADER=y
# PTXCONF_GRUB is not set
# PTXCONF_HOST_MXS_UTILS is not set
PTXCONF_LOADADDRESS="0x21E00000"
# PTXCONF_U_BOOT_V2 is not set
PTXCONF_U_BOOT=y
PTXCONF_U_BOOT_VERSION="2010.09"
PTXCONF_U_BOOT_MD5="6dcc2cc47ecc96d4da984556d601a8c0"
PTXCONF_U_BOOT_PROMPT="uboot> "
PTXCONF_U_BOOT_SERIES="series"
PTXCONF_U_BOOT_CONFIG="at91sam9g20ncl_nandflash_config"
#
# target install
#
# PTXCONF_U_BOOT_INSTALL_SREC is not set
# PTXCONF_U_BOOT_INSTALL_ELF is not set
#
# rootfs tools install
#
PTXCONF_U_BOOT_INSTALL_PRINTENV=y
# PTXCONF_X_LOAD is not set
#
# flash
#
PTXCONF_FLASH_BLOCKSIZE="128k"
#
# image creation options
#
# PTXCONF_IMAGE_CPIO is not set
# PTXCONF_IMAGE_CPIO_GZ is not set
# PTXCONF_IMAGE_EXT2 is not set
# PTXCONF_IMAGE_HD is not set
# PTXCONF_IMAGE_VDI is not set
#
# ipkg options
#
PTXCONF_IMAGE_IPKG_PUSH_TO_REPOSITORY=y
PTXCONF_IMAGE_IPKG_FORCED_PUSH=y
# PTXCONF_IMAGE_IPKG_SIGN_OPENSSL is not set
# PTXCONF_IMAGE_INSTALL_FROM_IPKG_REPOSITORY is not set
PTXCONF_IMAGE_IPKG_INDEX=y
PTXCONF_IMAGE_IPKG_EXTRA_ARGS=""
# PTXCONF_IMAGE_JFFS2 is not set
PTXCONF_IMAGE_KERNEL=y
# PTXCONF_IMAGE_KERNEL_INITRAMFS is not set
PTXCONF_IMAGE_KERNEL_INSTALL_EARLY=y
# PTXCONF_IMAGE_KERNEL_LZOP is not set
# PTXCONF_IMAGE_SQUASHFS is not set
PTXCONF_IMAGE_TGZ=y
PTXCONF_IMAGE_UBI=y
PTXCONF_IMAGE_UBI_SUB_PAGE_SIZE="512"
PTXCONF_IMAGE_UBI_VID_HEADER_OFFSET="512"
PTXCONF_IMAGE_UBI_PEB_SIZE="128KiB"
PTXCONF_IMAGE_UBI_ROOT_VOL=y
PTXCONF_IMAGE_UBI_ROOT_VOL_SIZE="45MiB"
PTXCONF_IMAGE_UBI_ROOT_VOL_NAME="rootfs0"
# PTXCONF_UBI_CREATE_DATA is not set
PTXCONF_IMAGE_UBIFS=y
PTXCONF_IMAGE_UBIFS_MINIMUM_IO_UNIT_SIZE="2048"
PTXCONF_IMAGE_UBIFS_LEB_SIZE="126KiB"
PTXCONF_IMAGE_UBIFS_EXTRA_ARGS=""
PTXCONF_IMAGE_UBIFS_ROOT=y
PTXCONF_IMAGE_UBIFS_ROOT_MAX_LEB_COUNT="360"
# PTXCONF_IMAGE_UBIFS_DATA is not set
# PTXCONF_IMAGE_UIMAGE is not set
PTXCONF_CROSS_MODULE_INIT_TOOLS=y
# PTXCONF_HOST_CDRKIT is not set
# PTXCONF_HOST_CMAKE is not set
# PTXCONF_HOST_CRAMFS is not set
# PTXCONF_HOST_DOSFSTOOLS is not set
# PTXCONF_HOST_E2FSPROGS is not set
# PTXCONF_HOST_GENEXT2FS is not set
# PTXCONF_HOST_GENPART is not set
# PTXCONF_HOST_GETTEXT is not set
# PTXCONF_HOST_LIBBLKID is not set
# PTXCONF_HOST_LIBBZ2 is not set
# PTXCONF_HOST_LIBCAP is not set
PTXCONF_HOST_LIBLZO=y
PTXCONF_HOST_LIBUUID=y
# PTXCONF_HOST_LZOP is not set
# PTXCONF_HOST_MKELFIMAGE is not set
PTXCONF_HOST_MTD_UTILS=y
# PTXCONF_HOST_MTOOLS is not set
# PTXCONF_HOST_OPENSSL is not set
# PTXCONF_HOST_SQUASHFS_TOOLS is not set
PTXCONF_HOST_UMKIMAGE=y
PTXCONF_HOST_UTIL_LINUX_NG=y
# PTXCONF_HOST_XL_TOOLS is not set
# PTXCONF_HOST_XZ is not set
PTXCONF_HOST_ZLIB=y
[-- Attachment #3: Type: text/plain, Size: 48 bytes --]
--
ptxdist mailing list
ptxdist@pengutronix.de
next prev parent reply other threads:[~2012-01-31 16:54 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-26 15:04 Alexander Dahl
2012-01-26 15:36 ` Michael Olbrich
2012-01-27 9:25 ` Alexander Dahl
2012-01-30 14:20 ` Michael Olbrich
2012-01-31 16:54 ` Alexander Dahl [this message]
2012-01-31 19:29 ` Michael Olbrich
2012-02-01 11:54 ` [ptxdist] [PATCH] add patch fixing at91bootstrap build with gcc 4.6.x, and recreate patch series Alexander Dahl
2012-02-01 12:20 ` Michael Olbrich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=19561ec9a868fab957c3ca64a164602e@idefix.lespocky.dyndns.org \
--to=post@lespocky.de \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox