Skip to contentSkip to conversation

linus accessible from within SGI

DISCUSSION Ariel Faigon 13 participants 23 messages Aug 13, 1997 – Aug 18, 1997 1 message not in the archive MIPS

lore
Share & tools
lore
#0 lore raw

Good news:

Looks like the routing problem that prevented many outside .engr to access linus is now fixed.

guest@sgigate 3% traceroute linus.linux.sgi.com
traceroute to linus.linux.sgi.com (192.48.153.197), 30 hops max, 40 byte packets

 1  purgatory.SGI.COM (204.94.209.2)  2 ms  5 ms  3 ms
 2  forbidden (204.94.211.38)  4 ms  14 ms  7 ms
 3  paloalto-cr6.bbnplanet.net (131.119.26.57)  90 ms  105 ms  63 ms
 4  paloalto-cr4.bbnplanet.net (131.119.0.148)  684 ms  113 ms  75 ms
 5  paloalto-cr34.bbnplanet.net (131.119.0.109)  11 ms  15 ms  22 ms
 6  sgi.bbnplanet.net (131.119.16.6)  27 ms  16 ms  24 ms
 7  linus.linux.sgi.com (192.48.153.197)  16 ms  18 ms  18 ms

Roundabout, but working.

Signature · 1 line
Peace, Ariel
#1 lore raw
Quoted 16 lines · Ariel Faigon

Good news:

Looks like the routing problem that prevented many outside .engr to access linus is now fixed.

guest@sgigate 3% traceroute linus.linux.sgi.com
traceroute to linus.linux.sgi.com (192.48.153.197), 30 hops max, 40 byte packets

 1  purgatory.SGI.COM (204.94.209.2)  2 ms  5 ms  3 ms
 2  forbidden (204.94.211.38)  4 ms  14 ms  7 ms
 3  paloalto-cr6.bbnplanet.net (131.119.26.57)  90 ms  105 ms  63 ms
 4  paloalto-cr4.bbnplanet.net (131.119.0.148)  684 ms  113 ms  75 ms
 5  paloalto-cr34.bbnplanet.net (131.119.0.109)  11 ms  15 ms  22 ms
 6  sgi.bbnplanet.net (131.119.16.6)  27 ms  16 ms  24 ms
 7  linus.linux.sgi.com (192.48.153.197)  16 ms  18 ms  18 ms
Quoted 4 lines

Roundabout, but working.

--
Peace, Ariel

Ive been able to rftp to it, and Ive now surf'ed to it but Im still having a hard time getting mirror to work to it.

Has anyone been able to get "mirror" work via socks through our firewall?

I would like to mirror linus.linux on an internal SGI, linux.detroit, which is currntly up and running.

Signature · 18 lines
Eric Kimminau                           System Engineer/RSA
[email protected]                     Silicon Graphics, Inc
Voice: (248) 848-4455                   39001 West 12 Mile Rd.
Fax:   (248) 848-5600                   Farmington, MI 48331-2903

                 VNet Extension - 6-327-4455
              "I speak my mind and no one else's."
       http://www.dcs.ex.ac.uk/~aba/rsa/perl-rsa-sig.html

    When confronted by a difficult problem, solve it by reducing 
    it to the question, "How would the Lone Ranger handle this?"

Windows 95: n.
    32 bit extensions and a graphical shell for a 16 bit patch to an
    8 bit operating system originally coded for a 4 bit microprocessor,
    written by a 2 bit company that can't stand 1 bit of competition.

    Author unknown.
#15 lore raw

clock skew and ethernet timeouts

I've been taking a look at the problem with frequent ethernet transmit timeouts. In addition to the timeouts, I've also seen an occasional duplicate packet being sent in response to pings coming from another machine. I'm debugging somewhat in the dark because I don't have documentation on the indy's DMA controller although the sgihpc.h file has been helpful.

I also noticed that the linux time of day clock falls behind real time whenever these timeouts occur. I decided to take a look at this side of the problem and discovered that interrupts are being turned off for extended periods of time. I modified the timer interrupt handler to print a message if it detects a missed system tick. Sure enough, every ethernet timeout is accompanied by a message coming from the timer interrupt. The message indicates that the timer interrupt was held off for as much as 45ms!

