* Booting an Ultra sparc with 2.6
@ 2004-09-13 14:38 Luis R. Rodriguez
2004-09-13 17:35 ` Clemens Buchacher
` (21 more replies)
0 siblings, 22 replies; 23+ messages in thread
From: Luis R. Rodriguez @ 2004-09-13 14:38 UTC (permalink / raw)
To: sparclinux
Hi all,
I've been trying to boot 2.6 on an ultra sparc and just can't seem to
get it to work. I've read in some outdated docs the kernel must be <
~3MB, and that compression is sometimes flaky. Is any of this
information correct?
Thanks,
Luis
--
GnuPG Key fingerprint = 113F B290 C6D2 0251 4D84 A34A 6ADD 4937 E20A 525E
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: Booting an Ultra sparc with 2.6
2004-09-13 14:38 Booting an Ultra sparc with 2.6 Luis R. Rodriguez
@ 2004-09-13 17:35 ` Clemens Buchacher
2004-09-13 22:21 ` Luis R. Rodriguez
` (20 subsequent siblings)
21 siblings, 0 replies; 23+ messages in thread
From: Clemens Buchacher @ 2004-09-13 17:35 UTC (permalink / raw)
To: sparclinux
On Mon, Sep 13, 2004 at 10:38:11AM -0400, Luis R. Rodriguez wrote:
> [...] I've read in some outdated docs the kernel must be <
> ~3MB, and that compression is sometimes flaky. Is any of this
> information correct?
The UltraLinux FAQ claims it must be smaller ~2.6 MB, but I cannot tell
if this information is up-to-date either.
http://www.ultralinux.org/faq.html#q_4_10
Clemens
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: Booting an Ultra sparc with 2.6
2004-09-13 14:38 Booting an Ultra sparc with 2.6 Luis R. Rodriguez
2004-09-13 17:35 ` Clemens Buchacher
@ 2004-09-13 22:21 ` Luis R. Rodriguez
2004-09-13 22:38 ` David S. Miller
` (19 subsequent siblings)
21 siblings, 0 replies; 23+ messages in thread
From: Luis R. Rodriguez @ 2004-09-13 22:21 UTC (permalink / raw)
To: sparclinux
On Tue, Sep 14, 2004 at 07:22:29PM +0200, Clemens Buchacher wrote:
> On Mon, Sep 13, 2004 at 10:38:11AM -0400, Luis R. Rodriguez wrote:
> > [...] I've read in some outdated docs the kernel must be <
> > ~3MB, and that compression is sometimes flaky. Is any of this
> > information correct?
>
> The UltraLinux FAQ claims it must be smaller ~2.6 MB, but I cannot tell
> if this information is up-to-date either.
>
> http://www.ultralinux.org/faq.html#q_4_10
>
> Clemens
Thank Clemens, yes that is where I had read it. That documentation
seemed horribly out of date though. I also would like an explanation as
to this 2.6 MB kernel size limitation.
Luis
--
GnuPG Key fingerprint = 113F B290 C6D2 0251 4D84 A34A 6ADD 4937 E20A 525E
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: Booting an Ultra sparc with 2.6
2004-09-13 14:38 Booting an Ultra sparc with 2.6 Luis R. Rodriguez
2004-09-13 17:35 ` Clemens Buchacher
2004-09-13 22:21 ` Luis R. Rodriguez
@ 2004-09-13 22:38 ` David S. Miller
2004-09-13 22:47 ` Luis R. Rodriguez
` (18 subsequent siblings)
21 siblings, 0 replies; 23+ messages in thread
From: David S. Miller @ 2004-09-13 22:38 UTC (permalink / raw)
To: sparclinux
On Mon, 13 Sep 2004 18:21:02 -0400
mcgrof@studorgs.rutgers.edu (Luis R. Rodriguez) wrote:
> I also would like an explanation as
> to this 2.6 MB kernel size limitation.
It was a bootloader limitation which is fixed in current
SILO bootloader versions.
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: Booting an Ultra sparc with 2.6
2004-09-13 14:38 Booting an Ultra sparc with 2.6 Luis R. Rodriguez
` (2 preceding siblings ...)
2004-09-13 22:38 ` David S. Miller
@ 2004-09-13 22:47 ` Luis R. Rodriguez
2004-09-13 22:49 ` David S. Miller
` (17 subsequent siblings)
21 siblings, 0 replies; 23+ messages in thread
From: Luis R. Rodriguez @ 2004-09-13 22:47 UTC (permalink / raw)
To: sparclinux
On Mon, Sep 13, 2004 at 03:38:45PM -0700, David S. Miller wrote:
> On Mon, 13 Sep 2004 18:21:02 -0400
> mcgrof@studorgs.rutgers.edu (Luis R. Rodriguez) wrote:
>
> > I also would like an explanation as
> > to this 2.6 MB kernel size limitation.
>
> It was a bootloader limitation which is fixed in current
> SILO bootloader versions.
Thanks Dave,
So I should be able to boot a large vmlinux now ? How about compression,
is handling compressed kernels still an issue ? Should I be trying to
boot vmlimux or my own created gzip -9 vmlinux ?
Also why is the compressed kernel not made at `make` time and not put
in:
arch/sparc64/boot/
?
And is there any use to the image built as a result of `make image`? I
know its smaller, but what exactly goes into/out this kernel to make
it smaller?
Luis
--
GnuPG Key fingerprint = 113F B290 C6D2 0251 4D84 A34A 6ADD 4937 E20A 525E
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: Booting an Ultra sparc with 2.6
2004-09-13 14:38 Booting an Ultra sparc with 2.6 Luis R. Rodriguez
` (3 preceding siblings ...)
2004-09-13 22:47 ` Luis R. Rodriguez
@ 2004-09-13 22:49 ` David S. Miller
2004-09-13 23:20 ` Luis R. Rodriguez
` (16 subsequent siblings)
21 siblings, 0 replies; 23+ messages in thread
From: David S. Miller @ 2004-09-13 22:49 UTC (permalink / raw)
To: sparclinux
On Mon, 13 Sep 2004 18:47:13 -0400
mcgrof@studorgs.rutgers.edu (Luis R. Rodriguez) wrote:
> So I should be able to boot a large vmlinux now ? How about compression,
> is handling compressed kernels still an issue ? Should I be trying to
> boot vmlimux or my own created gzip -9 vmlinux ?
It works, but you needn't do that.
> And is there any use to the image built as a result of `make image`? I
> know its smaller, but what exactly goes into/out this kernel to make
> it smaller?
The symbol table is stripped to the bare minimum.
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: Booting an Ultra sparc with 2.6
2004-09-13 14:38 Booting an Ultra sparc with 2.6 Luis R. Rodriguez
` (4 preceding siblings ...)
2004-09-13 22:49 ` David S. Miller
@ 2004-09-13 23:20 ` Luis R. Rodriguez
2004-09-13 23:32 ` David S. Miller
` (15 subsequent siblings)
21 siblings, 0 replies; 23+ messages in thread
From: Luis R. Rodriguez @ 2004-09-13 23:20 UTC (permalink / raw)
To: sparclinux
On Mon, Sep 13, 2004 at 03:49:40PM -0700, David S. Miller wrote:
> On Mon, 13 Sep 2004 18:47:13 -0400
> mcgrof@studorgs.rutgers.edu (Luis R. Rodriguez) wrote:
>
> > So I should be able to boot a large vmlinux now ? How about compression,
> > is handling compressed kernels still an issue ? Should I be trying to
> > boot vmlimux or my own created gzip -9 vmlinux ?
>
> It works, but you needn't do that.
Great, thanks.
> > And is there any use to the image built as a result of `make image`? I
> > know its smaller, but what exactly goes into/out this kernel to make
> > it smaller?
>
> The symbol table is stripped to the bare minimum.
Is the kernel fully functional like this? What's the downside to this?
--
GnuPG Key fingerprint = 113F B290 C6D2 0251 4D84 A34A 6ADD 4937 E20A 525E
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: Booting an Ultra sparc with 2.6
2004-09-13 14:38 Booting an Ultra sparc with 2.6 Luis R. Rodriguez
` (5 preceding siblings ...)
2004-09-13 23:20 ` Luis R. Rodriguez
@ 2004-09-13 23:32 ` David S. Miller
2004-10-26 0:32 ` Luis R. Rodriguez
` (14 subsequent siblings)
21 siblings, 0 replies; 23+ messages in thread
From: David S. Miller @ 2004-09-13 23:32 UTC (permalink / raw)
To: sparclinux
On Mon, 13 Sep 2004 19:20:19 -0400
mcgrof@studorgs.rutgers.edu (Luis R. Rodriguez) wrote:
> > > And is there any use to the image built as a result of `make image`? I
> > > know its smaller, but what exactly goes into/out this kernel to make
> > > it smaller?
> >
> > The symbol table is stripped to the bare minimum.
>
> Is the kernel fully functional like this?
Yes, fully.
> What's the downside to this?
No symbols means it's harder to examine the kernel image
using tools like 'gdb' and 'nm', but System.map still contains
the full symbol table information so even this point is moot.
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: Booting an Ultra sparc with 2.6
2004-09-13 14:38 Booting an Ultra sparc with 2.6 Luis R. Rodriguez
` (6 preceding siblings ...)
2004-09-13 23:32 ` David S. Miller
@ 2004-10-26 0:32 ` Luis R. Rodriguez
2004-10-26 0:38 ` Luis R. Rodriguez
` (13 subsequent siblings)
21 siblings, 0 replies; 23+ messages in thread
From: Luis R. Rodriguez @ 2004-10-26 0:32 UTC (permalink / raw)
To: sparclinux
[-- Attachment #1: Type: text/plain, Size: 808 bytes --]
On Mon, Sep 13, 2004 at 03:38:45PM -0700, David S. Miller wrote:
> On Mon, 13 Sep 2004 18:21:02 -0400
> mcgrof@studorgs.rutgers.edu (Luis R. Rodriguez) wrote:
>
> > I also would like an explanation as
> > to this 2.6 MB kernel size limitation.
>
> It was a bootloader limitation which is fixed in current
> SILO bootloader versions.
OK -- I have silo 1.4.8 and I can't still boot into a 2.6 kernel. I've
tried many things:
a. boot into vmlinux (48MB)
result: image too large
b. boot into vmlinuz (24MB)
result: image too large
c. boot into image (5.1MB)
result: it hangs on trying to boot 2.6.9
and no luck. What version of silo fixed this kernel size limitation?
Also any suggestions?
Luis
--
GnuPG Key fingerprint = 113F B290 C6D2 0251 4D84 A34A 6ADD 4937 E20A 525E
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: Booting an Ultra sparc with 2.6
2004-09-13 14:38 Booting an Ultra sparc with 2.6 Luis R. Rodriguez
` (7 preceding siblings ...)
2004-10-26 0:32 ` Luis R. Rodriguez
@ 2004-10-26 0:38 ` Luis R. Rodriguez
2004-10-26 0:42 ` Luis R. Rodriguez
` (12 subsequent siblings)
21 siblings, 0 replies; 23+ messages in thread
From: Luis R. Rodriguez @ 2004-10-26 0:38 UTC (permalink / raw)
To: sparclinux
On Mon, Oct 25, 2004 at 08:32:12PM -0400, Luis R. Rodriguez wrote:
> On Mon, Sep 13, 2004 at 03:38:45PM -0700, David S. Miller wrote:
> > On Mon, 13 Sep 2004 18:21:02 -0400
> > mcgrof@studorgs.rutgers.edu (Luis R. Rodriguez) wrote:
> >
> > > I also would like an explanation as
> > > to this 2.6 MB kernel size limitation.
> >
> > It was a bootloader limitation which is fixed in current
> > SILO bootloader versions.
>
> OK -- I have silo 1.4.8 and I can't still boot into a 2.6 kernel. I've
> tried many things:
>
> a. boot into vmlinux (48MB)
> result: image too large
> b. boot into vmlinuz (24MB)
> result: image too large
> c. boot into image (5.1MB)
> result: it hangs on trying to boot 2.6.9
>
> and no luck. What version of silo fixed this kernel size limitation?
> Also any suggestions?
>
Oh and this is for a sparc64 (Ultra 5).
Luis
--
GnuPG Key fingerprint = 113F B290 C6D2 0251 4D84 A34A 6ADD 4937 E20A 525E
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: Booting an Ultra sparc with 2.6
2004-09-13 14:38 Booting an Ultra sparc with 2.6 Luis R. Rodriguez
` (8 preceding siblings ...)
2004-10-26 0:38 ` Luis R. Rodriguez
@ 2004-10-26 0:42 ` Luis R. Rodriguez
2004-10-26 2:53 ` David S. Miller
` (11 subsequent siblings)
21 siblings, 0 replies; 23+ messages in thread
From: Luis R. Rodriguez @ 2004-10-26 0:42 UTC (permalink / raw)
To: sparclinux
On Mon, Oct 25, 2004 at 08:38:06PM -0400, Luis R. Rodriguez wrote:
> On Mon, Oct 25, 2004 at 08:32:12PM -0400, Luis R. Rodriguez wrote:
> > On Mon, Sep 13, 2004 at 03:38:45PM -0700, David S. Miller wrote:
> > > On Mon, 13 Sep 2004 18:21:02 -0400
> > > mcgrof@studorgs.rutgers.edu (Luis R. Rodriguez) wrote:
> > >
> > > > I also would like an explanation as
> > > > to this 2.6 MB kernel size limitation.
> > >
> > > It was a bootloader limitation which is fixed in current
> > > SILO bootloader versions.
> >
> > OK -- I have silo 1.4.8 and I can't still boot into a 2.6 kernel. I've
> > tried many things:
> >
> > a. boot into vmlinux (48MB)
> > result: image too large
> > b. boot into vmlinuz (24MB)
> > result: image too large
> > c. boot into image (5.1MB)
> > result: it hangs on trying to boot 2.6.9
> >
> > and no luck. What version of silo fixed this kernel size limitation?
> > Also any suggestions?
> >
>
> Oh and this is for a sparc64 (Ultra 5).
And if this helps too:
silo -v # To get PROM version
IEEE 1275
Luis
--
GnuPG Key fingerprint = 113F B290 C6D2 0251 4D84 A34A 6ADD 4937 E20A 525E
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: Booting an Ultra sparc with 2.6
2004-09-13 14:38 Booting an Ultra sparc with 2.6 Luis R. Rodriguez
` (9 preceding siblings ...)
2004-10-26 0:42 ` Luis R. Rodriguez
@ 2004-10-26 2:53 ` David S. Miller
2004-10-26 6:11 ` Luis R. Rodriguez
` (10 subsequent siblings)
21 siblings, 0 replies; 23+ messages in thread
From: David S. Miller @ 2004-10-26 2:53 UTC (permalink / raw)
To: sparclinux
On Mon, 25 Oct 2004 20:32:12 -0400
mcgrof@studorgs.rutgers.edu (Luis R. Rodriguez) wrote:
> a. boot into vmlinux (48MB)
> result: image too large
Please, why in the world do you need a 48MB kernel
image?
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: Booting an Ultra sparc with 2.6
2004-09-13 14:38 Booting an Ultra sparc with 2.6 Luis R. Rodriguez
` (10 preceding siblings ...)
2004-10-26 2:53 ` David S. Miller
@ 2004-10-26 6:11 ` Luis R. Rodriguez
2004-10-26 6:16 ` Andrew Gaffney
` (9 subsequent siblings)
21 siblings, 0 replies; 23+ messages in thread
From: Luis R. Rodriguez @ 2004-10-26 6:11 UTC (permalink / raw)
To: sparclinux
On Mon, Oct 25, 2004 at 07:53:28PM -0700, David S. Miller wrote:
> On Mon, 25 Oct 2004 20:32:12 -0400
> mcgrof@studorgs.rutgers.edu (Luis R. Rodriguez) wrote:
>
> > a. boot into vmlinux (48MB)
> > result: image too large
>
> Please, why in the world do you need a 48MB kernel
> image?
Hey -- I can reduce the size, sure but that is besides the point. I want
to know the details of the size limitations of the kernel image for
sparc64. You told me last that there was no size limitations, that this
was fixed in the latest version of silo.
Luis
--
GnuPG Key fingerprint = 113F B290 C6D2 0251 4D84 A34A 6ADD 4937 E20A 525E
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: Booting an Ultra sparc with 2.6
2004-09-13 14:38 Booting an Ultra sparc with 2.6 Luis R. Rodriguez
` (11 preceding siblings ...)
2004-10-26 6:11 ` Luis R. Rodriguez
@ 2004-10-26 6:16 ` Andrew Gaffney
2004-10-26 6:28 ` Luis R. Rodriguez
` (8 subsequent siblings)
21 siblings, 0 replies; 23+ messages in thread
From: Andrew Gaffney @ 2004-10-26 6:16 UTC (permalink / raw)
To: sparclinux
Luis R. Rodriguez wrote:
> On Mon, Oct 25, 2004 at 07:53:28PM -0700, David S. Miller wrote:
>
>>On Mon, 25 Oct 2004 20:32:12 -0400
>>mcgrof@studorgs.rutgers.edu (Luis R. Rodriguez) wrote:
>>
>>
>>>a. boot into vmlinux (48MB)
>>> result: image too large
>>
>>Please, why in the world do you need a 48MB kernel
>>image?
>
> Hey -- I can reduce the size, sure but that is besides the point. I want
> to know the details of the size limitations of the kernel image for
> sparc64. You told me last that there was no size limitations, that this
> was fixed in the latest version of silo.
It is something closer to "no unreasonable size limit". I believe the limit is
7.5MB, which should more than enough for *any* kernel you'd ever need to compile.
--
Andrew Gaffney
Network Administrator
Skyline Aeronautics, LLC.
636-357-1548
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: Booting an Ultra sparc with 2.6
2004-09-13 14:38 Booting an Ultra sparc with 2.6 Luis R. Rodriguez
` (12 preceding siblings ...)
2004-10-26 6:16 ` Andrew Gaffney
@ 2004-10-26 6:28 ` Luis R. Rodriguez
2004-10-26 6:32 ` Andrew Gaffney
` (7 subsequent siblings)
21 siblings, 0 replies; 23+ messages in thread
From: Luis R. Rodriguez @ 2004-10-26 6:28 UTC (permalink / raw)
To: sparclinux
On Tue, Oct 26, 2004 at 01:16:04AM -0500, Andrew Gaffney wrote:
> Luis R. Rodriguez wrote:
> >On Mon, Oct 25, 2004 at 07:53:28PM -0700, David S. Miller wrote:
> >
> >>On Mon, 25 Oct 2004 20:32:12 -0400
> >>mcgrof@studorgs.rutgers.edu (Luis R. Rodriguez) wrote:
> >>
> >>
> >>>a. boot into vmlinux (48MB)
> >>> result: image too large
> >>
> >>Please, why in the world do you need a 48MB kernel
> >>image?
> >
> >Hey -- I can reduce the size, sure but that is besides the point. I want
> >to know the details of the size limitations of the kernel image for
> >sparc64. You told me last that there was no size limitations, that this
> >was fixed in the latest version of silo.
>
> It is something closer to "no unreasonable size limit". I believe the limit
> is 7.5MB, which should more than enough for *any* kernel you'd ever need to
> compile.
Andrew, thanks -- and *that* is what I needed. I'll try to reduce my
kernel size now. I swear, I have been trying to limit it as much as I
can already I guess I'll have to try harder :)
Anyone know *why* this 7.5MB limit exists?
Luis
--
GnuPG Key fingerprint = 113F B290 C6D2 0251 4D84 A34A 6ADD 4937 E20A 525E
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: Booting an Ultra sparc with 2.6
2004-09-13 14:38 Booting an Ultra sparc with 2.6 Luis R. Rodriguez
` (13 preceding siblings ...)
2004-10-26 6:28 ` Luis R. Rodriguez
@ 2004-10-26 6:32 ` Andrew Gaffney
2004-10-26 6:46 ` David S. Miller
` (6 subsequent siblings)
21 siblings, 0 replies; 23+ messages in thread
From: Andrew Gaffney @ 2004-10-26 6:32 UTC (permalink / raw)
To: sparclinux
Luis R. Rodriguez wrote:
> On Tue, Oct 26, 2004 at 01:16:04AM -0500, Andrew Gaffney wrote:
>
>>Luis R. Rodriguez wrote:
>>
>>>On Mon, Oct 25, 2004 at 07:53:28PM -0700, David S. Miller wrote:
>>>
>>>
>>>>On Mon, 25 Oct 2004 20:32:12 -0400
>>>>mcgrof@studorgs.rutgers.edu (Luis R. Rodriguez) wrote:
>>>>
>>>>>a. boot into vmlinux (48MB)
>>>>> result: image too large
>>>>
>>>>Please, why in the world do you need a 48MB kernel
>>>>image?
>>>
>>>Hey -- I can reduce the size, sure but that is besides the point. I want
>>>to know the details of the size limitations of the kernel image for
>>>sparc64. You told me last that there was no size limitations, that this
>>>was fixed in the latest version of silo.
>>
>>It is something closer to "no unreasonable size limit". I believe the limit
>>is 7.5MB, which should more than enough for *any* kernel you'd ever need to
>>compile.
>
> Andrew, thanks -- and *that* is what I needed. I'll try to reduce my
> kernel size now. I swear, I have been trying to limit it as much as I
> can already I guess I'll have to try harder :)
>
> Anyone know *why* this 7.5MB limit exists?
So people don't try to boot 48MB kernels? :P
--
Andrew Gaffney
Network Administrator
Skyline Aeronautics, LLC.
636-357-1548
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: Booting an Ultra sparc with 2.6
2004-09-13 14:38 Booting an Ultra sparc with 2.6 Luis R. Rodriguez
` (14 preceding siblings ...)
2004-10-26 6:32 ` Andrew Gaffney
@ 2004-10-26 6:46 ` David S. Miller
2004-10-26 6:48 ` David S. Miller
` (5 subsequent siblings)
21 siblings, 0 replies; 23+ messages in thread
From: David S. Miller @ 2004-10-26 6:46 UTC (permalink / raw)
To: sparclinux
On Tue, 26 Oct 2004 02:11:28 -0400
mcgrof@studorgs.rutgers.edu (Luis R. Rodriguez) wrote:
> Hey -- I can reduce the size, sure but that is besides the point. I want
> to know the details of the size limitations of the kernel image for
> sparc64. You told me last that there was no size limitations, that this
> was fixed in the latest version of silo.
It should be ~8MB these days.
I bet if you just use arch/sparc64/defconfig as your kernel
config the resulting image will work if you have working
compiler tools.
I use just about every 2.6.x release on my Ultra60, SunBlade100
and my SunBlade1000.
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: Booting an Ultra sparc with 2.6
2004-09-13 14:38 Booting an Ultra sparc with 2.6 Luis R. Rodriguez
` (15 preceding siblings ...)
2004-10-26 6:46 ` David S. Miller
@ 2004-10-26 6:48 ` David S. Miller
2004-10-26 9:34 ` Luis R. Rodriguez
` (4 subsequent siblings)
21 siblings, 0 replies; 23+ messages in thread
From: David S. Miller @ 2004-10-26 6:48 UTC (permalink / raw)
To: sparclinux
On Tue, 26 Oct 2004 02:28:19 -0400
mcgrof@studorgs.rutgers.edu (Luis R. Rodriguez) wrote:
> Anyone know *why* this 7.5MB limit exists?
Because we lock the kernel image into the TLB, we use
4MB TLB entries (the largest UltraSPARC currently supports)
and locking 2 entries is what we limit things to.
Use modules dude. Also, strip all debugging information
and unnecessary symbol table entries from your kernel
as well. "make image" helps with this, use the
arch/sparc64/boot/image file that rule creates not
the top-level vmlinux file.
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: Booting an Ultra sparc with 2.6
2004-09-13 14:38 Booting an Ultra sparc with 2.6 Luis R. Rodriguez
` (16 preceding siblings ...)
2004-10-26 6:48 ` David S. Miller
@ 2004-10-26 9:34 ` Luis R. Rodriguez
2004-10-26 9:50 ` Luis R. Rodriguez
` (3 subsequent siblings)
21 siblings, 0 replies; 23+ messages in thread
From: Luis R. Rodriguez @ 2004-10-26 9:34 UTC (permalink / raw)
To: sparclinux
On Mon, Oct 25, 2004 at 11:46:30PM -0700, David S. Miller wrote:
> On Tue, 26 Oct 2004 02:11:28 -0400
> mcgrof@studorgs.rutgers.edu (Luis R. Rodriguez) wrote:
>
> > Hey -- I can reduce the size, sure but that is besides the point. I want
> > to know the details of the size limitations of the kernel image for
> > sparc64. You told me last that there was no size limitations, that this
> > was fixed in the latest version of silo.
>
> It should be ~8MB these days.
>
> I bet if you just use arch/sparc64/defconfig as your kernel
> config the resulting image will work if you have working
> compiler tools.
Ah nice, I didn't know about that file. Will try it when I get home,
thanks :)
> I use just about every 2.6.x release on my Ultra60, SunBlade100
> and my SunBlade1000.
Cool, good to know it does indeed work :)
Luis
--
GnuPG Key fingerprint = 113F B290 C6D2 0251 4D84 A34A 6ADD 4937 E20A 525E
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: Booting an Ultra sparc with 2.6
2004-09-13 14:38 Booting an Ultra sparc with 2.6 Luis R. Rodriguez
` (17 preceding siblings ...)
2004-10-26 9:34 ` Luis R. Rodriguez
@ 2004-10-26 9:50 ` Luis R. Rodriguez
2004-10-27 22:58 ` Adam Kropelin
` (2 subsequent siblings)
21 siblings, 0 replies; 23+ messages in thread
From: Luis R. Rodriguez @ 2004-10-26 9:50 UTC (permalink / raw)
To: sparclinux
On Mon, Oct 25, 2004 at 11:48:13PM -0700, David S. Miller wrote:
> On Tue, 26 Oct 2004 02:28:19 -0400
> mcgrof@studorgs.rutgers.edu (Luis R. Rodriguez) wrote:
>
> > Anyone know *why* this 7.5MB limit exists?
>
> Because we lock the kernel image into the TLB, we use
> 4MB TLB entries (the largest UltraSPARC currently supports)
> and locking 2 entries is what we limit things to.
Interesting! What is a TLB entry though -- a set range of TLB address
space? If the UltraSPARC has a max size 4MB TLB, how can we lock two 4MB TLBs
entries?
> Use modules dude.
I do man, for some reason I just keep getting it bloated. I'll use that
defconfig file now though :)
> Also, strip all debugging information
> and unnecessary symbol table entries from your kernel
> as well.
Well I'm using this as a dev box so I wan to keep this.
> "make image" helps with this, use the
> arch/sparc64/boot/image file that rule creates not
> the top-level vmlinux file.
I tried using that image file and the kernel would hang. Not sure why
:T.
Luis
--
GnuPG Key fingerprint = 113F B290 C6D2 0251 4D84 A34A 6ADD 4937 E20A 525E
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: Booting an Ultra sparc with 2.6
2004-09-13 14:38 Booting an Ultra sparc with 2.6 Luis R. Rodriguez
` (18 preceding siblings ...)
2004-10-26 9:50 ` Luis R. Rodriguez
@ 2004-10-27 22:58 ` Adam Kropelin
2004-10-27 23:57 ` Luis R. Rodriguez
2004-10-28 0:33 ` David S. Miller
21 siblings, 0 replies; 23+ messages in thread
From: Adam Kropelin @ 2004-10-27 22:58 UTC (permalink / raw)
To: sparclinux
Luis R. Rodriguez wrote:
> On Mon, Oct 25, 2004 at 11:48:13PM -0700, David S. Miller wrote:
>> On Tue, 26 Oct 2004 02:28:19 -0400
>> mcgrof@studorgs.rutgers.edu (Luis R. Rodriguez) wrote:
>>
>>> Anyone know *why* this 7.5MB limit exists?
>>
>> Because we lock the kernel image into the TLB, we use
>> 4MB TLB entries (the largest UltraSPARC currently supports)
>> and locking 2 entries is what we limit things to.
>
> Interesting! What is a TLB entry though -- a set range of TLB address
> space? If the UltraSPARC has a max size 4MB TLB, how can we lock two
> 4MB TLBs entries?
Speaking for the general case, since I am not a sparc64 MMU guru: The TLB is
a cache of virtual-to-physical address translations. A TLB holds multiple
enties, each of which provides the translation for a particular region of
address space. The size of the region being mapped is selected from among
the set of possibilities offered by the hardware. What David is saying is
that on sparc64 the largest choice is 4 MB and since, by convention, 2 TLB
entries are reserved for the kernel image that means a max kernel size of 8
MB.
--Adam
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: Booting an Ultra sparc with 2.6
2004-09-13 14:38 Booting an Ultra sparc with 2.6 Luis R. Rodriguez
` (19 preceding siblings ...)
2004-10-27 22:58 ` Adam Kropelin
@ 2004-10-27 23:57 ` Luis R. Rodriguez
2004-10-28 0:33 ` David S. Miller
21 siblings, 0 replies; 23+ messages in thread
From: Luis R. Rodriguez @ 2004-10-27 23:57 UTC (permalink / raw)
To: sparclinux
On Wed, Oct 27, 2004 at 06:58:15PM -0400, Adam Kropelin wrote:
> Luis R. Rodriguez wrote:
> >On Mon, Oct 25, 2004 at 11:48:13PM -0700, David S. Miller wrote:
> >>On Tue, 26 Oct 2004 02:28:19 -0400
> >>mcgrof@studorgs.rutgers.edu (Luis R. Rodriguez) wrote:
> >>
> >>>Anyone know *why* this 7.5MB limit exists?
> >>
> >>Because we lock the kernel image into the TLB, we use
> >>4MB TLB entries (the largest UltraSPARC currently supports)
> >>and locking 2 entries is what we limit things to.
> >
> >Interesting! What is a TLB entry though -- a set range of TLB address
> >space? If the UltraSPARC has a max size 4MB TLB, how can we lock two
> >4MB TLBs entries?
>
> Speaking for the general case, since I am not a sparc64 MMU guru: The TLB
> is a cache of virtual-to-physical address translations. A TLB holds
> multiple enties, each of which provides the translation for a particular
> region of address space. The size of the region being mapped is selected
> from among the set of possibilities offered by the hardware. What David is
> saying is that on sparc64 the largest choice is 4 MB and since, by
> convention, 2 TLB entries are reserved for the kernel image that means a
> max kernel size of 8 MB.
Adam this is great thanks. So -- an entry is just an address space
defined by:
a. Starting memory address
b. Size (availalble options are hardware-specific)
Is this correct?
Also, who is in charge reserving these these 2 TLB entries ? silo?
How big is sparc64's TLB? This is a bit OT but I read something that
said x86 processors have a really small TLB. What do we do on x86 to
boot the kernl? How about other procs?
Also, anyoe here use grub for sparc? How's that going?
Luis
--
GnuPG Key fingerprint = 113F B290 C6D2 0251 4D84 A34A 6ADD 4937 E20A 525E
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: Booting an Ultra sparc with 2.6
2004-09-13 14:38 Booting an Ultra sparc with 2.6 Luis R. Rodriguez
` (20 preceding siblings ...)
2004-10-27 23:57 ` Luis R. Rodriguez
@ 2004-10-28 0:33 ` David S. Miller
21 siblings, 0 replies; 23+ messages in thread
From: David S. Miller @ 2004-10-28 0:33 UTC (permalink / raw)
To: sparclinux
On Wed, 27 Oct 2004 19:57:39 -0400
mcgrof@studorgs.rutgers.edu (Luis R. Rodriguez) wrote:
> Also, who is in charge reserving these these 2 TLB entries ? silo?
> How big is sparc64's TLB? This is a bit OT but I read something that
> said x86 processors have a really small TLB. What do we do on x86 to
> boot the kernl? How about other procs?
The kernel locks these two TLB entires into the MMU. It only locks
one if the kernel image is 4MB or smaller.
We lock these entries into the TLB because the TLB is reloaded by
software trap handlers. Therefore we have to at least lock enough
of the kernel image into the TLB such that the trap handler mappings
itself does not incur a TLB miss.
The x86 processor does TLB replacement in hardware, not software.
So something like this is not needed there.
The number of TLB entries varies by UltraSPARC, 64 in older chips
(pre ultrasparc-III) and 16 (of the kind that can be locked) in
ultrasparc-III and later.
Just make you silly kernel images smaller. My arch/sparc64/boot/image
is typically 3.8MB or smaller. Even if you want all that debugging
information in the kernel image (ie. building with "-g" in cflags or
whatever) you don't need all of that extra stuff in the kernel image
that is actually booted. Copy over the vmlinux file with all the
stuff in it to some place where you can run gdb on it or whatever
it is you need the debugging info for, then use a seperate copy for
booting under /boot and strip the crap out of that file so that it
is as small as possible.
^ permalink raw reply [flat|nested] 23+ messages in thread
end of thread, other threads:[~2004-10-28 0:33 UTC | newest]
Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-13 14:38 Booting an Ultra sparc with 2.6 Luis R. Rodriguez
2004-09-13 17:35 ` Clemens Buchacher
2004-09-13 22:21 ` Luis R. Rodriguez
2004-09-13 22:38 ` David S. Miller
2004-09-13 22:47 ` Luis R. Rodriguez
2004-09-13 22:49 ` David S. Miller
2004-09-13 23:20 ` Luis R. Rodriguez
2004-09-13 23:32 ` David S. Miller
2004-10-26 0:32 ` Luis R. Rodriguez
2004-10-26 0:38 ` Luis R. Rodriguez
2004-10-26 0:42 ` Luis R. Rodriguez
2004-10-26 2:53 ` David S. Miller
2004-10-26 6:11 ` Luis R. Rodriguez
2004-10-26 6:16 ` Andrew Gaffney
2004-10-26 6:28 ` Luis R. Rodriguez
2004-10-26 6:32 ` Andrew Gaffney
2004-10-26 6:46 ` David S. Miller
2004-10-26 6:48 ` David S. Miller
2004-10-26 9:34 ` Luis R. Rodriguez
2004-10-26 9:50 ` Luis R. Rodriguez
2004-10-27 22:58 ` Adam Kropelin
2004-10-27 23:57 ` Luis R. Rodriguez
2004-10-28 0:33 ` David S. Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.