Metztli I. T.  Blog

    Back to Metztli IT Main Site
Posted by vato on Dec 19 2016 in Linux, Installation, Current Trends, Reiser4
  • « Coyolxauhqui: Build Reiser4 -patched Linux Kernel, Headers, and Modules, for Stretch-Backports the 'Debian Way'.
  • Build Apache OpenOffice 4.1.3 on GNU/Linux Debian Sid (Unstable) »

Nahui Ollin: UDEB Components to Supercharge a Debian Installer (d-i) for a Native Reiser4 Installation on AMD64.

Nahui Ollin: UDEB Components to Supercharge a Debian Installer (d-i) for a Native Reiser4 Installation on AMD64.

This is the first in a tentative sequence of nahui [four] posts where I will show how to patch and build the Reiser4 UDEB components required to modify a stable vanilla Debian-Installer. Accordingly, we will hack B) the Linux kernel and actual Debian Installer (d-i) itself; subsequently we'll integrate all Reiser4 components into the d-i hierarchy tree; finally, I will build a mini netboot ISO image suitable for a native Debian on AMD64 partitioning, formatting, and installation onto a Reiser4 root disk partition.

Revisiting: Build Reiser4-patched Debian Linux Kernel to Generate UDEB d-i Components.

Although Building A Reiser4-Patched Development Linux Kernel Package 'The Debian Way' worked fairly well at the time, the fast pace of development has rendered some steps obsolete. Accordingly -- and for brevity's sake -- I will be applying a patch that I created to simply the procedures that ensue below.

We start in a Reiser4 fresh install environment of Jessie on AMD64 from my SourceForge custom netinstall Debian-Reiser4 repository. After the installation is complete, I login and, as in prior post, select and install the specified packages below.

Note that if during above Debian installation you forgot to allow the installer to add the Jessie backports repository, open the file
/etc/apt/sources.list and add the following two directives:

deb http://ftp.debian.org/debian jessie-backports main
deb-src http://ftp.debian.org/debian jessie-backports main

You will need them as we are gonna build a reiser4 -patched relatively recent backported kernel.
End of note.

Now proceed with:

Shell

apt-get update
apt-get -t jessie-backports install build-essential libncurses5-dev libdebconfclient0-dev libssl-dev libpci-dev libwrap0-dev libusbip-dev asciidoc quilt git rsync fakeroot devscripts kernel-wedge libelf-dev libperl-dev python-dev libnuma-dev libaudit-dev libunwind-dev libdw-dev libudev-dev libiberty-dev usbip libusbip-dev linux-tools dh-exec dh-di dh-autoreconf flex bison
apt-get -t jessie-backports build-dep linux

Now we create a tekitl (work, in Nahuatl &#59;) directory for our custom reiser4 Debianiazed Linux kernel build:

Shell

sudo mkdir --verbose /usr/src/build/tekitl
cd /usr/src/build/tekitl

and we download the latest Jessie backport Linux kernel source:

Shell

apt-get -t jessie-backports source -d linux

Sometimes we are lucky and Jessie Backports has the Sid (latest) Linux kernel source, as in this particular case:
ls
linux_4.8.11-1~bpo8+1.debian.tar.xz linux_4.8.11-1~bpo8+1.dsc linux_4.8.11.orig.tar.xz

then we clone Jessie Backports Debian packaging:

Shell

git clone -b jessie-backports --single-branch https://anonscm.debian.org/git/kernel/linux.git

Be patient as the Linux kernel Debian packaging takes a while to download.

Once the download is finished, you will have similar to:

Nahui Ollin: UDEB Components to Supercharge a Debian Installer (d-i) for a Native Reiser4 Installation on AMD64.

You may want to create a backup of the Debian packaging, i.e., linux directory above -- in case we make an error and need to start over from a pristine download snapshot.

Patching Debian Packaging to Generate Reiser4 Modules from Reiser4-patched Linux Source

Note below the crossed-out entry from previous Debian package patch-instructions is irrelevant now:

  1. Add debian/installer/amd64/modules/amd64/reiser4-modules
  2. Add debian/installer/modules/reiser4-modules
  3. Edit /usr/share/kernel-wedge/package-list
  4. Edit debian/installer/amd64/package-list
  5. Edit debian/installer/package-list
  6. Edit debian/config/amd64/defines

In order to patch the remaining resources in the just download debian packaging, I developed a patch a while back that will direct the Debian build procedure to generate modules for AMD64: 0001-Reiser4-support-for-Debian-AMD64.patch

Of course, you may manually edit and modify the above resources as shown in Building A Reiser4-Patched Development Linux Kernel Package 'The Debian Way'.

Shell

cd linux
debian/rules orig

We test whether the patch will apply; if it does, then we apply it with quilt

Shell

cat ~/0001-Reiser4-support-for-Debian-AMD64.patch | patch --dry-run -p1
cat ~/0001-Reiser4-support-for-Debian-AMD64.patch | quilt fold

Nahui Ollin: UDEB Components to Supercharge a Debian Installer (d-i) for a Native Reiser4 Installation on AMD64.

Now since we are building a Reiser4 -enabled custom kernel, we override default module signing, by disabling feature; otherwise our build will fail since, at least myself, are not an official Debian maintainer :)) I also disable real time (rt) feature but you may decide otherwise.

