Based on Mitch Galgs instructions on how to build a Linux kernel for qemu, ive made a bash script that will build a linux kernel and busybox ready to go under Qemu or real hardware.
https://gitlab.com/CodeAsm/teeny-linux
My goals in non particular order are:
Most of my research and/or playing is done on a x86_64 Arch Linux system, I asume the reader is skilled enough to translate any commands or hints to their own system or reading other resources to accomplish their own goals.This is never ment for production or replacing LFS for example.
I do not recommend this documentation or scripts as a teaching tool or seen as fact. this is just me playing arround.You can however learn from it, or teach how not to do things.user root, password root
run the buildscript :D go to the main project site for more details and howto:https://github.com/CodeAsm/teeny-linux
select arch support comming this feature is being worked on. I want 1 scritp to do all,altho I might consider building the crosstools externaly. so you might need to run that first.
A temporarely ARM target inside crosstools is in the work. requires arm-none-eabi- set of build tools as well as afake init static compiled
The following resources where used making this project or helped solve problems. “Attribution” as per stackoverflow. as some code might have evolved away from the “answers”, I choose to put the links here under headings of general meaning. The link titles are describtive enough.
Some people dislike bash, and set their default shell to something else then bash. This leads to incompatibilities between “scripts” and thus require minor and sometimes mayor code changes to support these different shells.I cannot test them all, but I try to make them compatible. for now, bash is the default.I might consider zsh.
For teenylinux ive swapped to (d)ash (sh like) and this also required profile change:
Resolved a init kernel problem:https://stackoverflow.com/questions/15277570/simple-replacement-of-init-to-just-start-console
timing: