[Soekris] Installing Pyramid on a Net4826

Mark Nichols mnichols at spanalytics.com
Thu Sep 7 18:19:56 UTC 2006


Hi Fred,

Sorry if I sound like I don't know what I'm doing--I don't.  I didn't have the file you mentioned, so I created it 
with the 6 lines you listed.  I typed it at the chroot prompt, and it goes off to grub and then exits.  I also typed 
each line from the command line, and all of the mknod lines returned "file exists", and the cat line returned file 
does not exist, and I indeed do not have a /grub/grub-script file.

In any case, after doing the above, and rebooting, or doing the above, and running grub-install '(hd0)', my card 
won't boot.

Any other ideas?

Thanks,

--Mark

Mark Nichols
Signal Processing Analytics
(804) 364-1050
www.spanalytics.com

On Thu Sep  7 10:09 , Frederico Marques  sent:

>Hi Mark,
>
>Check if you have this file:
>
>/mnt/sbin/grub-setup.sh
>
>chroot /mnt ; /sbin/grub-setup.sh
>
>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  source downloads that have been tested on 4826s.
>>>  
>>> http://pyramid.metrix.net/trac/
>>>  
>>> Good
>>> luck,
>>>  
>>> /Rob
>>>  
>>>  
>>>
>>>  -----Original Message-----
>>> From:
>>>  soekris-tech-bounces at lists.soekris.com
>>>  [soekris-tech-bounces at lists.soekris.com','','','')">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




More information about the Soekris-tech mailing list