Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Installing Gentoo with minimal cd issue
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
lazykoala
n00b
n00b


Joined: 08 Jan 2014
Posts: 22

PostPosted: Fri Apr 18, 2014 12:58 pm    Post subject: Installing Gentoo with minimal cd issue Reply with quote

In this thread:
https://forums.gentoo.org/viewtopic-t-988870.html
I successfully make wireless network work then I finished the installation of gentoo according to handbook's steps. (use genkernel all to configure kernel)

However, after I login to the new system. The wireless network module doesn't automatically load, worse is the module doesn't exist in /lib/modules/.../net/wireless folder, and lots of commands(which can be used in live cd) are not available: net-setup, wpa_passphrase and etc.

Anyone can help? Thanks.
Back to top
View user's profile Send private message
gotyaoi
Tux's lil' helper
Tux's lil' helper


Joined: 01 Apr 2013
Posts: 137

PostPosted: Fri Apr 18, 2014 7:51 pm    Post subject: Reply with quote

I'm not too familiar with the genkernel setup, but the lack of commands I think is attributable to the fact that the live CD has a lot of general purpose programs, while the stage3 is much more bare, so you'd probably need to install those programs yourself. If you're in a position where you could plug in a network cable, you could do it that way, or you could chroot in and install them at that point.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Fri Apr 18, 2014 8:15 pm    Post subject: Reply with quote

You're going to need to follow the Gentoo Network Configuration portion of the Handbook. There's a section dedicated to wireless. Once you look at that, if you have any questions, just ask. ;)

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
lazykoala
n00b
n00b


Joined: 08 Jan 2014
Posts: 22

PostPosted: Fri Apr 18, 2014 10:07 pm    Post subject: Reply with quote

Thank you very much. I've read the network document. As I said in the other thread I mentioned above, my problem is NOT how to configure network, it is after installed the base system using stage3-tarball, my wireless adapter card can't be identified. I don't know how the live cd makes it work. I hope at least the new system can work like the minimal live cd, automatically identify the wireless adapter card.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Sat Apr 19, 2014 12:04 am    Post subject: Reply with quote

Okay, although the network guide explains it, let me walk you through it. Could you post the output of
Code:
lspci
please? You can do this from the install CD.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
lazykoala
n00b
n00b


Joined: 08 Jan 2014
Posts: 22

PostPosted: Sat Apr 19, 2014 12:28 am    Post subject: Reply with quote

Thank you very much. The command lspci & lsusb are not avaible in my new system, and lots of other commands.

Now I'm using systemRescueCd to install gentoo again. It's a fantastic tool. I boot from GUI. The following is my system information:

PCI Information:
Code:
root@sysresccd /root % lspci
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05)
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b5)
00:1c.1 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 2 (rev b5)
00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation H61 Express Chipset Family LPC Controller (rev 05)
00:1f.2 IDE interface: Intel Corporation 6 Series/C200 Series Chipset Family 4 port SATA IDE Controller (rev 05)
00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 05)
00:1f.5 IDE interface: Intel Corporation 6 Series/C200 Series Chipset Family 2 port SATA IDE Controller (rev 05)
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 05)



USB Information:
Code:
root@sysresccd /root % lsusb
Bus 002 Device 004: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter
Bus 002 Device 003: ID 0951:1643 Kingston Technology DataTraveler G3
Bus 001 Device 003: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub



Network Information:
Code:


root@sysresccd /root % iwconfig
lo        no wireless extensions.

enp2s0    no wireless extensions.

wlp0s29u1u2  IEEE 802.11bgn  ESSID:"NETGEAR59" 
          Mode:Managed  Frequency:2.437 GHz  Access Point: 4C:60:DE:EB:EA:92   
          Bit Rate=150 Mb/s   Tx-Power=20 dBm   
          Retry  long limit:7   RTS thr=2347 B   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=42/70  Signal level=-68 dBm 
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:2458   Missed beacon:0

root@sysresccd /root % ifconfig
enp2s0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 00:e0:4c:36:83:73  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlp0s29u1u2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.32  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 fe80::213:efff:fed0:2a31  prefixlen 64  scopeid 0x20<link>
        ether 00:13:ef:d0:2a:31  txqueuelen 1000  (Ethernet)
        RX packets 21117  bytes 27993313 (26.6 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 14311  bytes 1370741 (1.3 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
Back to top
View user's profile Send private message
lazykoala
n00b
n00b


Joined: 08 Jan 2014
Posts: 22

PostPosted: Sat Apr 19, 2014 1:00 am    Post subject: Reply with quote

Hard Disk Info:
Code:

root@sysresccd /root % fdisk /dev/sda
Welcome to fdisk (util-linux 2.22.2).

Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): p

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes, 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xf0b1ebb0

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048        6143        2048   ef  EFI (FAT-12/16/32)
/dev/sda2   *        6144      268287      131072   83  Linux
/dev/sda3          268288     8656895     4194304   82  Linux swap / Solaris
/dev/sda4         8656896  1953525167   972434136    5  Extended
/dev/sda5         8658944   218374143   104857600   83  Linux
/dev/sda6       218376192  1953525167   867574488   83  Linux



Note:
sda1: Reservered space (not sure if it's really needed, the doc says it's needed)
sda2: boot
sda3: swap
sda5: /
sda6: home


My purpose:

1. Install the base Gentoo system, having basic tools, like network tools, system adminstration tools
2. Network is working perfect
3. Install a GUI, I prefer XFCE

In a word, a system similar to the one in the SystemRescueCD, a basic Gentoo system with XFCE GUI. Can you guide me to do this?
I have two main issues:
1. Not sure how to make rtl8192cu module work in my new system
Generally speaking:
a. not know how to detect my hardware is. eg: I insert a usb wireless network adapter card, but what it is in the system? what is its name?
b. if system can identify it and automatically load it, which module it is? what is the driver? What are the related configurations? How can I find them?
c. The wireless network adapter works well in the livecd system, but how can I make it also work in a new system? Which firmware, driver, configuration I should copy or install in the new system?

2. Not know which packages need to install in order to use some commands, like lsusb, lspci.
Generally speaking:
a. Not know which command in which package
b. What a package is used for?

For experts, I know these may be stupid questions. I know there are some docs or guides I can read to do these, they gave me some steps, however, I don't understand why need these steps. These are always confused me. If I don't understand why they do these, the reasons behinde the scenes, I will always have issues, and similar issues. I don't just want to know how, but why. That's why I choose gentoo in so many distros. I know it's hard, but If I can understand a lots of 'why', not just 'how' or 'what', then I can handle most of issues, no need to ask stupid questions in the world.
Back to top
View user's profile Send private message
lazykoala
n00b
n00b


Joined: 08 Jan 2014
Posts: 22

PostPosted: Sat Apr 19, 2014 3:10 am    Post subject: Reply with quote

The existing wireless usb adapter is very unstable. I bought a new one: TP-Link TL-WN721N


Code:
root@sysresccd /root % lsusb
Bus 002 Device 004: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n
Bus 002 Device 003: ID 0951:1643 Kingston Technology DataTraveler G3
Bus 001 Device 003: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


This one is better and stable.
Back to top
View user's profile Send private message
Clad in Sky
l33t
l33t


Joined: 04 May 2007
Posts: 887
Location: Germany

PostPosted: Sat Apr 19, 2014 6:33 am    Post subject: Reply with quote

If the module for your network device does not exist this can be due to 2 things:
1) You (or genkernel) didn't specify it when you configured your kernel.
2) It is not compiled as a module but built into the kernel

If it is 1), you need to go to /usr/src/linux, make menuconfig, and look for your network device in Device Drivers → Network Devices → Wireless
If it is 2), you should find it marked with [*] and the driver will be built into the kernel. With 3.12.13 I had the problem with my Intel card that it would not load the firmware if it was built in, so I had to compile it as a module.

For your new TP-Link device you seem to need the ath9k_htc driver, according to this here: http://wireless.kernel.org/en/users/Devices/USB
_________________
Kali Ma
Now it's autumn of the aeons
Dance with your sword
Now it's time for the harvest
Back to top
View user's profile Send private message
lazykoala
n00b
n00b


Joined: 08 Jan 2014
Posts: 22

PostPosted: Sun Apr 20, 2014 12:02 am    Post subject: Reply with quote

Thank you very much Clad, it's very helpful. I'm now reinstalling my gentoo using new usb wireless network card.
And especially thank you for explaining the reasons why my system is not working.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sun Apr 20, 2014 12:08 am    Post subject: Reply with quote

You should not reinstall it, your first install was OK, you just had to add some packages. You do not need to reinstall for that.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
lazykoala
n00b
n00b


Joined: 08 Jan 2014
Posts: 22

PostPosted: Sun Apr 20, 2014 5:02 am    Post subject: Reply with quote

Jaglover wrote:
You should not reinstall it, your first install was OK, you just had to add some packages. You do not need to reinstall for that.


Thank you. I realized that. However, it's no harm to do another time, I get more familiar with installation process and can understand more.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum