close

1.
debootstrap --verbose --foreign --arch armel wheezy armel_rootfs http://ftp.tw.debian.org/debian

## 補充網樂通的指令
sudo debootstrap --arch=sh4 --foreign --include aptitude,vim,openssh-server,gcc,python lenny /opt/rootfs/ http://www.si-linux.co.jp/pub/debian-sh/lenny-sh4/
##

順便插一下花, 貼一下debian 版本的代號,之前都一直搞不懂這些英文單字代表什麼意思

Debian 8 Jessie
Debian 7.0 wheezy
Debian 6.0 squeeze
Debian GNU/Linux 5.0 (lenny) — 被淘汰的穩定版
Debian GNU/Linux 4.0 (etch) — 被淘汰的穩定版
Debian GNU/Linux 3.1 (sarge) — 被淘汰的穩定版
Debian GNU/Linux 3.0 (woody) — 被淘汰的穩定版
Debian GNU/Linux 2.2 (potato) — 被淘汰的穩定版
Debian GNU/Linux 2.1 (slink) — 被淘汰的穩定版
Debian GNU/Linux 2.0 (hamm) — 被淘汰的穩定版


2.
修改 fstab
proc /proc proc defaults 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
sysfs /sys sysfs defaults 0 0

--> chroot 之後, mount -a

3.
/debootstrap/debootstrap --second-stage


4.
echo "deb http://ftp.tw.debian.org/debian unstable main non-free contrib" > /etc/apt/sources.list

## 網樂通的 sourcelist
deb http://www.si-linux.co.jp/pub/debian-sh/lenny-sh4/ lenny main contrib non-free
deb-src http://ftp.debian.org/debian/ lenny main contrib non-free

echo LANG="C" >> /etc/environment

5.
apt-get update


ps.
遇到無法 執行 second-stage 的問題, 要把 LD_LIBRARY_PATH 改成 /lib/arm-linux-gnueabi

LD_LIBRARY_PATH contains the traditional /lib directory,
but not the multiarch directory /lib/arm-linux-gnueabi.
It is not safe to upgrade the C library in this situation;
please remove the /lib/directory from LD_LIBRARY_PATH and
try again.


arrow
arrow
    文章標籤
    debootstrap
    全站熱搜
    創作者介紹
    創作者 jchuang1977 的頭像
    jchuang1977

    竹北小黑

    jchuang1977 發表在 痞客邦 留言(0) 人氣()