Bootstrapping a Mips64el chroot

David Kuehling <[email protected]>
Newsgroups gmane.linux.debian.ports.mips
Message-ID <[email protected]>
Hi,

looks like the Mips64el Debian port [1] is complete enough to be
(almost) usable with debootstrap.  For some reasons, debootstrap fails
when run once, but when running it a few times, it finally finishes
successfully.

This command sequence actually worked when I tried yesterday:

for i in 1 2 3 ; do 
    /usr/sbin/debootstrap \
    --arch=mips64el --no-check-gpg  --include=multiarch-support \
    --exclude=libstdc++,libstdc++-dev,aptitude,libsigc++-1.2-dev \
    sid ./mips64el \
    http://mips64el.debian.net/debian/
done

Unfortunately this requires a MIPS64 capable CPU, i.e. Loongson3A will
work, but Loongson2F not.  Hopefully the porters eventually recompile
their repository for MIPSIII.  I don't think that MIPS64-specific
instructions add much of a benefit anyways.

When done, 'schroot' can be used to turn the chroot into something that
feels like a proper debian system (configuring type=directory it
bind-mounts various stuff into the chroot, so you can compile code from
your home directory etc.).  Warning: never do 'rm -r' on a chroot used
with 'schroot' as it may delete bind-mounted subdirectories (like,
$HOME).

For reference here's my schroot config file:

--8<--
[mips64el]
description=Debian Sid mips64el
type=directory
directory=/path/to/mips64el/chroot/
users=myloginname
personality=linux
--8<--

cheers,

David

[1] http://mips64el.debian.net/debian/
-- 
GnuPG public key: http://dvdkhlng.users.sourceforge.net/dk2.gpg
Fingerprint: B63B 6AF2 4EEB F033 46F7  7F1D 935E 6F08 E457 205F
signature.asc (application/pgp-signature, 229 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iF4EAREIAAYFAlOAKzQACgkQk15vCORXIF85zgEAnBQ7ddWmdlE6lV3MwweCnZMK
jwlPQrXe/dryK7+9EwUA/Rnsd55xIcr+V8nu0flRay0zMddWJ3YCqYDbc8FnMjWt
=6n+z
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.