Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Compiling 2.6.0 Sparc64 Ultra AXe
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
stonent
Veteran
Veteran


Joined: 07 Aug 2003
Posts: 1139
Location: Texas

PostPosted: Sat Dec 27, 2003 10:44 pm    Post subject: Compiling 2.6.0 Sparc64 Ultra AXe Reply with quote

When I emerged the sparc64 gcc, it had me add an alias to my profile for a sparc64make. When should I use this over a regular make? It did tell me to use it for my kernel, but should I be using it elsewhere as well?

Also, I'm building for sparc64 but my make.conf still says sparc-unknown-linux

I remember reading not to change that otherwise it might crash. I'm installing from stage3 and have not gotten out of the chroot yet. Since emerge just uses make, does that mean everything will be compiled as sparc32?

One other question. During the 2.6.0 kernel compile it crapped out saying /dev/nvram is not valid for the architecture. So since it is in sparc-sources shouldn't that be commented out or something so that you can't even choose it? There seems to be many other invalid options as well. Including agp support that could be enabled as well. I removed /dev/nvram and the compiling continued.
_________________
Inspiron 4100 & Sun UltraAXe
Portage on Solaris|Dell Laptop Hacks
The way you feel about organized religion is the same way I feel about organized socialism.


Last edited by stonent on Tue Dec 30, 2003 8:29 pm; edited 3 times in total
Back to top
View user's profile Send private message
ciaranm
Retired Dev
Retired Dev


Joined: 19 Jul 2003
Posts: 1719
Location: In Hiding

PostPosted: Sun Dec 28, 2003 6:06 am    Post subject: Reply with quote

You should only use sparc64make for 2.6 kernels, and even then it's not necessary. Use sparc-dev-sources for your kernel if you want 2.6.

Don't touch the CHOST.
Back to top
View user's profile Send private message
stonent
Veteran
Veteran


Joined: 07 Aug 2003
Posts: 1139
Location: Texas

PostPosted: Sun Dec 28, 2003 6:28 am    Post subject: Reply with quote

ciaranm wrote:
You should only use sparc64make for 2.6 kernels, and even then it's not necessary. Use sparc-dev-sources for your kernel if you want 2.6.

Don't touch the CHOST.


Yes I'm using the sparc-dev-sources. I've been through about 5 attempts to compile and each time it errors out on something.

What is so special about the sparc sources? It appears to load all the junk for other kernels just like the normal sources.

Menuconfig is a bit different though.
_________________
Inspiron 4100 & Sun UltraAXe
Portage on Solaris|Dell Laptop Hacks
The way you feel about organized religion is the same way I feel about organized socialism.
Back to top
View user's profile Send private message
ciaranm
Retired Dev
Retired Dev


Joined: 19 Jul 2003
Posts: 1719
Location: In Hiding

PostPosted: Sun Dec 28, 2003 6:37 am    Post subject: Reply with quote

sparc-dev-sources contains patches for all the breakages that we've found (except for the ones that we can't fix, like sparc32 SMP). The better menuconfig is thanks to wesolows' Kconfig patch, which makes 2.6 menuconfig usable on sparc.

You didn't say what kinda box you have, but I have working .configs for u1 and u10 (should work on u5 too)... clicky clicky
Back to top
View user's profile Send private message
stonent
Veteran
Veteran


Joined: 07 Aug 2003
Posts: 1139
Location: Texas

PostPosted: Sun Dec 28, 2003 6:43 am    Post subject: Reply with quote

Sorry, I guess I didn't. Ultra AXe,USII-i, Samsung 20gb HD, 256mb ram, Audigy Gamer, CMD USB 1.1 card, Miro TV tuner.

Code:
00:00.0 Host bridge: Sun Microsystems Computer Corp. Ultra IIi
00:01.0 PCI bridge: Sun Microsystems Computer Corp. Simba Advanced PCI Bridge (rev 13)
00:01.1 PCI bridge: Sun Microsystems Computer Corp. Simba Advanced PCI Bridge (rev 13)
01:01.0 Bridge: Sun Microsystems Computer Corp. EBUS (rev 01)
01:01.1 Ethernet controller: Sun Microsystems Computer Corp. Happy Meal (rev 01)
01:02.0 VGA compatible controller: ATI Technologies Inc 3D Rage Pro 215GP (rev 5c)
01:03.0 IDE interface: CMD Technology Inc PCI0646 (rev 03)
02:01.0 Multimedia audio controller: Creative Labs SB Audigy (rev 03)
02:01.1 Input device controller: Creative Labs SB Audigy MIDI/Game port (rev 03)
02:01.2 FireWire (IEEE 1394): Creative Labs SB Audigy FireWire Port
02:02.0 USB Controller: CMD Technology Inc USB0670 (rev 06)
02:03.0 Multimedia video controller: Brooktree Corporation Bt848 Video Capture (rev 12)

lspci -n

00:00.0 Class 0600: 108e:a000   
00:01.0 Class 0604: 108e:5000 (rev 13)
00:01.1 Class 0604: 108e:5000 (rev 13)
01:01.0 Class 0680: 108e:1000 (rev 01)
01:01.1 Class 0200: 108e:1001 (rev 01)
01:02.0 Class 0300: 1002:4750 (rev 5c)
01:03.0 Class 0101: 1095:0646 (rev 03)
02:01.0 Class 0401: 1102:0004 (rev 03)
02:01.1 Class 0980: 1102:7003 (rev 03)
02:01.2 Class 0c00: 1102:4001   
02:02.0 Class 0c03: 1095:0670 (rev 06)
02:03.0 Class 0400: 109e:0350 (rev 12)


Code:
cpu             : TI UltraSparc IIi (Sabre)
fpu             : UltraSparc IIi integrated FPU
promlib         : Version 3 Revision 14
prom            : 3.14.1
type            : sun4u
ncpus probed    : 1
ncpus active    : 1
Cpu0Bogo        : 599.65
Cpu0ClkTck      : 0000000011e1aec7
MMU Type        : Spitfire


I specifically chose hardware that would work in both Linux and Solaris :)
_________________
Inspiron 4100 & Sun UltraAXe
Portage on Solaris|Dell Laptop Hacks
The way you feel about organized religion is the same way I feel about organized socialism.
Back to top
View user's profile Send private message
stonent
Veteran
Veteran


Joined: 07 Aug 2003
Posts: 1139
Location: Texas

PostPosted: Sun Dec 28, 2003 10:08 am    Post subject: Reply with quote

Just booted the kernel and found out... Hey! There are no mach64 drivers. So I get no display but the system boots up.

:evil:
_________________
Inspiron 4100 & Sun UltraAXe
Portage on Solaris|Dell Laptop Hacks
The way you feel about organized religion is the same way I feel about organized socialism.
Back to top
View user's profile Send private message
ciaranm
Retired Dev
Retired Dev


Joined: 19 Jul 2003
Posts: 1719
Location: In Hiding

PostPosted: Sun Dec 28, 2003 10:12 am    Post subject: Reply with quote

stonent wrote:
Just booted the kernel and found out... Hey! There are no mach64 drivers. So I get no display but the system boots up.

Could I please get a .config for that (ciaranm at gentoo.org)? Want to add it to my collection :)
Back to top
View user's profile Send private message
stonent
Veteran
Veteran


Joined: 07 Aug 2003
Posts: 1139
Location: Texas

PostPosted: Sun Dec 28, 2003 7:56 pm    Post subject: Reply with quote

Yeah, I'll work on it later today and send it to you if it works. I had to strip the one that the other .config file created because it was too big for Silo.

Also, strangely enough, sparc64make install (or make install) doesn't work. I have to manually copy the kernel to /boot. sparc64make modules_install does work however.
_________________
Inspiron 4100 & Sun UltraAXe
Portage on Solaris|Dell Laptop Hacks
The way you feel about organized religion is the same way I feel about organized socialism.


Last edited by stonent on Mon Dec 29, 2003 5:45 am; edited 1 time in total
Back to top
View user's profile Send private message
stonent
Veteran
Veteran


Joined: 07 Aug 2003
Posts: 1139
Location: Texas

PostPosted: Mon Dec 29, 2003 4:30 am    Post subject: Reply with quote

Damn, this is being a bugger. I enabled Mach64 support and it booted up perfectly except one thing. NO KEYBOARD!

Ultra AXe systems use PS/2 mice and keyboards. So off I go to enable pci mouse/keyboard controller. And I did initrd support so I could try toget bootsplash to work but it failed the compile, I think the initrd did it. SO I took it out. Still compiling..

Update: PS/2 Keyboard still not working.

Here's my kern.log
Code:
Dec 29 05:31:22 localhost kernel: klogd 1.4.1, log source = /proc/kmsg started.
Dec 29 05:31:22 localhost kernel: Cannot find map file.
Dec 29 05:31:22 localhost kernel: No module symbols loaded - kernel modules not enabled.
Dec 29 05:31:22 localhost kernel: PROMLIB: Sun IEEE Boot Prom 3.14.1 2000/05/02 14:33
Dec 29 05:31:22 localhost kernel: Linux version 2.6.0-sparc (root@gentoo) (gcc version 3.3.2 (Gentoo Linux 3.3.2)) #6 Sun Dec 28 23:09:56 CST 2003
Dec 29 05:31:22 localhost kernel: ARCH: SUN4U
Dec 29 05:31:22 localhost kernel: Ethernet address: 08:00:20:f8:6a:fd
Dec 29 05:31:22 localhost kernel: On node 0 totalpages: 32168
Dec 29 05:31:22 localhost kernel:   DMA zone: 32168 pages, LIFO batch:7
Dec 29 05:31:22 localhost kernel:   Normal zone: 0 pages, LIFO batch:1
Dec 29 05:31:22 localhost kernel:   HighMem zone: 0 pages, LIFO batch:1
Dec 29 05:31:22 localhost kernel: Building zonelist for node : 0
Dec 29 05:31:22 localhost kernel: Kernel command line: root=/dev/hda8
Dec 29 05:31:22 localhost kernel: PID hash table entries: 2048 (order 11: 32768 bytes)
Dec 29 05:31:22 localhost kernel: Console: colour dummy device 80x25
Dec 29 05:31:22 localhost kernel: Memory: 254016k available (2160k kernel code, 848k data, 144k init) [fffff80000000000,000000001febc000]
Dec 29 05:31:22 localhost kernel: Calibrating delay loop... 599.65 BogoMIPS
Dec 29 05:31:22 localhost kernel: Dentry cache hash table entries: 32768 (order: 5, 262144 bytes)
Dec 29 05:31:22 localhost kernel: Inode-cache hash table entries: 16384 (order: 4, 131072 bytes)
Dec 29 05:31:22 localhost kernel: Mount-cache hash table entries: 512 (order: 0, 8192 bytes)
Dec 29 05:31:22 localhost kernel: POSIX conformance testing by UNIFIX
Dec 29 05:31:22 localhost kernel: NET: Registered protocol family 16
Dec 29 05:31:22 localhost kernel: PCI: Probing for controllers.
Dec 29 05:31:22 localhost kernel: PCI: Found SABRE, main regs at 000001fe00000000, wsync at 000001fe00001c20
Dec 29 05:31:22 localhost kernel: SABRE: Shared PCI config space at 000001fe01000000
Dec 29 05:31:22 localhost kernel: SABRE: DVMA at c0000000 [20000000]
Dec 29 05:31:22 localhost kernel: PCI-IRQ: Routing bus[ 2] slot[ 1] map[0] to INO[10]
Dec 29 05:31:22 localhost kernel: PCI-IRQ: Routing bus[ 2] slot[ 1] map[0] to INO[11]
Dec 29 05:31:22 localhost kernel: PCI-IRQ: Routing bus[ 2] slot[ 2] map[0] to INO[14]
Dec 29 05:31:22 localhost kernel: PCI-IRQ: Routing bus[ 2] slot[ 3] map[0] to INO[18]
Dec 29 05:31:22 localhost kernel: PCI0(PBMA): Bus running at 33MHz
Dec 29 05:31:22 localhost kernel: PCI-IRQ: Routing bus[ 1] slot[ 1] map[0] to INO[21]
Dec 29 05:31:22 localhost kernel: PCI-IRQ: Routing bus[ 1] slot[ 2] map[0] to INO[0f]
Dec 29 05:31:22 localhost kernel: PCI-IRQ: Routing bus[ 1] slot[ 3] map[0] to INO[20]
Dec 29 05:31:22 localhost kernel: PCI0(PBMB): Bus running at 33MHz
Dec 29 05:31:22 localhost kernel: ebus0: [eeprom] [flashprom] [su] [8042 -> (kb_ps2) (kdmouse)] [su] [se] [ecpp] [power] [watchdog] [beeper] [auxio] [SUNW,pll] [SUNW,CS4231] [i2c -> (gpio) (adc)] [fdthree]
Dec 29 05:31:22 localhost kernel: power: Control reg at 000001fff1724000 ... powerd running.
Dec 29 05:31:22 localhost kernel: atyfb: 3D RAGE PRO (PQFP, PCI) [0x4750 rev 0x7c] 4M SGRAM, 14.31818 MHz XTAL, 230 MHz PLL, 100 Mhz MCLK
Dec 29 05:31:22 localhost kernel: fb0: ATY Mach64 frame buffer device on PCI
Dec 29 05:31:22 localhost kernel: Total HugeTLB memory allocated, 0
Dec 29 05:31:22 localhost kernel: ikconfig 0.7 with /proc/config*
Dec 29 05:31:22 localhost kernel: devfs: v1.22 (20021013) Richard Gooch (rgooch@atnf.csiro.au)
Dec 29 05:31:22 localhost kernel: devfs: boot_options: 0x1
Dec 29 05:31:22 localhost kernel: Initializing Cryptographic API
Dec 29 05:31:22 localhost kernel: Console: switching to colour frame buffer device 144x56
Dec 29 05:31:22 localhost kernel: pty: 256 Unix98 ptys configured
Dec 29 05:31:22 localhost kernel: rtc_init: no PC rtc found
Dec 29 05:31:22 localhost kernel: [drm] Initialized ffb 0.0.1 20000517 on minor 0
Dec 29 05:31:22 localhost kernel: ttyS0 at MMIO 0x1fff13803f8 (irq = 0) is a 16550A
Dec 29 05:31:22 localhost kernel: ttyS1 at MMIO 0x1fff13602f8 (irq = 0) is a 16550A
Dec 29 05:31:22 localhost kernel: Using anticipatory io scheduler
Dec 29 05:31:22 localhost kernel: sunhme.c:v2.02 24/Aug/2003 David S. Miller (davem@redhat.com)
Dec 29 05:31:22 localhost kernel: divert: allocating divert_blk for eth0
Dec 29 05:31:22 localhost kernel: eth0: HAPPY MEAL (PCI/CheerIO) 10/100BaseT Ethernet 08:00:20:f8:6a:fd
Dec 29 05:31:22 localhost kernel: divert: not allocating divert_blk for non-ethernet device lo
Dec 29 05:31:22 localhost kernel: Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
Dec 29 05:31:22 localhost kernel: ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
Dec 29 05:31:22 localhost kernel: CMD646: IDE controller at PCI slot 0000:01:03.0
Dec 29 05:31:22 localhost kernel: CMD646: chipset revision 3
Dec 29 05:31:22 localhost kernel: CMD646: chipset revision 0x03, MultiWord DMA Force Limited
Dec 29 05:31:22 localhost kernel: CMD646: 100%% native mode on irq 4,7e0
Dec 29 05:31:22 localhost kernel:     ide0: BM-DMA at 0x1fe02c00020-0x1fe02c00027, BIOS settings: hda:pio, hdb:pio
Dec 29 05:31:22 localhost kernel:     ide1: BM-DMA at 0x1fe02c00028-0x1fe02c0002f, BIOS settings: hdc:pio, hdd:pio
Dec 29 05:31:22 localhost kernel: hda: SAMSUNG SV2044D, ATA DISK drive
Dec 29 05:31:22 localhost kernel: ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
Dec 29 05:31:22 localhost kernel: ide0 at 0x1fe02c00000-0x1fe02c00007,0x1fe02c0000a on irq 4,7e0
Dec 29 05:31:22 localhost kernel: hdc: LITE-ON LTR-40125S, ATAPI CD/DVD-ROM drive
Dec 29 05:31:22 localhost kernel: ide1 at 0x1fe02c00010-0x1fe02c00017,0x1fe02c0000e on irq 4,7e0 (shared with ide0)
Dec 29 05:31:22 localhost kernel: hda: max request size: 128KiB
Dec 29 05:31:22 localhost kernel: hda: 39862368 sectors (20409 MB) w/472KiB Cache, CHS=39546/16/63, (U)DMA
Dec 29 05:31:22 localhost kernel:  /dev/ide/host0/bus0/target0/lun0: p1 p2 p3 p7 p8
Dec 29 05:31:22 localhost kernel: end_request: I/O error, dev hdc, sector 0
Dec 29 05:31:22 localhost kernel: hdc: ATAPI 40X CD-ROM CD-R/RW drive, 1984kB Cache
Dec 29 05:31:22 localhost kernel: Uniform CD-ROM driver Revision: 3.12
Dec 29 05:31:22 localhost kernel: Console: switching to colour frame buffer device 144x56
Dec 29 05:31:22 localhost kernel: mice: PS/2 mouse device common for all mice
Dec 29 05:31:22 localhost kernel: i8042.c: i8042 controller self test timeout.
Dec 29 05:31:22 localhost kernel: device-mapper: 1.0.6-ioctl (2002-10-15) initialised: dm@uk.sistina.com
Dec 29 05:31:22 localhost kernel: NET: Registered protocol family 2
Dec 29 05:31:22 localhost kernel: IP: routing cache hash table of 4096 buckets, 32Kbytes
Dec 29 05:31:22 localhost kernel: TCP: Hash tables configured (established 32768 bind 32768)
Dec 29 05:31:22 localhost kernel: NET: Registered protocol family 1
Dec 29 05:31:22 localhost kernel: NET: Registered protocol family 17
Dec 29 05:31:22 localhost kernel: NET: Registered protocol family 8
Dec 29 05:31:22 localhost kernel: NET: Registered protocol family 20
Dec 29 05:31:22 localhost kernel: EXT3-fs: INFO: recovery required on readonly filesystem.
Dec 29 05:31:22 localhost kernel: EXT3-fs: write access will be enabled during recovery.
Dec 29 05:31:22 localhost kernel: kjournald starting.  Commit interval 5 seconds
Dec 29 05:31:22 localhost kernel: EXT3-fs: recovery complete.
Dec 29 05:31:22 localhost kernel: EXT3-fs: mounted filesystem with ordered data mode.
Dec 29 05:31:22 localhost kernel: VFS: Mounted root (ext3 filesystem) readonly.
Dec 29 05:31:22 localhost kernel: Mounted devfs on /dev
Dec 29 05:31:22 localhost kernel: Adding 489960k swap on /dev/hda7.  Priority:-1 extents:1
Dec 29 05:31:22 localhost kernel: EXT3 FS on hda8, internal journal
Dec 29 05:31:22 localhost kernel: drivers/usb/core/usb.c: registered new driver usbfs
Dec 29 05:31:22 localhost kernel: drivers/usb/core/usb.c: registered new driver hub
Dec 29 05:31:27 localhost kernel: eth0: Link is up using internal transceiver at 10Mb/s, Half Duplex.
Dec 29 05:31:29 localhost kernel: NET: Registered protocol family 10
Dec 29 05:31:29 localhost kernel: Disabled Privacy Extensions on device 00000000006b7310(lo)
Dec 29 05:31:29 localhost kernel: IPv6 over IPv4 tunneling driver
Dec 29 05:31:29 localhost kernel: divert: not allocating divert_blk for non-ethernet device sit0
Dec 29 05:31:39 localhost kernel: eth0: no IPv6 routers present

_________________
Inspiron 4100 & Sun UltraAXe
Portage on Solaris|Dell Laptop Hacks
The way you feel about organized religion is the same way I feel about organized socialism.
Back to top
View user's profile Send private message
stonent
Veteran
Veteran


Joined: 07 Aug 2003
Posts: 1139
Location: Texas

PostPosted: Mon Dec 29, 2003 6:40 am    Post subject: Reply with quote

Here's my current config. http://stonent.pointclark.net/.config

I'm hitting a wall here.
_________________
Inspiron 4100 & Sun UltraAXe
Portage on Solaris|Dell Laptop Hacks
The way you feel about organized religion is the same way I feel about organized socialism.
Back to top
View user's profile Send private message
mrichmon
n00b
n00b


Joined: 17 Dec 2003
Posts: 21

PostPosted: Tue Dec 30, 2003 7:24 pm    Post subject: Reply with quote

I've got 2.6.0 from the sparc-dev-sources booting. It took a few rebuilds to turn off options that were failing. The most annoying is that 2.6.0 seems to probe the framebuffers ignoring the openfirmware settings. This means that if I compile the Mach64 and Creator3D console support into the kernel then the console is connected to the onboard console rather than my Elite3D which is my primary display.

Also, X is now refusing to start. The bug seems to be that the afb firmware is not loaded. (However this is being loaded during boot by the afbinit script.) If I manually try to load the firmware using afbinit /dev/fb0 then the machine hangs forcing a power cycle.
Back to top
View user's profile Send private message
stonent
Veteran
Veteran


Joined: 07 Aug 2003
Posts: 1139
Location: Texas

PostPosted: Tue Dec 30, 2003 8:28 pm    Post subject: Reply with quote

Well I gave up on that attempt and decided to go for a stage 1 instead since ttmkfdir wouldn't compile. I started the bootstrap last night and looked at the screen today and it failed during a gcc compile.

I wasn't using any special CFLAGS either

-mcpu=ultrasparc -O3 -pipe -fomitframepointer

I don't have all the error because I was leaving for work when I looked at it, so I'll post more when I get home.
_________________
Inspiron 4100 & Sun UltraAXe
Portage on Solaris|Dell Laptop Hacks
The way you feel about organized religion is the same way I feel about organized socialism.
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