[討論]NB acer 630 -安裝成功了

如果您覺得您的問題不屬於 debian desktop 或是 debian server 版的範圍內,請在這裡發問。

版主: mufa

[討論]NB acer 630 -安裝成功了

文章turtle5001tw » 週三 12月 10, 2003 4:19 pm

個人NB , acer 630 安裝有困難.

1. kernel-image-2.4.21-5-686 /lib/modules/2.4.21-5-686/driver/net : rtl 8139too.o

modconf 可找到許多 driver , 包括 rtl 8139too . 可上網正常, ifconfig etho , 但不能安裝 nvidia driver

2. kernel-source-2.4.21 安裝 make menuconfig , make dep , make-kpkg clean , make-kpkg kernel-image-2.4.21,
dpkg --install kernel-image-2.4.21.deb , reboot

nvidia-kernel-4349.tar.gz
nvidia-GLX-4349.tar.gz
僅可找到 /lib/modules/2.4.21/driver/video : nvidia.o . dummy.o

modconf 僅找到 dummy . nvidia. , 其他driver 都不見了
包括 找不到 rtl 8139too . 不可上網,

請問. kernel-source-2.4.21 安裝 ,如何 insmod 許多 driver , 包括 rtl 8139too

小張

turtle5001tw@yahoo.com.tw




請問
最後由 turtle5001tw 於 週六 1月 10, 2004 6:55 pm 編輯,總共編輯了 4 次。
頭像
turtle5001tw
可愛的小學生
可愛的小學生
 
文章: 20
註冊時間: 週五 8月 29, 2003 11:06 pm
來自: taipei

Re: [討論]

文章d2207197 » 週三 12月 10, 2003 6:11 pm

是否有 modules 可以 insmod 應該在 config kernel 的時候就要選好啦

你上面不是有寫make menuconfig
在這個步驟的時候就應該選擇好哪些要作成 module 哪些要邊進核心

但是就算你選好了..你在 make menuconfig 之後卻又 make-kpkg clean
我記得 make-kpkg clean 是相當於 make mrproper,會把 config 都砍掉,等於你之前選好的東西都消失了

我通常都是 make clean menuconfig dep install modules modules_install

如果要包成 deb 的話,參考阿信的文章
viewtopic.php?t=1760
頭像
d2207197
鑽研的研究生
鑽研的研究生
 
文章: 1763
註冊時間: 週二 5月 27, 2003 9:57 pm
來自: 火星

re:[討論]NB acer 630 -安裝成功了

文章阿信 » 週三 12月 10, 2003 8:42 pm

make-kpkg clean 並不會刪掉.config檔案
頭像
阿信
版面大總管
版面大總管
 
文章: 4756
註冊時間: 週二 9月 03, 2002 11:58 pm
來自: 台灣 - 嘉義

re:[討論]NB acer 630 -安裝成功了

文章d2207197 » 週三 12月 10, 2003 9:30 pm

阿信 寫:make-kpkg clean 並不會刪掉.config檔案

咦~~~是喔

抱歉
頭像
d2207197
鑽研的研究生
鑽研的研究生
 
文章: 1763
註冊時間: 週二 5月 27, 2003 9:57 pm
來自: 火星

re:[討論]NB acer 630 -安裝成功了

文章turtle5001tw » 週三 12月 10, 2003 10:18 pm

我將 kernel-source-2.4.21 加上 nvidia-kernel-4349.tar.gz 加上nvidia-GLX-4349.tar.gz 編譯 nvidia.o 轉移到

新的. kernel-image-2.4.21-5-686
/lib/modules/2.4.21-5-686/driver/video :nvidia.o

modconf 看到 :nvidia. , 但是 insmod failure
可能 gcc 不一樣 version .

小張




:
頭像
turtle5001tw
可愛的小學生
可愛的小學生
 
文章: 20
註冊時間: 週五 8月 29, 2003 11:06 pm
來自: taipei

