public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Linux as Bootloader
@ 2011-09-05  8:24 Christian Gmeiner
  2011-09-05 12:33 ` el es
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Christian Gmeiner @ 2011-09-05  8:24 UTC (permalink / raw)
  To: linux-kernel

Hi all,

I am using the linux kernel in combination with busybox and a separate
bootloader app to
startup a x86 based embedded device. As the used BIOS does only do
basic hw init, we
used Linux as a bootloader. Our custom BIOS starts the bootloader
kernel located in BIOS
flash. If the kernel and userland is ready our boot application
searches for the productive kernel
and executes it via kexec.

Now I run in some troubles as I need to be able to boot a MSDOS
application stored on
an usb stick. I have tried grub4linux but I am not able to boot from
the usb stick - even I
see the grub command line.

Are there some creative/working solutions for my problem?

thanks
--
Christian Gmeiner, MSc

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

* Re: Linux as Bootloader
  2011-09-05  8:24 Linux as Bootloader Christian Gmeiner
@ 2011-09-05 12:33 ` el es
  2011-09-06 18:18 ` Eric W. Biederman
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 8+ messages in thread
From: el es @ 2011-09-05 12:33 UTC (permalink / raw)
  To: linux-kernel

Christian Gmeiner <christian.gmeiner <at> gmail.com> writes:

> 
> Hi all,
[...]
> Now I run in some troubles as I need to be able to boot a MSDOS
> application stored on
> an usb stick. [...]
> Are there some creative/working solutions for my problem?
> 

How about some DOS emulator (e.g. DosEmu or DosBox) (if you really
have to run DOS program(s) and absolutely can't recompile/rewrite it for 
Linux...) - but if you need low-level hw access I think you'd better
create a kernel module...

> thanks
> --
> Christian Gmeiner, MSc
> 

L.



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

* Re: Linux as Bootloader
  2011-09-05  8:24 Linux as Bootloader Christian Gmeiner
  2011-09-05 12:33 ` el es
@ 2011-09-06 18:18 ` Eric W. Biederman
  2011-09-11 21:18 ` Geoff Levand
  2011-09-12  6:20 ` James Courtier-Dutton
  3 siblings, 0 replies; 8+ messages in thread
From: Eric W. Biederman @ 2011-09-06 18:18 UTC (permalink / raw)
  To: Christian Gmeiner; +Cc: linux-kernel

Christian Gmeiner <christian.gmeiner@gmail.com> writes:

> Hi all,
>
> I am using the linux kernel in combination with busybox and a separate
> bootloader app to
> startup a x86 based embedded device. As the used BIOS does only do
> basic hw init, we
> used Linux as a bootloader. Our custom BIOS starts the bootloader
> kernel located in BIOS
> flash. If the kernel and userland is ready our boot application
> searches for the productive kernel
> and executes it via kexec.
>
> Now I run in some troubles as I need to be able to boot a MSDOS
> application stored on
> an usb stick. I have tried grub4linux but I am not able to boot from
> the usb stick - even I
> see the grub command line.
>
> Are there some creative/working solutions for my problem?

There has been some success using a modified bochs bios on real hardware
in the context of coreboot.  That should be loadable from linux and
usable on your setup.  Avoiding the DOS requirement is probably a more
certain path, getting DOS going is probably more fun.

Eric

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

* Re: Linux as Bootloader
  2011-09-05  8:24 Linux as Bootloader Christian Gmeiner
  2011-09-05 12:33 ` el es
  2011-09-06 18:18 ` Eric W. Biederman
@ 2011-09-11 21:18 ` Geoff Levand
  2011-09-16 11:02   ` Christian Gmeiner
  2011-09-12  6:20 ` James Courtier-Dutton
  3 siblings, 1 reply; 8+ messages in thread
From: Geoff Levand @ 2011-09-11 21:18 UTC (permalink / raw)
  To: Christian Gmeiner; +Cc: linux-kernel

Hi Christian,

On 09/05/2011 01:24 AM, Christian Gmeiner wrote:
> I am using the linux kernel in combination with busybox and a separate
> bootloader app to
> startup a x86 based embedded device.

Just FYI, Petitboot, a kexec base bootloader, does the same
thing as what you have done.

I'm now working on adding a twin GUI program and an x86 OpenWRT build.

Current info is here:

  http://www.kernel.org/pub/linux/kernel/people/geoff/petitboot/
  http://git.kernel.org/?p=linux/kernel/git/geoff/petitboot.git

Some old info is here:

  http://www.kernel.org/pub/linux/kernel/people/geoff/cell/ps3-petitboot/
  http://ozlabs.org/~jk/projects/petitboot/

-Geoff

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

* Re: Linux as Bootloader
  2011-09-05  8:24 Linux as Bootloader Christian Gmeiner
                   ` (2 preceding siblings ...)
  2011-09-11 21:18 ` Geoff Levand
