[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bootstrapping a Mips64el chroot



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

Attachment: pgpzjiPU0pNEZ.pgp
Description: PGP signature


Reply to: