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 參數)