nightmorph 09/12/14 21:33:15 Modified: gentoo-sparc-faq.xml Log: Update sparc FAQ for sparc32 removal, kernel compilation, etc. per bug 296744
Revision Changes Path 1.17 xml/htdocs/doc/en/gentoo-sparc-faq.xml file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/gentoo-sparc-faq.xml?rev=1.17&view=markup plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/gentoo-sparc-faq.xml?rev=1.17&content-type=text/plain diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/gentoo-sparc-faq.xml?r1=1.16&r2=1.17 Index: gentoo-sparc-faq.xml =================================================================== RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-sparc-faq.xml,v retrieving revision 1.16 retrieving revision 1.17 diff -u -r1.16 -r1.17 --- gentoo-sparc-faq.xml 21 May 2008 19:41:05 -0000 1.16 +++ gentoo-sparc-faq.xml 14 Dec 2009 21:33:15 -0000 1.17 @@ -1,26 +1,26 @@ <?xml version='1.0' encoding="UTF-8"?> -<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-sparc-faq.xml,v 1.16 2008/05/21 19:41:05 swift Exp $ --> +<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-sparc-faq.xml,v 1.17 2009/12/14 21:33:15 nightmorph Exp $ --> <!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> -<guide link="/doc/en/gentoo-sparc-faq.xml"> +<guide> <title>Gentoo Linux/SPARC Frequently Asked Questions</title> <author title="SPARC Developer"> - <mail link="[email protected]">Jason Wever</mail> + <mail link="weeve"/> </author> <abstract> This FAQ is designed to help answer the most commonly asked questions about -Gentoo Linux/SPARC and Linux on SPARC architecture. Feel free to send -revisions and corrections to the sparc team or the doc team. +Gentoo/SPARC and Linux on SPARC architecture. Feel free to send revisions and +corrections to the Gentoo/SPARC team or the doc team. </abstract> <!-- The content of this document is licensed under the CC-BY-SA license --> <!-- See http://creativecommons.org/licenses/by-sa/2.5 --> <license/> -<version>1.9</version> -<date>2007-06-30</date> +<version>1.10</version> +<date>2009-12-14</date> <faqindex> <title>Questions</title> @@ -103,21 +103,7 @@ </body> </section> -<!-- sparc32 is no longer supported -<section> -<title>How do I network boot my SPARC system for installation?</title> -<body> - -<p> -Currently, Gentoo has experimental network boot/tftpboot images available on a -local Gentoo mirror in experimental/sparc/tftpboot. Get the appropriate image -for your SPARC computer and then proceed to the Netboot HOWTO for further -instructions. -</p> -</body> -</section> ---> <section> <title>I have a CRT/LCD monitor attached to my SPARC that selects a resolution my monitor can't handle when the kernel boots. How do I get a visible and/or @@ -207,10 +193,10 @@ <body> <p> -Dual booting Gentoo Linux/SPARC and Solaris can be done one of two ways. The -two ways are: having both Gentoo Linux/SPARC and Solaris on the same drive, or -having them on separate drives. Below are example SILO configurations for each -scenario. In the example configs, the following things are assumed: +Dual booting Gentoo/SPARC and Solaris can be done one of two ways. The two ways +are: having both Gentoo/SPARC and Solaris on the same drive, or having them on +separate drives. Below are example SILO configurations for each scenario. In the +example configs, the following things are assumed: </p> <p> @@ -240,7 +226,7 @@ partition = 1 timeout = 50 -<comment># Gentoo Linux/SPARC options</comment> +<comment># Gentoo/SPARC options</comment> image = /boot/vmlinux label = linux root=/dev/sda4 @@ -255,7 +241,7 @@ parition = 1 timeout = 50 -<comment># Gentoo Linux/SPARC options</comment> +<comment># Gentoo/SPARC options</comment> image = /boot/vmlinux label = linux root=/dev/sda4 @@ -267,51 +253,6 @@ </body> </section> -<!-- sparc32 is no longer supported -<section> -<title>I just booted my SPARCstation after installing Gentoo but it won't boot. -Why isn't it booting?</title> -<body> - -<p> -One possibility has to do with the way the that the SCSI IDs are assigned. -Gentoo/SPARC developer Keith Wesolowski provides us with the following: -</p> - -<p> -Linux, normally, orders devices by SCSI ID. The lowest-numbered disk is -<c>sda</c>, the next-lowest is <c>sdb</c>, and so on. Note that <c>devfs</c> -allows you to specify devices by SCSI ID, so that adding a new device doesn't -cause your existing devices to be renamed, unless of course you use the -compatibility names. There are additional ways to solve this. -</p> - -<p> -The OBP in most or all sun4c and sun4m systems aliases "disk" to the device with -SCSI ID 3, and "disk0" through "disk3" to the device with the corresponding SCSI -ID, if it happens to be a disk rather than a tape, CDROM, etc. -</p> - -<p> -In the desktop systems of this era that support two SCA disks (the Aurora -chassis systems), the lower slot is assigned SCSI ID 3, and the upper slot is -assigned SCSI ID 1. -</p> - -<p> -If you like, you can change the PROM alias "disk" to match that of "disk1" so -that the <c>boot disk</c> command causes the system to boot from the same -device Linux calls <c>sda</c>. This feels more consistent and normal, -especially for users with a PC background. Alternatively, you can simply place -the filesystem containing <path>/boot</path> (which could be the root -filesystem or a separate boot filesystem) on device ID 3 (Linux <c>sdb</c>) and -boot from it, using a root filesystem on either <c>sda</c> or <c>sdb</c>, or in -fact any other disk attached to the system. -</p> - -</body> -</section> ---> </chapter> <chapter> @@ -334,30 +275,6 @@ allow some users to run it successfully in production environments. </p> -<p> -32-bit SPARC systems are no longer supported by the Gentoo/SPARC team. -</p> - -<!-- 32bit is no longer supported -<p> -32-bit SPARC systems vary. Systems with the sun4m architecture have been -reported to work fine (SS4-SS20) including SMP configurations with the later -2.4 series kernels. sun4m systems using HyperSPARC or Ross processors in a SMP -configuration will have a lot of kernel related trouble. Additionally the -author hasn't heard of any user reports in regards to the JavaStations so its -status is unknown. sun4d based systems currently do not work in the 2.4 kernel -series, and sun4c has been unstable as well. -</p> - -<p> -Often, the problems encountered in trying to run Gentoo on a 32-bit SPARC -system stem from the kernel. Rob Radez (not related to Gentoo) maintains a -webpage <uri>http://osinvestor.com/sparc/</uri> with the status of SPARC system -support for various versions of the Linux kernel. This can help indicate how -usable your SPARC system would be under SPARC/Linux. -</p> ---> - </body> </section> <section> @@ -366,8 +283,8 @@ <p> For a list of additionally supported Sun hardware, consult the following list -from the UltraLinux homepage - -<uri>http://www.ultralinux.org/faq.html#q_2_2.</uri> +from the <uri link="http://www.ultralinux.org/faq.html#q_2_2.">UltraLinux +homepage</uri>. </p> <p> @@ -393,7 +310,7 @@ </body> </section> <section> -<title>How do I know which Sparc I have?</title> +<title>How do I know which SPARC I have?</title> <body> <p> @@ -455,6 +372,18 @@ </body> </section> +<section> +<title>Is SPARC big-endian or little-endian?</title> +<body> + +<p> +The version supported by Gentoo/SPARC (v9) is bi-endian. It uses big-endian +intructions, but can access data in little-endian byte-order, such as PCI +devices, which are little-endian by nature. +</p> + +</body> +</section> </chapter> <chapter> @@ -489,7 +418,7 @@ </body> </section> <section> -<title>How come package foo is masked on Sparc?</title> +<title>How come package foo is masked on SPARC?</title> <body> <p> @@ -514,8 +443,9 @@ If you want to help ensure a package gets marked stable in a timely fashion, particularly if it's an application with a small userbase (i.e. net-im/bitlbee), install the package and test to make sure it works. If it -appears to be working well, feel free to file a bug at -<uri>http://bugs.gentoo.org</uri> and assign it to the Gentoo/SPARC team. +appears to be working well, feel free to file a bug via the +<uri link="http://bugs.gentoo.org">Gentoo Bugzilla</uri> and assign it to the +Gentoo/SPARC team. </p> </body> @@ -526,107 +456,124 @@ <body> <p> -This is a bug. Please file a bug report at <uri>http://bugs.gentoo.org</uri> -for the Gentoo/SPARC team indicating what package you tried to emerge, the -error message emerge gave you, and the output of <c>emerge --info</c>. +This is a bug. Please file a bug report via the <uri +link="http://bugs.gentoo.org">Gentoo Bugzilla</uri> for the Gentoo/SPARC team +indicating what package you tried to emerge, the error message emerge gave you, +and the output of <c>emerge --info</c>. </p> </body> </section> -</chapter> - -<chapter> -<title>Miscellaneous</title> <section> -<title>I'm interested in becoming more involved with Gentoo/SPARC. How do I go about -doing that?</title> +<title>Why am I getting an error related to 32/64-bit when compiling a +kernel?</title> <body> <p> -The best way is to join the <c>#gentoo-sparc</c> IRC channel on Freenode IRC -network <c>irc.freenode.net</c>. This is where all of the developers hang out -and talk SPARC (amongst other things). Short of email, this is the best way to -get our attention. +The way SPARC/Linux handles the cross-compiler has changed with 2.6.25 (<uri +link="http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=54cd6ddec77b75e6926d73d263aec72255b24030">commit</uri>), +thus when building a recent kernel you'd get the following error message: </p> -<p> -Also, many users and developers make use of the <uri -link="http://forums.gentoo.org/viewforum.php?f=27">Gentoo/SPARC forum</uri>. -This is a good place to ask questions and see what problems have come up -before, as well as talk shop about Gentoo/SPARC. -</p> +<pre caption="SPARC/Linux compile error message"> +CHK include/linux/version.h +CHK include/linux/utsrelease.h +CC arch/sparc64/kernel/asm-offsets.s +arch/sparc64/kernel/asm-offsets.c:1: error: -m64 is not supported by this configuration +arch/sparc64/kernel/asm-offsets.c:1: error: -mlong-double-64 not allowed with -m64 +arch/sparc64/kernel/asm-offsets.c:1: error: -mcmodel= is not supported on 32 bit systems +make[1]: *** [arch/sparc64/kernel/asm-offsets.s] Error 1 +make: *** [prepare0] Error 2 +</pre> <p> -Additionally, you can view the bugs for Gentoo/SPARC via the <uri -link="http://bugs.gentoo.org">Gentoo Bugzilla</uri>. The bugs will be assigned -or CCed to [email protected]. +Because, for the moment (there's an <b>experimental</b> <uri +link="/proj/en/base/sparc/multilib.xml">multilib</uri> profile), +Gentoo/SPARC native compiler can't generate 64-bit code (that's what +sys-devel/kgcc64 is for). </p> -</body> -</section> -<section> -<title>Are there any currently known bugs/issues with software packages on -Gentoo/SPARC?</title> -<body> - <p> -A list of problematic packages can be found at -<uri>http://dev.gentoo.org/~weeve/problems.html</uri>. +What you need to do is to tell the SPARC/Linux Makefile what is your +cross-compiler's binary, by issuing the following commands: </p> +<pre caption="Gentoo/SPARC kernel >=2.6.25 kernel compilation"> +make CROSS_COMPILE=sparc64-unknown-linux-gnu- +make CROSS_COMPILE=sparc64-unknown-linux-gnu- image modules_install +</pre> + </body> </section> </chapter> <chapter> -<title>Additional Resources</title> +<title>Miscellaneous</title> <section> +<title>I'm interested in becoming more involved with Gentoo/SPARC. How do I go +about doing that?</title> <body> <p> -Here is some info on the Gentoo/SPARC project itself: +There are various ways to improve the project: </p> <ul> - <li><uri link="http://sparc.gentoo.org">Gentoo/SPARC Project Page</uri></li> - <li>#gentoo-sparc - Official IRC channel on irc.freenode.net</li> - <li> - <uri link="http://forums.gentoo.org/viewforum.php?f=27">Gentoo/SPARC - Forum</uri> + <li>The best way is to become an <uri + link="/proj/en/base/sparc/at/index.xml">Arch Tester</uri>, and aid the + developers with package testing. + </li> + <li>File bug reports such as <uri + link="http://dev.gentoo.org/~tcunha/reports/imlate-sparc.txt">stable, and + keyword</uri> requests. + </li> + <li>Join the <uri + link="irc://irc.gentoo.org/gentoo-sparc">#gentoo-sparc</uri> IRC channel + on the FreeNode IRC network. + </li> + <li>Make use of the <uri + link="http://forums.gentoo.org/viewforum.php?f=27">Gentoo/SPARC forum</uri>. + </li> + <li>Propose solutions for Gentoo/SPARC related bugs via the <uri + link="http://bugs.gentoo.org">Gentoo Bugzilla</uri>. The bugs will be + assigned, or CCed to [email protected]. </li> - <li><mail>[email protected]</mail> - Gentoo/SPARC team email address</li> </ul> -<p> -Here are links to additional information about SPARC/Linux or SPARCs in general: -</p> +</body> +</section> +</chapter> + +<chapter> +<title>Additional Resources</title> +<section> +<title>Where can I get more help or information about SPARC/Linux?</title> +<body> <ul> <li> - <uri link="http://www.ultralinux.org">UltraLinux Homepage</uri> - Homepage - of the SPARC/Linux port + <uri link="http://docs.sun.com/app/docs/coll/216.2">OBP Reference + Guide</uri> - Sun's guide to the OpenBoot PROM </li> <li> - <uri link="http://sunsolve.sun.com">Sunsolve</uri> - Great resource for Sun - hardware documentation + <uri link="http://www.obsolyte.com">Obsolyte</uri> - Information on older + SPARC systems and links to a lot of other great SPARC related sites </li> <li> - <uri>http://docs.sun.com</uri> - Additional hardware and software - information for SPARC systems, including instructions for flashing OBP + <uri link="http://docs.sun.com">Sun Microsystems Documentation</uri> - + Additional hardware and software information for SPARC systems, including + instructions for flashing OBP </li> <li> - <uri link="http://www.obsolyte.com">Obsolyte</uri> - Information on older - SPARC systems and links to a lot of other great SPARC related sites + <uri link="http://sunsolve.sun.com">Sunsolve</uri> - Great resource for Sun + hardware documentation </li> <li> - <uri - link="http://040.digital-bless.com/texts/Unofficial_Sun_Blade_100_FAQ.htm">Unofficial - Sun Blade 100 FAQ</uri> - Answers a lot of hardware related questions on - the Blade 100 + <uri link="http://www.sunstuff.org">Online Sun Information Archive</uri> </li> <li> - <uri link="http://docs.sun.com/app/docs/coll/216.2">OBP Reference - Guide</uri> - Sun's guide to the OpenBoot PROM + <uri link="http://www.ultralinux.org">UltraLinux Homepage</uri> - Homepage + of the SPARC/Linux port </li> </ul>
