linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* PPC kernel compiles fail (2.4.5 to 2.4.9 inclusive) due to ide problems/vt problems
@ 2001-09-01 12:55 xsdg
  2001-09-01 19:09 ` Tom Rini
  0 siblings, 1 reply; 3+ messages in thread
From: xsdg @ 2001-09-01 12:55 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 9005 bytes --]

Please CC me as I am not subscribed to the list.  My only goal now is to get
a kernel running (2.4 is necessary for Airport support).  The computer is a
brand-new Apple TiBook.

I downloaded the 2.4.9 kernel, and attempted to build it (on my PPC); 
`make dep clean vmlinux modules` failed with the following errors (make errors
given for context):

make[3]: Entering directory `/usr/src/9.4.2k/drivers/char'
gcc -D__KERNEL__ -I/usr/src/9.4.2k/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -D__powerpc__ -fsigned-char -msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring    -c -o vt.o vt.c
vt.c: In function `vt_ioctl':
vt.c:507: `kbd_rate' undeclared (first use in this function)
vt.c:507: (Each undeclared identifier is reported only once
vt.c:507: for each function it appears in.)
vt.c:514: `kbd_rate' used prior to declaration
vt.c:514: warning: implicit declaration of function `kbd_rate'
make[3]: *** [vt.o] Error 1
make[3]: Leaving directory `/usr/src/9.4.2k/drivers/char'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/9.4.2k/drivers/char'
make[1]: *** [_subdir_char] Error 2
make[1]: Leaving directory `/usr/src/9.4.2k/drivers'
make: *** [_dir_drivers] Error 2

Then I downloaded 2.4.5 (which is working on all my other boxes, albeit x86).
I attempted to build it with the same command, and it failed with the following
errors:

make[1]: Leaving directory `/usr/src/5.4.2k/arch/ppc/lib'
ld -T arch/ppc/vmlinux.lds -Ttext 0xc0000000 -Bstatic arch/ppc/kernel/head.o init/main.o init/version.o \
	--start-group \
	arch/ppc/kernel/kernel.o arch/ppc/mm/mm.o arch/ppc/lib/lib.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o \
	 drivers/char/char.o drivers/block/block.o drivers/misc/misc.o drivers/net/net.o drivers/media/media.o drivers/char/drm/drm.o drivers/net/appletalk/appletalk.o drivers/ide/idedriver.o drivers/scsi/scsidrv.o drivers/cdrom/driver.o drivers/pci/driver.o drivers/macintosh/macintosh.o drivers/video/video.o drivers/usb/usbdrv.o drivers/input/inputdrv.o drivers/i2c/i2c.o \
	net/network.o \
	/usr/src/5.4.2k/lib/lib.a \
	--end-group \
	-o vmlinux
mm/mm.o: In function `__free_pages_ok':
mm/mm.o(.text+0xdcd0): undefined reference to `__test_and_change_bit'
mm/mm.o(.text+0xdcd0): relocation truncated to fit: R_PPC_REL24 __test_and_change_bit
mm/mm.o: In function `rmqueue':
mm/mm.o(.text+0xdf04): undefined reference to `__change_bit'
mm/mm.o(.text+0xdf04): relocation truncated to fit: R_PPC_REL24 __change_bit
mm/mm.o(.text+0xdfa0): undefined reference to `__change_bit'
mm/mm.o(.text+0xdfa0): relocation truncated to fit: R_PPC_REL24 __change_bit
make: *** [vmlinux] Error 1

I then patched up to 2.4.6, when I encountered the following error:

make[1]: Leaving directory `/usr/src/6.4.2k/arch/ppc/lib'
ld -T arch/ppc/vmlinux.lds -Ttext 0xc0000000 -Bstatic arch/ppc/kernel/head.o init/main.o init/version.o \
	--start-group \
	arch/ppc/kernel/kernel.o arch/ppc/mm/mm.o arch/ppc/lib/lib.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o \
	 drivers/char/char.o drivers/block/block.o drivers/misc/misc.o drivers/net/net.o drivers/media/media.o drivers/char/drm/drm.o drivers/net/appletalk/appletalk.o drivers/ide/idedriver.o drivers/scsi/scsidrv.o drivers/cdrom/driver.o drivers/pci/driver.o drivers/net/wireless/wireless_net.o drivers/macintosh/macintosh.o drivers/video/video.o drivers/usb/usbdrv.o drivers/input/inputdrv.o drivers/i2c/i2c.o \
	net/network.o \
	/usr/src/6.4.2k/lib/lib.a \
	--end-group \
	-o vmlinux
drivers/ide/idedriver.o: In function `pci_init_sl82c105':
drivers/ide/idedriver.o(.text+0xa1b8): undefined reference to `ide_special_settings'
drivers/ide/idedriver.o(.text+0xa1b8): relocation truncated to fit: R_PPC_REL24 ide_special_settings
make: *** [vmlinux] Error 1

I encountered the above error (idedriver.o) on kernels 2.4.6 to 2.4.8 inclusive.
If any more info is necessary, please ask.


--System info (kernel .config's are attachments):

$uname -a	# default Debian Potato 2.2-r3 install
Linux java 2.2.19 #1 Sat Apr 14 23:20:24 CDT 2001 ppc unknown

$cat cpuinfo 
processor       : 0
cpu             : 750
temperature     : 0 C
clock           : 499MHz
revision        : 34.20
bogomips        : 976.98
zero pages      : total 0 (0Kb) current: 0 (0Kb) hits: 0/187 (0%)
machine         : PowerBook4,1
motherboard     : PowerBook4,1 PowerBook2,2 MacRISC2 MacRISC Power Macintosh
L2 cache        : 256K unified
memory          : 64MB
pmac-generation : NewWorld

$cat pci 
PCI devices found:
  Bus  0, device  11, function  0:
    Host bridge: Apple Unknown device (rev 0).
      Vendor id=106b. Device id=27.
      Medium devsel.  Master Capable.  Latency=16.  
  Bus  0, device  16, function  0:
    VGA compatible controller: ATI Unknown device (rev 2).
      Vendor id=1002. Device id=4c46.
      Medium devsel.  Fast back-to-back capable.  IRQ 48.  Master Capable.  Latency=255.  Min Gnt=8.
      Prefetchable 32 bit memory at 0x94000000 [0x94000008].
      I/O at 0x400 [0x401].
      Non-prefetchable 32 bit memory at 0x90000000 [0x90000000].
  Bus  0, device  23, function  0:
    Hot Swap Controller: Apple Unknown device (rev 0).
      Vendor id=106b. Device id=25.
      Medium devsel.  Master Capable.  Latency=16.  
      Non-prefetchable 32 bit memory at 0x80000000 [0x80000000].
  Bus  0, device  24, function  0:
    USB Controller: Apple Unknown device (rev 0).
      Vendor id=106b. Device id=26.
      Medium devsel.  IRQ 27.  Master Capable.  Latency=16.  Min Gnt=3.Max Lat=86.
      Non-prefetchable 32 bit memory at 0x80081000 [0x80081000].
  Bus  0, device  25, function  0:
    USB Controller: Apple Unknown device (rev 0).
      Vendor id=106b. Device id=26.
      Medium devsel.  IRQ 28.  Master Capable.  Latency=16.  Min Gnt=3.Max Lat=86.
      Non-prefetchable 32 bit memory at 0x80080000 [0x80080000].

# lspci -vv
00:0b.0 Host bridge: Apple Computer Inc.: Unknown device 0027
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B-
	Status: Cap+ 66Mhz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
	Latency: 16, cache line size 08
	Capabilities: [80] AGP version 1.0
		Status: RQ=7 SBA+ 64bit- FW- Rate=x1,x2
		Command: RQ=0 SBA- AGP- 64bit- FW- Rate=<none>

00:10.0 VGA compatible controller: ATI Technologies Inc Mobility M3 AGP 2x (rev 02) (prog-if 00 [VGA])
	Subsystem: ATI Technologies Inc Mobility M3 AGP 2x
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping+ SERR- FastB2B-
	Status: Cap+ 66Mhz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
	Latency: 255 (2000ns min), cache line size 08
	Interrupt: pin A routed to IRQ 48
	Region 0: Memory at 94000000 (32-bit, prefetchable)
	Region 1: I/O ports at 0400 [disabled]
	Region 2: Memory at 90000000 (32-bit, non-prefetchable)
	Expansion ROM at 90020000 [disabled]
	Capabilities: [50] AGP version 2.0
		Status: RQ=31 SBA+ 64bit- FW- Rate=x1,x2
		Command: RQ=0 SBA+ AGP- 64bit- FW- Rate=<none>
	Capabilities: [5c] Power Management version 2
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:17.0 Class ff00: Apple Computer Inc.: Unknown device 0025
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B-
	Status: Cap- 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
	Latency: 16, cache line size 08
	Region 0: Memory at 80000000 (32-bit, non-prefetchable)

00:18.0 USB Controller: Apple Computer Inc.: Unknown device 0026 (prog-if 10 [OHCI])
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
	Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
	Latency: 16 (750ns min, 21500ns max)
	Interrupt: pin A routed to IRQ 27
	Region 0: Memory at 80081000 (32-bit, non-prefetchable)
	Capabilities: [50] Power Management version 2
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1+,D2+,D3hot+,D3cold-)
		Status: D0 PME-Enable- DSel=0 DScale=1 PME-

00:19.0 USB Controller: Apple Computer Inc.: Unknown device 0026 (prog-if 10 [OHCI])
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
	Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
	Latency: 16 (750ns min, 21500ns max)
	Interrupt: pin A routed to IRQ 28
	Region 0: Memory at 80080000 (32-bit, non-prefetchable)
	Capabilities: [50] Power Management version 2
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1+,D2+,D3hot+,D3cold-)
		Status: D0 PME-Enable- DSel=0 DScale=1 PME-

$

	--xsdg
-- 
|---------------------------------------------------|
|             Hit any user to continue.             |
|---------------------------------------------------|
| http://xsdg.hypermart.net       xsdg@softhome.net |
|---------------------------------------------------|

[-- Attachment #2: configs.tar.bz2 --]
[-- Type: application/x-bzip2, Size: 8020 bytes --]

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

* Re: PPC kernel compiles fail (2.4.5 to 2.4.9 inclusive) due to ide problems/vt problems
  2001-09-01 12:55 PPC kernel compiles fail (2.4.5 to 2.4.9 inclusive) due to ide problems/vt problems xsdg
@ 2001-09-01 19:09 ` Tom Rini
  2001-09-02  2:04   ` xsdg
  0 siblings, 1 reply; 3+ messages in thread
From: Tom Rini @ 2001-09-01 19:09 UTC (permalink / raw)
  To: xsdg; +Cc: linux-kernel

On Sat, Sep 01, 2001 at 12:55:39PM +0000, xsdg wrote:

> Please CC me as I am not subscribed to the list.  My only goal now is to get
> a kernel running (2.4 is necessary for Airport support).  The computer is a
> brand-new Apple TiBook.

Try 2.4.8.  I'd point you at a URL for the PPC trees, but the machine is
moving right now.

-- 
Tom Rini (TR1265)
http://gate.crashing.org/~trini/

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

* Re: PPC kernel compiles fail (2.4.5 to 2.4.9 inclusive) due to ide problems/vt problems
  2001-09-01 19:09 ` Tom Rini