re:[討論]NB acer 630 -安裝成功了

文章訪客 » 週四 12月 11, 2003 11:15 pm

是不是這樣 compile , 請大大幫忙解決:

小張

http://lists.debian.org/debian-user/200 ... 00016.html

In article <200301010955.53994.florian.struck@t-online.de>, Florian Struck wrote:
>
> make menuconfig
> make dep
> make modules
> make-kpkg kernel_image
> and dpkg -i "resulting-kernel.deb"

Step two and three are both taken care of in step four. I also wouldn't
leave out 'make-kpkg clean' before your fourth step. I had some trouble
booting some of my kernels a while back, and I just couldn't find out what
was causing it. It seemed very random. However, I've had no such trouble
after I took a better look at the documentation and added 'make-kpkg clean'
to my building procedure.


make-kpkg clean
make-kpkg kernel_image
make-kpkg modules_image

This is how I build my kernels, with sources from kernel.org (and a couple
of manually applied patches). The third step is necessary to build a .deb
for my binary nvidia driver.




* References:
o Re: kernel recompile
+ From: Florian Struck <florian.struck@t-online.de>

* Prev by Date: Re: Getting a Higher Version w/out upgrading
* Next by Date: Re: Eterm b0rkage in sid
* Previous by thread: Re: kernel recompile
* Next by thread: Re: kernel recompile
* Index(es):
o Date
o Thread
訪客
 

re:[討論]NB acer 630 -安裝成功了

文章訪客 » 週四 12月 11, 2003 11:30 pm

http://subwiki.honeypot.net/cgi-bin/vie ... elBuilding

找到了 DebianKernelBuilding

明天試看看

小張

http://subwiki.honeypot.net/cgi-bin/vie ... elBuilding

I use DebianGnuLinux? as the main OperatingSystem on my WorkStation?. My KernelConfiguration? is a little bit nonstandard, though, as I use KernelPatches? and KernelModules? that are available through Debian, but which are not part of the main kernel tree.

As such, my method for building new kernels is a little more complicated than it is on most systems.

First, pick a local kernel revision. Something like {hostname}{revision} is good. This way, you can install multiple versions of the same kernel, each with their own configuration and modules directory, and switch between them at will.

First-Time Only Setup

You'll need to have installed a few packages before you can begin. In all likelihood, most of them are already present on your system. If they're not, it's a simple matter to install them.

* kernel-package
* initrd-tools
* cramfsprogs
* gcc
* libc-dev
* debianutils
* make
* libdb3-dev
* libncurses-dev

You can install all of these in one batch by typing:

apt-get install kernel-package initrd-tools cramfsprogs gcc libc-dev debianutils make libdb3-dev libncurses-dev

Variables Used Below

Name Example Explanation
$version 2.4.19 The main kernel version, i.e. 2.4.19, i.e.
$local myhost1 The local kernel revision as mentioned above, i.e. myhost1
$fullVersion 2.4.19myhost1 The concatenated $version and $local strings, i.e. 2.4.19myhost1

Download The Source

* Get a list of kernels available for installation. This command will show you a list of possibilities.

apt-get install kernel-source

* Download the Debian source package for the version you've chosen:

apt-get install kernel-source-$version

Build Your Kernel!

Once you've installed those, you're ready to start:

* Go to the source parent directory.

cd /usr/src

* Extract the kernel package you downloaded earlier.

tar xvjf kernel-source-$version.tar.bz

* Make linux a symlink to the kernel source. This isn't absolutely necessary, but it's a very common practice:

ln -s kernel-source-$version linux

* Extract any additional kernel module TarBalls you may wish to install.

tar xvzf nvidia-kernel-src.tar.gz

* Tell make-kpkg to apply any extra kernel patches you've installed before configuration and building.

export PATCH_THE_KERNEL="YES"