Here's the change I made to indy_timer_interrupt() in indy_timers.c:

	/* Ack timer and compute new compare. */
#if 0
	r4k_cur = (read_32bit_cp0_register(CP0_COUNT) + r4k_offset);
#else
	count = read_32bit_cp0_register(CP0_COUNT);
	if ((count - r4k_cur) >= r4k_offset) {
		printk("missed heartbeat: r4k_cur[0x%x] count[0x%x]\n",
		       r4k_cur, count);
		r4k_cur = count + r4k_offset;
	}
	else
	    r4k_cur += r4k_offset;

#endif

The original code which calculates the next value for the CP0_COMPARE register introduces skew by basing it on the current value of the CP0_COUNT register rather than the previous CP0_COMPARE value. But as it turns out, that little bit of skew is preferable to the large skew that would result whenever the timer interrupt is held off too long.

Anyway, I'm going to be away from the office until 19 August, so I'll pick it up then unless someone else finds it first. It seems likely that the enet timeouts are the result of interrupts being turned off too long, but if that's not the case, can someone point me to some documentation for the indy's dma controller? I have some suspicions of race conditions when setting up new DMA buffers, but I'd like to have a document before I try various fixes.

--
Mark Salter
[email protected]

#2 lore raw
In reply to Eric Kimminau

|Has anyone been able to get "mirror" work via socks through our |firewall?

By 'mirror', I take it you mean the perl mirror program. :)

The more general question is: How do you get perl TCP/IP programs to work over SOCKS? It appears that Simon Cooper, [email protected], is working on a perl module to do that. Suggest you talk with him, or use something else to mirror -- some of the nouveau FTP clients do this, and could probably be easily SOCKSified.

Signature · 4 lines
 Michael J. O'Connor   |  Phone:    +1 (248) 848-4481  |    "Do, or do not.
 39001 W. 12 Mile Rd   |  Fax:      +1 (248) 848-5600  |  There is no try."
 Farmington Hills, MI  |  Internet:       [email protected]  |
 48331-2903  DMR-225   |  http://reality.sgi.com/mjo/  |              -Yoda
#7 lore raw
In reply to a message not in the archive

Hi,

...that's not true.
even today i got routed from the office in Munich to nirvana:

$ /usr/etc/traceroute linus.linux.sgi.com
traceroute to linus.linux.sgi.com (192.48.153.197), 30 hops max, 40 byte
packets
 1  gate-wanmunich.munich.sgi.com (144.253.193.1)  2 ms  1 ms  2 ms
 2  169.238.216.2 (169.238.216.2)  267 ms  286 ms  275 ms
 3  b20wanring.corp.sgi.com (155.11.108.2)  265 ms  266 ms  266 ms
 4  b1wanring.corp.sgi.com (155.11.108.1)  263 ms (ttl=253!)  264 ms (ttl=253!)
 268 ms (ttl=253!)
 5  b1dco-cisco1-141.corp.sgi.com (150.166.141.40)  287 ms (ttl=252!)  268 ms
(ttl=252!)  266 ms (ttl=252!)
 6  gate2-dumpty.corp.sgi.com (150.166.100.61)  336 ms (ttl=251!)  272 ms
(ttl=251!)  262 ms (ttl=251!)
 7  gate2-dumpty.corp.sgi.com (150.166.100.61)  265 ms (ttl=251!) !H  280 ms
(ttl=251!) !H  292 ms (ttl=251!) !H

That's it.

BTW, i'm searching for a kernel image for booting a linux-NFS-root. Does anybody have one, and could give me that ?
(a root-fs i already have)

Regards Wolfgang

