Create Amakha Live Cd

From Amakha

Jump to: navigation, search

there are two way to have an amakha live cd iso image:


first using isolinux

  • script is located in tools directory
cat ~/amakha/trunk/tools/scripts/create-iso.sh 
#!/bin/bash
#if [ "x$OEROOT"  = "x" ]; then
#    echo "Please run . ./tool/scripts/set-environment.sh from your amakha-root directory"
#    return 1;
#fi
ISOFS_DIR=$OEROOT/iso
IMAGES_DIR=$OEROOT/build/tmp/deploy/images/atom/
mkdir -p $ISOFS_DIR
cp /usr/lib/syslinux/isolinux.bin $ISOFS_DIR
cp $OEROOT/tools/scripts/stuff/isolinux.cfg $ISOFS_DIR
mkdir -p $ISOFS_DIR/boot
cp -L $IMAGES_DIR/bzImage-atom.bin $ISOFS_DIR/boot/vmlinuz && \
cp -L $IMAGES_DIR/image-atom.ext3 $ISOFS_DIR/boot/initrd.gz
cd iso 
mkisofs -o bootable-iso.iso \
       -b isolinux.bin -c boot.cat \
       -no-emul-boot -boot-load-size 4 -boot-info-table \
       $ISOFS_DIR

second using supergrub

  • necessary tools:
download supergrub from here
ready compiled amakha-image-glibc-ipk-.dev-snapshot-20090916-atom.rootfs.ext3 and bzImage-2.6.30-r1-atom.bin


  • preparing iso image
mkdir iso
mkdir iso/boot
mkdir iso/boot/grub
#extract supergrub and take necessary file
tar xvzf super_grub_disk_italiano_usb_0.9795.tar.gz 
cp boot/grub/stage2_eltorito iso/boot/grub
#take amakha files
cp amakha/atom/amakha-image-glibc-ipk-.dev-snapshot-20090916-atom.rootfs.ext3 iso/boot/initrd
cp amakha/atom/bzImage-2.6.30-r1-atom.bin iso/boot/kernel
#configure grub
echo "
default 0
timeout 5
title=amakha live 
root (cd)
kernel (cd)/boot/kernel
initrd (cd)/boot/initrd 
" > iso/boot/grub/menu.lst
  • Create iso image using iso/ directory ad source
mkisofs -R -b iso/boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 4 -boot-info-table -iso-level 4 -hide boot.catalog -o amakha.iso iso/
  • Test with qemu
qemu -cdrom amakha.iso -boot d -m 256


  • notes
livecd load all ext3 amakha filesystem in ram, you nead at least 200 mb ram to boot.
at boot time loading is slowly because before launch linuxrc script must be loaded in ram.
we should modify linuxrc script and create a new little initrd. 
At boot time linuxrc script  will mount the full-ext3-amakha-fs and exec chroot into it.
Personal tools