cyberhero 发表于 2019-2-2 00:04:14

龍芯派內核編譯

本帖最后由 cyberhero 于 2019-2-2 00:06 编辑

直接在2k上編譯。下載源碼
wget http://ftp.loongnix.org/loongson ... -3.10.0-el7.tar.bz2
解壓tar -xvf linux-3.10.0-el7.tar.bz2
安裝軟件
yum install ncurses-devel
yum install lzma
cd linux-3.10.0-el7
cp arch/mips/configs/loongson2k_defconfig .config
定制
make menuconfig
編譯,比較耗時
make
以下需要root權限
make modules_install
dracut /boot/initramfs-3.10.84.img 3.10.84
cp vmlinuz /boot/boot/vmlinuz-3.10.84
修改boot.cfg
timeout 5
default 0
showmenu 1
title Loongnix-ls2k
      kernel (wd0,0)/boot/vmlinuz-3.10.84
      argsroot=/dev/sda1 ro rhgb quiet loglevel=0 LANG=zh_CN.UTF-8
保存重啓。
页: [1]
查看完整版本: 龍芯派內核編譯