* Configure your kernel options. This method substitutes for the normal 'make {whatever}config' step. It patches the kernel with your local additions before running the config tool.

cd linux
make-kpkg --config {config|xconfig|menuconfig} configure

* Remove any extraneous files from the kernel source before building.

make-kpkg clean

* Big step #1: build the kernel package.
o You'll probably get a warning about using the initrd option. This warning does not apply to you, so you can safely ignore it.

make-kpkg --us --uc --initrd --append-to-version $local kernel_image

* Big step #2: build the module packages.
o You may get another warning here. Ignore it also.

make-kpkg --us --uc --append-to-version $local modules_image

* Look at the list of packages built by the previous two steps.
o There will be, at the least, kernel-image-$fullVersion_10.00.Custom_i386.deb
o There may also be additional module packages depending on whether you built any.

cd ..
ls -lart *.deb

* Almost finished! Install your new kernel and modules packages.

dpkg -i {list of .deb packages from the previous step}

* Finally, update the bootloader to tell it about your new kernel. Both of these commands update a particular bootloader. Use the command appropriate for the one you have installed.

lilo -v

or

update-grub

-- KirkStrauser - 13 Sep 2002
訪客
 

re:[討論]NB acer 630 -安裝成功了

文章d2207197 » 週五 12月 12, 2003 12:15 am

我上面有 po 過連結了,阿信的文章
viewtopic.php?t=1760
頭像
d2207197
鑽研的研究生
鑽研的研究生
 
文章: 1763
註冊時間: 週二 5月 27, 2003 9:57 pm
來自: 火星

re:[討論]NB acer 630 -安裝成功了

文章turtle5001tw » 週日 12月 28, 2003 1:50 pm

acer 630 有光碟機. 無 1.44 磁碟機 Floppy

重複灌 debian , 發生 開機時 Lilo 發生
LI . 就停下來.
不能以 Floppy win98 開機片 A: fdisk/mbr

1. 請問如何,做 win98 光蝶開機片 ?

自己做不成功 . 在另一台桌上 PC

# dd if=/dev/fd0 of=/mnt/windows/98bootdisk.img

Nero 燒錄程式
CD ROM(boot) -> boot -> image file C: 98bootdisk.img ->New
燒錄出來的 win98 光碟開機片 , 不能開機

請問有何其他方法 . 救會回我的 /hda ?

ref :

LILO配置攻略

http://big5.china.com/gate/big5/tech.ch ... 234837.htm

http://big5.china.com/gate/big5/tech.ch ... 234841.htm

小張
92-12-28
頭像
turtle5001tw
可愛的小學生
可愛的小學生
 
文章: 20
註冊時間: 週五 8月 29, 2003 11:06 pm
來自: taipei

re:[討論]NB acer 630 -安裝成功了

文章209088970 » 週日 12月 28, 2003 5:25 pm

acer 630 有光碟機. 無 1.44 磁碟機 Floppy
重複灌 debian , 發生 開機時 Lilo 發生
LI . 就停下來.
不能以 Floppy win98 開機片 A: fdisk/mbr

1. 請問如何,做 win98 光蝶開機片 ?

嗯…您手上若有debian 3.0的第一張安裝光碟的話,裡面會有個rescue模式,可以用它來開機,然後用root帳號登入,把/etc/lilo.conf的設定弄好來,再執行lilo -v5,reboot試試看。
.
圖檔
圖檔
頭像
209088970
活潑的高中生
活潑的高中生
 
文章: 352
註冊時間: 週日 5月 11, 2003 9:04 am

re:[討論]NB acer 630 -安裝成功了

文章訪客 » 週一 12月 29, 2003 4:38 pm

我的 lilo.conf :

lba32
boot=/dev /hda
root=/dev/hda7
map=/boot/map
delay=20
timeout=150
vga=normal
default=linux
image=/vmlinuz
label=linux
rea-only
other ....

--------------------------------------
/boot/ ls

