5 Star 21 Fork 6

loongsonlab / loongson

Create your Gitee Account
Explore and code with more than 8 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

龙芯相关支持已经合并进 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

About

Loongson boards plugin for Linux Lab(该插件已经合并进 Linux Lab 主线,不再单独维护) expand collapse
Makefile and 3 more languages
Cancel

Releases

No release

loongson

Contributors

All

Activities

Load More
can not load any more
1
https://gitee.com/loongsonlab/loongson.git
git@gitee.com:loongsonlab/loongson.git
loongsonlab
loongson
loongson
master

Search