ПО, ЭВМ и АСУ из Таможенного Союза

Информация о пользователе

Привет, Гость! Войдите или зарегистрируйтесь.


Вы здесь » ПО, ЭВМ и АСУ из Таможенного Союза » Арм64 (Байкал-М, Arm v8) » SDK (software development kit), процессор Байкал ВЕ-M1000, версия 5.1


SDK (software development kit), процессор Байкал ВЕ-M1000, версия 5.1

Сообщений 1 страница 6 из 6

1

https://www.baikalelectronics.ru/about/ … news/1047/
12 Марта 2021

Компания Baikal Electronics объявляет, что стал доступен для скачивания
новый релиз SDK (software development kit) для микропроцессора Baikal-M (BE-M1000) - SDK-M-5.1.

Новая версия SDK содержит следующие ключевые изменения:

- Произведён переход на LTS Ядро Linux 5.4,
ядро обновлено до 5.4.92

- ARM Trusted Firmware (ARM TF) обновлён до версии 2.4

- TianoCore UEFI (EDK II) обновлён до версии edk2-stable202008

- Поддерживается загрузка Linux с
SATA, NVMe, USB,
SPI Flash, Gigabit Ethernet, DVD-ROM

На ресурсе обмена файлами доступна для скачивания
версия SDK-M-5.1 для процессора Baikal-M
https://share.baikalelectronics.ru/inde … DeZHrc7TjP

Чтобы узнать больше о полном функционале нового SDK,
пишите нам на почту:
roman.stavtsev собачко baikalelectronics.ru

Отредактировано NuShaman (2021-03-15 07:42:09)

0

2

Попробовал собрать загрузочный образ при помощи SDK
(загрузочный образ можно было бы попробовать запустить на qemu, ведь можно?):

$ file Baikal_SDK/baikal-arm64-5.1-20210226.run
Baikal_SDK/baikal-arm64-5.1-20210226.run: POSIX shell script executable (binary data)

$ head -n 2 Baikal_SDK/baikal-arm64-5.1-20210226.run
#!/bin/sh
# This script was generated using Makeself 2.2.0

https://makeself.io/
A self-extracting archiving tool for Unix systems, in 100% shell script.

$ sudo bash /home/user/ISO/Baikal_SDK/baikal-arm64-5.1-20210226.run --target unpacked
Creating directory unpacked
Verifying archive integrity... All good.
Uncompressing Baikal-M SDK archive : version 5.1 build 69 (20210226)  100% 
$

unpacked $ sudo ./tools/build-boot-img.sh mitx -a

ничего не вышло, потому что у меня не были настроены as и ld на моём компьютере:

Код:
...
 INFO:  Executing target 'KERNEL DEFCONFIG':
  HOSTCC  scripts/basic/fixdep
gcc: fatal error: cannot execute ‘as’: execvp: No such file or directory
compilation terminated.
make[1]: *** [scripts/Makefile.host:107: scripts/basic/fixdep] Error 1
make: *** [Makefile:523: scripts_basic] Error 2
ERROR in line: 360

###### #####  #####   ####  ##### 
#      #    # #    # #    # #    #
####   #####  #####  #    # ##### 
#      #   #  #   #  #    # #   # 
###### #    # #    #  ####  #    #

Target: 'KERNEL DEFCONFIG', exit code: 1

Почему mitx, если у меня плата TF307 не спрашивайте, я использовал метод тыка (всё-таки у меня скорее Mini-ITX плата, чем что-то непонятное с названием DBM).

Код:
$ sudo ./build-boot-img.sh
Multitarget build script for Baikal-M SoC development
 ERROR:  No target provided
Usage: build-boot-img.sh <target> <options>

Targets:
  dbm         - Build images for DBM
  mitx        - Build images for Mini-ITX

Options:
  -c,  --clean             clean previous builds (kernel, uefi, arm-tf)
  -k,  --kernel            build Linux kernel with current config (.config)
  -d,  --defconfig         make kernel .config from defconfig
  -m,  --modules           build kernel modules with current config (.config)
  -e,  --empties           build extra files for emulator (empty images)
  -u,  --uefi              build UEFI boot loader module (release)
  -ud, --uefi-debug        build UEFI boot loader module (debug)
  -t,  --armtf             build ARM TF (release)
  -td, --armtf-debug       build ARM TF (debug)
  -D,  --vdec              build vdec kernel modules (release)
  -i,  --initrd            build initrd filesystem image
  -b,  --bootrom           build BootROM
  -bt, --bootrom-truncate  build BootROM and truncate 32 MiB
  -bl, --bootrom-linux     build BootROM with Linux rescue image
  -a,  --all               like --clean --defconfig --kernel --modules --initrd
                              --vdec --uefi --armtf --bootrom
  -ad, --all-debug         like --clean --defconfig --kernel --modules --initrd
                              --vdec --uefi-debug --armtf-debug --bootrom
  -h,  --help              display this help

Shell variables:
  BASETOOLS_SKIP=yes       skip UEFI 'BaseTools' build

Вот мой асс.:

Код:
# /usr/x86_64-pc-linux-gnu/binutils-bin/2.34/as --version
GNU assembler (Gentoo 2.34 p6) 2.34.0
Copyright (C) 2020 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `x86_64-pc-linux-gnu'.

А вот их:

Код:
xtools/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/bin $ sudo ./as --version
GNU assembler (crosstool-NG 1.24.0.216_ed3a1ff) 2.35.1
Copyright (C) 2020 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `aarch64-unknown-linux-gnu'.

Установил симлинк
sudo ln -sf /home/user/ISO/unpacked/xtools/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/bin/as /usr/bin/as

Но всё равно ошибка:

Код:
...
clean packages: iperf3
make -C benchmarks/iperf3 clean
make[2]: Entering directory '/home/user/ISO/unpacked/src/initrd/programs'
make[2]: *** benchmarks/iperf3: No such file or directory.  Stop.
make[2]: Leaving directory '/home/user/ISO/unpacked/src/initrd/programs'
make[1]: *** [iperf3.mk:35: clean] Error 2
make[1]: Leaving directory '/home/user/ISO/unpacked/src/initrd/programs'
 INFO:  Executing target 'KERNEL DEFCONFIG':
  HOSTCC  scripts/basic/fixdep
as: unrecognized option '--64'
make[1]: *** [scripts/Makefile.host:107: scripts/basic/fixdep] Error 1
make: *** [Makefile:523: scripts_basic] Error 2
ERROR in line: 360

 _____  _____  _____  _____  _____