We open for editing debian/config/amd64/defines and add/modify relevant specifications below:

[build]
[...]

signed-modules: false

[featureset-rt_base]
enabled: false

Nahui Ollin: UDEB Components to Supercharge a Debian Installer (d-i) for a Native Reiser4 Installation on AMD64.

NOTE for i386 Reiser4 Debian packaging preparation.
Although untested if you will be building Reiser4 support for i386 as well, edit debian/config/i386/defines similarly as above, i.e.,

Nahui Ollin: UDEB Components to Supercharge a Debian Installer (d-i) for a Native Reiser4 Installation on AMD64.

proceed to copy a reiser4-modules node file into its i386 equivalent:

Shell

cp -iv debian/installer/amd64/modules/amd64/reiser4-modules  debian/installer/i386/modules/i386/reiser4-modules

and edit debian/installer/i386/package-list by adding the following two(2) directives below:

Package: reiser4-modules
Priority: standard

Nahui Ollin: UDEB Components to Supercharge a Debian Installer (d-i) for a Native Reiser4 Installation on AMD64.
End of NOTE for i386 Reiser4 Debian packaging preparation
We continue, and execute:

Shell

debian/rules debian/control

Since this is pristine instance of Debian packaging for its Linux kernel, it is 'normal' we get a couple of errors -- as seen below:
Nahui Ollin: UDEB Components to Supercharge a Debian Installer (d-i) for a Native Reiser4 Installation on AMD64.

and proceed with

Shell

fakeroot debian/rules source

If real time (rt) feature was priorly selected, across your shell screen rt-patching will scroll by.

Now we will download the corresponding Reiser4 for Linux kernel 4.8.0 patch to patch our linux source tree; in this particular case, I had to use reiser4-for-4.9.0.patch since the previous kernel minor version number generated an error in file fs/reiser4/plugin/inode_ops.o and halted the build routine. But... :-/

To avoid build error:

CC [M] fs/reiser4/plugin/cluster.o
CC [M] fs/reiser4/plugin/txmod.o
CC [M] fs/reiser4/plugin/inode_ops.o
/mnt/ephemeral/usr/src/build/tekitl/linux/fs/reiser4/plugin/inode_ops.c: In function ‘reiser4_setattr_common’:
/mnt/ephemeral/usr/src/build/tekitl/linux/fs/reiser4/plugin/inode_ops.c:448:2: error: implicit declaration of function ‘inode_change_ok’ [-Werror=implicit-function-declaration]
result = inode_change_ok(inode, attr);
^
cc1: some warnings being treated as errors
make[7]: *** [fs/reiser4/plugin/inode_ops.o] Error 1
/mnt/ephemeral/usr/src/build/tekitl/linux/scripts/Makefile.build:294: recipe for target 'fs/reiser4/plugin/inode_ops.o' failed
make[6]: *** [fs/reiser4] Error 2
/mnt/ephemeral/usr/src/build/tekitl/linux/scripts/Makefile.build:445: recipe for target 'fs/reiser4' failed
make[5]: *** [fs] Error 2
/mnt/ephemeral/usr/src/build/tekitl/linux/Makefile:974: recipe for target 'fs' failed
make[4]: *** [sub-make] Error 2
Makefile:150: recipe for target 'sub-make' failed
make[3]: *** [__sub-make] Error 2
Makefile:24: recipe for target '__sub-make' failed
make[3]: Leaving directory '/mnt/ephemeral/usr/src/build/tekitl/linux/debian/build/build_amd64_none_amd64'
make[2]: *** [debian/stamps/build_amd64_none_amd64] Error 2
debian/rules.real:188: recipe for target 'debian/stamps/build_amd64_none_amd64' failed
make[2]: Leaving directory '/mnt/ephemeral/usr/src/build/tekitl/linux'
make[1]: *** [binary-arch_amd64_none_amd64_real] Error 2
debian/rules.gen:25: recipe for target 'binary-arch_amd64_none_amd64_real' failed
make[1]: Leaving directory '/mnt/ephemeral/usr/src/build/tekitl/linux'
make: *** [binary-arch] Error 2
debian/rules:55: recipe for target 'binary-arch' failed
dpkg-buildpackage: error: fakeroot debian/rules binary-arch gave error exit status 2

Assuming your downloaded patch is at current directory location, 'fix it' with this one liner:

gzip -dc reiser4-for-4.8.0.patch.gz | \
sed 's/inode_change_ok(inode/setattr_prepare(dentry/' | \
gzip -9 - > reiser4-for-4.8.11+.patch.gz

As usual we first test if patch will apply and if it does, we use quilt to implement it:

Shell

gzip -dc ../reiser4-for-4.8.11+.patch.gz | patch --dry-run -p1
gzip -dc ../reiser4-for-4.8.11+.patch.gz | quilt fold

Then I concatenate relevant Reiser4 text-string +reiser4.0.1 to abi by editing file debian/config/defines:

Nahui Ollin: UDEB Components to Supercharge a Debian Installer (d-i) for a Native Reiser4 Installation on AMD64.

And since this is a Reiser4-enabled custom kernel, I modify debian/changelog with dch. Once relevant text editor is selected, I modify and concatenate the above +reiser4.0.1 text-string at its proper location, as shown below:

Shell

dch -D metztli

Nahui Ollin: UDEB Components to Supercharge a Debian Installer (d-i) for a Native Reiser4 Installation on AMD64.

then proceed once again with:

Shell

debian/rules debian/control
fakeroot debian/rules debian/control-real

Note that in the first directive I will still get two(2) errors because I modified the debian/config/defines and debian/changelog files. Notwithstanding, in the last command I should only get one(1) default error, as below:

Nahui Ollin: UDEB Components to Supercharge a Debian Installer (d-i) for a Native Reiser4 Installation on AMD64.

At this point I define my Debian Linux kernel build for AMD64 (nevertheless, although untested, you may define for i388, instead):

Shell

fakeroot make -f debian/rules.gen setup_amd64_none_amd64

Nahui Ollin: UDEB Components to Supercharge a Debian Installer (d-i) for a Native Reiser4 Installation on AMD64.

Subsequently proceed to specify reiser4 as a module in kernel configuration file:

Shell

make -C debian/build/build_amd64_none_amd64 menuconfig

by selecting from menu File Systems
Nahui Ollin: UDEB Components to Supercharge a Debian Installer (d-i) for a Native Reiser4 Installation on AMD64.

Yes, optional, but I do add OS/2 HPFS support from Miscellaneous File Systems:

Nahui Ollin: UDEB Components to Supercharge a Debian Installer (d-i) for a Native Reiser4 Installation on AMD64.

Save modifications. Now we are ready to build our kernel the 'Debian way.

In the directive that ensues, I specified -j8 because

Shell

man dpkg-buildpackage

-j[jobs|auto]
Number of jobs allowed to be run simultaneously, number of jobs matching the number of online processors

Of course, please adjust to your particular computing environment:

Shell

dpkg-buildpackage -F -us -uc -j8 -T binary-arch,binary-indep

Make sure to install required dependencies that dpkg-buildpackage may complain about in the above command. Nevertheless, if you know that your Debian has those dependencies, consider the use of the -d switch as extra argument to dpkg-buildpackage i.e.,

Shell

dpkg-buildpackage -d -b -us -uc -j8 -T binary-arch

Do man dpkg-buildpackage for further enlightenment &#59;)

Go out and have some fun -- inhale some fresh air!

Nahui Ollin: UDEB Components to Supercharge a Debian Installer (d-i) for a Native Reiser4 Installation on AMD64.

After a couple of hours the build procedure is over and we find our custom Reiser4 UDEB module freshly generated with the 'official' ones from the maintainer(s).

Nahui Ollin: UDEB Components to Supercharge a Debian Installer (d-i) for a Native Reiser4 Installation on AMD64.

Paquilizcayolli [Congratulations]! We are ready to engage the second phase of our Reiser4-Installer adventure in ensuing blog entry in the sequence B)


References:
1. Installing Jessie Debian-Reiser4 via Remmina/VNC.
2. Nahui Ollin : Fourth Movement Deviant by SIRGEVA
3. Miss-Tuning-Kalender 2017: Jetzt bestellen! Or AutoBild.de

DISCLAIMER:P although due diligence has been applied, this resource is made available for testing/evaluation purposes on an AS IS basis. The procedure only reflects my own modifications, my limited testing, and the potential user(s) who execute(s) the procedures assumes all risks.

Please do not hold me or Metztli Information Technology (and/or its associates) responsible if the information provided here does not achieve the desired result. The information is provided AS IS and with the hope that it may be useful to the Internet community --especially those interested in Reiser4 -patched kernel/modules to be embedded in Debian Installer (d-i).

Notwithstanding, There is no implicit or explicit guarantee that the information presented here is accurate --even though due diligence was exercised during the procedure. Accordingly, if an user(s) decide to implement the procedure or shell commands described here she, he, or them, do so at her, his, or their own risk. You have been forewarned.

Tags: UDEBbackportsdebianjessiekernelkernel modulelinuxreiser4
This entry was posted by Jose and filed under Linux, Installation, Current Trends, Reiser4. Tags: UDEB, backports, debian, jessie, kernel, kernel module, linux, reiser4.

No feedback yet


Form is loading...

My blogs

  • Metztli IT's
  • Metztli Bits
  • Ixiptli
  • TIGroup
  • Amatl
  • Calli
May 2025
Mon Tue Wed Thu Fri Sat Sun
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  
 << <   > >>

NahuiFS: Reiser4 Wiki (link)

Reiser4 Official Reference wiki

Apache OpenOffice: Suite libre y gratuita para la oficina

OpenOffice download: Bajar suite de Oficina Abierta

Axitlani

Send Telegram to @metztli_it ?

Metztli Reiser4 based on Debian Amatlocuilin, i.e., Bookworm

Download Metztli Reiser4 Debian 12 Amatlocuilin, i.e., Bookworm, Installer
Click image to be directed to download for free Reiser4-enabled Debian-Installer netboot ISO image hosted at SourceForge

Tlacayotl: Человечество : Humanity : Humanidad

  • Israeli forces Genocidal Apartheid Zionists land thieves arrested 22-yro Palestinian activist Ahed Tamimi in the village of Nabi Saleh in the occupied West Bank.

  • - Ahed Tamimi (Arabic: عهد التميمي, romanized: ‘Ahad at-Tamīmī, also romanized Ahd; born 31 January 2001)] is a Palestinian activist from the village of Nabi Salih in the occupied West Bank in Palestine. She is best known for appearances in images and videos in which she confronts Israeli soldiers.
  • Over a week ago they arrested her father, Bassem Tamimi while he was trying to make his way to Jordan. The family still has no idea where he’s being held.
- Israeli soldiers raided Ahed Tamimi’s home, turned everything upside down and held her mother in another room, preventing her from being with her daughter.
Human Rights Abuses Telegram

Spanish Cartel : Cártel Español

Spanish Cartel : Cártel Español

Search

  • Home
  • Recently
  • Archives
  • Categories
  • Latest comments

Categories

Metztli I. T.  Blog

  • Current Trends
    • Cloud Computing
      • Platform as a Service
    • nginx
  • Linux
    • Applications
      • Office
        • Symphony
          • Apache OpenOffice
        • uninstall/install
    • Debian
    • Installation
    • Java
    • Reiser4
    • reiser5
    • system
  • OS/2
    • Applications
    • Google Web Toolkit
  • Social Nework
  • Spam/Scam
  • Virtualization
  • php7

XML Feeds

  • RSS 2.0: Posts, Comments
  • Atom: Posts, Comments
More on RSS

Learn, support Nahuatl...


Powered by translatenahuatl.com

University of Oregon Wired Humanities' Nahuatl Dictionary appreciates your donation.
Rechercher directement un mot Nahuatl

Metztli IT's recent entries:

  • Debian Amatlocuilin, i.e., Bookworm, & Metztli Reiser4 5.17.13-1+reiser4.0.2 downgraded Linux Kernel
  • Tlacatecolotl: OS/2 for Symmetrical Multiprocessing(SMP) v2.11 HPFS386 on Headless VirtualBox 7.0.12
  • The Ritual of a Reiser4 Debianized Kernel Macuilli.Caxtolli_Omome.Matlactetl_Omome (5.17.12) Build
  • Tlahuizcalpanteuhctli
  • Reiser4 and Linux version Macuilli.Matlactli, i.e., 5.10
  • Reiser5 Moiocoiani: Metztli Reiser4, Software Framework Release Number (SFRN) 5.1.3 Debian installer
  • Exposing Hacks for ZSTD -compressed Metztli Reiser4 / Debian Buster bps Linux 5.5.caxtolli∙omome and initramfs
  • Build PHP 7.3.9̶ 10 ZTS and puppies...er, pthreads, on Metztli Reiser4: Как же мало нужно для счастья.
  • Build PHP 7.3.5̶ 6 for Nginx 1.17.0 on Metztli Reiser4 'the Debian Way' for Stretch Backports on AMD64.
  • Nginx at Metztli IT: ModSecurity v3 module, Engine X v1.15.9, and libmodsecurity3 Connector, Integrated Hack.

Open Source Power!

Powered by Nginx at Metztli IT

Powered by MariaDB

Protected by Zmanda

Recent comments

  • Artur on Exposing Hacks for ZSTD -compressed Metztli Reiser4 / Debian Buster bps Linux 5.5.caxtolli∙omome and initramfs
  • vato on Exposing Hacks for ZSTD -compressed Metztli Reiser4 / Debian Buster bps Linux 5.5.caxtolli∙omome and initramfs
  • Artur on Exposing Hacks for ZSTD -compressed Metztli Reiser4 / Debian Buster bps Linux 5.5.caxtolli∙omome and initramfs
  • Jordi L'Escala on Building A Reiser4-Patched Development Linux Kernel Package 'The Debian Way'.
  • hans on Building A Reiser4-Patched Development Linux Kernel Package 'The Debian Way'.
  • jess on OS/2 Warp Server for E-Business (WSEB) hosting b2evolution 2.4.2 "Palms" stable.
  • vato on Hecamalotl: OS/2 Hosting Drupal 7.0 RC1 Content Management System (CMS)
  • Per on Hecamalotl: OS/2 Hosting Drupal 7.0 RC1 Content Management System (CMS)
  • Alen on OS/2 Gradd video driver for Virtual Machine or older hardware.
  • Anonimo on Deploying b2evolution blog/CMS on Red Hat's Cloud OpenShift PaaS
Metztli Reiser4 on AMD Epyc Cloud Fabric

©2025 by Jose • Contact • Help • CMS software