Gentoo Linux
115 posts
Page 4 of 5 1, 2, 3, 4, 5
Can anyone help me figure out how to seperate my USE flags between the host system and the sys/buildroot? My host builds with +acl but I don't want that in the cross-comp environment...
- Posts: 1
- Joined: Wed Jun 06, 2012 9:40 pm
gimpbully wrote:Can anyone help me figure out how to seperate my USE flags between the host system and the sys/buildroot? My host builds with +acl but I don't want that in the cross-comp environment...
Yes, it's simple: Set the USE flags for cross compilation in /usr/armv6.../etc/portage/make.conf.
There, you can also specify your custom CFLAGS, etc.
Btw., I recommend using armv6zk-hardfloat-linux-gnueabi as the crossdev-target.
- Posts: 31
- Joined: Thu Jun 07, 2012 11:27 am
- Location: Germany
coRpTitan wrote:jannis wrote:BTW: Did anyone tried to deploy armv6j-hardfloat-linux-gnueabi onto rpi and then change CHOST to armv6zk-hardfloat-linux-gnueabi and recompile gcc?
I did.
As an entry point, I booted the PI into Debian squeeze, and then did a classical Gentoo Installation by extracting the Gentoo-official armv6j-... stage3 into /mnt/gentoo (which happens to be a 2,5" hard drive powered by an USB hub), and did an
- Code: Select all
emerge -e @system
on that. I realized that there's no text editor in the arm @system profile, so I emerged nano, too.
Afterwards I changed /etc/fstab, root password etc., and used my x86_64 machine with crossdev to build a suitable kernel.img and modules. The kernel.img was then written to the boot-partition of the SD card, alongside the updated firmware files from github. To get the modules in place, I just mounted the 2,5" drive to my PC. I changed the cmdline.txt on the SD card to take sda2 as root partition (sda1 being some swap).
Now, I was able to boot into my new, plain Gentoo installation.
After setting CHOST to armv6zk-hardfloat-linux-gnueabi, I first recompiled gcc, then binutils, python and perl. Not a single problem occured while doing so!
Meanwhile I set ACCEPT_KEYWORDS="~arm" and use distcc acoording to Gentoo's nice distcc-crosscompiling guide.
Oh, btw.: My PI is overclocked (via /boot/config.txt) to the following values:
- Code: Select all
CPU: 900MHz (default 700)
GPU: 350MHz (default 250)
SDRAM: 500MHz (default 400)
and runs rock stable for days now at default voltage levels.
- Posts: 31
- Joined: Thu Jun 07, 2012 11:27 am
- Location: Germany
Hello,
i used this
In the release of 22 May 2012 you wrote
I have done:
After emerge complete i get a message that "X11 switching to OpenGL".
Did this message mean that X11 use video acceleration now?
How can i test this?
The start of the windowmanager takes a bit longer as before.
Did anyone compile midori on the PI?
I get a compiler error on webgl-1.6.3 and don’t know how to i fix this.
(I'm new on Gentoo and my portage skills are very basic.)
If i get midori running i would have a reference to debian (armhf) on PI.
Move /usr/portage on squashfs would be fantastic.
Are the Kernel modules build-in?
i used this
15 May 2012 Requires 8GB or larger card
Added xorg-base as a prelude to building an X11 Window Manager. Personally going with xfce but you could build/use KDE, Gnome or something else. The choice is yours.......
Available from http://com.legato-solutions.raspberrypi ... GB.img.zip
In the release of 22 May 2012 you wrote
Things still to do - fix hardware video acceleration!!!!! Move /usr/portage to separate file system to reduce footprint
I have done:
- Code: Select all
set use flags: egl , shared-glapi, gles , openvg (see http://de.gentoo-wiki.com/wiki/X.Org)
emerge -av emerge xorg-server
After emerge complete i get a message that "X11 switching to OpenGL".
Did this message mean that X11 use video acceleration now?
How can i test this?
The start of the windowmanager takes a bit longer as before.
Did anyone compile midori on the PI?
I get a compiler error on webgl-1.6.3 and don’t know how to i fix this.
(I'm new on Gentoo and my portage skills are very basic.)
If i get midori running i would have a reference to debian (armhf) on PI.
Move /usr/portage on squashfs would be fantastic.
Are the Kernel modules build-in?
- Posts: 30
- Joined: Fri Jun 15, 2012 8:37 am
I also have compile a kernel with squashfs and placed this under /boot.
How can i boot this? (there are 2 files, vmlinuz and the other i don't know yet.)
How can i boot this? (there are 2 files, vmlinuz and the other i don't know yet.)
- Posts: 30
- Joined: Fri Jun 15, 2012 8:37 am
basti122303 wrote:I also have compile a kernel with squashfs and placed this under /boot.
How can i boot this? (there are 2 files, vmlinuz and the other i don't know yet.)
Please take a look at this document: http://elinux.org/RPi_Kernel_Compilation
- Posts: 55
- Joined: Tue Jan 17, 2012 3:48 pm
disneysw wrote:Ok, so here is the last of the Gentoo stages that I plan to release. In total I have three raspberryPi images at different build stages.
This is fantastic post. You saved me a lot hassle with the images. If you ever need some to host a mirror of them I'd be happy to.
I also have 8G and 16G versions of you images. All I did was use gparted to move the swap to the end of the usable space and expand the second partition to fit the available space. If anyone wants them I can post them.
- Posts: 9
- Joined: Fri Jul 06, 2012 11:54 pm
Detritus wrote:disneysw wrote:Ok, so here is the last of the Gentoo stages that I plan to release. In total I have three raspberryPi images at different build stages.
This is fantastic post. You saved me a lot hassle with the images. If you ever need some to host a mirror of them I'd be happy to.
I also have 8G and 16G versions of you images. All I did was use gparted to move the swap to the end of the usable space and expand the second partition to fit the available space. If anyone wants them I can post them.
16G would be nice
- Posts: 7
- Joined: Sun Jul 08, 2012 4:42 pm
Cdub wrote:16G would be nice
Here's a mirror of the images I have, the base one Dinseysw put together at 4G, and the a 8G and 16G version of the same image.
Also included are his images with X and other extra added.
Don't thank me for these. Thank Disneysw, it's his work. I just resized some of it.
http://www.stomped.me/pi/images/
- Posts: 9
- Joined: Fri Jul 06, 2012 11:54 pm
i tried to mount that image (i would like to copy what's inside on an already partitioned larger ssd).
mount -o loop Gentoo-armv6J_hardfp_X11Server\ V1.0\ 20120515\ 8GB.i
mg /mnt/cdrom/
mount: you must specify the filesystem type
does it mean it is corrupted ?
is it possible to have a stage4 with X ?
mount -o loop Gentoo-armv6J_hardfp_X11Server\ V1.0\ 20120515\ 8GB.i
mg /mnt/cdrom/
mount: you must specify the filesystem type
does it mean it is corrupted ?
is it possible to have a stage4 with X ?
- Posts: 12
- Joined: Wed Jul 18, 2012 12:25 am
xevilstar wrote:i tried to mount that image (i would like to copy what's inside on an already partitioned larger ssd).
mount -o loop Gentoo-armv6J_hardfp_X11Server\ V1.0\ 20120515\ 8GB.i
mg /mnt/cdrom/
mount: you must specify the filesystem type
Hello,
the image is not a single partition, so you can not mount it like one.
You need to run losetup on the file.
"losetup /dev/loop0 <imagefile>"
Then mount the partitions /dev/loop0p1, /dev/loop0p2 etc.
Regards,
Norman
- Posts: 3
- Joined: Sun May 13, 2012 10:08 am
mount -o loop /dev/loop0p1 /mnt/cdrom/
/dev/loop0p1: No such file or directory
do i need to mknod ?
/dev/loop0p1: No such file or directory
do i need to mknod ?
- Posts: 12
- Joined: Wed Jul 18, 2012 12:25 am
UDF-fs: warning (device loop1): udf_load_vrs: No anchor found
UDF-fs: warning (device loop1): udf_fill_super: No partition found (1)
UDF-fs: warning (device loop1): udf_fill_super: No partition found (1)
- Posts: 12
- Joined: Wed Jul 18, 2012 12:25 am
It is not a loop Device. Mount without -o loop.
- Posts: 3
- Joined: Sun May 13, 2012 10:08 am
mount /dev/loop0 /mnt/cdrom/
mount: you must specify the filesystem type
mount /dev/loop0p1 /mnt/cdrom/
mount: special device /dev/loop0p1 does not exist
mamma rasp # mount /dev/loop0p0 /mnt/cdrom/
mount: special device /dev/loop0p0 does not exist
mamma rasp # mount /dev/loop0p2 /mnt/cdrom/
mount: special device /dev/loop0p2 does not exist
NTFS-fs error (device loop0): read_ntfs_boot_sector(): Mount option errors=recover not used. Aborting without trying to recover.
NTFS-fs error (device loop0): ntfs_fill_super(): Not an NTFS volume.
ufs was compiled with read-only support, can't be mounted as read-write
UDF-fs: warning (device loop0): udf_load_vrs: No anchor found
UDF-fs: Rescanning with blocksize 2048
UDF-fs: warning (device loop0): udf_load_vrs: No anchor found
UDF-fs: warning (device loop0): udf_fill_super: No partition found (1)
XFS (loop0): bad magic number
XFS (loop0): SB validate failed
mount: you must specify the filesystem type
mount /dev/loop0p1 /mnt/cdrom/
mount: special device /dev/loop0p1 does not exist
mamma rasp # mount /dev/loop0p0 /mnt/cdrom/
mount: special device /dev/loop0p0 does not exist
mamma rasp # mount /dev/loop0p2 /mnt/cdrom/
mount: special device /dev/loop0p2 does not exist
NTFS-fs error (device loop0): read_ntfs_boot_sector(): Mount option errors=recover not used. Aborting without trying to recover.
NTFS-fs error (device loop0): ntfs_fill_super(): Not an NTFS volume.
ufs was compiled with read-only support, can't be mounted as read-write
UDF-fs: warning (device loop0): udf_load_vrs: No anchor found
UDF-fs: Rescanning with blocksize 2048
UDF-fs: warning (device loop0): udf_load_vrs: No anchor found
UDF-fs: warning (device loop0): udf_fill_super: No partition found (1)
XFS (loop0): bad magic number
XFS (loop0): SB validate failed
- Posts: 12
- Joined: Wed Jul 18, 2012 12:25 am
since i believe everyone of us has a different amount of space on each ssd and seen all the fuss that is being to mount the image and transfer the files.... could be alot faster to just have the stage4 
- Posts: 12
- Joined: Wed Jul 18, 2012 12:25 am
clues.... anyone ? 
- Posts: 12
- Joined: Wed Jul 18, 2012 12:25 am
torsti76 wrote:coRpTitan wrote:jannis wrote:BTW: Did anyone tried to deploy armv6j-hardfloat-linux-gnueabi onto rpi and then change CHOST to armv6zk-hardfloat-linux-gnueabi and recompile gcc?
I did.
Just some advice: if you're going to change the CHOST variable, it would be wise to follow the official guide. It looks like torsti76 did for the most part.
- Posts: 6
- Joined: Mon Jul 23, 2012 1:25 am
Do any of these images have sshd installed/running on them?
Trying to run headless, and further still headless without plugging it into a screen at all (currently no monitors with hdmi, or a dvi adaptor handy right yet), bit impatient to wait!
Tried the first image with no luck, downloading the 8GB now but there is no mention of sshd being included either.
Thanks for the images.
Trying to run headless, and further still headless without plugging it into a screen at all (currently no monitors with hdmi, or a dvi adaptor handy right yet), bit impatient to wait!
Tried the first image with no luck, downloading the 8GB now but there is no mention of sshd being included either.
Thanks for the images.
- Posts: 4
- Joined: Fri Jul 20, 2012 10:39 am
Okay I managed to get it working by logging in blind, and starting the sshd script blind as well.
For anyone else that wants to do it...
type username "pi", Enter
type password "raspberry", Enter
type "sudo /etc/init.d/sshd start", Enter
...takes a bit to come up the first time as it needs to generate RSA keys.
Maybe add sshd to startup?
(I would have edited my above message, but its in the moderation queue).
For anyone else that wants to do it...
type username "pi", Enter
type password "raspberry", Enter
type "sudo /etc/init.d/sshd start", Enter
...takes a bit to come up the first time as it needs to generate RSA keys.
Maybe add sshd to startup?
(I would have edited my above message, but its in the moderation queue).
- Posts: 4
- Joined: Fri Jul 20, 2012 10:39 am
fatalpi wrote:Maybe add sshd to startup?
This would be nice for headless users.
Also — anyone considered nilfs2 (filesystem) for rootfs?
losetup /dev/loop0 /root/Downloads/Gentoo-armv6J_hardfp_X11Server\ V1.0\ 20120515\ 8GB.img
GlovX Downloads # fdisk -l /dev/loop0
Disk /dev/loop0: 7948 MB, 7948206080 bytes
4 heads, 32 sectors/track, 121280 cylinders, total 15523840 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000ee283
Device Boot Start End Blocks Id System
/dev/loop0p1 2048 155647 76800 c W95 FAT32 (LBA)
/dev/loop0p2 157696 14895103 7368704 83 Linux
/dev/loop0p3 14895104 15419391 262144 82 Linux swap / Solaris
GlovX Downloads # mount /dev/loop0p2 /mnt/cdrom/mount: special device /dev/loop0p2 does not exist
what am I doing wrong ?
GlovX Downloads # fdisk -l /dev/loop0
Disk /dev/loop0: 7948 MB, 7948206080 bytes
4 heads, 32 sectors/track, 121280 cylinders, total 15523840 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000ee283
Device Boot Start End Blocks Id System
/dev/loop0p1 2048 155647 76800 c W95 FAT32 (LBA)
/dev/loop0p2 157696 14895103 7368704 83 Linux
/dev/loop0p3 14895104 15419391 262144 82 Linux swap / Solaris
GlovX Downloads # mount /dev/loop0p2 /mnt/cdrom/mount: special device /dev/loop0p2 does not exist
what am I doing wrong ?
- Posts: 12
- Joined: Wed Jul 18, 2012 12:25 am
someone forgot to tell me about kpartx
kpartx -av /dev/loop0
add map loop0p1 (253:0): 0 153600 linear /dev/loop0 2048
add map loop0p2 (253:1): 0 14737408 linear /dev/loop0 157696
add map loop0p3 (253:2): 0 524288 linear /dev/loop0 14895104
ls /dev/mapper/
control loop0p1 loop0p2 loop0p3
GlovX Downloads # mount /dev/mapper/loop0p2 /mnt/cdrom/
GlovX Downloads # ls /mnt/cdrom/
bin dev home lost+found mnt proc sbin tmp var
boot etc lib media opt root sys usr
kpartx -av /dev/loop0
add map loop0p1 (253:0): 0 153600 linear /dev/loop0 2048
add map loop0p2 (253:1): 0 14737408 linear /dev/loop0 157696
add map loop0p3 (253:2): 0 524288 linear /dev/loop0 14895104
ls /dev/mapper/
control loop0p1 loop0p2 loop0p3
GlovX Downloads # mount /dev/mapper/loop0p2 /mnt/cdrom/
GlovX Downloads # ls /mnt/cdrom/
bin dev home lost+found mnt proc sbin tmp var
boot etc lib media opt root sys usr
- Posts: 12
- Joined: Wed Jul 18, 2012 12:25 am
if let's say i would put a 3.5.0 kernel on a pi using gentoo.... should i proceed the usual way or.... how can i cross compile it ?
- Posts: 12
- Joined: Wed Jul 18, 2012 12:25 am
how can i cross compile gnome after an emerge -NDauv system world ?
- Posts: 12
- Joined: Wed Jul 18, 2012 12:25 am