Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
recognisiing new cpu [SOLVED]
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4  Next  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3121
Location: Illinois, USA

PostPosted: Wed Nov 23, 2016 1:55 pm    Post subject: Reply with quote

Rebuild your kernel as follows:
Code:
gentoo ~ # zcat /proc/config.gz |grep -i RADEON                       
CONFIG_EXTRA_FIRMWARE="radeon/kaveri_ce.bin radeon/kaveri_me.bin radeon/kaveri_mec2.bin radeon/kaveri_mec.bin radeon/kaveri_pfp.bin radeon/kaveri_rlc.bin radeon/kaveri_sdma.bin radeon/bonaire_uvd.bin radeon/bonaire_vce.bin "
CONFIG_DRM_RADEON=m
CONFIG_DRM_RADEON_USERPTR=y
# CONFIG_FB_RADEON is not set


Your CPU may require more but let's see how close this gets us.
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 458

PostPosted: Wed Nov 23, 2016 2:24 pm    Post subject: kernel modesetting, modprobe and X Reply with quote

Dear Tony,

Many thanks for your suggestion here once again.

Before booting gentoo and executing your command

Code:
gentoo ~ # zcat /proc/config.gz |grep -i RADEON                       
CONFIG_EXTRA_FIRMWARE="radeon/kaveri_ce.bin radeon/kaveri_me.bin radeon/kaveri_mec2.bin radeon/kaveri_mec.bin radeon/kaveri_pfp.bin radeon/kaveri_rlc.bin radeon/kaveri_sdma.bin radeon/bonaire_uvd.bin radeon/bonaire_vce.bin "
CONFIG_DRM_RADEON=m
CONFIG_DRM_RADEON_USERPTR=y
# CONFIG_FB_RADEON is not set


as root to rebuild/modify the kernel I would like to mention the fact that I tried your earlier zcat command

zcat /proc/config.gz | grep -i RADEON

BUT

it crashed with an error something like "gzip error - file config.gz does not exist"

I tried changing the directory to /usr/src/linux but this did not help.

I also tried getting rid of the .gz extension and that didn't work either.

I am worried your new command will crash with a similar error.

Comments appreciated.

Regards

Michael
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3121
Location: Illinois, USA

PostPosted: Wed Nov 23, 2016 4:16 pm    Post subject: Reply with quote

If /proc/config.gz doesn't exist you need another kernel change.

To make these kernel changes, change directory to /usr/src/linux and make menuconfig:

1. Go to "General setup" and enable " Enable access to .config through /proc/config.gz"
2. Go Back to the top, then "Device Drivers"->"Generic Driver Options" find" Userspace firmware loading support" and enable it.
Right below this type or copy and paste the filenames that I listed above under "CONFIG_EXTRA_FIRMWARE"
3. Back up to "Device Drivers" and go to "Graphics Support" enable "ATI-RADEON" as a module "M" rather than "x"

A handy trick is to type a "/" slash at almost any time in menuconfig and type the name of the variable you are looking for, i.e. either CONFIG_DRM_RADEON or DRM_RADEON.
This will open a screen with information about the variable and where it is in the hierarchy. I used this to generate the above instructions. I learned h0w to do this on this forum. it's an invaluable tip because the hierarchy changes from time to time and this method will show you where it is now.

After you build and reboot this kernel, re-run startx again and the tests I listed a few entries above. It may not work, but should be closer.

ADDED: I think while you are doing this, you might as well enable (as a Module) AMD GPU which should be on the same page as ATI-RADEON. My APU doesn't use this but your APU might.

Regarding R8168, in case you have R8169 built-in, change it to a module. Then to test R8168, "rmmod R8169 && modprobe -v R8168". R8169 has to be out for R8168 to work. By trying them both as modules, you can find which works for you.
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 458

PostPosted: Wed Nov 23, 2016 7:40 pm    Post subject: kernel modesetting, modprobe and X Reply with quote

Dear Tony,