@boot.b (->boot-menu.b )
boot.003
@system.map (->system.map-2.4.20 )
@vmlinuz (->vmlinuz-2.4.20 )
config-2.4.20
------------------------
1. 請問boot.003 要改為 boot-menu.b ?

2. rescue模式,不`能開機, root 抓不到 fs (root partition ) ?


小張
訪客
 

re:[討論]NB acer 630 -安裝成功了

文章Tetralet » 週一 12月 29, 2003 5:12 pm

Anonymous 寫:1. 請問boot.003 要改為 boot-menu.b ?

不用!
boot.003 為執行 LILO 時的 MBR 之備份。


Anonymous 寫:2. rescue模式,不`能開機, root 抓不到 fs (root partition ) ?

試試:

用光碟片開機,
鍵入:
代碼: 選擇全部
rescbf24 root=/dev/hda7

試試看!
時間並不能治療我心中的疼痛
南方的春天說什麼也溫暖不了我冰冷的血

誦唱大復活咒文,今天的 Tetralet 又在唧唧喳喳了 重生!
Tetralet
俺是博士
俺是博士
 
文章: 3078
註冊時間: 週四 11月 28, 2002 3:02 pm

re:[討論]NB acer 630 -安裝成功了

文章訪客 » 週三 12月 31, 2003 12:55 am

用光碟片開機片 rescbf24 root=/dev/hda7
找不到 Kernerl : rescbf24

debian 我的 /etc/fstab

fs mount type option dump

/dev/hda7 / ext3 defaults,error=remount-ro
/dev/hda8 /home ext3 defaults,rw,user,
/dev/hda9 none swap sw
/dev/cdrom /cdrom iso9660 defaults,ro,user,noauto

/dev/hda5 /mnt/win_d vfat defaults,rw,user,auto 0 0

重灌 Mandrake

/dev/hda7 / ext3 defaults,rw,user ( 與debian 不同)

12/29 重灌 debian 2.4.22 ( complie 後開機 )

screen 出現:
/etc/console/boottime.kmap.gz

[mntent] warning: no final newline of the end of /etc/fstab
chech root file system

fsck 1.35-wip (21 , aug 2003)

fsck ext3 , no such fule or directory , while trying to open /dev/hda7

the superblock could not be read or does not describe a current ext2 filesystem

if the device is valid and it contineoued ext2 filesystem ( and not swap
or something else ) then the superblock is corrupt , you might try
running e2fsck with an alternate superblock

e2fsck -b 8193 < device >

fsck failed , please repair mannaully , and root , please note that the root the filesystem is currently mount read-only , to remount it read-write

# mount -n -o remount,rw /

我就大膽更改 /etc/fstab

fs mount type option dump

/dev/hda7 / ext3 defaults,rw,user,auto

手動更改, reboot

lilo 選 vmlinuz-2.4.22 , 電腦當機, 卡住了

fdiak /dev/hda :

/hda1 ........... boot ................ vfat32
/hda5..........................................vfat32
/hda6...........................................vfat32
/hda7 ..........................................ext3.................... /
/hda8............................................ext3...................../home
/hda9 swap

1. 問題 /dev/hda7 要不要設 boot ?

2. hda7 , hda8 都設 ext3 , 為何 fsck 一直任為 ext2
kernel : make menuconfig ,我都有選 ext3 , ext2 , automount

小張

還好,我用 Knoppix 上網, 不受 debian 當機, 繼續討論
訪客
 

re:[討論]NB acer 630 -安裝成功了

文章turtle5001tw » 週三 1月 07, 2004 3:45 am

Acer 630 安裝debian 終於成功了, 記錄過程為自己留下記錄 , 也希望 Debian 同好參考, 建議改進, 互相勉勵.

The kernel 核心

