How to enable qemu in Rz/A1H 4.9 BSP

I am using linux 4.9 BSP for development.  I want to enable qemu for running freeDOS on the A1h.

I enabled qemu using menuconfig option but while building getting following error.

Your Buildroot configuration needs a compiler capable of building 32 bits binaries.
If you're running a Debian/Ubuntu distribution, install the gcc-multilib package.
For other distributions, refer to their documentation.
make[1]: *** [core-dependencies] Error 1
make: *** [_all] Error 2

 

installed gcc-multilib on ubuntu using sudo apt-get install gcc-multilib command but getting same error while building the buildroot package.

  • please give some suggestions for solving the problem.
    Is it possible to run qemu on A1H?
  • In reply to jomon:

    I tried to build qemu.
    By default (that is, without qemu), I could build without problems.

    $ LANG=C ./build.sh buildroot
    Build Environment set
    ============== Building buildroot ==============
    What version of Buildroot do you want to use?
    1. buildroot-2016.08
    2. buildroot-2017.02 (Long Term Support)
    (select number)=> 2

    (snip)

    What would you like to do?
      1. Use the default Linaro toolchain (recommended)
      2. Install Buildroot and then let me decide in the configuration menu (advanced)
    =>  Enter your choice (1 or 2): 1

    (snip)

    ============== Buildroot Build Successful ==============

    Then, I select qemu and tools only, and I could build them successfully.

    $ LANG=C ./build.sh buildroot menuconfig
    /home/kazumi-h/rza_linux-bsp/renesas_linux-4.9_bsp/src/rza_linux-4.9_bsp
    Build Environment set
    ============== Building buildroot ==============
    ============== Custom Build ==============
    make menuconfig

    (snip)

    | |         [*] QEMU                                                                         | |
    | |               *** Emulators selection ***                                                | |
    | |         ()    Enable specific targets (NEW)                                              | |
    | |               *** ... or you can select emulator families to enable, below: ***          | |
    | |         [ ]   Enable all systems emulation (NEW)                                         | |
    | |         [ ]   Enable all Linux user-land emulation (NEW)                                 | |
    | |         [*]   Enable tools                                                               | |


    *** End of the configuration.
    *** Execute 'make' to start the build or try 'make help'.

    $ LANG=C ./build.sh buildroot
    /home/kazumi-h/rza_linux-bsp/renesas_linux-4.9_bsp/src/rza_linux-4.9_bsp
    Build Environment set

    Then, I select all the options, and I could build them successfully.

    | |         [*] QEMU                                                                         | |
    | |               *** Emulators selection ***                                                | |
    | |         ()    Enable specific targets                                                    | |
    | |               *** ... or you can select emulator families to enable, below: ***          | |
    | |         [*]   Enable all systems emulation                                               | |
    | |         [*]   Enable all Linux user-land emulation                                       | |
    | |               *** Frontends ***                                                          | |
    | |         [*]   Enable SDL frontend                                                        | |
    | |               *** Misc. features ***                                                     | |
    | |         -*-   Enable FDT                                                                 | |
    | |         [*]   Enable tools                                                               | |

    Why do not you review your configuration?

  • jomon,

    Is your project compiling correctly now?

    MikeClements
    RenesasRulz Moderator
  • This thread will be archived due to inactivity.

    Mike Clements
    RenesasRulz Moderator