Re: [gentoo-user] Having Trouble with Wireless Interface

2014-05-13 Thread Alexander Kapshuk
On 05/12/2014 10:31 PM, Hunter Jozwiak wrote:
 Hi all. I got Espeakup to finally function, but I have a problem now
 with my Realtech 8188 WiFi adapter, Rev01, according to ifconfig. I
 know it shows up as wlp7s0 on an ifconfig, normally. But for what ever
 reason, it isn't showing up. I have, in my /etc/conf.d/net the line:
 wlp7s0=DHCP. When I run ifconfig wlp7s0 up, I get an error about how
 the device is not able to be found. The driver shows up as a module in
 the kernel.

I use wpa_supplicant to manage my wireless connections.
Here's what I have in my /etc/conf.d/net:
# Prefer wpa_supplicant over wireless-tools
modules=wpa_supplicant

wpa_supplicant_wlp2s0=-Dnl80211

And the output of lspci:
02:00.0 Ethernet controller: Qualcomm Atheros AR242x / AR542x Wireless
Network Adapter (PCI-Express) (rev 01)
Subsystem: Hewlett-Packard Company Device 137b
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at d600 (64-bit, non-prefetchable) [size=64K]
Capabilities: [40] Power Management version 2
Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit-
Capabilities: [60] Express Legacy Endpoint, MSI 00
Capabilities: [90] MSI-X: Enable- Count=1 Masked-
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Virtual Channel
Kernel driver in use: ath5k
Kernel modules: ath5k

Are you setting up wireless after doing a fresh install, or did you have
it working before and then it just stopped working for you?




RE: [gentoo-user] Having Trouble with Wireless Interface

2014-05-13 Thread Hunter Jozwiak


-Original Message-
From: Alexander Kapshuk [mailto:alexander.kaps...@gmail.com] 
Sent: Tuesday, May 13, 2014 7:00 AM
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Having Trouble with Wireless Interface

On 05/12/2014 10:31 PM, Hunter Jozwiak wrote:
 Hi all. I got Espeakup to finally function, but I have a problem now 
 with my Realtech 8188 WiFi adapter, Rev01, according to ifconfig. I 
 know it shows up as wlp7s0 on an ifconfig, normally. But for what ever 
 reason, it isn't showing up. I have, in my /etc/conf.d/net the line:
 wlp7s0=DHCP. When I run ifconfig wlp7s0 up, I get an error about how 
 the device is not able to be found. The driver shows up as a module in 
 the kernel.

I use wpa_supplicant to manage my wireless connections.
Here's what I have in my /etc/conf.d/net:
# Prefer wpa_supplicant over wireless-tools modules=wpa_supplicant

wpa_supplicant_wlp2s0=-Dnl80211

And the output of lspci:
02:00.0 Ethernet controller: Qualcomm Atheros AR242x / AR542x Wireless
Network Adapter (PCI-Express) (rev 01)
Subsystem: Hewlett-Packard Company Device 137b
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at d600 (64-bit, non-prefetchable) [size=64K]
Capabilities: [40] Power Management version 2
Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit-
Capabilities: [60] Express Legacy Endpoint, MSI 00
Capabilities: [90] MSI-X: Enable- Count=1 Masked-
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Virtual Channel
Kernel driver in use: ath5k
Kernel modules: ath5k

Are you setting up wireless after doing a fresh install, or did you have it
working before and then it just stopped working for you?

This is fresh. And genkernel doesn't show RTL8188CE in the staging drivers.
It shows drivers with uffixes U and Eu, but not the CE driver.




Re: [gentoo-user] problems getting systemd to work

2014-05-13 Thread Stefan G. Weichinger
Am 13.05.2014 05:46, schrieb cov...@ccs.covici.com:

 Hi.  Well, even with use_fstab=yes, it does not put one, just
 /etc/fstab.empty of 0 length -- how can I fix?

I didn't read the full thread yet ... but let me get that straight for
me to understand the status:

* You want to have / and everything on LVM volumes (LVs) and /boot (not
/boot/efi, right? No EFI here?) as a separate partition.

Are you able to boot this via openrc?

* What is the status now with dracut? The mentioned options ... I don't
have them in my config (although my setup is now completely different
from yours ... anyway).

* Do you have systemd now installed in the default location?

* global USE-flag systemd set? and recompiled stuff ... ?

* grub-2, right?

Stefan



Re: [gentoo-user] Having Trouble with Wireless Interface