Debian miniwoody 光碟 ,灌好 2.4.18-bf2.4 , install 過程選擇 hardware autodetect 硬體自動偵測, 完成 reboot 重開機.
Apt-get update , apt-get upgrade , apt-get dist-upgrade
kernel-package , libncurses5-dev , kernel-source-2.4.22.tar.bz2

/usr/src
kernel-source-2.4.22.tar.bz2
tar jxvf kernel-source-2.4.22.tar.bz2

cp /boot/config-2.4.18-bf2.4 /usr/src/ kernel-source-2.4.22
cd /usr/src/ kernel-source-2.4.22

# make-kpkg --config menuconfig
1. 開始載入先前 2.4.18-bf2.4 , autodetect 硬體自動偵測設定的 config
Load an Alternate Configuration File –––> config-2.418-bf2.4

2. 再設定 acer 630 硬體的設定

http://www.fagotten.org/daniele/acer-tm630/

Loadable module support –––>
[*] Enable loadable module support
ATA/IDE/MFM/RLL support –––>
<*> ATA/IDE/MFM/RLL support
IDE, ATA and ATAPI Block devices –––>
[*] Generic PCI IDE chipset support
[*] ALI M15x3 chipset support
Network device support –––>
Ethernet (10 or 100 Mbit) –––>
[*] Ethernet (10 or 100Mbit)
[*] EISA, VLB, PCI and on board controllers
<*> RealTek RTL-8139 PCI Fast Ethernet Adapter support
Character devices –––>
<*> /dev/agpgart (AGP Support)
[*] ALI chipset support
[*] Direct Rendering Manager (XFree86 DRI support)
Sound –––>
<M> Tridient ( Ali ……. )
Exit the kernel configuration and save it.

# make-kpkg clean
# make-kpkg –rev Custom.1 kernel_image ( 可以不打 )
# make-kpkg binary-arch
# cd ..

viewtopic.php?t=1760
事實上 binary-arch會產生kernel-image.deb ,kernel-headers.deb,
並用dpkg -i來安裝編譯好的kernel。

# dpkg --i /usr/src/kernel-image-2.4.22_Custom.1_i386.deb
# dpkg --i /usr/src/kernel-headers-2.4.22_Custom.1_i386.deb
lilo –v –v –v
Reboot …….

X Window

讓您的 X Window 更美好-唯有 IceWM!!

viewtopic.php?t=1945

apt-get install xserver-xfree86 xbase-clients xfonts-100dpi xfonts-75dpi xfonts-base xfonts-scalable xterm icewm ( 或 tasksel 選 x-window )

NVIDIA driver 安裝

# uname –r : 2.4.22

NVIDIA driver 須要 kernel 升級編譯 Compile , 常常有找不到 headers
可是不知道為什麼,會產生許多 header 檔找不到的問題
我確定 kernel source 下 include 裡的各個應該搬到 /usr/include 的資料夾我都有搬
看看錯誤訊息,常常是 header 中指向另一個 header 檔的路徑錯誤,不曉得如何解決 ?
http://www.nvidia.com/object/linux.html

NVIDIA-Linux-x86-1.0-5328-pkg1.run
/usr/src/kernel-image-2.4.22
/usr/src/kernel-headers-2.4.22 ( 自己產生 ,不必外載 )
/usr/src/ NVIDIA-Linux-x86-1.0-5328-pkg1.run

viewtopic.php?t=1702&highlight=NVIDIA-Linux

# chmod 777 NVIDIA-Linux-x86-1.0-5328-pkg1.run

# ./NVIDIA-Linux-x86-1.0-5328-pkg1.run --kernel-include-path=/usr/src/kernel-headers-2.4.22/include

