Talk:Raspberry Pi/Installation

NOOBS image broken
The page's stage-4 section currently refers to a NOOBS image that's supposed to be updated periodically. I tried installing from it and ran into these issues that call its usability into question:


 * it doesn't remount / read/write on boot
 * it doesn't start the network interface on boot
 * gcc is sufficiently broken that it won't compile "hello, world"...it complains that  is missing

Next step might be to try the quick-start linked below, unless someone has ideas to unbreak this image.

Salfter (talk) 04:24, 29 July 2015 (UTC)

Overloading the wiki article with trivial things
Originally, I had intended for the article to be a guide to bring Gentoo to the Raspberry Pi for users who already know how to install Gentoo. I think the quality of this article has gone downhill, with (well-meaning) people adding information that doesn't really help those familiar with installing Gentoo. By now, it is difficult to find the important information among all the trivial parts.


 * I therefore propose to reduce the article again to highlighting the differences between installing Gentoo on a normal PC and on the Raspberry Pi. Or alternatively, we can turn this article into a hub with links to a quick install guide and a detailed one, and separate articles for troubleshooting and tips&tricks. -- Chithanh 12:25, 7 October 2012 (UTC)
 * I had assumed this was meant to be a quick start guide similar to http://www.gentoo.org/doc/en/gentoo-x86-quickinstall.xml. From my experience this guide at the moment is not enough even for someone with Gentoo experience to install on a RPi. For example the -F 16 option to format /boot and being able to use the default kernel.img from github make the process a lot easier. Should I go ahead and create a separate quick start page with more detail? --Baldy 14:27, 7 October 2012 (UTC)
 * Have gone ahead and created a Raspberry Pi Quick Install Guide -> http://wiki.gentoo.org/wiki/Raspberry_Pi_Quick_Install_Guide can we link it to this page? --Baldy 14:54, 8 October 2012 (UTC)
 * There are a lot of common steps in all install guides. We could probably make templates for a lot of the phases, partitioning, stage/portage-tree install, crossdev stuff. Indeed, only the specific for a particular computer needs to be described. --Wimmuskee 19:27, 27 November 2012 (UTC)

crossdev / march / cflags
As i'm waiting for receiving my raspberry pi, i cannot test this for now... Can someone confirm? Would it work with distcc?
 * The correct crossdev toolchain should be armv6zk-hardfloat-linux-gnueabi :
 * http://www.raspberrypi.org/faqs says the soc is based on ARM1176JZFS with vfp (see also http://dev.gentoo.org/~armin76/arm/armhw.xml)
 * arm1176jzf-s is an armv6zk see http://dev.gentoo.org/~armin76/arm/chost.xml
 * So the CFLAGS should contains "-mcpu=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard" (no -march switch as it would conflict with -mcpu)
 * In my testing, -mcpu=arm1176jzf-s produced code that ran slower on the Raspberry Pi than -march=armv6j --Chithanh 09:56, 3 October 2012 (UTC)
 * User:Baldy replaced -march=armv6j with the (IMO worse) -mcpu=arm1176jzf-s without discussion (among with using legacy make.conf location again etc.). I will revert the edits until this discussion is done --Chithanh 12:25, 7 October 2012 (UTC)
 * Sorry for jumping in and changing it, I will test both on my RPi and confirm which one is quicker. --Baldy 14:15, 7 October 2012 (UTC)
 * http://www.raspberrypi.org/phpBB3/viewtopic.php?f=54&t=17983 discussed the CFLAGS and found none that were generally faster. I'll mark this discussion as done, but it can be revisited with newer gcc.

CFLAGS
Nothing about the /etc/make.conf CFLAGS... same as the stage3???


 * I added some processor specific CFLAGS --Chithanh 02:46, 23 June 2012 (UTC)

Note: With stage3-armv6j_hardfp-20120603.tar.bz2 and this cli for QEMU: /usr/bin/qemu-system-arm -kernel zImage -M versatilepb -cpu arm1176 -hda debian6-19-04-2012.img -m 256 -append "root=/dev/sda2 loglevel=7 debug" -serial stdio -hdb gentoo-raspberry-pi.img -hdc swap.img I have a big illegal instruction, official debian provided work.

Links
Possibly add some links to the embedded handbook and external resources? — yngwin 14:34, 3 July 2012 (UTC)


 * added some Chithanh 14:04, 20 July 2012 (UTC)

sdformat steps
The article lacks manual steps to define and format partitions. Simple instructions for RPi 2 are found in https://plus.google.com/+WolfgangApolinarski/posts/dNTqe6sVW87 To format the created partitions (it suppose your sdcard is in /dev/sdx, where x is b,c,d,e..):

sdformat script
A simple script to prepare the card

swclock
The article mentions swclock, but it isn't in the tree. The only place I could find a reference to it was in the AUR. Could we at least provide a link to the download, if not some usage instructions? --AdmiralNemo 06:00, 15 December 2012 (UTC)


 * It's part of openrc. See:
 * --Astaecker 06:48, 15 December 2012 (UTC)
 * --Astaecker 06:48, 15 December 2012 (UTC)

Install script
I made an install script for a gentoo variant(funtoo), currently it doesn't boot. Wondering if any1 here might know why, and/or if some1 here might want to fork it to work with gentoo.

Please comment if you like this.

https://github.com/GlassGhost/funtoo-pi/blob/master/funtoo-pi.sh --GlassGhost (talk) 19:13, 19 October 2013 (UTC)