2014-05-13 Thread Alexander Kapshuk
On 05/13/2014 02:45 PM, Hunter Jozwiak wrote:

 -Original Message-
 From: Alexander Kapshuk [mailto:alexander.kaps...@gmail.com] 
 Sent: Tuesday, May 13, 2014 7:00 AM
 To: gentoo-user@lists.gentoo.org
 Subject: Re: [gentoo-user] Having Trouble with Wireless Interface

 On 05/12/2014 10:31 PM, Hunter Jozwiak wrote:
 Hi all. I got Espeakup to finally function, but I have a problem now 
 with my Realtech 8188 WiFi adapter, Rev01, according to ifconfig. I 
 know it shows up as wlp7s0 on an ifconfig, normally. But for what ever 
 reason, it isn't showing up. I have, in my /etc/conf.d/net the line:
 wlp7s0=DHCP. When I run ifconfig wlp7s0 up, I get an error about how 
 the device is not able to be found. The driver shows up as a module in 
 the kernel.

 I use wpa_supplicant to manage my wireless connections.
 Here's what I have in my /etc/conf.d/net:
 # Prefer wpa_supplicant over wireless-tools modules=wpa_supplicant

 wpa_supplicant_wlp2s0=-Dnl80211

 And the output of lspci:
 02:00.0 Ethernet controller: Qualcomm Atheros AR242x / AR542x Wireless
 Network Adapter (PCI-Express) (rev 01)
 Subsystem: Hewlett-Packard Company Device 137b
 Flags: bus master, fast devsel, latency 0, IRQ 16
 Memory at d600 (64-bit, non-prefetchable) [size=64K]
 Capabilities: [40] Power Management version 2
 Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit-
 Capabilities: [60] Express Legacy Endpoint, MSI 00
 Capabilities: [90] MSI-X: Enable- Count=1 Masked-
 Capabilities: [100] Advanced Error Reporting
 Capabilities: [140] Virtual Channel
 Kernel driver in use: ath5k
 Kernel modules: ath5k

 Are you setting up wireless after doing a fresh install, or did you have it
 working before and then it just stopped working for you?

 This is fresh. And genkernel doesn't show RTL8188CE in the staging drivers.
 It shows drivers with uffixes U and Eu, but not the CE driver.


Looks like the kernel driver for your wireless NIC is RTL8192CE
-
/usr/src/linux/drivers/net/wireless/rtlwifi/Kconfig:12,22
config RTL8192CE
tristate Realtek RTL8192CE/RTL8188CE Wireless Network Adapter
depends on PCI
select RTL8192C_COMMON
select RTLWIFI
select RTLWIFI_PCI
---help---
This is the driver for Realtek RTL8192CE/RTL8188CE 802.11n PCIe
wireless network adapters.

If you choose to build it as a module, it will be called rtl8192ce
-
If you like to check if RTL8192CE is enabled in  your kernel's .config
file. If it isn't, you probably want to compile it as a module, and then
add rtl8192ce to /etc/conf.d/modules as well.




Re: [gentoo-user] problems getting systemd to work

2014-05-13 Thread covici
Stefan G. Weichinger li...@xunil.at wrote:

 Am 13.05.2014 05:46, schrieb cov...@ccs.covici.com:
 
  Hi.  Well, even with use_fstab=yes, it does not put one, just
  /etc/fstab.empty of 0 length -- how can I fix?
 
 I didn't read the full thread yet ... but let me get that straight for
 me to understand the status:
 
 * You want to have / and everything on LVM volumes (LVs) and /boot (not
 /boot/efi, right? No EFI here?) as a separate partition.

Correct.

 
 Are you able to boot this via openrc?

Yes openrc works fine.

 
 * What is the status now with dracut? The mentioned options ... I don't
 have them in my config (although my setup is now completely different
 from yours ... anyway).

I emerged it and want to use it to boot with systemd.

 

 * Do you have systemd now installed in the default location?

Yes.

 
 * global USE-flag systemd set? and recompiled stuff ... ?

Yes.

 
 * grub-2, right?

Nope, lilo.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 cov...@ccs.covici.com



Re: [gentoo-user] problems getting systemd to work

2014-05-13 Thread Stefan G. Weichinger
Am 13.05.2014 14:29, schrieb cov...@ccs.covici.com:

 * What is the status now with dracut? The mentioned options ... I
 don't have them in my config (although my setup is now completely
 different from yours ... anyway).
 
 I emerged it and want to use it to boot with systemd.

Did you configure dracut as Canek's examples show?
Adding in the modules etc ?

Could you build the initramfs with it, matching your kernel?

Do you successfully use that initramfs with openrc then?

 * grub-2, right?
 
 Nope, lilo.

serious? Wow ... I have no experience with that combination ...

So you have something like:

 append = quiet init=/usr/lib/systemd/systemd

in your lilo.conf and applied it ... ?

Stefan




Re: [gentoo-user] problems getting systemd to work

2014-05-13 Thread Jc García
2014-05-12 21:46 GMT-06:00  cov...@ccs.covici.com:
 Hi.  Well, even with use_fstab=yes, it does not put one, just
 /etc/fstab.empty of 0 length -- how can I fix?

That is strange, never had this problem, actually adding this made it
work for me, I assume you actually used the ' yes ', might be
important for the syntax, I uncompressed my ramdisk a few minutes ago
to actually verify the fstab, and it is in fact included, might be
other parameters missing in cofiguration, all uncomented parameters in
my dracut.conf are these in case it might help you:

logfile=/var/log/dracut.log
fileloglvl=6
add_dracutmodules+=lvm bash dm kernel-modules systemd
lvmconf=yes
use_fstab=yes
host_cmdline=yes
kernel_cmdline=cmdline...

And when generating I just simply run:
dracut --kver 'kernel_version'

As you see my configuration is pretty simple, I suggest you to try
forcing the inclussion of fstab(extract, and re-compress the image),
to verify if it solves your booting problem, it might be a dracut
bug(tough it seems a relatively simple feature to be that prone to
bugs).



Re: [gentoo-user] problems getting systemd to work

2014-05-13 Thread Jc García
2014-05-13 7:02 GMT-06:00 Jc García jyo.gar...@gmail.com:
 2014-05-12 21:46 GMT-06:00  cov...@ccs.covici.com:
 Hi.  Well, even with use_fstab=yes, it does not put one, just
 /etc/fstab.empty of 0 length -- how can I fix?

 That is strange, never had this problem, actually adding this made it
 work for me, I assume you actually used the ' yes ', might be
 important for the syntax, I uncompressed my ramdisk a few minutes ago
 to actually verify the fstab, and it is in fact included, might be
 other parameters missing in cofiguration, all uncomented parameters in
 my dracut.conf are these in case it might help you:

Sorry I did a wrong cd(I still sleepy, is early morning here), I have
the same fstab.empty with nothing inside. so I'm lost here.



Re: [gentoo-user] problems getting systemd to work

2014-05-13 Thread covici
Stefan G. Weichinger li...@xunil.at wrote:

 Am 13.05.2014 14:29, schrieb cov...@ccs.covici.com:
 
  * What is the status now with dracut? The mentioned options ... I
  don't have them in my config (although my setup is now completely
  different from yours ... anyway).
  
  I emerged it and want to use it to boot with systemd.
 
 Did you configure dracut as Canek's examples show?
 Adding in the modules etc ?
 
 Could you build the initramfs with it, matching your kernel?
 
 Do you successfully use that initramfs with openrc then?
 
  * grub-2, right?
  
  Nope, lilo.
 
 serious? Wow ... I have no experience with that combination ...
 
 So you have something like:
 
  append = quiet init=/usr/lib/systemd/systemd
 
 in your lilo.conf and applied it ... ?

Nope, dracut does things different, so I am still working on the kernel
command line.  My question was about the /etc/fstab.empty problem.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 cov...@ccs.covici.com



RE: [gentoo-user] Having Trouble with Wireless Interface

2014-05-13 Thread Hunter Jozwiak


-Original Message-
From: Alexander Kapshuk [mailto:alexander.kaps...@gmail.com] 
Sent: Tuesday, May 13, 2014 8:20 AM
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Having Trouble with Wireless Interface

On 05/13/2014 02:45 PM, Hunter Jozwiak wrote:

 -Original Message-
 From: Alexander Kapshuk [mailto:alexander.kaps...@gmail.com]
 Sent: Tuesday, May 13, 2014 7:00 AM
 To: gentoo-user@lists.gentoo.org
 Subject: Re: [gentoo-user] Having Trouble with Wireless Interface

 On 05/12/2014 10:31 PM, Hunter Jozwiak wrote:
 Hi all. I got Espeakup to finally function, but I have a problem now 
 with my Realtech 8188 WiFi adapter, Rev01, according to ifconfig. I 
 know it shows up as wlp7s0 on an ifconfig, normally. But for what 
 ever reason, it isn't showing up. I have, in my /etc/conf.d/net the line:
 wlp7s0=DHCP. When I run ifconfig wlp7s0 up, I get an error about 
 how the device is not able to be found. The driver shows up as a 
 module in the kernel.

 I use wpa_supplicant to manage my wireless connections.
 Here's what I have in my /etc/conf.d/net:
 # Prefer wpa_supplicant over wireless-tools modules=wpa_supplicant

 wpa_supplicant_wlp2s0=-Dnl80211

 And the output of lspci:
 02:00.0 Ethernet controller: Qualcomm Atheros AR242x / AR542x Wireless 
 Network Adapter (PCI-Express) (rev 01)
 Subsystem: Hewlett-Packard Company Device 137b
 Flags: bus master, fast devsel, latency 0, IRQ 16
 Memory at d600 (64-bit, non-prefetchable) [size=64K]
 Capabilities: [40] Power Management version 2
 Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit-
 Capabilities: [60] Express Legacy Endpoint, MSI 00
 Capabilities: [90] MSI-X: Enable- Count=1 Masked-
 Capabilities: [100] Advanced Error Reporting
 Capabilities: [140] Virtual Channel
 Kernel driver in use: ath5k
 Kernel modules: ath5k

 Are you setting up wireless after doing a fresh install, or did you 
 have it working before and then it just stopped working for you?

 This is fresh. And genkernel doesn't show RTL8188CE in the staging
drivers.
 It shows drivers with uffixes U and Eu, but not the CE driver.


Looks like the kernel driver for your wireless NIC is RTL8192CE
-
/usr/src/linux/drivers/net/wireless/rtlwifi/Kconfig:12,22
config RTL8192CE
tristate Realtek RTL8192CE/RTL8188CE Wireless Network Adapter
depends on PCI
select RTL8192C_COMMON
select RTLWIFI
select RTLWIFI_PCI
---help---
This is the driver for Realtek RTL8192CE/RTL8188CE 802.11n PCIe
wireless network adapters.

If you choose to build it as a module, it will be called rtl8192ce
-
If you like to check if RTL8192CE is enabled in  your kernel's .config file.
If it isn't, you probably want to compile it as a module, and then add
rtl8192ce to /etc/conf.d/modules as well.

Oddly enough, I had a few other CONFIG modules not included, namely
CONFIG_80211. But, when I activated it, my kernel got bricked, and on
reboot, I got dumped in some prompt that said that the system couldn't find
a root and I should press Enter to continue, Q to skip, and something else
would give me a shell. I just did a genkernel --menuconfig kernel and built
in the modules, the compile went smooth, and I made no other changes. But
now, like I've mentioned, I've got a bricked kernel.




Re: [gentoo-user] problems getting systemd to work

2014-05-13 Thread Jc García
2014-05-13 7:18 GMT-06:00  cov...@ccs.covici.com:

 Nope, dracut does things different, so I am still working on the kernel
 command line.  My question was about the /etc/fstab.empty problem.

In the documentation it says, enabling this, uses the fstab instead of
 /proc/self/mountinfo, when generating the image, it does not say it
includes it, so I think that is working properly. Have you tried
booting manually from a grub command line(I read you use lilo, I don't
know if it has this feature, but the idea is manually write your
kernel command line before boot ), this has helped me several times
when finding booting problems, you can use anything with grub in it
(livecd, usb, etc...) so you don't have to install it, in case you are
not familiar with grub.



Re: [gentoo-user] problems getting systemd to work

2014-05-13 Thread covici
Jc García jyo.gar...@gmail.com wrote:

 2014-05-12 21:46 GMT-06:00  cov...@ccs.covici.com:
  Hi.  Well, even with use_fstab=yes, it does not put one, just
  /etc/fstab.empty of 0 length -- how can I fix?
 
 That is strange, never had this problem, actually adding this made it
 work for me, I assume you actually used the ' yes ', might be
 important for the syntax, I uncompressed my ramdisk a few minutes ago
 to actually verify the fstab, and it is in fact included, might be
 other parameters missing in cofiguration, all uncomented parameters in
 my dracut.conf are these in case it might help you:
 
 logfile=/var/log/dracut.log
 fileloglvl=6
 add_dracutmodules+=lvm bash dm kernel-modules systemd
 lvmconf=yes
 use_fstab=yes
 host_cmdline=yes
 kernel_cmdline=cmdline...
 
 And when generating I just simply run:
 dracut --kver 'kernel_version'
 
 As you see my configuration is pretty simple, I suggest you to try
 forcing the inclussion of fstab(extract, and re-compress the image),
 to verify if it solves your booting problem, it might be a dracut
 bug(tough it seems a relatively simple feature to be that prone to
 bugs).

hmmm, do we really need add_dracutmodules+=lvm bash dm kernel-modules
systemd


I had the fstab with and without the quotes,  but no difference.  Maybe
I need to include the thing individually?



-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 cov...@ccs.covici.com



[gentoo-user] udev or Gentoo issue?

2014-05-13 Thread Grant
I'm having a problem starting the USB network interfaces properly on
one of my systems.  I brought the problem to the udev list and they're
indicating that it's a Gentoo problem:

https://www.mail-archive.com/systemd-devel@lists.freedesktop.org/msg18840.html

Should I file a bug?

- Grant



Re: [gentoo-user] problems getting systemd to work

2014-05-13 Thread covici
Jc García jyo.gar...@gmail.com wrote:

 2014-05-13 7:18 GMT-06:00  cov...@ccs.covici.com:
 
  Nope, dracut does things different, so I am still working on the kernel
  command line.  My question was about the /etc/fstab.empty problem.
 
 In the documentation it says, enabling this, uses the fstab instead of
  /proc/self/mountinfo, when generating the image, it does not say it
 includes it, so I think that is working properly. Have you tried
 booting manually from a grub command line(I read you use lilo, I don't
 know if it has this feature, but the idea is manually write your
 kernel command line before boot ), this has helped me several times
 when finding booting problems, you can use anything with grub in it
 (livecd, usb, etc...) so you don't have to install it, in case you are
 not familiar with grub.

Well, if this is OK, then I can proceed, I thought that the systemd
generator needed the actual /etc/fstab file to generate the correct
mount events, so I was concerned that this would not happen, but maybe
the initrd does not need to do that so much.


-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 cov...@ccs.covici.com



Re: [gentoo-user] Having Trouble with Wireless Interface

