Re: [lfs-support] My finished LFS-7.10 x86-64 build
> I don't think gcc ever exports any gmp code into its output. Rather, gcc > just uses gmp for its own internal purposes. I don't think that's my concern. My question is whether gcc will build SSE-4.2 instructions into code just because the host can use them. Seems something like that happened--Conroes only have SSE-3. AMD's definition of x86-64 only goes up to SSE2! I was hoping the cross-compiling process we use might have prevented that. > gcc only uses gmp under C compilation for optimization, then one might > be able to get around an "incompatible-CPU-compiled" gmp if one > disables gcc optimization: > > CFLAGS='-O0' > CXXFLAGS='-O0' > > This might be helpful if you just need to recompile something (maybe even > gmp itself) to rescue a "hosed" machine. Then, after gmp is working, you > can recompile it again with normal optimizations. This time the --build=x86_64-unknown-pc-linux (IIRC) worked for me, but that may be something to add to the box on the GMP page in future releases. I'm going to ask LFS-dev to move that box up, before the configure parameters. > (If you ever try this, do let us know if it works as it might help > someone out of a jam one day.) OK, but it'll be next build. It ain't broke no more, so I ain't fixing it again. > > Cheers, > > Mike Thanks, Mike -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] bcmwl-kernel-source
On July 6, 2017 7:56:02 PM Andrew Dance wrote: Hi all! I've been tinkering with LFS on my Macbook Pro Retina and have managed to get it booted up. However, I'm having trouble getting my wifi card to work. It's a Broadcom bcm4360. There are 2 flavors, evidently. Standard b43 drivers don't work on mine, so I have to use something called 'wl'. On my Ubuntu installation, I did... *apt-get install bcmwl-kernel-source* and then followed with.. *modprobe wl* This worked great for Ubuntu. Questions is; how do I replicate this process in LFS without a package manager like 'dpkg' I tried unpacking the debian package but could make any sense of it. This is how you unpack a dpkg: mkdir tmp cd tmp ar xf ../your.pkg tar xf data.* tar xf control.* Then you get some dirs with files, where stuff under usr,lib etc go exactly to the corresponding place in the filesystem. You might also get some postinst or prerm stuff, they are scripts that would be run at the appropriate action. If you are familiar with shell scripts, it's easy to find out what you have to do apart from copying files to the right place. Cheers Tim Many thanks in advance. Andrew -- -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] bcmwl-kernel-source
On Thu, Jul 06, 2017 at 10:54:07AM -0700, Andrew Dance wrote: > Hi all! > > I've been tinkering with LFS on my Macbook Pro Retina and have managed to > get it booted up. However, I'm having trouble getting my wifi card to work. > > It's a Broadcom bcm4360. There are 2 flavors, evidently. Standard b43 > drivers don't work on mine, so I have to use something called 'wl'. > > On my Ubuntu installation, I did... > > *apt-get install bcmwl-kernel-source* > > and then followed with.. > > *modprobe wl* > > This worked great for Ubuntu. > > Questions is; how do I replicate this process in LFS without a package > manager like 'dpkg' > > I tried unpacking the debian package but could make any sense of it. > > Many thanks in advance. > > Andrew Perhaps the suggestions at https://wiki.archlinux.org/index.php/broadcom_wireless have something to help (in particular, not building the upstream b43 drivers, or unloading them, if they really don't work). There seem to be a lot of reports of failure with the upstream drivers for broadcom on macs, so I assume that loading the required firmware would probably be a waste of your time and you probably do need the nonfree drivers from broadcom (linked from that wiki page). An out-of-tree module needs to be compiled against the kernel on which you wish to use it. If you google for the Arch package source files it should give some indication of how to compile it. It seems that apple do their best to keep everybody within their walled garden. ĸen -- I live in a city. I know sparrows from starlings. After that everything is a duck as far as I'm concerned. -- Monstrous Regiment -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] bcmwl-kernel-source
On 06/07/2017 19:54, Andrew Dance wrote: Hi all! I've been tinkering with LFS on my Macbook Pro Retina and have managed to get it booted up. However, I'm having trouble getting my wifi card to work. It's a Broadcom bcm4360. There are 2 flavors, evidently. Standard b43 drivers don't work on mine, so I have to use something called 'wl'. On my Ubuntu installation, I did... /apt-get install bcmwl-kernel-source/ and then followed with.. /modprobe wl/ / / This worked great for Ubuntu. Questions is; how do I replicate this process in LFS without a package manager like 'dpkg' I'd suggest you go to http://www.broadcom.com/support/802.11/linux_sta.php, then download the proper driver. The README at the bottom of the page has good instructions. I guess you'll need to have your kernel source (compiled with your configuration) in a known location, like /usr/src. I do not have a wireless card, so I cannot tell more... Pierre -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] My finished LFS-7.10 x86-64 build
> So it must be the kernel's crypto functions tripping over it, and I > can understand new instruction set evolutions wouldn't be > backwards-compatible. Still, if gcc weren't trying to embed those > instructions in the kernel and were just setting the kernel up to use > gmplib, it seems more likely they would be a runtime error. Paul, I don't think gcc ever exports any gmp code into its output. Rather, gcc just uses gmp for its own internal purposes. I searched the net for why gcc needs gmp and found this: https://stackoverflow.com/questions/15826628/why-does-gcc-require-gmp which states that under C, gcc uses gmp for (1) constant calculations; and (2) optimization calculations. So, if for the code to be compiled, gcc only uses gmp under C compilation for optimization, then one might be able to get around an "incompatible-CPU-compiled" gmp if one disables gcc optimization: CFLAGS='-O0' CXXFLAGS='-O0' This might be helpful if you just need to recompile something (maybe even gmp itself) to rescue a "hosed" machine. Then, after gmp is working, you can recompile it again with normal optimizations. (If you ever try this, do let us know if it works as it might help someone out of a jam one day.) However, it likely won't work if the code in question uses constant/macro math because gcc uses gmp for that too. In the case of your kernel compile failure: > drivers/gpu/drm/i2c/ch7006_mode.c:51:3: internal compiler error: Illegal > instruction > NTSC_LIKE_TIMINGS, > ^ and in drivers/gpu/drm/i2c/ch7006_mode.c we find: #define NTSC_LIKE_TIMINGS .vrefresh = 60 * fixed1/1.001,\ .vdisplay = 480,\ .vtotal = 525, \ .hvirtual = 660 where fixed1 is defined in ch7006_priv.h to be: #define fixed1 (1LL << 32) where LL means "long long" (or 64 bits). All gcc has to do here is to evaluate the .vrefresh constant. So, it seems that gcc tried to use gmp to do the "60 * (1LL << 32)/1.001" constant calculation and this is what triggered the problem. Cheers, Mike -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
[lfs-support] bcmwl-kernel-source
Hi all! I've been tinkering with LFS on my Macbook Pro Retina and have managed to get it booted up. However, I'm having trouble getting my wifi card to work. It's a Broadcom bcm4360. There are 2 flavors, evidently. Standard b43 drivers don't work on mine, so I have to use something called 'wl'. On my Ubuntu installation, I did... *apt-get install bcmwl-kernel-source* and then followed with.. *modprobe wl* This worked great for Ubuntu. Questions is; how do I replicate this process in LFS without a package manager like 'dpkg' I tried unpacking the debian package but could make any sense of it. Many thanks in advance. Andrew -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style