LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Booting from compact flash (https://www.linuxquestions.org/questions/linux-hardware-18/booting-from-compact-flash-478156/)

bangoram 08-28-2006 01:22 PM

Booting from compact flash
 
I am trying to boot linux from a compact flash card which is connected to my Single board computer(SBC).I have created the initrd image using PXES and also I have a compressed root file system the filesystem of the flash is FAT.One thing I am unable to understand is how to install grub on this cf card to boot my OS or whether I have to build grub in linux and copy the same to this card??can any body help me please.

stress_junkie 08-28-2006 02:43 PM

There are CF Card reader/writers that have an IDE disk interface. This makes it easy to do exactly what you are doing.

Here is an example. There are other sources. I just couldn't find them in the few minutes that I spent.

http://www.cfide.co.uk/compact_flash_ide_adapters.shtml

This page at gentoo.org may be helpful. It describes how to make a bootable USB image for Gentoo but the ideas may be helpful to you. It talks about using syslinux to create a boot record. That by itself may be exactly what you were asking about.

http://www.gentoo.org/doc/en/liveusb.xml

bangoram 08-29-2006 08:17 AM

Thanks for your reply!

I have gone through few threads for booting linux from compact flash.As per the information that I have collected I came to know that I need an initrd,Kernel,rootfs and a boot loader. I have initrd (created using PXES druid),kernel and I have a compressed rootfs.But I got struck when I want boot this using grub. I don't know how to install grub on this flash.I have formatted the CF as FAT and copied the initrd linux,kernel,rootfs images in flash.But how to install grub.How to boot these kernel or from the flash if there is any other options???

edman007 08-29-2006 08:48 AM

i don't think you can use grub, DSL at least uses syslinux

bangoram 08-29-2006 09:41 AM

Fine! how to get this boot loader to work for me.Is there any steps how to install this syslinux in to my CF??

edman007 08-29-2006 09:48 AM

read the FAQ, if its not already included in your distro you can get it here


All times are GMT -5. The time now is 11:26 PM.