2014-05-13 Thread Alexander Kapshuk
On 05/13/2014 04:25 PM, Hunter Jozwiak wrote:

 -Original Message-
 From: Alexander Kapshuk [mailto:alexander.kaps...@gmail.com] 
 Sent: Tuesday, May 13, 2014 8:20 AM
 To: gentoo-user@lists.gentoo.org
 Subject: Re: [gentoo-user] Having Trouble with Wireless Interface

 On 05/13/2014 02:45 PM, Hunter Jozwiak wrote:
 -Original Message-
 From: Alexander Kapshuk [mailto:alexander.kaps...@gmail.com]
 Sent: Tuesday, May 13, 2014 7:00 AM
 To: gentoo-user@lists.gentoo.org
 Subject: Re: [gentoo-user] Having Trouble with Wireless Interface

 On 05/12/2014 10:31 PM, Hunter Jozwiak wrote:
 Hi all. I got Espeakup to finally function, but I have a problem now 
 with my Realtech 8188 WiFi adapter, Rev01, according to ifconfig. I 
 know it shows up as wlp7s0 on an ifconfig, normally. But for what 
 ever reason, it isn't showing up. I have, in my /etc/conf.d/net the line:
 wlp7s0=DHCP. When I run ifconfig wlp7s0 up, I get an error about 
 how the device is not able to be found. The driver shows up as a 
 module in the kernel.

 I use wpa_supplicant to manage my wireless connections.
 Here's what I have in my /etc/conf.d/net:
 # Prefer wpa_supplicant over wireless-tools modules=wpa_supplicant

 wpa_supplicant_wlp2s0=-Dnl80211

 And the output of lspci:
 02:00.0 Ethernet controller: Qualcomm Atheros AR242x / AR542x Wireless 
 Network Adapter (PCI-Express) (rev 01)
 Subsystem: Hewlett-Packard Company Device 137b
 Flags: bus master, fast devsel, latency 0, IRQ 16
 Memory at d600 (64-bit, non-prefetchable) [size=64K]
 Capabilities: [40] Power Management version 2
 Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit-
 Capabilities: [60] Express Legacy Endpoint, MSI 00
 Capabilities: [90] MSI-X: Enable- Count=1 Masked-
 Capabilities: [100] Advanced Error Reporting
 Capabilities: [140] Virtual Channel
 Kernel driver in use: ath5k
 Kernel modules: ath5k

 Are you setting up wireless after doing a fresh install, or did you 
 have it working before and then it just stopped working for you?

 This is fresh. And genkernel doesn't show RTL8188CE in the staging
 drivers.
 It shows drivers with uffixes U and Eu, but not the CE driver.


 Looks like the kernel driver for your wireless NIC is RTL8192CE
 -
 /usr/src/linux/drivers/net/wireless/rtlwifi/Kconfig:12,22
 config RTL8192CE
 tristate Realtek RTL8192CE/RTL8188CE Wireless Network Adapter
 depends on PCI
 select RTL8192C_COMMON
 select RTLWIFI
 select RTLWIFI_PCI
 ---help---
 This is the driver for Realtek RTL8192CE/RTL8188CE 802.11n PCIe
 wireless network adapters.

 If you choose to build it as a module, it will be called rtl8192ce
 -
 If you like to check if RTL8192CE is enabled in  your kernel's .config file.
 If it isn't, you probably want to compile it as a module, and then add
 rtl8192ce to /etc/conf.d/modules as well.

 Oddly enough, I had a few other CONFIG modules not included, namely
 CONFIG_80211. But, when I activated it, my kernel got bricked, and on
 reboot, I got dumped in some prompt that said that the system couldn't find
 a root and I should press Enter to continue, Q to skip, and something else
 would give me a shell. I just did a genkernel --menuconfig kernel and built
 in the modules, the compile went smooth, and I made no other changes. But
 now, like I've mentioned, I've got a bricked kernel.


Did your genkernel boot OK, before you enabled 'CONFIG_.*80211'?
What output does the command line shown below return?
grep '^CONFIG.*80211.*=[nmy]' /usr/src/linux/.config
Here's what I get on my system:
CONFIG_CFG80211=y
CONFIG_CFG80211_DEFAULT_PS=y
CONFIG_MAC80211=y
CONFIG_MAC80211_HAS_RC=y
CONFIG_MAC80211_RC_MINSTREL=y
CONFIG_MAC80211_RC_MINSTREL_HT=y
CONFIG_MAC80211_RC_DEFAULT_MINSTREL=y
CONFIG_MAC80211_LEDS=y

I assume you also ran 'genkernel all' after running 'genkernel
--menuconfig', didn't you?

What's the contents of your /etc/conf.d/modules?

/etc/fstab?

and what's the output of 'mount|grep ^/dev'?





Re: [gentoo-user] udev or Gentoo issue?

2014-05-13 Thread Samuli Suominen

On 13/05/14 16:50, Grant wrote:
 I'm having a problem starting the USB network interfaces properly on
 one of my systems.  I brought the problem to the udev list and they're
 indicating that it's a Gentoo problem:

 https://www.mail-archive.com/systemd-devel@lists.freedesktop.org/msg18840.html

 Should I file a bug?

 - Grant


Like pointed out in the upstream thread, it's either wrongly built
net-misc/dhcpcd (should be with USE=udev)
and if not using dhcpcd, it might be a bug in net-misc/netifrc's
/etc/init.d/net.lo depend() { } section --
it's possible it's missing dependency that forces /etc/init.d/udev start
first, specially if OpenRC is using parallel
startup

So not really a udev bug, rather a misconfiguration in dhcpcd USE flags
OR bug in dependencies of netifrc's net.lo script

- Samuli



Re: [gentoo-user] udev or Gentoo issue?

2014-05-13 Thread Samuli Suominen

On 13/05/14 16:58, Samuli Suominen wrote:
 On 13/05/14 16:50, Grant wrote:
 I'm having a problem starting the USB network interfaces properly on
 one of my systems.  I brought the problem to the udev list and they're
 indicating that it's a Gentoo problem:

 https://www.mail-archive.com/systemd-devel@lists.freedesktop.org/msg18840.html

 Should I file a bug?

 - Grant

 Like pointed out in the upstream thread, it's either wrongly built
 net-misc/dhcpcd (should be with USE=udev)
 and if not using dhcpcd, it might be a bug in net-misc/netifrc's
 /etc/init.d/net.lo depend() { } section --
 it's possible it's missing dependency that forces /etc/init.d/udev start
 first, specially if OpenRC is using parallel
 startup

 So not really a udev bug, rather a misconfiguration in dhcpcd USE flags
 OR bug in dependencies of netifrc's net.lo script

 - Samuli


Or possibly you have the net.* stuff in wrong runlevels that makes them
start
too early?
There could also be a problem regarding netifrc's udev hotplugging, you can
disable it altogether by:

# ln -s /dev/null /etc/udev/rules.d/90-network.rules

