d31a2555bd
mkimage and hasher can make use of qemu to run non-native binaries while working on the chroots; thanks kas@, manowar@ and sbolshakov@ for implementing this functionality as well as providing nice examples through mkimage-profiles-arm and mkimage-profile-armrootfs. This required the architecture check to be added since baking a tarball with "arm" as its specified arch and x86_64 inside isn't particularly good thing to let slip through; however the implementation is quite fragile, bugreports and patches are seriously welcome. NB: APTCONF evaluation order between lazy make and nimble shell turned out to be quite a delicate issue in this particular case.
19 lines
972 B
Plaintext
19 lines
972 B
Plaintext
Для сборки с применением трансляции посредством QEMU
|
||
выполните от имени root следующие команды:
|
||
|
||
apt-get install qemu-user-binfmt_misc
|
||
modprobe binfmt_misc
|
||
echo ":arm:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/.host/qemu-arm:" > /proc/sys/fs/binfmt_misc/register
|
||
echo 32768 > /proc/sys/vm/mmap_min_addr
|
||
|
||
Если файл /proc/sys/fs/binfmt_misc/register не существует,
|
||
потребуется установить и загрузить иное ядро (например, std-def).
|
||
|
||
Также нужен sources.list с указанием arm-репозитория
|
||
и ссылающийся на него apt.conf (см. apt.conf.sample);
|
||
например:
|
||
|
||
--- sources.list.sisyphus.arm
|
||
rpm http://ftp.altlinux.org/pub/distributions/ALTLinux/Sisyphus arm classic
|
||
---
|