Ganti Lan card baru gak terdetek

Membahas Perangkat-perangkat keras yang belum dideteksi dengan baik oleh Ubuntu serta solusinya.
User avatar
Mirsuma
Posts: 22
Joined: 29 May 2011, 13:38

Ganti Lan card baru gak terdetek

Postby Mirsuma » 07 Jun 2011, 14:23

alow all gue mau tanya lagi seputar lan card oc langsung aja ya maklum gue newbie jd banyak bertanya pengen pintar.

lan card gue dulunya realtek r8168 tp karna rusak jd nya gue ganti degan tp-link tf-3200 masalah nya kok gak bisa konek ke internet ya apa harus langsung di install atau remove dolo instalan realteknya. tp klo di tanda singnal ("pada ubuntu yang kayak mangkuk terbalik") tiap gue idupin pc tanda td tuh mencari singnal tp setelah sekian lama lalu diskonek.

Gmn ya caranya............... helpppp
User avatar
Nexus
Posts: 2957
Joined: 26 Feb 2011, 12:39
Location: Ujung dunia

Re: Ganti Lan card baru gak terdetek

Postby Nexus » 07 Jun 2011, 19:35

colokin lan card yg bermasal, lalu:

sudo -i

update-initramfs -u (bisa juga: update-initramfs all -u)

update-grub/update-burg

reboot


>>lan card jangan dilepas smp abis restart n nyala lagi
User avatar
Mirsuma
Posts: 22
Joined: 29 May 2011, 13:38

Re: Ganti Lan card baru gak terdetek

Postby Mirsuma » 08 Jun 2011, 11:27

tq all berhasil tp code itu buat id semua hardware yang kecolok ya kok kalo dulu gue pake realtek conya sama juga dengan driver gue yang lain nya
User avatar
Nexus
Posts: 2957
Joined: 26 Feb 2011, 12:39
Location: Ujung dunia

Re: Ganti Lan card baru gak terdetek

Postby Nexus » 09 Jun 2011, 08:37

tp-link itukan cuma merek gan, yg dibutuhinkan jeroan dari tp-link tersebut, yaitu chipset-nya buatan mana.. gitu lho gan.


kalo udah berhasil. tandai dengan tambahan kata [SOLVED]
User avatar
gtXgage
Posts: 4
Joined: 03 Jul 2012, 13:20

Re: Ganti Lan card baru gak terdetek

Postby gtXgage » 03 Jul 2012, 13:46

sekalian nanya donk, saya pakai 2 ethernet, yang satu eth realtek bawaan motherboard, dan terpasang dengan baik,yng satu lg tf-3200 dan gak konek.
saya rencana mau belajar bikin proxy. tapi waktu saya cek ada yang gak kedetek eth nya. saya udah coba cara yang diatas gak bisa. sy memakai ubuntu server 12.04.

ifconfig

Code: Select all

pangeran@ubuntu:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:30:67:67:21:b7
          inet addr:192.168.1.11  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::230:67ff:fe67:21b7/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1486 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1578 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:112045 (112.0 KB)  TX bytes:170744 (170.7 KB)
          Interrupt:42 Base address:0x4000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:21 errors:0 dropped:0 overruns:0 frame:0
          TX packets:21 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1899 (1.8 KB)  TX bytes:1899 (1.8 KB)

pangeran@ubuntu:~$


lspci -k

Code: Select all

pangeran@ubuntu:~$ lspci -k
00:00.0 Host bridge: Intel Corporation 82G33/G31/P35/P31 Express DRAM Controller (rev 10)
        Subsystem: Intel Corporation 82G33/G31/P35/P31 Express DRAM Controller
        Kernel driver in use: agpgart-intel
00:02.0 VGA compatible controller: Intel Corporation 82G33/G31 Express Integrated Graphics Controller (rev 10)
        Subsystem: Biostar Microtech Int'l Corp Device 3103
        Kernel driver in use: i915
        Kernel modules: i915
