精华内容
参与话题
问答
  • 系统信息 ...Linux 4.14.0-115.el7a.0.1.aarch64 #1 SMP Sun Nov 25 20:54:21 UTC 2018 aarch64 aarch64 aarch64 GNU/Linux 下载最新版本源码 # wget https://github.com/akopytov/sysbench/archive/1.

    系统信息

    # cat /etc/redhat-release 
    CentOS Linux release 7.6.1810 (AltArch) 
    # uname -a
    Linux 4.14.0-115.el7a.0.1.aarch64 #1 SMP Sun Nov 25 20:54:21 UTC 2018 aarch64 aarch64 aarch64 GNU/Linux

    下载最新版本源码

    # wget https://github.com/akopytov/sysbench/archive/1.0.20.tar.gz -O sysbench-1.0.20.tar.gz
    --2020-07-28 15:36:20--  https://github.com/akopytov/sysbench/archive/1.0.20.tar.gz
    Resolving github.com (github.com)... 52.74.223.119
    Connecting to github.com (github.com)|52.74.223.119|:443... connected.
    HTTP request sent, awaiting response... 302 Found
    Location: https://codeload.github.com/akopytov/sysbench/tar.gz/1.0.20 [following]
    --2020-07-28 15:36:25--  https://codeload.github.com/akopytov/sysbench/tar.gz/1.0.20
    Resolving codeload.github.com (codeload.github.com)... 54.251.140.56
    Connecting to codeload.github.com (codeload.github.com)|54.251.140.56|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: unspecified [application/x-gzip]
    Saving to: ‘sysbench-1.0.20.tar.gz’
    
        [                        <=>                                                                   ] 1,509,630   43.3KB/s   in 48s    
    
    2020-07-28 15:37:14 (30.7 KB/s) - ‘sysbench-1.0.20.tar.gz’ saved [1509630]
    

    解压文件

    # tar -xvf sysbench-1.0.20.tar.gz
    # ll
    total 120
    -rwxrwxr-x. 1 root root  3074 Apr 24 23:51 autogen.sh
    -rw-rw-r--. 1 root root 16755 Apr 24 23:51 ChangeLog
    drwxrwxr-x. 2 root root    26 Apr 24 23:51 config
    -rw-rw-r--. 1 root root 14744 Apr 24 23:51 configure.ac
    -rw-rw-r--. 1 root root 18092 Apr 24 23:51 COPYING
    drwxrwxr-x. 3 root root   135 Apr 24 23:51 debian
    drwxrwxr-x. 3 root root    54 Apr 24 23:51 doc
    -rwxrwxr-x. 1 root root  7122 Apr 24 23:51 install-sh
    drwxrwxr-x. 2 root root  4096 Apr 24 23:51 m4
    -rw-rw-r--. 1 root root  1583 Apr 24 23:51 Makefile.am
    -rwxrwxr-x. 1 root root 10266 Apr 24 23:51 missing
    -rwxrwxr-x. 1 root root  1988 Apr 24 23:51 mkinstalldirs
    -rw-rw-r--. 1 root root 16086 Apr 24 23:51 README.md
    -rw-rw-r--. 1 root root  2069 Apr 24 23:51 README-Oracle.md
    -rw-rw-r--. 1 root root   478 Apr 24 23:51 README-WIN.txt
    drwxrwxr-x. 2 root root    27 Apr 24 23:51 rpm
    drwxrwxr-x. 2 root root    26 Apr 24 23:51 scripts
    drwxrwxr-x. 2 root root    31 Apr 24 23:51 snap
    drwxrwxr-x. 5 root root  4096 Apr 24 23:51 src
    drwxrwxr-x. 4 root root    85 Apr 24 23:51 tests
    drwxrwxr-x. 5 root root    55 Apr 24 23:51 third_party

    安装编译工具、库

    # yum install automake libtool -y

    执行autogen.sh

    # sh autogen.sh 
    autogen.sh: running `libtoolize --copy --force' 
    libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `config'.
    libtoolize: copying file `config/ltmain.sh'
    libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
    libtoolize: copying file `m4/libtool.m4'
    libtoolize: copying file `m4/ltoptions.m4'
    libtoolize: copying file `m4/ltsugar.m4'
    libtoolize: copying file `m4/ltversion.m4'
    libtoolize: copying file `m4/lt~obsolete.m4'
    autogen.sh: running `aclocal -I m4' 
    autogen.sh: running `autoheader' 
    autogen.sh: running `automake -c --foreign --add-missing' 
    configure.ac:59: installing 'config/ar-lib'
    configure.ac:45: installing 'config/compile'
    configure.ac:27: installing 'config/config.guess'
    configure.ac:27: installing 'config/config.sub'
    configure.ac:32: installing 'config/install-sh'
    configure.ac:32: installing 'config/missing'
    src/Makefile.am: installing 'config/depcomp'
    parallel-tests: installing 'config/test-driver'
    autogen.sh: running `autoconf' 
    Libtoolized with: libtoolize (GNU libtool) 2.4.2
    Automade with: automake (GNU automake) 1.13.4
    Configured with: autoconf (GNU Autoconf) 2.69
    

    生成Makefile(注意目前不需要mysql模块)

    # ./configure --without-mysql
    checking build system type... aarch64-unknown-linux-gnu
    checking host system type... aarch64-unknown-linux-gnu
    checking target system type... aarch64-unknown-linux-gnu
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking whether make supports nested variables... yes
    checking for style of include used by make... GNU
    checking for gcc... gcc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables... 
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking dependency style of gcc... gcc3
    checking how to run the C preprocessor... gcc -E
    checking for grep that handles long lines and -e... /usr/bin/grep
    checking for egrep... /usr/bin/grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking minix/config.h usability... no
    checking minix/config.h presence... no
    checking for minix/config.h... no
    checking whether it is safe to define __EXTENSIONS__... yes
    checking for gcc... (cached) gcc
    checking whether we are using the GNU C compiler... (cached) yes
    checking whether gcc accepts -g... (cached) yes
    checking for gcc option to accept ISO C89... (cached) none needed
    checking dependency style of gcc... (cached) gcc3
    checking for gcc option to accept ISO C99... -std=gnu99
    checking how to run the C preprocessor... gcc -E
    checking whether gcc -std=gnu99 and cc understand -c and -o together... yes
    checking for a sed that does not truncate output... /usr/bin/sed
    checking for C compiler vendor... gnu
    checking for gcc architecture flag... 
    checking for gcc architecture flag... unknown
    checking for ar... ar
    checking the archiver (ar) interface... ar
    checking how to print strings... printf
    checking for a sed that does not truncate output... (cached) /usr/bin/sed
    checking for fgrep... /usr/bin/grep -F
    checking for ld used by gcc -std=gnu99... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
    checking the name lister (/usr/bin/nm -B) interface... BSD nm
    checking whether ln -s works... yes
    checking the maximum length of command line arguments... 1572864
    checking whether the shell understands some XSI constructs... yes
    checking whether the shell understands "+="... yes
    checking how to convert aarch64-unknown-linux-gnu file names to aarch64-unknown-linux-gnu format... func_convert_file_noop
    checking how to convert aarch64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
    checking for /usr/bin/ld option to reload object files... -r
    checking for objdump... objdump
    checking how to recognize dependent libraries... pass_all
    checking for dlltool... no
    checking how to associate runtime and link libraries... printf %s\n
    checking for archiver @FILE support... @
    checking for strip... strip
    checking for ranlib... ranlib
    checking command to parse /usr/bin/nm -B output from gcc -std=gnu99 object... ok
    checking for sysroot... no
    checking for mt... no
    checking if : is a manifest tool... no
    checking for dlfcn.h... yes
    checking for objdir... .libs
    checking if gcc -std=gnu99 supports -fno-rtti -fno-exceptions... no
    checking for gcc -std=gnu99 option to produce PIC... -fPIC -DPIC
    checking if gcc -std=gnu99 PIC flag -fPIC -DPIC works... yes
    checking if gcc -std=gnu99 static flag -static works... no
    checking if gcc -std=gnu99 supports -c -o file.o... yes
    checking if gcc -std=gnu99 supports -c -o file.o... (cached) yes
    checking whether the gcc -std=gnu99 linker (/usr/bin/ld) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... no
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... yes
    checking for pkg-config... yes
    checking for C compiler vendor... (cached) gnu
    checking whether to compile with MySQL support... no
    checking whether to compile with Drizzle support... no
    checking whether to compile with libattachsql support... no
    checking whether to compile with Oracle support... no
    checking whether to compile with PostgreSQL support... no
    checking for pkg-config... /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking whether to build with system or bundled LuaJIT... bundled
    checking whether to build with system or bundled Concurrency Kit... bundled
    checking whether LSE instructions are supported... no
    checking whether SHM_HUGETLB is declared... yes
    checking whether O_SYNC is declared... yes
    checking for xsltproc... xsltproc
    checking whether xsltproc works... no
    checking for the pthreads library -lpthreads... no
    checking whether pthreads work without any flags... no
    checking whether pthreads work with -Kthread... no
    checking whether pthreads work with -kthread... no
    checking for the pthreads library -llthread... no
    checking whether pthreads work with -pthread... yes
    checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
    checking if more special flags are required for pthreads... no
    checking for sqrt in -lm... yes
    checking for ld used by GCC... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for shared library run path origin... done
    checking libaio.h usability... no
    checking libaio.h presence... no
    checking for libaio.h... no
    checking for malloc in -lumem... no
    checking for malloc in -lmtmalloc... no
    checking for ANSI C header files... (cached) yes
    checking errno.h usability... yes
    checking errno.h presence... yes
    checking for errno.h... yes
    checking fcntl.h usability... yes
    checking fcntl.h presence... yes
    checking for fcntl.h... yes
    checking math.h usability... yes
    checking math.h presence... yes
    checking for math.h... yes
    checking pthread.h usability... yes
    checking pthread.h presence... yes
    checking for pthread.h... yes
    checking sched.h usability... yes
    checking sched.h presence... yes
    checking for sched.h... yes
    checking signal.h usability... yes
    checking signal.h presence... yes
    checking for signal.h... yes
    checking for stdlib.h... (cached) yes
    checking for string.h... (cached) yes
    checking sys/aio.h usability... no
    checking sys/aio.h presence... no
    checking for sys/aio.h... no
    checking sys/ipc.h usability... yes
    checking sys/ipc.h presence... yes
    checking for sys/ipc.h... yes
    checking sys/time.h usability... yes
    checking sys/time.h presence... yes
    checking for sys/time.h... yes
    checking sys/mman.h usability... yes
    checking sys/mman.h presence... yes
    checking for sys/mman.h... yes
    checking sys/shm.h usability... yes
    checking sys/shm.h presence... yes
    checking for sys/shm.h... yes
    checking thread.h usability... no
    checking thread.h presence... no
    checking for thread.h... no
    checking for unistd.h... (cached) yes
    checking limits.h usability... yes
    checking limits.h presence... yes
    checking for limits.h... yes
    checking libgen.h usability... yes
    checking libgen.h presence... yes
    checking for libgen.h... yes
    checking for off_t... yes
    checking whether time.h and sys/time.h may both be included... yes
    checking for thread local storage (TLS) class... __thread
    checking for __attribute__((format))... yes
    checking for __attribute__((unused))... yes
    checking for special C compiler options needed for large files... no
    checking for _FILE_OFFSET_BITS value needed for large files... no
    checking size of size_t... 8
    checking size of bool... 1
    checking for stdlib.h... (cached) yes
    checking for unistd.h... (cached) yes
    checking for sys/param.h... yes
    checking for getpagesize... yes
    checking for working mmap... yes
    checking whether strerror_r is declared... yes
    checking for strerror_r... yes
    checking whether strerror_r returns char *... yes
    checking for library containing clock_gettime... none required
    checking for alarm... yes
    checking for clock_gettime... yes
    checking for directio... no
    checking for fdatasync... yes
    checking for gettimeofday... yes
    checking for isatty... yes
    checking for memalign... yes
    checking for memset... yes
    checking for posix_memalign... yes
    checking for pthread_yield... yes
    checking for setvbuf... yes
    checking for sqrt... yes
    checking for strdup... yes
    checking for thr_setconcurrency... no
    checking for valloc... yes
    checking for pthread_once... yes
    which: no git in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)
    checking that generated files are newer than configure... done
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating doc/xsl/Makefile
    config.status: creating doc/xsl/catalog.xml
    config.status: creating doc/Makefile
    config.status: creating third_party/luajit/Makefile
    config.status: creating third_party/concurrency_kit/Makefile
    config.status: creating src/Makefile
    config.status: creating src/drivers/Makefile
    config.status: creating src/drivers/mysql/Makefile
    config.status: creating src/drivers/drizzle/Makefile
    config.status: creating src/drivers/oracle/Makefile
    config.status: creating src/drivers/pgsql/Makefile
    config.status: creating src/drivers/attachsql/Makefile
    config.status: creating src/tests/Makefile
    config.status: creating src/tests/cpu/Makefile
    config.status: creating src/tests/fileio/Makefile
    config.status: creating src/tests/memory/Makefile
    config.status: creating src/tests/threads/Makefile
    config.status: creating src/tests/mutex/Makefile
    config.status: creating src/lua/Makefile
    config.status: creating src/lua/internal/Makefile
    config.status: creating tests/Makefile
    config.status: creating tests/include/config.sh
    config.status: creating snap/snapcraft.yaml
    config.status: creating config/config.h
    config.status: executing depfiles commands
    config.status: executing libtool commands
    ===============================================================================
    sysbench version   : 1.0.20
    CC                 : gcc -std=gnu99
    CFLAGS             : -O2 -funroll-loops  -Wall -Wextra -Wpointer-arith -Wbad-function-cast -Wstrict-prototypes -Wnested-externs -Wno-format-zero-length -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wcast-align -Wvla   -pthread
    CPPFLAGS           : -D_GNU_SOURCE  -DCK_MD_CACHELINE=128  -I$(top_srcdir)/src -I$(abs_top_builddir)/third_party/luajit/inc -I$(abs_top_builddir)/third_party/concurrency_kit/include
    LDFLAGS            : -L/usr/local/lib 
    LIBS               : -lm 
    EXTRA_LDFLAGS      : 
    
    prefix             : /usr/local
    bindir             : ${prefix}/bin
    libexecdir         : ${prefix}/libexec
    mandir             : ${prefix}/share/man
    datadir            : ${prefix}/share
    
    MySQL support      : no
    Drizzle support    : no
    AttachSQL support  : no
    Oracle support     : no
    PostgreSQL support : no
    
    LuaJIT             : bundled
    LUAJIT_CFLAGS      : -I$(abs_top_builddir)/third_party/luajit/inc
    LUAJIT_LIBS        : $(abs_top_builddir)/third_party/luajit/lib/libluajit-5.1.a -ldl
    LUAJIT_LDFLAGS     : -rdynamic
    
    Concurrency Kit    : bundled
    CK_CFLAGS          : -I$(abs_top_builddir)/third_party/concurrency_kit/include
    CK_LIBS            : $(abs_top_builddir)/third_party/concurrency_kit/lib/libck.a
    configure flags    : 
    ===============================================================================

    编译并安装

    # make -j8 && make install

    查看版本信息

    # sysbench --version
    sysbench 1.0.20
    

     

    测试CPU

    # sysbench cpu --cpu-max-prime=20000 run
    sysbench 1.0.20 (using bundled LuaJIT 2.1.0-beta2)
    
    Running the test with following options:
    Number of threads: 1
    Initializing random number generator from current time
    
    
    Prime numbers limit: 20000
    
    Initializing worker threads...
    
    Threads started!
    
    CPU speed:
        events per second:   867.27
    
    General statistics:
        total time:                          10.0004s
        total number of events:              8675
    
    Latency (ms):
             min:                                    1.15
             avg:                                    1.15
             max:                                    1.38
             95th percentile:                        1.16
             sum:                                 9996.11
    
    Threads fairness:
        events (avg/stddev):           8675.0000/0.00
        execution time (avg/stddev):   9.9961/0.00
    

    测试内存

    # sysbench memory --memory-block-size=8k --memory-total-size=4G run
    sysbench 1.0.20 (using bundled LuaJIT 2.1.0-beta2)
    
    Running the test with following options:
    Number of threads: 1
    Initializing random number generator from current time
    
    
    Running memory speed test with the following options:
      block size: 8KiB
      total size: 4096MiB
      operation: write
      scope: global
    
    Initializing worker threads...
    
    Threads started!
    
    Total operations: 524288 (851745.32 per second)
    
    4096.00 MiB transferred (6654.26 MiB/sec)
    
    
    General statistics:
        total time:                          0.6132s
        total number of events:              524288
    
    Latency (ms):
             min:                                    0.00
             avg:                                    0.00
             max:                                    0.09
             95th percentile:                        0.00
             sum:                                  500.51
    
    Threads fairness:
        events (avg/stddev):           524288.0000/0.00
        execution time (avg/stddev):   0.5005/0.00
    

    测试文件IO

    # sysbench fileio --threads=16 --file-total-size=1G --file-test-mode=rndrw prepare
    sysbench 1.0.20 (using bundled LuaJIT 2.1.0-beta2)
    
    128 files, 8192Kb each, 1024Mb total
    Creating files for the test...
    Extra file open flags: (none)
    Creating file test_file.0
    Creating file test_file.1
    Creating file test_file.2
    Creating file test_file.3
    Creating file test_file.4
    Creating file test_file.5
    Creating file test_file.6
    Creating file test_file.7
    Creating file test_file.8
    Creating file test_file.9
    Creating file test_file.10
    Creating file test_file.11
    Creating file test_file.12
    Creating file test_file.13
    Creating file test_file.14
    Creating file test_file.15
    Creating file test_file.16
    Creating file test_file.17
    Creating file test_file.18
    Creating file test_file.19
    Creating file test_file.20
    Creating file test_file.21
    Creating file test_file.22
    Creating file test_file.23
    Creating file test_file.24
    Creating file test_file.25
    Creating file test_file.26
    Creating file test_file.27
    Creating file test_file.28
    Creating file test_file.29
    Creating file test_file.30
    Creating file test_file.31
    Creating file test_file.32
    Creating file test_file.33
    Creating file test_file.34
    Creating file test_file.35
    Creating file test_file.36
    Creating file test_file.37
    Creating file test_file.38
    Creating file test_file.39
    Creating file test_file.40
    
    Creating file test_file.41
    Creating file test_file.42
    Creating file test_file.43
    Creating file test_file.44
    Creating file test_file.45
    Creating file test_file.46
    Creating file test_file.47
    Creating file test_file.48
    Creating file test_file.49
    Creating file test_file.50
    Creating file test_file.51
    Creating file test_file.52
    Creating file test_file.53
    Creating file test_file.54
    Creating file test_file.55
    Creating file test_file.56
    Creating file test_file.57
    Creating file test_file.58
    Creating file test_file.59
    Creating file test_file.60
    Creating file test_file.61
    Creating file test_file.62
    Creating file test_file.63
    Creating file test_file.64
    Creating file test_file.65
    Creating file test_file.66
    Creating file test_file.67
    Creating file test_file.68
    Creating file test_file.69
    Creating file test_file.70
    Creating file test_file.71
    Creating file test_file.72
    Creating file test_file.73
    Creating file test_file.74
    Creating file test_file.75
    Creating file test_file.76
    Creating file test_file.77
    Creating file test_file.78
    Creating file test_file.79
    Creating file test_file.80
    Creating file test_file.81
    Creating file test_file.82
    Creating file test_file.83
    Creating file test_file.84
    Creating file test_file.85
    Creating file test_file.86
    Creating file test_file.87
    Creating file test_file.88
    Creating file test_file.89
    Creating file test_file.90
    Creating file test_file.91
    Creating file test_file.92
    Creating file test_file.93
    Creating file test_file.94
    Creating file test_file.95
    Creating file test_file.96
    Creating file test_file.97
    Creating file test_file.98
    Creating file test_file.99
    Creating file test_file.100
    Creating file test_file.101
    Creating file test_file.102
    Creating file test_file.103
    Creating file test_file.104
    Creating file test_file.105
    Creating file test_file.106
    Creating file test_file.107
    Creating file test_file.108
    Creating file test_file.109
    Creating file test_file.110
    Creating file test_file.111
    Creating file test_file.112
    Creating file test_file.113
    Creating file test_file.114
    Creating file test_file.115
    Creating file test_file.116
    Creating file test_file.117
    Creating file test_file.118
    Creating file test_file.119
    Creating file test_file.120
    Creating file test_file.121
    Creating file test_file.122
    Creating file test_file.123
    Creating file test_file.124
    Creating file test_file.125
    Creating file test_file.126
    Creating file test_file.127
    1073741824 bytes written in 168.04 seconds (6.09 MiB/sec).
    
    # sysbench fileio --threads=16 --file-total-size=1G --file-test-mode=rndrw run
    sysbench 1.0.20 (using bundled LuaJIT 2.1.0-beta2)
    
    Running the test with following options:
    Number of threads: 16
    Initializing random number generator from current time
    
    
    Extra file open flags: (none)
    128 files, 8MiB each
    1GiB total file size
    Block size 16KiB
    Number of IO requests: 0
    Read/Write ratio for combined random IO test: 1.50
    Periodic FSYNC enabled, calling fsync() each 100 requests.
    Calling fsync() at the end of test, Enabled.
    Using synchronous I/O mode
    Doing random r/w test
    Initializing worker threads...
    
    Threads started!
    
    
    File operations:
        reads/s:                      82.56
        writes/s:                     55.50
        fsyncs/s:                     353.97
    
    Throughput:
        read, MiB/s:                  1.29
        written, MiB/s:               0.87
    
    General statistics:
        total time:                          10.8629s
        total number of events:              3298
    
    Latency (ms):
             min:                                    0.00
             avg:                                   48.59
             max:                                  345.54
             95th percentile:                      158.63
             sum:                               160259.06
    
    Threads fairness:
        events (avg/stddev):           206.1250/79.94
        execution time (avg/stddev):   10.0162/0.01
    
    
    
    
    # sysbench fileio --threads=16 --file-total-size=1G --file-test-mode=rndrw cleanup
    sysbench 1.0.20 (using bundled LuaJIT 2.1.0-beta2)
    
    Removing test files...
    

     

     

    展开全文
  • <div><p>Add ARM 32-Bit Build and ARM/AArch64 Compiler to Travis CI Cross Compile Build and Build System in General - Add ARM32/64-Bit Compiler Technology to Build System - Enable Building AArch64 and...
  • jitbuilder/build/files/target/aarch64.mk, and also fixes mismatch between ARM64Instruction.hpp and ARM64Instruction.cpp. <p>Signed-off-by: knn-k </p><p>该提问来源于开源项目:eclipse/omr</p></div...
  • 一、编译安装qemu 1、安装qemu之前先把编译要用的依赖先装上。 yum install gtk2-devel yum install python3 python3-devel 2、下载qemu包(qemu-4.1.0版) wget ...cd ...

    一、编译安装qemu

    1、安装qemu之前先把编译要用的依赖先装上。

    yum install gtk2-devel

    yum install python3 python3-devel

    2、下载qemu包(qemu-4.1.0版)

    wget https://download.qemu.org/qemu-4.1.0.tar.xz

    tar -xJf qemu-4.1.0.tar.xz
    cd qemu-4.1.0
    ./configure --target-list=aarch64-softmmu
    make
    make install

    二、创建一个目录,将QEMU_EFI.fd 、银河麒麟系统iso、虚拟硬盘放在这个目录下。

    mkdir kylin

    cd kylin

    三、下载UEFI固件(安装麒麟系统时要用到)

    wget http://releases.linaro.org/components/kernel/uefi-linaro/16.02/release/qemu64/QEMU_EFI.fd

    四、创建虚拟硬盘

    编译安装的qemu没有qemu-img这个命令,在线安装一个即可(yum install qemu-img)

    qemu-img create -f qcow2 kylin_arm64.qcow2 50G

    此时kylin这个目录下有以下这个几个文件

    五、安装银河麒麟系统(创建虚拟机的时候网络配置可以配置为user模式或者tap模式)

    user模式(相当于nat模式):

    create.sh脚本如下
    SYSTEMISO=$(ls *.iso)
    DISKFILE=$(ls *.qcow2)

    qemu-system-aarch64 -m 2048 -cpu cortex-a72 -smp 4 -M virt \
        -bios QEMU_EFI.fd -nographic \
        -drive if=none,file=${DISKFILE},id=hd0 \
        -device virtio-blk-device,drive=hd0 \
        -drive if=none,file=${SYSTEMISO},id=cdrom,media=cdrom \
        -device virtio-scsi-device \
        -device scsi-cd,drive=cdrom \
        -net nic -net user,hostfwd=tcp::2222-:22

    tap模式(桥接模式):

    create.sh脚本如下:

    SYSTEMISO=$(ls *.iso)
    DISKFILE=$(ls *.qcow2)

    qemu-system-aarch64 -m 2048 -cpu cortex-a72 -smp 4 -M virt \
        -bios QEMU_EFI.fd -nographic \
        -drive if=none,file=${DISKFILE},id=hd0 \
        -device virtio-blk-device,drive=hd0 \
        -drive if=none,file=${SYSTEMISO},id=cdrom,media=cdrom \
        -device virtio-scsi-device \
        -device scsi-cd,drive=cdrom \
        -net nic -net tap,ifname=tap0,script=no,downscript=no

    六、虚拟机安装过程忽略,注意选择安装界面不能有!号,全部要为x,如下图

    七、安装完成后关机,用virsh list --all命令查看,发现刚刚装的虚拟机不存在,原因未知,后期继续研究,瞬间不知道怎么起原来创建好的虚拟机了,经过一波度娘,操作如下:

    重新启动虚拟机(以tap模式启动,tap模式为桥接模式)

    run.sh脚本如下

    SYSTEMISO=$(ls *.iso)
    DISKFILE=$(ls *.qcow2)

    qemu-system-aarch64 -m 2048 -cpu cortex-a72 -smp 4 -M virt \
        -bios QEMU_EFI.fd -nographic \
        -drive if=none,file=${DISKFILE},id=hd0 \
        -device virtio-blk-device,drive=hd0 \
        -device virtio-scsi-device \
        -net nic -net tap,ifname=tap0,script=no,downscript=no

    八、启动成功后,配置网络,以桥接的模式,下面分别是银河麒麟虚拟机和宿主机的网络配置。

    虚拟机:
    正常配网卡信息(vi /etc/sysconfig/network-scripts/ifcfg-eth0 )

    TYPE=Ethernet
    PROXY_METHOD=none
    BROWSER_ONLY=no
    BOOTPROTO=static
    DEFROUTE=yes
    IPV4_FAILURE_FATAL=no
    IPV6INIT=yes
    IPV6_AUTOCONF=yes
    IPV6_DEFROUTE=yes
    IPV6_FAILURE_FATAL=no
    IPV6_ADDR_GEN_MODE=stable-privacy
    NAME=eth0
    UUID=cbbde8cb-19f0-4c3c-ba91-451ec83465d6
    DEVICE=eth0
    ONBOOT=yes

    IPADDR=182.31.50.105
    NETMASK=255.255.255.0
    GATEWAY=182.31.50.1
    DNS1=202.96.128.86

    宿主机:
    1)新增一个br0网卡(桥接em1)
    cp ifcfg-em1 ifcfg-br0

    ifcfg-em1网卡配置如下:

    TYPE=Ethernet
    PROXY_METHOD=none
    BROWSER_ONLY=no
    BOOTPROTO=static
    DEFROUTE=yes
    IPV4_FAILURE_FATAL=no
    IPV6INIT=yes
    IPV6_AUTOCONF=yes
    IPV6_DEFROUTE=yes
    IPV6_FAILURE_FATAL=no
    IPV6_ADDR_GEN_MODE=stable-privacy
    NAME=em1
    UUID=f5519dc9-b972-4bd1-bf9c-656ced983c6e
    DEVICE=em1
    ONBOOT=yes
    BRIDGE="br0"

    ifcfg-br0网卡配置如下:

    DEVICE=br0
    BOOTPROTO=static
    ONBOOT=yes
    TYPE="Bridge"

    IPADDR=182.31.50.103
    NETMASK=255.255.255.0
    GATEWAY=182.31.50.1
    DNS1=202.96.128.86
    DNS2=114.114.114.114

    重启网卡
    service network restart


    2)关闭NetworkManager
    systemctl stop NetworkManager
    systemctl disable NetworkManager

    3)创建一个tap0接口
    ip tuntap add dev tap0 mod tap

    4)在虚拟网桥中增加一个tap0接口
    brctl addif br0 tap0

    5)打开tap0接口
    ifconfig tap0 0.0.0.0 promisc up

    6)显示br0的各个接口
    brctl showstp br0

    如上就是arm64版虚拟机的创建过程。

     

     

     

     

     

     

     

    展开全文
  • <p><code>busybox_static: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked (uses shared libs), stripped</code></p> <p>Usercorn says: <p><code>panic: Unsupported machine: ...
  • Linux droid 4.9.190-odroidn2 #1 SMP PREEMPT Mon Sep 2 07:23:40 CEST 2019 aarch64 aarch64 aarch64 GNU/Linux </code></pre> <p>but generally inside docker builder I see not a armv7l, but aarch64 platform...
  • <div><p>This PR contains 3 commits in series to enable the integration tests for AArch64: <ul><li> <p>tests: Preparation of enabling integration tests for AArch64 <p>This commit adds supporting ...
  • qemu-system-aarch64 -machine virt -cpu cortex-a57 -machine type=virt -nographic -smp 1 -m 2048 -kernel Image --append "console=ttyAMA0

    qemu-system-aarch64 -machine virt -cpu cortex-a57 -machine type=virt -nographic -smp 1 -m 2048 -kernel Image  --append "console=ttyAMA0"

    展开全文
  • 开源:OpenJDK8 AARCH64(ARM

    千次阅读 2020-02-08 09:07:52
    地址: https://github.com/quantum6/openjdk8-aarch64
    展开全文
  • 1、arm32架构gnu asm命令格式: V{&lt;mod&gt;}&lt;op&gt;{&lt;shape&gt;}{&lt;cond&gt;}{.&lt;dt&gt;}{&lt;dest&gt;}, src1, src2 Where: &lt;\mod&gt...
  • ARM64/AARCH64 support

    2020-11-21 21:33:52
    <div><p>Could we get ARM64/AARCH64 support in the linux installer? I've seen you mention that you'd consider it....Any update on this?</p><p>该提问来源于开源项目:nzbget/nzbget</p></div>
  • <div><p>This commit adds ARM64RegBranchInstruction for aarch64 branch instructions that take a register as the target address. It also introduces a new opcode that represents a return from a method, ...
  • 1、CPU为aarch64 https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/AArch64-Options.html#AArch64-Options 3.18.1 AArch64 Options These options are defined for AArch64 implementations: -mabi=name Generate ...
  • gdb ARM aarch64 for android

    2017-07-12 11:28:35
    gdb: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked (uses shared libs), not stripped。自己编译的。实测android 6.0 可用。
  • <p>I was wondering if anyone makes webrtc-streamer running on Ubuntu 18.04 aarch64 (arm64). We are able to make it running on Ubuntu 18.04 amd64, but fail in aarch64. Hope to hear your expertise. <p>...
  • please use this: https://github.com/quantum6/openjdk8-aarch64-arm64 https://github.com/AdoptOpenJDK/openjdk-aarch64-jdk8u
  • 如何构建一个arm64 AArch64的Ubuntu rootfs

    万次阅读 2017-11-02 13:35:32
    本文参考自gun-linux.org的文章 ,本文将实现如何通过Ubuntu-core在Aarch64上构建最小的Ubuntu文件系统。ubuntu-base-arm64的下载地址1 下载文件创建rootfs文件夹mkdir ~/rootfs &amp;&amp; cd ~/rootfs ...
  • Arm and aarch64 binaries

    2020-11-23 03:49:38
    <div><p>Please add binaries for arm and aarch64 architectures</p><p>该提问来源于开源项目:Nukesor/pueue</p></div>
  • armv8 ARM64 AARCH64

    万次阅读 2015-05-21 22:32:44
    最近在制作iOS版的CPU Dasher64,针对64位ARMv8架构。ARMv8架构与ARMv7架构比起来,变化非常大。Intel IA-32与Intel64的差别其实不大,基本上就是每条指令多了REX前缀而已~ 从可用寄存器角度来说,程序员可以...
  • what does it take to run the MTCP on Arm A-53 processor [cross compiled on AARCH64 Linux]. I see dpdk support is not there yet on Arm Processors and also the packet IO engine seems to be completely ...

空空如也

1 2 3 4 5 ... 20
收藏数 130,191
精华内容 52,076
关键字:

aarch64