Re: Bootstrapping a Mips64el chroot

Aron Xu <[email protected]>
Newsgroups gmane.linux.debian.ports.mips
Message-ID <CAMr=8w4Ke5K3Luz9m8kNgyBahmkkq_SY3YQdeUfCnHvPaF0Qrg@mail.gmail.com>
Hi,

On Sat, May 24, 2014 at 1:16 PM, David Kuehling <[email protected]> wrote:
> 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
>

Actually the packages on mips64el.debian.net is a bit dated at the
moment, and we are preparing a push to make it up-to-date.

> 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.
>

The plan is that we are very probably switch to mips3 for the one
submit to debian-ports.org, and keep another repository for mips64r2
capable hardware.


Thanks,
Aron

> 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
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.