4 Star 16 Fork 7

loongsonlab / loongson

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
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

Comments ( 0 )

Sign in for post a comment

About

Loongson boards plugin for Linux Lab(该插件已经合并进 Linux Lab 主线,不再单独维护) spread retract
Cancel

Releases

No release

Gitee Metrics

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