顯示具有 研發筆記-嵌入式系統實戰 標籤的文章。 顯示所有文章
顯示具有 研發筆記-嵌入式系統實戰 標籤的文章。 顯示所有文章

2008年12月11日 星期四

研發筆記:開機設定VLan

1.Kenel要Built-in或掛載VLan driver
2.Busybox要把Vconfig的utility加入
3./usr/etc/profile加入以下

ifconfig eth0 up
vconfig add eth0 1
vconfig add eth0 2
ifconfig eth0.1 up
ifconfig eth0.2 up

研發筆記:開機設定網路

在/usr/etc/profile裡面加入

#建立proc file system
mount -t proc none /proc

#顯示有那些network device可以開啟
cat /proc/net/dev

#start network
ifconfig eth0 up
ifconfig eth0 10.10.10.1

研發筆記:開機執行/usr/etc/profile, /usr/etc/inittab,/usr/etc/rcS, /usr/etc/fstab.

busybox的
Busybox Settings --->
General Configuration --->
[*] Startup files in /usr/etc
要勾選,Busybox開機才會執行/usr/etc/profile, /usr/etc/inittab,/usr/etc/rcS, /usr/etc/fstab.

研發筆記:建立tmpfs

請參考以下兩個URL:
http://www.ibm.com/developerworks/library/l-fs3.html
http://www-128.ibm.com/developerworks/cn/linux/filesystem/l-fs3/index.html

簡單來說就是:
1.Kernel選項“Virtual memory file system support" 要打開
2.在shell下命令 mount tmpfs /tmp -t tmpfs -o size=1m

2008年12月9日 星期二

研發筆記:實作開機所遇到的問題

這裡有份大補帖
http://blog.chinaunix.net/u2/84348/showart_1386081.html