PMON目录:root@lvyj-virtual-machine:
/home/lvyj/workdir/longxi/ls2k/pmon/pmon-loongson3_pi/zloader.ls2k
/home/lvyj/workdir/longxi/ls2k/pmon/busiji/pmon-loongson3_pi/zloader.ls2k
/home/lvyj/workdir/longxi/ls2k/git/linux-3.10-master_for_test
root@lvyj-virtual-machine:/home/lvyj/workdir/longxi/ls2k/git/linux-3.10-master_for_test#
//nand的代码移植了pmon git的
root@lvyj-virtual-machine:/mnt/hgfs/share/longxi/ls2k/nand/pmon-loongson3_pi_nand_pre1207/pmon-loongson3_pi/zloader.ls2k#
https://item.taobao.com/item.htm?spm=a230r.1.14.16.1ed01326tJSzxs&id=593910706506&ns=1&abbucket=6#detail
/home/lvyj/workdir/longxi/ls2k/pmon/busiji/pmon-loongson3_pi/zloader.ls2k# vi …/Targets/LS2K/conf/LS2K.dts
cp ./gcc-4.4-gnu/sysroot/usr/include/rpc gcc-4.9.3-64-gnu/sysroot/usr/include/ -rf
cp ./gcc-4.4-gnu/sysroot/usr/include/rpc gcc-4.9.3-64-gnu/include/ -rf
################pmon编译##############
pmon:
wget ftp://ftp.loongnix.org/embed/ls3a/toolchain/gcc-4.4-gnu.tar.gz -O -|tar -C / -zxf -
cd tools/pmoncfg
make pmoncfg
export PATH= P A T H : PATH: PATH:(pwd)
cd -
cd zloader.ls2k
if which makedepend;then
make cfg all tgt=rom CROSS_COMPILE=/opt/gcc-4.4-gnu/bin/mipsel-linux-
else
make cfg all tgt=rom CROSS_COMPILE=/opt/gcc-4.4-gnu/bin/mipsel-linux- MKDEP=:
编译最终在zloader.ls2k 目录下生成二进制gzrom.bin 即为pmon bin文件,
烧写此文件即可.
最新方法:
苏Sa:
2K是make cfg;make tgt=rom;make dtb
苏Sa:
然后烧写gzrom-dtb.bin
################end##############
export LD_LIBRARY_PATH+=/opt/gcc-4.4.7-7215-n64-loongson/usr/x86_64-unknown-linux-gnu/mips64el-redhat-linux/lib: L D L I B R A R Y P A T H e x p o r t L D L I B R A R Y P A T H + = / o p t / g c c − 4.4.7 − 7215 − n 64 − l o o n g s o n / u s r / l i b : LD_LIBRARY_PATH export LD_LIBRARY_PATH+=/opt/gcc-4.4.7-7215-n64-loongson/usr/lib: LDLIBRARYPATHexportLD