5 Star 26 Fork 7

loongsonlab / loongson

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

龙芯相关支持已经合并进 Linux Lab 主线,请在 Linux Lab 中直接使用,该仓库不再单独维护!

Linux Lab Plugin: loongson

This is a plugin to support loongson boards on top of Linux Lab.

It aims to help the learning and development of the Loongson CPU series.

Several boards are added(fulong2e/ls1a/ls1b/ls1c/ls232/ls2f1a/ls2h/ls2k/ls3a/ls3a2h/ls3a7a), their usage are similar to any other boards in Linux Lab.

Currently, the following packages are ported:

  • Qemu
  • Linux (some boards only, more to do)
  • Buildroot

Currently, kernel for ls1b, ls232, ls2k and ls3a7a can be built from source via standard linux-lab ways. We will try to make more boards work soon.

Demonstration

Status

ls1b, ls232, ls2k and ls3a7a has been merged into Linux Lab v5.0-rc1, please use them in Linux Lab directly.

$ ls boards/mipsel
ls1b  ls232  malta
$ ls boards/mips64el
ls2k  ls3a7a

Usage

At first, please install the Linux develoment environment with this document: Linux Lab.

After booting into Linux Lab, just launch a terminal and do:

$ cd boards
$ git clone https://gitee.com/loongsonlab/loongson.git
$ cd ../

$ make list p=loongson
[ loongson/ls1b ]:
      ARCH     = mips
      CPU     ?= mips32r2
      LINUX   ?= v5.2
      ROOTDEV_LIST ?= /dev/ram0 /dev/nfs
      ROOTDEV ?= /dev/ram0
[ loongson/ls232 ]:
      ARCH     = mips
      CPU     ?= mips32r2
      LINUX   ?= v2.6.32-r190726
      ROOTDEV_LIST := /dev/ram0 /dev/nfs
      ROOTDEV ?= /dev/ram0
[ loongson/ls2k ]:
      ARCH     = mips
      CPU     ?= mips64r2
      LINUX   ?= loongnix-release-1903
      ROOTDEV_LIST := /dev/sda /dev/ram0 /dev/nfs
      ROOTDEV ?= /dev/ram0
[ loongson/ls3a7a ]:
      ARCH     = mips
      CPU     ?= mips64r2
      LINUX   ?= loongnix-release-1903
      ROOTDEV_LIST ?= /dev/sda /dev/ram0 /dev/nfs
      ROOTDEV ?= /dev/ram0

$ make BOARD=loongson/ls1b
$ make boot

$ make BOARD=loongson/ls2k
$ make boot G=1

$ make BOARD=loongson/ls3a7a
$ make boot ROOTDEV=/dev/nfs

The other usage is as same as the other boards. For example:

To build qemu for loongson:

$ make qemu-download
$ make qemu-checkout
$ make qemu-patch
$ make qemu-defconfig
$ make qemu
$ make qemu-save

空文件

简介

Loongson boards plugin for Linux Lab(该插件已经合并进 Linux Lab 主线,不再单独维护) 展开 收起
Makefile 等 3 种语言
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/loongsonlab/loongson.git
git@gitee.com:loongsonlab/loongson.git
loongsonlab
loongson
loongson
master

搜索帮助

14c37bed 8189591 565d56ea 8189591