00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 01)
        Subsystem: Biostar Microtech Int'l Corp Device 820f
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd-hda-intel
00:1c.0 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 1 (rev 01)
        Kernel driver in use: pcieport
        Kernel modules: shpchp
00:1c.1 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 2 (rev 01)
        Kernel driver in use: pcieport
        Kernel modules: shpchp
00:1d.0 USB controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #1 (rev 01)
        Subsystem: Biostar Microtech Int'l Corp Device 3103
        Kernel driver in use: uhci_hcd
00:1d.1 USB controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #2 (rev 01)
        Subsystem: Biostar Microtech Int'l Corp Device 3103
        Kernel driver in use: uhci_hcd
00:1d.2 USB controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #3 (rev 01)
        Subsystem: Biostar Microtech Int'l Corp Device 3103
        Kernel driver in use: uhci_hcd
00:1d.3 USB controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #4 (rev 01)
        Subsystem: Biostar Microtech Int'l Corp Device 3103
        Kernel driver in use: uhci_hcd
00:1d.7 USB controller: Intel Corporation N10/ICH 7 Family USB2 EHCI Controller (rev 01)
        Subsystem: Biostar Microtech Int'l Corp Device 3103
        Kernel driver in use: ehci_hcd
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
        Subsystem: Biostar Microtech Int'l Corp Device 3103
        Kernel modules: leds-ss4200, iTCO_wdt, intel-rng
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01)
        Subsystem: Biostar Microtech Int'l Corp Device 3103
        Kernel driver in use: ata_piix
00:1f.2 IDE interface: Intel Corporation N10/ICH7 Family SATA Controller [IDE mode] (rev 01)
        Subsystem: Biostar Microtech Int'l Corp Device 5202
        Kernel driver in use: ata_piix
00:1f.3 SMBus: Intel Corporation N10/ICH 7 Family SMBus Controller (rev 01)
        Subsystem: Biostar Microtech Int'l Corp Device 3103
        Kernel modules: i2c-i801
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 02)
        Subsystem: Biostar Microtech Int'l Corp Device 2308
        Kernel driver in use: r8169
        Kernel modules: r8169
pangeran@ubuntu:~$



sy jga sdh download drivernya Dsini tapi bingung gimana cara installnya.
isi dari dalam folder LinuxDrivernya.

Code: Select all

compat.h
crc32.h
ethtool.h
Makefile
mii.c
mii.h
readme.txt
sundance_main.c


isi dari readme.txt

Code: Select all

        
                      Linux Driver

Contents:
-----------
1. File Description
2. Driver Installation for Linux
3. Driver Parameter
4. None EEPROM
5. EEPROM MP (OEM Only)

1. File Description
-------------------

Filename                Description
====================    =======================================================
sundance_main.c         Linux Driver Source Code.
                        This file is the main part of Linux Driver.

compat.h                Network interface message level settings.

crc32.h                 Crc function for early Linux 2.4.19pre kernel inclusion

ethtool.h:              Defines for Linux ethtool.

mii.h                   definitions for MII-compatible transceivers.

mii.c                   MII interface library.

makefile                Make File For IP100 Linux Driver.
                        Using "make all" for your kernel.

readme.txt              A summary of the contents for Linux Driver.
                        This file, which you are reading me now.



2. Driver Installation for Linux
-----------------------------------------
a. for kernel 2.4.x
   a1. Redhat 7.3 (linux kernel 2.4.18)
   a2. Mandrake 8.1 (kernel 2.4.8)
