Hi,
I tried to compile linux kernel for MBX board on
i686-pc-linux. The package I used to built my
cross-compiler is:
binutils-2.10
glibc-2.1.3
gcc-2.95
The kernel package I used is
linux-2.2.17
I passed make xconfig, make dep, make clean, but got
the following error at make zImage:
powerpc-linux-gcc -D__KERNEL__
-I/home/compiler/sources/linux/include -Wall
-Wstrict-prototypes -O2 -fomit-frame-pointer
-fno-strict-aliasing -D__powerpc__ -fsigned-char
-msoft-float -pipe -fno-builtin -ffixed-r2
-Wno-uninitialized -mmultiple -mstring -mcpu=860
-D__ASSEMBLY__ -c head.S -o head.o
head.S: Assembler messages:
head.S:1829: Error: unsupported relocation type
make[1]: *** [head.o] Error 1
make[1]: Leaving directory
`/home/compiler/sources/linux/arch/ppc/kernel'
make: *** [_dir_arch/ppc/kernel] Error 2
Could anyone give me any idea about where I was wrong?
Thank you.
Yiran.
Yahoo! Messenger - Talk while you surf! It's FREE.
http://im.yahoo.com/
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Hi,
I tried to compile linux kernel for MBX board on
i686-pc-linux. The package I used to built my
cross-compiler is:
binutils-2.10
glibc-2.1.3
gcc-2.95
I've built for MBX with almost the same, only binutils 2.9.5 instead
of 2.10.
The kernel package I used is
linux-2.2.17
I passed make xconfig, make dep, make clean, but got
the following error at make zImage:
powerpc-linux-gcc -D__KERNEL__
-I/home/compiler/sources/linux/include -Wall
-Wstrict-prototypes -O2 -fomit-frame-pointer
-fno-strict-aliasing -D__powerpc__ -fsigned-char
-msoft-float -pipe -fno-builtin -ffixed-r2
-Wno-uninitialized -mmultiple -mstring -mcpu=860
-D__ASSEMBLY__ -c head.S -o head.o
head.S: Assembler messages:
head.S:1829: Error: unsupported relocation type
make[1]: *** [head.o] Error 1
make[1]: Leaving directory
`/home/compiler/sources/linux/arch/ppc/kernel'
make: *** [_dir_arch/ppc/kernel] Error 2
Could anyone give me any idea about where I was wrong?
Looking at
http://lxr.linux.no/source/arch/ppc/kernel/head.S
the problem is apparent:
255 #ifndef CONFIG_8xx
256 bl prom_init
257 .globl __secondary_start
258 __secondary_start:
...
1293 #ifndef CONFIG_8xx
..
1822 #else /* CONFIG_8xx */
1823 .globl giveup_fpu
1824 giveup_fpu:
1825 blr
1826 #endif /* CONFIG_8xx */
1827
1828 mmu_off:
1829 addi r4, r3, __secondary_start - _start
1830 mfmsr r3
__secondary_start is not defined for CONFIG_8xx. It looks like
head.S changed a bit since 2.2.14, and I wouldn't know which way to go
about fixing it, but I might suggest either backing down to 2.2.14 or
jumping to 2.4.0-test2.
The latest Monta Vista CDK (1.2) appears to include both, and last I
tried their stuff worked quite well with little headaches - I'd recommend
giving it a try,
http://www.mvista.com/
ftp://ftp.mvista.com/pub/CDK/
-Jamie
Hi,
What does LIST_HEAD do in drivers/pci/pci.c ?
LIST_HEAD(pci_root_buses);
LIST_HEAD(pci_devices);
Thanks,
--
Zhaobin Zhu
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
From: Tod E. Kurt <hidden> Date: 2000-10-18 17:56:28
Ooops, I meant:
demo% grep -C LIST_HEAD /usr/include/linux/*.h
which should be the same as:
demo% grep -C LIST_HEAD /usr/src/linux/include/linux/*.h
"Tod E. Kurt" wrote:
Hi,
Anybody knows where the function "pci_read_config_byte(..)" is defined ?
Thanks,
--
Zhaobin Zhu
zzhu@emc.com
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
From: Cal Erickson <hidden> Date: 2000-10-18 22:54:11
Try looking in drivers/pci/pci.c This is where the code resides. It
is also where the symbol is exported.
Cal Erickson
Zhaobin Zhu wrote:
Hi,
Anybody knows where the function "pci_read_config_byte(..)" is defined ?
Thanks,
--
Zhaobin Zhu
zzhu@emc.com
--
===========================================================================
Cal Erickson MontaVista Software Inc.
Customer Support Engineer 490 Potrero Avenue
Phone (408) 328-0304 Sunnyvale CA 94085
Fax (408) 328-9204 e-mail cal_erickson@mvista.com
Pager 877-566-2012 support 1-800-759-8888 pin 202-7489
web http://www.mvista.com support e-mail: support@mvista.com
eCode: http://cal@work.com.ecode.com
===========================================================================
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
From: Grant Erickson <hidden> Date: 2000-10-18 22:56:15
On Wed, 18 Oct 2000, Zhaobin Zhu wrote:
Anybody knows where the function "pci_read_config_byte(..)" is defined?
Search for 'PCI_OP' in drivers/pci.c. Also, there are machine-specific
routines defined in arch/ppc/*pci*.
Grant
--
Grant M. Erickson University of Minnesota Alumni
o mail:erick205@tc.umn.edu 1996 BSEE
o http://www.tc.umn.edu/~erick205/ 1998 MSEE
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
From: Graham Stoney <hidden> Date: 2000-10-19 00:19:16
Zhaobin Zhu writes:
Anybody knows where the function "pci_read_config_byte(..)" is defined ?
Do yourself a favour and grab "cscope" from sourceforge at:
http://sourceforge.net/projects/cscope/
I find it extremely handy for navigating the Linux kernel source tree.
Regards,
Graham
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/