Giter Site home page Giter Site logo

yushanwei / loongson1-pmon Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lshw/loongson1-pmon

0.0 0.0 1.0 19.15 MB

loongson1c openloongson pmon

License: Other

Makefile 6.42% Assembly 5.21% C 85.97% C++ 1.62% Objective-C 0.31% Shell 0.02% HTML 0.01% Roff 0.07% Batchfile 0.01% Perl 0.03% TeX 0.31% Module Management System 0.01% DIGITAL Command Language 0.01% Awk 0.02%

loongson1-pmon's Introduction

本项目,来自于龙芯广州分公司为龙芯俱乐部提供的龙芯1C开龙主板提供的pmon源码

编译:
git clone https://github.com/lshw/loongson1-pmon cd loongson1-pmon ./build_openloongson.sh 执行 build_openloongson.sh 生成2个文件:gzram.* pmon_*.bin

配置文件
pmon-ls1x-openloongson/Targets/LS1X/conf/ls1c
该配置文件内容与ls1c_300a_openloongson相同,ls1c_300a_openloongson是该开发板的备份配置文件

nand flash分区:
在pmon-ls1x-openloongson/Targets/LS1X/dev/ls1x_nand.c文件中设置分区

#if defined(LS1CSOC)
add_mtd_device(ls1x_mtd, 0, 10241024, "bootloader");
add_mtd_device(ls1x_mtd, 1024
1024, 1310241024, "kernel");
add_mtd_device(ls1x_mtd, 1410241024, 5010241024, "rootfs");
add_mtd_device(ls1x_mtd, (50+14)10241024, 6410241024, "data");
分区为:
bootloader 1MByte 保留给nand启动用
kernel 13MByte 用于烧录内核
rootfs 50MByte 用于烧录根文件系统
data 64MByte 可以用作其他

注意分区大小要与linux kernel中的一致
bootloader分区保留给nand启动用,所以pmon烧录内核和根文件系统的命令变为:
devcp tftp://192.168.1.3/vmlinux /dev/mtd1
mtd_erase /dev/mtd2
devcp tftp://192.168.1.3/rootfs-yaffs2.img /dev/mtd2 yaf nw
就是/dev/mtd0不用,注意不要烧录错

如果用spiflash启动,不用nand启动的话可以根据自己使用的情况修改分区,注意linux内核中也要修改。

loongson1-pmon's People

Contributors

lshw avatar red54 avatar

Forkers

mpysw

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.