From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from lo.gmane.org ([80.91.229.12]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1RQK46-0007zi-TE for ptxdist@pengutronix.de; Tue, 15 Nov 2011 15:32:50 +0100 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RQK44-0008Ax-GP for ptxdist@pengutronix.de; Tue, 15 Nov 2011 15:32:45 +0100 Received: from cpe-76-184-228-196.tx.res.rr.com ([76.184.228.196]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 15 Nov 2011 15:32:44 +0100 Received: from muntaqa by cpe-76-184-228-196.tx.res.rr.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 15 Nov 2011 15:32:44 +0100 From: muntaqa Date: Tue, 15 Nov 2011 14:32:31 +0000 (UTC) Message-ID: References: <201111020935.22571.jbe@pengutronix.de> <201111051554.43244.jbe@pengutronix.de> Mime-Version: 1.0 Subject: Re: [ptxdist] =?utf-8?q?Using_external_toolchain_with_penguitronix_BS?= =?utf-8?q?P=09distribution?= Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Juergen Beisert writes: > > muntaqa wrote: > > Juergen Beisert writes: > > > Out of curiosity: what advantage has your toolchain compared to our > > > OSELAS ARMv4 toolchain? > > > > This is CodeSourcery open source toolchain. I had chosen it a while ago > > when building the project with buildroot. I have been using it for a while > > and have built and debugged all of my applications with it on mini2440. At > > this point, I did not want to discover or spend time on any other problems > > since I have a working system except that I am trying to add QT > > applications to my mini2440 platform. > > Okay. > > > Reason I switched to Pengutronix is that buildroot gave me some trouble > > when building QT thru it plus it had always given me kernel panic errors > > when installing the jffs2 root image (so I had been simply using tar balls > > on top of the stock kernel/rootfs that mini2440 is shipped with). I > > thought switching to Pengutronix would finally let me burn a true image and > > I can organize my project much better. > > > > Currently, I still have kernel panic messages when building the rootfs > > using Pengutronix and CodeSourcery. It seems perhaps that it is because of > > gcc 4.5.1 that is being used in my version of CodeSourcery. When I use > > your toolchain, I can burn an image properly and do not receive kernel panic > > messages. Your toolchain uses gcc 4.5.2. > > Do all supported kernels show the same panic? Sometimes one kernel has trouble > with a specific gcc version, and other kernels not. Did you try all kernels > from the BSP with your CodeSourcery toolchain? > > > One issue that I see though with Pengutronix is that any time I change a > > selection or add anything to QT configuration in Penguitronix ptxdist > > menuconfig, it rebuilds the whole QT (ends up costing me couple of hours > > plus I am not able to try anything quickly.) > > On our new 24 core/96 GiB RAM machine Qt4 builds really quick in a few > minutes. > > Maybe you should start with a full blown Qt4, do your development with it, and > when it is finished, you can try to shrink the library by disabling some of > its options. > > > I would like to start using pengutronix as long as it would be less > > frustrating than buildroot. > > I don't know buildroot. I work with PTXdist since years. > > > BTW, my best wishes to you on this project, you guys have done alot of > > good work and looking at your documentation the working environment, it > > seems very promising. > > Thanks. > > Regards, > Juergen > Hello Juergen, I am wondering if you would be able to help me with kernel panic issue? I have tried different gcc versions of CodeSourcery with about three kernel versions and I always get kernel panics when booting mini2440. I am following your quick start guide for either botting from nfs or nand. I follow the procedure for nand updates etc. Is there an inherent problem with burning JFFS2 format on mini2440 or is it Code Sourcery that perhaps has a problem? Any help would be much appreciated. Please let me know what information I need to provide for you to be able to help me? Below is the platformconfig settings: # # Automatically generated make config: don't edit # PTXdist 2011.10.1 # PTXCONF_PLATFORMCONFIG_VERSION="2011.10.1" PTXCONF__platformconfig_MAGIC__=y # # ------------------------------------ # # # Target Platform Configuration # # # ------------------------------------ # PTXCONF_PLATFORM="mini2440" PTXCONF_PLATFORM_VERSION="-2011.10.0" # # 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="" PTXCONF_CROSSCHAIN_CHECK="4.5.2" PTXCONF_LIBC_GLIBC=y # PTXCONF_LIBC_UCLIBC is not set PTXCONF_GLIBC_VERSION="2.13" PTXCONF_GNU_TARGET="arm-none-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="-march=armv4t -mtune=arm920t" PTXCONF_TARGET_EXTRA_CFLAGS="-march=armv4t -mtune=arm920t" PTXCONF_TARGET_EXTRA_CXXFLAGS="-march=armv4t -mtune=arm920t" PTXCONF_TARGET_EXTRA_LDFLAGS="-march=armv4t -mtune=arm920t" 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="3.0" #PTXCONF_KERNEL_MD5="398e95866794def22b12dfbc15ce89c0" PTXCONF_KERNEL_VERSION="2.6.38" PTXCONF_KERNEL_MD5="398e95866794def22b12dfbc15ce89c0" 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" 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="ttySAC0" PTXCONF_CONSOLE_SPEED="115200" # # bootloaders # # PTXCONF_AT91BOOTSTRAP is not set # PTXCONF_AT91BOOTSTRAP2 is not set PTXCONF_BAREBOX=y PTXCONF_BAREBOX_VERSION="2011.05.0" PTXCONF_BAREBOX_MD5="d66774abcf9fa6c9530e13543cc707bc" PTXCONF_BAREBOX_CONFIG="barebox-NAND-128M.config" PTXCONF_BAREBOX_ARCH_STRING="arm" PTXCONF_BAREBOX_EXTRA_ENV=y PTXCONF_BAREBOX_EXTRA_ENV_PATH="${PTXDIST_PLATFORMCONFIGDIR}/barebox-128m-env" PTXCONF_BOOTLOADER=y # PTXCONF_GRUB is not set # PTXCONF_HOST_MXS_UTILS is not set # PTXCONF_U_BOOT_V2 is not set # PTXCONF_U_BOOT is not set # 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 # # ipkg options # # PTXCONF_IMAGE_IPKG_PUSH_TO_REPOSITORY 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=y PTXCONF_IMAGE_JFFS2_BLOCKSIZE=0x20000 # # *** add '-n' here for NAND flash *** # PTXCONF_IMAGE_JFFS2_EXTRA_ARGS="-n" # PTXCONF_IMAGE_JFFS2_SUM 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 is not set # PTXCONF_IMAGE_UBIFS 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 -- ptxdist mailing list ptxdist@pengutronix.de