Port-sgimips archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: NetBSD on SGI Indigo w/R3000



Hi,

On 10/24/2017 09:38 AM, Steve Rumble wrote:
On Mon, Oct 23, 2017 at 12:04:29AM +0200, Steve Rumble wrote:
I'll try building a smaller kernel from -current and mail it
to you to try out.

Your web.de's mail server doesn't seem to like mine, so apparently
that never went through.

Sorry, I don't have an own mail server. :-/

 I've uploaded the kernel to Google Drive:
   https://drive.google.com/open?id=0B-q-uYjyLIQnQTdJNG5hdTlURm8

Thank you very much. I now tried this kernel, but the behavior sadly didn't change with it:

```
printenv
netaddr=172.16.2.103
dbaud=9600
rbaud=9600
bootfile=bootp():/AC100267
bootmode=c
console=d
diskless=1
volume=10
path=bootp()
cpufreq=33
boot
Setting $netaddr to 172.16.2.103 (from server )
Obtaining /AC100267 from server
2410832+0+79424 entry: 0x80002000
```

No further output from here on.

How did you manage to get it compiled? Because I now also tried to get a kernel compiled myself: I tried with both NetBSD 6.1.5 and 7.1 (and respective `srcsys.tgz`) on an O2 - the fastest SGI machine I have that is supported by NetBSD - but I never succeed. It always fails early on with the following error:

```
o2# pwd
/usr/src/sys/arch/sgimips/compile/GENERIC32_IP12
o2# time make
[...]
#   compile  compat/kern_exit_43.o
gcc -G 0 -mno-abicalls -msoft-float -ffixed-24 -ffreestanding -fno-zero-initialized-in-bss -O2 -fno-strict-aliasing -fno-common -std=gnu99 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wold-style-definition -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-unreachable-code -Wno-pointer-sign -Wno-attributes -Wno-sign-compare -Dsgimips -I../../. -I../../../../../../../common/include -I../../../../../../arch -I../../../../../.. -nostdinc -DMIPS3_ENABLE_CLOCK_INTR -DMIPS1 -DBLINK -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -std=gnu99 -I../../../../../../lib/libkern/../../../common/lib/libc/quad -I../../../../../../lib/libkern/../../../common/lib/libc/string -I../../../../../../lib/libkern/../../../common/lib/libc/arch/mips/string -I../../../../../../external/bsd/ipf -c ../../../../../../compat/common/kern_exit_43.c -o kern_exit_43.o
objcopy -x  kern_exit_43.o
[...]
#   compile  compat/tty_43.o
gcc -G 0 -mno-abicalls -msoft-float -ffixed-24 -ffreestanding -fno-zero-initialized-in-bss -O2 -fno-strict-aliasing -fno-common -std=gnu99 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wold-style-definition -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-unreachable-code -Wno-pointer-sign -Wno-attributes -Wno-sign-compare -Dsgimips -I../../. -I../../../../../../../common/include -I../../../../../../arch -I../../../../../.. -nostdinc -DMIPS3_ENABLE_CLOCK_INTR -DMIPS1 -DBLINK -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -std=gnu99 -I../../../../../../lib/libkern/../../../common/lib/libc/quad -I../../../../../../lib/libkern/../../../common/lib/libc/string -I../../../../../../lib/libkern/../../../common/lib/libc/arch/mips/string -I../../../../../../external/bsd/ipf -c ../../../../../../compat/common/tty_43.c -o tty_43.o
objcopy -x  tty_43.o
objcopy:tty_43.o: File format not recognized
*** Error code 1

Stop.
make[1]: stopped in /usr/src/sys/arch/sgimips/compile/GENERIC32_IP12/lib/compat
*** Error code 1

Stop.
make: stopped in /usr/src/sys/arch/sgimips/compile/GENERIC32_IP12
       75.07 real        47.19 user        22.90 sys
```

I followed [1] but I can't get it to work.

The other object files in this directory are ELF files, but this specific file is considered "data" by `file`:

```
o2# pwd
/usr/src/sys/arch/sgimips/compile/GENERIC32_IP12_NEW/lib/compat
o2# file kern_exit_43.o
kern_exit_43.o: ELF 32-bit MSB relocatable, MIPS, MIPS-I version 1 (SYSV), not stripped
[...]
o2# file kern_resource_43.o
kern_resource_43.o: ELF 32-bit MSB relocatable, MIPS, MIPS-I version 1 (SYSV), not stripped
[...]
o2# file tty_43.o
tty_43.o: data
```

Even when deactivating all "compat" options I still get this error. Say can you build an Indigo R3k (IP12) kernel with the attached config file? It's stripped down to the assumed minimum, as the machine runs diskless I deactivated support for all on-disk file systems and devices I didn't see in the dmesg of your 1.6T kernel. Maybe the 2.5 MB is still too big, although the header of the config says it should be sufficient to be smaller than 3.5 MB.

Cheers,
Frank

[1]: http://netbsd.org/docs/guide/en/chap-kernel.html

Attachment: GENERIC32_IP12_NEW.gz
Description: application/gzip



Home | Main Index | Thread Index | Old Index