顯示文章

這裡允許您檢視這個會員的所有文章。請注意, 您只能看見您有權限閱讀的文章。


文章 - WillyHung

頁: [1]
1
Embedded 討論版 / Re: Embedded Linux課程
« 於: 2011-08-30 11:42 »
Dear Spock,

個人覺得可以和上課的機構問問看,是否可以試讀??畢竟上這課真的很貴......
最後再想想是否真的要繳費上課??

我自己也很想上這課,不知大家是否有線上教學的影片?
Thanks.

2
引述: "stone_long"
各位前辈:
    我在FC5(linux-2.6.15)下编译linux-2.4.34.2时遇到了一个问题,已经耗了很长时间还未得到解决,现在贴出来,盼望各位前辈能不吝赐教。谢谢。

    我从www.kernel.org下载linux-2.4.34.2后,将其拷贝到/usr/src目录下,然后解压缩,然后cd到/usr/src/linux-2.4.34.2下,然后依序执行下列命令:
[root@myhost linux-2.4.34.2]#make mrproper
[root@myhost linux-2.4.34.2]#make menuconfig  (后面附有我的内核选项设置文件)
[root@myhost linux-2.4.34.2]#make dep
[root@myhost linux-2.4.34.2]#make clean
[root@myhost linux-2.4.34.2]#make bzImage
[root@myhost linux-2.4.34.2]#make modules
[root@myhost linux-2.4.34.2]#make modules_install
[root@myhost linux-2.4.34.2]#make install
在执行上述一系列命令的过程中没有出现错误提示。

上述命令结束后有下列结果出现
[root@myhost linux-2.4.34.2]# ls /lib/modules/
2.4.34.2  2.6.15-1.2054_FC5
[root@myhost linux-2.4.34.2]# ls /lib/modules/2.4.34.2 -l
total 96
lrwxrwxrwx 1 root root   23 Apr 30 11:01 build -> /usr/src/linux-2.4.34.2
drwxr-xr-x 8 root root 4096 Apr 30 11:01 kernel
-rw-r--r-- 1 root root   45 Apr 30 11:04 modules.alias
-rw-r--r-- 1 root root   69 Apr 30 11:04 modules.ccwmap
-rw-r--r-- 1 root root    0 Apr 30 11:04 modules.dep
-rw-r--r-- 1 root root   73 Apr 30 11:04 modules.ieee1394map
-rw-r--r-- 1 root root  132 Apr 30 11:04 modules.inputmap
-rw-r--r-- 1 root root   81 Apr 30 11:04 modules.isapnpmap
-rw-r--r-- 1 root root   99 Apr 30 11:04 modules.pcimap
-rw-r--r-- 1 root root   43 Apr 30 11:04 modules.seriomap
-rw-r--r-- 1 root root   49 Apr 30 11:04 modules.symbols
-rw-r--r-- 1 root root  189 Apr 30 11:04 modules.usbmap
drwxr-xr-x 2 root root 4096 Apr 30 11:01 pcmcia
[root@myhost linux-2.4.34.2]# ls /boot/ -l
total 6365
-rw-r--r-- 1 root root   63896 Mar 15  2006 config-2.6.15-1.2054_FC5
drwxr-xr-x 2 root root    1024 Apr 30 13:11 grub
-rw-r--r-- 1 root root  836579 Apr 30 11:04 initrd-2.4.34.2.img
-rw-r--r-- 1 root root 1023012 Dec 30 06:05 initrd-2.6.15-1.2054_FC5.img
drwx------ 2 root root   12288 Dec 30 13:50 lost+found
-rw-r--r-- 1 root root   94600 Feb  8  2006 memtest86+-1.65
lrwxrwxrwx 1 root root      19 Apr 30 11:04 System.map -> System.map-2.4.34.2
-rw-r--r-- 1 root root  637352 Apr 30 11:04 System.map-2.4.34.2
-rw-r--r-- 1 root root  811765 Mar 15  2006 System.map-2.6.15-1.2054_FC5
lrwxrwxrwx 1 root root      16 Apr 30 11:04 vmlinuz -> vmlinuz-2.4.34.2
-rw-r--r-- 1 root root 1476337 Apr 30 11:04 vmlinuz-2.4.34.2
-rw-r--r-- 1 root root 1510257 Mar 15  2006 vmlinuz-2.6.15-1.2054_FC5
[root@myhost linux-2.4.34.2]#vi /boot/grub/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/hda2
#          initrd /initrd-version.img
#boot=/dev/hda
default=1
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title My Linux (2.4.34.2)
        root (hd0,0)
        kernel /vmlinuz-2.4.34.2 ro root=LABEL=/1 rhgb quiet
        initrd /initrd-2.4.34.2.img
