Tom Cooksey | 2 Apr 10:59

Running Genntoo inside a QEMU VM

Hi All,

I'm wondering if anyone has tried to run Gentoo on a QEMU virtual machine.

I'm currently testing Qt/Embedded 4.4.0 and it would be really useful to have
several virtual machines to test it on, specifically arm, mips & PPC.

I've looked at the arm handbook and it says there's only stages for the old arm
ABI, it that still the case? I need to test against EABI really.

Cheers,

Tom
Radek Polak | 2 Apr 11:04
Picon
Favicon

Re: Running Genntoo inside a QEMU VM


> Hi All,
>
> I'm wondering if anyone has tried to run Gentoo on a QEMU virtual machine.
>
> I'm currently testing Qt/Embedded 4.4.0 and it would be really useful to have
> several virtual machines to test it on, specifically arm, mips & PPC.
>
> I've looked at the arm handbook and it says there's only stages for the old arm
> ABI, it that still the case? I need to test against EABI really.
>
>
> Cheers,
>
> Tom
>   

Hi Tom,
you can check this link [1]. It worked fine for me.

[1] http://gentoo-wiki.com/HARDWARE_PDA#Building_in_qemu

Cheers

Radek
Felix Leimbach | 2 Apr 11:23
Picon

Re: Running Genntoo inside a QEMU VM

Hi Tom,

I'm running a couple of gentoo servers on top of KVM very successfully. 
KVM basically is QEMU with hardware virtualization support.
You may want to use a 2.6.25 kernel as that has support for the new 
paravirtualized virtio block and net devices which speed things up. Also 
you should build a tickless kernel if possible as that should reduce the 
CPU an idle guest uses.

Performance and stability are top notch in my experience.

I did not set up architectures other than x86 and x64, though.

regards,
Felix

Tom Cooksey wrote:
> Hi All,
>
> I'm wondering if anyone has tried to run Gentoo on a QEMU virtual machine.
>
> I'm currently testing Qt/Embedded 4.4.0 and it would be really useful to have
> several virtual machines to test it on, specifically arm, mips & PPC.
>
> I've looked at the arm handbook and it says there's only stages for the old arm
> ABI, it that still the case? I need to test against EABI really.
>
>
> Cheers,
>
(Continue reading)

Alexey Shvetsov | 2 Apr 11:28
Picon

Re: Running Genntoo inside a QEMU VM

Hi!

Arm eabi works fine
both native and cross compiler if you use at least gcc-4.2
binutils-2.18 and glibc-2.7
i haven't tested eabi with uclibc yet

Alexxy

2008/4/2, Radek Polak <psonek2@...>:
>
>
> > Hi All,
> >
> > I'm wondering if anyone has tried to run Gentoo on a QEMU virtual machine.
> >
> > I'm currently testing Qt/Embedded 4.4.0 and it would be really useful to
> have
> > several virtual machines to test it on, specifically arm, mips & PPC.
> >
> > I've looked at the arm handbook and it says there's only stages for the
> old arm
> > ABI, it that still the case? I need to test against EABI really.
> >
> >
> > Cheers,
> >
> > Tom
> >
> >
(Continue reading)

maxime louvel | 2 Apr 16:20
Picon

Re: cross compiler for powerpc-softfloat-linux-gnu

Does someone has any idea ???

thanks a lot

Maxime

On Mon, Mar 31, 2008 at 10:39 AM, maxime louvel <m.louvel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Hi,

I have tried to start everything over again.
This time I have followed your advice and xmerge packages one by one.

I have been able to xmerge binutils like that.
But baselayout and glibc are still giving me headache...

Here is what I have after installing everything I have been able to :

For baselayout
----------------
xmerge --root /home/newroot2 -pv baselayout

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] sys-apps/findutils-4.3.11 to /home/newroot2/ USE="-nls (-selinux) -static" 0 kB
[ebuild  N    ] sys-apps/module-init-tools-3.4 to /home/newroot2/ USE="-old-linux" 0 kB
[ebuild   R   ] sys-apps/baselayout-1.12.11.1 to /home/newroot2/ USE="-bootstrap -build -static -unicode" 0 kB

Total: 3 packages (2 new, 1 reinstall), Size of downloads: 0 kB
--------------

And for glibc:
---------------
xmerge --root /home/newroot2 -pv glibc

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] sys-libs/glibc-2.6.1 to /home/newroot2/ USE="-debug -gd -glibc-omitfp (-hardened) (-multilib) -nls -profile (-selinux) -vanilla" 0 kB

Total: 1 package (1 new), Size of downloads: 0 kB
---------------


I have enclosed to this mail the results of the xmerge --root /home/newroot2 --nodeps for each needed package.
$package_name.build.log and $package_name.environment for each of them.
The build.log files contain only the last 100 lines (because of the size allowed for email....). If you'd like the whole ask me, I can send it alone (it is 9.7M)

I need to xmerge baselayout and glibc.

Indeed I have an embedded powerpc, without FPU. But it has 256 MB of RAM and for development purpose I am using NFS. Actually I would like to build a real gentoo on it in order to use it as a native environment and avoid all the cross compilation.

I haven't find any stage3 for powerpc, without FPU and glibc. I have tried to update a powerpc-softfloat-linux-uclibc but it misses a lot.

Any idea how I could fix my cross compilation problem ?
Or any idea of an another way of doing my installation ?

thx,

Maxime


On Thu, Mar 20, 2008 at 4:42 PM, Jason <gentoo-NLaQJdtUoK4Be96aLqz0jA@public.gmane.org> wrote:
maxime louvel wrote:
...
>> xmerge --root /home/newRoot baselayout glibc binutils
...

I assume this is pulling in a bunch of dependencies, including
findutils.  Do you intend to build a full-blown system (no busybox) or a
minimal system (busybox and a few friends)?  If you plan on using
busybox, then you want to xmerge that as well.

A good general rule of thumb (at least, it works for me ;-) ) is to
throw a '-pv' into each xmerge.  eg:

xmerge --root /home/newRoot -pv baselayout glibc binutils

and see what it pulls in as dependencies.  I then go to the top of the
list, let say baselayout is first, hypothetically.  So I would then say:

xmerge --root /home/newRoot --nodeps baselayout

and then repeat for each package in the list that I actually want.  Two
errors typically occur at this stage of the game.

1.) a missing runtime dependency, xmerge the dependency to newRoot.
2.) a missing compiletime dependency, xmerge the dependecy to SYSROOT.

The long and short of it is this: cross-compiling is a _much_ more acute
process, and it's best to take small steps through the initial build
than say 'xmerge --root $TGTROOT enlightenment' and hope for the best. :-)

hth,

Jason.
--



--
Maxime Louvel
0044 7964 5555 80
43 Allen road
Whitemore reans
WV60AW Wolverhampton
United Kingdom



--
Maxime Louvel
0044 7964 5555 80
43 Allen road
Whitemore reans
WV60AW Wolverhampton
United Kingdom
Janusz Syrytczyk | 4 Apr 12:33
Picon
Favicon

uclibc stages in 2008_beta1?

Hi,
during mirror synchronization I would swear that I've seen new uclibc stages.

Later and now I cannot find them. Is my new uclibc stage only wishful-thinking 
or it reallly will be available? and if, then when?
--

-- 
Janusz Syrytczyk - Administrator serwerów
Centrum Informatyczne Uniwersytetu Opolskiego
Nr telefonu: +48 77 452-70-91
E-mail: jsyrytczyk@...
Ned Ludd | 10 Apr 18:12
Picon
Favicon

ELC/08

Anybody planing to attend the Embedded Linux Conference next week in the
bay Area? I will probably be there next Thursday with Rob Landley.
Towards the end of his 2 hr Lecture/Tutorial it will include the use of
Gentoo as a staging environment for embedded development and cross
compilers. I hope to make it over Wednesday also for the afternoon-BOF.

http://embeddedlinuxconference.com/elc2008/elc2008_003.htm

--

-- 
Ned Ludd <solar@...>
Gentoo Linux

Ned Ludd | 10 Apr 18:13
Picon
Favicon

Re: uclibc stages in 2008_beta1?


On Fri, 2008-04-04 at 12:33 +0200, Janusz Syrytczyk wrote:
> Hi,
> during mirror synchronization I would swear that I've seen new uclibc stages.
> 
> Later and now I cannot find them. Is my new uclibc stage only wishful-thinking 
> or it reallly will be available? and if, then when?

It's limited to only a few arches right now. 
http://gentoo.osuosl.org/releases/x86/2008.0_beta1/experimental/

Ed W | 11 Apr 15:37

Re: uclibc stages in 2008_beta1?

Ned Ludd wrote:
On Fri, 2008-04-04 at 12:33 +0200, Janusz Syrytczyk wrote:
Hi, during mirror synchronization I would swear that I've seen new uclibc stages. Later and now I cannot find them. Is my new uclibc stage only wishful-thinking or it reallly will be available? and if, then when?
It's limited to only a few arches right now. http://gentoo.osuosl.org/releases/x86/2008.0_beta1/experimental/

Would be nice if it also included a hardened profile... (ok, ok, I have seem some of the history on that idea)

Ed W
Christopher Friedt | 17 Apr 15:47

profiles for reduced disk usage

Does anyone know if there is a portage profile for reduced disk writes? 
I just got an EEE pc and I'm experimenting on a USB stick before I write 
to the SDD. I'm sort of guessing that such a profile would basically 
just slightly alter the default configuration files of certain apps to 
either turn off logging or to mount temporary directories as tmpfs.

Does such a profile sound closer to embedded, or would it be a desktop 
profile without the logger, etc, etc.

It seems the line between embedded and default is growing thinner every day!

I guess I'm looking for something that's more or less a Desktop profile, 
but something that would be more suitable for flash-based devices, like 
the OpenMoko/Neo, EEE Pc, or a Maemo.

Nedd, I've been using qmerge with my arm packages by the way, and it's 
fantastic. I'm really looking forward to using it more. At some point 
I'm hoping to use, augment or write a graphical app for installing 
packages locally and also remotely via ssh or some web interface.

Cheers,

Chris

Gmane