Come patchare il kernel

From Paldo

(Difference between revisions)
Jump to: navigation, search
Revision as of 00:38, 24 November 2010 (edit)
Onevejo (Talk | contribs)

← Previous diff
Current revision (18:21, 1 December 2010) (edit) (undo)
WikiSysop (Talk | contribs)
m (Reverted edits by Onevejo (Talk); changed back to last version by Paolo)
 
Line 1: Line 1:
----- 
-<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;"> 
----- 
-=[http://ihyveqo.co.cc Page Is Unavailable Due To Site Maintenance, Please Visit Reserve Copy Page]= 
----- 
-=[http://ihyveqo.co.cc CLICK HERE]= 
----- 
-</div> 
Questa guida ti insegnerà come patchare il kernel con Upkg. '''Leggere la guida precedente sul come patchare un pacchetto per aveere le basi''' Questa guida ti insegnerà come patchare il kernel con Upkg. '''Leggere la guida precedente sul come patchare un pacchetto per aveere le basi'''
Line 12: Line 4:
Creare una directory di lavoro, per esempio: Creare una directory di lavoro, per esempio:
-&lt;pre&gt;+<pre>
sources/linux-2.6 sources/linux-2.6
specs specs
-&lt;/pre&gt;+</pre>
== Modificare il file spec == == Modificare il file spec ==
Line 22: Line 14:
Crea un nuovo file chiamato '''link-server''' e copia questo nel file: Crea un nuovo file chiamato '''link-server''' e copia questo nel file:
-&lt;pre&gt;+<pre>
#!/bin/bash #!/bin/bash
# #
- sed -i -e 's%&lt;patch name=&quot;%&lt;patch name=&quot;http://www.paldo.org/paldo/sources/linux-2.6/%' ./linux-2.6.xml+ sed -i -e 's%<patch name="%<patch name="http://www.paldo.org/paldo/sources/linux-2.6/%' ./linux-2.6.xml
- sed -i -e 's%&lt;archive name=&quot;%&lt;archive name=&quot;http://www.paldo.org/paldo/sources/linux-2.6/%' ./linux-2.6.xml+ sed -i -e 's%<archive name="%<archive name="http://www.paldo.org/paldo/sources/linux-2.6/%' ./linux-2.6.xml
-&lt;/pre&gt;+</pre>
Rendilo eseguibile con: Rendilo eseguibile con:
-&lt;pre&gt;+<pre>
chmod a+x ./link-server chmod a+x ./link-server
-&lt;/pre&gt;+</pre>
Fai partire lo script con: Fai partire lo script con:
-&lt;pre&gt;+<pre>
./link-server ./link-server
-&lt;/pre&gt;+</pre>
Hai linkato i pacchetti che ti servono al server paldo.org. (Devi comunque scaricarli nel tuo repo locale) Hai linkato i pacchetti che ti servono al server paldo.org. (Devi comunque scaricarli nel tuo repo locale)
Line 43: Line 35:
'''stable''' '''stable'''
-&lt;pre&gt;+<pre>
- &lt;!-- KERNEL --&gt;+ <!-- KERNEL -->
- &lt;archive name=&quot;http://www.paldo.org/paldo/sources/linux-2.6/linux-2.6.20&quot; srcdir=&quot;linux-$TAG&quot;&gt;+ <archive name="http://www.paldo.org/paldo/sources/linux-2.6/linux-2.6.20" srcdir="linux-$TAG">
- &lt;patch name=&quot;http://www.paldo.org/paldo/sources/linux-2.6/linux-$VERSION&quot;/&gt;+ <patch name="http://www.paldo.org/paldo/sources/linux-2.6/linux-$VERSION"/>
- &lt;patch name=&quot;http://www.paldo.org/paldo/sources/linux-2.6/linux-$VERSION-nozomi&quot;/&gt;&lt;!-- HSDPA Broadband PCMCIA card, already in -mm --&gt;+ <patch name="http://www.paldo.org/paldo/sources/linux-2.6/linux-$VERSION-nozomi"/><!-- HSDPA Broadband PCMCIA card, already in -mm -->
- &lt;patch name=&quot;http://www.paldo.org/paldo/sources/linux-2.6/linux-$VERSION-unionfs-1&quot;/&gt;&lt;!-- add unionfs, already in -mm --&gt;+ <patch name="http://www.paldo.org/paldo/sources/linux-2.6/linux-$VERSION-unionfs-1"/><!-- add unionfs, already in -mm -->
- &lt;archive name=&quot;http://www.paldo.org/paldo/sources/linux-2.6/linux-agp-compat-$AGPVERSION&quot;&gt;&lt;!-- update agp support for i915tex --&gt;+ <archive name="http://www.paldo.org/paldo/sources/linux-2.6/linux-agp-compat-$AGPVERSION"><!-- update agp support for i915tex -->
- &lt;cmd&gt;cp -v agp.h backend.c frontend.c generic.c intel-agp.c isoch.c ../drivers/char/agp/&lt;/cmd&gt;+ <cmd>cp -v agp.h backend.c frontend.c generic.c intel-agp.c isoch.c ../drivers/char/agp/</cmd>
- &lt;/archive&gt;+ </archive>
-&lt;/pre&gt;+</pre>
'''testing''' '''testing'''
-&lt;pre&gt;+<pre>
- &lt;!-- KERNEL --&gt;+ <!-- KERNEL -->
- &lt;archive name=&quot;http://www.paldo.org/paldo/sources/linux-2.6/linux-2.6.21&quot; srcdir=&quot;linux-$TAG&quot;&gt;+ <archive name="http://www.paldo.org/paldo/sources/linux-2.6/linux-2.6.21" srcdir="linux-$TAG">
- &lt;patch name=&quot;http://www.paldo.org/paldo/sources/linux-2.6/linux-$VERSION&quot;/&gt;+ <patch name="http://www.paldo.org/paldo/sources/linux-2.6/linux-$VERSION"/>
- &lt;patch name=&quot;http://www.paldo.org/paldo/sources/linux-2.6/linux-$VERSION-nozomi&quot;/&gt;&lt;!-- HSDPA Broadband PCMCIA card, already in -mm --&gt;+ <patch name="http://www.paldo.org/paldo/sources/linux-2.6/linux-$VERSION-nozomi"/><!-- HSDPA Broadband PCMCIA card, already in -mm -->
- &lt;archive name=&quot;http://www.paldo.org/paldo/sources/linux-2.6/squashfs$SQUASHFSVERSION&quot;&gt;&lt;!-- add squashfs support - improves rescue / live cds --&gt;+ <archive name="http://www.paldo.org/paldo/sources/linux-2.6/squashfs$SQUASHFSVERSION"><!-- add squashfs support - improves rescue / live cds -->
- &lt;cmd&gt;patch -d .. -Np1 &amp;lt; kernel-patches/linux-2.6.20/squashfs3.2-patch&lt;/cmd&gt;+ <cmd>patch -d .. -Np1 &lt; kernel-patches/linux-2.6.20/squashfs3.2-patch</cmd>
- &lt;/archive&gt;+ </archive>
-&lt;/pre&gt;+</pre>
== Aggiungere un patch al pacchetto linux-2.6 == == Aggiungere un patch al pacchetto linux-2.6 ==
Line 71: Line 63:
* Zippa il file .patch in .patch.bz2 con il seguente comando: * Zippa il file .patch in .patch.bz2 con il seguente comando:
-&lt;pre&gt;+<pre>
bzip2 ./*.patch bzip2 ./*.patch
-&lt;/pre&gt;+</pre>
* Aggiungi il file .patch al file spec: * Aggiungi il file .patch al file spec:
-&lt;pre&gt;+<pre>
- &lt;!-- KERNEL --&gt;+ <!-- KERNEL -->
- &lt;archive name=&quot;http://www.paldo.org/paldo/sources/linux-2.6/linux-2.6.21&quot; srcdir=&quot;linux-$TAG&quot;&gt;+ <archive name="http://www.paldo.org/paldo/sources/linux-2.6/linux-2.6.21" srcdir="linux-$TAG">
- &lt;patch name=&quot;http://www.paldo.org/paldo/sources/linux-2.6/linux-$VERSION&quot;/&gt;+ <patch name="http://www.paldo.org/paldo/sources/linux-2.6/linux-$VERSION"/>
- &lt;patch name=&quot;hdaps-kernel-2.6.2X-X&quot;/&gt;&lt;!-- your patch located in your local repo --&gt;+ <patch name="hdaps-kernel-2.6.2X-X"/><!-- your patch located in your local repo -->
- &lt;patch name=&quot;http://www.paldo.org/paldo/sources/linux-2.6/linux-$VERSION-nozomi&quot;/&gt;&lt;!-- HSDPA Broadband PCMCIA card, already in -mm --&gt;+ <patch name="http://www.paldo.org/paldo/sources/linux-2.6/linux-$VERSION-nozomi"/><!-- HSDPA Broadband PCMCIA card, already in -mm -->
- &lt;archive name=&quot;http://www.paldo.org/paldo/sources/linux-2.6/squashfs$SQUASHFSVERSION&quot;&gt;&lt;!-- add squashfs support - improves rescue / live cds --&gt;+ <archive name="http://www.paldo.org/paldo/sources/linux-2.6/squashfs$SQUASHFSVERSION"><!-- add squashfs support - improves rescue / live cds -->
- &lt;cmd&gt;patch -d .. -Np1 &amp;lt; kernel-patches/linux-2.6.20/squashfs3.2-patch&lt;/cmd&gt;+ <cmd>patch -d .. -Np1 &lt; kernel-patches/linux-2.6.20/squashfs3.2-patch</cmd>
- &lt;/archive&gt;+ </archive>
-&lt;/pre&gt;+</pre>
Usa lo stesso nome del bz2-tarball senza il .bz2 Usa lo stesso nome del bz2-tarball senza il .bz2
Line 94: Line 86:
Installa il kernel moddato con il comando: Installa il kernel moddato con il comando:
-&lt;pre&gt;+<pre>
upkg-build --disable-binary linux-2.6 upkg-build --disable-binary linux-2.6
-&lt;/pre&gt;+</pre>

Current revision

Questa guida ti insegnerà come patchare il kernel con Upkg. Leggere la guida precedente sul come patchare un pacchetto per aveere le basi

Contents

[edit] Preparare le cartelle

Creare una directory di lavoro, per esempio:

  sources/linux-2.6
  specs

[edit] Modificare il file spec

Scarica il file linux-2.6.xml nella directory specs.

Crea un nuovo file chiamato link-server e copia questo nel file:

  #!/bin/bash
  #
  sed -i -e 's%<patch name="%<patch name="http://www.paldo.org/paldo/sources/linux-2.6/%' ./linux-2.6.xml
  sed -i -e 's%<archive name="%<archive name="http://www.paldo.org/paldo/sources/linux-2.6/%' ./linux-2.6.xml

Rendilo eseguibile con:

  chmod a+x ./link-server

Fai partire lo script con:

  ./link-server

Hai linkato i pacchetti che ti servono al server paldo.org. (Devi comunque scaricarli nel tuo repo locale)

Apri il file XML e cerca questo:

stable

  <!-- KERNEL -->
  <archive name="http://www.paldo.org/paldo/sources/linux-2.6/linux-2.6.20" srcdir="linux-$TAG">
        <patch name="http://www.paldo.org/paldo/sources/linux-2.6/linux-$VERSION"/>

	<patch name="http://www.paldo.org/paldo/sources/linux-2.6/linux-$VERSION-nozomi"/><!-- HSDPA Broadband PCMCIA card, already in -mm -->
	<patch name="http://www.paldo.org/paldo/sources/linux-2.6/linux-$VERSION-unionfs-1"/><!-- add unionfs, already in -mm -->
        <archive name="http://www.paldo.org/paldo/sources/linux-2.6/linux-agp-compat-$AGPVERSION"><!-- update agp support for i915tex -->
             <cmd>cp -v agp.h backend.c frontend.c generic.c intel-agp.c isoch.c ../drivers/char/agp/</cmd>
        </archive>

testing

  <!-- KERNEL -->
  <archive name="http://www.paldo.org/paldo/sources/linux-2.6/linux-2.6.21" srcdir="linux-$TAG">
        <patch name="http://www.paldo.org/paldo/sources/linux-2.6/linux-$VERSION"/>

        <patch name="http://www.paldo.org/paldo/sources/linux-2.6/linux-$VERSION-nozomi"/><!-- HSDPA Broadband PCMCIA card, already in -mm -->
        <archive name="http://www.paldo.org/paldo/sources/linux-2.6/squashfs$SQUASHFSVERSION"><!-- add squashfs support - improves rescue / live cds -->
             <cmd>patch -d .. -Np1 < kernel-patches/linux-2.6.20/squashfs3.2-patch</cmd>
        </archive>

[edit] Aggiungere un patch al pacchetto linux-2.6

  • Scarica il file .patch in sources/linux-2.6 (hdaps-kernel-2.6.2X-X.patch)
  • Zippa il file .patch in .patch.bz2 con il seguente comando:
bzip2 ./*.patch
  • Aggiungi il file .patch al file spec:
  <!-- KERNEL -->
  <archive name="http://www.paldo.org/paldo/sources/linux-2.6/linux-2.6.21" srcdir="linux-$TAG">
        <patch name="http://www.paldo.org/paldo/sources/linux-2.6/linux-$VERSION"/>
        <patch name="hdaps-kernel-2.6.2X-X"/><!-- your patch located in your local repo -->
        <patch name="http://www.paldo.org/paldo/sources/linux-2.6/linux-$VERSION-nozomi"/><!-- HSDPA Broadband PCMCIA card, already in -mm -->
        <archive name="http://www.paldo.org/paldo/sources/linux-2.6/squashfs$SQUASHFSVERSION"><!-- add squashfs support - improves rescue / live cds -->
             <cmd>patch -d .. -Np1 < kernel-patches/linux-2.6.20/squashfs3.2-patch</cmd>
        </archive>

Usa lo stesso nome del bz2-tarball senza il .bz2

[edit] Installa il kernel moddato nella tua Paldo-box

Installa il kernel moddato con il comando:

   upkg-build --disable-binary linux-2.6
Personal tools