FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 01-20-2008, 09:57 PM
Doug Maxey
 
Default pungi/mkisofs for ppc on x64

Howdy!

This may appear to be slightly off topic, please stay with me...

I am trying to compose an f8 ppc iso on an x86_64 machine. This
should work, as there is no native ppc code run, right?. All goes
well until we get to the mkisofs stage.

There appears to be 2 bugs involved, see [1].

As part of the debug, I finally got mkisofs to enable the use of the
-magic flag, which finally gets me back to the anaconda part.

pungi emits the following command:

Pungi.Pungi:INFO: Running /usr/bin/mkisofs -v -U -J -R -T -part -hfs
-r -l -sysid PPC -no-desktop -allow-multidot
-chrp-boot -map
/usr/lib/anaconda-runtime/boot/mapping
-magic /usr/lib/anaconda-runtime/boot/magic
-hfs-bless /srv/f8/080118-0222/8/ppc/os/ppc/mac
-V Fedora 8 ppc DVD -o
/srv/f8/080118-0222/8/ppc/iso/Fedora-8-ppc-DVD.iso
/srv/f8/080118-0222/8/ppc/os

In anaconda, one sees that scripts/mk-images.ppc is the call site, is
attempting to use "/usr/lib/anaconda-runtime/boot/magic", which indeed
does not exist.

Looking at the anaconda source, I did find a magic file, in
bootdisk/ppc/magic. This file is not in the installed
/usr/lib/anaconda-runtime anywhere.

Would this be the correct file?

Should bootdisk/ppc/magic always be installed? Or for that matter,
the entire contents of bootdisk/*?

[1] https://bugzilla.redhat.com/show_bug.cgi?id=429447

++doug



_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 01-21-2008, 12:40 AM
Jesse Keating
 
Default pungi/mkisofs for ppc on x64

On Sun, 20 Jan 2008 16:57:42 -0600
Doug Maxey <dwm@enoyolf.org> wrote:

> I am trying to compose an f8 ppc iso on an x86_64 machine. This
> should work, as there is no native ppc code run, right?. All goes
> well until we get to the mkisofs stage.

Wrong. buildinstall has to be ran on ppc, in order to figure out the
kernel stuff right and various other things.

--
Jesse Keating
Fedora -- All my bits are free, are yours?
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 01-21-2008, 01:06 AM
John Summerfield
 
Default pungi/mkisofs for ppc on x64

Jesse Keating wrote:

On Sun, 20 Jan 2008 16:57:42 -0600
Doug Maxey <dwm@enoyolf.org> wrote:


I am trying to compose an f8 ppc iso on an x86_64 machine. This
should work, as there is no native ppc code run, right?. All goes
well until we get to the mkisofs stage.


Wrong. buildinstall has to be ran on ppc, in order to figure out the
kernel stuff right and various other things.


That has me confused, What does buildinstall do that requires the
target's CPU?



--

Cheers
John

-- spambait
1aaaaaaa@coco.merseine.nu Z1aaaaaaa@coco.merseine.nu
-- Advice
http://webfoot.com/advice/email.top.php
http://www.catb.org/~esr/faqs/smart-questions.html
http://support.microsoft.com/kb/555375

You cannot reply off-list:-)

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 01-21-2008, 01:15 AM
Jesse Keating
 
Default pungi/mkisofs for ppc on x64

On Mon, 21 Jan 2008 11:06:06 +0900
John Summerfield <debian@herakles.homelinux.org> wrote:

> That has me confused, What does buildinstall do that requires the
> target's CPU?

It creates kernel boot images and susses out what libraries should be
included and what modules should be included. For now these need to be
ran on the arch it is composing.

--
Jesse Keating
Fedora -- All my bits are free, are yours?
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 01-21-2008, 02:04 AM
John Summerfield
 
Default pungi/mkisofs for ppc on x64

Jesse Keating wrote:

On Mon, 21 Jan 2008 11:06:06 +0900
John Summerfield <debian@herakles.homelinux.org> wrote:

That has me confused, What does buildinstall do that requires the
target's CPU?


It creates kernel boot images and susses out what libraries should be
included and what modules should be included. For now these need to be
ran on the arch it is composing.


That's what you said last time. I still don't comprehend.

--

Cheers
John

-- spambait
1aaaaaaa@coco.merseine.nu Z1aaaaaaa@coco.merseine.nu
-- Advice
http://webfoot.com/advice/email.top.php
http://www.catb.org/~esr/faqs/smart-questions.html
http://support.microsoft.com/kb/555375

You cannot reply off-list:-)

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 01-21-2008, 02:30 AM
Jesse Keating
 
Default pungi/mkisofs for ppc on x64

On Mon, 21 Jan 2008 12:04:34 +0900
John Summerfield <debian@herakles.homelinux.org> wrote:

> That's what you said last time. I still don't comprehend.

*shrug* Perhaps one of the anaconda developers can chime in with more
details, but it is what it is. If you don't run it on the arch, you
don't get all the right modules in the initrd and various other
problems.

--
Jesse Keating
Fedora -- All my bits are free, are yours?
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 01-21-2008, 08:21 AM
David Cantrell
 
Default pungi/mkisofs for ppc on x64

On Sun, 20 Jan 2008 22:30:32 -0500
Jesse Keating <jkeating@redhat.com> wrote:

> On Mon, 21 Jan 2008 12:04:34 +0900
> John Summerfield <debian@herakles.homelinux.org> wrote:
>
> > That's what you said last time. I still don't comprehend.
>
> *shrug* Perhaps one of the anaconda developers can chime in with more
> details, but it is what it is. If you don't run it on the arch, you
> don't get all the right modules in the initrd and various other
> problems.

upd-instroot runs yum on the target architecture to set up the root tree that we pull files from to build the stage1 and stage2 images.

Also, we exec the dynamic linker to collect shared libraries we depend on since that stuff tends to change from time to time as things grow and shrink their dependencies. See get_dso_deps() in buildinstall.functions.

--
David Cantrell <dcantrell@redhat.com>
Red Hat / Honolulu, HI
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 01-21-2008, 11:49 AM
Jesse Keating
 
Default pungi/mkisofs for ppc on x64

On Sun, 20 Jan 2008 23:21:45 -1000
David Cantrell <dcantrell@redhat.com> wrote:

> upd-instroot runs yum on the target architecture to set up the root
> tree that we pull files from to build the stage1 and stage2 images.

Yum is pretty easy to fake out as far as what arch you're on.

>
> Also, we exec the dynamic linker to collect shared libraries we
> depend on since that stuff tends to change from time to time as
> things grow and shrink their dependencies. See get_dso_deps() in
> buildinstall.functions.

This is the one that is likely causing the need to be on the target
arch.

--
Jesse Keating
Fedora -- All my bits are free, are yours?
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 03:00 PM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org