I ran menuconfig and made the changes you recommended.

But when I ran make -j5

I got an error in the firmware file list option:


Code:
chroot) rhinoceros linux # make -j5
scripts/kconfig/conf  --silentoldconfig Kconfig
  HOSTCC  scripts/basic/bin2c
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CHK     include/generated/timeconst.h
  CHK     include/generated/bounds.h
  CHK     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  GZIP    kernel/config_data.gz
  CHK     kernel/config_data.h
  UPD     kernel/config_data.h
  CC [M]  kernel/configs.o
[color=red]make[1]: *** No rule to make target 'firmware/radeon/kaveri_ce.bin', needed by 'firmware/radeon/kaveri_ce.bin.gen.o'.  Stop.
make[1]: *** Waiting for unfinished jobs....
  MK_FW   firmware/radeon/kaveri_ce.bin.gen.S
Makefile:968: recipe for target 'firmware' failed
make: *** [firmware] Error 2
[/color]make: *** Waiting for unfinished jobs....
  LD      drivers/i2c/algos/built-in.o
  CC [M]  drivers/i2c/algos/i2c-algo-bit.o
  LD      drivers/i2c/built-in.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/amdgpu_drv.o


The compilation continued further but I did not list any more of the output because I think we can see the problem...

It might be that the list of files I inputted had a character wrong or missing or that I entered an extra blank space at the end of the list of files etc and that caused the problem.

Isn't there supposed to be a directory like /lib/firmware or something where these little files are supposed to live etc - maybe it couldn't find them or I need to emerge some package to put them in there etc?

Stop Press - I have found the /lib/firmware/radeon directory and listed the files and copied them to paste debian.net:


[url] https://paste.debian.net/898165
[/url]


There is also one for the /lib/firmware/amdgpu

[url] https://paste.debian.net/898167
[/url]


Comments appreciated

Regards

Michael
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 458

PostPosted: Wed Nov 23, 2016 7:46 pm    Post subject: kernel modesetting, modprobe and X Reply with quote

PS

I tried colouring some lines red but it didn't work so I removed the code:


Code:
chroot) rhinoceros linux # make -j5
scripts/kconfig/conf  --silentoldconfig Kconfig
  HOSTCC  scripts/basic/bin2c
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CHK     include/generated/timeconst.h
  CHK     include/generated/bounds.h
  CHK     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  GZIP    kernel/config_data.gz
  CHK     kernel/config_data.h
  UPD     kernel/config_data.h
  CC [M]  kernel/configs.o
make[1]: *** No rule to make target 'firmware/radeon/kaveri_ce.bin', needed by 'firmware/radeon/kaveri_ce.bin.gen.o'.  Stop.
make[1]: *** Waiting for unfinished jobs....
  MK_FW   firmware/radeon/kaveri_ce.bin.gen.S
Makefile:968: recipe for target 'firmware' failed
make: *** [firmware] Error 2
make: *** Waiting for unfinished jobs....
  LD      drivers/i2c/algos/built-in.o
  CC [M]  drivers/i2c/algos/i2c-algo-bit.o
  LD      drivers/i2c/built-in.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/amdgpu_drv.o
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3121
Location: Illinois, USA

PostPosted: Wed Nov 23, 2016 9:06 pm    Post subject: Reply with quote

Ah! we are getting somewhere! Looks like that capitalization thing I mentioned.
Code:
gentoo ~ # equery b firmware/radeon/kaveri_ce.bin
 * Searching for firmware/radeon/kaveri_ce.bin ...
sys-kernel/linux-firmware-20160331 (/lib/firmware/radeon/kaveri_ce.bin


emerge =sys-kernel/linux-firmware-20160331
or maybe you should go for the latest:

emerge =sys-kernel/linux-firmware-20161005
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 458

PostPosted: Wed Nov 23, 2016 9:54 pm    Post subject: kernel modesetting, modprobe and X Reply with quote

Dear Tony

I ran

Code:
emerge =sys-kernel/linux-firmware-20161005


and got the blocked package error

see output:

[url] https://paste.debian.net/898198 [/url]

Comments appreciated

Regards

Michael
Back to top
View user's profile Send private message
ct85711
Veteran
Veteran


Joined: 27 Sep 2005
Posts: 1699

PostPosted: Wed Nov 23, 2016 11:02 pm    Post subject: Reply with quote

Code:
[ebuild  N    ~] sys-kernel/linux-firmware-20161005  USE="-savedconfig"
[blocks B      ] sys-kernel/linux-firmware[-savedconfig] ("sys-kernel/linux-firmware[-savedconfig]" is blocking sys-firmware/radeon-ucode-20160628)
[blocks B      ] >sys-kernel/linux-firmware-20150812[-savedconfig] (">sys-kernel/linux-firmware-20150812[-savedconfig]" is blocking sys-firmware/amdgpu-ucode-20160628)
[blocks B      ] sys-firmware/radeon-ucode ("sys-firmware/radeon-ucode" is blocking sys-kernel/linux-firmware-20161005)


well, from my understanding with the firmware stuff, radeon-ucode is a subset of the overall firmware package (meaning the linux-firmware contains radeon-ucode and amdgpu-ucode another other firmware)...
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3121
Location: Illinois, USA

PostPosted: Thu Nov 24, 2016 1:13 am    Post subject: Reply with quote

Thank you, ct85711. Based on your info, I modified the radeon_ucode ebuild by removing the DEPEND and changing the install directory to /lib/firmware/radeon/xtra

Then:
Code:
gentoo radeon # diff . xtra
Binary files ./bonaire_k_smc.bin and xtra/bonaire_k_smc.bin differ
Binary files ./bonaire_smc.bin and xtra/bonaire_smc.bin differ
Binary files ./hainan_k_smc.bin and xtra/hainan_k_smc.bin differ
Binary files ./hainan_smc.bin and xtra/hainan_smc.bin differ
Binary files ./hawaii_k_smc.bin and xtra/hawaii_k_smc.bin differ
Binary files ./hawaii_smc.bin and xtra/hawaii_smc.bin differ
Binary files ./oland_k_smc.bin and xtra/oland_k_smc.bin differ
Binary files ./oland_smc.bin and xtra/oland_smc.bin differ
Binary files ./pitcairn_k_smc.bin and xtra/pitcairn_k_smc.bin differ
Binary files ./pitcairn_smc.bin and xtra/pitcairn_smc.bin differ
Binary files ./tahiti_k_smc.bin and xtra/tahiti_k_smc.bin differ
Binary files ./tahiti_smc.bin and xtra/tahiti_smc.bin differ
Binary files ./verde_k_smc.bin and xtra/verde_k_smc.bin differ
Binary files ./verde_smc.bin and xtra/verde_smc.bin differ
Only in .: xtra
Since non of those are the files we have been talking about, it will suffice to emerge the latest radeon_code rather than linux-firmware.

So, go ahead and "emerge =sys-firmware/radeon-ucode-20160628" instead of linux-firmware.


P.S. Of interest is:
Code:
gentoo xtra # ls -l kaveri_ce.bin KAVERI_ce.bin
-rw-r--r-- 1 root root 8832 Nov 23 17:53 kaveri_ce.bin
-rw-r--r-- 1 root root 8576 Nov 23 17:53 KAVERI_ce.bin
So they are not exactly the same.

Have a Happy Thanksgiving. I probably will not be online until later in the day tomorrow.
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 458

PostPosted: Thu Nov 24, 2016 9:00 am    Post subject: kernel modesetting, modprobe and X Reply with quote

Dear Tony,

I ran the

Code:
emerge =sys-firmware/radeon-ucode-20160628


command and it ran successfully.

I then tried the compilation again:

Code:
(chroot) rhinoceros linux # pwd
/usr/src/linux
(chroot) rhinoceros linux # make -j5
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CHK     include/generated/timeconst.h
  CHK     include/generated/bounds.h
  CHK     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  CHK     kernel/config_data.h
make[1]: *** No rule to make target 'firmware/radeon/kaveri_ce.bin', needed by 'firmware/radeon/kaveri_ce.bin.gen.o'.  Stop.
Makefile:968: recipe for target 'firmware' failed
make: *** [firmware] Error 2
make: *** Waiting for unfinished jobs....
make: *** wait: No child processes.  Stop.
(chroot) rhinoceros linux #

Suggestions welcome.

Thanks for both your and CT's help with this.

Regards

Michael
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 458

PostPosted: Thu Nov 24, 2016 1:34 pm    Post subject: kernel modesetting, modprobe and X Reply with quote

Dear Tony,

I used the gentoo amdgpu web page to guide me when I was configuring the kernel.

Code:
https://wiki.gentoo.org/wiki/Amdgpu


I originally tried to set it up with the built-in option - some extra googling made me choose the radeon ucode package to aid not the firmware package.

I have found a discussion on line where someone had a similar error message to me:

http://www.gossamer-threads.com/lists/gentoo/user/244027

The recommendation there was that I would need to add the following line to the config file

Code:
CONFIG_PREVENT_FIRMWARE_BUILD=y

There is a chap called Gregory who explains this on that site. He listed the code he had in his config file which apparently worked OK.

The person with the bug (called Lavender) was using the radeon ucode package but wanted to use external firmware blobs (ie the alternative to the built-in option as I understand it) with their graphics card and got the same error
message as I do.

Comments appreciated.

Regards

Michael
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3121
Location: Illinois, USA

PostPosted: Thu Nov 24, 2016 2:50 pm    Post subject: Reply with quote

I've got that one too:
Code:
gentoo ~ # zcat /proc/config.gz | grep FIRMWARE
CONFIG_PREVENT_FIRMWARE_BUILD=y
CONFIG_FIRMWARE_IN_KERNEL=y
CONFIG_EXTRA_FIRMWARE="radeon/kaveri_ce.bin radeon/kaveri_me.bin radeon/kaveri_mec2.bin radeon/kaveri_mec.bin radeon/kaveri_pfp.bin radeon/kaveri_rlc.bin radeon/kaveri_sdma.bin radeon/bonaire_uvd.bin radeon/bonaire_vce.bin "
CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware"
CONFIG_DRM_LOAD_EDID_FIRMWARE=y
CONFIG_FIRMWARE_EDID=y
CONFIG_FIRMWARE_MEMMAP=y
# CONFIG_GOOGLE_FIRMWARE is not set
# CONFIG_TEST_FIRMWARE is not set
It should be in that pastebin of my config somewhere upthread.
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 458

PostPosted: Thu Nov 24, 2016 3:19 pm    Post subject: kernel modesetting, modprobe and X Reply with quote

Dear Tony,

Thanks for the reply.

I think I also need this:

Code:
CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware"


Regards

Michael
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 458

PostPosted: Thu Nov 24, 2016 5:07 pm    Post subject: kernel modesetting, modprobe and X Reply with quote

Dear Tony,

I reconfigured the kernel and found out that the firmware directory was incorrectly specified as
Code:
 /firmware
not
Code:
/lib/firmware.


Correcting this error and recompiling the kernel worked this time.....

I am pleased.

I then tried running startx as a user after fixing the bootloader to see the new kernel and rebooting etc.

I think X is beginning to work a bit......

The output from Xorg in var/log is here:

[url] https://paste.debian.net/898480 [/url]

When it ran I didn't see a blank screen with an x in the centre.

Comments appreciated on testing X a bit more.

Regards

Michael
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 458

PostPosted: Thu Nov 24, 2016 6:17 pm    Post subject: kernel modesetting, modprobe and X Reply with quote

Dear Tony,

I mentioned earlier that something is wrong with the internet connection on the gentoo installation.

I ran
Code:
/sbin/dhcpcd
as root which in the past has worked to allow ping to see e.g. www.google.com etc. thus telling me that the internet connection was working.

But on this install what I get in response was

Quote:
no valid interfaces

Quote:
no interfaces have a carrier


What could be the cause of that problem?

I also seem to be getting an error concerning the locale which I may not have set up properly.

Comments appreciated.

Regards

Michael
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 458

PostPosted: Thu Nov 24, 2016 6:58 pm    Post subject: kernel modesetting, modprobe and X Reply with quote

Dear Tony

I notice in the X log file that there was an EE type error that was flagged up when the VESA card was not present etc.

In make.conf the entry for the video card is:

Code:
VIDEO_CARDS="amdgpu radeonsi radeon"


Should that not suffice here and if so why would X be looking for the VESA card settings?

Suggestion on this are most welcome.

Regards

Michael
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3121
Location: Illinois, USA

PostPosted: Thu Nov 24, 2016 9:56 pm    Post subject: Reply with quote

Looking good!

Don't worry about the error on fbdev. You need to configure alsa, but that can wait. I'm surprised evdev shut down but maybe you killed startx. Didn't I see in another thread that startx should only be started by a user, not root? I always go straight to xdm which runs startx on it's own. At least I think so. It does produce a /var/log/Xorg.0.log

First let's fix the network. Post the output of "ifconfig" and " lsmod |grep r8".
I don't use udev or eudev but most people do and it produces "predictable" unpredictable unpronounceable names instead of eth0 et cetera. ifconfig will tell use what interface, if any exists and the lsmod will tell us what device driver is in use.
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 458

PostPosted: Thu Nov 24, 2016 10:13 pm    Post subject: kernel modesetting, modprobe and X Reply with quote

Dear Tony

Many thanks for your input again.

I ran the

Code:
lsmod |grep r8
command in the chroot environment within debian

The output is

Code:
(chroot) rhinoceros portage # lsmod |grep r8
r8169                  68262  0
mii                    12675  1 r8169
(chroot) rhinoceros portage # ^C

I can exit the chroot, logout of debian, reboot directly into the gentoo install and run this command again if needed and get you that output if that is required.

I don't want the result being influenced by the debian environment if that would be a problem here.

I have run the if config command within the chroot environment again:

Code:
(chroot) rhinoceros portage # ifconfig

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.124  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::76d4:35ff:feb2:d2c  prefixlen 64  scopeid 0x20<link>
        ether 74:d4:35:b2:0d:2c  txqueuelen 1000  (Ethernet)
        RX packets 138809  bytes 135965197 (129.6 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 107797  bytes 18454272 (17.5 MiB)
        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 47  bytes 14437 (14.0 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 47  bytes 14437 (14.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

(chroot) rhinoceros portage #


The debian internet connection works.

When I ran X (obviously not as chroot) I did it as a user not root.

Regards

Michael
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 458

PostPosted: Thu Nov 24, 2016 10:34 pm    Post subject: kernel modesetting, modprobe and X Reply with quote

Dear Tony

I exited the chroot environment, logged out of debian and rebooted into the gentoo install.

I ran the ifconfig command in the native gentoo case and got the following:

Code:
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 1  (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


The zeros on the packets are not surprising because the internet connection doesn't work yet.

I also ran

Code:
lsmod |grep r8


and the result was nothing ie zillch as user and as root.....

Regards

Michael
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3121
Location: Illinois, USA

PostPosted: Thu Nov 24, 2016 11:38 pm    Post subject: Re: kernel modesetting, modprobe and X Reply with quote

mikefot wrote:


Code:
lsmod |grep r8


and the result was nothing ie zillch as user and as root.....


You don't have any ethernet driver. In the chroot "emerge -f r8168" This will fetch the file. Then reboot into your hard drive and "emerge r8168". It has to be emerged while running the kernel it is attached to. Then "modprobe -v r8168" and repeat the lsmod and ifconfig. You may have to reboot but I think the modprobe is sufficient to load the module and have udev do its thing.

EDIT: it looks like r8169 is working on Debian, so your mobo seems supported. Instead of r8168 you could rebuild your kernel once more . make menuconfig and go to Device Drivers->Network device support->Ethernet driver support and click "Realtek devices" That will open up three choices. Select "M" for the third choice,"Realtek 8169 gigabit ethernet support"
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 458

PostPosted: Fri Nov 25, 2016 12:28 pm    Post subject: kernel modesetting, modprobe and X Reply with quote

Dear Tony,

I ran
Code:
emerge -f r8168
as chroot successfully.

I then rebooted into gentoo and ran
Code:
 emerge r8168
- and it crashed:

https://paste.debian.net/898763

I noticed the following error in it:


Code:
* Preparing r8168 module
make -j5 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- 'LDFLAGS=-m elf_x86_64' KERNELDIR=/usr
/src/linux modules
find: '/lib/modules/4.8.9-gentoo/kernel/drivers/net': No such file or directory



Perhaps I have failed to specify a directory path correctly again that the kernel needs - or maybe forgot to choose a particular kernel option???

I also collected the emerge info output for this:

https://paste.debian.net/898765

Maybe it would be better if I rebuilt the kernel again as you suggested.

Comments appreciated

Regards

Michael
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3121
Location: Illinois, USA

PostPosted: Fri Nov 25, 2016 1:54 pm    Post subject: Reply with quote

All that the ebuild checks for is that you do not have r8169 enabled. I just checked my config and I do have NETDEVICES=y and ETHERNET=y but have not selected NET_VENDOR_REALTEK. I did try r8169 first and it didn't work for me.

Go ahead and build r8169 as described above. Then if it doesn't work, you can back off the NET_VENDOR_REALTEK, rebuild the kernel and try emerging r8168 again. It appears the ebuild instructions are incomplete.
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 458

PostPosted: Fri Nov 25, 2016 4:42 pm    Post subject: kernel modesetting, modprobe and X Reply with quote

Dear Tony,

I used make menuconfig and reconfigured the kernel to turn on the realtek settings as you directed.

I then recompiled the kernel etc.

I rebooted into gentoo and I found that the lsmod found the realtek driver.

Also when I logged in as root and typed
Code:
/sbin/dhcpcd
followed by return I got

Code:
sending commands to master dhcpcd process


and then when I pinged google it worked.

I now have an internet connection that works on gentoo.

Many thanks for your help with this.

My next question is:

How do we fix X so that startx runs happily??

Regards

Michael
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3121
Location: Illinois, USA

PostPosted: Fri Nov 25, 2016 9:27 pm    Post subject: Reply with quote

Great! Apparently r8169 works for you. Will get back later about startx. I have to go to the machine and try some things.
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3121
Location: Illinois, USA

PostPosted: Sat Nov 26, 2016 12:20 am    Post subject: Reply with quote

OK, I went to the Kaveri machine and stopped xdm. Then as root I ran startx. It began, gave an error message about .Xinitrc and stopped. The Xorg.0.log looked just like yours. So I logged in successively as user tony and user guest. In both cases, twm launched on TTY 7. It looked good. Then I went to an older machine and did the same thing with the same results for root. Then I ran startx as each of the three users on that machine. In each case, mate-session was launched on TTY 7. The first machine has lumina and twm, but not mate. The second machine has mate and twm.

So I think you should try startx as an ordinary user. If nothing happens, emerge twm, it's small.I really think you should just go ahead and emerge kde and kdm since that's what you are interested in. If you want to go step by step, emerge twm and experiment some more. It's quick, but I feel your X is set up okay, at least good enough to launch a GUI interface. If you are going to be gaming or such, it might need some tweaking, but it's so much more convenient to have a GUI and run a web browser and mail client than to keep switching between Gentoo and Ubuntu.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page Previous  1, 2, 3, 4  Next
Page 3 of 4

 
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