龙芯1B云终端Kernel编译方法

来源:互联网 发布:如何在mac上装office 编辑:程序博客网 时间:2024/06/05 07:28
搭建交叉工具链
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.git-clonegit://git.printk.org/caiwanwei/linux-loongson1b-cloud

2.export PATH=$PATH:/opt/gcc-3.4.6/bin/

3. cd linux-loongson1b-cloud/

4. cp arch/mips/configs/loongson1bcloud_defconfig ./.config

5. make menuconfig

6. make

7. cp vmlinux /tftpshare

烧写Kernel
pmon> ifaddr syn0 192.168.1.x1
pmon>devcp tftp://192.168.1.x2/vmlinux/dev/mtd1 (tftp服务器ip)


0 0
原创粉丝点击