Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Sun Blade 100 problems [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc
View previous topic :: View next topic  
Author Message
addeman
Apprentice
Apprentice


Joined: 04 Nov 2004
Posts: 181
Location: Stockholm, Sweden

PostPosted: Fri Aug 11, 2006 12:56 pm    Post subject: Sun Blade 100 problems [solved] Reply with quote

Hi, this is my first ever try at gentoo-install on a sparc. Everything has worked nicely so for using the stage3-sparc64-2006.0. I decided to go with the default-linux/sparc/sparc64/2006.1/ profile and ACCEPT_KEYWORD="~sparc". However when i tried to compile the kernel (vanilla-sources-2.6.18-rc4) i ran into the following:
Code:
gentoo linux # make && make image modules_install
  CHK     include/linux/version.h
  CHK     include/linux/utsrelease.h
  CC      arch/sparc64/kernel/asm-offsets.s
cc1: error: invalid option `medlow'
cc1: error: unrecognized command line option "-fno-stack-protector"
make[1]: *** [arch/sparc64/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2


I searched but i couldn't any info on it. I edited one line in the Makefile
Code:
 CFLAGS          += $(call cc-option, -fno-stack-protector)
to
Code:
CFLAGS          += $(call cc-option)

My guess is that this option is not supported by the shipped gcc-3.4.5, but if that is the case, shouldn't the ebuild pull a later gcc as a dependency?

Best regards
addeman


Last edited by addeman on Tue Aug 22, 2006 1:12 pm; edited 1 time in total
Back to top
View user's profile Send private message
Weeve
Retired Dev
Retired Dev


Joined: 30 Oct 2002
Posts: 641

PostPosted: Fri Aug 11, 2006 9:00 pm    Post subject: Reply with quote

Somehow it sounds like your kernel is not being built with the right instance of gcc. Do you have the sys-devel/gcc-sparc64 package installed and up to date?
Back to top
View user's profile Send private message
addeman
Apprentice
Apprentice


Joined: 04 Nov 2004
Posts: 181
Location: Stockholm, Sweden

PostPosted: Sat Aug 12, 2006 5:10 pm    Post subject: Reply with quote

Well i have what is shipped in the 2006.0 install cd. I don't think it is gcc-sparc64 , just gcc. I'm afraid i can't get any logs as the NVRAM/TOD battery died on me :( I'm hoping to replace it on Monday, and get the EEPROM reset so i can edit it myself (the machine is a workstation from the uni).

What CHOST should i use, the default sparc-unknown-linux-gnu seems a little vague...

Best regards
addeman
Back to top
View user's profile Send private message
Weeve
Retired Dev
Retired Dev


Joined: 30 Oct 2002
Posts: 641

PostPosted: Sat Aug 12, 2006 5:23 pm    Post subject: Reply with quote

That's the CHOST you want. This is due to the fact that the userland is actually in 32 bits while the kernel is 64 bits. Because of this, we have a seperate compiler for the kernel (gcc-sparc64) than we do for userland. When building the kernel, the kernel will normally find this compiler without a problem. However for some reason it isn't for you, and that's why you see the errors you do. Once you get your machine back up, hopefully we can better diagnose it.

Cheers
Back to top
View user's profile Send private message
addeman
Apprentice
Apprentice


Joined: 04 Nov 2004
Posts: 181
Location: Stockholm, Sweden

PostPosted: Mon Aug 14, 2006 7:53 pm    Post subject: Reply with quote

At last the firmware password has been reset :)

Well, turns out that due to a long downtime the clock in the NVRAM/TOD stoped itself. Usualy this wouldn't be a problem as solaris OS has support for 'Kick start'-ing the clock. Is there a similar option for linux-kernels?

Right now i'm installing 2005.1-r1 version as i hope it's more mature...

I'll post back if run into any problems. Great thanks for the help so far!

Best regards
addeman
Back to top
View user's profile Send private message
Weeve
Retired Dev
Retired Dev


Joined: 30 Oct 2002
Posts: 641

PostPosted: Tue Aug 15, 2006 3:16 am    Post subject: Reply with quote

Actually, 2006.0 is more mature than 2005.1-r1 in many ways.

As for the kickstarting feature you talk about, I'm not sure. I haven't run into anything that would do something like what you describe (but that doesn't necessarily mean its not out there).
Back to top
View user's profile Send private message
addeman
Apprentice
Apprentice


Joined: 04 Nov 2004
Posts: 181
Location: Stockholm, Sweden

PostPosted: Tue Aug 15, 2006 8:58 am    Post subject: Reply with quote

Well so far so good! I booted 2005.1-r1 install cd and went with 2005.1-r1 stage3. I choose the 2006.0 profile though and went with sparc stable keyword. This time the kernel booted so right now i'm upgrading my toolchain.

I found one odd thing: if i choose the ondemand governor the network speed drops to ~10k/s !? I find this very strange...

Well now that my initial problem is solved i guess i should mark this [solved]...

Best regards
addeman
Back to top
View user's profile Send private message
addeman
Apprentice
Apprentice


Joined: 04 Nov 2004
Posts: 181
Location: Stockholm, Sweden

PostPosted: Tue Aug 15, 2006 9:30 am    Post subject: Reply with quote

By the way, i noticed one more strangeness: I got some spare sticks of RAM so i thought i'd use them (they're from other sunblade 100), but with 2 256Mb sticks the machine wouldn't boot, no matter how i placed the sticks. I then placed all four 256Mb sticks in it and it works fine. Whats up?

Best regards
addeman
Back to top
View user's profile Send private message
Weeve
Retired Dev
Retired Dev


Joined: 30 Oct 2002
Posts: 641

PostPosted: Tue Aug 15, 2006 6:51 pm    Post subject: Reply with quote

The CPU Frequency Scaling support for the UltraSPARC IIe CPUs hasn't been extensively tested, so while its there, there may be issues.

As for the RAM issue, I'd check the manuals for the Blade 100 on sunsolve.sun.com and see what they say about the RAM configuration and number of chips to work correctly.
Back to top
View user's profile Send private message
addeman
Apprentice
Apprentice


Joined: 04 Nov 2004
Posts: 181
Location: Stockholm, Sweden

PostPosted: Fri Aug 18, 2006 7:23 pm    Post subject: Reply with quote

One, hopefully, last question: What should i do to get X working properly? I emerged xorg-x11-7.1 with appropriate video_cards set in make.conf. At last i found the use of 'ReferenceClock', so now at least X does start. But it's not very useable... I'm useing the 'ati' driver from xorg.

There are some interesting lines in the log:
Code:
II) Loading sub module "i2c"
(II) LoadModule: "i2c"
(II) Loading /usr/lib/xorg/modules/libi2c.so
(II) Module i2c: vendor="X.Org Foundation"
        compiled for 7.1.1, module version = 1.2.0
        ABI class: X.Org Video Driver, version 1.0
(WW) ATI(0): I2C bus Mach64 initialisation failure.
(II) ATI(0): I2C bus "Mach64" removed.
(II) do I need RAC?  No, I don't.
Notice the Mach64 initalisation failure... Would this work better with an older version of xorg? If i do downgrade to stable xorg, will i have to recompile kde?

Best regards
addeman
Back to top
View user's profile Send private message
addeman
Apprentice
Apprentice


Joined: 04 Nov 2004
Posts: 181
Location: Stockholm, Sweden

PostPosted: Tue Aug 22, 2006 1:12 pm    Post subject: Reply with quote

Well i sort of found a solution, however strange it may be... The solution is to set DefaultDepth to 24 in xorg.conf (this applies both to 6.8 and 7.1). Kde is still sluggish though, so i guess i have to buy a pci graphics card to be able to use it :(

Best regards
addeman[/code]
Back to top
View user's profile Send private message
cac
n00b
n00b


Joined: 05 Jun 2006
Posts: 29
Location: Columbus, Ohio

PostPosted: Thu Sep 28, 2006 12:46 pm    Post subject: Reply with quote

For what it is worth here is my xorg.conf from xorg-7.1.1. From my experiences, both xorg-6.8 and 7.1 have been sluggish on the SunBlades 100/150. Worth noting are the commented out options for the chipset; those were inserted by using xorg's config utility, but with those enabled, xorg crashes bad. Another item to note is that I have not been able to get GLX working, which I thought the Mach64 chipsets could support, but I might be mistaken. With GLX enable, when I try out a GL screensaver, xorg crashes with no real error messages. Since I am using these as pretty much dumb terminals, I am not too worried about it, but it would be nice to have. Linux 2.6 and Gnome 2.14 are much much better than Solaris 9... If anyone sees room for improvement, by all means, please let me know.

Code:
Section "ServerLayout"
   Identifier     "X.org Configured"
   Screen      0  "Screen0" 0 0
   InputDevice    "Mouse0" "CorePointer"
   InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
   RgbPath      "/usr/share/X11/rgb"
   ModulePath   "/usr/lib/xorg/modules"
   FontPath    "/usr/share/fonts/misc:unscaled"
        FontPath    "/usr/share/fonts/Type1"
        FontPath    "/usr/share/fonts/TTF"
   FontPath    "/usr/share/fonts/corefonts"
   FontPath    "/usr/share/fonts/freefont"
   FontPath    "/usr/share/fonts/sharefonts"
   FontPath    "/usr/share/fonts/terminus"
   FontPath    "/usr/share/fonts/ttf-bitstream-vera"
   FontPath    "/usr/share/fonts/unifont"
   FontPath    "/usr/share/fonts/75dpi:unscaled"
   FontPath    "/usr/share/fonts/100dpi:unscaled"
   FontPath    "/usr/share/fonts/artwiz"
EndSection

Section "Module"
   #Load  "glx"
   Load  "extmod"
   Load  "dbe"
   Load  "record"
   Load  "xtrap"
   Load  "dri"
   Load  "freetype"
   Load  "type1"
EndSection

Section "InputDevice"
   Identifier  "Keyboard0"
   Driver      "kbd"
   Option "AutoRepeat" "500 30"
EndSection

Section "InputDevice"
   Identifier  "Mouse0"
   Driver      "mouse"
   Option       "Protocol" "ExplorerPS/2"
   Option       "Device" "/dev/input/mice"
EndSection

Section "Monitor"
   Identifier   "Monitor0"
   VendorName   "Sun"
   ModelName    "DP17MO"
   HorizSync   30-75
   VertRefresh 50-160
EndSection

Section "Device"
   Option      "reference_clock" "28.636 MHz"
   Identifier  "Card0"
   Driver      "ati"
   VendorName  "ATI"
   BoardName   "Rage XL"
   #ChipSet     "ati"
   #ChipId      0x4752
   #ChipRev     0x27
   #BusID       "PCI:0:19:0"
EndSection

Section "Screen"
   Identifier "Screen0"
   Device     "Card0"
   Monitor    "Monitor0"
   Subsection "Display"
       Depth       16
       Modes       "1152x864" "1024x768"
       ViewPort    0 0
   EndSubsection
   Subsection "Display"
       Depth       24
       Modes       "1152x864" "1024x768"
       ViewPort    0 0
   EndSubsection
EndSection
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum