[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debian-users:25146] [Q] How to configure network? Any tool? ([Q] How to make eth0 ? because of no eth0.)



柴田(あ)hです。

第一段階を登れたかもしれません。
で、続けざまに質問いたします。

【質問】
Debian ではネットワーク設定はどのファイルをいじるのが
正当な方法なのでしょうか?
あるいは便利なツールはあるのでしょうか?
apt-cache search netconfig (Slackware のツール)では
何もでてきませんでしたのでなんか違う名前のツールがありそうですし。

eth0 は認識されているようです。
が、 /sbin/ifconfig では lo のみでてくる状態です。

Slackware だと /etc/rc.d/rc.inet1 にガビガビと記述すれば
よかったのですが、それにあたるファイルが見つけられません。
起動ファイル関係がぜんぜん違うので閉口しています。
普通はインストール時に設定できちゃうものでしょうから
まだ読み込みの足りない徹底入門本で発見できません。



【報告】
松田様、特別にコンパイルしていただきありがとうございました。
残念ながら tulip.o もエラーでて、アウトのようでした。
 kernel panic が出ました(あたりまえですね)が、ジョッキをもった
TuX ペンギンをはじめて見られてちょっと幸せ。

In message <3A0F63DE.88C6E65C@xxxxxxxxxxxx>
   "[debian-users:25139] Re: [Q] How to make eth0 ? because of no eth0."
   "Mon, 13 Nov 2000 12:45:46 +0900"
   "WATANABE Katsuyuki <katsuyuki_1.watanabe@xxxxxxxxxxxx>" wrote:

> Corega CB-TXL (100/10BASE-T,CardBus, AN985) を pcmcia-cs 3.1.16〜3.1.20
> で使えるようにする安直なパッチを以下で公開しています。
> http://www.page.sannet.ne.jp/knabe/tulip_cb.0.91g-ppc.cb-txl.diff

ありがとうございました。
eth0 が出てきました。
diff のとり方は知っているのですが、パッチの当て方を
しらないので、チマチマと手打ちで相当分を変更いれてみました。
ただ、本当に正しく動いているのかは不明なので、ネットワークの
設定が一通り終わってから diff をとって公開しようと
思います。


> # pcmcia-cs に取り込まれている tulip.c 0.99g-ppc に対するものですので、
> # カーネルソースの tulip ドライバに対して当てるには注意してください。

知恵熱が出そうなくらい悩みましたが、0.91g に対しての
変更でできるようです。


> help wrote:
> > ■ダメな組み合わせ、その4 kernel 2.2.17 付属の tulip.c を 0.92 に
> > 置き換えた状態から、 tulip.c を書き換えてみました。
> >         { "ADMtek Centaur-P", { 0xNNNNNNNN, 0xffffffff },
> >           TULIP_IOTYPE, 256, COMET },
> >  NNNNNNNN=09850002
> >  NNNNNNNN=09851317
> 
> ここを、NNNNNNNN=12161113 としてみてはいかがでしょうか?

これはぜんぜんダメ(ほかのパターンと一緒)でした。