設定 XF86Config
1.#dpkg-reconfigure xserver-xfree86
(這是最簡單的方法)
2.#XFree86 -configure
(這個方法會產生設定檔 /root/XF86Config.new)
3.cp /usr/share/doc/NVIDIA_GLX-1.0/XFree86Config.sample /etc/X11/XF86Config-4
(這個方法最有趣不過要修改的地方比較多如 font path 和螢幕頻率等等)
五.其它
#XFree86 -xf86config /root/XF86Config.new
(此參數可以幫我們測試 /root/XF86Config.new 是否有問題)
#cat /var/log/XFree86.0.log|grep EE
(這樣可以把 /root/XF86Config.new 錯誤列出,再用 nano /root/XF86Config.new 編輯、修改錯誤的部份)

後記:
謝謝參考阿信大大, SAMPO 大大 的文章,
Debian Linux的核心處理
viewtopic.php?t=1760

按裝官方釋出的 NVIDIA Driver for linux
viewtopic.php?t=1702&highlight=NVIDIA-Linux

讓您的 X Window 更美好-唯有 IceWM!!
viewtopic.php?t=1945

張正隆 93- Jan –7
最後由 turtle5001tw 於 週五 1月 09, 2004 11:01 pm 編輯,總共編輯了 1 次。
頭像
turtle5001tw
可愛的小學生
可愛的小學生
 
文章: 20
註冊時間: 週五 8月 29, 2003 11:06 pm
來自: taipei

re:[討論]NB acer 630 -安裝成功了

文章turtle5001tw » 週五 1月 09, 2004 10:57 pm

/etc/X11/XF86Config-4


# XF86Config-4 (XFree86 X server configuration file) generated by dexconf, the
# Debian X Configuration tool, using values from the debconf database.
#
# Edit this file with caution, and see the XF86Config-4 manual page.
# (Type "man XF86Config-4" at the shell prompt.)
#
# This file is automatically updated on xserver-xfree86 package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xfree86
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following commands as root:
#
# cp /etc/X11/XF86Config-4 /etc/X11/XF86Config-4.custom
# md5sum /etc/X11/XF86Config-4 > /var/lib/xfree86/XF86Config-4.md5sum
# dpkg-reconfigure xserver-xfree86

Section "Files"
FontPath "unix/:7100" # local font server
# if the local font server has problems, we can fall back on these
FontPath "/usr/lib/X11/fonts/Type1"
FontPath "/usr/lib/X11/fonts/CID"
FontPath "/usr/lib/X11/fonts/Speedo"
FontPath "/usr/lib/X11/fonts/misc"
FontPath "/usr/lib/X11/fonts/cyrillic"
FontPath "/usr/lib/X11/fonts/100dpi"
FontPath "/usr/lib/X11/fonts/75dpi"
EndSection

Section "Module"
Load "bitmap"
Load "dbe"
Load "ddc"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "record"
Load "speedo"
Load "type1"
Load "vbe"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "keyboard"
Option "CoreKeyboard"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
Option "XkbOptions" "104"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/psaux"
Option "Protocol" "PS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
Identifier "Generic Mouse"
Driver "mouse"
Option "SendCoreEvents" "true"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
EndSection

Section "Device"
Identifier "NVIDIA Corporation GeForce2 Go [NV11]"
Driver "nvidia"
BusID "PCI:1:0:0"
VideoRam 16846
Option "UseFBDev" "true"
EndSection

Section "Monitor"
Identifier "LCD"
HorizSync 28-50
VertRefresh 43-75
Option "DPMS"
EndSection

Section "Screen"
Identifier "Default Screen"
Device "NVIDIA Corporation GeForce2 Go [NV11]"
Monitor "LCD"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 4
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 15
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1024x768" "800x600" "640x480"
EndSubSection
EndSection

Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "Generic Mouse"
EndSection

Section "DRI"
Mode 0666
EndSection
頭像
turtle5001tw
可愛的小學生
可愛的小學生
 
文章: 20
註冊時間: 週五 8月 29, 2003 11:06 pm
來自: taipei


回到 debian misc

誰在線上

正在瀏覽這個版面的使用者:Google [Bot] 和 1 位訪客