I want tweak/modify a bit kernel, so i download all needed files from SVN and compile. The binary was about ~200kb. When I exchange with current kernel.mnt boots, but it writes only few lines intro letters and hang. (Sorry I dont make photo) So I guess, kernel.mnt must be packed, but when I tried with kpack (option 'kernel' marked) it writes me 'unable to load file' or something like that (I choose kernel.mnt from sys root folder) I tried older kpack on older system distros (year 2018, 2015) - no luck I get similar communicate. I tried ver 7.7.0 and its kerpack but it was end of stubborn - it wrote me 'all is 0' on debug board and I give up (probably I have had to compile 7.7.0 kernel). I tried once again current kpack calling from command line with option -ker - I get 'unable to load file' or something like that. Once again I download from svn some linux tools to pack kernel - but it requires gcc to properly compile. Probably there is need to correct kpack sources - maybye its task for me?
Kernel.mnt packing.
-
Hi!
I want tweak/modify a bit kernel, so i download all needed files from SVN and compile. The binary was about ~200kb. When I exchange with current kernel.mnt boots, but it writes only few lines intro letters and hang. (Sorry I dont make photo) So I guess, kernel.mnt must be packed, but when I tried with kpack (option 'kernel' marked) it writes me 'unable to load file' or something like that (I choose kernel.mnt from sys root folder) I tried older kpack on older system distros (year 2018, 2015) - no luck I get similar communicate. I tried ver 7.7.0 and its kerpack but it was end of stubborn - it wrote me 'all is 0' on debug board and I give up (probably I have had to compile 7.7.0 kernel). I tried once again current kpack calling from command line with option -ker - I get 'unable to load file' or something like that. Once again I download from svn some linux tools to pack kernel - but it requires gcc to properly compile. Probably there is need to correct kpack sources - maybye its task for me?
The core has become a little fatter.
Thanks.for sharing. Ok - kpack requires some inc files with macros, consts and so on too correct compile. Maybye its silly question - how I can download whole program directory (screenshot attached) with files I need. I dont see sth like download buttons not only for all files, but for separate too. Perhaps manually display inc/mac files, mark all and copy/paste to fasm editor? I tried exploler and firefox.... It is svn bug or just inteted feature? ....... Or I will check current distro for compiled new version. Thanks again anyway...
- Attachments
-
-
scr.png (27.53 KiB)Viewed 11504 times
I tried kpack included in image dated 01.24 23:03 . No luck...
- Attachments
-
-
scrshot.png (138.54 KiB)Viewed 11494 times
It is better way to have a local copy of the entire SVN repository.
This fix has not been uploaded yet.
KPACK compiled with the fix:
This fix has not been uploaded yet.
KPACK compiled with the fix:
sober_dev,
I can give you access to svn. PM me with a desired password, or I can generate a random one.
I can give you access to svn. PM me with a desired password, or I can generate a random one.
Nice ! Seems work OK. Thanks

Great! It appears to be functioning well slope rider
It sounds like you’re on the right track suspecting that kernel.mnt needs to be packed correctly, because a raw compiled kernel usually won’t boot on its own. The fact that it prints a few lines and then hangs often points to a format or packing issue rather than a pure compile error.macgub wrote: ↑Mon Jan 24, 2022 8:19 pm Hi!
I want tweak/modify a bit kernel, so i download all needed files from SVN and compile. The binary was about ~200kb. When I exchange with current kernel.mnt boots, but it writes only few lines intro letters and hang. (Sorry I dont make photo) So I guess, kernel.mnt must be packed, but when I tried with kpack (option 'kernel' marked) it writes me 'unable to load file' or something like that (I choose kernel.mnt from sys root folder) I tried older kpack on older system distros (year 2018, 2015) - no luck I get similar communicate. I tried ver 7.7.0 and its kerpack but it was end of stubborn - it wrote me 'all is 0' on debug board and I give up (probably I have had to compile 7.7.0 kernel). I tried once again current kpack calling from command line with option -ker - I get 'unable to load file' or something like that. Once again I download from svn some linux tools to pack kernel - but it requires gcc to properly compile. Probably there is need to correct kpack sourcesrun 3- maybye its task for me?![]()
A few things you might want to double-check:
Make sure the kernel version you’re compiling exactly matches the bootloader and tools (kpack/kerpack) you’re using. Mixing versions often causes the “unable to load file” or “all is 0” behavior.
Verify the input file format expected by kpack (ELF vs. binary). If kpack can’t recognize the file, it will fail immediately.
Check whether the kernel needs to be built with specific compiler flags or a custom linker script provided in the SVN tree.
If possible, try unpacking an original working kernel.mnt and compare its structure, size, and headers with your compiled output.
Some older tools require a matching gcc version, so building them with a modern compiler can silently break compatibility.
If the sources for kpack are available, adjusting them or building them in an older toolchain (VM or container) might indeed be necessary. Painful, but sometimes unavoidable with legacy boot systems.
Good luck — kernel packing issues are frustrating, but you’re clearly digging in the right places
Yes, KolibriOS won’t boot an unpacked kernel. The kernel you compiled is raw and must be packed.macgub wrote: ↑Mon Jan 24, 2022 8:19 pm Hi!
I want tweak/modify a bit kernel, so i download all needed files from SVN and compile. The binary was about ~200kb. When I exchange with current kernel.mnt boots, but it writes only few lines intro letters and hang. (Sorry I dont make photo) So I guess, kernel.mnt must be packed, but when I tried with kpack (option 'kernel' marked) it writes me 'unable to load file' or something like that (I choose kernel.mnt from sys root folder) I tried older kpack on older system distros (year 2018, 2015) - no luck I get similar communicate. I tried ver 7.7.0 and its kerpack but it was end of stubborn - it wrote me 'all is 0' on debug board and I give up (probably I have had to compile 7.7.0 kernel). I tried once again current kpack calling from command line with option -ker - I get 'unable to load file' or something like that. Once again I download from svn some linux tools to pack kernel - but it requires gcc to properly compile. Probably there is need to correct kpack sources - maybye its task for me?slope rider
Your issue is almost certainly kpack/kernel version mismatch—you need to use kpack from the same SVN revision as the kernel and pack the freshly compiled binary (not the existing /sys/kernel.mnt).
The “all is 0” and “unable to load file” errors are typical when versions don’t match.
Who is online
Users browsing this forum: No registered users and 2 guests