|  ___)| __  )| __  )|  _  || __  )
|  __) |    ( |    ( | (_) ||    (
|_____)|__|__\|__|__\|_____||__|__\

Target: 'KERNEL DEFCONFIG', exit code: 1

Установил симлинк обратно:
$ sudo ln -sf /usr/x86_64-pc-linux-gnu/binutils-bin/2.34/as /usr/bin/as
теперь не ищется ld.
$ sudo ln -sf   /usr/x86_64-pc-linux-gnu/binutils-bin/2.34/ld /usr/bin/ld

Запустилась сборка ядра...
И возможно, что оно даже собралось,

Код:
img $ file mitx.Image 
mitx.Image: Linux kernel ARM64 boot executable Image, little-endian, 4K pages

однако скрипт удачей не завершился:

Код:
aarch64-unknown-linux-gnu-gcc: error: libtomcrypt/libtomcrypt.a: No such file or directory
aarch64-unknown-linux-gnu-gcc: error: libtomcrypt/libtomcrypt.a: No such file or directory
aarch64-unknown-linux-gnu-gcc: error: libtommath/libtommath.a: No such file or directory
aarch64-unknown-linux-gnu-gcc: error: libtommath/libtommath.a: No such file or directory
aarch64-unknown-linux-gnu-gcc: error: libtomcrypt/libtomcrypt.a: No such file or directory
aarch64-unknown-linux-gnu-gcc: error: libtommath/libtommath.a: No such file or directory
make[1]: *** [Makefile:169: dbclient] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:172: dropbearkey] Error 1
aarch64-unknown-linux-gnu-gcc: error: libtomcrypt/libtomcrypt.a: No such file or directory
aarch64-unknown-linux-gnu-gcc: error: libtommath/libtommath.a: No such file or directory
make[1]: *** [Makefile:172: dropbearconvert] Error 1
make[1]: *** [Makefile:166: dropbear] Error 1
make[1]: Leaving directory '/home/user/ISO/unpacked/src/initrd/programs/dropbear'
make: *** [dropbear.mk:20: dropbear] Error 2
make: Leaving directory '/home/user/ISO/unpacked/src/initrd/programs'
    ERROR
ERROR in line: 460

 ___ __  __  __  __ 
[__ [__)[__)|  |[__)
[___|  \|  \|__||  \

Target: 'BUILD INITRD', exit code: 1

Думаю, что дело было в ненайденом файле readelf

Код:
$ grep -C 2 "not found" typescript 
samples/bpf/Makefile:211: WARNING: Please install kernel headers locally (make headers_install).
  CLEAN   usr
/bin/sh: readelf: command not found
 Clean 'UEFI'...
/home/user/ISO/unpacked/src/acpica/generate/unix/acpibin

$ sudo ln -sf /usr/x86_64-pc-linux-gnu/binutils-bin/2.34/readelf /usr/x86_64-pc-linux-gnu/bin/readelf
$ cd /home/user/ISO/unpacked
$ ./tools/build-boot-img.sh mitx -a

Эта ошибка с readelf ушла, но dropbear не собрался.

Отредактировано Лис (2021-03-16 09:46:02)

0

3

dropbear - это такой sshd для initramfs

$ cd /home/user/ISO/unpacked/src/initrd/programs/dropbear

$ ./configure --help

`configure' configures this package to adapt to many kinds of systems.

Usage: ./configure [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print `checking ...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for `--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or `..']

Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [/usr/local]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [PREFIX]

By default, `make install' will install all the files in
`/usr/local/bin', `/usr/local/lib' etc.  You can specify
an installation prefix other than `/usr/local' using `--prefix',
for instance `--prefix=$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
  --bindir=DIR            user executables [EPREFIX/bin]
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
  --libexecdir=DIR        program executables [EPREFIX/libexec]
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  --libdir=DIR            object code libraries [EPREFIX/lib]
  --includedir=DIR        C header files [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  --infodir=DIR           info documentation [DATAROOTDIR/info]
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  --mandir=DIR            man documentation [DATAROOTDIR/man]
  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
  --htmldir=DIR           html documentation [DOCDIR]
  --dvidir=DIR            dvi documentation [DOCDIR]
  --pdfdir=DIR            pdf documentation [DOCDIR]
  --psdir=DIR             ps documentation [DOCDIR]

System types:
  --build=BUILD     configure for building on BUILD [guessed]
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]

Optional Features:
  --disable-option-checking  ignore unrecognized --enable/--with options
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --disable-largefile     omit support for large files
  --disable-zlib          Don't include zlib support
  --enable-pam          Try to include PAM support
  --disable-openpty       Don't use openpty, use alternative method
  --disable-syslog        Don't include syslog support
  --disable-shadow        Don't use shadow passwords (if available)
  --enable-bundled-libtom       Force using bundled libtomcrypt/libtommath even if a system version exists.
  --disable-bundled-libtom      Force using system libtomcrypt/libtommath, fail if it does not exist.
                                Default is to use system if available, otherwise bundled.
  --disable-lastlog       Disable use of lastlog even if detected no
  --disable-utmp          Disable use of utmp even if detected no
  --disable-utmpx         Disable use of utmpx even if detected no
  --disable-wtmp          Disable use of wtmp even if detected no
  --disable-wtmpx         Disable use of wtmpx even if detected no
  --disable-loginfunc     Disable use of login() etc. no
  --disable-pututline     Disable use of pututline() etc. (uwtmp) no
  --disable-pututxline    Disable use of pututxline() etc. (uwtmpx) no

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-zlib=PATH        Use zlib in PATH
  --with-pam=PATH        Use pam in PATH
  --with-lastlog=FILE|DIR specify lastlog location common locations

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  LIBS        libraries to pass to the linker, e.g. -l<library>
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
  CPP         C preprocessor

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

Report bugs to the package provider.

Я думаю, что надо как-то configure передать идею использовать свою собственную реализацию, а не "системную".
Или наоборот. В общем, надо как-то разобраться...

building Dropbear without using thebundled libtom libraries is still not that simple. I tried buildingDropbear with "--disable-bundled-libtom" but the build scripts don'tautomatically find the shared libraries.

https://issues.guix.gnu.org/24674

Но если присмотреться, они и так bundled:

Код:
Build dropbear ... make: Entering directory '/home/user/ISO/unpacked/src/initrd/programs'
cd dropbear && \
CC=/home/user/ISO/unpacked/xtools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc CPP=/home/user/ISO/unpacked/xtools/aarch64-unknown-linux-gnu/b
in/aarch64-unknown-linux-gnu-cpp STRIP=/home/user/ISO/unpacked/xtools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-strip \
LD=/home/user/ISO/unpacked/xtools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-ld \
./configure --prefix="/usr" --disable-zlib --host=aarch64
...
config.status: creating Makefile
config.status: creating libtomcrypt/Makefile
config.status: creating libtommath/Makefile
config.status: creating config.h
configure: 
configure: Using bundled libtomcrypt and libtommath
configure: 
configure: Now edit options.h to choose features.
...

У библиотеки есть руководство:
https://github.com/libtom/libtomcrypt/b … .tex#L8036
там написано:
make install CFLAGS="-DTFM_DESC"

Перезапустил сборку командой
$ CFLAGS="-DTFM_DESC" ./tools/build-boot-img.sh mitx -a

Ошибка стала другая:

Код:
src/math/tfm_desc.c:17:10: fatal error: tfm.h: No such file or directory
   17 | #include <tfm.h>
      |          ^~~~~~~
compilation terminated.
make[2]: *** [<builtin>: src/math/tfm_desc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/home/user/ISO/unpacked/xtools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc -DTFM_DESC -I./libtomcrypt/src/headers/ -I. -I.  -DTFM_DESC -DDROPBEAR_SERVER -DDROPBEAR_CLIENT   -c -o svr-x11fwd.o svr-x11fwd.c
/home/user/ISO/unpacked/xtools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc -DTFM_DESC -I./libtomcrypt/src/headers/ -I. -I.  -DTFM_DESC -DDROPBEAR_SERVER -DDROPBEAR_CLIENT   -c -o svr-tcpfwd.o svr-tcpfwd.c
make[2]: Leaving directory '/home/user/ISO/unpacked/src/initrd/programs/dropbear/libtomcrypt'
make[1]: *** [Makefile:198: libtomcrypt/libtomcrypt.a] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/user/ISO/unpacked/src/initrd/programs/dropbear'
make: *** [dropbear.mk:20: dropbear] Error 2
make: Leaving directory '/home/user/ISO/unpacked/src/initrd/programs'
    ERROR
ERROR in line: 460

 _____  _____  _____  _____  _____
|  ___)| __  )| __  )|  _  || __  )
|  __) |    ( |    ( | (_) ||    (
|_____)|__|__\|__|__\|_____||__|__\

Target: 'BUILD INITRD', exit code: 1

Ну ок, это было подключение другой библиотеки, и делать так было не нужно.

Building a static library is fairly trivial

Ну да, ну да. Вот только она не собирается. Не возникают файлы lib*.a на диске.

Выполнил на всякий случай
$ sudo ln -sfn /usr/x86_64-pc-linux-gnu/binutils-bin/2.34/ar /usr/x86_64-pc-linux-gnu/bin/ar

(но поскольку я запускаю environment.sh перед сборкой, не важно ведь, какой ar у меня в системе?)
(точнее, скрипт сборки в начале своей работы сам вызывает environment.sh, поэтому запускать environment.sh отдельно не нужно)

Код:
$ xtools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-ar
Usage: xtools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-ar [emulation options] [-]{dmpqrstx}[abcDfilMNoOPsSTuvV] [--plugin <name>] [member-name] [count] archive-file file...
       xtools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-ar -M [<mri-script]
 commands:
  d            - delete file(s) from the archive
  m[ab]        - move file(s) in the archive
  p            - print file(s) found in the archive
  q[f]         - quick append file(s) to the archive
  r[ab][f][u]  - replace existing or insert new file(s) into the archive
  s            - act as ranlib
  t[O][v]      - display contents of the archive
  x[o]         - extract file(s) from the archive
 command specific modifiers:
  [a]          - put file(s) after [member-name]
  [b]          - put file(s) before [member-name] (same as [i])
  [D]          - use zero for timestamps and uids/gids (default)
  [u]          - use actual timestamps and uids/gids
  [N]          - use instance [count] of name
  [f]          - truncate inserted file names
  [P]          - use full path names when matching
  [o]          - preserve original dates
  [O]          - display offsets of files in the archive
  [u]          - only replace files that are newer than current archive contents
 generic modifiers:
  [c]          - do not warn if the library had to be created
  [s]          - create an archive index (cf. ranlib)
  [S]          - do not build a symbol table
  [T]          - make a thin archive
  [v]          - be verbose
  [V]          - display the version number
  @<file>      - read options from <file>
  --target=BFDNAME - specify the target object format as BFDNAME
  --output=DIRNAME - specify the output directory for extraction operations
 optional:
  --plugin <p> - load the specified plugin
 emulation options: 
  No emulation specific options
xtools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-ar: supported targets: elf64-littleaarch64 elf64-bigaarch64 elf32-littleaarch64 elf32-bigaarch64 elf32-littlearm elf32-bigarm elf64-little elf64-big elf32-little elf32-big srec symbolsrec verilog tekhex binary ihex plugin

Поправил ещё
$ sudo ln -sf /usr/x86_64-pc-linux-gnu/binutils-bin/2.34/objcopy /usr/x86_64-pc-linux-gnu/bin/objcopy

Скрипт мне явно говорит: "что-то ты где-то пропустил":

configure: WARNING: using cross tools not prefixed with host triplet

но что? и где?
Если ничего не помогает, прочтите, наконец инструкцию.

Отредактировано Лис (2021-03-16 13:28:16)

0

4

https://acpica.org/
The ACPI Component Architecture (ACPICA) project provides an operating system (OS)-independent reference implementation of the
Advanced Configuration and Power Interface Specification (ACPI).
...
a small OS-specific interface layer is written specifically for each host OS in order to interface the ACPICA code to the native OS services.
...

Код:
...
- Link obj/iasl
/usr/bin/ld: obj/aslcompilerparse.o:(.bss+0x8): multiple definition of `AslCompilerlval'; obj/aslcompilerlex.o:(.bss+0x28): first defined here
/usr/bin/ld: obj/prparserlex.o:(.bss+0x28): multiple definition of `LexBuffer'; obj/dtparserlex.o:(.bss+0x28): first defined here
collect2: error: ld returned 1 exit status
make[1]: *** [../Makefile.rules:15: obj/iasl] Error 1
make[1]: Leaving directory '/home/user/ISO/unpacked/src/acpica/generate/unix/iasl'
make: *** [generate/unix/Makefile.common:7: iasl] Error 2
ERROR in line: 578
cp: cannot stat 'generate/unix/bin/iasl': No such file or directory
ERROR in line: 579

 _____  _____  _____  _____  _____
|  ___)| __  )| __  )|  _  || __  )
|  __) |    ( |    ( | (_) ||    (
|_____)|__|__\|__|__\|_____||__|__\

Target: 'BUILD IASL', exit code: 1
Код:
- Link obj/acpiexec
/usr/bin/ld: obj/utglobal.o:(.bss+0xb81): multiple definition of `AcpiGbl_DbOpt_NoRegionSupport'; obj/aemain.o:(.bss+0x4): first defined here
collect2: error: ld returned 1 exit status
make[1]: *** [../Makefile.rules:15: obj/acpiexec] Error 1
make[1]: Leaving directory '/home/user/ISO/unpacked/src/acpica/generate/unix/acpiexec'
make: *** [Makefile.common:7: acpiexec] Error 2

Есть такая бага в Debian:
https://bugs.debian.org/cgi-bin/bugrepo … bug=981842
Здесь ещё ссылки:
https://www.illumos.org/issues/13553

Вот прям полез в исходники и лапками в текстовом редакторе вписал исправления (такие же как в коммите по последней ссылке на github)

Отредактировано Лис (2021-03-16 15:00:41)

0

5

xxd creates a hex dump of a given file or standard input.

Скрипт не проверяет ошибки:

Код:
 INFO:  Skip 'BUILD EMPTY IMAGES'
 INFO:  Executing target 'BUILD BOOTROM':
BL1 GMAC0 MAC address: 0x4ca515c30b04
BL1 GMAC1 MAC address: 0x4ca515fe622f
BL1 XGBE0 MAC address: 0x4ca5154f022b
BL1 XGBE1 MAC address: 0x4ca515787594
./tools/build-boot-img.sh: line 831: xxd: command not found
ERROR in line: 831
./tools/build-boot-img.sh: line 832: xxd: command not found
ERROR in line: 832
./tools/build-boot-img.sh: line 833: xxd: command not found
ERROR in line: 833
./tools/build-boot-img.sh: line 834: xxd: command not found
ERROR in line: 834
./tools/build-boot-img.sh: line 836: xxd: command not found
ERROR in line: 836
 INFO:  Build process is done

 _____  _   _  _____  _____  _____  _____  _____
/  ___)| | | ||   __)|   __)|  ___)/  ___)/  ___)
\___  \| |_| ||  (__ |  (__ |  __) \___  \\___  \
(_____/|_____||_____)|_____)|_____)(_____/(_____/

Ну как я могу быть уверен в корректности, когда успех с ошибками? О каком доказательном программировании тут может идти речь при такой инженерной культуре?

Какое-то непонятное сообщение о нехватке места (клевета, место есть, дело в чём-то другом)

Код:
$ ./build-boot-img.sh mitx -bl
Multitarget build script for Baikal-M SoC development
 INFO:  Starting build process #32 ...
 INFO:  Skip 'MAKE CLEAN'
 INFO:  Skip 'KERNEL DEFCONFIG'
 INFO:  Skip 'BUILD KERNEL'
 INFO:  Skip 'BUILD KERNEL MODULES'
 INFO:  Skip 'BUILD INITRD'
 INFO:  Skip 'BUILD MALI'
 INFO:  Skip 'BUILD VDEC'
 INFO:  Skip 'BUILD QEMU'
 INFO:  Skip 'BUILD UEFI'
 INFO:  Skip 'BUILD ARM TF'
 INFO:  Skip 'BUILD EMPTY IMAGES'
 INFO:  Executing target 'BUILD BOOTROM':
BL1 GMAC0 MAC address: 0x4ca515c30b04
BL1 GMAC1 MAC address: 0x4ca515fe622f
BL1 XGBE0 MAC address: 0x4ca5154f022b
BL1 XGBE1 MAC address: 0x4ca515787594
Truncate flash: 33030144
Update flash with Linux
24064+0 records in
24064+0 records out
24641536 bytes (25 MB, 24 MiB) copied, 1,2043 s, 20,5 MB/s
mkfs.fat 4.1 (2017-01-24)
Disk full
ERROR in line: 887
 Volume in drive : has no label
 Volume Serial Number is 443B-73F1
Directory for ::/

MITX~1   IMA  22057472 2021-03-16  15:27  mitx.Image
mitx     dtb     28343 2021-03-16  15:27 
startup  nsh       182 2021-03-16  15:27 
        3 files          22 085 997 bytes
                          2 484 224 bytes free

24064+0 records in
24064+0 records out
24641536 bytes (25 MB, 24 MiB) copied, 0,103702 s, 238 MB/s

 ___  ___  ___   ___   ___
| __|| _ \| _ \ / _ \ | _ \
| _| |   /|   / )(_)( |   /
|___||_|_\|_|_\ \___/ |_|_\

Target: 'BUILD BOOTROM', exit code: 1

Отредактировано Лис (2021-03-16 15:29:25)

0

6

Зарелизился (10 дней назад) Baikal-M SDK 5.2
в новой версии была обещана возможность выставлять частоту шины памяти (что должно позволить мне проапгрейдить память с 16GB до 64GB)

0


Вы здесь » ПО, ЭВМ и АСУ из Таможенного Союза » Арм64 (Байкал-М, Arm v8) » SDK (software development kit), процессор Байкал ВЕ-M1000, версия 5.1