Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Need help with install on USB....round 4..
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
btalcox0715
n00b
n00b


Joined: 09 Feb 2013
Posts: 34

PostPosted: Sat Feb 09, 2013 6:49 pm    Post subject: Need help with install on USB....round 4.. Reply with quote

Hey everyone, new to the forum. Just a little preface: I have Mint and Arch running on an external HDD, and now I'm trying to install Gentoo on a 32 GB USB. Anyway, failed at compiling kernel multiple times, kernel won't boot etc. So this go around: sdc1 is boot, sdc2 is swap, and sdc3 is root. Everything good, mounted, etc etc. Until the kernel. I failed multiple times using the manual config. Anyway, decided to use genkernel and voila! Gentoo boots! But more problems await! I am now trying to install Xorg so i can install a DE (probably gonna be Xfce or LXDE). I was reading about the Xorg config AFTER I used genkernel and learned that I need KMS enabled and a few drivers options, as well as VIDEO_CARDS and INPUT_DEVICES added to make.conf. I have an NVIDIA GeForce 650 Ti, so I used nouveau for video card and evdev for input device. So here is what I did: I copied over the genkernel config (because I know this works for getting me a working kernel) and did "make menuconfig". So it loads the genkernel config and I go in and select the KMS options and included the driver options for Xorg. However when compiling, at the very end, it gives me an error about the graphics driver "in use". Sorry I'm not at my Gentoo computer right now, and won't be until tomorrow, so I can't offer more info than this until then. Any help would be appreciated!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 31907
Location: 56N 3W

PostPosted: Sat Feb 09, 2013 7:35 pm    Post subject: Reply with quote

btalcox0715,

Welcome to Gentoo.

I see you have some experience now ... thats what you get just after you needed it :)

The genkernel provided config file is provided by genkernel itself. However, you may modify it while genkernel is running by giving the correct option to genkernel.
Its -menuconfig or --menuconfig, I don't remember which.

Code:
genkernel --help
will probably tell you.

When you use KMS, you must not select any hardware framebuffer drivers in the kernel. KMS provide that for you.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
btalcox0715
n00b
n00b


Joined: 09 Feb 2013
Posts: 34

PostPosted: Sat Feb 09, 2013 7:42 pm    Post subject: Reply with quote

Thanks for the quick reply. Right, now I'm still a little confused. If I load the genkernel config into the manual configuration, then that will only generate a kernel. Is the genkernel config file configured for use with a initramfs? Or can I do without one? Also, I noticed on the genkernel config, a lot of options are added as modules. I don't know what to add as modules and what not. I'm still not really sure on what to include for xorg to work correctly. Thanks.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6511
Location: Goose Creek SC

PostPosted: Sat Feb 09, 2013 8:39 pm    Post subject: Reply with quote

Code:
genkernel all
provides kernel, system map, and initramfs and installs them in /boot
Code:
genkernel --menuconfig all
provides and installs the same files after an intermediate stop in menuconfig which allows the user to enable or disable items in the kernel configuration.
An out of the box genkernel produced kernel requires an initramfs because the drivers for drives and file systems are configured as modules by default.
Suggested reading:
http://kernel-seeds.org/ for kernels
http://www.gentoo.org/doc/en/xorg-config.xml for xorg-server configuration.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 31907
Location: 56N 3W

PostPosted: Sat Feb 09, 2013 8:41 pm    Post subject: Reply with quote

btalcox0715,

For your GeForce 650 Ti with the nuveau driver
In the
Code:
<*> Support for frame buffer devices  --->
all the hardware framebuffer options must be off.

Anything to do with LCD backlights and
Code:
 │ │     [*]   Enable Video Mode Handling Helpers                                   │ │ 
  │ │     [*]   Enable Tile Blitting Support
may be on.

Under
Code:
<M> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)  --->

You need
Code:
  │ │     <M> Nouveau (nVidia) cards                                                 │ │ 
  │ │     (5)   Maximum debug level (NEW)                                            │ │ 
  │ │     (3)   Default debug level (NEW)                                            │ │ 
  │ │     [*]   Support for backlight control (NEW)                                  │ │ 
  │ │         I2C encoder or helper chips  --->
I don't use it so I suppose those are the defaults.

If your graphics chip meeds firmware, put it in /lib/firmware.
While you don't know if it works, modules are preferred for debug.

Genkernel builds you a generic, fully modular, boot anywhere kernel. This means you get lots of modules you don't need.
As its a fully modular kernel, you get an initrd too, as the modules needed to mount your root filesystem must be loaded before you can mount root.

It will do you for a get you going kernel. When you have more time, looks at kernel-seeds.org. That provides a good config file for you to start from that you add your hardware drivers to.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
btalcox0715
n00b
n00b


Joined: 09 Feb 2013
Posts: 34

PostPosted: Sat Feb 09, 2013 8:57 pm    Post subject: Reply with quote

Damn you guys are fast. And helpful lol. Will try this tomorrow and post results. Thanks
Back to top
View user's profile Send private message
btalcox0715
n00b
n00b


Joined: 09 Feb 2013
Posts: 34

PostPosted: Mon Feb 11, 2013 2:40 am    Post subject: Reply with quote

Okay, so followed all of the steps above and it worked. Installed xorg-server and rebooted. Logged in and executed "startx". It starts up and then terminates due to not having xterm etc. installed, but I believe it's working fine. Installing LXDE now. I'm using a wireless logitech keyboard and mouse, and I noticed that my wireless keyboard doesn't work, so I'm using a wired one. However, I don't have a wired mouse, so I don't really know what I'm gonna do if the mouse doesn't work in LXDE. It's the M510 Logitech mouse and MX 3200 Logitech keyboard if that helps.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6511
Location: Goose Creek SC

PostPosted: Mon Feb 11, 2013 5:57 pm    Post subject: Reply with quote

did your usb wireless devices work with rhe livecd?
sounds like x is working
sounds like a kernel usb support is missing
Code:
emerge usbutils xf86-input-evdev
lsusb
do the logitech usb mouse and keyboard appear? For me there is one entry for both.
Code:
dmesg | grep -i logitech
Anything interesting?
you can have usb mouse, usb keyboard, and wired keyboard all attached at the same time. Are the usb devices wired or wireless? Recommend kernel menuconfig include
Quote:
Input device support --->
<*> Event interface

[*] USB support --->
--- USB support
-*- Support for Host-side USB
[*] USB announce new devices
*** Miscellaneous USB options ***
<*> xHCI HCD (USB 3.0) support
<*> EHCI HCD (USB 2.0) support
<*> OHCI HCD support
<*> UHCI HCD (most Intel and VIA) support
<*> USB Mass Storage support

_________________
Defund the FCC.


Last edited by DONAHUE on Mon Feb 11, 2013 6:00 pm; edited 1 time in total
Back to top
View user's profile Send private message
btalcox0715
n00b
n00b


Joined: 09 Feb 2013
Posts: 34

PostPosted: Mon Feb 11, 2013 5:59 pm    Post subject: Reply with quote

Ah, found the problem: I have two USB 3.0 ports on the back, and I don't think I enabled the ports. So I have to plugin the dongle to a 2.0 port. My mouse is working fine. Now just having problems with wireless :(
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6511
Location: Goose Creek SC

PostPosted: Mon Feb 11, 2013 6:16 pm    Post subject: Reply with quote

good work. nice timing :)
what is make and model of wireless nic?
did wireless work on the livecd?( If livecd not gentoo minimal)
does nic show in l
Code:
lspci -k

if so does it have a driver?
if so does nic show in
Code:
ifconfig -a

if so does nic show in
Code:
ifconfig

did you emerge/install firmware for the nic? easy way is
Code:
emerge linux-firmware

What does dmesg say about it?
gentoo style networking? wicd? networkmanager? or ??

edit typo
_________________
Defund the FCC.


Last edited by DONAHUE on Mon Feb 11, 2013 6:32 pm; edited 1 time in total
Back to top
View user's profile Send private message
btalcox0715
n00b
n00b


Joined: 09 Feb 2013
Posts: 34

PostPosted: Mon Feb 11, 2013 6:22 pm    Post subject: Reply with quote

I am using wpa_supplicant. I also tried emerging network manager but I don't know how to use it. When i do "spci -k" i get no command found. For ifconfig It shows eth0, lo, and wlan0. But every value shows 0 for errors, packets, etc. I did emerge linux-firmware as well. And what exactly am I looking for in dmesg? I installed it and perform maintenance through Arch, so that how I had internet.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6511
Location: Goose Creek SC

PostPosted: Mon Feb 11, 2013 6:39 pm    Post subject: Reply with quote

I lost an l should be lspci -k sorry
as the interface appears in the ifconfig and ifconfig -a output as wlan0, there is a strong suggestion that you have a driver installed. the tail end of
Code:
dmesg
output normally includes the info for the attempted wireless startup.
will you be using dhcp or fixed ip addresses?
_________________
Defund the FCC.
Back to top
View user's profile Send private message
btalcox0715
n00b
n00b


Joined: 09 Feb 2013
Posts: 34

PostPosted: Mon Feb 11, 2013 6:45 pm    Post subject: Reply with quote

I'll be using dhcp. Not at the box right now but will check dmesg when I get back. I'm just confused as to how I will know that the device is working properly, and where exactly I will be setting up the network. I'd prefer a GUI but command line will work.
Back to top
View user's profile Send private message
btalcox0715
n00b
n00b


Joined: 09 Feb 2013
Posts: 34

PostPosted: Mon Feb 11, 2013 9:18 pm    Post subject: Reply with quote

Okay, I'm not seeing it when I type lspci -k. All I see for USB are just USB 2.0 host controller etc etc and the kernel driver for each controller is like "ohpci" or something along those lines. It shows up when I type "dmesg", like on the list, but I don't see anything about drivers being loaded or it not working properly. I emerged linux-firmware and I have every ralink driver enabled on the kernel, as well as every other driver needed to use a wifi device (i followed the steps on the gentoo wifi wiki page). I'm just a little unsure on how to proceed. Thanks.
Back to top
View user's profile Send private message
btalcox0715
n00b
n00b


Joined: 09 Feb 2013
Posts: 34

PostPosted: Mon Feb 11, 2013 11:31 pm    Post subject: Reply with quote

I'm literally so close I think. wlan0 is being recognized by lsusb, ifconfig, and dmesg. On ifconfig, it's even sending packets. Dmesg gives me an output saying wlan0 authenticating, wlan0 authenticated. try (1/3) etc. etc. I'm sorry I'm not posting the exact outputs of these. It's just hard because I don't have internet when I'm giving these commands. I entered my network info in /etc/wpa_supplicant/wpa_supplicant.conf and then typed "wpa_supplicant -Dralink -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf" and it gives me an error saying ralink driver does not support wpa_supplicant. Apparently the rt2800 works fine for the Linksys WUSB100, but when i type lsusb it gives me the device then says (ralink rt2870).
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6511
Location: Goose Creek SC

PostPosted: Mon Feb 11, 2013 11:58 pm    Post subject: Reply with quote

Code:
emerge wireless-tools
iwlist scan
should find your network info

/etc/wpa_supplicant/wpa_supplicant.conf:
Quote:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
update_config=1

network={
ssid="your ssid"
psk="your passphrase"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
auth_alg=OPEN
}


Code:
ls -l  /etc/init.d/net.wlan0
should yield
Quote:
/etc/init.d/net.wlan0 -> net.lo


/etc/conf.d/net:
Quote:
modules_wlan0="wpa_supplicant"
wpa_supplicant_wlan0="-Dnl80211"
wpa_timeout_wlan0=15
iwconfig_wlan0_mode="Managed"
config_wlan0="dhcp"
dhcpcd_wlan0="-t 10"


/etc/rc.conf:
Quote:
rc_parallel="NO"


Code:
rc-update add net.wlan0 default


Code:
rc-update show
if dhcpcd or wpa_supplicant are listed in a runlevel, remove them
_________________
Defund the FCC.
Back to top
View user's profile Send private message
btalcox0715
n00b
n00b


Joined: 09 Feb 2013
Posts: 34

PostPosted: Tue Feb 12, 2013 12:22 am    Post subject: Reply with quote

Okay, I did all steps above. How do I connect to the access point now?
Back to top
View user's profile Send private message
btalcox0715
n00b
n00b


Joined: 09 Feb 2013
Posts: 34

PostPosted: Tue Feb 12, 2013 12:48 am    Post subject: Reply with quote

Okay so I entered /etc/init.d/net.wlan0 --verbose start and it said it has already started but is inactive. So then I typed the same thing but instead of start i typed restart. Still, at the end it says net.wlan0 has started but inactive. I'm seeing things on forums it might have somethine to do with openrc?
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6511
Location: Goose Creek SC

PostPosted: Tue Feb 12, 2013 1:31 am    Post subject: Reply with quote

