This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-10-20 00:00:00 +00:00
parent 3fdd078c15
commit 95051297c9

View File

@@ -8822,7 +8822,10 @@ cat index.html</pre>
</div> </div>
</div> </div>
<div class="paragraph"> <div class="paragraph">
<p><a href="https://unix.stackexchange.com/questions/473448/how-to-ping-from-the-qemu-guest-to-an-external-url" class="bare">https://unix.stackexchange.com/questions/473448/how-to-ping-from-the-qemu-guest-to-an-external-url</a></p> <p>Here Ciro describes how to get it working: <a href="https://unix.stackexchange.com/questions/473448/how-to-ping-from-the-qemu-guest-to-an-external-url" class="bare">https://unix.stackexchange.com/questions/473448/how-to-ping-from-the-qemu-guest-to-an-external-url</a></p>
</div>
<div class="paragraph">
<p>Further bibliography: <a href="https://superuser.com/questions/787400/qemu-user-mode-networking-doesnt-work" class="bare">https://superuser.com/questions/787400/qemu-user-mode-networking-doesnt-work</a></p>
</div> </div>
</div> </div>
<div class="sect2"> <div class="sect2">
@@ -8958,7 +8961,17 @@ cat index.html</pre>
</div> </div>
</div> </div>
<div class="paragraph"> <div class="paragraph">
<p>Bibliography: <a href="https://serverfault.com/questions/769874/how-to-forward-a-port-from-guest-to-host-in-qemu-kvm/951835#951835" class="bare">https://serverfault.com/questions/769874/how-to-forward-a-port-from-guest-to-host-in-qemu-kvm/951835#951835</a></p> <p>Bibliography:</p>
</div>
<div class="ulist">
<ul>
<li>
<p><a href="https://serverfault.com/questions/769874/how-to-forward-a-port-from-guest-to-host-in-qemu-kvm/951835#951835" class="bare">https://serverfault.com/questions/769874/how-to-forward-a-port-from-guest-to-host-in-qemu-kvm/951835#951835</a></p>
</li>
<li>
<p><a href="https://unix.stackexchange.com/questions/78953/qemu-how-to-ping-host-network/547698#547698" class="bare">https://unix.stackexchange.com/questions/78953/qemu-how-to-ping-host-network/547698#547698</a></p>
</li>
</ul>
</div> </div>
</div> </div>
</div> </div>
@@ -21174,18 +21187,7 @@ build/ARM/config/the_isa.hh
<p>It therefore produces a pristine, blob-less, debuggable setup, where all moving parts are configured to work perfectly together.</p> <p>It therefore produces a pristine, blob-less, debuggable setup, where all moving parts are configured to work perfectly together.</p>
</div> </div>
<div class="paragraph"> <div class="paragraph">
<p>Perhaps the awesomeness of Buildroot only sinks in once you notice that all it takes is 4 commands as explained at <a href="https://stackoverflow.com/questions/47557262/how-to-download-the-torvalds-linux-kernel-master-recompile-it-and-boot-it-wi/49349237#49349237" class="bare">https://stackoverflow.com/questions/47557262/how-to-download-the-torvalds-linux-kernel-master-recompile-it-and-boot-it-wi/49349237#49349237</a></p> <p>Perhaps the awesomeness of Buildroot only sinks in once you notice that all it takes is 4 commands as explained at <a href="#buildroot-hello-world">Section 20.11, &#8220;Buildroot hello world&#8221;</a>.</p>
</div>
<div class="literalblock">
<div class="content">
<pre>git clone https://github.com/buildroot/buildroot
cd buildroot
git checkout 2018.02
make qemu_aarch64_virt_defconfig
make olddefconfig
time make BR2_JLEVEL="$(nproc)"
qemu-system-aarch64 -M virt -cpu cortex-a57 -nographic -smp 1 -kernel output/images/Image -append "root=/dev/vda console=ttyAMA0" -netdev user,id=eth0 -device virtio-net-device,netdev=eth0 -drive file=output/images/rootfs.ext4,if=none,format=raw,id=hd0 -device virtio-blk-device,drive=hd0</pre>
</div>
</div> </div>
<div class="paragraph"> <div class="paragraph">
<p>This repo basically wraps around that, and tries to make everything even more awesome for kernel developers.</p> <p>This repo basically wraps around that, and tries to make everything even more awesome for kernel developers.</p>
@@ -21671,7 +21673,13 @@ git -C "$(./getvar qemu_source_dir)" checkout -
<div class="sect2"> <div class="sect2">
<h3 id="buildroot-hello-world"><a class="anchor" href="#buildroot-hello-world"></a><a class="link" href="#buildroot-hello-world">20.11. Buildroot hello world</a></h3> <h3 id="buildroot-hello-world"><a class="anchor" href="#buildroot-hello-world"></a><a class="link" href="#buildroot-hello-world">20.11. Buildroot hello world</a></h3>
<div class="paragraph"> <div class="paragraph">
<p>This repo doesn&#8217;t do much more other than setting a bunch of Buildroot configurations and building it, and the minimal work you have to do to get QEMU to boot Buildroot from scratch is tiny if you want to quickly test Buildroot specifics, for example:</p> <p>This repo doesn&#8217;t do much more other than setting a bunch of Buildroot configurations and building it.</p>
</div>
<div class="paragraph">
<p>The minimal work you have to do to get QEMU to boot Buildroot from scratch is tiny if, about 4 commands!</p>
</div>
<div class="paragraph">
<p>Here are some good working commands for several ISAs:</p>
</div> </div>
<div class="ulist"> <div class="ulist">
<ul> <ul>
@@ -21703,6 +21711,9 @@ git -C "$(./getvar qemu_source_dir)" checkout -
</li> </li>
</ul> </ul>
</div> </div>
<div class="paragraph">
<p>These can come in handy if you want to debug something in Buildroot itself and possibly report an upstream bug.</p>
</div>
</div> </div>
</div> </div>
</div> </div>