在龙芯电脑制作 debian 系统(MIPS)

本文详细介绍了Debian对MIPS架构的支持情况,包括32位和64位版本的ports,如'mips'、'mipsel'和'mips64el'。文中还提供了如何使用debootstrap创建针对不同MIPS架构的Debian最小系统的步骤,并提到了从jessie到bullseye的Debian版本发布时间与代号。同时,文章也分享了在龙芯3A3000+deepin15.5环境下,制作Debian最小系统的具体过程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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/

Production Releases

VersionCode nameRelease dateEnd of life dateEOL LTSEOL ELTS
12Bookworm    
11Bullseye    
10Buster2019-07-06~2022  
9Stretch2017-06-17~2020~2022 
8Jessie2015-04-252018-06-17~2020-06-30 
7Wheezy2013-05-042016-04-252018-05-31~2019-05-01
6.0Squeeze2011-02-062014-05-312016-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 参数)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值