under my research to make obarun from scratch i found this : http://minimal.linux-bg.org/.
This is very simple and very interesting approch about linux system. Make test is very easy and it's a good practice to understand a system from boot to console.
To work properly you need to install cpio and cdrkit. You need to copy /usr/lib/initcpio/bios/{isolinux.bin,ldlinux.c32} to /usr/lib/initcpio or make a symlinks.
modify the /work/kernel/linux-4.1.6/arch/x86/boot/makefile section isoimage as following
This is very simple and very interesting approch about linux system. Make test is very easy and it's a good practice to understand a system from boot to console.
To work properly you need to install cpio and cdrkit. You need to copy /usr/lib/initcpio/bios/{isolinux.bin,ldlinux.c32} to /usr/lib/initcpio or make a symlinks.
modify the /work/kernel/linux-4.1.6/arch/x86/boot/makefile section isoimage as following
isoimage: $(obj)/bzImage
-rm -rf $(obj)/isoimage
mkdir $(obj)/isoimage
for i in lib lib64 share end ; do \
if [ -f /usr/$$i/syslinux/isolinux.bin ] ; then \
cp /usr/$$i/syslinux/{isolinux.bin,ldlinux.c32} $(obj)/isoimage ; \
break ; \
fi ; \
if [ $$i = end ] ; then exit 1 ; fi ; \
done
cp $(obj)/bzImage $(obj)/isoimage/linux
echo '$(image_cmdline)' > $(obj)/isoimage/isolinux.cfg
if [ -f '$(FDINITRD)' ] ; then \
cp '$(FDINITRD)' $(obj)/isoimage/initrd.img ; \
fi
genisoimage -J -r -o $(obj)/image.iso -b isolinux.bin -c boot.cat \
-no-emul-boot -boot-load-size 4 -boot-info-table \
$(obj)/isoimage
isohybrid $(obj)/image.iso 2>/dev/null || true
rm -rf $(obj)/isoimage