Linux-2.6.9-rc2 kernel build for mvme5100

David Gardiner daveg at sonartech.com.au
Thu Sep 16 14:29:49 EST 2004


Hi all,

I've got two questions in regard to building linux-2.6.9-rc2 for a mvme5100

Target info:
build platform: mvme5100, gcc-3.3.4, debian-testing, linuxppc_2_4_devel, 
default mvme5100 config
target platform: mvme5100

Questions 1:

I was getting this error when I tried to build the kernel:

  CC      arch/ppc/boot/common/bootinfo.o
  CC      arch/ppc/boot/common/misc-common.o
  CC      arch/ppc/boot/common/ns16550.o
arch/ppc/boot/common/ns16550.c:14: error: conflicting types for `outb'
include/asm/io.h:142: error: previous declaration of `outb'
arch/ppc/boot/common/ns16550.c:15: error: conflicting types for `inb'
include/asm/io.h:157: error: previous declaration of `inb'
make[2]: *** [arch/ppc/boot/common/ns16550.o] Error 1
make[1]: *** [arch/ppc/boot/common] Error 2
make: *** [zImage] Error 2

I changed arch/ppc/boot/common/ns16550.c so that it managed to compile 
based on what was in io.h, the patch for which is attatched, are these 
changes okay?


Question 2:

I'm now getting the error:

daveg at occy:/usr/src/play-2.6.9.new$ make
  CHK     include/linux/version.h
make[1]: `arch/ppc/kernel/asm-offsets.s' is up to date.
  CHK     include/linux/compile.h
  GZIP    arch/ppc/boot/images/vmlinux.gz
  HOSTCC  arch/ppc/boot/utils/addnote
  HOSTCC  arch/ppc/boot/utils/mknote
  HOSTCC  arch/ppc/boot/utils/hack-coff
  HOSTCC  arch/ppc/boot/utils/mkprep
  HOSTCC  arch/ppc/boot/utils/mkbugboot
  HOSTCC  arch/ppc/boot/utils/mktree
  AS      arch/ppc/boot/simple/head.o
  AS      arch/ppc/boot/simple/relocate.o
  CC      arch/ppc/boot/simple/misc.o
  CC      arch/ppc/boot/simple/dummy.o
objcopy -O elf32-powerpc \
        --add-section=.image=arch/ppc/boot/images/vmlinux.gz \
        --set-section-flags=.image=contents,alloc,load,readonly,data \
        arch/ppc/boot/simple/dummy.o arch/ppc/boot/simple/image.o
ld -T /usr/src/play-2.6.9.new/arch/ppc/boot/ld.script -Ttext 0x00800000 
-Bstatic -o arch/ppc/boot/simple/zvmlinux arch/ppc/boot/simple/head.o 
arch/ppc/boot/simple/relocate.o arch/ppc/boot/simple/misc.o 
arch/ppc/boot/simple/image.o arch/ppc/boot/common/lib.a 
arch/ppc/boot/lib/lib.a
arch/ppc/boot/common/lib.a(ns16550.o)(.text+0x2e): In function 
`serial_init':
: undefined reference to `isa_io_base'
arch/ppc/boot/common/lib.a(ns16550.o)(.text+0x42): In function 
`serial_init':
: undefined reference to `isa_io_base'
arch/ppc/boot/common/lib.a(ns16550.o)(.text+0x7e): In function 
`serial_init':
: undefined reference to `isa_io_base'
arch/ppc/boot/common/lib.a(ns16550.o)(.text+0x86): In function 
`serial_init':
: undefined reference to `isa_io_base'
arch/ppc/boot/common/lib.a(ns16550.o)(.text+0xda): In function 
`serial_init':
: undefined reference to `isa_io_base'
arch/ppc/boot/common/lib.a(ns16550.o)(.text+0xfa): more undefined 
references to `isa_io_base' follow
make[2]: *** [arch/ppc/boot/simple/zvmlinux] Error 1
make[1]: *** [simple] Error 2
make: *** [zImage] Error 2

Now I know isa_io_base is declared/defined in arch/ppc/kernel/pci.c so 
how is it supposed to link?

Ta,
dlg



-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ns16550.c.patch
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20040916/5e7519a8/attachment.asc>


More information about the Linuxppc-dev mailing list