* [Buildroot] My own init. How?
@ 2014-08-21 8:37 Lennart Ramberg
2014-08-21 10:20 ` Yann E. MORIN
0 siblings, 1 reply; 2+ messages in thread
From: Lennart Ramberg @ 2014-08-21 8:37 UTC (permalink / raw)
To: buildroot
Hi,
I built a system successfully and used grub-bios-setup;
$ sudo ./output/host/usr/sbin/grub-bios-setup -b
./output/host/usr/lib/grub/i386-pc/boot.img -c ./output/images/grub.img -d
. /dev/sdX
I have disabled the 'Run a getty (login prompt) after boot.'
When my targetsystem thus has booted, I get a blank line.
Typing echoes to the display including pressing Enter giving a new blank
line.
That seems well, though I don't know what to expect to see from Busybox
init.
Now, I want to try my own init, a 'Hello, world'. Busybox FAQ says: '...
boot your device with an "init=" argument pointing to your hello world
program'.
How do I do that?
Thanks
Lennart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20140821/d8383bc9/attachment.html>
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Buildroot] My own init. How?
2014-08-21 8:37 [Buildroot] My own init. How? Lennart Ramberg
@ 2014-08-21 10:20 ` Yann E. MORIN
0 siblings, 0 replies; 2+ messages in thread
From: Yann E. MORIN @ 2014-08-21 10:20 UTC (permalink / raw)
To: buildroot
Lennart, All,
On 2014-08-21 10:37 +0200, Lennart Ramberg spake thusly:
> I built a system successfully and used grub-bios-setup;
> $ sudo ./output/host/usr/sbin/grub-bios-setup -b
> ./output/host/usr/lib/grub/i386-pc/boot.img -c ./output/images/grub.img -d
> . /dev/sdX
> I have disabled the 'Run a getty (login prompt) after boot.'
>
> When my targetsystem thus has booted, I get a blank line.
> Typing echoes to the display including pressing Enter giving a new blank
> line.
> That seems well, though I don't know what to expect to see from Busybox
> init.
>
> Now, I want to try my own init, a 'Hello, world'. Busybox FAQ says: '...
> boot your device with an "init=" argument pointing to your hello world
> program'.
> How do I do that?
You should pass this 'init=/path/to/your/hello-world' on the kernel
command line.
Since you're using grub, you need to edit output/target/boot/menu.lst .
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-08-21 10:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-21 8:37 [Buildroot] My own init. How? Lennart Ramberg
2014-08-21 10:20 ` Yann E. MORIN
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox