* IP32 - issues with last CVS snapshoot
@ 2005-02-11 17:42 Frederic TEMPORELLI - astek
2005-02-11 18:14 ` Stephen P. Becker
0 siblings, 1 reply; 10+ messages in thread
From: Frederic TEMPORELLI - astek @ 2005-02-11 17:42 UTC (permalink / raw)
To: linux-mips
Hello,
I've been able to compile and launch 2.6.11-rc3 from last CVS snapshoot.
First, there's something wrong with "make ip32_defconfig" which generate
config file with "Kernel code model = 64-bit kernel" (MIPS64=y) but
doesn't preselect "Use 64-bit ELF format for building" (BUILD_ELF64=n)
doing so, "make" quickly generates an error:
---
CC init/main.o
Assembler messages:
Error: -mgp64 used with a 32-bit ABI
---
not too difficult to correct (I'm compiling the kernel on the O2, so I
also need to "make menuconf" for removing cross compilation...)
Then, may be something to explain: arcboot (3.8.5) can't load ELF64
vmlinuz (I've a segment violation) but is able to load ELF32
(vmlinuz.32) image... Can you confirm that ELF64 are still running with
arcboot 3.8.5 ?
At last, there are two (non critical) issues when using the kernel:
- kernel is reporting only 186MBytes of RAM (384 MBytes avail.). Seems
that last Ilya's patch ("full-memV3") is already integrated in this CVS
snap...
- segmentation fault when using swap
At the end of this mail, the boot full dump (arcboot + kernel)
Hope this will help.
Best regards.
Frederic TEMPORELLI
PS: now my O2 is booted on serial port... nice for dump
=========================================
arcsboot: ARCS Linux ext2fs loader 0.3.8.5
stack starts at: 0xa13faff8
Free Memory(3) segment found at (0x80002000,0x80d50000).
Adding 8192 bytes at 0x80002000 to the list of available memory
Free Memory(3) segment found at (0x81400000,0x81404000).
Free Memory(3) segment found at (0x81412000,0x8c000000).
Adding 180281344 bytes at 0x81412000 to the list of available memory
mylinux32 is not an envVar
Command line:
0: scsi(0)disk(1)rdisk(0)partition(8)/ext2debu
1: mylinux32
2: ConsoleIn=serial(0)
3: ConsoleOut=serial(0)
4: SystemPartition=scsi(0)disk(1)rdisk(0)partition(8)
5: OSLoader=ext2debu
6: OSLoadPartition=scsi(0)disk(1)rdisk(0)partition(0)
7: OSLoadFilename=linux64
OSLoadPartition: scsi(0)disk(1)rdisk(0)partition(0)
OSLoadFilename: mylinux32
Loading mylinux32 from scsi(0)disk(1)rdisk(0)partition(0)
Allocated 0x20 bytes for segments
Loading 32-bit executable
Loading program segment 1 at 0x80004000, offset=0x4000, size = 0x6d1086
6e4000 (cache: 96.2%)
Zeroing memory at 0x806d5086, size = 0x2df9a
Command line after config file:
0: /boot/myvmlinux32
1: root=/dev/sda1
Kernel entry: 0x0 8065f000
--- Debug: press <spacebar> to boot kernel ---
Starting ELF32 kernel
Linux version 2.6.11-rc3 (root@o2) (gcc version 3.4.4 20041218
(prerelease) (Deb
ian 3.4.3-6)) #7 Fri Feb 11 16:03:44 UTC 2005
ARCH: SGI-IP32
PROMLIB: ARC firmware Version 1 Revision 10
CRIME id a rev 1 at 0x0000000014000000
CRIME MC: bank 0 base 0x0000000000000000 size 33554432MB
CRIME MC: bank 1 base 0x0000000002000000 size 33554432MB
CRIME MC: bank 2 base 0x0000000004000000 size 33554432MB
CRIME MC: bank 3 base 0x0000000006000000 size 33554432MB
CRIME MC: bank 4 base 0x0000000008000000 size 33554432MB
CRIME MC: bank 5 base 0x000000000a000000 size 33554432MB
CPU revision is: 00002321
FPU revision is: 00002310
Determined physical RAM map:
memory: 000000000c000000 @ 0000000000000000 (usable)
Built 1 zonelists
Kernel command line: root=/dev/sda1
Primary instruction cache 32kB, physically tagged, 2-way, linesize 32 bytes.
Primary data cache 32kB, 2-way, linesize 32 bytes.
R5000 SCACHE size 1024kB, linesize 32 bytes.
Synthesized TLB refill handler (30 instructions).
Synthesized TLB load handler fastpath (44 instructions).
Synthesized TLB store handler fastpath (44 instructions).
Synthesized TLB modify handler fastpath (43 instructions).
PID hash table entries: 1024 (order: 10, 32768 bytes)
Calibrating system timer... 200 MHz CPU detected
Using 100.247 MHz high precision timer.
Console: colour dummy device 80x25
CRIME memory error at 0x0d3fffe0 ST 0x0c00a828<INV,RE,REID=0x28,NONFATAL>
Dentry cache hash table entries: 32768 (order: 6, 262144 bytes)
Inode-cache hash table entries: 16384 (order: 5, 131072 bytes)
Memory: 186048k/196608k available (2627k kernel code, 10304k reserved,
3877k dat
a, 476k init, 0k highmem)
Mount-cache hash table entries: 256 (order: 0, 4096 bytes)
Checking for 'wait' instruction... available.
Checking for the multiply/shift bug... no.
Checking for the daddi bug... no.
Checking for the daddiu bug... no.
NET: Registered protocol family 16
Can't analyze prologue code at ffffffff8028fff0
MACE PCI rev 1
SCSI subsystem initialized
MACEPCI: Master abort at 0x00004000 (C)
Serial: 8250/16550 driver $Revision: 1.90 $ 6 ports, IRQ sharing disabled
ttyS0 at MMIO 0x0 (irq = 53) is a 16550A
ttyS1 at MMIO 0x0 (irq = 59) is a 16550A
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
loop: loaded (max 8 devices)
pktcdvd: v0.2.0a 2004-07-14 Jens Axboe (axboe@suse.de) and petero2@telia.com
eth0: SGI MACE Ethernet rev. 1
PCI: Enabling device 0000:00:01.0 (0046 -> 0047)
ahc_pci:0:1:0: Using left over BIOS settings
PCI: Enabling device 0000:00:02.0 (0046 -> 0047)
ahc_pci:0:2:0: Using left over BIOS settings
scsi0 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 6.2.36
<Adaptec aic7880 Ultra SCSI adapter>
aic7880: Wide Channel A, SCSI Id=0, 16/253 SCBs
Vendor: SGI Model: IBM DCAS-32160W Rev: S68A
Type: Direct-Access ANSI SCSI revision: 02
scsi0:A:1:0: Tagged Queuing enabled. Depth 8
Vendor: SGI Model: IBM DORS-32160W Rev: WA6A
Type: Direct-Access ANSI SCSI revision: 02
scsi0:A:2:0: Tagged Queuing enabled. Depth 8
Vendor: TOSHIBA Model: CD-ROM XM-5701TA Rev: 0167
Type: CD-ROM ANSI SCSI revision: 02
scsi1 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 6.2.36
<Adaptec aic7880 Ultra SCSI adapter>
aic7880: Wide Channel A, SCSI Id=0, 16/253 SCBs
st: Version 20041025, fixed bufsize 32768, s/g segs 256
osst :I: Tape driver with OnStream support version 0.99.3
osst :I: $Id: osst.c,v 1.73 2005/01/01 21:13:34 wriede Exp $
SCSI device sda: 4197405 512-byte hdwr sectors (2149 MB)
SCSI device sda: drive cache: write through
SCSI device sda: 4197405 512-byte hdwr sectors (2149 MB)
SCSI device sda: drive cache: write through
sda: sda1 sda9 sda11
Attached scsi disk sda at scsi0, channel 0, id 1, lun 0
SCSI device sdb: 4197405 512-byte hdwr sectors (2149 MB)
SCSI device sdb: drive cache: write through
SCSI device sdb: 4197405 512-byte hdwr sectors (2149 MB)
SCSI device sdb: drive cache: write through
sdb: sdb1 sdb2 sdb9 sdb11
Attached scsi disk sdb at scsi0, channel 0, id 2, lun 0
sr0: scsi-1 drive
Uniform CD-ROM driver Revision: 3.20
Attached scsi generic sg0 at scsi0, channel 0, id 1, lun 0, type 0
Attached scsi generic sg1 at scsi0, channel 0, id 2, lun 0, type 0
Attached scsi generic sg2 at scsi0, channel 0, id 4, lun 0, type 5
aoe: aoe_init: AoE v2.6-5 initialised.
mice: PS/2 mouse device common for all mice
NET: Registered protocol family 2
IP: routing cache hash table of 2048 buckets, 16Kbytes
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
Initializing IPsec netlink socket
NET: Registered protocol family 1
NET: Registered protocol family 17
NET: Registered protocol family 15
EXT2-fs warning (device sda1): ext2_fill_super: mounting ext3 filesystem
as ext2
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 476k freed
INIT: version 2.84 booting
Loading /etc/console/boottime.kmap.gz
Activating swap.
CPU 0 Unable to handle kernel paging request at virtual address
0000000000000000
, epc == ffffffff80080d20, ra == ffffffff80080c2c
Oops in arch/mips/mm/fault.c::do_page_fault, line 166[#1]:
Cpu 0
$ 0 : 0000000000000000 ffffffff806fe000 0000000000000000 0000000040000000
$ 4 : 0000000000000000 0000000000000040 0000000000000001 0000000000000000
$ 8 : 0000000000008000 0000000000000000 000000000000acba ffffffff802e2800
$12 : 0000000000000028 ffffffff80122898 0000000000000000 ffffffff802d4000
$16 : c000000000036000 0000000000037000 0000000000036000 0000000000036000
$20 : 0000000000000000 ffffffffffffffbf 0000000000036000 0000000000036000
$24 : 0000000000000000 ffffffff80021280
$28 : 980000000ba1c000 980000000ba1fcd0 0000000000000040 ffffffff80080c2c
Hi : 0000000000023184
Lo : 000000000000bb2c
epc : ffffffff80080d20 $L27+0x0/0x4 Not tainted
ra : ffffffff80080c2c $LCFI10+0x4c/0x74
Status: 9001fce3 KX SX UX KERNEL EXL IE
Cause : 00000008
BadVA : 0000000000000000
PrId : 00002321
Process swapon (pid: 26, threadinfo=980000000ba1c000, task=980000000bfcc698)
Stack : 980000000bdebf58 c000000000036000 c000000000036000 ffffffff80702000
0000000000000400 ffffffff80702000 0000000000036000 c000000000035fff
980000000bdebf58 ffffffff806e37f8 0000000000000001 0000000000000035
00000000000000d2 0000000000000040 ffffffff802e2e60 00000000000007df
000000000001a7ea ffffffff80081754 c000000000000000 980000000be32848
ffffffff80081838 0000000000000040 980000000be32848 980000000be32848
980000000bdebf58 ffffffff80081be4 980000000be328d0 0000000000000000
0000000000034fd4 ffffffff806e3848 980000000bae2000 ffffffffffffffea
980000000be35000 980000000b970dd8 980000000132d690 980000000128e170
ffffffff800872c0 ffffffff800868dc 980000000132d5e0 0000000000000000
...
Call Trace:
[<ffffffff80081754>] $L225+0x8/0x2c
[<ffffffff80081838>] $L239+0x8/0x18
[<ffffffff80081be4>] $L324+0x8/0x14
[<ffffffff800872c0>] $L1135+0x50/0x88
[<ffffffff800868dc>] $LBE478+0x2c/0x30
[<ffffffff8009d7b8>] $L37+0x8/0x18
[<ffffffff8001d95c>] handle_sys+0x11c/0x13c
[<ffffffff8001fcf3>] $L14+0x8b/0xb8
Code: 0064b00b 00e2a02d 00000000 <de870000> 3c040000 3c018070
64840000 6421
2000 0004203c
/etc/init.d/rcS: line 99: 26 Segmentation fault swapon -a
2>/dev/null
Checking root file system...
fsck 1.27 (8-Mar-2002)
/dev/sda1: clean, 21432/261120 files, 178974/521846 blocks
ioctl32(hwclock:37): Unknown cmd fd(3) cmd(00004b50){00} arg(7fff7d10)
on /dev/t
ty1
Cannot access the Hardware Clock via any known method.
Use the --debug option to see the details of ouioctl32(hwclock:40):
Unknown cmd
fd(3) cmd(00004b50){00} arg(7fff7d00) on /dev/tty1
r search for an access method.
System tioctl32(hwclock:41): Unknown cmd fd(3) cmd(00004b50){00}
arg(7fff7d10) o
n /dev/tty1
ime was Fri Feb 11 16:35:09 UTC 2005.
Setting the System Clock using the Hardware Clock as reference...
Cannot access the Hardware Clock via any known method.
Use the --debug option to see the details of our search for an access
method.
System Clock set. System local time is now Fri Feb 11 16:35:09 UTC 2005.
Cleaning up ifupdown...done.
Checking all file systems...
fsck 1.27 (8-Mar-2002)
Setting kernel variables ...
... done.
Mounting local filesystems...
none on /dev/pts type devpts (rw,mode=0620)
Running 0dns-down to make sure resolv.conf is ok...done.
Initializing: /etc/network/ifstate.
Aborting iptables load: unknown ruleset, "active".
Setting up IP spoofing protection: rp_filter.
Configuring network interfaces...done.
Starting portmap daemon: portmap.
Loading the saved-state of the serial devices...
/dev/ttyS0 at 0x0000 (irq = 53) is a 16550A
/dev/ttyS1 at 0x0000 (irq = 59) is a 16550A
Setting the System Clock ioctl32(hwclock:117): Unknown cmd fd(3)
cmd(00004b50){0
0} arg(7fff7d10) on /dev/tty1
using the Hardware Clock as reference...
Cannot access the Hardware Clock via any known method.
Use the --debug option to see the details of our search for an access
method.
System Clock set. Local time: Fri Feb 11 16:35:14 UTC 2005
Running ntpdate to synchronize clockError : Name or service not known
.
Cleaning: /tmp /var/lock /var/run.
Initializing random number generator... done.
Recovering nvi editor sessions... done.
Setting up X server socket directory /tmp/.X11-unix...done.
Setting up ICE socket directory /tmp/.ICE-unix...done.
INIT: Entering runlevel: 2
Starting system log daemon: syslogd.
Starting kernel log daemon: klogd.
Setting up IP spoofing protection: rp_filter.
Configuring network interfaces...ifup: interface lo already configured
ifup: interface eth0 already configured
done.
Running ntpdate to synchronize clockError : Name or service not known
.
Starting portmap daemon: portmap.
Starting process accounting: done.
Starting internet superserver: inetd.
Starting OpenBSD Secure Shell server: sshd.
Starting NTP server: ntpd.
Starting deferred execution scheduler: atd.
Starting periodic command scheduler: cron.
Debian GNU/Linux 3.1 o2 ttyS0
=========================================
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: IP32 - issues with last CVS snapshoot
2005-02-11 17:42 IP32 - issues with last CVS snapshoot Frederic TEMPORELLI - astek
@ 2005-02-11 18:14 ` Stephen P. Becker
2005-02-11 18:41 ` Maciej W. Rozycki
2005-02-12 1:54 ` Ralf Baechle
0 siblings, 2 replies; 10+ messages in thread
From: Stephen P. Becker @ 2005-02-11 18:14 UTC (permalink / raw)
To: Frederic TEMPORELLI - astek; +Cc: linux-mips
Frederic TEMPORELLI - astek wrote:
> Hello,
>
> I've been able to compile and launch 2.6.11-rc3 from last CVS snapshoot.
>
> First, there's something wrong with "make ip32_defconfig" which generate
> config file with "Kernel code model = 64-bit kernel" (MIPS64=y) but
> doesn't preselect "Use 64-bit ELF format for building" (BUILD_ELF64=n)
> doing so, "make" quickly generates an error:
O2 doesn't use 64-bit ELF format. You have to use o64. See the
arch/mips/Makefile portion of http://dev.gentoo.org/~geoman/cvs.diff for
the proper changes. I'm willing to bet a lot of your problems will go
away if you stop using ELF64. Such a kernel will boot, but it never
quite works right. Not only that, but 64-bit kernels have had some
major problems in 2.6.11 so far that I'm not sure Ralf has completely
fixed just yet. Last I knew swap still didn't work, so I bet that is
where your swap problem is coming from.
Steve
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: IP32 - issues with last CVS snapshoot
2005-02-11 18:14 ` Stephen P. Becker
@ 2005-02-11 18:41 ` Maciej W. Rozycki
2005-02-11 18:58 ` Ilya A. Volynets-Evenbakh
2005-02-12 1:54 ` Ralf Baechle
1 sibling, 1 reply; 10+ messages in thread
From: Maciej W. Rozycki @ 2005-02-11 18:41 UTC (permalink / raw)
To: Stephen P. Becker; +Cc: Frederic TEMPORELLI - astek, linux-mips
On Fri, 11 Feb 2005, Stephen P. Becker wrote:
> > First, there's something wrong with "make ip32_defconfig" which generate
> > config file with "Kernel code model = 64-bit kernel" (MIPS64=y) but
> > doesn't preselect "Use 64-bit ELF format for building" (BUILD_ELF64=n)
> > doing so, "make" quickly generates an error:
>
> O2 doesn't use 64-bit ELF format. You have to use o64. See the
O64 isn't a supported ABI for Linux. It's a crazy ad-hoc hack that
shouldn't be used at all. Code to handle it somehow may still exist in
binutils, but it's abandoned -- nobody bothers checking if it still works.
With the upcoming explicit reloc support for non-PIC code in GCC 4.0 it
won't work at all anymore.
> arch/mips/Makefile portion of http://dev.gentoo.org/~geoman/cvs.diff for the
> proper changes. I'm willing to bet a lot of your problems will go away if you
> stop using ELF64. Such a kernel will boot, but it never quite works right.
If you have a problem with n64 binaries, then either you have broken
tools or there is a bug in the platform-dependent code somewhere --
probably some inline asm forgetting about the %higher and %highest
relocations. Check your tools (I'd recommend GCC 3.4.3 and binutils 2.15)
and if they're fine, then file a bug report. N64 binaries work for
several platforms (I've tested three myself; I'm sure others did that
for others as well).
Regardless of the format used for building, the final executable is
converted to ELF32 or ELF64 if necessary to suit the bootloader used, as
controlled by the CONFIG_BOOT_ELF32 and CONFIG_BOOT_ELF64 options.
Maciej
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: IP32 - issues with last CVS snapshoot
2005-02-11 18:41 ` Maciej W. Rozycki
@ 2005-02-11 18:58 ` Ilya A. Volynets-Evenbakh
2005-02-11 19:27 ` Maciej W. Rozycki
0 siblings, 1 reply; 10+ messages in thread
From: Ilya A. Volynets-Evenbakh @ 2005-02-11 18:58 UTC (permalink / raw)
To: Maciej W. Rozycki
Cc: Stephen P. Becker, Frederic TEMPORELLI - astek, linux-mips
O64 may not be supported ABI, but it provides us with a feature that is
really usefull:
specifically, it generates 32 bit symbol addresses instead of 64 bit
ones. This cuts
down on code size considerably. If this feature was implemented in
toolchain as separate
switch, O64 hack could go away.
With that said, you are of course right - IP32 code and some drivers are
broken, because
they do rely on this feature in many places.
This also means - for a user it isn't recommended to use ElF64 kernel ;-)
Maciej W. Rozycki wrote:
>On Fri, 11 Feb 2005, Stephen P. Becker wrote:
>
>
>
>>>First, there's something wrong with "make ip32_defconfig" which generate
>>>config file with "Kernel code model = 64-bit kernel" (MIPS64=y) but
>>>doesn't preselect "Use 64-bit ELF format for building" (BUILD_ELF64=n)
>>>doing so, "make" quickly generates an error:
>>>
>>>
>>O2 doesn't use 64-bit ELF format. You have to use o64. See the
>>
>>
>
> O64 isn't a supported ABI for Linux. It's a crazy ad-hoc hack that
>shouldn't be used at all. Code to handle it somehow may still exist in
>binutils, but it's abandoned -- nobody bothers checking if it still works.
>With the upcoming explicit reloc support for non-PIC code in GCC 4.0 it
>won't work at all anymore.
>
>
>
>>arch/mips/Makefile portion of http://dev.gentoo.org/~geoman/cvs.diff for the
>>proper changes. I'm willing to bet a lot of your problems will go away if you
>>stop using ELF64. Such a kernel will boot, but it never quite works right.
>>
>>
>
> If you have a problem with n64 binaries, then either you have broken
>tools or there is a bug in the platform-dependent code somewhere --
>probably some inline asm forgetting about the %higher and %highest
>relocations. Check your tools (I'd recommend GCC 3.4.3 and binutils 2.15)
>and if they're fine, then file a bug report. N64 binaries work for
>several platforms (I've tested three myself; I'm sure others did that
>for others as well).
>
> Regardless of the format used for building, the final executable is
>converted to ELF32 or ELF64 if necessary to suit the bootloader used, as
>controlled by the CONFIG_BOOT_ELF32 and CONFIG_BOOT_ELF64 options.
>
> Maciej
>
>
>
--
Ilya A. Volynets-Evenbakh
Total Knowledge. CTO
http://www.total-knowledge.com
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: IP32 - issues with last CVS snapshoot
2005-02-11 18:58 ` Ilya A. Volynets-Evenbakh
@ 2005-02-11 19:27 ` Maciej W. Rozycki
2005-02-11 19:34 ` Ilya A. Volynets-Evenbakh
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Maciej W. Rozycki @ 2005-02-11 19:27 UTC (permalink / raw)
To: Ilya A. Volynets-Evenbakh
Cc: Stephen P. Becker, Frederic TEMPORELLI - astek, linux-mips
On Fri, 11 Feb 2005, Ilya A. Volynets-Evenbakh wrote:
> O64 may not be supported ABI, but it provides us with a feature that is really
> usefull:
> specifically, it generates 32 bit symbol addresses instead of 64 bit ones.
> This cuts
> down on code size considerably. If this feature was implemented in toolchain
> as separate
> switch, O64 hack could go away.
Well, the topic has been beaten to death here, so you don't really need
to illuminate me -- it's only due to this popular request I've implemented
the ability to do 32-bit builds for 64-bit kernel. I just wonder why
people insisting on such a setup don't actually contribute some code to do
that cleanly and keep switching between hacks as they stop working one by
one...
> With that said, you are of course right - IP32 code and some drivers are
> broken, because
> they do rely on this feature in many places.
Having a compiled tree in place these bugs are trivial to track down with
"find", "objdump", "grep" and some usual shell script magic.
Maciej
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: IP32 - issues with last CVS snapshoot
2005-02-11 19:27 ` Maciej W. Rozycki
@ 2005-02-11 19:34 ` Ilya A. Volynets-Evenbakh
2005-02-11 19:50 ` Maciej W. Rozycki
2005-02-11 19:38 ` Stephen P. Becker
2005-02-12 0:53 ` Kumba
2 siblings, 1 reply; 10+ messages in thread
From: Ilya A. Volynets-Evenbakh @ 2005-02-11 19:34 UTC (permalink / raw)
To: Maciej W. Rozycki
Cc: Stephen P. Becker, Frederic TEMPORELLI - astek, linux-mips
Maciej W. Rozycki wrote:
>On Fri, 11 Feb 2005, Ilya A. Volynets-Evenbakh wrote:
>
>
>
>>O64 may not be supported ABI, but it provides us with a feature that is really
>>usefull:
>>specifically, it generates 32 bit symbol addresses instead of 64 bit ones.
>>This cuts
>>down on code size considerably. If this feature was implemented in toolchain
>>as separate
>>switch, O64 hack could go away.
>>
>>
>
> Well, the topic has been beaten to death here, so you don't really need
>to illuminate me -- it's only due to this popular request I've implemented
>the ability to do 32-bit builds for 64-bit kernel.
>
I know
> I just wonder why
>people insisting on such a setup don't actually contribute some code to do
>that cleanly and keep switching between hacks as they stop working one by
>one...
>
>
Because they hope that if they annoy you enough, you'll do it yourself ;-)
--
Ilya A. Volynets-Evenbakh
Total Knowledge. CTO
http://www.total-knowledge.com
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: IP32 - issues with last CVS snapshoot
2005-02-11 19:34 ` Ilya A. Volynets-Evenbakh
@ 2005-02-11 19:50 ` Maciej W. Rozycki
0 siblings, 0 replies; 10+ messages in thread
From: Maciej W. Rozycki @ 2005-02-11 19:50 UTC (permalink / raw)
To: Ilya A. Volynets-Evenbakh
Cc: Stephen P. Becker, Frederic TEMPORELLI - astek, linux-mips
On Fri, 11 Feb 2005, Ilya A. Volynets-Evenbakh wrote:
> > I just wonder why people insisting on such a setup don't actually
> > contribute some code to do that cleanly and keep switching between hacks
> > as they stop working one by one...
> >
> >
> Because they hope that if they annoy you enough, you'll do it yourself ;-)
Well, since the kernel can be built as ELF64 with no trouble, you'd
rather not bet on it. I couldn't care less, sorry... ;-)
Maciej
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: IP32 - issues with last CVS snapshoot
2005-02-11 19:27 ` Maciej W. Rozycki
2005-02-11 19:34 ` Ilya A. Volynets-Evenbakh
@ 2005-02-11 19:38 ` Stephen P. Becker
2005-02-12 0:53 ` Kumba
2 siblings, 0 replies; 10+ messages in thread
From: Stephen P. Becker @ 2005-02-11 19:38 UTC (permalink / raw)
To: Maciej W. Rozycki
Cc: Ilya A. Volynets-Evenbakh, Frederic TEMPORELLI - astek,
linux-mips
Maciej W. Rozycki wrote:
> On Fri, 11 Feb 2005, Ilya A. Volynets-Evenbakh wrote:
>
>
>>O64 may not be supported ABI, but it provides us with a feature that is really
>>usefull:
>>specifically, it generates 32 bit symbol addresses instead of 64 bit ones.
>>This cuts
>>down on code size considerably. If this feature was implemented in toolchain
>>as separate
>>switch, O64 hack could go away.
>
>
> Well, the topic has been beaten to death here, so you don't really need
> to illuminate me -- it's only due to this popular request I've implemented
> the ability to do 32-bit builds for 64-bit kernel. I just wonder why
> people insisting on such a setup don't actually contribute some code to do
> that cleanly and keep switching between hacks as they stop working one by
> one...
>
Well, it wasn't my intention to beat anything to death mentioning the
o64 hack. I'm just pointing out that using n64 for an ip32 kernel
results in a broken kernel at this point in time...plain and simple.
Therefore we have to use this hack. Another point though is that n64
kernels are very large, and apparently ip32 has issues booting kernels
larger than about 8mb. So either way, n64 isn't a good idea for o32 at
this time.
Steve
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: IP32 - issues with last CVS snapshoot
2005-02-11 19:27 ` Maciej W. Rozycki
2005-02-11 19:34 ` Ilya A. Volynets-Evenbakh
2005-02-11 19:38 ` Stephen P. Becker
@ 2005-02-12 0:53 ` Kumba
2 siblings, 0 replies; 10+ messages in thread
From: Kumba @ 2005-02-12 0:53 UTC (permalink / raw)
To: linux-mips
Maciej W. Rozycki wrote:
> On Fri, 11 Feb 2005, Ilya A. Volynets-Evenbakh wrote:
>
>
>>O64 may not be supported ABI, but it provides us with a feature that is really
>>usefull:
>>specifically, it generates 32 bit symbol addresses instead of 64 bit ones.
>>This cuts
>>down on code size considerably. If this feature was implemented in toolchain
>>as separate
>>switch, O64 hack could go away.
>
>
> Well, the topic has been beaten to death here, so you don't really need
> to illuminate me -- it's only due to this popular request I've implemented
> the ability to do 32-bit builds for 64-bit kernel. I just wonder why
> people insisting on such a setup don't actually contribute some code to do
> that cleanly and keep switching between hacks as they stop working one by
> one...
>
I believe it was mentioned at some point in time by someone that using "n32"
inplace of "o64" might have a similar affect of "o64", but I can't recall what
the outcome of that actually was (or whether or not it ever worked).
As if I could be any more vague.
--Kumba
--
--
"Such is oft the course of deeds that move the wheels of the world: small
hands do them because they must, while the eyes of the great are elsewhere."
--Elrond
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: IP32 - issues with last CVS snapshoot
2005-02-11 18:14 ` Stephen P. Becker
2005-02-11 18:41 ` Maciej W. Rozycki
@ 2005-02-12 1:54 ` Ralf Baechle
1 sibling, 0 replies; 10+ messages in thread
From: Ralf Baechle @ 2005-02-12 1:54 UTC (permalink / raw)
To: Stephen P. Becker; +Cc: Frederic TEMPORELLI - astek, linux-mips
On Fri, Feb 11, 2005 at 01:14:41PM -0500, Stephen P. Becker wrote:
> >First, there's something wrong with "make ip32_defconfig" which generate
> >config file with "Kernel code model = 64-bit kernel" (MIPS64=y) but
> >doesn't preselect "Use 64-bit ELF format for building" (BUILD_ELF64=n)
> >doing so, "make" quickly generates an error:
>
> O2 doesn't use 64-bit ELF format. You have to use o64. See the
> arch/mips/Makefile portion of http://dev.gentoo.org/~geoman/cvs.diff for
> the proper changes. I'm willing to bet a lot of your problems will go
> away if you stop using ELF64. Such a kernel will boot, but it never
> quite works right. Not only that, but 64-bit kernels have had some
> major problems in 2.6.11 so far that I'm not sure Ralf has completely
> fixed just yet. Last I knew swap still didn't work, so I bet that is
> where your swap problem is coming from.
I fixed that also but it's still not stable. As a test I did rebuild
e2fsutils and it did panic after a while. So midnight oil to the rescue ...
Ralf
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2005-02-12 1:54 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-11 17:42 IP32 - issues with last CVS snapshoot Frederic TEMPORELLI - astek
2005-02-11 18:14 ` Stephen P. Becker
2005-02-11 18:41 ` Maciej W. Rozycki
2005-02-11 18:58 ` Ilya A. Volynets-Evenbakh
2005-02-11 19:27 ` Maciej W. Rozycki
2005-02-11 19:34 ` Ilya A. Volynets-Evenbakh
2005-02-11 19:50 ` Maciej W. Rozycki
2005-02-11 19:38 ` Stephen P. Becker
2005-02-12 0:53 ` Kumba
2005-02-12 1:54 ` Ralf Baechle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox