Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Problems loading buildroot image to CompactFlash
@ 2007-03-21 22:09 William Somerset
  2007-03-21 22:41 ` Bernhard Fischer
  0 siblings, 1 reply; 5+ messages in thread
From: William Somerset @ 2007-03-21 22:09 UTC (permalink / raw)
  To: buildroot

Hello,

I'm having problems getting a BuildRoot Image to boot on a compactflash.  I
got grub installed on the disk but whenever I try to boot the CompactFlash,
I just get a blank screen.  I tried just dd'ing the image to the
compactflash but I get 'missing OS' whenever I boot the compactflash that
way.

Also, I tried installing the Linux Kernel from the menu and it had problems
installing.  This is from getting the copy of buildroot from svn at around
2pm CST today (March 21, 2007).  I loaded the grub prompt, changed the root
to the compact flash and got grub to install to the compactflash but I guess
without a kernel, it's kinda pointless.  Should I just make 1 partition or 2
(one for boot, one for main)?  Also, when I tried making an ISO, I got
errors from it not having some place to copy to.

Does anyone have a walkthrough or anything to help me out getting a
buildroot image to compactflash?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20070321/2b8a68c6/attachment.htm 

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

* [Buildroot] Problems loading buildroot image to CompactFlash
  2007-03-21 22:09 [Buildroot] Problems loading buildroot image to CompactFlash William Somerset
@ 2007-03-21 22:41 ` Bernhard Fischer
  2007-03-22  6:39   ` Alexander Rigbo
  0 siblings, 1 reply; 5+ messages in thread
From: Bernhard Fischer @ 2007-03-21 22:41 UTC (permalink / raw)
  To: buildroot

On Wed, Mar 21, 2007 at 05:09:35PM -0500, William Somerset wrote:
>Hello,
>
>I'm having problems getting a BuildRoot Image to boot on a compactflash.  I
>got grub installed on the disk but whenever I try to boot the CompactFlash,
>I just get a blank screen.  I tried just dd'ing the image to the
>compactflash but I get 'missing OS' whenever I boot the compactflash that
>way.
>
>Also, I tried installing the Linux Kernel from the menu and it had problems
>installing.  This is from getting the copy of buildroot from svn at around
>2pm CST today (March 21, 2007).  I loaded the grub prompt, changed the root
>to the compact flash and got grub to install to the compactflash but I guess
>without a kernel, it's kinda pointless.  Should I just make 1 partition or 2
>(one for boot, one for main)?  Also, when I tried making an ISO, I got
>errors from it not having some place to copy to.
>
>Does anyone have a walkthrough or anything to help me out getting a
>buildroot image to compactflash?

- install grub unto the CF
- mount the CF at (e.g.) /mnt/l0
- tar -C /mnt/l0 -xf /my/rootfs.$myarch.tar
- sync && umount /mnt/l0
- qemu -snapshot -hda /dev/$cf_device -boot c
- enjoy

Procedure varies depending on your target, of course. Since you're ia32
compatible the above works nicely; Alternatively you can provide a e.g.
512k disk to let grub boot from and use a jffs2 as -hdb or something
like that.

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

* [Buildroot] Problems loading buildroot image to CompactFlash
  2007-03-21 22:41 ` Bernhard Fischer
@ 2007-03-22  6:39   ` Alexander Rigbo
  2007-03-23 14:47     ` William Somerset
  0 siblings, 1 reply; 5+ messages in thread
From: Alexander Rigbo @ 2007-03-22  6:39 UTC (permalink / raw)
  To: buildroot

Hi,

AFAIK the boot loader is not "installed" (running lilo with lilo and doing 
setup(hdX) in grub).
Also, the image created (i take it you have a roofs.<arch>.ext2) is not a full 
disk, it's a partition.

Hope this gives you info enough to solve this.

Best regards
Alexander Rigbo
ACG Nystr?m AB

On Wednesday 21 March 2007 23.41.09 Bernhard Fischer wrote:
> On Wed, Mar 21, 2007 at 05:09:35PM -0500, William Somerset wrote:
> >Hello,
> >
> >I'm having problems getting a BuildRoot Image to boot on a compactflash. 
> > I got grub installed on the disk but whenever I try to boot the
> > CompactFlash, I just get a blank screen.  I tried just dd'ing the image
> > to the
> >compactflash but I get 'missing OS' whenever I boot the compactflash that
> >way.
> >
> >Also, I tried installing the Linux Kernel from the menu and it had
> > problems installing.  This is from getting the copy of buildroot from svn
> > at around 2pm CST today (March 21, 2007).  I loaded the grub prompt,
> > changed the root to the compact flash and got grub to install to the
> > compactflash but I guess without a kernel, it's kinda pointless.  Should
> > I just make 1 partition or 2 (one for boot, one for main)?  Also, when I
> > tried making an ISO, I got errors from it not having some place to copy
> > to.
> >
> >Does anyone have a walkthrough or anything to help me out getting a
> >buildroot image to compactflash?
>
> - install grub unto the CF
> - mount the CF at (e.g.) /mnt/l0
> - tar -C /mnt/l0 -xf /my/rootfs.$myarch.tar
> - sync && umount /mnt/l0
> - qemu -snapshot -hda /dev/$cf_device -boot c
> - enjoy
>
> Procedure varies depending on your target, of course. Since you're ia32
> compatible the above works nicely; Alternatively you can provide a e.g.
> 512k disk to let grub boot from and use a jffs2 as -hdb or something
> like that.
> _______________________________________________
> buildroot mailing list
> buildroot at uclibc.org
> http://busybox.net/mailman/listinfo/buildroot

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