title Fedora Core (2.6.15-1.2054_FC5)
        root (hd0,0)
        kernel /vmlinuz-2.6.15-1.2054_FC5 ro root=LABEL=/1 rhgb quiet
        initrd /initrd-2.6.15-1.2054_FC5.img

然后我重启机器,欲使用新编译的linux-2.4.34.2进行boot。从开机到进入grub选单画面都很正常,但是当我在grub选单画面选择My Linux (2.4.34.2)后,却出现如下提示
...
Uncompressing Linux... OK, booting the kernel.
Kernel panic: VFS: Unable to mount root fs on 00:00
然后系统就停在这里不走了。

后来我查了一些资料,将/boot/grub/grub.conf文件的内容修改成如下的模样
[root@myhost linux-2.4.34.2]#vi /boot/grub/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/hda2
#          initrd /initrd-version.img
#boot=/dev/hda
default=1
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title My Linux (2.4.34.2)
        root (hd0,0)
        kernel /vmlinuz-2.4.34.2 ro root=/dev/hda2  (我的根文件系统在/dev/hda2分区上)
        initrd /initrd-2.4.34.2.img
title Fedora Core (2.6.15-1.2054_FC5)
        root (hd0,0)
        kernel /vmlinuz-2.6.15-1.2054_FC5 ro root=LABEL=/1 rhgb quiet
        initrd /initrd-2.6.15-1.2054_FC5.img

然后我重启机器,从开机到进入grub选单画面都很正常,我在grub选单画面选择My Linux(2.4.34.2)后,屏幕上有很多东西出来,但是出现如下字符后系统就不动了:
...
EXT3-fs: mounted filesystem with ordered data mode.
Freeing: unused kernel memory: 124k freed
Warning: unable to open an initial console.
Kernel panic: Attempted to kill init!
(此时Caps Lock、Scroll Lock两个灯在不停地闪)

这是怎么一回事呢?是不是因为在linux-2.6.15环境下编译linux-2.4.34.2造成的呀(两个版本差别太大)?若是这个缘故为何在编译过程中没有出错提示呀?我用的是P4的CPU,2.40GHz。


我有遇過這種狀況,建議往BIOS選項或是H.W device查

3
Linux 討論版 / Re: fedora server...
« 於: 2007-05-02 12:18 »
引述: "九仔"
放去數據中心..

因小弟將會首次將server放去數據中心....   不知道有沒有需要特別設定...  所以有兩個問題.. 請勿見笑.. :)

1. 正確是不是要set fedora boot去 Full multiuser mode (指令模式)??

2. 當使用 ssh遠端登入..  重新reboot server...   這個server就應該停留到一個登入畫面..   但server的各種服務, 如web, mysql 其實是否已經可以運作????  

謝謝指教


web 和 mydql 或是其它service是否已經運作,可以下service httpd status 看運行狀態,或是下netstat -tuln 看是否service Port listen,若是想在reboot後要讓Server run service 的話可以下chkconfig httpd(看是哪種service daemon) on
這樣就可以了,給你參考

4
Embedded 討論版 / Embedded Linux 學習課程推薦
« 於: 2007-03-22 10:22 »
現在有很多Embedded Linux教育訓練課程,不過費用不低
請問有上過Embedded Linux教育訓練課程而且覺得那家教育訓練課程不錯的?
謝謝

5
Embedded 討論版 / Re: 客制化embedded
« 於: 2007-03-20 18:03 »
引述: "V-ezlinux"
Dear All:
            看了andrew的討論版後發覺有問題的人還一直沒有得到解答,我也不想跑太遠,這樣摟誰將study-area的新竹點搞定,並安排實做課程,我提供一個月2天免費教學好了,將我所學與學員分享摟,來來來embedded 入門,進階,深入 來這裡學拉。


可以的話我想報名,謝謝分享 :P

6
Embedded 討論版 / 學習Embedded Linux之路Park2
« 於: 2007-03-20 17:50 »
引述: "thyme"
雖然學 C 只是入門,但我還是要給你加油!

建議先熟悉系統的開機,然後再熟悉 linux 系統的運作,之後再學其他的東西,
如果 embedded 系統都還不能運作,其他的東西就無從練習起了。


謝謝版主大大的建議

7
Embedded 討論版 / 學習Embedded Linux之路Park2
« 於: 2007-03-20 13:20 »
小弟最近買了Linux C/C++入門進階的書回來Study,希望先把Linux C 學好後再往Linux Driver 方向前進,不知道這學習的方向對嗎?謝謝

PS:真的好希望能把Embedd Linux學起來

8
Embedded 討論版 / 學習Embedded Linux之路
« 於: 2007-03-16 11:47 »
大家好
Embedded Linux這領域是我想邁進的
不過我現在是靠自修來學習Embedded Linux
不知道各位前輩們學習Embedded Linux心得
能否分享
謝謝

頁: [1]