Re: [lfs-support] 8.1-systemd Ch. 8.3 Linux-4.12.7: Error during make?

2017-09-21 Thread Hazel Russman
On Wed, 20 Sep 2017 10:40:49 -0600
Hans Malissa  wrote:

> Hi,
> 
> ‘make defconfig’ did a very good job, thanks for the advice. My idea of using 
> .config of the host distribution was completely wrong. LFS is up and running 
> now, and booting is much faster than with my host distribution.
> I still wonder where the error message came from - I was assuming that the 
> kernel should compile in either case after using the standard configuration 
> tools.
> Regarding the (working) configuration that is a result of ‘make defconfig’ 
> and customization with ‘make menuconfig’, I have two questions:
> - How do I know if one or more modules/configuration settings are missing 
> (even though the kernel runs)?
> - How can I tell whether there are extra modules or options turned on that 
> are not really used in my system?
> Thanks a lot,
> 
> Hans
> 
-- 
Test out all your hardware. If everything works, you can't have omitted 
anything important.

There are some software packages that require certain kernel options to be set. 
The relevant blfs page will tell you about these. It's not uncommon in LFS to 
have to rebuild a kernel to accommodate a software package requirement.

The only way to test for excess options is to build an experimental kernel 
without that option and see if it works. But unless you have an embedded system 
with tight space requirements, it probably isn't worth the trouble.
-- 
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] 8.1-systemd Ch. 8.3 Linux-4.12.7: Error during make?

2017-09-20 Thread Ken Moffat
On Wed, Sep 20, 2017 at 10:40:49AM -0600, Hans Malissa wrote:
> Hi,
> 
> ‘make defconfig’ did a very good job, thanks for the advice. My idea of using 
> .config of the host distribution was completely wrong. LFS is up and running 
> now, and booting is much faster than with my host distribution.
> I still wonder where the error message came from - I was assuming that the 
> kernel should compile in either case after using the standard configuration 
> tools.

If you started with a distro, they may have turned on defines for
drivers which do not exist on real x86 hardware, but where kernel
developers want the extra build coverage.  What built for a distro
in some previous kernel version, perhaps with additional patches
they are carrying, is not guaranteed to build with a different
kernel.

> Regarding the (working) configuration that is a result of ‘make defconfig’ 
> and customization with ‘make menuconfig’, I have two questions:
> - How do I know if one or more modules/configuration settings are missing 
> (even though the kernel runs)?

You will find out if you ever need to do something and the kernel
doesn't support it.  For things covered in BLFS, look at the Kernel
Configuration part of the longindex.html (it's near the bottom)
http://www.linuxfromscratch.org/blfs/view/systemd/longindex.html for
systemd svn.

Also look at About Firmware in BLFS chapter 3.

> - How can I tell whether there are extra modules or options turned on that 
> are not really used in my system?

For built-in options, trial and error (turn things off in
menuconfig, change the EXTRAVERSION in the Makefile, recompile, see
if it boots and still does what you need).

After a while, the benefits of doing that are probably not worth the
time.  My recent vmlinuz files on the intel machine where I'm writing
this reply are 6.6 MB for 4.13.1 and 6.5 MB for 4.12.8, on an old AMD
phenom - despite building in firmware - 5.8 to 5.9 MB, on a less-old
AMD Kaveri 6.7 MB - that one has bigger firmare, and probably still
has MD options for testing mdadm when I'm editing.

For modules, make a list of which modules exist in /lib/modules for
the current kernel version, then compare it to lsmod.  Anything not
loaded is either something you might use occasionally (e.g.
filesystems, support for peripherals not presently connected) or a
candidate for removal.  If in doubt (e.g. crypto modules), err on
the side of caution.

You might need extra selections beyond what is enough to boot LFS by
the time you get to a fully-built system.

> Thanks a lot,
> 
> Hans
> 
> > On Sep 19, 2017, at 9:08 AM, Bruce Dubbs  wrote:
> > 
> > Hans Malissa wrote:

And please don't top post on LFS lists. Snipping here.

ĸen
-- 
Truth, in front of her huge walk-in wardrobe, selected black leather
boots with stiletto heels for such a barefaced truth.
 - Unseen Academicals
-- 
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] 8.1-systemd Ch. 8.3 Linux-4.12.7: Error during make?

2017-09-19 Thread Bruce Dubbs

Hans Malissa wrote:

Hi,

I’m working my way through LFS 8.1-systemd. I got all the way to 8.3.1 
Linux-4.12.7 without any problem, but now I’m stuck during kernel compilation.
After 'make mrproper’ and ‘make menuconfig', I run ‘make'. Compilation runs ok 
for quite some time, but eventually it fails with a message:

...
Setup is 17532 bytes (padded to 17920 bytes).
System is 5281 kB
CRC ed1061fd
Kernel: arch/x86/boot/bzImage is ready (#1)
   Building modules, stage 2.
   MODPOST 3534 modules
ERROR: “__devm_regmap_init_mmio_clk” 
[sound/soc/codecs/snd-soc-msm8916-digital.ko] undefined!
make[1]: *** [scripts/Makefile.modpost:91: __modpost] Error 1
make: *** [Makefile:1217: modules] Error 2

I’ve tried a few times, starting from a clean source every time. I don’t 
understand what’s going wrong here. I was assuming that the .config created 
with ‘make menuconfig’ should work in any case?
I initially created .config by copying the config-file from the host 
distribution (debian), running ‘make oldconfig’, and then adjusting the .config 
to my liking, so it should work on my system. Most likely there are lots and 
lots of modules selected that I don’t really need. This should not be a 
problem, but if it’s some obscure module that I don’t need which causes the 
compile error, then I’d gladly remove it.
Thanks a lot,


Try running 'make defconfig'.  That should give you a generic build.  Then 
start looking at customization.   The dost distro assumes you you be using 
an initrd that we do not use.  It's not a good starting point.


  -- Bruce


--
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] 8.1-systemd Ch. 8.3 Linux-4.12.7: Error during make?

2017-09-18 Thread DJ Lucas



On 09/18/2017 11:43 PM, Hans Malissa wrote:

Hi,

I’m working my way through LFS 8.1-systemd. I got all the way to 8.3.1 
Linux-4.12.7 without any problem, but now I’m stuck during kernel compilation.
After 'make mrproper’ and ‘make menuconfig', I run ‘make'. Compilation runs ok 
for quite some time, but eventually it fails with a message:

...
Setup is 17532 bytes (padded to 17920 bytes).
System is 5281 kB
CRC ed1061fd
Kernel: arch/x86/boot/bzImage is ready (#1)
  Building modules, stage 2.
  MODPOST 3534 modules
ERROR: “__devm_regmap_init_mmio_clk” 
[sound/soc/codecs/snd-soc-msm8916-digital.ko] undefined!
make[1]: *** [scripts/Makefile.modpost:91: __modpost] Error 1
make: *** [Makefile:1217: modules] Error 2

I’ve tried a few times, starting from a clean source every time. I don’t 
understand what’s going wrong here. I was assuming that the .config created 
with ‘make menuconfig’ should work in any case?
I initially created .config by copying the config-file from the host 
distribution (debian), running ‘make oldconfig’, and then adjusting the .config 
to my liking, so it should work on my system. Most likely there are lots and 
lots of modules selected that I don’t really need. This should not be a 
problem, but if it’s some obscure module that I don’t need which causes the 
compile error, then I’d gladly remove it.
Thanks a lot,


Your host distro's configuration has almost no chance of doing anything 
more than panicking on you as it will most likely be unable to find the 
rootfs. You took the time to build LFS, then took a shortcut on the 
kernel? :-/ It'll take some time and effort, but start from a clean 
config and put in at least a little time exploring the various options, 
you'll be surprised how much you can learn poking around menuconfig. If 
really short on time, try local{yes,mod}config then tweak that, make 
sure that SATA and EXT are built-in (Y), not modules (M). No reason to 
build 2000 modules when you need ~40...especially for the Snapdragon 
410. Well, that is, unless you've just managed to LFS your low-end 
smartphone, in which case, I'll need to ask you a few questions! :-)


--DJ

--
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] 8.1-systemd Ch. 8.3 Linux-4.12.7: Error during make?

2017-09-18 Thread Hans Malissa
Hi,

I’m working my way through LFS 8.1-systemd. I got all the way to 8.3.1 
Linux-4.12.7 without any problem, but now I’m stuck during kernel compilation.
After 'make mrproper’ and ‘make menuconfig', I run ‘make'. Compilation runs ok 
for quite some time, but eventually it fails with a message:

...
Setup is 17532 bytes (padded to 17920 bytes).
System is 5281 kB
CRC ed1061fd
Kernel: arch/x86/boot/bzImage is ready (#1)
  Building modules, stage 2.
  MODPOST 3534 modules
ERROR: “__devm_regmap_init_mmio_clk” 
[sound/soc/codecs/snd-soc-msm8916-digital.ko] undefined!
make[1]: *** [scripts/Makefile.modpost:91: __modpost] Error 1
make: *** [Makefile:1217: modules] Error 2

I’ve tried a few times, starting from a clean source every time. I don’t 
understand what’s going wrong here. I was assuming that the .config created 
with ‘make menuconfig’ should work in any case?
I initially created .config by copying the config-file from the host 
distribution (debian), running ‘make oldconfig’, and then adjusting the .config 
to my liking, so it should work on my system. Most likely there are lots and 
lots of modules selected that I don’t really need. This should not be a 
problem, but if it’s some obscure module that I don’t need which causes the 
compile error, then I’d gladly remove it.
Thanks a lot,

Hans
-- 
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