[Clfs-support] [CLFS-embedded] Error inside the book: 6.3. Linux-4.4.21

Michele Bucca michele.bucca at gmail.com
Fri Mar 3 15:16:26 PST 2017


2017-03-03 14:24 GMT+01:00 Andrew Bradford <andrew at bradfordembedded.com>:
> Hi Michele,
>
> I've created a trac ticket for this: http://trac.clfs.org/ticket/1122
>
> Thanks for bringing this to our attention! :)
> -Andrew
>

It's a pleasure to help!

> On 02/17 17:23, Michele Bucca wrote:
>> 2017-02-17 17:01 GMT+01:00 Andrew Bradford <andrew at bradfordembedded.com>:
>> > Hi Michele,
>> >
>> > On 02/14 20:57, Michele Bucca wrote:
>> >> 2017-02-14 13:11 GMT+01:00 Michele Bucca <michele.bucca at gmail.com>:
>> >> > on the page that explains how to compile the kernel there's an error
>> >> >
>> >> > at a certain point the book suggests to use the following command to
>> >> > generate a default config as an alternative to:
>> >> >
>> >> > make ARCH=${CLFS_ARCH} CROSS_COMPILE=${CLFS_TARGET}- menuconfig
>> >
>> > This should always work to allow the user to use the menuconfig ncurses
>> > interface to configure the kernel how they want.
>> >
>> >> > the alternative command is:
>> >> >
>> >> > make ${CLFS_TARGET}_defconfig
>> >
>> > The book notes that this alternate or 'make oldconfig' "may be more
>> > appropriate in some situations. See the README file for more
>> > information."
>> >
>> >> > However it is WRONG! and it should be:
>> >> >
>> >> > make ${CLFS_ARCH}_defconfig
>> >>
>> >> WRONG AGAIN: it should be
>> >>
>> >> make i386_defconfig for x86
>> >> make x86_64_defconfig for x86_64
>> >> make (dunnowhat)_defconfig for arm (look in arch/arm/configs/ dir)
>> >
>> > Yes, you are correct that using CLFS_ARCH here is not the right
>> > thing to do.  Unfortunately, we don't seem to have any generic way to
>> > easily recommend a defconfig which can be used.  defconfigs are not
>> > named per the architecture of the CPU in a consistent way with any
>> > variables used in toolchain creation.
>> >
>> > LFS just recommends as an alternate to try using "oldconfig" but to see
>> > the README[1], this is probably decent advice.
>> >
>> > [1]: http://linuxfromscratch.org/lfs/view/stable/chapter08/kernel.html
>> >
>> >> >
>> >> > the error can be fixed editing line 53 of the file at this link
>> >> >
>> >> > http://git.clfs.org/?p=clfs-embedded.git;a=blob;f=BOOK/bootable/common/kernel.xml;h=f159c4cc8617da83ee7aec1e8bf2b64067fc96e6;hb=HEAD
>> >
>> > Do you want to send a patch to the -dev mailing list to fix this?
>> >
>>
>> Unfortunately I don't know how use git,  how to write with docbook and
>> I don't know how to generate a patch file. That's unfortunate.
>> > Thanks,
>> > Andrew
>> > _______________________________________________
>> > Clfs-support mailing list
>> > Clfs-support at lists.clfs.org
>> > http://lists.clfs.org/listinfo.cgi/clfs-support-clfs.org
>> _______________________________________________
>> Clfs-support mailing list
>> Clfs-support at lists.clfs.org
>> http://lists.clfs.org/listinfo.cgi/clfs-support-clfs.org
> _______________________________________________
> Clfs-support mailing list
> Clfs-support at lists.clfs.org
> http://lists.clfs.org/listinfo.cgi/clfs-support-clfs.org



More information about the Clfs-support mailing list