Results 1 to 6 of 6
Hi all,
I am having my academic project in Linux Kernel.
I have some doubts in that,
How to add or bind packages to kernel ?
And then how to ...
- 01-11-2011 #1Just Joined!
- Join Date
- Dec 2010
- Posts
- 44
Custumized LINUX OS
Hi all,
I am having my academic project in Linux Kernel.
I have some doubts in that,
How to add or bind packages to kernel ?
And then how to make it bootable ?
i.e. How to create customized linux.iso (Image) file ?
I will be thankful for help.
Regards,
Taousif Ansari
- 01-11-2011 #2
Are you looking for LFS Project Homepage ?
- Lakshmipathi.G
-------------------
FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
-------------------
- 01-11-2011 #3Just Joined!
- Join Date
- Dec 2010
- Posts
- 44
No, that I know. Actually I want to make a live CD Linux OS, so what should I do after getting the kernel .
Thanks for reply.
- 01-11-2011 #4
You need to have rootfs so that kernel can boot. May be checkout Tiny Core Linux, Micro Core Linux, 10MB Linux GUI Desktop, Live, Frugal, Extendable or busybox or my own linux minili.iso
-----------------------------
Some hints :
==========
mount minili iso image to explore more:
cd wrking
To extract the root fs;
zcat /path/to/minili.gz | sudo cpio -i -H newc -d
After editing files in wrking directory-to recreate rootfs:
find | sudo cpio -o -H newc | gzip -2 > ../minili.gz
and come back "parent" directory of isolinux
and to creat .iso file, run :
mkisofs -J -R -o out.iso -b isolinux/isolinux.bin -c isolinux/boot.cat
-no-emul-boot -boot-load-size 4 -boot-info-table .
Burn the image to cd/dvd and reboot
------------------------------ Lakshmipathi.G
-------------------
FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
-------------------
- 01-11-2011 #5Just Joined!
- Join Date
- Dec 2010
- Posts
- 44
Thank you very much for the information,
Could you please suggest me some references for the same...
THank u...
- 01-11-2011 #6
Checkout Building Embedded Linux Systems" - Karim Yaghmour" for build rootfs
I would suggest you to have look into
wiki.tinycorelinux.com/tiki-index.php?page=Remastering
Gentoo Linux Documentation -- Gentoo Linux LiveUSB HOWTO
above link will tell you how to create usb from iso image.
few notes from minili -
minili notes --
mounted a partition /dev/sda2 under /media/rootfs
and mounted LFS linux into /lfs
---------------------------------------
mkdir /media/rootfs
lg@debian:/media/rootfs$ mkdir -v bin dev etc lib proc sbin tmp usr var
lg@debian:/media/rootfs$ chmod -v 1777 tmp
lg@debian:/media/rootfs$ mkdir -v usr/lib usr/bin usr/sbin
lg@debian:/media/rootfs$ mkdir -v var/lib var/lock var/log var/run var/tmp
lg@debian:/media/rootfs$ chmod 1777 var/tmp
Now copy lib from lfs
------------------------
move to lfs lib files
cd /lfs/lib
for file in libc libcrypt libdl libm libpthread libresolv libutil
do
cp $file-*.so /media/rootfs/lib
cp -d $file.so.[*0-9] /media/rootfs/lib
done
cp -d ld*.so* /media/roofs/lib
*If you need,copy complete set of library utilities
copy kernel modules files:
---------------------
lg@debian:/lfs/lib$ cp -a modules/ /media/rootfs/lib/
copy kernel images:
---------------------
lg@debian:/lfs/lib$ mkdir /media/rootfs/boot
lg@debian:/lfs/boot$ cp /lfs/boot/lfskernel-2.6.27.4 /media/rootfs/boot/
device files
--------
lg@debian:/lfs/boot$ cd /media/rootfs/dev/
debian:/media/rootfs/dev# mknod -m 600 mem c 1 1
debian:/media/rootfs/dev# mknod -m 666 null c 1 3
debian:/media/rootfs/dev# mknod -m 666 zero c 1 5
debian:/media/rootfs/dev# mknod -m 644 random c 1 8
mknod -m 600 tty0 c 4 0
mknod -m 600 tty1 c 4 1
mknod -m 600 ttyS0 c 4 64
mknod -m 666 tty c 5 0
mknod -m 600 console c 5 1
Install main sys appliacation
------------------
debian:~/busybox-1.14.1# make defconfig
debian:~/busybox-1.14.1# make CONFIG_PREFIX=/media/rootfs all install
Now change to new system:
debian:/# SHELL=/bin/ash chroot /media/rootfs/
--------
try setting up inittab
::sysinit:/etc/init.d/rcS
::respawn:/sbin/getty 115200 ttyS0
::restart:/sbin/init
::shutdown:/bin/umount -a -r
cat etc/fstab
/dev/sda2 / ext3 errors=remount-ro 0 1
move passwd files
debian:/media/rootfs/etc# cp /lfs/etc/passwd /media/rootfs/etc/
debian:/media/rootfs/etc# cp /lfs/etc/group /media/rootfs/etc/
debian:/media/rootfs/etc# cp /lfs/etc/shadow /media/rootfs/etc
since passwd has entries like /root and /bin/bash ..so create /root and edit passwd as /bin/ash
-----------
688K /media/rootfs/bin
3.5M /media/rootfs/boot
4.0K /media/rootfs/dev
32K /media/rootfs/etc
9.5M /media/rootfs/lib
0 /media/rootfs/linuxrc
4.0K /media/rootfs/proc
4.0K /media/rootfs/root
4.0K /media/rootfs/sbin
4.0K /media/rootfs/tmp
16K /media/rootfs/usr
24K /media/rootfs/var
------------+++++++
\h:\w\$ du -h
4.0K ./tmp
4.0K ./dev
4.0K ./sbin
4.0K ./proc
8.0K ./etc/init.d
32.0K ./etc
4.0K ./var/tmp
4.0K ./var/lock
4.0K ./var/log
4.0K ./var/lib
4.0K ./var/run
24.0K ./var
688.0K ./bin
4.0K ./usr/sbin
4.0K ./usr/bin
4.0K ./usr/lib
16.0K ./usr
8.0K ./root
8.0K ./lib/modules/2.6.27.4/kernel/drivers/scsi
12.0K ./lib/modules/2.6.27.4/kernel/drivers
8.0K ./lib/modules/2.6.27.4/kernel/arch/x86/kernel
12.0K ./lib/modules/2.6.27.4/kernel/arch/x86
16.0K ./lib/modules/2.6.27.4/kernel/arch
32.0K ./lib/modules/2.6.27.4/kernel
84.0K ./lib/modules/2.6.27.4
88.0K ./lib/modules
9.5M ./lib
3.5M ./boot
13.7M .
+++++++++- Lakshmipathi.G
-------------------
FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
-------------------


Reply With Quote
