영어 문서 참고하여 작성중. 원문 그대로 번역하지는 않았습니다.

Jessie

Jessie는 Yeeloong을 지원한다. 설치는 USB 로 하거나, tftp 로 할 수 있다.

USB 스틱으로 설치하기

mipsel 에서 쓸 cdimage 매체 (CD, DVD)는 부팅할 수 없고, d-i 역시 포함하지 않는다. 대신, loongson-2f netboot 파일을 아래에서 받으시오.

USB 스틱 준비해서 아래 과정 따름.

  1. USB 스틱을 ext2 로 포맷 (예 : mke2fs /dev/sdb1) 하고, 필요한 d-i 파일을 넣음 (이 작업은 다른 컴퓨터에서 미리 할 것)
  2. Yeeloong 끄고 USB 안 넣은 것 확인
  3. USB 스틱을 왼쪽 USB 포트에 넣기
  4. Yeeloong 전원 켜기
  5. 'Del' 여러번 누르기

  6. PMON> 프롬프트로 들어가기.

  7. 글자 모두 지우기.
  8. 글자 치기:
    • load (usb0,0)/vmlinux-3.16.0-4-loongson-2f
    • 몇 초 걸림.
      initrd (usb0,0)/initrd.gz
    • 몇 분 걸림.
      g
    • PMON 버전에 따라, 몇 분 걸림. 인내심을 갖고 기다리시오. 마침내, 인스톨러가 나타날 것이다. 그 다음 설치 과정은 x86 컴퓨터에 설치하는 것과 비슷함.

tftp로 설치하기

전에 성공했었는데, 그 때 만든 문서를 잃어버렸네요... USB로 시작하기보다 작업 시간이 적게 걸렸던 것이 생각나네요.

X Window

?/HowTo/Xorg

참고자료

일반적 질문 답변. 위에서 성공했으면 아래 내용 안 봐도 됩니다. 데비안 여러 버전에 대한 설치 설명이 섞여 있음.

/boot 는 ext2/3 이어야 한다. 안 그러면 경고 뜰 거다. 전체 디스크 설치하고 이전 내용을 지우면, 안내하는 파티션은 의미있는 것을 만들 것이다.

tasksel 에서 'Debian desktop environment' 선택하라. 이것은 그놈을 위한 패키지를 설치할 거고, 시간 오래 걸릴 거다. 엑스가 동작하려면 재부팅해서 좀더 일해야 할 필요 있다.

The installer will set up GRUB as the boot loader. We don't use grub-pc, but rather grub-yeeloong; however, it is essentially the same boot loader familiar to x86 users. You should not need to do anything special to configure the boot loader.

You will eventually get to the place where the installer reboots the system. You will get the PMON boot menu which should automatically boot the kernel. This will black out the screen for a short while, but the HD light will be on. Eventually it will boot up. You'll notice X isn't running! See Wheezy X below (TODO not verified).

참고:

/!\ 먼저, 데이터를 백업하시오. /!\

Obtain a USB stick that is recognised by the Yeeloong BIOS. (My 256MB FSF stick is!). To test whether it is or not:

  1. Start with Yeeloong powered off and no USB sticks installed.
  2. Put USB stick in left USB port next to VGA port.
  3. Power on Yeeloong.
  4. Press 'Del' lots.
  5. Should get into PMON> prompt.

  6. Delete any extra characters.
  7. Type
    • devls

    • If usb0 is listed then USB stick is recognised by the Yeeloong BIOS. If not then try another USB stick.

Make sure the USB stick that is well partitioned such that fdisk -l /dev/<usb-stick> has no errors. Example of well partitioned:

# fdisk -l /dev/sdb
[snip]
Disk /dev/sdb: 254 MB, 254983680 bytes
255 heads, 63 sectors/track, 31 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1          31      248976   83  Linux

If it produces errors then repartition with fdisk (man fdisk).

Format the filesystem as ext2 (man mkfs.ext2).

Get the initrd from http://ftp.debian.org/debian/dists/squeeze/main/installer-mipsel/current/images/malta/netboot/initrd.gz (Note this is for 'malta' but works for install on the Yeeloong.)

Get the kernel from http://archive.gnewsense.org/gnewsense-metad/installer/current/mipsel/loongson/netboot/vmlinuz-2.6.35.8-libre2-lemote or just get http://archive.gnewsense.org/gnewsense-metad/installer/current/mipsel/loongson/netboot/vmlinuz (as they are currently the same).

Put these files on the USB stick. For ease of typing rename, if necessary, vmlinuz-2.6.35.8-libre2-lemote to vmlinuz and initrd.gz-<something> to initrd.gz otherwise you might make a typo when trying to use them at PMON> prompt.

  1. Start with Yeeloong powered off and no USB sticks installed.
  2. Put USB stick in left USB port next to VGA port.
  3. Power on Yeeloong.
  4. Press 'Del' lots.

  5. Should get into PMON> prompt.

  6. Delete any extra characters.
  7. Type:
    • load (usb0,0)/vmlinuz
    • This takes a few seconds to complete.
  8. Now type:
    • initrd (usb0,0)/initrd.gz
    • This takes several minutes, be patient.
  9. Type:
    • g
    • The installer will load.

Answer questions as normal. When it complains about kernel modules just say 'Yes' to continue.

Continue to answer questions as normal.

Partitioning warning, say 'Yes' to continue. (Need to 'Email debian-boot@lists.debian.org with information.')

Software RAID not available, just say 'Continue'.

Logical Volume Manager not available, just say 'Continue'.

Partition but make sure /boot is ext2/3. (For the cautious you might want / to be ext2/3)

At the 'No installable kernel' warning press Alt-F2 to get to console, we are going to install a kernel manually. At command prompt type:

mount --bind /dev/ /target/dev/
mount --bind /proc/ /target/proc/
mount --bind /sys/ /target/sys/
chroot /target

If you don't get a bash shell and want it then

bash

Then we need to install a kernel. For the 'Debian Way' we would install the Debian linux-image but there is not a linux-image in squeeze for the Yeeloong. There is one is in 'sid' but YMMV.

Edit /etc/apt/sources.list (echo, nano and vi available) and add:

deb http://linux-libre.fsfla.org/pub/linux-libre/lemote/gnewsense metad main

Get Linux Libre key

cd
wget http://www.fsfla.org/svnwiki/selibre/linux-libre/download/SIGNING-KEY
  1. Verify this is the key from Linux Libre.
  2. Understand the implications of adding the key to apt.

apt-key add SIGNING-KEY

Now update the package database from the new source:

apt-get update

Search for the required linux-image:

apt-cache search linux-image lemote # For Debian it would be: apt-cache search linux-image loongson (or just apt-get install linux-image-2.6-loongson-2f

Then install the kernel, for example:

apt-get install linux-image-2.6.38-libre-lemote