Hi there,
first of all, great project! I followed the tutorial today and noticed a few bugs in it:
- The git clone call for the kernel contains an error
- Wrong:
git clone --depth=1 --branch v6.14.y https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
- Right:
git clone --depth=1 --branch v6.14.11 https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
- The init rc script expects ln and mkdir to be present, so these need to be included in busybox
- The first two setup paths for the cross compiler setup are missing a / after
"${BASE}":
- Wrong:
sed -i "s|.*CONFIG_CROSS_COMPILER_PREFIX.*|CONFIG_CROSS_COMPILER_PREFIX="\"${BASE}"i486-linux-musl-cross/bin/i486-linux-musl-\"|" .config
- Right:
sed -i "s|.*CONFIG_CROSS_COMPILER_PREFIX.*|CONFIG_CROSS_COMPILER_PREFIX="\"${BASE}"/i486-linux-musl-cross/bin/i486-linux-musl-\"|" .config
- Wrong:
sed -i "s|.*CONFIG_SYSROOT.*|CONFIG_SYSROOT=\""${BASE}"i486-linux-musl-cross\"|" .config
- Right:
sed -i "s|.*CONFIG_SYSROOT.*|CONFIG_SYSROOT=\""${BASE}"/i486-linux-musl-cross\"|" .config
I also added /proc file system support in the kernel menuconfig under File systems -> Pseudo file systems. Not sure if this is really necessary though.
Also, the provided floppinux image doesn't boot in qemu and gets stuck after Loading rootfs.cpio.gz...ok. The image that I built according to the tutorial (both with and without the fixed I mentioned above) boots.
Hi there,
first of all, great project! I followed the tutorial today and noticed a few bugs in it:
git clone --depth=1 --branch v6.14.y https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.gitgit clone --depth=1 --branch v6.14.11 https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"${BASE}":sed -i "s|.*CONFIG_CROSS_COMPILER_PREFIX.*|CONFIG_CROSS_COMPILER_PREFIX="\"${BASE}"i486-linux-musl-cross/bin/i486-linux-musl-\"|" .configsed -i "s|.*CONFIG_CROSS_COMPILER_PREFIX.*|CONFIG_CROSS_COMPILER_PREFIX="\"${BASE}"/i486-linux-musl-cross/bin/i486-linux-musl-\"|" .configsed -i "s|.*CONFIG_SYSROOT.*|CONFIG_SYSROOT=\""${BASE}"i486-linux-musl-cross\"|" .configsed -i "s|.*CONFIG_SYSROOT.*|CONFIG_SYSROOT=\""${BASE}"/i486-linux-musl-cross\"|" .configI also added /proc file system support in the kernel menuconfig under File systems -> Pseudo file systems. Not sure if this is really necessary though.
Also, the provided floppinux image doesn't boot in qemu and gets stuck after
Loading rootfs.cpio.gz...ok. The image that I built according to the tutorial (both with and without the fixed I mentioned above) boots.