Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2] manual: add QEMU demo to quick start
@ 2018-10-10  7:50 Ciro Santilli
  2018-10-10  8:33 ` Thomas Petazzoni
  0 siblings, 1 reply; 3+ messages in thread
From: Ciro Santilli @ 2018-10-10  7:50 UTC (permalink / raw)
  To: buildroot

---
OK, me learning to ues crappy mailing lists now >:-), will this appear v2
on the same thread?

Your software is awesome, and many more people would see that if the
quickstart actually told them how to quickstart and see something happen ;-)

 docs/manual/quickstart.txt | 36 +++++++++++++++++++++++++++++++-----
 1 file changed, 31 insertions(+), 5 deletions(-)

diff --git a/docs/manual/quickstart.txt b/docs/manual/quickstart.txt
index 74158ae249..00afe09e6b 100644
--- a/docs/manual/quickstart.txt
+++ b/docs/manual/quickstart.txt
@@ -8,12 +8,38 @@ is no need to be root to configure and use Buildroot. By running all
 commands as a regular user, you protect your system against packages
 behaving badly during compilation and installation.
 
-The first step when using Buildroot is to create a configuration.
-Buildroot has a nice configuration tool similar to the one you can
-find in the http://www.kernel.org/[Linux kernel] or in
-http://www.busybox.net/[BusyBox].
+=== Try it out with QEMU
 
-From the buildroot directory, run
+If you just want to emulate a simple generic QEMU system to see
+Buildroot at work immediately, run from the buildroot directory:
+
+--------------------
+make qemu_x86_64_defconfig
+make BR2_JLEVEL="$(nproc)"
+qemu-system-x86_64 \
+  -M pc \
+  -kernel output/images/bzImage \
+  -drive file=output/images/rootfs.ext2,if=virtio,format=raw \
+  -append "root=/dev/vda" \
+  -net nic,model=virtio \
+  -net user
+--------------------
+
+Once QEMU boots, login with +root+, and you are now left inside a minimal
+BusyBox based Linux distribution.
+
+The initial build can take several minutes to a few hours since we download
+and compile GCC, the Linux kernel and other basic system components from
+source.
+
+The QEMU command to use is also documented at: +board/qemu/x86/readme.txt+
+
+=== Day-to-day workflow
+
+In your day-to-day workflow, the first step when using Buildroot is to
+create a custom configuration. Buildroot has a nice configuration tool
+similar to the one you can find in the http://www.kernel.org/[Linux kernel]
+or in http://www.busybox.net/[BusyBox]:
 
 --------------------
  $ make menuconfig
-- 
2.19.0

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

* [Buildroot] [PATCH v2] manual: add QEMU demo to quick start
  2018-10-10  7:50 [Buildroot] [PATCH v2] manual: add QEMU demo to quick start Ciro Santilli
@ 2018-10-10  8:33 ` Thomas Petazzoni
  2018-10-10 14:13   ` Ciro Santilli
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2018-10-10  8:33 UTC (permalink / raw)
  To: buildroot

Hello,

On Wed, 10 Oct 2018 08:50:21 +0100, Ciro Santilli wrote:
> ---

We need patches to have a Signed-off-by.

> +=== Try it out with QEMU
>  
> -From the buildroot directory, run
> +If you just want to emulate a simple generic QEMU system to see
> +Buildroot at work immediately, run from the buildroot directory:
> +
> +--------------------
> +make qemu_x86_64_defconfig
> +make BR2_JLEVEL="$(nproc)"
> +qemu-system-x86_64 \
> +  -M pc \
> +  -kernel output/images/bzImage \
> +  -drive file=output/images/rootfs.ext2,if=virtio,format=raw \
> +  -append "root=/dev/vda" \
> +  -net nic,model=virtio \
> +  -net user
> +--------------------

We should point the user to board/qemu/x86-64/readme.txt instead.

Perhaps, we could make this a bit more generic, and point to all
defconfigs and the associated readme.txt files ?

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

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

* [Buildroot] [PATCH v2] manual: add QEMU demo to quick start
  2018-10-10  8:33 ` Thomas Petazzoni
@ 2018-10-10 14:13   ` Ciro Santilli
  0 siblings, 0 replies; 3+ messages in thread
From: Ciro Santilli @ 2018-10-10 14:13 UTC (permalink / raw)
  To: buildroot

On Wed, Oct 10, 2018 at 9:33 AM Thomas Petazzoni
<thomas.petazzoni@bootlin.com> wrote:
>
> Hello,
>
> On Wed, 10 Oct 2018 08:50:21 +0100, Ciro Santilli wrote:
> > ---
>
> We need patches to have a Signed-off-by.
>
> > +=== Try it out with QEMU
> >
> > -From the buildroot directory, run
> > +If you just want to emulate a simple generic QEMU system to see
> > +Buildroot at work immediately, run from the buildroot directory:
> > +
> > +--------------------
> > +make qemu_x86_64_defconfig
> > +make BR2_JLEVEL="$(nproc)"
> > +qemu-system-x86_64 \
> > +  -M pc \
> > +  -kernel output/images/bzImage \
> > +  -drive file=output/images/rootfs.ext2,if=virtio,format=raw \
> > +  -append "root=/dev/vda" \
> > +  -net nic,model=virtio \
> > +  -net user
> > +--------------------
>
> We should point the user to board/qemu/x86-64/readme.txt instead.
>

Ah, now I understood this comment! I was confused because my previous
patch referred to the wrong board/qemu/x86/readme.txt instead of
x86_64, I thought it was meant to fix that, but it is on another line.

> Perhaps, we could make this a bit more generic, and point to all
> defconfigs and the associated readme.txt files ?
>
> Best regards,
>
> Thomas
> --
> Thomas Petazzoni, CTO, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com

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

end of thread, other threads:[~2018-10-10 14:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-10  7:50 [Buildroot] [PATCH v2] manual: add QEMU demo to quick start Ciro Santilli
2018-10-10  8:33 ` Thomas Petazzoni
2018-10-10 14:13   ` Ciro Santilli

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