* [Buildroot] Problems loading buildroot image to CompactFlash
  2007-03-22  6:39   ` Alexander Rigbo
@ 2007-03-23 14:47     ` William Somerset
  2007-03-24  9:06       ` Christophe Lucas
  0 siblings, 1 reply; 5+ messages in thread
From: William Somerset @ 2007-03-23 14:47 UTC (permalink / raw)
  To: buildroot

I'm probably missing something here since usually, I just have whatever
flavor of Linux install grub for me but the directions I found on the net
had me copy over the /boot directory I use currently to the flash card.  I'm
using Sabayon Linux 3.2 with a 2.6.18-gentoo-r5 kernel.  The kernel was also
created with genkernel.  This is probably going to be a problem, huh?

Is installing grub as easy and changing the root in the boot prompt and
doing the correct 'install' line?

I'm trying to target either VIA EPIA boards with x86 CPUs or something like
PCEngines WRAP or Soekris net4501.

Also, what is the qemu used for?  I've read it's an emulator similar to
VMware.  I'd rather do this live than emulate an environment.

On 3/22/07, Alexander Rigbo <alexander.rigbo@acgnystrom.se> wrote:
>
> Hi,
>
> AFAIK the boot loader is not "installed" (running lilo with lilo and doing
> setup(hdX) in grub).
> Also, the image created (i take it you have a roofs.<arch>.ext2) is not a
> full
> disk, it's a partition.
>
> Hope this gives you info enough to solve this.
>
> Best regards
> Alexander Rigbo
> ACG Nystr?m AB
>
> On Wednesday 21 March 2007 23.41.09 Bernhard Fischer wrote:
> > On Wed, Mar 21, 2007 at 05:09:35PM -0500, William Somerset wrote:
> > >Hello,
> > >
> > >I'm having problems getting a BuildRoot Image to boot on a
> compactflash.
> > > I got grub installed on the disk but whenever I try to boot the
> > > CompactFlash, I just get a blank screen.  I tried just dd'ing the
> image
> > > to the
> > >compactflash but I get 'missing OS' whenever I boot the compactflash
> that
> > >way.
> > >
> > >Also, I tried installing the Linux Kernel from the menu and it had
> > > problems installing.  This is from getting the copy of buildroot from
> svn
> > > at around 2pm CST today (March 21, 2007).  I loaded the grub prompt,
> > > changed the root to the compact flash and got grub to install to the
> > > compactflash but I guess without a kernel, it's kinda
> pointless.  Should
> > > I just make 1 partition or 2 (one for boot, one for main)?  Also, when
> I
> > > tried making an ISO, I got errors from it not having some place to
> copy
> > > to.
> > >
> > >Does anyone have a walkthrough or anything to help me out getting a
> > >buildroot image to compactflash?
> >
> > - install grub unto the CF
> > - mount the CF at (e.g.) /mnt/l0
> > - tar -C /mnt/l0 -xf /my/rootfs.$myarch.tar
> > - sync && umount /mnt/l0
> > - qemu -snapshot -hda /dev/$cf_device -boot c
> > - enjoy
> >
> > Procedure varies depending on your target, of course. Since you're ia32
> > compatible the above works nicely; Alternatively you can provide a e.g.
> > 512k disk to let grub boot from and use a jffs2 as -hdb or something
> > like that.
> > _______________________________________________
> > buildroot mailing list
> > buildroot at uclibc.org
> > http://busybox.net/mailman/listinfo/buildroot
>
>
>
> _______________________________________________
> buildroot mailing list
> buildroot at uclibc.org
> http://busybox.net/mailman/listinfo/buildroot
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20070323/bae29b3a/attachment-0001.htm 

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

* [Buildroot] Problems loading buildroot image to CompactFlash
  2007-03-23 14:47     ` William Somerset
@ 2007-03-24  9:06       ` Christophe Lucas
  0 siblings, 0 replies; 5+ messages in thread
From: Christophe Lucas @ 2007-03-24  9:06 UTC (permalink / raw)
  To: buildroot

William Somerset (williamsomerset at gmail.com) wrote:
> I'm probably missing something here since usually, I just have whatever
> flavor of Linux install grub for me but the directions I found on the net
> had me copy over the /boot directory I use currently to the flash card.  I'm
> using Sabayon Linux 3.2 with a 2.6.18-gentoo-r5 kernel.  The kernel was also
> created with genkernel.  This is probably going to be a problem, huh?
> 
> Is installing grub as easy and changing the root in the boot prompt and
> doing the correct 'install' line?
> 
> I'm trying to target either VIA EPIA boards with x86 CPUs or something like
> PCEngines WRAP or Soekris net4501.

Hi william,

If grub is installed. So you can mount your CF card, un-tar your tarball
in CF-mounted directorty. Then you install grub with something like :

	echo -e 'root (hd0,0)\nsetup (hd0)'|grub --batch

I have done this kind of command, but I don't remember exactly syntax.
man grub is your friend.

Hope this can help you.

Regards,

	- Christophe -

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

end of thread, other threads:[~2007-03-24  9:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-21 22:09 [Buildroot] Problems loading buildroot image to CompactFlash William Somerset
2007-03-21 22:41 ` Bernhard Fischer
2007-03-22  6:39   ` Alexander Rigbo
2007-03-23 14:47     ` William Somerset
2007-03-24  9:06       ` Christophe Lucas

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