unas 运行debian8

现在 unas万由的龙芯存储, 已经可以直接使用 debian8的系统了,使用debian8自带的内核3.14  已经不需要任何额外的软件包。

只要注意以下几点:
1.unas的pmon(bios)只能识别 ext3 ,所以要在硬盘上留一个 sda1 200m就够了, 用来放boot
2.在linux源码中, unas的machtype 是machtype=lemote-nas-2f     这个要带在命令行里面, 传递给内核。  
   PMON> set karg "root=/dev/sda2 console=ttyS0,115200 panic=10 machtype=lemote-nas-2f"
这样就可以了,

root@nas:~# uname -a
Linux nas 3.14-2-loongson-2f #1 Debian 3.14.15-2 (2014-08-09) mips64 GNU/Linux


root@nas:~# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux jessie/sid"
NAME="Debian GNU/Linux"
ID=debian
ANSI_COLOR="1;31"
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support/"
BUG_REPORT_URL="https://bugs.debian.org/"


root@nas:~# cat /etc/debian_version
jessie/sid


还有一点问题是, linux里面带的sata接口sil3112芯片的驱动,会拦截trim指令, 造成对ssd硬盘支持不好, 驱动是sata_sil.c
而sil3124的驱动 sata_sil24.c 是支持trim指令的,试图把sata_sil24.c里面的程序移植到 sata_sil.c里面, 但是没有成功。