TI DaVinci DM368 running Emdebian

實驗環境:

DM368 平臺 : LW3xx

HOST : ubuntu 10.04.4 64-bit


1,參考網址

Emdebian

Tutorial Mini6410 Debian/Emdebian

Bootstrap Lenny for your ARM board

2,創建 emdebian 根文件系統

ubuntu 主機安裝 debootstrap

#apt-get install debootstrap
創建目錄,用來存放 emdebian 根文件系統

#cd ~
#mkdir emdebian-lw3xx
#cd emdebian-lw3xx 
#debootstrap --arch=armel --foreign squeeze rootfs/ http://www.emdebian.org/grip/

下載完成後,再做一些調整

#echo "proc /proc proc none 0 0" >> rootfs/etc/fstab
#echo "lw3xx" > rootfs/etc/hostname
#mkdir -p rootfs/usr/share/man/man1/
#mknod rootfs/dev/console c 5 1
3,設置 uboot 啓動參數,設置爲從 NFS 啓動 emdebian 的文件系統

setenv bootargs console=ttyS0,115200n8 init=/bin/sh ip=dhcp root=/dev/nfs noinitrd nfsroot=192.168.0.100:/srv/nfs/rootfs-emdebian,nolock mem=60M
saveenv

4,準備好適用於 LW3xx 的 uImage

請參考

5,LW3xx 正常啓動後,調用一下命令,進入 emdebian 根文件系統製作的第二階段(製作時間比較長,請耐心等待)

/debootstrap/debootstrap --second-stage
完成之後,再執行如下命令

echo "ttyS0" >> /etc/securetty
printf "T0:123:respawn:/sbin/getty 115200 ttyS0\n" >> /etc/inittab
#printf "auto eth0\niface eth0 inet dhcp\n" >> /etc/network/interfaces  
passwd
reboot -f

上面第三行不要執行了 printf "auto eth0\niface eth0 inet dhcp\n" >> /etc/network/interfaces

因爲 uboot 中已經設置 bootargs 爲 DHCP,要不然,反而會有錯誤提示

nfs: Server 192.168.0.10 not responding, still trying

關於 passwd ,請使用 6 位數字作爲密碼

6,重啓後,先進入 uboot 命令行,重新設置 linux 啓動參數

setenv bootargs console=ttyS0,115200n8 init=/sbin/init ip=dhcp root=/dev/nfs noinitrd nfsroot=192.168.0.100:/srv/nfs/rootfs-emdebian,nolock mem=60M
tftp 80700000 uImage-3.3.4
bootm

7,更新 emdebian

#echo "deb http://www.emdebian.org/grip/ squeeze main" >> rootfs/etc/apt/sources.list

系統正常啓動後,就可以更新系統了

apt-get update

如遇到登錄服務器失敗,請在 /etc/resolv.conf 中手動添加 DNS 服務器 IP 地址

8,利用 apt-get 安裝軟件

apt-get install php5 apache2 sqlite3







發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章