@ 2011-09-12  6:20 ` James Courtier-Dutton
  3 siblings, 0 replies; 8+ messages in thread
From: James Courtier-Dutton @ 2011-09-12  6:20 UTC (permalink / raw)
  To: Christian Gmeiner; +Cc: linux-kernel

On 5 September 2011 09:24, Christian Gmeiner
<christian.gmeiner@gmail.com> wrote:
> Hi all,
>
> I am using the linux kernel in combination with busybox and a separate
> bootloader app to
> startup a x86 based embedded device. As the used BIOS does only do
> basic hw init, we
> used Linux as a bootloader. Our custom BIOS starts the bootloader
> kernel located in BIOS
> flash. If the kernel and userland is ready our boot application
> searches for the productive kernel
> and executes it via kexec.
>
> Now I run in some troubles as I need to be able to boot a MSDOS
> application stored on
> an usb stick. I have tried grub4linux but I am not able to boot from
> the usb stick - even I
> see the grub command line.
>
> Are there some creative/working solutions for my problem?
>

To get DOS running, it relies on a PC BIOS. You don't have one.
Either implement a PC BIOS or run the dos app using dosbox, dosemu or kvm.
Just out of curiosity, what does the DOS app do?
There might be a reason why running it in dosbox, dosemu, or kvm might not work.

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

* Re: Linux as Bootloader
  2011-09-11 21:18 ` Geoff Levand
@ 2011-09-16 11:02   ` Christian Gmeiner
  2011-09-19  2:22     ` Geoff Levand
  2011-10-21 23:07     ` Geoff Levand
  0 siblings, 2 replies; 8+ messages in thread
From: Christian Gmeiner @ 2011-09-16 11:02 UTC (permalink / raw)
  To: Geoff Levand; +Cc: linux-kernel

Hi Geoff,


2011/9/11 Geoff Levand <geoff@infradead.org>:
> Hi Christian,
>
> On 09/05/2011 01:24 AM, Christian Gmeiner wrote:
>> I am using the linux kernel in combination with busybox and a separate
>> bootloader app to
>> startup a x86 based embedded device.
>
> Just FYI, Petitboot, a kexec base bootloader, does the same
> thing as what you have done.
>
> I'm now working on adding a twin GUI program and an x86 OpenWRT build.
>
> Current info is here:
>
>  http://www.kernel.org/pub/linux/kernel/people/geoff/petitboot/
>  http://git.kernel.org/?p=linux/kernel/git/geoff/petitboot.git
>

Petitboot sounds nice, but kernel.org is down. Is there an other way to get
access to it via git?

> Some old info is here:
>
>  http://www.kernel.org/pub/linux/kernel/people/geoff/cell/ps3-petitboot/
>  http://ozlabs.org/~jk/projects/petitboot/
>
> -Geoff
>

thanks
--
Christian Gmeiner, MSc

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

* Re: Linux as Bootloader
  2011-09-16 11:02   ` Christian Gmeiner
@ 2011-09-19  2:22     ` Geoff Levand
  2011-10-21 23:07     ` Geoff Levand
  1 sibling, 0 replies; 8+ messages in thread
From: Geoff Levand @ 2011-09-19  2:22 UTC (permalink / raw)
  To: Christian Gmeiner; +Cc: linux-kernel

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

Hi Christian,

On 09/16/2011 04:02 AM, Christian Gmeiner wrote:
> 2011/9/11 Geoff Levand <geoff@infradead.org>:
>> Just FYI, Petitboot, a kexec base bootloader, does the same
>> thing as what you have done.
>>
>> Current info is here:
>>
>>  http://www.kernel.org/pub/linux/kernel/people/geoff/petitboot/
>>  http://git.kernel.org/?p=linux/kernel/git/geoff/petitboot.git
> 
> Petitboot sounds nice, but kernel.org is down. Is there an other way to get
> access to it via git?

I put a mirror of the current repo at infradead.org:

  http://git.infradead.org/users/geoff/petitboot.git

I'm still working on the twin GUI support, so don't have it
merged in yet.  I also have a hand full of bug fixes I need
to merge.

-Geoff 

[-- Attachment #2: 0x2E141B16.asc --]
[-- Type: application/pgp-keys, Size: 9418 bytes --]

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

* Re: Linux as Bootloader
  2011-09-16 11:02   ` Christian Gmeiner
  2011-09-19  2:22     ` Geoff Levand
@ 2011-10-21 23:07     ` Geoff Levand
  1 sibling, 0 replies; 8+ messages in thread
From: Geoff Levand @ 2011-10-21 23:07 UTC (permalink / raw)
  To: Christian Gmeiner; +Cc: linux-kernel

Hi Christian,

On 09/16/2011 04:02 AM, Christian Gmeiner wrote:
> 2011/9/11 Geoff Levand <geoff@infradead.org>:
>> On 09/05/2011 01:24 AM, Christian Gmeiner wrote:
>>> I am using the linux kernel in combination with busybox and a separate
>>> bootloader app to
>>> startup a x86 based embedded device.
>>
>> Just FYI, Petitboot, a kexec base bootloader, does the same
>> thing as what you have done.
>>
>> I'm now working on adding a twin GUI program and an x86 OpenWRT build.
> 
> Petitboot sounds nice, but kernel.org is down. Is there an other way to get
> access to it via git?

Just FYI, my petitboot repo at kernel.org is back:

  http://git.kernel.org/?p=linux/kernel/git/geoff/petitboot.git

Also, I put a preliminary version of new Web pages I'm
working on here:

  http://bombadil.infradead.org/~geoff/petitboot/

-Geoff

  


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

end of thread, other threads:[~2011-10-21 23:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-05  8:24 Linux as Bootloader Christian Gmeiner
2011-09-05 12:33 ` el es
2011-09-06 18:18 ` Eric W. Biederman
2011-09-11 21:18 ` Geoff Levand
2011-09-16 11:02   ` Christian Gmeiner
2011-09-19  2:22     ` Geoff Levand
2011-10-21 23:07     ` Geoff Levand
2011-09-12  6:20 ` James Courtier-Dutton

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