The symlink to /dev/null in /etc/udev/rules.d/90-network.rules makes
/lib/udev/rules.d/90-network.rules
no-op. Notice this 90-network.rules is also part of net-misc/netifrc, so
don't make the mistake of
assuming this is a bug in any of udev, eudev or systemd

- Samuli



Re: [gentoo-user] problems getting systemd to work

2014-05-13 Thread Jc García
2014-05-13 7:43 GMT-06:00  cov...@ccs.covici.com:
 Jc García jyo.gar...@gmail.com wrote:

 2014-05-12 21:46 GMT-06:00  cov...@ccs.covici.com:
  Hi.  Well, even with use_fstab=yes, it does not put one, just
  /etc/fstab.empty of 0 length -- how can I fix?
 
 That is strange, never had this problem, actually adding this made it
 work for me, I assume you actually used the ' yes ', might be
 important for the syntax, I uncompressed my ramdisk a few minutes ago
 to actually verify the fstab, and it is in fact included, might be
 other parameters missing in cofiguration, all uncomented parameters in
 my dracut.conf are these in case it might help you:

 logfile=/var/log/dracut.log
 fileloglvl=6
 add_dracutmodules+=lvm bash dm kernel-modules systemd
 lvmconf=yes
 use_fstab=yes
 host_cmdline=yes
 kernel_cmdline=cmdline...

 And when generating I just simply run:
 dracut --kver 'kernel_version'

 As you see my configuration is pretty simple, I suggest you to try
 forcing the inclussion of fstab(extract, and re-compress the image),
 to verify if it solves your booting problem, it might be a dracut
 bug(tough it seems a relatively simple feature to be that prone to
 bugs).

 hmmm, do we really need add_dracutmodules+=lvm bash dm kernel-modules
 systemd


It's not necessary  indeed, the Idea was you to compare this with
yours, since its working here, for example bash is actually a thing of
mine wanting a nice shell even in the initrd. you include what fits
your needs.

 I had the fstab with and without the quotes,  but no difference.  Maybe
 I need to include the thing individually?



 --
 Your life is like a penny.  You're going to lose it.  The question is:
 How do
 you spend it?

  John Covici
  cov...@ccs.covici.com




Re: [gentoo-user] Having Trouble with Wireless Interface

2014-05-13 Thread Alexander Kapshuk
On 05/13/2014 04:53 PM, Alexander Kapshuk wrote:
 On 05/13/2014 04:25 PM, Hunter Jozwiak wrote:
 -Original Message-
 From: Alexander Kapshuk [mailto:alexander.kaps...@gmail.com] 
 Sent: Tuesday, May 13, 2014 8:20 AM
 To: gentoo-user@lists.gentoo.org
 Subject: Re: [gentoo-user] Having Trouble with Wireless Interface

 On 05/13/2014 02:45 PM, Hunter Jozwiak wrote:
 -Original Message-
 From: Alexander Kapshuk [mailto:alexander.kaps...@gmail.com]
 Sent: Tuesday, May 13, 2014 7:00 AM
 To: gentoo-user@lists.gentoo.org
 Subject: Re: [gentoo-user] Having Trouble with Wireless Interface

 On 05/12/2014 10:31 PM, Hunter Jozwiak wrote:
 Hi all. I got Espeakup to finally function, but I have a problem now 
 with my Realtech 8188 WiFi adapter, Rev01, according to ifconfig. I 
 know it shows up as wlp7s0 on an ifconfig, normally. But for what 
 ever reason, it isn't showing up. I have, in my /etc/conf.d/net the line:
 wlp7s0=DHCP. When I run ifconfig wlp7s0 up, I get an error about 
 how the device is not able to be found. The driver shows up as a 
 module in the kernel.

 I use wpa_supplicant to manage my wireless connections.
 Here's what I have in my /etc/conf.d/net:
 # Prefer wpa_supplicant over wireless-tools modules=wpa_supplicant

 wpa_supplicant_wlp2s0=-Dnl80211

 And the output of lspci:
 02:00.0 Ethernet controller: Qualcomm Atheros AR242x / AR542x Wireless 
 Network Adapter (PCI-Express) (rev 01)
 Subsystem: Hewlett-Packard Company Device 137b
 Flags: bus master, fast devsel, latency 0, IRQ 16
 Memory at d600 (64-bit, non-prefetchable) [size=64K]
 Capabilities: [40] Power Management version 2
 Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit-
 Capabilities: [60] Express Legacy Endpoint, MSI 00
 Capabilities: [90] MSI-X: Enable- Count=1 Masked-
 Capabilities: [100] Advanced Error Reporting
 Capabilities: [140] Virtual Channel
 Kernel driver in use: ath5k
 Kernel modules: ath5k

 Are you setting up wireless after doing a fresh install, or did you 
 have it working before and then it just stopped working for you?

 This is fresh. And genkernel doesn't show RTL8188CE in the staging
 drivers.
 It shows drivers with uffixes U and Eu, but not the CE driver.


 Looks like the kernel driver for your wireless NIC is RTL8192CE
 -
 /usr/src/linux/drivers/net/wireless/rtlwifi/Kconfig:12,22
 config RTL8192CE
 tristate Realtek RTL8192CE/RTL8188CE Wireless Network Adapter
 depends on PCI
 select RTL8192C_COMMON
 select RTLWIFI
 select RTLWIFI_PCI
 ---help---
 This is the driver for Realtek RTL8192CE/RTL8188CE 802.11n PCIe
 wireless network adapters.

 If you choose to build it as a module, it will be called rtl8192ce
 -
 If you like to check if RTL8192CE is enabled in  your kernel's .config file.
 If it isn't, you probably want to compile it as a module, and then add
 rtl8192ce to /etc/conf.d/modules as well.

 Oddly enough, I had a few other CONFIG modules not included, namely
 CONFIG_80211. But, when I activated it, my kernel got bricked, and on
 reboot, I got dumped in some prompt that said that the system couldn't find
 a root and I should press Enter to continue, Q to skip, and something else
 would give me a shell. I just did a genkernel --menuconfig kernel and built
 in the modules, the compile went smooth, and I made no other changes. But
 now, like I've mentioned, I've got a bricked kernel.


 Did your genkernel boot OK, before you enabled 'CONFIG_.*80211'?
 What output does the command line shown below return?
 grep '^CONFIG.*80211.*=[nmy]' /usr/src/linux/.config
 Here's what I get on my system:
 CONFIG_CFG80211=y
 CONFIG_CFG80211_DEFAULT_PS=y
 CONFIG_MAC80211=y
 CONFIG_MAC80211_HAS_RC=y
 CONFIG_MAC80211_RC_MINSTREL=y
 CONFIG_MAC80211_RC_MINSTREL_HT=y
 CONFIG_MAC80211_RC_DEFAULT_MINSTREL=y
 CONFIG_MAC80211_LEDS=y

 I assume you also ran 'genkernel all' after running 'genkernel
 --menuconfig', didn't you?

 What's the contents of your /etc/conf.d/modules?

 /etc/fstab?

 and what's the output of 'mount|grep ^/dev'?


While I do not use genkernel myself, I thought you might want to take a
look at this wiki article, http://wiki.gentoo.org/wiki/Genkernel, as a
way to retrace your steps and hopefully find what's got amiss.




[gentoo-user] emacs-24 C-mode bugs?

2014-05-13 Thread Grant Edwards
Have any other users been having problems with the C mode in emacs-24?
I've ran into repeated problems with auto-indentation doing the wrong
thing.  It also failed and opens a lisp debug window when I do ESC-Q
to re-flow a comment block.

I uninstalled emacs-24, masked it, and installed emacs-23.  Everything
seems to be working fine now...

-- 
Grant Edwards   grant.b.edwardsYow! Pardon me, but do you
  at   know what it means to be
  gmail.comTRULY ONE with your BOOTH!




Re: [gentoo-user] btrfs conversion: first impressions

2014-05-13 Thread Stefan G. Weichinger
Am 12.05.2014 20:28, schrieb Stefan G. Weichinger:

 Next steps:
 
 * see if things work :-)
 
 * migrate my other, faster and bigger SSD to the new and shiny root-fs.
 I boot from the EFI partition there ... but root and stuff is on the 2nd
 SSD.

done that today ... and removed the older SSD so my main desktop is now
on btrfs-only on one SSD and one HDD ... and currently not actively
mounting any extX-fs or LVM-LVs ...

interesting ;-)

I moved the underlying imagefiles of my VMs into separate
btrfs-subvolumes ... nice to be able to do snapshots here and then ... I
also took a snapshot of my /home before I cleaned up some of my
.thunderbird profile, for example.

Helpful and promising in a way, I hope I won't see big crashes in the
next days or so.

How to transform partitions/directories set up with cryptsetup into this
new world? Set up a btrfs on top of the crypted fs ? I ask because I
look for a clean setup for my 2 thinkpads.

Stefan




Re: [gentoo-user] btrfs conversion: first impressions

2014-05-13 Thread Neil Bothwick
On Wed, 14 May 2014 00:34:12 +0200, Stefan G. Weichinger wrote:

 How to transform partitions/directories set up with cryptsetup into this
 new world? Set up a btrfs on top of the crypted fs ? I ask because I
 look for a clean setup for my 2 thinkpads.

Encrypt the partition(s) with cryptsetup and them use the devices
in /dev/mapper to create the volumes. That's how I have my ZFS pools set
up and I'm looking to do the same when I try BTRFS.


-- 
Neil Bothwick

I'm in shape ... Rounds a shape isn't it?


signature.asc
Description: PGP signature


Re: [gentoo-user] btrfs conversion: first impressions

2014-05-13 Thread Stefan G. Weichinger
Am 14.05.2014 01:02, schrieb Neil Bothwick:
 On Wed, 14 May 2014 00:34:12 +0200, Stefan G. Weichinger wrote:
 
 How to transform partitions/directories set up with cryptsetup
 into this new world? Set up a btrfs on top of the crypted fs ? I
 ask because I look for a clean setup for my 2 thinkpads.
 
 Encrypt the partition(s) with cryptsetup and them use the devices 
 in /dev/mapper to create the volumes. That's how I have my ZFS
 pools set up and I'm looking to do the same when I try BTRFS.

Doesn't that screw up the whole idea of checksumming etc ?

In my understanding the FS (=btrfs or zfs) should have the direct
contact to the metal (=hdd/sdd) to be fully able to detect bitrot
and stuff.

btrfs inside a crypted volume will work, yes, but it won't be able to
see or correct flipping bits on the hardware, because the underlying
layers of cryptsetup etc might hide them.

Right?




Re: [gentoo-user] udev or Gentoo issue?

2014-05-13 Thread Grant
 I'm having a problem starting the USB network interfaces properly on
 one of my systems.  I brought the problem to the udev list and they're
 indicating that it's a Gentoo problem:

 https://www.mail-archive.com/systemd-devel@lists.freedesktop.org/msg18840.html

 Should I file a bug?

 - Grant


 Like pointed out in the upstream thread, it's either wrongly built
 net-misc/dhcpcd (should be with USE=udev)
 and if not using dhcpcd, it might be a bug in net-misc/netifrc's
 /etc/init.d/net.lo depend() { } section --
 it's possible it's missing dependency that forces /etc/init.d/udev start
 first, specially if OpenRC is using parallel
 startup

 So not really a udev bug, rather a misconfiguration in dhcpcd USE flags
 OR bug in dependencies of netifrc's net.lo script


I'm starting two interfaces, one that uses dhcpcd and one that does
not.  Both fail to start in the default runlevel until they are
hotplugged later.  I do have dhcpcd built with USE=udev.  The string
udev does not occur in /etc/init.d/net.lo so maybe that's the
problem?  Please confirm that I should file a Gentoo bug for this.

- Grant



Re: [gentoo-user] btrfs conversion: first impressions

2014-05-13 Thread Neil Bothwick
On Wed, 14 May 2014 01:09:17 +0200, Stefan G. Weichinger wrote:

  How to transform partitions/directories set up with cryptsetup
  into this new world? Set up a btrfs on top of the crypted fs ? I
  ask because I look for a clean setup for my 2 thinkpads.  
  
  Encrypt the partition(s) with cryptsetup and them use the devices 
  in /dev/mapper to create the volumes. That's how I have my ZFS
  pools set up and I'm looking to do the same when I try BTRFS.  
 
 Doesn't that screw up the whole idea of checksumming etc ?

Not to my mind. The bits are recorded and checksummed, that's what
matters. If a bit on a platter is flipped, the decrypted bits will also
change.

 In my understanding the FS (=btrfs or zfs) should have the direct
 contact to the metal (=hdd/sdd) to be fully able to detect bitrot
 and stuff.

It is a recommended method of encryption in the BTRFS FAQ.

https://btrfs.wiki.kernel.org/index.php/FAQ#Does_btrfs_support_encryption.3F

As btrfs does not support encryption itself, this or ecryptfs are the
only options. 


-- 
Neil Bothwick

ASSISTANT MANAGER: Feminine form of the word manager (q.v.).


signature.asc
Description: PGP signature


[gentoo-user] How to Transplant Firmware Blobs -- was: Issue with Wireless Interface

2014-05-13 Thread Hunter Jozwiak
Hi all. I found out that I was missing the firmware, not the drivers.
I have the firmware on a USB stick, so is it possible to transplant it
in to Gentoo?



Re: [gentoo-user] How to Transplant Firmware Blobs -- was: Issue with Wireless Interface

2014-05-13 Thread Dale
Hunter Jozwiak wrote:
 Hi all. I found out that I was missing the firmware, not the drivers.
 I have the firmware on a USB stick, so is it possible to transplant it
 in to Gentoo?



It may be in this package:

sys-kernel/linux-firmware

I can't recall why but I had to emerge that to get some firmwire a while
back. 

Hope that helps.

Dale

:-)  :-) 

-- 
I am only responsible for what I said ... Not for what you understood or how 
you interpreted my words!




Re: [gentoo-user] udev or Gentoo issue?

2014-05-13 Thread Samuli Suominen

On 14/05/14 03:18, Grant wrote:
 I'm having a problem starting the USB network interfaces properly on
 one of my systems.  I brought the problem to the udev list and they're
 indicating that it's a Gentoo problem:

 https://www.mail-archive.com/systemd-devel@lists.freedesktop.org/msg18840.html

 Should I file a bug?

 - Grant

 Like pointed out in the upstream thread, it's either wrongly built
 net-misc/dhcpcd (should be with USE=udev)
 and if not using dhcpcd, it might be a bug in net-misc/netifrc's
 /etc/init.d/net.lo depend() { } section --
 it's possible it's missing dependency that forces /etc/init.d/udev start
 first, specially if OpenRC is using parallel
 startup

 So not really a udev bug, rather a misconfiguration in dhcpcd USE flags
 OR bug in dependencies of netifrc's net.lo script

 I'm starting two interfaces, one that uses dhcpcd and one that does
 not.  Both fail to start in the default runlevel until they are
 hotplugged later.  I do have dhcpcd built with USE=udev.  The string
 udev does not occur in /etc/init.d/net.lo so maybe that's the
 problem?  Please confirm that I should file a Gentoo bug for this.

 - Grant


Try adding 'after udev' to net.lo's depend() { } section and see if that
helps, if it does, file a bug
saying so.
It was more of an educated guess than 100% accurate knowledge. I can't
think of an another
way to force netifrc to behave, since it's not coded in C, and it can't
link to libudev, so...

However since you say *both*, even the one with dhcpcd fail to start,
before filing that bug,
see if disabling netifrc hotplugging works:

# ln -s /dev/null /etc/udev/rules.d/90-network.rules

And if that helps, then file a bug saying so.

One or the another, bug is propably needed in anycase.