@ 2001-09-02  2:04   ` xsdg
  0 siblings, 0 replies; 3+ messages in thread
From: xsdg @ 2001-09-02  2:04 UTC (permalink / raw)
  To: linux-kernel

On Sat, Sep 01, 2001 at 12:09:00PM -0700, Tom Rini wrote:
> On Sat, Sep 01, 2001 at 12:55:39PM +0000, xsdg wrote:
> 
> > Please CC me as I am not subscribed to the list.  My only goal now is to get
> > a kernel running (2.4 is necessary for Airport support).  The computer is a
> > brand-new Apple TiBook.
> 
> Try 2.4.8.  I'd point you at a URL for the PPC trees, but the machine is
> moving right now.

I tried 2.4.8, which didn't work.  I did compile the airport module, but it had
unresolved symbols...  I ended up trying 2.4.9-ac1, which was the first kernel
to actually compile.  I then compiled -ac2, which did let the airport work :o)
Finally, I got a benh kernel off someone on #debianppc (openprojects), which
compiled, but which I haven't tried yet.

> -- 
> Tom Rini (TR1265)
> http://gate.crashing.org/~trini/

-- 
|---------------------------------------------------|
|             Hit any user to continue.             |
|---------------------------------------------------|
| http://xsdg.hypermart.net       xsdg@softhome.net |
|---------------------------------------------------|

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

end of thread, other threads:[~2001-09-02  2:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-01 12:55 PPC kernel compiles fail (2.4.5 to 2.4.9 inclusive) due to ide problems/vt problems xsdg
2001-09-01 19:09 ` Tom Rini
2001-09-02  2:04   ` xsdg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).