[lug] Strange Ideas for Cross-Platform/Cross-Distribution Development

stimits at comcast.net stimits at comcast.net
Wed Jun 13 14:55:02 MDT 2018


I suspect this would work, but it seems a bit frustrating with all of the configuration needed. I'll probably tinker with this a bit over time even if I don't use it for package management of a foreign file system.
 
----- Original Message -----From: Michael J. Hammel <mjhammel at graphics-muse.org>To: lug at lug.boulder.co.usSent: Tue, 12 Jun 2018 19:21:24 -0000 (UTC)Subject: Re: [lug] Strange Ideas for Cross-Platform/Cross-Distribution Development

Buildroot does this by having host-tools for managing the targetrootfs. You could probably build your own toolset and point them atthe target rootfs. You may not even need chroot to do this, dependingon the tools. In this scenario the Ubuntu rootfs is just a directorytree managed by the host-tools. You don't actually run anything in it.

Which tools you build/use depends on what you're trying to do. Iimagine all that dpkg stuff, which Fedora has but I don't know how fullfeatured they are.

On Tue, 2018-06-12 at 19:09 +0000, stimits at comcast.net wrote:> Hi,> > This is more or less just for fun, but could end up being quite> valuable. I am looking at an image of an Ubuntu file system in a> subdirectory of a Fedora 27 installation. Not only is this root file> system Ubuntu instead of Fedora, it is also 64-bit ARM (and the> Fedora holding it is x86_64). I have a number of cross-compile tools,> and typically this Ubuntu file system gets edited and then flashed to> an embedded system.> > The strangeness comes because I was thinking how cool it would be to> chroot to that alternate root file system and to use "apt" and family> (e.g., "apt-get") within that alternate root file system> independently of what is on my Fedora host. Fedora actually has some> cross-ubuntu apt tools, but they are designed to be some sort of> bridge between RPM format and DEB format packages. I don't want to do> that...I want this chroot to be purely within the alternate> directory.> > If I just chroot (or "systemd-nspawn") nothing will work at all> because everything there is arm64. However, I suppose it might be> possible to place the x86_64 versions of apt and apt-get and dpkg> within that directory tree and use those while pretending arm64 is a> foreign architecture. Has anyone here heard of any kind of HOWTO for> this? Or perhaps suggestions on which Ubuntu packages I might have to> copy from an Ubuntu x86_64 system to make this work chroot?> > Thanks!> _______________________________________________> Web Page: http://lug.boulder.co.us> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug> Join us on IRC: irc.hackingsociety.org port=6667> channel=#hackingsociety_______________________________________________Web Page: http://lug.boulder.co.usMailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lugJoin us on IRC: irc.hackingsociety.org port=6667 channel=#hackingsociety
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20180613/8e9faf6e/attachment.html>


More information about the LUG mailing list