ssieb
November 8, 2018, 5:00am
1
The available kernel modules are somewhat limited. I tried to connect a USB sound device and discovered that there are no modules for it. Would it be possible to enable some more modules in the latest 4.19 image?
I tried to build my own image, but ran into multiple problems with the build process.
numbqq
November 8, 2018, 5:37am
2
What’s your problem? You can post here.
ssieb
November 8, 2018, 5:44am
3
The first problem was that packages/u-boot-mainline/fip/VIM2/acs_tool.pyc needs to be called by python in packages/u-boot-mainline/package.mk instead of trying to directly run it.
After fixing that, the next problem was:
Info: Installing base system - Stage 2/2
chroot: failed to run command ‘/bin/bash’: Exec format error
I haven’t gone any farther than that. I should probably mention that I’m running this in a docker container on a Fedora system.
numbqq
November 8, 2018, 5:51am
4
OK. Your host system is Fedora
. I haven’t tested yet, just tested on Ubuntu/Debian. And you can refer to this issue
opened 03:53PM - 03 Aug 18 UTC
closed 01:39AM - 08 Aug 18 UTC
Try to build on NUC, it fails when running `/home/khadas/fenix/scripts/rootfs_st… age.sh`
part of the logs:
```
***********************PARAMETERS************************
Fenix Version: 0.3
Khadas Board: VIM2
Uboot Version: 2015.01
Uboot Configuration: kvim2_defconfig
Uboot Branch: khadas-vim-v2015.01
Linux Version: 4.9
Linux Configuration: kvim_defconfig
Linux DTB: arch/arm64/boot/dts/amlogic/kvim2_linux.dtb
Linux Branch: khadas-vim-4.9.y
Distribution: Debian
Distribution Release: stretch
Distribution Type: server
Distribution Arch: arm64
Install Type: EMMC
Final Image: VIM2_Debian-server-stretch_Linux-4.9_arm64_EMMC_2018-08-03.img
*********************************************************
make[1]: Leaving directory '/home/khadas/fenix/linux'
Info: Building debs...
Info: Build board deb...
Building package: linux-board-package-amlogic-s912
dpkg-deb: building package 'linux-board-package-amlogic-s912' in '/home/khadas/fenix/build/images/.tmp/linux-board-package-amlogic-s912_0.3_arm64.deb'.
./scripts/create_image.sh:88 Warning: This script requires root privileges, trying to use sudo, please enter your passowrd!
Info: Preparing rootfs for VIM2-stretch
Info: Creating new rootfs for stretch
Info: Installing base system - Stage 1/2
I: Retrieving InRelease
I: Retrieving Release
I: Retrieving Release.gpg
I: Checking Release signature
I: Valid Release signature (key id 067E3C456BAE240ACEE88F6FEF0F382A1A7B6500)
I: Retrieving Packages
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Found additional required dependencies: libaudit1 libaudit-common libbz2-1.0 libcap-ng0 libdb5.3 libdebconfclient0 libgcrypt20 libgpg-error0 liblz4-1 libncursesw5 libsemanage1 li
bsemanage-common libsystemd0 libudev1 libustr-1.0-1
I: Found additional base dependencies: dmsetup gnupg-agent libapparmor1 libassuan0 libbsd0 libcap2 libc-l10n libcryptsetup4 libdevmapper1.02.1 libdns-export162 libelf1 libfastjson4l
ibffi6 libgmp10 libgnutls30 libhogweed4 libidn11 libidn2-0 libip4tc0 libip6tc0 libiptc0 libisc-export160 libksba8 liblocale-gettext-perl liblognorm5 libmnl0 libncurses5 libnetfilter
-conntrack3 libnettle6 libnfnetlink0 libnpth0 libp11-kit0 libpsl5 libseccomp2 libsqlite3-0 libtasn1-6 libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl libunistring0li
bxtables12 pinentry-curses xxd
.....
I: Extracting libsystemd0...
I: Extracting libudev1...
I: Extracting sysvinit-utils...
I: Extracting tar...
I: Extracting tzdata...
I: Extracting libustr-1.0-1...
I: Extracting bsdutils...
I: Extracting libblkid1...
I: Extracting libfdisk1...
I: Extracting libmount1...
I: Extracting libsmartcols1...
I: Extracting libuuid1...
I: Extracting mount...
I: Extracting util-linux...
I: Extracting liblzma5...
I: Extracting zlib1g...
Info: Installing base system - Stage 2/2
chroot: failed to run command ‘/bin/bash’: Exec format error
Cleanup...
Makefile:7: recipe for target 'all' failed
make: *** [all] Error 126
```
Any clues?