龙芯1C pmon的一些修改

1.pmon大约是310K,  spi-rom的体积是512k,在pmon和最后4k的nvram变量区之间, 有大约190K的空闲空间。

最新的pmon把这个空闲空间自动计算出来,添加为mtd5分区, 命名为spi_data.
补丁在这里:<br>
https://github.com/lshw/loongson1-pmon/commit/d4a9aaa8f4c219da923f0d1612...

2.并生成2个环境变量 pmonEnd(pmon结束地址),pmonFreeSize(pmon空闲空间)
,可以在set中这样使用:
set mtdparts "ls1x-nand:14M@0(kernel),114M@14M(data);spi-flash:${pmonFreeSize}@${pmonEnd}(spi-data)"

补丁在这里:  https://github.com/lshw/loongson1-pmon/commit/dc3e62ecfa3f92c6b9f85e6e80...

3.设置mtdparts后,mtd分区立刻生效

补丁在这里: https://github.com/lshw/loongson1-pmon/commit/167ff7a70b4fe3c1d245eb07fc...

4.写nand flash时,数据没变的,直接跳过

https://github.com/lshw/loongson1-pmon/commit/61aebefbd395f61a30894f8e75...

5.编译环境更新到gcc-4.9和amd64

https://github.com/lshw/loongson1-pmon/commit/65adf98817193d238b8b034968...

 

相关下载:

https://mirrors.tuna.tsinghua.edu.cn/loongson/loongson1c_bsp/Pmon/loongs...   源码

https://mirrors.tuna.tsinghua.edu.cn/loongson/loongson1c_bsp/Pmon/pmon_o... rom影像