From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org)
	by nuthatch.gentoo.org with esmtp (Exim 4.54)
	id 1FOCvU-0008P1-BU
	for garchives@archives.gentoo.org; Tue, 28 Mar 2006 12:03:56 +0000
Received: from robin.gentoo.org (localhost [127.0.0.1])
	by robin.gentoo.org (8.13.6/8.13.5) with SMTP id k2SC3UD8010575;
	Tue, 28 Mar 2006 12:03:30 GMT
Received: from skinny.southernlinux.net (ns2.rednecks.net [64.192.52.5])
	by robin.gentoo.org (8.13.6/8.13.5) with ESMTP id k2SC3Srh028485
	for <gentoo-embedded@lists.gentoo.org>; Tue, 28 Mar 2006 12:03:29 GMT
Received: (qmail 13805 invoked by uid 210); 28 Mar 2006 07:02:08 -0500
Received: from 10.99.99.199 by skinny (envelope-from <solar@gentoo.org>, uid 201) with qmail-scanner-1.25st 
 (clamdscan: 0.88/1358. f-prot: 4.4.2/3.14.11. spamassassin: 3.1.0. perlscan: 1.25st.  
 Clear:RC:1(10.99.99.199):. 
 Processed in 0.064646 secs); 28 Mar 2006 12:02:08 -0000
Received: from unknown (HELO ?10.99.99.199?) (10.99.99.199)
  by 0 with SMTP; 28 Mar 2006 07:02:08 -0500
Subject: Re: [gentoo-embedded] Bootloader for Embedded System
From: Ned Ludd <solar@gentoo.org>
To: gentoo-embedded@lists.gentoo.org
In-Reply-To: <442903E6.8000709@sit.fraunhofer.de>
References: <442903E6.8000709@sit.fraunhofer.de>
Content-Type: text/plain; charset=ISO-8859-1
Organization: Gentoo Linux
Date: Tue, 28 Mar 2006 07:03:25 -0500
Message-Id: <1143547405.28311.15.camel@localhost>
Precedence: bulk
List-Post: <mailto:gentoo-embedded@lists.gentoo.org>
List-Help: <mailto:gentoo-embedded+help@gentoo.org>
List-Unsubscribe: <mailto:gentoo-embedded+unsubscribe@gentoo.org>
List-Subscribe: <mailto:gentoo-embedded+subscribe@gentoo.org>
List-Id: Gentoo Linux mail <gentoo-embedded.gentoo.org>
X-BeenThere: gentoo-embedded@gentoo.org
Reply-to: gentoo-embedded@lists.gentoo.org
Mime-Version: 1.0
X-Mailer: Evolution 2.4.2.1 
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by robin.gentoo.org id k2SC3UDt010575
X-Archives-Salt: a3f61470-b4a4-496b-9c8f-21cc98f5ea9d
X-Archives-Hash: d1a7ca4278079901bc973aa7412dffe9

I always used lilo for this task. I found grub to be way to problematic=20
and BIG. On x86 I'd chroot into the CF and run lilo. It can be tricky=20
and a tad confusing at times till you make that mental map of where the=20
devices live. Note be careful or you could end up killing the wrong=20
boot sector or device.

My CF was my /dev/sdb but CF is IDE so I needed a conf like this.
http://dev.gentoo.org/~solar/embedded/local/local/customize/etc/lilo.conf

The kernel got installed to sdb1->hda1 and sdb2->hda2 was used as the=20
ROOT file system.

I also used these two scripts to speed up the task.

(Format the CF)
http://dev.gentoo.org/~solar/embedded/fdisk_cf_flash

(Copy the FS to flash and run the bootloader)
http://dev.gentoo.org/~solar/embedded/flash_cf_disk

.. good luck.



On Tue, 2006-03-28 at 11:37 +0200, Lutz Sch=F6nemann wrote:
> Hi,
> I'm trying to get Linux running on a x86 embedded-system (Panel PC=20
> "Atlas"). The os should be loaded from a CF-Card (CF-Card reader is=20
> onboard and bootable). My current problem with it is that I don't know=20
> how to get a bootloader installed on a CF-Card.
> I have a Gentoo-Box (Toshiba Laptop) compiled for i386. The CF-Card is=20
> connected via USB. When ever I install a bootloader on the CF-Card a=20
> Dell laptop is able to boot from it but the embedded system doesn't do=20
> it. It seems to be the problem that the two BIOS differ to much from=20
> each other.
> How can I install a bootloader that works on other hardware (with=20
> different BIOS)?
>=20
> Someone told me to build a very small kernel and put that into the=20
> master boot record (must be smaller than 446 bytes). How can I do this?=
=20
> I have deactivated nearly all features, compiled everything as module=20
> that could be build as module but the kernel size is 627k !?!
>=20
> For more information on the hardware:
> http://www.kws-computer.de/ppcatlas.html
>=20
> there is a link to the data sheet (Datenblatt)
>=20
> Thanks for help
>=20
> --=20
> Lutz Sch=F6nemann
>=20
> Addr:	Fraunhofer Institut f=FCr Sichere Informations Technologie SIT
> 	Rheinstrasse 75, 64295 Darmstadt, Germany
> WWW:	http://www.sit.fraunhofer.de
>=20
> Zertifizierungen in der FhG: http://pki.fraunhofer.de
--=20
Ned Ludd <solar@gentoo.org>
Gentoo Linux

--=20
gentoo-embedded@gentoo.org mailing list