b. for kernel 2.6.x
c. automatically load and configure at next boot time

   a.for kernel 2.4.x
   -------------------
     a1. Redhat 7.3 (linux kernel 2.4.18)
     a1.1. install way 1:
         #make all =>generate sundance.o
         #cp sundance.o /lib/modules/2.4.18-3/kernel/drivers/net/
         #insmod ./sundance.o
         #ifconfig eth0 xxx.xxx.xxx.xxx netmask yyy.yyy.yyy.yyy
            eth0 is your network adapter,use "dmesg" to check it, ex: eth0, eth1...
            xxx  is your ip address, ex: 192.168.102.211
            yyy  is your netmask address, ex:255.255.255.0

     a1.2.  install way 2:
        #make all =>generate sundance.o
        #cp sundance.o /lib/modules/2.4.18-3/kernel/drivers/net/
        #insmod./sundance.o
        #setup
        [network configuration] =>to setup your ip address
        #ifup eth0
           eth0 is your network adapter, ex: eth0, eth1...   


     a2. Mandrake 8.1 (kernel 2.4.8)
       #make all  => generate sundance.o
       #cp sundance.o /lib/modules/2.4.8-26mdk/kernel/drivers/net
       #insmod ./sundance.o
       #ifconfig eth0 xxx.xxx.xxx.xxx netmask yyy.yyy.yyy.yyy
           eth0 is your network adapter,use "dmesg" to check it, ex: eth0, eth1...
           xxx  is your ip address, ex: 192.168.102.211
           yyy  is your netmask address, ex:255.255.255.0


   b. for kernel 2.6.x
   -------------------
      #make all  => generate sundance.ko
      #insmod ./sundance.ko (or sundance.o)
      #ifconfig eth0 xxx.xxx.xxx.xxx netmask yyy.yyy.yyy.yyy
            eth0 is your network adapter,use "dmesg" to check it, ex: eth0, eth1...
            xxx  is your ip address, ex: 192.168.102.211
            yyy  is your netmask address, ex:255.255.255.0     
   
   c. automatically load and configure at next boot time
   -----------------------------------------------------
     c1. cp sundance.o /lib/modules/`uname -r`/kernel/drivers/net
     *note: The `uname -r` is a command. Don't replace `uname -r` with
            2.4.18, 2.4.20smp, or some others. Must type `uname -r` directly.

     c2. Add the following lines at /etc/modules.conf:
              
         alias eth0 sundance
         options sundance <optional parameters>
                            
     c3. Run "netconfig" or "netconf" to create configuration script

              ifcfg-eth0 located at /etc/sysconfig/network-scripts or
              create it manually.
              [see - Configuration Script Sample]

     c4. Driver will automatically load and configure at
              next boot time.
             
     c5. Configuration Script Sample
     ===========================
         Here is a sample of a simple configuration script

         DEVICE=eth0
         USERCTL=no
         ONBOOT=yes
         POOTPROTO=none
         BROADCAST=207.200.5.255
         NETWORK=207.200.5.0
         NETMASK=255.255.255.0
         IPADDR=207.200.5.2
             

3. Driver Parameter
-------------------
  If you want to change the link speed, you could use parameter after
  insmod command.
 
  insmod sundance.o <optional parameter>    ; add parameter

  ========================================================================
   example: insmod sundance.o media=100mbps_hd
   or       insmod sundance.o media=3
   or       insmod sundance.o media=1,2,3,4   ; for 4 cards or IP100
  ========================================================================             
 
  Parameter Description
  =====================
  You can install this driver without any addtional parameter. However, if
  you are going to have extensive functions then it is necessary to set
  extra parameter. Below is a list of the command line parameters supported
  by the Linux device driver.

media=xxxxxxxxx         - Specifies the media type the NIC operates at.
              autosense   Autosensing active media.
              10mbps_hd   10Mbps half duplex.
              10mbps_fd   10Mbps full duplex.
              100mbps_hd   100Mbps half duplex.
              100mbps_fd   100Mbps full duplex.
              0      Autosensing active media.
              1      10Mbps half duplex.
              2      10Mbps full duplex.
              3      100Mbps half duplex.
              4      100Mbps full duplex.
              By default, the copper devices operate at
              autosense, the fiber devices operate at
              100Mbps full duplex.
              Note that, the fiber adapter only support
              100Mbps half/full duplex types.   

  If wanting to change speed, this driver needed to be unloaded and reloaded with
  new media parameter. Use rmmod to unload and insmod to reload driver.
  ========================================================================
   example: rmmod sundance.o
          insmod sundance.o media=3
  ========================================================================   

