LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 01-19-2019, 06:19 PM   #31
ehartman
Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 375

Rep: Reputation: 167Reputation: 167

Quote:
Originally Posted by hazel View Post
Anyway, it's not the reference to the e1000 driver that caused the problem; if you look again, you will see that it's just a comment. What is specified as a condition is the MAC address.
I know, but that comment has been put in by udev to tell you WHICH device it found with that MAC address. As it's a "persistent" rule, even when the device isn't there anymore, the rule is kept. This directory, with those persistent rules (there's one for the CDrom/DVD drive(s) too) is one you should NOT copy over from your old system but let udev generate new ones, consistent with THIS hardware.

In general files in /etc/udev/rules.d are only really needed when there is more than one of a certain kind of hardware (like ethernet adapters, sound cards, CD/DVD drives) as to ensure that they always will get the same device names after a reboot.
The default rules are in /lib/udev/rules.d (or /lib64) and the ones under /etc/udev are meant to overrule them.

PS: I found the backup of my old AMD system, this was its persistent-net rules file:
Code:
# This file was automatically generated by the /lib/udev/write_net_rules
# program run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single line.
      ^^^  notice this
# On-board Rhine-II chipset
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",   ATTR{address}=="00:0c:6e:72:93:2d", ATTR{type}=="1", NAME="eth0"

# PCI device 0x10b7:0x9200 (3COM 3c905C)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",   ATTR{address}=="00:04:75:e5:85:77", ATTR{type}=="1", NAME="eth1"
Note that the comments give the information about which device it is. I probably edited the Rhine-II one as it doesn't give a device ID.
BTW: this was a Slackware 12.2 system I had to recycle as it had hardware problems.

Last edited by ehartman; 01-21-2019 at 03:26 PM. Reason: Expansion
 
Old 01-20-2019, 10:18 AM   #32
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 2,682

Original Poster
Blog Entries: 6

Rep: Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367
Before I shut down last night, I removed that rules file to a safe place. Today when I booted, there was a new rules file looking like this:
Code:
# PCI device 0x10ec:0x8168 (r8169)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="c0:3f:d5:e6:c9:30", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
Thank you ehartman!

There are things about this new machine that I am still coming to terms with. For example, it beeps after completing POST. My old machine only beeped when something was wrong (and that happened more and more often as it grew more decrepit). But on this machine seemingly a beep is good news. I wonder what bad news sounds like -- probably multiple beeps. Istr some of the old BIOSes you got on 1990 PCs behaved like that.

Last edited by hazel; 01-20-2019 at 10:27 AM.
 
Old 01-20-2019, 10:37 AM   #33
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys for decades while testing others to keep up
Posts: 2,093

Rep: Reputation: 2045Reputation: 2045Reputation: 2045Reputation: 2045Reputation: 2045Reputation: 2045Reputation: 2045Reputation: 2045Reputation: 2045Reputation: 2045Reputation: 2045
I actually think it is wise to leave WiFi disabled on laptops if possible, but FWIW, if needed, yours likely needs a firmware "blob" not present. There may also be a "Fn" key to toggle it. I have 14.2 on my ancient T61 Thinkpad and iirc had to look up what chipset it was and corresponding blob it required and either activate it or download it... can't recall which.
 
Old 01-20-2019, 10:46 AM   #34
fatmac
Senior Member
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly OpenBSD, but still have AntiX on a couple of machines.
Posts: 2,768

Rep: Reputation: Disabled
You should be able to turn off that 'beep on boot'- these are from my notebook where I keep useful info.

In Debian, I did
echo "blacklist pcspkr" >> /etc/modprobe.d/blacklist.conf

Or you may be able to do
echo "options snd_hda_intel beep_mode=0" >> /etc/modprobe.d/alsa-base.conf

Look up the equivalent for whichever distro is giving you the beep.

Last edited by fatmac; 01-20-2019 at 10:47 AM.
 
Old 01-20-2019, 11:32 AM   #35
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 2,682

Original Poster
Blog Entries: 6

Rep: Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367
Quote:
Originally Posted by enorbet View Post
I actually think it is wise to leave WiFi disabled on laptops if possible, but FWIW, if needed, yours likely needs a firmware "blob" not present.
Wouldn't the kernel recognise the device all the same if it was there? I had a Broadcom wifi chip on my first laptop and the kernel loaded a driver for it, then tried to load firmware onto the card itself and complained because it couldn't find it. I can't see anything like that in dmesg on the Lenovo. Also I can't see anything that looks like an aerial, no metal bands on the tower.
Quote:
There may also be a "Fn" key to toggle it.
I've checked the icons on the keys; none of them looks like anything to do with networks. Anyway, it is pointless because this is a sedentary machine permanently plugged into the router. Who needs wifi? I suspect it's an "optional" add-on, like the hdmi port and the card reader which are both mentioned in the manual but absent on my machine.

@fatmac: the beep comes before elilo loads, and way before the kernel takes over. It has nothing to do with the distro, it's a uefi thing.
 
Old 01-20-2019, 06:43 PM   #36
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys for decades while testing others to keep up
Posts: 2,093

Rep: Reputation: 2045Reputation: 2045Reputation: 2045Reputation: 2045Reputation: 2045Reputation: 2045Reputation: 2045Reputation: 2045Reputation: 2045Reputation: 2045Reputation: 2045
Hello hazel, I don't recall that my Thinkpad complained (or even mentioned) about the firmware blob until after I installed it but then I never did boot the Windows Vista that came on it to enable WiFi in the first place. It's very first boot once I got it was Slackware and it took me awhile to find the Fn key for it but it was my first laptop with internal wifi so all that was new to me, then. Since neither one of us cares about wifi I won't bother to jog my memory about it however since the Thinkpad is not a tower and I've only taken the chassis down enough to clean fans and vents, I've never seen what it uses for an antenna either.
 
Old 01-21-2019, 05:10 AM   #37
fatmac
Senior Member
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly OpenBSD, but still have AntiX on a couple of machines.
Posts: 2,768

Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post

@fatmac: the beep comes before elilo loads, and way before the kernel takes over. It has nothing to do with the distro, it's a uefi thing.
Then there would likely be two options, check the BIOS equivalent to see if it can be turned off there, else unplug the on board speaker itself.
 
Old 01-21-2019, 06:55 AM   #38
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 2,682

Original Poster
Blog Entries: 6

Rep: Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367
@enorbet: I think all laptops use the same kind of antenna. It's that silver band that goes right around the machine.
 
Old 01-21-2019, 08:44 AM   #39
fatmac
Senior Member
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly OpenBSD, but still have AntiX on a couple of machines.
Posts: 2,768

Rep: Reputation: Disabled
Laptop wifi antenae are usually routed around the screen, beneath the bezel.
 
Old 01-21-2019, 03:33 PM   #40
ehartman
Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 375

Rep: Reputation: 167Reputation: 167
Quote:
Originally Posted by hazel View Post
# PCI device 0x10ec:0x8168 (r8169)
So you turn out to have got a RealTek 8169 (compatible) Ethernet adaptor, the PCI address gives where udev found it (and it may be a 8168 one, seeing the number after the colon).
The 10ec means (I believe) it is a real PCI card, not a chip on the motherboard (those will normally start with 00).
 
Old 01-22-2019, 07:47 AM   #41
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 2,682

Original Poster
Blog Entries: 6

Rep: Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367
Thanks, E. That's useful knowledge. I didn't know that the second half of the pci address was a model number, though I did recognise the bit in brackets as the driver.

I now have LFS unpacked onto the next partition, but I won't be able to boot it yet. First I need to rebuild the kernel with the new ethernet driver and all the EFI stuff. I can do that in chroot. I'll be very interested to see how fast the build goes on this souped-up machine.

Then I have to make it bootable via elilo. The Slackware installer left me with the following setup on the ESP: EFI\Slackware\(elilo.conf, elilo.efi, initrd.gz, vmlinuz). Now what I plan to do is to move the two elilo files up one level to EFI and modify elilo.conf to look for the Slackware files in the Slackware directory (rather than the default current directory). Then I create a parallel LFS directory under EFI, put the LFS kernel there as vmlinuz and add an appropriate stanza to elilo.conf. What that will do to the boot, I don't know. At the moment it doesn't give me a boot prompt, but I hope it will do when there are choices to be made.

Later I will try to create a menu out of the example file that came with elilo.
 
Old 01-22-2019, 11:36 AM   #42
ehartman
Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 375

Rep: Reputation: 167Reputation: 167
Quote:
Originally Posted by hazel View Post
Thanks, E.
You can call me Eef (short for Everhard), is a bit more personal.
The name ehartman used to be my TU (Technical University) Delft login name as those used to be restricted to 8 chars. I registered with LQ a long time ago using that name too (2007, to be exact when I was still working for the Applied Mathematics department OF that university).

Last edited by ehartman; 01-23-2019 at 07:20 AM. Reason: Expansion
 
Old 01-22-2019, 03:05 PM   #43
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys for decades while testing others to keep up
Posts: 2,093

Rep: Reputation: 2045Reputation: 2045Reputation: 2045Reputation: 2045Reputation: 2045Reputation: 2045Reputation: 2045Reputation: 2045Reputation: 2045Reputation: 2045Reputation: 2045
Hi hazel - If you are as curious as I am perhaps you might take the time to try booting LFS with the huge.s kernel via the Slackware install media. I have successfully booted numerous distros this way with a few items failing to load but almost always got to Login. I'm wondering how Vanilla LFS is.
 
Old 01-23-2019, 06:59 AM   #44
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 2,682

Original Poster
Blog Entries: 6

Rep: Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367
I'm not in a tearing hurry. The only thing I definitely need LFS for is my music-writing combo (Philip's Music Writer with my graphical front end, pmwScribe). But yesterday I snapped the A-string on my cello, so no new music scores are needed until I have replaced that. I am going to Thwaites up in Bushey this afternoon to buy a replacement.

The attempt to rearrange the elilo files was not a success. I tried to change too much at once and ended up with an unbootable hard drive. I had to boot from SystemRescue to get everything back on track. Incremental change is the way forward. At least I now have a boot prompt.

If I really needed to use LFS, I can always chroot over from Slackware. In fact that's what I did to build the new LFS kernel.

Last edited by hazel; 01-23-2019 at 07:00 AM.
 
Old 01-23-2019, 12:54 PM   #45
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 2,682

Original Poster
Blog Entries: 6

Rep: Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367
Dammit! Even a small change, for example changing the parent directory name from EFI/Slackware to EFI/Linux is enough to spook it. Everything seems to be hard-wired into the UEFI. I shall need to study the eliloconfig script to see what it actually did.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Using an Old Computer's HD in New Computer Without Reformat Sylvester Ink Linux - Hardware 9 09-28-2012 09:26 PM
I need help slow computer? Have to get a new computer. nec207 Linux - Hardware 13 07-27-2011 08:19 AM
New computer, new linux user, new world jdx LinuxQuestions.org Member Intro 1 06-19-2011 09:25 PM
Just sold my old computer. Got an ancient computer while I wait for my new one SetAbomination Linux - Newbie 5 09-13-2004 11:04 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 09:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration