General TC > Remasters / Remixes - Unofficial

[Solved] Instructions on updating TinyCore 11 to Real Time?

<< < (5/8) > >>

pditty:
Do I need to gzip the new .ko files before running the sorter script?

Rich:
Hi pditty
You can, I didn't. The sorter script gzips the base modules file:

--- Code: ---# Copy the module archive that's part of the base system
cp sorter/sorter-master/modules64.gz modulesASUS64rev1.gz
--- End code ---
So the package is smaller, but the modules get unpacked when you boot and take more space in the RAM filesystem.

The  .tcz  files are compressed file systems. They get loop mounted so compressing those modules won't buy you anything.

pditty:
You're the man Rich!

That worked and I am now booting to the GUI. 

Your instructions were perfect!!

Rich:
Hi pditty
Glad I could help. Thank you for confirming it worked for you. I will mark your original post as  [Solved].

pditty:
Rich, This is essentially everything you did but tweaked for 5.4.3, ubuntu, and building an ISO (that can run in a vm if you want).

I wanted to post it in case it helps anyone else.

NOTE: I have the following folder structure as well as tinycore-extract.sh and sorter.sh already in the folders.  If you don't have them you can download them from github and extract them (if necessary).

-wget https://github.com/tinycorelinux/sorter/archive/master.zip
-https://github.com/elazarl/customize_tinycorelinux

tmp/
tmp/backup
tmp/image
tmp/image/tinycore-extract.sh
tmp/modules/usr/local
tmp/sorter/sorter-master/sorter.sh

############################ Create the Image directory #########################
->cd image
->sudo ./tinycore-extract.sh <image iso name OR Tinycore-current.iso by default>
->cd iso/boot
->sudo rm core.gz vmlinuz
->cd ../../../

############################  Compile The Kernel#####################################
### Only install these if you don't have them already
->sudo apt-get install zsync -y
->sudo apt-get install squashfs-tools
->sudo apt-get install -y xorriso

### Get the patched Tinycore kernel and Real time patch
->wget http://tinycorelinux.net/11.x/x86/release/src/kernel/config-5.4.3-tinycore
->wget http://tinycorelinux.net/11.x/x86/release/src/kernel/linux-5.4.3-patched.txz
->wget https://mirrors.edge.kernel.org/pub/linux/kernel/projects/rt/5.4/older/patches-5.4.3-rt1.tar.xz
->tar xf linux-5.4.3-patched.txz
->cd  linux-5.4.3

###Clean the Kernel, just in case
->make mrproper

###Patch the Kerenl with the Real time extension
->xzcat ../patch-5.4.3-rt1.patch.xz | patch -p1

### Start with the most recent config file.
->cp ../config-5.4.3-tinycore .config

### Merge the old .config with the real time patch features
->make oldconfig

#### Enter #4 for FULLY PREEMPT, everything else is default

### OPTIONAL: Make your changes to the kernel
->make menuconfig

### OPTIONAL: Save Kernel Config as a starting point for next time.
->cp .config ../config-5.4.3-tinycoreRT-rev1

### Compile the kernel
->make -j 2 bzImage

### Copy the kernel where the bootloader can find it in the image directory
->cp arch/x86/boot/bzImage ../image/iso/boot/vmlinuz

### Compile modules
->make -j 2 modules

### Place the modules in a temporary directory
->make INSTALL_MOD_PATH=../modules/usr/local modules_install
->cd ../

### OPTIONAL: Backup modules.alias, modules.builtin, modules.dep, modules.order, and modules.symbols files just in case
->mv modules/usr/local/lib/modules/5.4.3-rt1-tinycore/modules.* backup/

### Remove the 2 uneccessary symlinks in modules/usr/local/lib/modules/5.4.3-rt1-tinycore
->rm modules/usr/local/lib/modules/5.4.3-rt1-tinycore/build
->rm modules/usr/local/lib/modules/5.4.3-rt1-tinycore/source


######################### Set up sorter.sh to package all the modules.  ###############################
->cd sorter/sorter-master

### Create the Tinycore module packages and leave them in the current directory.
->sudo ./sorter.sh 5.4.3-rt1-tinycore ../../modules

### Back to the working directory.
->cd ../../

### Fetch a 32 bit root file system.
->wget http://tinycorelinux.net/11.x/x86/release/distribution_files/rootfs.gz

### Copy the module archive to the working directory
->cp sorter/sorter-master/modules.gz modulesRT.gz

### Make a new initrd
->cat rootfs.gz modulesRT.gz > coreRT.gz

### Copy the initrd where the bootloader can find it.
->cp coreRT.gz image/iso/boot

######################## Build the ISO ##############################################################
->cd image
->sudo chmod 755 iso

### isolinux.cfg hasn't changed we are still using core.gz and vmlinuz as rootfs and kernel
->xorriso -as mkisofs -iso-level 3 -full-iso9660-filenames -volid tinycoreRT \
        -eltorito-boot boot/isolinux/isolinux.bin -boot-load-size 4 \
        -eltorito-catalog boot/isolinux/boot.cat -boot-info-table \
        -no-emul-boot -output <tinycore iso name> iso
       
### DONE! Boot .iso file

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version