【各種情報】
■ カーネルコンパイル時に出たウォーニング
取得方法は make-kpkg --revision hoge kernel_image 2> fuga
tulip.c も warning でてますが、使ってないと言ってるだけなので
問題ないと考えています。 
---------------------------------------
init/main.c: In function `start_kernel':
init/main.c:1423: warning: implicit declaration of function `bigphysarea_init'
floppy.c: In function `result':
floppy.c:1168: warning: `status' might be used uninitialized in this function
joliet.c: In function `uni16_to_x8':
joliet.c:23: warning: unused variable `uni_page'
joliet.c:22: warning: unused variable `cl'
joliet.c:22: warning: unused variable `ch'
{standard input}: Assembler messages:
{standard input}:1841: Warning: using `%eax' instead of `%ax' due to `l' suffix
{standard input}:1841: Warning: using `%eax' instead of `%ax' due to `l' suffix
{standard input}: Assembler messages:
{standard input}:1009: Warning: using `%eax' instead of `%ax' due to `l' suffix
{standard input}:1009: Warning: using `%eax' instead of `%ax' due to `l' suffix
{standard input}: Assembler messages:
{standard input}:333: Warning: using `%eax' instead of `%ax' due to `l' suffix
{standard input}:334: Warning: using `%eax' instead of `%ax' due to `l' suffix
{standard input}:335: Warning: using `%eax' instead of `%ax' due to `l' suffix
{standard input}:336: Warning: using `%eax' instead of `%ax' due to `l' suffix
{standard input}:337: Warning: using `%eax' instead of `%ax' due to `l' suffix
{standard input}:592: Warning: using `%eax' instead of `%ax' due to `l' suffix
{standard input}:592: Warning: using `%eax' instead of `%ax' due to `l' suffix
{standard input}: Assembler messages:
{standard input}:1119: Warning: using `%edx' instead of `%dx' due to `l' suffix
{standard input}:1134: Warning: using `%edx' instead of `%dx' due to `l' suffix
/tmp/ccKrFQPO.s: Assembler messages:
/tmp/ccKrFQPO.s:609: Warning: using `%edx' instead of `%dx' due to `l' suffix
/tmp/ccKrFQPO.s:609: Warning: using `%edx' instead of `%dx' due to `l' suffix
/tmp/ccKrFQPO.s:646: Warning: using `%edx' instead of `%dx' due to `l' suffix
/tmp/ccKrFQPO.s:646: Warning: using `%edx' instead of `%dx' due to `l' suffix
/tmp/ccKrFQPO.s:742: Warning: using `%ecx' instead of `%cx' due to `l' suffix
/tmp/ccKrFQPO.s:749: Warning: using `%edx' instead of `%dx' due to `l' suffix
/tmp/ccKrFQPO.s:750: Warning: using `%edx' instead of `%dx' due to `l' suffix
/tmp/ccKrFQPO.s:763: Warning: using `%edx' instead of `%dx' due to `l' suffix
/tmp/ccKrFQPO.s:763: Warning: using `%edx' instead of `%dx' due to `l' suffix
{standard input}: Assembler messages:
{standard input}:1413: Warning: using `%bx' instead of `%ebx' due to `w' suffix
{standard input}: Assembler messages:
{standard input}:943: Warning: using `%edx' instead of `%dx' due to `l' suffix
{standard input}:944: Warning: using `%edx' instead of `%dx' due to `l' suffix
{standard input}: Assembler messages:
{standard input}:457: Warning: using `%eax' instead of `%ax' due to `l' suffix
{standard input}:457: Warning: using `%eax' instead of `%ax' due to `l' suffix
setup.c: In function `transmeta_model':
setup.c:762: warning: unused variable `edx'
setup.c:762: warning: unused variable `ecx'
setup.c:762: warning: unused variable `n'
bios32.c: In function `pci_fixup_serverworks':
bios32.c:1058: warning: unused variable `bus'
bios32.c: In function `pci_fixup_compaq':
bios32.c:1073: warning: unused variable `bus'
{standard input}: Assembler messages:
{standard input}:1096: Warning: indirect lcall without `*'
{standard input}:1182: Warning: indirect lcall without `*'
{standard input}:1267: Warning: indirect lcall without `*'
{standard input}:1307: Warning: indirect lcall without `*'
{standard input}:1338: Warning: indirect lcall without `*'
{standard input}:1369: Warning: indirect lcall without `*'
{standard input}:1400: Warning: indirect lcall without `*'
{standard input}:1430: Warning: indirect lcall without `*'
{standard input}:1460: Warning: indirect lcall without `*'
/tmp/ccjQTElc.s: Assembler messages:
/tmp/ccjQTElc.s:668: Warning: using `%eax' instead of `%ax' due to `l' suffix
/tmp/ccjQTElc.s:669: Warning: using `%eax' instead of `%ax' due to `l' suffix
/tmp/ccjQTElc.s:670: Warning: using `%eax' instead of `%ax' due to `l' suffix
/tmp/ccjQTElc.s:671: Warning: using `%eax' instead of `%ax' due to `l' suffix
/tmp/ccjQTElc.s:830: Warning: using `%eax' instead of `%ax' due to `l' suffix
/tmp/ccjQTElc.s:831: Warning: using `%eax' instead of `%ax' due to `l' suffix
/tmp/ccjQTElc.s:832: Warning: using `%eax' instead of `%ax' due to `l' suffix
/tmp/ccjQTElc.s:833: Warning: using `%eax' instead of `%ax' due to `l' suffix
/tmp/ccjQTElc.s:913: Warning: using `%eax' instead of `%ax' due to `l' suffix
/tmp/ccjQTElc.s:914: Warning: using `%eax' instead of `%ax' due to `l' suffix
/tmp/ccX326Se.s: Assembler messages:
/tmp/ccX326Se.s:109: Warning: using `%eax' instead of `%ax' due to `l' suffix
/tmp/ccX326Se.s:110: Warning: using `%eax' instead of `%ax' due to `l' suffix
/tmp/ccX326Se.s:111: Warning: using `%eax' instead of `%ax' due to `l' suffix
/tmp/ccX326Se.s:112: Warning: using `%eax' instead of `%ax' due to `l' suffix
Root device is (3, 8)
Boot sector 512 bytes.
Setup is 1284 bytes.
System is 418 kB
tulip.c:30: warning: `max_interrupt_work' defined but not used
tulip.c:152: warning: `kernel_version' defined but not used
dir.c: In function `uni16_to_x8':
dir.c:72: warning: unused variable `uni_page'
dir.c:71: warning: unused variable `cl'
dir.c:71: warning: unused variable `ch'
namei.c: In function `xlate_to_uni':
namei.c:679: warning: passing arg 1 of pointer to function discards qualifiers from pointer target type
---------------------------------------

■ dmesg の内容
一番下に認識された eth0 がでています。
ただし、「 Configuring network interfaces: Don't seem to
 be have all the variables for eth0 」のメッセージは依然
出てきます。([debian-users:25049] 以来)
dmesg には入りませんので手打ちで写すことしかできませんが。
---------------------------------------
Linux version 2.2.17 (root@hotate) (gcc version 2.95.2 20000220 (Debian GNU/Linux)) #1 Mon Nov 13 22:43:41 JST 2000
Detected 497566 kHz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 992.87 BogoMIPS
Memory: 128348k/131008k available (728k kernel code, 412k reserved, 1484k data, 36k init)
Dentry hash table entries: 16384 (order 5, 128k)
Buffer cache hash table entries: 131072 (order 7, 512k)
Page cache hash table entries: 32768 (order 5, 128k)
CPU: Intel Pentium III (Coppermine) stepping 03
Checking 386/387 coupling... OK, FPU using exception 16 error reporting.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
PCI: PCI BIOS revision 2.10 entry at 0xfd9be
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Enabling memory for device 00:22
PCI: Enabling I/O for device 00:3a
PCI: Enabling memory for device 00:40
PCI: Enabling I/O for device 00:80
PCI: Enabling memory for device 00:80
PCI: Enabling I/O for device 00:88
PCI: Enabling memory for device 00:88
Linux NET4.0 for Linux 2.2
Based upon Swansea University Computer Society NET3.039
NET4: Unix domain sockets 1.0 for Linux NET4.0.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
TCP: Hash tables configured (ehash 131072 bhash 65536)
Starting kswapd v 1.5 
Detected PS/2 Mouse Port.
Serial driver version 4.27 with no serial options enabled
ttyS01 at 0x02f8 (irq = 3) is a 16550A
pty: 256 Unix98 ptys configured
PIIX4: IDE controller on PCI bus 00 dev 39
PIIX4: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0x1050-0x1057, BIOS settings: hda:DMA, hdb:pio
    ide1: BM-DMA at 0x1058-0x105f, BIOS settings: hdc:DMA, hdd:pio
hda: FUJITSU MHK2120AT, ATA DISK drive
hdc: CD-224E, ATAPI CDROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: FUJITSU MHK2120AT, 11513MB w/512kB Cache, CHS=1467/255/63, UDMA
hdc: ATAPI 24X CD-ROM drive, 128kB Cache
Uniform CD-ROM driver Revision: 3.11
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
Partition check:
 hda: hda1 hda2 < hda5 hda6 hda7 hda8 hda9 >
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 36k freed
Adding Swap: 265032k swap-space (priority -1)
  The PCI BIOS has not enabled the device at 0/136!  Updating PCI command 0013->0017.
tulip.c:v0.91g-ppc 7/16/99 becker@xxxxxxxxxxxxxxxxxxxx
eth0: Accton Technology EN2242 rev 17 at 0x1800, 00:90:96:03:49:2D, IRQ 10.
---------------------------------------

--
あまねく生命に、あまねく知性に、最大の幸福を願う
E-mail:help@xxxxxxxxx