![]() ![]() PID hash table entries: 512 (order: -1, 2048 bytes)ĭentry cache hash table entries: 16384 (order: 4, 65536 bytes) Kernel command line: root=/dev/sda console=ttyAMA0,115200 Linux version 4.9.6 (gcc version 5.4.0 (Buildroot 2017.03-g4d1c2c82e) ) #1 Sat May 20 00:42:18 CEST 2017ĬPU: ARM926EJ-S revision 5 (ARMv5TEJ), cr=00093177ĬPU: VIVT data cache, VIVT instruction cacheīuilt 1 zonelists in Zone order, mobility grouping on. This was inspired by buildroot/board/qemu/arm-versatile/readme.txt.Īnd there it is! pulseaudio: set_sink_input_volume() failed All we need to do is to run one command right after the compilation ends: $ qemu-system-arm -M versatilepb -kernel output/images/zImage -dtb output/images/versatile-pb.dtb -drive file=output/images/rootfs.ext2,if=scsi -append "root=/dev/sda console=ttyAMA0,115200" -nographic Because of that, we do not have to configure any bootloader (like U-Boot for instance). This is one of the development platforms supported both by Linux and QEMU out of the box. This configuration file along with buildroot/board/qemu/arm-versatile/linux-4.9.config tells Buildroot to set kernel configuration to suit ARM Versatile boards template. There is nothing to change within the kernel thanks to this. Second shortcut is configuring Buildroot with qemu_arm_versatile_defconfig. What it produces in the end are the Linux kernel and the image of root filesystem. But we have taken three huge shortcuts.įirst, by using Buildroot which is a big set of Makefiles that configures and compiles GCC, C library and whole OS ecosystem (BusyBox). Ever heard that making Linux for embedded devices is hard? Well, it is. So, what we have just done is we run a massive process of downloading core packages and compiling them into toolchain, kernel and root filesystem that will became our own, small Linux OS. Now type this and get some coffee: $ make In Build options check Enable compiler cache which will save compiler output files and make consequent compilations faster. Be sure to have all tools from Build options -> Commands menu installed in your host system. Since we preconfigured it with the defconfig file, there is almost nothing to change here. Next: $ make menuconfigĪnd menu similar to Linux kernel menuconfig shows up. Where qemu_arm_versatile_defconfig is file & defconfig name from buildroot/configs directory. Did I say quickest? Let’s start then: $ git clone git:///buildroot I will show the quickest way of running your own-built Linux system in QEMU emulator. Buildroot and QEMU – the quickest recipe for your own Linux ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |