This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi Olexiy, I tried this toolchain today with 2.4.14 kernel, but I still got kernel panic (see output below). I will try it with 2.6.15.6 kernel later today... Do you do some patching in your kernel to make it work with your virtex board? (I only change the xparameters.h file as mentioned in ppc mailing list). I noticed that when I built the toolchain, it fails in hello.c test, "PATH_MAX" undeclared, so I'm not sure if I got the correct crosstool configuration same as yours. I just created the file gcc-3.4.6-glibc-2.3.6.dat and pass it in eval command in demo-ppc405.sh. The contents of the dat file I created is: BINUTILS_DIR=binutils-2.16.1 GCC_DIR=gcc-3.4.6 GLIBC_DIR=glibc-2.3.6 LINUX_DIR= LINUX_SANITIZED_HEADER_DIR=linux-libc-headers-2.6.12.0 GLIBCTHREADS_FILENAME=glibc-linuxthreads-2.3.6 GLIBC_ADDON_OPTIONS==linuxthreads, SHARED_MODE=--enable-shared Have you checked it with your Virtex-II board? We will be actually using Virtex-II FG456 board as the final board, but for now, I'm using Virtex4 FX12. Thanks. Richard *************************************** Kernel panic output: ## Booting image at ff840000 ... Image Name: Linux-2.6.14 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 596950 Bytes = 583 kB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Uncompressing Kernel Image ... OK ## Loading RAMDisk Image at ff940000 ... Image Name: RAM disk Image Type: PowerPC Linux RAMDisk Image (gzip compressed) Data Size: 1478212 Bytes = 1.4 MB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Loading Ramdisk to 01e3b000, end 01fa3e44 ... OK Linux version 2.6.14 (root@dragonheart) (gcc version 3.4.6) #68 Mon May 15 13:28:39 PHT 2006 Xilinx Virtex-II Pro port Port by MontaVista Software, Inc. (source@mvista.com) Built 1 zonelists Kernel command line: console=ttyS0,9600 root=/dev/ram rw Xilinx INTC #0 at 0x41200000 mapped to 0xFDFFE000 PID hash table entries: 256 (order: 8, 4096 bytes) Console: colour dummy device 80x25 Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) Memory: 31104k available (944k kernel code, 292k data, 64k init, 0k highmem) Mount-cache hash table entries: 512 softlockup thread 0 started up. Oops: kernel access of bad area, sig: 11 [#1] NIP: 00000000 LR: 00000000 SP: C01B7EF0 REGS: c01b7e40 TRAP: 0400 Not tainted MSR: 00029030 EE: 1 PR: 0 FP: 0 ME: 1 IR/DR: 11 TASK = c01acb40[1] 'swapper' THREAD: c01b6000 Last syscall: 120 GPR00: 00000000 C01B7EF0 C01ACB40 00000000 00000001 00000000 C01B7F68 00000000 GPR08: D7747040 00000000 00000000 C01A479C 22004042 00003540 02001400 00000000 GPR16: 00000001 FFFFFFFF 00000000 01FFAACC 007FFF00 01FA4D50 01FFF8D4 00000003 GPR24: 007FFE80 00800000 FF940040 00000000 C01B7F30 C01A479C C01A54D0 C01B7F68 NIP [00000000] 0x0 LR [00000000] 0x0 Call trace: [c006df20] __lookup_hash+0x34/0x170 [c006e0ec] lookup_one_len+0x88/0x98 [c0098f04] create_dir+0x5c/0x234 [c0099138] sysfs_create_dir+0x48/0x94 [c00aaff8] kobject_add+0x84/0x16c [c00ab30c] subsystem_register+0x20/0x4c [c01333b4] system_bus_init+0x28/0x38 [c013350c] driver_init+0x24/0x3c [c00023d8] init+0x34/0x280 [c0005774] kernel_thread+0x44/0x60 Kernel panic - not syncing: Attempted to kill init! <0>Rebooting in 180 seconds.. --- Olexiy Avramchenko <olexiy@ctech.cn.ua> wrote: > Hello, > I've used crosstool-0.42 with gcc-3.4.6, glib-2.3.6, > binutils-2.16.1 and > sanitized headers linux-libc-headers-2.6.12.0 for > powerpc-405-linux-gnu > target (it's actually PowerPC-405GPr). 2.6.15.6 > kernel compiled with the > toolchain runs ok. > > I can try to test it on Virtex-II Pro (custom board, > not ML300) this > weekend, if you're interested. > > Olexiy > > AR= > BINUTILS_DIR=binutils-2.16.1 > BINUTILS_EXTRA_CONFIG= > BUILD=i686-pc-linux-gnu > BUILD_DIR=/home/ath/toolchain/crosstool-0.42/build/powerpc-405-linux-gnu/gcc-3.4.6-glibc-2.3.6 > CC= > DEJAGNU= > EXTRA_TARGET_CFLAGS= > GCC_BUILD= > GCC_CORE_DIR=gcc-3.4.6 > GCC_DIR=gcc-3.4.6 > GCC_EXTRA_CONFIG=--with-cpu=405 > GCC_HOST= > GCC_LANGUAGES=c > GDB_DIR= > GLIBC_ADDON_OPTIONS==linuxthreads, > GLIBC_DIR=glibc-2.3.6 > GLIBC_EXTRA_CC_ARGS= > GLIBC_EXTRA_CONFIG=--without-fp > GLIBC_EXTRA_ENV= > JUST_DOWNLOAD= > KERNELCONFIG= > LINUX_DIR= > LINUX_SANITIZED_HEADER_DIR=linux-libc-headers-2.6.12.0 > NO_DOWNLOAD=1 > PREFIX=/opt/gcc-3.4.6-glibc-2.3.6/powerpc-405-linux-gnu > PTXDIST_DIR= > SHARED_MODE=--enable-shared > SRC_DIR=/home/ath/toolchain/crosstool-0.42/build/powerpc-405-linux-gnu/gcc-3.4.6-glibc-2.3.6 > TARBALLS_DIR=/home/ath/toolchain/crosstool-0.42/../tarballs > TARGET=powerpc-405-linux-gnu > TARGET_CFLAGS=-O -mcpu=405 > TOP_DIR=/home/ath/toolchain/crosstool-0.42 > USE_SYSROOT= > > -- > For unsubscribe information see http://sourceware.org/lists.html#faq __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- For unsubscribe information see http://sourceware.org/lists.html#faq
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |