public inbox for gentoo-embedded@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-embedded] the newbie and the WRAP
@ 2006-04-05  2:18 mjinks
  2006-04-05  3:34 ` mjinks
  0 siblings, 1 reply; 6+ messages in thread
From: mjinks @ 2006-04-05  2:18 UTC (permalink / raw
  To: gentoo-embedded

Hi all.  New here, likely to ask a dumb question or two... for example:

I'm playing with GNAP on a PC Engines WRAP machine:

http://www.pcengines.ch/wrap.htm

So far everything has worked really well.  The only thing stopping us
from installing these things in router closets all over campus is that
currently rebooting doesn't work.  The system just hangs at "Restarting
system."

>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.

So, does anybody have experience with these machines, and if so have
you run into this issue?

Thanks,
-j
-- 
Michael Jinks, somewhere in NSIT, part of the University of Chicago
"If the future's not bright, it's colorful." -- Einsturzende Neubauten
-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-embedded] the newbie and the WRAP
  2006-04-05  2:18 [gentoo-embedded] the newbie and the WRAP mjinks
@ 2006-04-05  3:34 ` mjinks
  2006-04-05 16:28   ` Thierry Carrez
  0 siblings, 1 reply; 6+ messages in thread
From: mjinks @ 2006-04-05  3:34 UTC (permalink / raw
  To: gentoo-embedded

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:
> 
<snip>
> 
> 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?

(Sigh.)

Thanks for any straightening out anyone can toss my way.

-j
-- 
Michael Jinks, somewhere in NSIT, part of the University of Chicago
"If the future's not bright, it's colorful." -- Einsturzende Neubauten
-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-embedded] the newbie and the WRAP
  2006-04-05  3:34 ` mjinks
@ 2006-04-05 16:28   ` Thierry Carrez
  2006-04-07 21:02     ` mjinks
  0 siblings, 1 reply; 6+ messages in thread
From: Thierry Carrez @ 2006-04-05 16:28 UTC (permalink / raw
  To: gentoo-embedded

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:
>>
> 
> <snip>
> 
>>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



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-embedded] the newbie and the WRAP
  2006-04-05 16:28   ` Thierry Carrez
@ 2006-04-07 21:02     ` mjinks
  2006-04-08  6:44       ` Sune Kloppenborg Jeppesen
  2006-04-08 15:39       ` Thierry Carrez
  0 siblings, 2 replies; 6+ messages in thread
From: mjinks @ 2006-04-07 21:02 UTC (permalink / raw
  To: gentoo-embedded

On Wed, Apr 05, 2006 at 06:28:50PM +0200, Thierry Carrez wrote:
> mjinks@uchicago.edu wrote:
> > 
> > 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.

Hm.

Well, I edited isolinux/syslinux.cfg under my specs directory, ran
gnap_remaster, and took a look inside the resulting tarball.  The
syslinux.cfg there still didn't contain my "reboot=bios".  So apparently
I'm still doing something wrong.

Next I edited the syslinux.cfg from my tarball to add "reboot=bios",
re-tarred, and ran gnap_overlay from that.  Still no dice;
/proc/cmdline on my system still doesn't include my "reboot" option.

Then I made a modified copy of gnap_overlay per Thierry's suggestion, so
that the sed command inserts my addition, but that seems like the wrong
way to do it, as I (or whoever takes over this project once it goes
production) will have to re-edit the script every time the package is
updated.

Now I have a different problem, but that rates a new thread...

Thanks,
-mrj

-- 
Michael Jinks, somewhere in NSIT, part of the University of Chicago
"If the future's not bright, it's colorful." -- Einsturzende Neubauten
-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-embedded] the newbie and the WRAP
  2006-04-07 21:02     ` mjinks
@ 2006-04-08  6:44       ` Sune Kloppenborg Jeppesen
  2006-04-08 15:39       ` Thierry Carrez
  1 sibling, 0 replies; 6+ messages in thread
From: Sune Kloppenborg Jeppesen @ 2006-04-08  6:44 UTC (permalink / raw
  To: gentoo-embedded

[-- Attachment #1: Type: text/plain, Size: 594 bytes --]

On Friday 07 April 2006 23:02, mjinks@uchicago.edu wrote:
> On Wed, Apr 05, 2006 at 06:28:50PM +0200, Thierry Carrez wrote:
> > mjinks@uchicago.edu wrote:
> Then I made a modified copy of gnap_overlay per Thierry's suggestion, so
> that the sed command inserts my addition, but that seems like the wrong
> way to do it, as I (or whoever takes over this project once it goes
> production) will have to re-edit the script every time the package is
> updated.
Did you remember to rebuild from scratch or clean out temp files?

-- 
Sune Kloppenborg Jeppesen
Gentoo Linux Security Team

[-- Attachment #2: Type: application/pgp-signature, Size: 191 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-embedded] the newbie and the WRAP
  2006-04-07 21:02     ` mjinks
  2006-04-08  6:44       ` Sune Kloppenborg Jeppesen
@ 2006-04-08 15:39       ` Thierry Carrez
  1 sibling, 0 replies; 6+ messages in thread
From: Thierry Carrez @ 2006-04-08 15:39 UTC (permalink / raw
  To: gentoo-embedded

mjinks@uchicago.edu wrote:

> Well, I edited isolinux/syslinux.cfg under my specs directory, ran
> gnap_remaster, and took a look inside the resulting tarball.  The
> syslinux.cfg there still didn't contain my "reboot=bios".  So apparently
> I'm still doing something wrong.

Yes, gnap_remaster is not enough, you need to play with gnap_make
(gnap-dev package).

> Next I edited the syslinux.cfg from my tarball to add "reboot=bios",
> re-tarred, and ran gnap_overlay from that.  Still no dice;
> /proc/cmdline on my system still doesn't include my "reboot" option.

That should work...

-- 
Koon
-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-04-08 15:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-05  2:18 [gentoo-embedded] the newbie and the WRAP mjinks
2006-04-05  3:34 ` mjinks
2006-04-05 16:28   ` Thierry Carrez
2006-04-07 21:02     ` mjinks
2006-04-08  6:44       ` Sune Kloppenborg Jeppesen
2006-04-08 15:39       ` Thierry Carrez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox