Changeset 6a3c6dc in clfs-embedded for BOOK


Ignore:
Timestamp:
Jan 26, 2009, 11:14:41 PM (16 years ago)
Author:
Jim Gifford <clfs@…>
Branches:
master
Children:
246191f
Parents:
22923d0
Message:

Updates to IPTables and Dropbear

Location:
BOOK
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • BOOK/beyond-clfs/common/dropbear.xml

    r22923d0 r6a3c6dc  
    3636    <para os="a">Configure dropbear:</para>
    3737
    38 <screen os="b"><userinput>CC="${CC} ${BUILD}" ./configure --prefix=/usr --host=${CLFS_TARGET}</userinput></screen>
     38<screen os="b"><userinput>CC="${CC} ${BUILD} -Os" ./configure --prefix=/usr --host=${CLFS_TARGET}</userinput></screen>
    3939
    4040    <para os="c">Now we will utilize /dev/urandom instead of /dev/random. To allow
  • BOOK/beyond-clfs/common/iptables.xml

    r22923d0 r6a3c6dc  
    2828   <para os="p1">Fixes Compile Issue with DO_MULTI=1:</para>
    2929
    30     <screen os="p2"><userinput>patch -Np1 -i ../&iptables-domulti-patch;</userinput></screen>
     30    <screen os="p2"><userinput>patch -Np1 -i ../&iptables-fixes-patch;</userinput></screen>
    3131
    32     <para os="a">Compile the package:</para>
     32    <para os="a">Configure IPTables:</para>
    3333
    34 <screen os="b"><userinput>make CC="${CC} ${BUILD}" COPT_FLAGS="-Os" LD=${LD} DO_MULTI=1 PREFIX=/usr \
    35     KERNEL_DIR=${CLFS}/lib/modules/&linux-version;/build LIBDIR=/lib BINDIR=/sbin</userinput></screen>
     34<screen os="b"><userinput>CC="${CC} ${BUILD} -Os" ./configure --prefix=/usr --host=${CLFS_TARGET} \
     35  --libexecdir=/lib/iptables --without-kernel -enable-libipq --enable-shared</userinput></screen>
    3636
    37     <para os="c">Install the package:</para>
     37    <para os="c">Compile the package:</para>
    3838
    39 <screen os="d"><userinput>make CC="${CC} ${BUILD}" COPT_FLAGS="-Os" LD=${LD} DO_MULTI=1 PREFIX=/usr \
    40     KERNEL_DIR=${CLFS}/lib/modules/&linux-version;/build LIBDIR=/lib BINDIR=/sbin \
    41     DESTDIR=${CLFS} install</userinput></screen>
     39<screen os="d"><userinput>make</userinput></screen>
     40
     41    <para os="e">Install the package:</para>
     42
     43<screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
    4244
    4345  </sect2>
  • BOOK/beyond-clfs/common/patches.xml

    r22923d0 r6a3c6dc  
    2020
    2121    <varlistentry>
    22       <term>Dropbear Autotool Patch - <token>&dropbear-autotool-patch-size;</token>:</term> <listitem>
     22      <term>IPTables Fixes Patch - <token>&iptables-fixes-patch-size;</token>:</term> <listitem>
    2323        <para>Download: <ulink
    24         url="&patches-root;&dropbear-autotool-patch;"/></para>
    25         <para>MD5 sum: <literal>&dropbear-autotool-patch-md5;</literal></para>
    26       </listitem>
    27     </varlistentry>
    28 
    29     <varlistentry>
    30       <term>IPTables DO_MULTI Patch - <token>&iptables-domulti-patch-size;</token>:</term> <listitem>
    31         <para>Download: <ulink
    32         url="&patches-root;&iptables-domulti-patch;"/></para>
    33         <para>MD5 sum: <literal>&iptables-domulti-patch-md5;</literal></para>
     24        url="&patches-root;&iptables-fixes-patch;"/></para>
     25        <para>MD5 sum: <literal>&iptables-fixes-patch-md5;</literal></para>
    3426      </listitem>
    3527    </varlistentry>
  • BOOK/bootable/arm/kernel.xml

    r22923d0 r6a3c6dc  
    4646   xpointer="xpointer(//*[@os='f'])"/>
    4747
    48 <screen os="g"><userinput>make ARCH=arm CROSS_COMPILE=${CLFS_TARGET}- menuconfig</userinput></screen>
     48<screen os="g"><userinput>make ARCH=${CLFS_ARCH} CROSS_COMPILE=${CLFS_TARGET}- menuconfig</userinput></screen>
    4949
    5050   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     
    6060   xpointer="xpointer(//*[@os='j'])"/>
    6161
    62 <screen os="k"><userinput>make ARCH=arm CROSS_COMPILE=${CLFS_TARGET}- zImage modules</userinput></screen>
     62<screen os="k"><userinput>make ARCH=${CLFS_ARCH} CROSS_COMPILE=${CLFS_TARGET}- zImage modules</userinput></screen>
    6363
    6464   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     
    8282   xpointer="xpointer(//*[@os='p'])"/>
    8383
    84 <screen os="q"><userinput>make ARCH=arm CROSS_COMPILE=${CLFS_TARGET}- \
     84<screen os="q"><userinput>make ARCH=${CLFS_ARCH} CROSS_COMPILE=${CLFS_TARGET}- \
    8585    INSTALL_MOD_PATH=${CLFS} modules_install</userinput></screen>
    8686
     
    9393   xpointer="xpointer(//*[@os='s'])"/>
    9494
    95 <screen os="t"><userinput>cp arch/arm/boot/zImage ${CLFS}/boot/clfskernel-&linux-version;</userinput></screen>
     95<screen os="t"><userinput>cp arch/${CLFS_ARCH}/boot/zImage ${CLFS}/boot/clfskernel-&linux-version;</userinput></screen>
    9696
    9797   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
  • BOOK/bootable/mips/kernel.xml

    r22923d0 r6a3c6dc  
    3838   xpointer="xpointer(//*[@os='d'])"/>
    3939
    40 <para os="d1">The following patch merges changes from Linux-MIPS into the kernel:</para>
    41 
    42 <screen os="d2"><userinput>patch -Np1 -i ../linux-&linux-version;-mips-1.patch</userinput></screen>
    43 
    44 <para os="d3">The following patch merges updates for Linux-MIPS kernel:</para>
    45 
    46 <screen os="d4"><userinput>patch -Np1 -i ../linux-&linux-version;-mips_fixes-1.patch</userinput></screen>
    47 
    4840   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    4941   href="../x86/kernel.xml"
     
    5446   xpointer="xpointer(//*[@os='f'])"/>
    5547
    56 <screen os="g"><userinput>make ARCH=mips CROSS_COMPILE=${CLFS_TARGET}- menuconfig</userinput></screen>
     48<screen os="g"><userinput>make ARCH=${CLFS_ARCH} CROSS_COMPILE=${CLFS_TARGET}- menuconfig</userinput></screen>
    5749
    5850   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     
    6860   xpointer="xpointer(//*[@os='j'])"/>
    6961
    70 <screen os="k"><userinput>make ARCH=mips CROSS_COMPILE=${CLFS_TARGET}- vmlinux.bin modules</userinput></screen>
     62<screen os="k"><userinput>make ARCH=${CLFS_ARCH} CROSS_COMPILE=${CLFS_TARGET}- </userinput></screen>
    7163
    7264   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     
    9082   xpointer="xpointer(//*[@os='p'])"/>
    9183
    92 <screen os="q"><userinput>make ARCH=mips CROSS_COMPILE=${CLFS_TARGET}- \
     84<screen os="q"><userinput>make ARCH=${CLFS_ARCH} CROSS_COMPILE=${CLFS_TARGET}- \
    9385    INSTALL_MOD_PATH=${CLFS} modules_install</userinput></screen>
    9486
     
    10193   xpointer="xpointer(//*[@os='s'])"/>
    10294
    103 <screen os="t"><userinput>cp arch/mips/boot/vmlinux ${CLFS}/boot/clfskernel-&linux-version;</userinput></screen>
     95<screen os="t"><userinput>cp arch/${CLFS_ARCH}/boot/vmlinux ${CLFS}/boot/clfskernel-&linux-version;</userinput></screen>
    10496
    10597   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
  • BOOK/bootable/wrt/kernel.xml

    r22923d0 r6a3c6dc  
    3838   xpointer="xpointer(//*[@os='d'])"/>
    3939
    40 <para os="d1">The following patch merges changes from Linux-MIPS into the kernel:</para>
    41 
    42 <screen os="d2"><userinput>patch -Np1 -i ../linux-&linux-version;-mips-1.patch</userinput></screen>
    43 
    44 <para os="d3">The following patch merges updates for Linux-MIPS kernel:</para>
    45 
    46 <screen os="d4"><userinput>patch -Np1 -i ../linux-&linux-version;-mips_fixes-1.patch</userinput></screen>
    47 
    48 <para os="d5">The following patch adds support for squashed filesystens to the kernel:</para>
    49 
    50 <screen os="d6"><userinput>patch -Np1 -i ../linux-&linux-version;-squashfs-1.patch</userinput></screen>
    51 
    52 <para os="d7">The following patch backports the d80211 wireless stack to the kernel:</para>
    53 
    54 <screen os="d8"><userinput>zcat ../linux-2.6.19-d80211-import-1.patch.gz | patch -Np1</userinput></screen>
    55 
    56 <para os="d9">The following patch updates the bcm43xx-d80211 wireless module:</para>
    57 
    58 <screen os="da"><userinput>zcat ../linux-2.6.19-bcm43xx-update-1.patch.gz | patch -Np1</userinput></screen>
    59 
    60 <para os="db">The following patch adds support for wireless routers to the kernel:</para>
    61 
    62 <screen os="dc"><userinput>patch -Np1 -i ../linux-&linux-version;-bcm947xx-2.patch</userinput></screen>
    63 
    6440   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    6541   href="../x86/kernel.xml"
     
    7046   xpointer="xpointer(//*[@os='f'])"/>
    7147
    72 <screen os="g"><userinput>make ARCH=mips CROSS_COMPILE=${CLFS_TARGET}- menuconfig</userinput></screen>
     48<screen os="g"><userinput>make ARCH=${CLFS_ARCH} CROSS_COMPILE=${CLFS_TARGET}- menuconfig</userinput></screen>
    7349
    7450   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     
    8460   xpointer="xpointer(//*[@os='j'])"/>
    8561
    86 <screen os="k"><userinput>make ARCH=mips CROSS_COMPILE=${CLFS_TARGET}- vmlinux.bin modules</userinput></screen>
     62<screen os="k"><userinput>make ARCH=${CLFS_ARCH} CROSS_COMPILE=${CLFS_TARGET}- vmlinux.bin modules</userinput></screen>
    8763
    8864   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     
    10682   xpointer="xpointer(//*[@os='p'])"/>
    10783
    108 <screen os="q"><userinput>make ARCH=mips CROSS_COMPILE=${CLFS_TARGET}- \
     84<screen os="q"><userinput>make ARCH=${CLFS_ARCH} CROSS_COMPILE=${CLFS_TARGET}- \
    10985    INSTALL_MOD_PATH=${CLFS} modules_install</userinput></screen>
    11086
     
    11793   xpointer="xpointer(//*[@os='s'])"/>
    11894
    119 <screen os="t"><userinput>cp arch/mips/boot/vmlinux.bin ${CLFS}/boot/clfskernel-&linux-version;</userinput></screen>
     95<screen os="t"><userinput>cp arch/${CLFS_ARCH}/boot/vmlinux.bin ${CLFS}/boot/clfskernel-&linux-version;</userinput></screen>
    12096
    12197   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
  • BOOK/bootable/x86/kernel.xml

    r22923d0 r6a3c6dc  
    5050    should be without modules.</para></note>
    5151
    52 <screen os="g"><userinput>make ARCH=i386 CROSS_COMPILE=${CLFS_TARGET}- menuconfig</userinput></screen>
     52<screen os="g"><userinput>make ARCH=${CLFS_ARCH} CROSS_COMPILE=${CLFS_TARGET}- menuconfig</userinput></screen>
    5353
    5454    <para os="h">Alternatively, <command>make oldconfig</command> may be more
     
    6565    <para os="j">Compile the kernel image and modules:</para>
    6666
    67 <screen os="k"><userinput>make ARCH=i386 CROSS_COMPILE=${CLFS_TARGET}-</userinput></screen>
     67<screen os="k"><userinput>make ARCH=${CLFS_ARCH} CROSS_COMPILE=${CLFS_TARGET}-</userinput></screen>
    6868
    6969    <para os="l">If using kernel modules, an
     
    9393    them:</para>
    9494
    95 <screen os="q"><userinput>make ARCH=i386 CROSS_COMPILE=${CLFS_TARGET}- \
     95<screen os="q"><userinput>make ARCH=${CLFS_ARCH} CROSS_COMPILE=${CLFS_TARGET}- \
    9696    INSTALL_MOD_PATH=${CLFS} modules_install</userinput></screen>
    9797
     
    133133      once your base CLFS system is complete.</para>
    134134
    135       <para>Also, the headers in the system's <filename
    136       class="directory">include</filename> directory should
    137       <emphasis>always</emphasis> be the ones against which Glibc was
    138       compiled (from the Linux-Headers package) and should
    139       <emphasis>never</emphasis> be replaced by the kernel headers.</para>
    140135    </warning>
    141136
  • BOOK/patches.ent

    r22923d0 r6a3c6dc  
    4545<!-- Beyond patches -->
    4646
    47 <!ENTITY dropbear-autotool-patch "dropbear-&dropbear-version;-autotool-1.patch">
    48 <!ENTITY dropbear-autotool-patch-md5 "eb5c1803aec03ea0d62cf57b4ef9bcb5">
    49 <!ENTITY dropbear-autotool-patch-size "56 KB">
    50 
    51 <!ENTITY iptables-domulti-patch "iptables-&iptables-version;-do_multi-1.patch">
    52 <!ENTITY iptables-domulti-patch-md5 "badcc9ea0dc1097d3a0a4f299eaa9219">
    53 <!ENTITY iptables-domulti-patch-size "4 KB">
     47<!ENTITY iptables-fixes-patch "iptables-&iptables-version;-fixes-1.patch">
     48<!ENTITY iptables-fixes-patch-md5 "5a8bc894706019ea4f42e506633a49bf">
     49<!ENTITY iptables-fixes-patch-size "8 KB">
    5450
    5551<!-- MIPS Patches -->
Note: See TracChangeset for help on using the changeset viewer.