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 1FRAsw-0007Kq-Vg for garchives@archives.gentoo.org; Wed, 05 Apr 2006 16:29:35 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.6/8.13.5) with SMTP id k35GT51L016542; Wed, 5 Apr 2006 16:29:05 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30]) by robin.gentoo.org (8.13.6/8.13.5) with ESMTP id k35GT4jB000442 for ; Wed, 5 Apr 2006 16:29:04 GMT Received: from [62.147.153.16] (helo=[62.147.153.16]) by smtp.gentoo.org with esmtpa (Exim 4.54) id 1FRAsS-0005xO-4j for gentoo-embedded@lists.gentoo.org; Wed, 05 Apr 2006 16:29:04 +0000 Message-ID: <4433F042.6010206@gentoo.org> Date: Wed, 05 Apr 2006 18:28:50 +0200 From: Thierry Carrez Organization: Gentoo Linux User-Agent: Mozilla Thunderbird 1.0.7 (X11/20060206) X-Accept-Language: en-us, en 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 To: gentoo-embedded@lists.gentoo.org Subject: Re: [gentoo-embedded] the newbie and the WRAP References: <20060405021838.GT11745@uchicago.edu> <20060405033417.GU11745@uchicago.edu> In-Reply-To: <20060405033417.GU11745@uchicago.edu> X-Enigmail-Version: 0.92.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: 55c34557-2f7b-4e2d-8a6e-e96753e71a2f X-Archives-Hash: c16d4ecd1929e3b4583189ef8d87dc70 mjinks@uchicago.edu wrote: > On Tue, Apr 04, 2006 at 09:18:38PM -0500, mjinks@uchicago.edu wrote: > >>Hi all. New here, likely to ask a dumb question or two... for example: >> > > > >>>From the PC Engines (minimal) online docs, I found a suggestion that >>adding "reboot=bios" to the kernel command line might fix this, but no >>dice, and now I'm stumped. > > > Well it turns out that I might not be as stumped as I thought, but I did > ask a dumb question. > > In order to add "reboot=bios" to the kernel command line, I tried > editing the "isolinux.cfg" file under my gnap-extensions directory, like > so: > > [...] > append initrd=gentoo.igz root=/dev/ram0 init=/linuxrc acpi=off looptype=squashfs loop=/livecd.squashfs cdroot > > Remastered, wrote the results to my CF card (I thought), and rebooted. > > Well, the package extension I added (elvis) shows up on my target > machine, but /proc/cmdline doesn't include "reboot=bios". In fact it > looks quite a bit different from the append= line above: > > initrd=gentoo.igz root=/dev/ram0 init=/linuxrc acpi=off looptype=squashfs loop=/livecd.sfs cdroot=/dev/hda1 docache console=ttyS0,38400n81 BOOT_IMAGE=gentoo > > So clearly I've misunderstood something somewhere, and the question I > should have asked is: How do I find and edit the grub.conf that will > be installed on a GNAP system? When used in disk mode, GNAP uses the syslinux.cfg file (in specs/isolinux) to pass boot options. The core file includes that file. Then the gnap_overlay script takes that file from the core, rewrites it with some options, and then syslinuxes the disk. Look for : sed -i "s:cdroot:cdroot=/dev/${TARGETROOT} ${CACHE}${SERIAL}:" "${TEMPMOUNTDIR}/syslinux.cfg" in gnap_overlay So you can either add your parameter to the syslinux.cfg file in the specs and rebuild your core, hack the syslinux.cfg file from the core tarfile directly, or hack the gnap_overlay script to do your bidding. Something like sed -i "s:cdroot:reboot=bios cdroot=/dev/${TARGETROOT} ${CACHE}${SERIAL}:" "${TEMPMOUNTDIR}/syslinux.cfg" should do the trick. Hope this helps. -- Koon -- gentoo-embedded@gentoo.org mailing list