Signature · 7 lines
\------------------------------------------------\        _         ______ |
 \  Wolfgang Szoecs   Software Support Engineer   \     /SGI\____-=0`/|0`/__|
  \  Silicon Graphics GmbH, Munich / Germany       \____\Munich     / | /    )
  /         SMTP: [email protected]             /     `/-==_____/__|/__=-|
 / Phone: 0130/112550     | Fax: 089/46108 190    /      *             \ | |
/------------------------------------------------/                     (o)
Redistribution of this message via the Microsoft Network is prohibited
#8 lore raw
Quoted 21 lines · Wolfgang Szoecs

Hi,

...that's not true.
even today i got routed from the office in Munich to nirvana:

$ /usr/etc/traceroute linus.linux.sgi.com
traceroute to linus.linux.sgi.com (192.48.153.197), 30 hops max, 40 byte
packets
 1  gate-wanmunich.munich.sgi.com (144.253.193.1)  2 ms  1 ms  2 ms
 2  169.238.216.2 (169.238.216.2)  267 ms  286 ms  275 ms
 3  b20wanring.corp.sgi.com (155.11.108.2)  265 ms  266 ms  266 ms
 4  b1wanring.corp.sgi.com (155.11.108.1)  263 ms (ttl=253!)  264 ms (ttl=253!)
 268 ms (ttl=253!)
 5  b1dco-cisco1-141.corp.sgi.com (150.166.141.40)  287 ms (ttl=252!)  268 ms
(ttl=252!)  266 ms (ttl=252!)
 6  gate2-dumpty.corp.sgi.com (150.166.100.61)  336 ms (ttl=251!)  272 ms
(ttl=251!)  262 ms (ttl=251!)
 7  gate2-dumpty.corp.sgi.com (150.166.100.61)  265 ms (ttl=251!) !H  280 ms
(ttl=251!) !H  292 ms (ttl=251!) !H
Quoted 7 lines

That's it.

BTW, i'm searching for a kernel image for booting a linux-NFS-root. Does anybody have one, and could give me that ?
(a root-fs i already have)

Regards Wolfgang

You can't traceroute to it. Its outside the firewall. rftp or ssh to it works.

Signature · 18 lines
Eric Kimminau                           System Engineer/RSA
[email protected]                     Silicon Graphics, Inc
Voice: (248) 848-4455                   39001 West 12 Mile Rd.
Fax:   (248) 848-5600                   Farmington, MI 48331-2903

                 VNet Extension - 6-327-4455
              "I speak my mind and no one else's."
       http://www.dcs.ex.ac.uk/~aba/rsa/perl-rsa-sig.html

    When confronted by a difficult problem, solve it by reducing 
    it to the question, "How would the Lone Ranger handle this?"

Windows 95: n.
    32 bit extensions and a graphical shell for a 16 bit patch to an
    8 bit operating system originally coded for a 4 bit microprocessor,
    written by a 2 bit company that can't stand 1 bit of competition.

    Author unknown.
#9 lore raw
In reply to Wolfgang Szoecs

Thus spake Wolfgang Szoecs:

Quoted 3 lines

BTW, i'm searching for a kernel image for booting a linux-NFS-root. Does anybody have one, and could give me that ?
(a root-fs i already have)

Oh yeah, I forgot to tell the list about this:

Miguel gave me his kernel, since I couldn't build one with either my tools or the ones on linus, and I put it up for Jan at ftp://ftp.linux.sgi.com/pub/testing/vmlinux-970813-jwr.gz (You'll need to gunzip it for use.)

Mike

Signature · 6 lines
#> Mike Shaver ([email protected]) Ingenia Communications Corporation 
#>           Resident Linux bigot and kernel hacker. (OOPS!)           
#> `If you get bitten by a bug, tough luck...the one thing I won't do  
#> is feel sorry for you.  In fact, I might ask you to do it all over  
#> again, just to get more information.  I'm a heartless bastard.'     
#>                       -- Linus Torvalds (on development kernels)    
#10 lore raw
Quoted 4 lines · Mike Shaver

Miguel gave me his kernel, since I couldn't build one with either my tools or the ones on linus, and I put it up for Jan at ftp://ftp.linux.sgi.com/pub/testing/vmlinux-970813-jwr.gz (You'll need to gunzip it for use.)

Thank you! I've had a seemingly endless stream of problems with cross compiling a kernel. I will try this out tonight.

- Alex

#3 lore raw
In reply to Michael O'Connor

:
:
:|Has anyone been able to get "mirror" work via socks through our :|firewall?
:
:By 'mirror', I take it you mean the perl mirror program. :) :
:The more general question is: How do you get perl TCP/IP programs :to work over SOCKS? It appears that Simon Cooper, [email protected], is :working on a perl module to do that. Suggest you talk with him, or :use something else to mirror -- some of the nouveau FTP clients :do this, and could probably be easily SOCKSified.
:
In the case of perl it is easy to cross the firewall by simply using a proxy. i.e. you don't need to SOCSify you perl since the proxy (which is SOCKsified) does the job for you.

Enclosed below is a (http) 'GET' script that uses one possible SGI proxy when given the -e option. The method uses is the name of the script so you may symlink it to 'HEAD' for example.

Signature · 105 lines
Peace, Ariel

#!/usr/bin/perl5
#
# perl5+LWP script to fetch a URL
#
# Usage:
#	Get [-e] [-t<timeout>] <URL>
#
# Author:
#	[email protected], 1996
#
use HTTP::Status;
use LWP::UserAgent;
use LWP::Protocol;

{
	#
	# Override these methods. Their default behavior is bad for us.
	#
	package LWP::Protocol; sub use_alarm { shift->_elem('use_alarm', 0); }
	package LWP::UserAgent; sub redirect_ok { 0; }
}


require 'getopts.pl';
&Getopts('t:m:e');

$0 =~ s,.*/,,;

unless ($ARGV[0]) {
    die "Usage: $0 [-e -tTIMEOUT -mMETHOD] URL
	-e	Use a proxy for [e]xternal accesses
	default METHOD is program name
	default TIMEOUT is 7 sec for internal, 14 for external\n";
}

if ($opt_t =~ /^\d+$/) {
    $get_timeout = $opt_t;
} else {
    $get_timeout = 7;
    $get_timeout *= 2 if ($opt_e);
}
($method = $opt_m) || ($method = $0);
$method =~ tr,a-z,A-Z,;

# print "get started\n";
&get($method, $ARGV[0], $get_timeout);


# get($method, $from_url, $timeout)
#       Fetches $url into a $get_contents. Gives up after $timeout sec.
#       returns the HTTP get code (200 for OK etc.)
#
sub get {
    my($method, $url, $timeout) = @_;
    my ($ua, $request, $response);    
    my ($key, $get_rc, $lf);

    $ua = new LWP::UserAgent;
    $ua->use_alarm(1);
    $ua->timeout($timeout);
    $ua->agent("Get-perl5/v1.0");
    if ($opt_e) {
	$ua->proxy([ 'http' ], 'http://www-dms.esd.sgi.com:8080/');
    }

    if ($url =~ m,^/,) {
	$url = 'localhost' . $url;
    }
    unless ($url =~ /^[a-z]+:/) {
	$url = 'http://' . $url;
    }
    $get_content = '';
    $Content_length = '';

    $request = new HTTP::Request($method, $url);
    # $request->push_header('If-Modified-Since' => 'Thu, 01-Jan-70 00:00:00 GMT');

    print STDERR $method, ' ', $url, ': ';

    $response = $ua->request($request);

    $get_rc = $response->code;
    $get_content = $response->content if $response->is_success;
    $error_msg = status_message($get_rc);

    if ($get_rc == 200) {                       # 200: OK
	$Content_length = $response->header('Content-length');
    }
    # Some servers do not send the content length...
    if ($Content_length eq '' &&  $get_content) {
	$Content_length = length($get_content);
    }

    print STDERR $error_msg,
        ($Content_length ? " ($Content_length)" : ''), "\n";

    print STDERR $response->headers_as_string;
    print $get_content;

    $get_rc;
}

__END__
#16 lore raw

Re: clock skew and ethernet timeouts

In reply to Mark Salter
Quoted 9 lines

I also noticed that the linux time of day clock falls behind real time whenever these timeouts occur. I decided to take a look at this side of the problem and discovered that interrupts are being turned off for extended periods of time. I modified the timer interrupt handler to print a message if it detects a missed system tick. Sure enough, every ethernet timeout is accompanied by a message coming from the timer interrupt. The message indicates that the timer interrupt was held off for as much as 45ms!

I've never seen these problems in my configurations. However I've fixed a couple of interrupt realted things which I'll commit into the CVS as soon as I'm in Mountain View. One of these, a console bug might actually have been the cause of the extreme long interrupt disable time you have seen.

There are more thing which need to be reworked with resprect to interrupts. For example cache flushing turns interrupts off for sometimes several thousand cycles even though this is only required for certain buggy CPUs like the R4600 v1.x. And even there are better workarounds. General rule about cli(): Think about it if you really need it. Then think again about it. If you're finished wnd still think cli() might be a good solution, then think once again about it ...

