rt4ls根据:http://dev.lemote.com/code/rt4ls/wiki/linux-loongson-howto步骤如下:$mkdir Loon$cd Loon$git clone git://dev.lemote.com/rt4ls.git
$cd rt4ls
$git checkout -b linux-loongson/2.6.30/stable --track origin/linux-loongson/2.6.30/stable
$cd -
$wget ftp://mirror.lzu.edu.cn/software/loongson/toolchain/gcc-4.4-cross-toolchain-loongson2f.tar.gz$tar xzvf
gcc-4.4-cross-toolchain-loongson2f.tar.gz创建文件 vi loo.env 里面放入这一行 export PATH=`pwd`/cross-tools/bin/:$PATH$. loo.env
cd rt4ls
查找配置文件:
ls arch/mips/configs/*loong*
输出:
arch/mips/configs/fuloong2e_defconfig
arch/mips/configs/fuloong2f_defconfig
arch/mips/configs/fuloong2f_unas_defconfig
arch/mips/configs/yeeloong2f_defconfig
内核配置:
$
cp arch/mips/configs/yeeloong2f_defconfig .config
$ make menuconfig ARCH=mips
开始编译:
$ make -j8 ARCH=mips CROSS_COMPILE=mipsel-linux-gnu-
(或者修改 kernel 的 Makefile,将 ARCH 变量指定为 mips, CROSS_COMPILE 指定为 mipsel-linux-gnu-)
$make modules_install INSTALL_MOD_PATH=./ModFirm
$make firmware INSTALL_MOD_PATH=./ModFirm
$scp vmlinux root@bbb:/boot/vmlinux-2.6.30
$tar czvf ModFirm.tar.gz ModFirm
$scp ModFirm.tar.gz root@bbb:
(bbb 是龙芯的ip或主机名)
在板子的终端下:登录root用户
#cd
#tar xzvf ModFirm.tar.gz
#cp -a ModForm/lib/module/2.6.30.10 /lib/modules
#rm /lib/firmwares /lib/firmwares.prev
#cp -a ModForm/lib/firmware /lib/firmware
#mount /dev/hda1 /mnt/hda1
#vi /mnt/hda1/boot/boot.cfg
add the line for kernel vmlinux-2.6.30.10
set defaut boot to that line.
#reboot
yeeloong compiling link龙芯交叉编译环境:
debian交叉编译环境:
http://www.emdebian.org/tools/crossdev.html
给逸珑YeeLong安装Debian 5 Lenny:
英文:
http://vm-kernel.org/blog/2010/03/27/install-debian-lenny-on-yeeloong-80898101/中文:
http://dev.lemote.com/code/linux-loongson-community/#GitrepositoryGit%E4%BB%93%E5%BA%93龙芯wiki
http://dev.lemote.com/code/linux-loongson-community/
阅读(771) | 评论(0) | 转发(0) |