Debian 对 mips 的支持
Debian currently provides 3 ports, 'mips', 'mipsel', and 'mips64el'. The 'mips' and 'mipsel' ports are respectively big and little endian variants, using the O32 ABI with hardware floating point. They use the MIPS II ISA in Jessie and the MIPS32R2 ISA in Stretch and later. The 'mips64el' port is a 64-bit little endian port using the N64 ABI, hardware floating point and the MIPS64R2 ISA.
[https://wiki.debian.org/MIPSPort?action=show&redirect=mips64el]
Debian 各版本发布时间与代号介绍
https://wiki.debian.org/DebianReleases
https://www.debian.org/releases/
- The next release of Debian is codenamed bullseye — no release date has been set
- Debian 10 (buster) — current stable release
- Debian 9 (stretch) — oldstable release
- Debian 8 (jessie) — obsolete stable release
- Debian 7 (wheezy) — obsolete stable release
- Debian 6.0 (squeeze) — obsolete stable release
- Debian GNU/Linux 5.0 (lenny) — obsolete stable release
- Debian GNU/Linux 4.0 (etch) — obsolete stable release
- Debian GNU/Linux 3.1 (sarge) — obsolete stable release
- Debian GNU/Linux 3.0 (woody) — obsolete stable release
- Debian GNU/Linux 2.2 (potato) — obsolete stable release
- Debian GNU/Linux 2.1 (slink) — obsolete stable release
- Debian GNU/Linux 2.0 (hamm) — obsolete stable release
Production Releases
Version | Code name | Release date | End of life date | EOL LTS | EOL ELTS |
---|---|---|---|---|---|
12 | Bookworm | ||||
11 | Bullseye | ||||
10 | Buster | 2019-07-06 | ~2022 | ||
9 | Stretch | 2017-06-17 | ~2020 | ~2022 | |
8 | Jessie | 2015-04-25 | 2018-06-17 | ~2020-06-30 | |
7 | Wheezy | 2013-05-04 | 2016-04-25 | 2018-05-31 | ~2019-05-01 |
6.0 | Squeeze | 2011-02-06 | 2014-05-31 | 2016-02-29 |
系统环境
龙芯 3A3000 + deepin 15.5
通过debootstrap 来制作Debian (32位版)最小系统
apt-get install debootstrap
debootstrap --arch mipsel jessie debian8 http://mirrors.ustc.edu.cn/debian
I: Retrieving Packages E: Couldn't download dists/jessie/main/binary-mipsel/Packages
由于jessie 属于old stable 版本,已被移至archive debian.org 。
debootstrap --arch mipsel jessie debian8 http://archive.debian.org/debian/
进入debian 系统,设置用户密码(root 123456)
chroot debian8
passwd root
PS.Debian 9 开始发布64位系统。
制作用于LS2K, LS3A 的Debian(64位)最小系统
系统环境
龙芯 3A3000 + deepin 15.5
抽取Debian最小系统
cd /mnt
mkdir -p debian10
mount /dev/sda8 debian10
debootstrap --arch mips64el buster debian10 http://mirrors.ustc.edu.cn/debian
如果提示出错: E: Relase signed by unknown key(key id DCC9EFBF77E11517)
解决办法:添加 --no-check-gpg
debootstrap --no-check-gpg --arch mips64el buster debian10 http://mirrors.ustc.edu.cn/debian
进入debian 系统,设置用户密码(root 123456)
chroot debian10
passwd root
mount -t proc proc /proc
修改/etc/fstab 指定根文件系统挂载参数,不然默认挂载为只读文件系统
cat /etc/fstab
/dev/sda8 / ext4 rw,relatime,data=ordered 0 1
说明:磁盘路径根据实际情况修改
安装基本软件
apt install net-tools
apt install gcc g++ cmake make
apt install vim file
清理软件包
apt-get clean
安装mate 桌面 apt-get install mate-desktop-environment apt-get install xorg
安装登陆管理器(lightdm 或者 gdm3) apt-get install lightdm
安装网络工具 apt-get install network-manager
bash:sudo: command not found
apt-get install sudo
添加用户(loongson)到sudoers 中
vim /etc/sudoers
loongson ALL=(ALL:ALL) ALL
bash:dhclient: dhclient not found
切换至root 用户
说明:
内核 沿用原有系统, boot.cfg, grub.cfg 等文件的参照原有系统修改(主要是指定一下具体的分区,去quiet splash 参数)