NetAdminTools.com
 
SignalQ Sites:
NetAdminTools - Coprolite - NoNIC - SpotBridge - NAW
RoboCoop - AreWeDown - SolarPower - SysAdminTools
Xfig - Gold Loaf - GeekPapa - FixGMC - MCJ - FixRambler
Categories:
GNU/Linux | Homebrew designs | Perl | Administration | Backup/Recovery | Bugs/Fixes | Certification | Database | Email | File/Print | Hardware | Information Grab Bag | Interoperability | GNU/Linux ABCs | Monitoring | Name Resolution | Network Services | Networking | Remote Control | Security | Desktop | Web | BSD | Solaris | GIAGD | REALbasic

Last 30 Days | Last 60 Days | Last 90 Days | All Articles | RSS | Hail Support


Categories:
·GNU/Linux
·Homebrew designs
·Perl
·Administration
·Backup/Recovery
·Bugs/Fixes
·Certification
·Database
·Email
·File/Print
·Hardware
·Information Grab Bag
·Interoperability
·GNU/Linux ABCs
·Monitoring
·Name Resolution
·Network Services
·Networking
·Remote Control
·Security
·Desktop
·Web
·BSD
·Solaris
·GIAGD
·REALbasic
·All Categories


Running Linux on Sparc64
Topic: GNU/Linux   Posted:2003-01-30
Printer Friendly: Print

spacerspacer
If you have some old Sun hardware you would like to run GNU/Linux on, the easiest way to get started is to use the CD-ROM images available at Aurora Linux. We've tried many different distributions, but the only one that we could get to load successfully is Aurora. Mebbe we are braindead, but if you have troubles, try Aurora. Aurora installs just as easily as Red Hat on i386 hardware. No fooling. A NetAdminTools tip 'o the hat to the folks at Aurora. Just boot off of the first CD, and the rest is smooth sailing.

Of course, that was too easy. What we wanted to get going was the latest *everything*, so of course, we really wanted Gentoo on the box. There is something wrong with the Silo boot loader and the install routine on Gentoo, at least with our system. We suspect that it is because the console is on a serial port. Aurora had no problems, but Gentoo (1.1a) hangs right after the Silo prompt. So, what we did was install Aurora, create an EXT3 filesystem on another drive, and extract a stage3 tarball on the filesystem and hack at the system until we got it running. First, we created a partition and filesystem on a different drive (sdc) while running Aurora off of hda, and then mount it:

# fdisk /dev/sdc
# mkfs -t ext3 /dev/sdc1
# mount -t ext3 /dev/sdc1 /mnt/gentoo
# cd /mnt/gentoo

Now, let's copy the stage3 tarball to /mnt/gentoo and extract it:

# cp /stage3-sparc64-1.4_rc2.tar.bz2 ./
# tar -xjf *.bz2

Copy resolv.conf:

# cp /etc/resolv.conf etc/resolv.conf

Pretty much, we then hacked the install following this document. The key steps we took:

# cd /
# chroot /mnt/gentoo
# source /etc/profile
# ln -s /usr/portage/profiles/default-sparc64-1.4
etc/make.profile 
# export CONFIG_PROTECT=""
# emerge system
# emerge egcs64-sparc
# cd /usr/src
# wget http://www.kernel.org/pub/linux/kernel/
v2.4/linux-2.4.20.tar.bz2
# tar -xjf *.bz2
# make ARCH=sparc64 oldconfig dep clean
vmlinux modules
# make modules_install
# gzip -9 vmlinux
# cp vmlinux.gz /boot/vmlinuz-2.4.20
# cd /boot
# ln -s vmlinuz-2.4.20 vmlinuz
# emerge silo

Fill in the rest from the Gentoo documentation. For this box, sunhme needed to be in /etc/modules.autoload. We just added an entry in silo.conf on /boot on the the Aurora partition to load the Gentoo root partition instead, and copied the kernal above to Aurora /boot. One interesting thing is that the .config file cannot be created (it seems) from menuconfig, because tmpfs doesn't show up correctly on the menus. Now, the directions on Gentoo say to use sed to edit the file. here is our .config file.

One final problem is that the terminals that agetty tries to run on don't exist. There is an error "respawning too fast: disabled for 5 minutes" that pops up. Just edit inittab and comment out the problem agetty lines.




Please read our Terms of Use
Microsoft, Windows, Windows XP, Windows 2003, Windows 2000, and NT are either trademarks or registered trademarks of Microsoft Corporation. NetAdminTools.com is not affiliated with Microsoft Corporation. Linux is a registered trademark of Linus Torvalds, and refers to the Linux kernel. The operating system of most distributions that contain the Linux kernel is GNU/Linux. All logos and trademarks in this site are property of their respective owner. Copyright 1997-2008 NetAdminTools.com

Created by:
MCJ
MCJ CMS