搭建交叉工具链
1.wget http://www.loongson.cn/uploadfile/embed/ls1b/gcc-3.4.6-2f.tar.gz
2.将gcc-3.4.6-2f.tar.gz解压到/opt/
编译代码
1.sudo apt-get install bisonflex xutils-dev
3.cd $SRC/tools/pmoncfg/;make;cp pmoncfg/opt/gcc-3.4.6/bin/
4.export PATH=$PATH:/opt/gcc-3.4.6/bin/
5.cd $SRC/zloader.ls1g/; make cfg; make tgt=rom
6. cp gzrom.bin /tftpshare/
烧写pmon
pmon> ifaddr syn0 192.168.1.x1
pmon> load -r -f bfc00000tftp://192.168.1.x2/gzrom.bin (tftp服务器ip)
pmon> reboot
本文详细介绍了如何在Loongson1B平台上搭建交叉工具链,包括下载GCC源码、编译相关依赖库、克隆特定代码库、配置路径及编译代码等步骤,并最终完成Pmon的烧写过程。

被折叠的 条评论
为什么被折叠?



