Linux MIPS Architecture development
 help / color / mirror / Atom feed
* ADM5120: linux-2.4.31-adm.diff.bz2 does not support PCI bus?
@ 2005-07-13  2:20 IHOLLO
  2005-07-13  6:40 ` Yoichi Yuasa
  0 siblings, 1 reply; 3+ messages in thread
From: IHOLLO @ 2005-07-13  2:20 UTC (permalink / raw)
  To: linux-mips

Hi,

I am now working on a board with ADM5120 processor and want a kernel 
newer than 2.4.18, so I tried the linux-2.4.31-adm.diff.bz2 patch 
against vanilla 2.4.31 (http://www.linux-mips.org/wiki/ADMtek#Linux_2.4) 
but failed to compile it with PCI Bus support (It compiles OK without 
CONFIG_PCI). The compile error looks like this:

......
/opt/xyz/buildfarm/build_mipsel/staging_dir/bin/mipsel-linux-uclibc-ld 
-m elf32ltsmip -G 0 -static -n -T arch/mips/ld.script 
arch/mips/kernel/head.o arch/mips/kernel/init_task.o init/main.o 
init/version.o init/do_mounts.o \
        --start-group \
        arch/mips/kernel/kernel.o arch/mips/mm/mm.o kernel/kernel.o 
mm/mm.o fs/fs.o ipc/ipc.o arch/mips/math-emu/fpu_emulator.o 
arch/mips/pci/pci-core.o \
         drivers/char/char.o drivers/block/block.o drivers/misc/misc.o 
drivers/net/net.o drivers/pci/driver.o drivers/mtd/mtdlink.o 
drivers/media/media.o \
        net/network.o \
        arch/mips/lib/lib.a /opt/xyz/linux-2.4/linux-2.4.31/lib/lib.a 
arch/mips/am5120/am5120.o \
        --end-group \
        -o vmlinux
drivers/pci/driver.o(.text+0x2218): In function `pci_fixup_device':
: undefined reference to `pcibios_fixups'
drivers/pci/driver.o(.text+0x222c): In function `pci_fixup_device':
: undefined reference to `pcibios_fixups'
drivers/pci/driver.o(.text.init+0x6d4): In function `pci_do_scan_bus':
: undefined reference to `pcibios_fixup_bus'
drivers/pci/driver.o(.text.init+0x6d4): In function `pci_do_scan_bus':
: relocation truncated to fit: R_MIPS_26 against `pcibios_fixup_bus'
drivers/pci/driver.o(.text.init+0xa98): In function `pci_init':
: undefined reference to `pcibios_init'
drivers/pci/driver.o(.text.init+0xa98): In function `pci_init':
: relocation truncated to fit: R_MIPS_26 against `pcibios_init'
make: *** [vmlinux] Error 1

Is PCI Bus supported by this patch? Or, is there any new kernel 
availible for ADM5120?

Thanks very much.

Zhuang Yuyao

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ADM5120: linux-2.4.31-adm.diff.bz2 does not support PCI bus?
  2005-07-13  2:20 ADM5120: linux-2.4.31-adm.diff.bz2 does not support PCI bus? IHOLLO
@ 2005-07-13  6:40 ` Yoichi Yuasa
  2005-07-13  9:35   ` ADM5120: MIPS-I or MIPS32? WAS(Re: ADM5120: linux-2.4.31-adm.diff.bz2 does not support PCI bus?) IHOLLO
  0 siblings, 1 reply; 3+ messages in thread
From: Yoichi Yuasa @ 2005-07-13  6:40 UTC (permalink / raw)
  To: IHOLLO; +Cc: linux-mips

Hi,

2005/7/13, IHOLLO <ihollo@tom.com>:
> Hi,
> 
> I am now working on a board with ADM5120 processor and want a kernel
> newer than 2.4.18, so I tried the linux-2.4.31-adm.diff.bz2 patch
> against vanilla 2.4.31 (http://www.linux-mips.org/wiki/ADMtek#Linux_2.4)
> but failed to compile it with PCI Bus support (It compiles OK without
> CONFIG_PCI). The compile error looks like this:

Did you turn on New PCI bus code(CONFIG_PCI_NEW)?

Yoichi

^ permalink raw reply	[flat|nested] 3+ messages in thread

* ADM5120: MIPS-I or MIPS32? WAS(Re: ADM5120: linux-2.4.31-adm.diff.bz2 does not support PCI bus?)
  2005-07-13  6:40 ` Yoichi Yuasa
@ 2005-07-13  9:35   ` IHOLLO
  0 siblings, 0 replies; 3+ messages in thread
From: IHOLLO @ 2005-07-13  9:35 UTC (permalink / raw)
  To: Yoichi Yuasa; +Cc: linux-mips

Thanks Yoichi, that is exactly what you suggested, turn on New PCI bus 
code(CONFIG_PCI_NEW) then the kernel can be compiled  now.

Here is another question: What CPU type should I choose to compile 
applications for ADM5120? the spec says it is MIPS32, but I can not run 
MIPS32 applications on my board while MIPS-I executable works just fine.

#file busybox (works fine. compiled as mips-I)
busybox: ELF 32-bit LSB MIPS-I executable, MIPS, version 1 (SYSV), 
dynamically linked (uses shared libs), stripped

#file busybox (can not execute this program. compiled as mips32)
busybox: ELF 32-bit LSB executable, MIPS, version 1 (SYSV), dynamically 
linked (uses shared libs), stripped


Yoichi Yuasa wrote:

>Hi,
>
>2005/7/13, IHOLLO <ihollo@tom.com>:
>  
>
>>Hi,
>>
>>I am now working on a board with ADM5120 processor and want a kernel
>>newer than 2.4.18, so I tried the linux-2.4.31-adm.diff.bz2 patch
>>against vanilla 2.4.31 (http://www.linux-mips.org/wiki/ADMtek#Linux_2.4)
>>but failed to compile it with PCI Bus support (It compiles OK without
>>CONFIG_PCI). The compile error looks like this:
>>    
>>
>
>Did you turn on New PCI bus code(CONFIG_PCI_NEW)?
>
>Yoichi
>
>
>
>  
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-07-13  9:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-13  2:20 ADM5120: linux-2.4.31-adm.diff.bz2 does not support PCI bus? IHOLLO
2005-07-13  6:40 ` Yoichi Yuasa
2005-07-13  9:35   ` ADM5120: MIPS-I or MIPS32? WAS(Re: ADM5120: linux-2.4.31-adm.diff.bz2 does not support PCI bus?) IHOLLO

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox