General TC > General TC Talk
Bulding the kernel from source and making an ISO?
edmazing:
I'm looking to add P9 support to the kernel (So I can hopefully run gcc as a tiny C++ compiler on V86, ). Thus recompiling it from source.
I found the kernel source over at https://distro.ibiblio.org/tinycorelinux/17.x/x86/release/src/kernel/
Ran wget for the tar.gz and configure files.
Extracted the tar.gz and copied the configure file as a .config.
Then did make menuconfig, under network support added Plan 9 Sharing Support (9P2000)
Then Filesystems -> Network File Systems -> Plan 9 Resource sharing Support (9P2000) (Unsure if the access control or security labels are needed.)
Ran make. It took about two hours but it compiled just fine.
How exactly would I package the result into an ISO?
I think I should be able to manage to add gcc and the other bloat to make it into a tiny compiler environment.
Rich:
Hi edmazing
Welcome to the forum.
I take it you want to create a bootable ISO. This deals with making an ISO that
can boot multiple versions of Tinycore, but should provide sufficient information
for creating your own ISO:
https://forum.tinycorelinux.net/index.php/topic,27848.msg180072.html#msg180072
edmazing:
Thanks for the warm welcome.
That does indeed create an ISO nicely.
I'm just not sure how to create core.gz and vmlinuz with the required P9 support. I can get a bzimage and vmlinux file. If I take the current kernel source and compile it.
Make isoimage in the kernel source doesn't seem to produce a file that works as expected. I think it'd be because my host is ubuntu.
Sorry if compiling from source has been asked before.
Juanito:
You would perhaps be better off compiling the kernel natively on tinycore.
Core is comprised of rootfs.gz, modules.gz and vmlinuz (core.gz = rootfs.gz + modules.gz)
CorePure64 is comprised of rootfs64.gz, modules64.gz and vmlinuz64 (corepure64.gz = rootfs64.gz + modules64.gz)
You don't need to touch rootfs.gz/rootfs64.gz
You can replace vmlinuz/vmlinuz64 with the bzImage you compiled
You would probably need to replace the contents of modules.gz/modules64.gz with the modules you compiled
Rich:
Hi edmazing
If you want to compile natively on Tinycore, you need to install compiletc.tcz.
Navigation
[0] Message Index
[#] Next page
Go to full version