the inactive message is normal. it is effective until the interface associates with a router. see how you are doing in dmesg.
Code:
dmesg | grep -i wlan0
Also
Code:
ping -c2 {your router's ip address}
a minute after the inactive report as a function check./
_________________
Defund the FCC.
Back to top
View user's profile Send private message
btalcox0715
n00b
n00b


Joined: 09 Feb 2013
Posts: 34

PostPosted: Tue Feb 12, 2013 1:41 am    Post subject: Reply with quote

A ton of errors I think. A ton of repeated text like Calling CRDA to update world regulatory domain,

wlan0:deauthenticating,
wlan0:authenticate,
wlan0: send auth to "mac address" (try (1/3),
wlan0: authenticated,
wlan0:associate with "mac address",
wlan0: RX associate with "mac address"
then like 4 lines of phy0
wlan0: associated
wlan0: disassociating from "mac address"
then 4 more lines of phy0

Then it pretty much repeats this several times.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6511
Location: Goose Creek SC

PostPosted: Tue Feb 12, 2013 6:44 pm    Post subject: Reply with quote

check that menuconfig has:
Quote:
[*] Networking support --->
--- Wireless
<M> cfg80211 - wireless configuration API
[*] nl80211 testmode command
[ ] enable developer warnings
[ ] cfg80211 regulatory debugging
[ ] enable powersave by default
[ ] cfg80211 DebugFS entries
[*] cfg80211 wireless extensions compatibility
<M> Common routines for IEEE802.11 drivers
[ ] lib80211 debugging messages
<M> Generic IEEE 802.11 Networking Stack (mac80211)
Default rate control algorithm (Minstrel) --->
[ ] Enable mac80211 mesh networking (pre-802.11s) support
[ ] Export mac80211 internals in DebugFS
[ ] Trace all mac80211 debug messages
[ ] Select mac80211 debugging features --->

<M> RF switch subsystem support --->


if you make any changes recompile and recopy kernel and reboot; check for networking.

If no changes were needed or changes were made and network still failed try changing /etc/conf.d/net to
Quote:
modules_wlan0="wpa_supplicant"
wpa_supplicant_wlan0="-Dwext"
wpa_timeout_wlan0=15
iwconfig_wlan0_mode="Managed"
config_wlan0="dhcp"
dhcpcd_wlan0="-t 10"
and
Code:
/etc/init.d/net.wlan0 restart
although my several ralink nic's have all run and run better with "-Dnl80211" I have had a couple of other chisets that only worked with "-Dwext"

do you have a gui working?[/quote]
_________________
Defund the FCC.
Back to top
View user's profile Send private message
btalcox0715
n00b
n00b


Joined: 09 Feb 2013
Posts: 34

PostPosted: Tue Feb 12, 2013 7:05 pm    Post subject: Reply with quote

The nl80211 option is not enabled, so I'll retry compiling. But I did try and change driver to wext and still nothing. Ifconfig still shows packets and all. And iwconfig shows the device but says essid:off/any and access point: not associated. Iwlist scan says IEEE 802.11i/WPA2 Version 1. Does the key-mgmt or protocol matter if its wpa2 and not wpa?
Back to top
View user's profile Send private message
btalcox0715
n00b
n00b


Joined: 09 Feb 2013
Posts: 34

PostPosted: Tue Feb 12, 2013 7:05 pm    Post subject: Reply with quote

And yeah I got lxde running. However the wpa GUI doesn't work at all. It doesn't show any adapted in the list
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6511
Location: Goose Creek SC

PostPosted: Tue Feb 12, 2013 8:09 pm    Post subject: Reply with quote

protocol in wpa_supplicant should match that produced in iwlist wlan0 scan , the essid in

please run lsusb and post the manufacturer model chipset for your nic ; mine on this machine looks like: Senao EUB9801 802.11abgn Wireless Adapter [Ralink RT3572]

run lsmod, mine in significant part:
Quote:
lsmod
Module Size Used by
rt2800usb 17440 0
rt2x00usb 10085 1 rt2800usb
rt2800lib 52171 1 rt2800usb
rt2x00lib 36808 3 rt2x00usb,rt2800lib,rt2800usb
mac80211 224970 3 rt2x00lib,rt2x00usb,rt2800lib
cfg80211 185776 2 mac80211,rt2x00lib
rfkill 16522 1 cfg80211
crc_ccitt 1502 1 rt2800lib
anything missing ?

does
Code:
ls /lib/firmware/rt*
include all of
Quote:
/lib/firmware/rt2561.bin /lib/firmware/rt2661.bin /lib/firmware/rt2870.bin /lib/firmware/rt3071.bin /lib/firmware/rt3290.bin
/lib/firmware/rt2561s.bin /lib/firmware/rt2860.bin /lib/firmware/rt3070.bin /lib/firmware/rt3090.bin /lib/firmware/rt73.bin


does screen or dmesg show any siocs errors
_________________
Defund the FCC.
Back to top
View user's profile Send private message
btalcox0715
n00b
n00b


Joined: 09 Feb 2013
Posts: 34

PostPosted: Tue Feb 12, 2013 9:27 pm    Post subject: Reply with quote

Yep everything is correct as above. Linksys WUSB100 v1 range plus wireless network adapter (ralink rt2870). I stop init.d/net.wlan0 and type wpa_supplicant -Dnl80211 -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf and all I get is could not set interface wlan0 flags: operation not possible due to RF-kill, could not set interface 'wlan0' UP, failed to initialize driver interface. As for dmesg, still the same cfg80211: calling crda to update world regulatory domain. As well as all of the stuff I posted earlier.
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
Goto page 1, 2, 3  Next
Page 1 of 3

 
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