For me the "most wanted - fix on sight" bug is currently a memory corruption problem. Other than that I was able to compile >92mb RPM binaries several times in a row. It's just that that memory corruption problem corrupts disk data structures in memory which might be written back later ...

Ralf

#4 lore raw
In reply to Ariel Faigon
Quoted 4 lines · Ariel Faigon

In the case of perl it is easy to cross the firewall by simply using a proxy. i.e. you don't need to SOCSify you perl since the proxy (which is SOCKsified) does the job for you.

Quoted 8 lines

Enclosed below is a (http) 'GET' script that uses one possible SGI proxy when given the -e option. The method uses is the name of the script so you may symlink it to 'HEAD' for example.

--
Peace, Ariel

Ariel,

Wow, great :) Do you perhaps have a perl script for ftp as well?

Also, I've looked around for a xftp client that works with socks and can also copy recursive directories. Is there something like this available?

Thank you kindly.

David

--

      ,   ,
     { \w/ }
      `>!<`
      (/^\)
      '   '
#17 lore raw

Local disk boot HOWTO

In reply to Ralf Baechle

Has anyone completed a HOWTO for booting from a second local disk yet?

Thanks!
Eric.

Signature · 18 lines
Eric Kimminau                           System Engineer/RSA
[email protected]                     Silicon Graphics, Inc
Voice: (248) 848-4455                   39001 West 12 Mile Rd.
Fax:   (248) 848-5600                   Farmington, MI 48331-2903

                 VNet Extension - 6-327-4455
              "I speak my mind and no one else's."
       http://www.dcs.ex.ac.uk/~aba/rsa/perl-rsa-sig.html

    When confronted by a difficult problem, solve it by reducing 
    it to the question, "How would the Lone Ranger handle this?"

Windows 95: n.
    32 bit extensions and a graphical shell for a 16 bit patch to an
    8 bit operating system originally coded for a 4 bit microprocessor,
    written by a 2 bit company that can't stand 1 bit of competition.

    Author unknown.
#5 lore raw
In reply to David S. de Beer
Quoted 18 lines · David S. de Beer
Quoted 4 lines · Ariel Faigon

In the case of perl it is easy to cross the firewall by simply using a proxy. i.e. you don't need to SOCSify you perl since the proxy (which is SOCKsified) does the job for you.

Quoted 8 lines

Enclosed below is a (http) 'GET' script that uses one possible SGI proxy when given the -e option. The method uses is the name of the script so you may symlink it to 'HEAD' for example.

--
Peace, Ariel

Ariel,

Quoted 8 lines

Wow, great :) Do you perhaps have a perl script for ftp as well?

Also, I've looked around for a xftp client that works with socks and can also copy recursive directories. Is there something like this available?

Thank you kindly.

David

ncftp will do this David. You need the latest version though. The dist on dist.engr:/sgi/hacks is NOT up to date and has problems going through a SOCKS proxy.

Signature · 18 lines
Eric Kimminau                           System Engineer/RSA
[email protected]                     Silicon Graphics, Inc
Voice: (248) 848-4455                   39001 West 12 Mile Rd.
Fax:   (248) 848-5600                   Farmington, MI 48331-2903

                 VNet Extension - 6-327-4455
              "I speak my mind and no one else's."
       http://www.dcs.ex.ac.uk/~aba/rsa/perl-rsa-sig.html

    When confronted by a difficult problem, solve it by reducing 
    it to the question, "How would the Lone Ranger handle this?"

Windows 95: n.
    32 bit extensions and a graphical shell for a 16 bit patch to an
    8 bit operating system originally coded for a 4 bit microprocessor,
    written by a 2 bit company that can't stand 1 bit of competition.

    Author unknown.
#18 lore raw

Re: Local disk boot HOWTO

In reply to Eric Kimminau

Thus spake Eric Kimminau:

Quoted 1 line

Has anyone completed a HOWTO for booting from a second local disk yet?

Do you have a root-mountable filesystem on the second disk? If so:
- put vmlinux on the IRIX /
- boot into sash
boot /vmlinux root=/dev/sdb1

(This is from memory, but it was pretty simple. Once Miguel told me how simple it was, of course. =) )

Mike

Signature · 5 lines
#> Mike Shaver ([email protected]) Ingenia Communications Corporation 
#>       Chief System Architect -- Head geek -- System exorcist        
#>                                                                     
#>   "Have you considered a life?  I hear they're quite affordable     
#>          these days." --- [email protected]                        
#20 lore raw

Re: Local disk boot HOWTO

In reply to Eric Kimminau

Thus spake Eric Kimminau:

Quoted 2 lines

OK, this IS simple enough. Does anyone have a tar of a functional Linux installation I can snag and uncompress on my second disk?

ftp://ftp.linux.sgi.com/pub/mips-linux/root-be-0.00.cpio.gz should work fine.

(20MB, BTW)

Quoted 3 lines

My assumption would be I would then just modify /dev/sdb1/etc/hosts,hostname, etc. for networking and then reboot into Linux?

Something like that.
You can edit them after you reboot, though.

Mike

Signature · 5 lines
#> Mike Shaver ([email protected]) Ingenia Communications Corporation 
#>                 UNIX medicine man -- dark magick, cheap!            
#>                                                                     
#>  When the going gets tough, the tough give cryptic error messages.  
#>          "We believe in rough consensus and running code."          
#19 lore raw

Re: Local disk boot HOWTO

In reply to Mike Shaver
Quoted 10 lines · Mike Shaver

Thus spake Eric Kimminau:

Quoted 1 line

Has anyone completed a HOWTO for booting from a second local disk yet?

Do you have a root-mountable filesystem on the second disk? If so:
- put vmlinux on the IRIX /
- boot into sash
boot /vmlinux root=/dev/sdb1

Quoted 4 lines

(This is from memory, but it was pretty simple. Once Miguel told me how simple it was, of course. =) )

Mike

OK, this IS simple enough. Does anyone have a tar of a functional Linux installation I can snag and uncompress on my second disk?

My assumption would be I would then just modify /dev/sdb1/etc/hosts,hostname, etc. for networking and then reboot into Linux?

If someone can throw up a tar somewhere Ill come get it and linux.detroit will be online today.

Signature · 18 lines
Eric Kimminau                           System Engineer/RSA
[email protected]                     Silicon Graphics, Inc
Voice: (248) 848-4455                   39001 West 12 Mile Rd.
Fax:   (248) 848-5600                   Farmington, MI 48331-2903

                 VNet Extension - 6-327-4455
              "I speak my mind and no one else's."
       http://www.dcs.ex.ac.uk/~aba/rsa/perl-rsa-sig.html

    When confronted by a difficult problem, solve it by reducing 
    it to the question, "How would the Lone Ranger handle this?"

Windows 95: n.
    32 bit extensions and a graphical shell for a 16 bit patch to an
    8 bit operating system originally coded for a 4 bit microprocessor,
    written by a 2 bit company that can't stand 1 bit of competition.

    Author unknown.
#11 lore raw

Re: Local disk boot HOWTO

In reply to a message not in the archive
Quoted 8 lines · Eric Kimminau

Subject: Re: Local disk boot HOWTO

Quoted 6 lines

Do you have a root-mountable filesystem on the second disk? If so:
- put vmlinux on the IRIX /
- boot into sash
boot /vmlinux root=/dev/sdb1

seems to me you'd have to also patch vmlinux to get the device ID correct for the root disk. On Irix you'd have to move /dev/root. I'm not sure what the equivalent might be on linux.... but I'd like to know what the recipe is. I too would like to bring linux up on a secondary disk.

g

#12 lore raw

Re: Local disk boot HOWTO

Thus spake Greg Chesson:

Quoted 6 lines
Quoted 3 lines
Quoted 3 lines

- put vmlinux on the IRIX /
- boot into sash
boot /vmlinux root=/dev/sdb1

seems to me you'd have to also patch vmlinux to get the device ID correct for the root disk.

The root= parameter tells it where its root device is. (It magically parses the [hs]d[ab][0-8] part into major/minor.)

Mike

Signature · 5 lines
#> Mike Shaver ([email protected])      Information Warfare Division  
#> Chief Tactical and Strategic Officer         "Saepe fidelis"        
#>                                                                     
#> "I like your game, but we have to change the rules." -- Anon        
#>                                                                     
#13 lore raw

Re: Local disk boot HOWTO

In reply to Greg Chesson
Quoted 9 lines · Eric Kimminau
Quoted 7 lines

Subject: Re: Local disk boot HOWTO

Quoted 5 lines

Do you have a root-mountable filesystem on the second disk? If so:
- put vmlinux on the IRIX /
- boot into sash
boot /vmlinux root=/dev/sdb1

The receipe is correct.

Quoted 5 lines

seems to me you'd have to also patch vmlinux to get the device ID correct for the root disk. On Irix you'd have to move /dev/root. I'm not sure what the equivalent might be on linux.... but I'd like to know what the recipe is. I too would like to bring linux up on a secondary disk.

My suggestion is to attack the ext2fs disk to a Linux/i386 machine, build the root filesystem etc. on it, then back on the Indy use it for booting. Linux is so smart that it handles the MSDOG partitions on the disk created that way correctly and I store my kernel on the IRIX / anyway.

Ralf

#14 lore raw

Re: Local disk boot HOWTO

Quoted 5 lines

My suggestion is to attack the ext2fs disk to a Linux/i386 machine, build the root filesystem etc. on it, then back on the Indy use it for booting. Linux is so smart that it handles the MSDOG partitions on the disk created that way correctly and I store my kernel on the IRIX / anyway.

Another approach is to create a linux fs the right size for your root on another ext2fs supporting host (ie linux,os/2, win95,macos ;)) and gzip the actual file system, then people can bootstrap it quite easily under irix by just gunzipping to the _right_ ;) raw device

Alan

#21 lore raw

Re: Local disk boot HOWTO

In reply to Eric Kimminau
Quoted 4 lines

Has anyone completed a HOWTO for booting from a second local disk yet?

Thanks!

No, but if you put your Linux kernel on EFS or XFS, you just need to go to the sash boot prompt and from there type:

boot /vmlinux

Miguel.

#22 lore raw

Re: Local disk boot HOWTO

Quoted 11 lines · Miguel de Icaza
Quoted 4 lines

Has anyone completed a HOWTO for booting from a second local disk yet?

Thanks!

No, but if you put your Linux kernel on EFS or XFS, you just need to go to the sash boot prompt and from there type:

boot /vmlinux

Miguel.

This is incorrect. It will not boot off of a second disk with everything on an XFS partition. We ar ejust about to finish the restore to an efs partition and try it that way.

Signature · 18 lines
Eric Kimminau                           System Engineer/RSA
[email protected]                     Silicon Graphics, Inc
Voice: (248) 848-4455                   39001 West 12 Mile Rd.
Fax:   (248) 848-5600                   Farmington, MI 48331-2903

                 VNet Extension - 6-327-4455
              "I speak my mind and no one else's."
       http://www.dcs.ex.ac.uk/~aba/rsa/perl-rsa-sig.html

    When confronted by a difficult problem, solve it by reducing 
    it to the question, "How would the Lone Ranger handle this?"

Windows 95: n.
    32 bit extensions and a graphical shell for a 16 bit patch to an
    8 bit operating system originally coded for a 4 bit microprocessor,
    written by a 2 bit company that can't stand 1 bit of competition.

    Author unknown.
#23 lore raw

Re: clock skew and ethernet timeouts

In reply to Ralf Baechle

Ralf Baechle writes:
...

Quoted 7 lines

There are more thing which need to be reworked with resprect to interrupts. For example cache flushing turns interrupts off for sometimes several thousand cycles even though this is only required for certain buggy CPUs like the R4600 v1.x. And even there are better workarounds. General rule about cli(): Think about it if you really need it. Then think again about it. If you're finished wnd still think cli() might be a good solution, then think once again about it ...

...

In IRIX, I had the cache flushing code, when doing writebacks on
the R4600 and the like, reenable interrupts every page, to limit the wait time (to about 50 us. on an Indy). I patched out the extra instructions to disable and reenable interrupts on processors which did not require them. Assuming that the code uses index invalidate or index writeback invalidate when the buffer is larger than the cache, the invalidate-only case (without writeback) is short enough (5 us. or less) that reenabling interrupts is not needed. The writeback case takes much longer, in the worst case, because each cache line must be written to memory, taking about 400 ns. each on the Indy.