flowctrl=[0|1]         - Specifies the flow control function.
              0   Disable flow control.   
              1   Enable flow control.   

4. None EEPROM
--------------
  If you want to use none eeprom solution. Please put EEPROM EEDO pin to GND.
  And, please add following -DNO_EEPROM define in Makefile, and re-compile again.

MAPPING_MODE= -DUSE_IO_OPS -DNO_EEPROM

5. EEPROM MP (OEM Only)
-----------------------
  This is a special tool for OEM embedded system to burn eeprom value with
  MAC address. It is not for normal user. If you need this tool, please contact
  us directly. Thanks.
 
  5.1. unzip mp.zip and put 'mp directory' in the same directory with
  sundance_main.c

  5.2. Change Makefile:
  Form: "MAPPING_MODE= -DUSE_IO_OPS"
  To: "MAPPING_MODE= -DUSE_IO_OPS -DMP_EEPROM"

  Rebuild and load driver

  5.3. Read MAC address form EEPROM
  #cat /proc/ICPlus_eth0/IPF_EEPROM

  5.4. Write MAC address to EEPROM
  #echo "001122334455">/proc/ICPlus_eth0/IPF_EEPROM

  5.5. Convert EEPROM.TXT to eeprom_data.h
  run eep_cvrt.exe will convert EEPROM.txt to eeprom_data.h for linux driver
  use.



bantuin donk, maklum sy nyubi banget. :(
Last edited by gtXgage on 27 Feb 2016, 17:08, edited 1 time in total.
Reason: nambahin info
User avatar
Nexus
Posts: 2957
Joined: 26 Feb 2011, 12:39
Location: Ujung dunia

Re: Ganti Lan card baru gak terdetek

Postby Nexus » 03 Jul 2012, 14:22

lha disitu yg dikenal cuma satu gitu kok, jangan2 masalah hardware dari sono-nya???.
User avatar
gtXgage
Posts: 4
Joined: 03 Jul 2012, 13:20

Re: Ganti Lan card baru gak terdetek

Postby gtXgage » 03 Jul 2012, 15:38

mslh hardware yg mana yah bro klo blh tau?? kalo mslh eth tp-link nya gak kok bro, barusan saya coba install di xp bisa dan berjalan dengan baik kok.

nah kalo di ubuntu server nya selalu tampilan ky gini kalo di ifconfig.

Code: Select all

pangeran@ubuntu:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:30:67:67:21:b7
          inet addr:192.168.1.11  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::230:67ff:fe67:21b7/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1486 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1578 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:112045 (112.0 KB)  TX bytes:170744 (170.7 KB)
          Interrupt:42 Base address:0x4000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:21 errors:0 dropped:0 overruns:0 frame:0
          TX packets:21 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1899 (1.8 KB)  TX bytes:1899 (1.8 KB)


mungkin memang harus intall drivernya dulu bro, tapi saya gak tau cara install file2 dibawah ini.

Code: Select all

compat.h
crc32.h
ethtool.h
Makefile
mii.c
mii.h
readme.txt
sundance_main.c

readme nya jga sdh saya baca, tp tetep aja gak mudeng. :(

kira-kira cara install file di atas gimana yah bro? maklumlah ini baru nyoba2 make linux. :D

---------------------------------------
edit :
saya udah coba cara yg di readme.txt.
saat di make all ada yg error katanya. :(

Code: Select all

pangeran@ubuntu:~/LinuxDriver$ make all
gcc -D__KERNEL__ -DMODULE -O -Wall -Wstrict-prototypes -I/usr/include  -DUSE_IO_OPS  -D_COMPAT_WITH_OLD_KERNEL  -c -o sundance_main.o sundance_main.c
sundance_main.c:192:26: fatal error: linux/module.h: No such file or directory
compilation terminated.
make: *** [sundance_main.o] Error 1


nah kenapa lg yah??

heelllp. :'(


===================================================================
Edit :
Setelah googling seharian, kayaknya emang bug di 12.04 nih ethernet.
sekarang nyoba download 11.10 dlu, katanya bisa. :D
User avatar
blackshirt
Posts: 2336
Joined: 02 Jan 2010, 17:00
Location: Solo dan Kebumen
Contact:

Re: Ganti Lan card baru gak terdetek

Postby blackshirt » 04 Jul 2012, 06:13


pangeran@ubuntu:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:30:67:67:21:b7
inet addr:192.168.1.11 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::230:67ff:fe67:21b7/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1486 errors:0 dropped:0 overruns:0 frame:0
TX packets:1578 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:112045 (112.0 KB) TX bytes:170744 (170.7 KB)
Interrupt:42 Base address:0x4000

lah, bukane itu udah ada eth0, dengan alamat 192.168.1.11 ???
User avatar
gtXgage
Posts: 4
Joined: 03 Jul 2012, 13:20

Re: Ganti Lan card baru gak terdetek

Postby gtXgage » 04 Jul 2012, 09:50

emang yang itu detek ether nya, etehrnya kan ada 2.

yang gak detek kan yang tp-link tf-3200.

kalo yg realtek emang udah langsung ke detect dari awal.

========================================================
baru selesai donlod 11.10 nih, mau test di versi ini dulu. :D
User avatar
blackshirt
Posts: 2336
Joined: 02 Jan 2010, 17:00
Location: Solo dan Kebumen
Contact:

Re: Ganti Lan card baru gak terdetek

Postby blackshirt » 04 Jul 2012, 12:18

oh iya, gak liat dari awal...sory gan :D :D :D :D
User avatar
gtXgage
Posts: 4
Joined: 03 Jul 2012, 13:20

Re: Ganti Lan card baru gak terdetek

Postby gtXgage » 04 Jul 2012, 18:58

saya udah install 11.10, masih gak hidup juga.
tp ketika saya ifconfig eth1 up, eth1 nya hidup.

Code: Select all

root@PangeranProxy:/home/pangeran# ifconfig eth1 up
root@PangeranProxy:/home/pangeran# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:30:67:67:21:b7
          inet addr:192.168.1.111  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::230:67ff:fe67:21b7/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:351 errors:0 dropped:0 overruns:0 frame:0
          TX packets:268 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:33917 (33.9 KB)  TX bytes:38077 (38.0 KB)
          Interrupt:42 Base address:0x4000

eth1      Link encap:Ethernet  HWaddr 00:25:86:e6:ae:a3
          inet6 addr: fe80::225:86ff:fee6:aea3/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3 errors:0 dropped:0 overruns:0 carrier:3
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:238 (238.0 B)
          Interrupt:17 Base address:0xec00

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

tapi ketika mau ngasih ip, gak ada di interfaces nya.

Code: Select all

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
        address 192.168.1.111
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255
        gateway 192.168.1.1


waktu saya restart, eth1 nya hilang lg. :(

gimana caranya biar bisa up saat boot dan bisa di edit ip addressnya yah??

bantuin donkkkk... :(
User avatar
blackshirt
Posts: 2336
Joined: 02 Jan 2010, 17:00
Location: Solo dan Kebumen
Contact:

Re: Ganti Lan card baru gak terdetek

Postby blackshirt » 04 Jul 2012, 19:14

#ifconfig eth1 192.168.1.12 up

Return to “Solusi Hardware Ubuntu”

Who is online

Users browsing this forum: No registered users and 6 guests