[Soekris] Fedora C4 Grub Woes

David Rodgers david at davidrodgers.com
Thu Jul 7 19:50:53 UTC 2005


I get a slackware installation down to about 112MB before any manual  
stripping ...
granted that is without developer tools and whatnot but still all the  
command line network stuff

David



On Jul 7, 2005, at 2:29 PM, Robert Brady wrote:

> Thanks a lot, David.
>
> I had no idea this type of tool existed.  It should save the copy and
> doesn't require an IDE-CF adapter or setting up 3-4 deamons for PXE
> boot.
>
> I'm going to try it since it should only take about an hour or so. The
> minimal FC3/4 install is on the order of 600MB before I can trim it
> down, which exceed the 512MB card I have.  I'll look into slackware to
> save me from buying a 1GB card.
>
> I'll report results here so others can learn.
>
> On 7/7/05, David Rodgers <david.rodgers at kdsi.net> wrote:
>
>> I use a piece of software called qemu to build my flash cards for use
>> in soekris devices.
>> http://fabrice.bellard.free.fr/qemu/
>>
>> just install the software (it's a PC empulator) then pug your CF card
>> into a usb reader and specify
>>
>> the usb flash device as your primary hard disk. If you are running
>> linux on your workstation just like so
>>
>> qemu -hda /dev/sda -cdrom /dev/hdc -boot d
>>
>> that will boot a new machine using your usb flash reader as /dev/hda
>> and specifies the cdrom drive that you are installing
>> from on /dev/hdc
>>
>> This lets you do the entire installation right to the flash card with
>> no copying later.
>>
>> Also ... I use slackware for my soekris boxen. I find that it's a lot
>> more simple to install and maintain than something like fedora.
>> It's also as stable as they come.
>>
>> All you have to do before you pull it out and pop it into the soekris
>> is set lilo and whatever getty you use to point to the serial port as
>> the console.
>>
>>
>>
>> On Jul 7, 2005, at 1:07 PM, Robert Brady wrote:
>>
>>
>>> Thanks for the advice Thomas.
>>>
>>> I didn't build a vanilla kernel for this FC4.  I thought I'd be able
>>> to at least boot to a root prompt.  I'll try FC3 and build my own
>>> kernel for the next try.
>>>
>>> I like this approach of build, install, test on single laptop, then
>>> copy to flash card in attached reader.  I don't need three different
>>> network servers (dhcp, tftp, nfs) or to crack my laptop case to  
>>> plugin
>>> an IDE-CF adapter.
>>>
>>> Cheers...Bob
>>>
>>>
>>>
>>> On 7/7/05, Thomas Börnert <tb at tbits.net> wrote:
>>>
>>>
>>>> FC4 is very buggy, i had a lot of problems the last days.
>>>> please try FC3, build your own vanilla kernel.
>>>>
>>>> -Thomas
>>>>
>>>> On Thu, 2005-07-07 at 13:42 -0400, Robert Brady wrote:
>>>>
>>>>
>>>>> I am having difficulty booting a Fedora Core 4 from a 512MB  
>>>>> flash on
>>>>> the net4501.  I am able to go from the comBios to grub, but  
>>>>> after I
>>>>> enter the root, kernel, and initrd lines into grub, I get
>>>>> "Post0123456789abcde..." and then dumped right back into the  
>>>>> comBios
>>>>> again.  No error messages are returned.  It will cycle from
>>>>> comBios to
>>>>> grub and then back to comBios.
>>>>>
>>>>> I installed Fedora Core 4 following a procedure similar to that
>>>>> given at:
>>>>> http://www.xs4all.nl/~vhouten/Soekris.html
>>>>>
>>>>> However, my install was done on another partition of my laptop's
>>>>> primary hda, then tested out to be sure it worked ok with ro root
>>>>> and
>>>>> tmpfs /var.  It booted and worked fine.  I then changed the /etc/
>>>>> fstab
>>>>> for a /dev/hda1 root and altered /etc/inittab for only a serial
>>>>> terminal, as in the above link.  The I ported to the flash card as
>>>>> follows:
>>>>>
>>>>> 1) fdisk my 512MB flash on /dev/sda of laptop, made 1 bootable  
>>>>> linux
>>>>> 83 partition
>>>>> 2) mkfs.ext2 /dev/sda1
>>>>> 3) mount -t ext2 /dev/sda1 /mnt/cf
>>>>> 4) mount -t ext2 /dev/hda4 /mnt/miniFC4 (partition of the mini
>>>>> Fedora C4 root)
>>>>> 5) cd /mnt/miniFC4; cp -a * /mnt/cf (copy everything over to  
>>>>> flash)
>>>>> 6) add "(hd1) /dev/sda" to /boot/grub/device.map so grub finds
>>>>> flash card
>>>>> 7) grub-install --root-directory=/mnt/cf /dev/sda
>>>>> 8) grub; grub> root (hd1,0); grub> setup (hd1);  succeeded on
>>>>> flash card
>>>>> 9) put flash card into net4501, power up, after comBIOS, I do
>>>>> this in
>>>>> minicom of laptop
>>>>>
>>>>> grub> root (hd0,0)
>>>>>  Filesystem type is ext2fs, partition type 0x83
>>>>>
>>>>> grub> kernel /boot/vmlinuz root=LABEL=/ console=ttyS0,9600n81
>>>>>    [Linux-bzImage, setup=0x1e00, size=0x18e473]
>>>>>
>>>>> grub> initrd /boot/initrd.img
>>>>>    [Linux-initrd @ 0x3edb000, 0x114c03 bytes]
>>>>>
>>>>> grub> boot
>>>>>
>>>>> It looks like the net4501 is finding my root, kernel, and init
>>>>> images.
>>>>>  I just don't understand why after the boot command that it  
>>>>> drops me
>>>>> back to the comBios.  There are no error messages after "boot",
>>>>> just a
>>>>> line print out of "Post01234..." and them comBios reads cycles
>>>>> through
>>>>> its memory counter.
>>>>>
>>>>> Any advice appreciated.  Anybody solve this type of problem  
>>>>> before?
>>>>> The Fedora C4 I have is about 360MB, read-only root, writes to
>>>>> tmpfs,
>>>>> works great on the laptop.
>>>>> _______________________________________________
>>>>> Soekris-tech mailing list
>>>>> Soekris-tech at lists.soekris.com
>>>>> http://lists.soekris.com/mailman/listinfo/soekris-tech
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>>
>>> _______________________________________________
>>> Soekris-tech mailing list
>>> Soekris-tech at lists.soekris.com
>>> http://lists.soekris.com/mailman/listinfo/soekris-tech
>>>
>>>
>>>
>>
>>
>>
> _______________________________________________
> Soekris-tech mailing list
> Soekris-tech at lists.soekris.com
> http://lists.soekris.com/mailman/listinfo/soekris-tech
>
>




More information about the Soekris-tech mailing list