View previous topic :: View next topic |
Author |
Message |
pottzie Guru
Joined: 06 Nov 2010 Posts: 314
|
Posted: Mon Nov 15, 2010 12:44 am Post subject: |
|
|
When I tried to do "make menuconfig" it returned an error saying stuff that, well, was jiberish to me.:
"/bin/sh: line 1: 1149 aborted" Then (gcc-D__kernel__-Wall -Wundef -Wrestrict-prototypes, etc
Also "Warning: Clock skew detected" "Cannot create temporary file in ./: Read only file system" "/binsh: line1: 1139 aborted" make [1] ***[scripts/kconfig/conf .o] Error 134. A bunch of other stuff too.
Just tried it again, got same results. That's why I went back in with the Ubuntu cd. |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Mon Nov 15, 2010 1:31 am Post subject: |
|
|
boot ubuntu
Code: | sudo su --
mkdir /mnt/gentoo
mount /dev/sda3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot
mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
export PS1="(chroot) $PS1"
date #if incorrect set it
#date MMDDHHMMYYYY
cd /usr/src/linux
make menuconfig |
edit these parts: Quote: |
Quote:
[*] Networking support --->
-*- Wireless --->
--- Wireless
<*> cfg80211 - wireless configuration API
[ ] nl80211 testmode command
[ ] enable developer warnings
[ ] cfg80211 regulatory debugging
[*] enable powersave by default
[ ] cfg80211 DebugFS entries
[*] cfg80211 wireless extensions compatibility
[*] Wireless extensions sysfs files
<*> Common routines for IEEE802.11 drivers
[*] lib80211 debugging messages
<*> Generic IEEE 802.11 Networking Stack (mac80211)
Default rate control algorithm (Minstrel) --->
[ ] Enable mac80211 mesh networking (pre-802.11s) support
[*] Enable LED triggers
[ ] Export mac80211 internals in DebugFS
[ ] Select mac80211 debugging features --->
Device Drivers --->
[*] Network device support --->
[*] Wireless LAN --->
--- Wireless LAN
<M> Ralink driver support --->
--- Ralink driver support
<M> Ralink rt2501/rt73 (USB) support |
then
Code: | make && make modules_install
df -h #check /dev/sda1 is mounted at /boot
cp arch/x86/boot/bzImage /boot/kernel-2.6.34-gentoo-r12
ls -l /etc/init.d/net.wlan0 #should be a symlink to net.lo
cd /etc/init.d #if no symlink
ln -s net.lo net.wlan0 #if no symlink |
While we are in chroot:
Code: | echo 'USE="consolekit dbus gpm hal ntp policykit udev"' /etc/make.conf
emerge consolekit dbus gpm hal ntp policykit udev
rc-update add consolekit default
rc-update add dbus default
rc-update add gpm default
rc-update add hald default
rc-update add ntp default
rc-update add ntp-client default
rc-update add udev-postmount default
rc-update add net.wlan0 default |
and try it out:
|
|
Back to top |
|
|
pottzie Guru
Joined: 06 Nov 2010 Posts: 314
|
Posted: Mon Nov 15, 2010 2:01 am Post subject: |
|
|
Looking better. ifconfig -a still shows all zeros, lo is all zeros. But grep -i rt73usb /usr/src/linux/.config shows CONFIG_RTUSB=m That's good news. |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Mon Nov 15, 2010 2:28 am Post subject: |
|
|
you are booted in gentoo?
what interfaces does ifconfig -a show?
does lsusb -v show rt73usb as driver or module in use? |
|
Back to top |
|
|
pottzie Guru
Joined: 06 Nov 2010 Posts: 314
|
Posted: Mon Nov 15, 2010 2:33 am Post subject: |
|
|
Yes, booted into Gentoo. ifconfig -a shows eth0, lo and sit0. CONFIG_RT&#USB=m, I assume that means module. Not sure if "module in use" means more, the grep line just shows the config rt73 line. |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Mon Nov 15, 2010 2:47 am Post subject: |
|
|
lack of wlan0 ra0 eth1 interface suggests that the kernel is not applying driver to nic
Code: | modprobe -r rt73usb
modprobe rt73usb | what happens? |
|
Back to top |
|
|
pottzie Guru
Joined: 06 Nov 2010 Posts: 314
|
Posted: Mon Nov 15, 2010 2:52 am Post subject: |
|
|
Nothing! I get the pound sign....# just root, and a flashing cursor. |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Mon Nov 15, 2010 3:02 am Post subject: |
|
|
repeated below, just clutter here.
Last edited by DONAHUE on Mon Nov 15, 2010 3:27 am; edited 3 times in total |
|
Back to top |
|
|
pottzie Guru
Joined: 06 Nov 2010 Posts: 314
|
Posted: Mon Nov 15, 2010 3:09 am Post subject: |
|
|
ifconfig -a gives ame results. No, never emerged -s wireless tools. Guess it's back to the live cd. |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Mon Nov 15, 2010 3:21 am Post subject: |
|
|
reboot to cd,
Code: | sudo su --
mkdir /mnt/gentoo
mount /dev/sda3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot
mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
export PS1="(chroot) $PS1"
date #if incorrect set it
#date MMDDHHMMYYYY
emerge rt73-firmware wireless-tools
modprobe -r rt73usb
modprobe rt73usb | While we are in chroot:
Code: | nano /etc/make.conf #add to USE="consolekit dbus gpm hal ntp policykit udev"
emerge consolekit dbus gpm hal ntp policykit udev
rc-update add consolekit default
rc-update add dbus default
rc-update add gpm default
rc-update add hald default
rc-update add ntp default
rc-update add ntp-client default
rc-update add udev-postmount default
rc-update add net.wlan0 default |
and try it out:
Code: | exit
reboot
exit
reboot |
I should have known better. Almost every wireless nic requires a separate firmware install, sometimes from portage, sometimes direct from manufacturer. I did not look for it when I saw no reference to firmware in the help in menuconfig, dumb.
Last edited by DONAHUE on Mon Nov 15, 2010 3:41 am; edited 5 times in total |
|
Back to top |
|
|
pottzie Guru
Joined: 06 Nov 2010 Posts: 314
|
Posted: Mon Nov 15, 2010 3:30 am Post subject: |
|
|
Ooops...
Code: | Calculating dependencies... done!
emerge: there are no ebuilds to satisfy "wireless".
|
|
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Mon Nov 15, 2010 3:32 am Post subject: |
|
|
Code: | emerge rt73-firmware wireless-tools | Sorry. See edit just above Ooops. |
|
Back to top |
|
|
pottzie Guru
Joined: 06 Nov 2010 Posts: 314
|
Posted: Mon Nov 15, 2010 3:48 am Post subject: |
|
|
emerge rt73-firmware wireless-tools Worked. After,
Code: | (chroot) ubuntu / # modprobe -r rt73usb
FATAL: Could not load /lib/modules/2.6.35-22-generic/modules.dep: No such file or directory
(chroot) ubuntu / # modprobe rt73usb
FATAL: Could not load /lib/modules/2.6.35-22-generic/modules.dep: No such file or directory
|
Got this after editing /etc/make.conf:
Code: | (chroot) ubuntu / # rc-update add consolekit default
* rc-update: '/etc/init.d/consolekit' not found; aborting
(chroot) ubuntu / # rc-update add dbus default
* rc-update: '/etc/init.d/dbus' not found; aborting
(chroot) ubuntu / # rc-update add gpm default
* rc-update: '/etc/init.d/gpm' not found; aborting
(chroot) ubuntu / # rc-update add hald default
* rc-update: '/etc/init.d/hald' not found; aborting
(chroot) ubuntu / # rc-update add ntp default
* rc-update: '/etc/init.d/ntp' not found; aborting
(chroot) ubuntu / # rc-update add ntp-client default
* rc-update: '/etc/init.d/ntp-client' not found; aborting
(chroot) ubuntu / # rc-update add udev-postmount default
* udev-postmount already installed in runlevel 'default'; skipping
(chroot) ubuntu / # rc-update add net.wlan0 default
* net.wlan0 already installed in runlevel 'default'; skipping
|
|
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Mon Nov 15, 2010 5:05 am Post subject: |
|
|
need to be emerged first: Code: | emerge consolekit dbus gpm hal ntp policykit udev | then Code: | rc-update add consolekit default
rc-update add dbus default
rc-update add gpm default
rc-update add hald default
rc-update add ntpd default
rc-update add ntp-client default |
Quote: | FATAL: Could not load /lib/modules/2.6.35-22-generic/modules.dep: No such file or directory | is very strange. Not that there is none but that modprobe is looking for it.
Code: | eselect kernel list | Returns?
Code: | eselect kernel set linux-2.6.34-gentoo-r12 |
Returns?
Returns? |
|
Back to top |
|
|
pottzie Guru
Joined: 06 Nov 2010 Posts: 314
|
Posted: Mon Nov 15, 2010 5:13 pm Post subject: |
|
|
Emerge consolekit worked OK. After that, I got this:
Code: | (chroot) ubuntu / # rc-update add consolekit default
* rc-update: '/etc/init.d/consolekit' not found; aborting
(chroot) ubuntu / # rc-update add dbus default
* rc-update: '/etc/init.d/dbus' not found; aborting
(chroot) ubuntu / # rc-update add gpm default
* rc-update: '/etc/init.d/gpm' not found; aborting
(chroot) ubuntu / # rc-update add hald default
* rc-update: '/etc/init.d/hald' not found; aborting
(chroot) ubuntu / # rc-update add ntpd default
* rc-update: '/etc/init.d/ntpd' not found; aborting
(chroot) ubuntu / # rc-update add ntp-client default
* rc-update: '/etc/init.d/ntp-client' not found; aborting
(chroot) ubuntu / # eselect kernel list
Available kernel symlink targets:
[1] linux-2.6.34-gentoo-r12 *
(chroot) ubuntu / # eselect kernel set linux-2.6.34-gentoo-r12
(chroot) ubuntu / # ls -l /lib/modules
total 4
drwxr-xr-x 3 root root 4096 Nov 14 20:50 2.6.34-gentoo-r12
|
|
|
Back to top |
|
|
pottzie Guru
Joined: 06 Nov 2010 Posts: 314
|
Posted: Mon Nov 15, 2010 5:18 pm Post subject: |
|
|
Emerge consolekit worked OK. After that, I got this:
Code: | (chroot) ubuntu / # rc-update add consolekit default
* rc-update: '/etc/init.d/consolekit' not found; aborting
(chroot) ubuntu / # rc-update add dbus default
* rc-update: '/etc/init.d/dbus' not found; aborting
(chroot) ubuntu / # rc-update add gpm default
* rc-update: '/etc/init.d/gpm' not found; aborting
(chroot) ubuntu / # rc-update add hald default
* rc-update: '/etc/init.d/hald' not found; aborting
(chroot) ubuntu / # rc-update add ntpd default
* rc-update: '/etc/init.d/ntpd' not found; aborting
(chroot) ubuntu / # rc-update add ntp-client default
* rc-update: '/etc/init.d/ntp-client' not found; aborting
(chroot) ubuntu / # eselect kernel list
Available kernel symlink targets:
[1] linux-2.6.34-gentoo-r12 *
(chroot) ubuntu / # eselect kernel set linux-2.6.34-gentoo-r12
(chroot) ubuntu / # ls -l /lib/modules
total 4
drwxr-xr-x 3 root root 4096 Nov 14 20:50 2.6.34-gentoo-r12
|
|
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Mon Nov 15, 2010 7:08 pm Post subject: |
|
|
An edit got lost. It looks like the chroot has gone wrong and is a mix
While I retype; reboot to gentoo, when up run, and see if interface wlan0 has appeared,
if not Code: | ls /lib/firmware/rt73.bin | to see if the firmware is installed; if not try Code: | emerge rt73-firmware
ls /lib/firmware/rt73.bin |
if /lib/firmware/rt73.bin is returned
Code: | modprobe -r rt73usb
modprobe rt73usb
/etc/init.d/net.wlan0 restart | what happens? If the network might be up:
Code: | ping -c 2 8.8.8.8
ping -c 2 google.com
|
new topic, while in gentoo, try Code: | emerge consolekit dbus gpm hal ntp policykit udev | then Code: | rc-update add consolekit default
rc-update add dbus default
rc-update add gpm default
rc-update add hald default
rc-update add ntpd default
rc-update add ntp-client default | again; If the packages got downloaded, emerge should install to gentoo file system vice the ubuntu tempfs or wherever the attempts before went |
|
Back to top |
|
|
pottzie Guru
Joined: 06 Nov 2010 Posts: 314
|
Posted: Tue Nov 16, 2010 12:06 am Post subject: |
|
|
ifconfig was the same in Gentoo. /lib/firmware/rt73.bin is listed. Emerge went nowhere, returned a bunch of errors. All of the rc-updates were `client not found'
After the modprobes, /etc/init.d/net.wlan0 restart showed : ERROR:cannot run net.wlan0 until sysinit completes. Net wlan0 will be started in the boot runlevel. |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Tue Nov 16, 2010 12:59 am Post subject: |
|
|
boot cd
Code: | sudo su --
mkdir /mnt/gentoo
mount /dev/sda3 /mnt/gentoo
mount /dev/sda3 /mnt/gentoo/boot
mount -o bind /proc /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/env -i TERM=$TERM /bin/bash
env-update
source /etc/profile
date
#date MMDDHHMMYYYY #if needed
export PS1="(chroot) $PS1"
emerge consolekit dbus gpm hal ntp policykit udev
rc-update add consolekit default
rc-update add dbus default
rc-update add gpm default
rc-update add hald default
rc-update add ntpd default
rc-update add ntp-client default
rc-update show #and post results: net.lo should start in boot runlevel, net.wlan0 in default run level
exit
reboot |
|
|
Back to top |
|
|
pottzie Guru
Joined: 06 Nov 2010 Posts: 314
|
Posted: Tue Nov 16, 2010 1:25 am Post subject: |
|
|
All the rc-updates were 'not found`.
[/code](chroot) ubuntu / # rc-update show
bootmisc | boot
checkfs | boot
checkroot | boot
clock | boot
consolefont | boot
hostname | boot
keymaps | boot
local | default nonetwork
localmount | boot
modules | boot
net.lo | boot
net.wlan0 | default
netmount | default
rmnologin | boot
syslog-ng | default
udev-postmount | default
urandom | boot
vixie-cron | default
Just eth0, lo and sit0 after reboot. |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Tue Nov 16, 2010 2:09 am Post subject: |
|
|
did emerge consolekit dbus gpm hal ntp policykit udev seem to run or were errors thrown or did nothing happen
?
do you see a lot of "root root" and "portage portage" and no other owners or groups
assuming emerge is failing: Code: | wgetpaste /var/tmp/portage/sys-apps/dbus/temp/build.log |
|
|
Back to top |
|
|
pottzie Guru
Joined: 06 Nov 2010 Posts: 314
|
Posted: Tue Nov 16, 2010 2:29 am Post subject: |
|
|
Emerge consolekit dbus ran, but some of what showed up:
Code: | apm -debug -dell -disk-partition -doc -laptop (-selinux)"
[ebuild N ] app-misc/hal-info-20090716
[blocks B ] <sys-apps/shadow-4.1.4.2-r6 ("<sys-apps/shadow-4.1.4.2-r6" is blocking sys-auth/consolekit-0.4.2-r4)
[blocks B ] <sys-auth/pambase-20101024 ("<sys-auth/pambase-20101024" is blocking sys-auth/consolekit-0.4.2-r4)
* Error: The above package list contains packages which cannot be
* installed at the same time on the same system.
('installed', '/', 'sys-auth/pambase-20100310', 'nomerge') pulled in by
>=sys-auth/pambase-20081028 required by ('installed', '/', 'net-misc/openssh-5.5_p1-r2', 'nomerge')
sys-auth/pambase required by ('installed', '/', 'sys-libs/pam-1.1.2', 'nomerge')
>=sys-auth/pambase-20080219.1 required by ('installed', '/', 'sys-apps/shadow-4.1.4.2-r5', 'nomerge')
('ebuild', '/', 'sys-auth/consolekit-0.4.2-r4', 'merge') pulled in by
>=sys-auth/consolekit-0.4[policykit] required by ('ebuild', '/', 'sys-auth/polkit-0.96-r1', 'merge')
consolekit
sys-auth/consolekit[policykit] required by ('ebuild', '/', 'sys-apps/hal-0.5.14-r2', 'merge')
(and 1 more)
('installed', '/', 'sys-apps/shadow-4.1.4.2-r5', 'nomerge') pulled in by
sys-apps/shadow required by ('installed', '/', 'net-misc/openssh-5.5_p1-r2', 'nomerge')
sys-apps/shadow required by world
sys-apps/shadow required by ('installed', '/', 'sys-apps/slocate-3.1-r1', 'nomerge')
|
whoami returns "root" (in (chroot)) ls -l /usr/portage is all "portage portage"
Code: | (chroot) ubuntu / # wgetpaste /var/tmp/portage/sys-apps/dbus/temp/build.log
/usr/bin/wgetpaste: /var/tmp/portage/sys-apps/dbus/temp/build.log No such file found.
|
|
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Tue Nov 16, 2010 2:45 am Post subject: |
|
|
one by one then as a block on one is a block on all and the emerge never starts
Quote: | emerge gpm
emerge dbus
emerge hal
emerge udev
emerge ntp
emerge consolekit
emerge policykit
|
Code: | emerge -1 shadow consolekit pambase | then try again to emerge any failures |
|
Back to top |
|
|
pottzie Guru
Joined: 06 Nov 2010 Posts: 314
|
Posted: Tue Nov 16, 2010 3:45 am Post subject: |
|
|
From "emerge consolekit";
Code: | (chroot) ubuntu / # emerge consolekit
* IMPORTANT: 4 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.
Calculating dependencies... done!
[ebuild N ] dev-perl/XML-Parser-2.36-r1
[ebuild N ] dev-util/intltool-0.41.1
[ebuild N ] dev-libs/dbus-glib-0.86 USE="-bash-completion -debug -doc -test"
[ebuild N ] dev-libs/eggdbus-0.6 USE="largefile -debug -doc -test"
[ebuild N ] sys-auth/polkit-0.96-r1 USE="nls pam -debug -doc -examples -expat"
[ebuild N ] sys-auth/consolekit-0.4.2-r4 USE="pam policykit -debug -doc -test"
[blocks B ] <sys-apps/shadow-4.1.4.2-r6 ("<sys-apps/shadow-4.1.4.2-r6" is blocking sys-auth/consolekit-0.4.2-r4)
[blocks B ] <sys-auth/pambase-20101024 ("<sys-auth/pambase-20101024" is blocking sys-auth/consolekit-0.4.2-r4)
* Error: The above package list contains packages which cannot be
* installed at the same time on the same system.
('installed', '/', 'sys-auth/pambase-20100310', 'nomerge') pulled in by
>=sys-auth/pambase-20081028 required by ('installed', '/', 'net-misc/openssh-5.5_p1-r2', 'nomerge')
sys-auth/pambase required by ('installed', '/', 'sys-libs/pam-1.1.2', 'nomerge')
>=sys-auth/pambase-20080219.1 required by ('installed', '/', 'sys-apps/shadow-4.1.4.2-r5', 'nomerge')
('ebuild', '/', 'sys-auth/consolekit-0.4.2-r4', 'merge') pulled in by
>=sys-auth/consolekit-0.4[policykit] required by ('ebuild', '/', 'sys-auth/polkit-0.96-r1', 'merge')
consolekit
('installed', '/', 'sys-apps/shadow-4.1.4.2-r5', 'nomerge') pulled in by
sys-apps/shadow required by ('installed', '/', 'net-misc/openssh-5.5_p1-r2', 'nomerge')
sys-apps/shadow required by world
sys-apps/shadow required by ('installed', '/', 'sys-apps/slocate-3.1-r1', 'nomerge')
For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):
|
|
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Tue Nov 16, 2010 7:32 am Post subject: |
|
|
Code: | emerge --unmerge shadow pambase
emerge consolekit
emerge pambase
emerge shadow |
post result
Code: | lsusb -v | wgetpaste | post url
post result |
|
Back to top |
|
|
|