linux-mips
[Top] [All Lists]

RE: kernel sources?

To: linux@cthulhu.engr.sgi.com
Subject: RE: kernel sources?
From: Geert Uytterhoeven <geert@linux-m68k.org>
Date: Wed, 12 Jan 2000 17:19:02 +0100 (CET)
In-reply-to: <XFMail.000111194757.Harald.Koerfgen@home.ivm.de>
Sender: owner-linuxmips@oss.sgi.com
        Hi again,

First of all I would like to thank everyone who replied to my question!

In the mean time I managed to get until setup_arch() (which is after the
printing of the Linux banner :-). However, I'm seeing some very weird things: I
had to #if 0/#endif all code in setup_arch() starting with `strncpy
(command_line, arcs_cmdline, CL_SIZE);', or the system crashes right after

    Loading R4000 MMU routines

(yes, this is before setup_arch()!).

I suspect the ELF loader in PMON to be buggy. I also had to disable all __init
stuff before, because functions marked __init ended up as all `nop' after
tftpboot.  

I thought PMON may have problems with large images, so I disabled some more
config options for stuff I don't need at this stage, but now the #if 0/#endif
trick no longer works neither :-(

Note that I now know I can see `in advance' whether an image will work or not
(read: suffers from the above problem): PMON seems to coalesce two sections
when things go wrong.

Loading a working image using tftpboot:

    Loading elf file: xxx.yyy.zzz.qqq:geert/vmlinux
     0x80080000/1101820 + 0x8018e000/90656 + 0x801a4220/352320 + 2097 syms/
    Entry address is 80080580

Loading a non-working image using tftpboot:

    Loading elf file: xxx.yyy.zzz.qqq:geert/vmlinux
      0x80080000/1192432 + 0x801a31f0/352400 + 2097 syms/
    Entry address is 80080580

`objdump --headers' or `objdump --disassemble-all' don't show anything
suspicious.

I'm using gcc version egcs-2.90.27 980315 (egcs-1.0.2 release) and binutils
version 2.8.1 (mipsel-linux), using BFD version 2.8.1, compiled as crossutils
under Solaris/SPARC from binutils-2.8.1-2.src.rpm and egcs-1.0.2-9.src.rpm.

Anyone with a clue? Thx!

Gr{oetje,eeting}s,
--
Geert Uytterhoeven -- Linux/{m68k~Amiga,PPC~CHRP} -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                                            -- Linus Torvalds


<Prev in Thread] Current Thread [Next in Thread>