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 1FQ1h3-0005wm-3W for garchives@archives.gentoo.org; Sun, 02 Apr 2006 12:28:33 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.6/8.13.5) with SMTP id k32CSJt6028197; Sun, 2 Apr 2006 12:28:19 GMT Received: from uproxy.gmail.com (uproxy.gmail.com [66.249.92.193]) by robin.gentoo.org (8.13.6/8.13.5) with ESMTP id k32CSIU7003208 for ; Sun, 2 Apr 2006 12:28:18 GMT Received: by uproxy.gmail.com with SMTP id s2so452778uge for ; Sun, 02 Apr 2006 05:28:18 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=FodlcvD014IE33An8M5gSBnzyxdGAlQoIyCUiJz9feFFoXvE3AjSTDMjC1fsXpAq4Nnd2Uh/pFyjL6Gc9SXLnIOcIr2Stb71YgvqbfX6FWWgKYsDgxmmCZ1bMyJOrZ8r6fNId0b3famNEQPPESe7nGH2BHn0DWWg8krFu/c97QA= Received: by 10.78.52.17 with SMTP id z17mr81834huz; Sun, 02 Apr 2006 05:28:16 -0700 (PDT) Received: by 10.78.12.17 with HTTP; Sun, 2 Apr 2006 05:28:16 -0700 (PDT) Message-ID: <1943d0f10604020528v7b09de19n@mail.gmail.com> Date: Sun, 2 Apr 2006 14:28:16 +0200 From: "=?ISO-8859-1?Q?Sergi_Casta=F1o_Elias?=" To: gentoo-embedded@lists.gentoo.org Subject: Re: [gentoo-embedded] Bootloader for Embedded System In-Reply-To: <442A6C74.4050207@sit.fraunhofer.de> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-embedded@gentoo.org Reply-to: gentoo-embedded@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline References: <442903E6.8000709@sit.fraunhofer.de> <1143547405.28311.15.camel@localhost> <442A6C74.4050207@sit.fraunhofer.de> X-MIME-Autoconverted: from quoted-printable to 8bit by robin.gentoo.org id k32CSIU7003208 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by robin.gentoo.org id k32CSJtq028197 X-Archives-Salt: 0c3c9ded-a370-4202-98f7-3408668e2c8c X-Archives-Hash: c7b1ae9ca77b145bc7b0daf382d4e339 Hi, 2006/3/29, Lutz Sch=F6nemann : > Okay, now Lilo loads the first stage and returns the error-code 99. The > man-page contains a paragraph containing the error codes: > 99 invalid second stage index sector > and a detailed description: > "... Errors 99 and 9A usually mean the map file (-m or map=3D) is not > readable, likely because LILO was not re-run after some system change, > or there is a geometry mis-match between what LILO used (lilo -v3 to > display) and what is actually being used by the BIOS (one of the lilo > diagnostic disks, available in the source distribution, may be needed t= o > diagnose this problem). ..." > > But how can I get the right device-map needed for my embedded system? I > tried to create a CF card with the diagnostic disks data (writing on CF > instead of wirting to /dev/sd0) but the system doesn't even boot with > this CF-Card. > > Lutz > > Ned Ludd wrote: > > I always used lilo for this task. I found grub to be way to problemat= ic > > and BIG. On x86 I'd chroot into the CF and run lilo. It can be tricky > > and a tad confusing at times till you make that mental map of where t= he > > devices live. Note be careful or you could end up killing the wrong > > 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 > > 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 > >>"Atlas"). The os should be loaded from a CF-Card (CF-Card reader is > >>onboard and bootable). My current problem with it is that I don't kno= w > >>how to get a bootloader installed on a CF-Card. > >>I have a Gentoo-Box (Toshiba Laptop) compiled for i386. The CF-Card i= s > >>connected via USB. When ever I install a bootloader on the CF-Card a > >>Dell laptop is able to boot from it but the embedded system doesn't d= o > >>it. It seems to be the problem that the two BIOS differ to much from > >>each other. > >>How can I install a bootloader that works on other hardware (with > >>different BIOS)? > >> > >>Someone told me to build a very small kernel and put that into the > >>master boot record (must be smaller than 446 bytes). How can I do thi= s? > >>I have deactivated nearly all features, compiled everything as module > >>that could be build as module but the kernel size is 627k !?! > >> > >>For more information on the hardware: > >>http://www.kws-computer.de/ppcatlas.html > >> > >>there is a link to the data sheet (Datenblatt) > >> > >>Thanks for help > >> > >>-- > >>Lutz Sch=F6nemann > >> > >>Addr: Fraunhofer Institut f=FCr Sichere Informations Technologie SIT > >> Rheinstrasse 75, 64295 Darmstadt, Germany > >>WWW: http://www.sit.fraunhofer.de > >> > >>Zertifizierungen in der FhG: http://pki.fraunhofer.de > > > -- > Lutz Sch=F6nemann > > Addr: Fraunhofer Institut f=FCr Sichere Informations Technologie SIT > Rheinstrasse 75, 64295 Darmstadt, Germany > WWW: http://www.sit.fraunhofer.de > > Zertifizierungen in der FhG: http://pki.fraunhofer.de > -- > gentoo-embedded@gentoo.org mailing list > > I would install or run lilo (or any other bootloader) from the embedded system directly. I mean, connect only one ide cd reader put CF in the ide reader at embedded mainboard. No other device to damage its boot. Then boot from an any live distro or a gentoo install boot cd itself and chroot to embedded system. Then, re-run lilo or install grub or any other boot manager. Sorry my bad english. --=20 gentoo-embedded@gentoo.org mailing list