[Soekris] Installing Pyramid on a Net4826
Ken
ken at ipl31.net
Thu Sep 7 19:07:34 UTC 2006
On 9/7/06, Frederico Marques <frederico at marques.cx> wrote:
> Hi Mark,
>
> Check if you have this file:
>
> /mnt/sbin/grub-setup.sh
>
> chroot /mnt ; /sbin/grub-setup.sh
This is only b2 not b1 but as mentioned there is a bug in the grub
script where it attempts to setup hd0,0 instead of hd0.
You can see the fix between these two revisions:
http://pyramid.metrix.net/trac/browser/Pyramid/dist/lib/grub/i386-pc/grub-script?rev=43
http://pyramid.metrix.net/trac/browser/Pyramid/dist/lib/grub/i386-pc/grub-script?rev=44
-Ken
>
> In case you don't have it:
>
> pyramid:/sbin# cat grub-setup.sh
> #This is a script to setup grub during PXE boot of Soekris 4XXX device
> #It creates some required devices for the initial boot and installs grub
> cd /dev
> mknod console c 5 1
> mknod tty0 c 4 0
> mknod hda b 3 0
> mknod hda1 b 3 1
> cat /boot/grub/grub-script | /sbin/grub
>
> Hope it works for you,
>
> --fred
>
> --On September 7, 2006 9:30:25 AM -0500 Mark Nichols
> <mnichols at spanalytics.com> wrote:
>
> > Yes, I know of the site (and a few others) which got me to this point;
> > which took a while as I am not a whiz with embedded Linux, or Linux in
> > general.
> >
> > Thanks,
> >
> > Mark
> >
> > On Thu Sep 7 8:25 , "Vacio" sent:
> >
> >>
> >>
> >>
> >>
> >>
> >> In case you haven't seen
> >> this, the metrix site has a pretty good discussion on installing pyramid
> >> and OS sourcedownloads that have been tested on 4826s.
> >>
> >> http://pyramid.metrix.net/trac/
> >>
> >> Good
> >> luck,
> >>
> >> /Rob
> >>
> >>
> >>
> >> -----Original Message-----
> >> From:
> >> soekris-tech-bounces at lists.soekris.com
> >> [mailto:soekris-tech-bounces at lists.soekris.com]On Behalf Of Mark
> >> Nichols
> >> Sent: Thursday, September 07, 2006 6:49 AM
> >> To:
> >> soekris-tech at lists.soekris.com
> >> Subject: Re: [Soekris] Installing
> >> Pyramid on a Net4826
> >>
> >>
> >> Derrik & Ron,
> >> Thanks for the responses--they are on target with what I was asking,
> >> but:
> >> I chroot to /mnt. Then: sh_3.00#:grub_install '(hd0)'
> >> I get back:
> >> sh_3.00#:tempnam: No such file or directory
> >> sh_3.00#:/sbin/grub_install: line 386: $log_file: ambiguous redirect
> >> And I have to CTRL-C to get the prompt back. So, is grub-install
> >> looking for a particular file (say in the /boot or /boot/grub
> >> directory), or a partition, which maybe I don't have?
> >> Thanks again,
> >>
> >> Mark Nichols
> >> Signal Processing Analytics
> >> (804)
> >> 364-1050
> >> www.spanalytics.com
> >>
> >> On Thu Sep 7 6:32 , Derrik Pates
> >> sent:
> >>
> >>
> >> Mark
> >> Nichols wrote:
> >>> I am trying to install
> >> Pebble/Pyramid onto the boards. I have tftp,
> >>> dhcp, and httpd running on a host PC. I can wget
> >> the .tar or .img file
> >>> after
> >> PXELINUX booting. I fdisk /dev/hda, then mkfs.ext2 and mount
> >>> /dev/hda1 to /mnt. I wget the tarball to /mnt,
> >> and untar. What's
> >>> next? If I
> >> reboot at this point, the board hangs unless I go to console
> >>> mode (CTRL-P). I'm missing something (probably
> >> simple) on getting the
> >>> board to
> >> see grub and boot from the flash.
> >>
> >> The BIOS doesn't know
> >> anything about partitions or filesystems, so you
> >> have to install the GRUB
> >> first-stage loader to the MBR of your disk/CF
> >> card. Probably your best
> >> bet is to chroot into the newly-created root
> >> filesystem after extracting
> >> the tarball, and run "grub-install '(hd0)'".
> >> Upon reboot, you should then
> >> be launched into GRUB; if there's a
> >> menu.lst file in /boot/grub, it will
> >> load that and present you with a
> >> menu as usual.
> >>
> >> --
> >> Derrik
> >> Pates
> >> javascript:top.opencompose('demon at devrandom.net','','','')
> >>
> >>
> >
> >
> > _______________________________________________
> > 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
>
--
Ken Caruso
ken at ipl31.net
More information about the Soekris-tech
mailing list