Closed benhylau closed 7 years ago
Do you have the rest of the build log prior to this error?
It should be downloading a debian-archive-keyring deb file, which contains the authentication for the rest of the packages.
The multistrap tool used to build this relies on a full set of working dpkg utilities in the host environment - which is where you might find incompatibilities with Ubuntu (they dont always bother to pull in the new versions from Debian...)
Yes I figured it's something like that.
W: GPG error: http://cdn-fastly.deb.debian.org/debian stretch InRelease: The following signatures couldn't be verified because the public key is not a$
ailable: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010
W: The repository 'http://httpredir.debian.org/debian stretch InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
I guess it is reasonable for Ubuntu not to include the trusted keys for Debian ... but that does make it more difficult to install things :-(
Theoretically it is possible to install that debian-archive-keyring deb manually in ubuntu and it will add the trust keys - so if you could try that, we could document that as a way to build on Ubuntu.
If that doesnt work, the next step is to get the .gpg file out of that debian keyring and use apt-key to add it to the local trust. Fun times...
Actually, come to think about it - this kind of keyring fiddling should be done for the armbian package downloads too - we are getting the uboot, kernel and modules from a repository with no local trust for its signing key.
Yea I can make
after doing:
sudo apt-get install debian-archive-keyring
Actually it failed at the end:
lzma <build/sun8i-h2plus-orangepi-zero.cpio >build/sun8i-h2plus-orangepi-zero.lzma
cat build/debian.stretch.armhf.lzma build/sun8i-h2plus-orangepi-zero.lzma >build/sun8i-h2plus-orangepi-zero.initrd
mkimage -C lzma -A arm -T ramdisk -d build/sun8i-h2plus-orangepi-zero.initrd build/boot/uInitrd
Image Name:
Created: Tue May 16 00:38:23 2017
Image Type: ARM Linux RAMDisk Image (lzma compressed)
Data Size: 35525438 Bytes = 34692.81 kB = 33.88 MB
Load Address: 00000000
Entry Point: 00000000
mkdir -p build/boot/dtb
Touching tag dtb
cp build/sun8i-h2plus-orangepi-zero/usr/lib/linux-image-dev-sun8i/sun8i-h2plus-orangepi-zero.dtb build/boot/dtb/sun8i-h2plus-orangepi-zero.dtb
truncate --size=$((0x200)) build/sun8i-h2plus-orangepi-zero.img # skip past the MBR
date -u "+%FT%TZ " >>build/sun8i-h2plus-orangepi-zero.img # add a build date
git describe --long --dirty >>build/sun8i-h2plus-orangepi-zero.img # and describe the repo
fatal: No names found, cannot describe anything.
Makefile:271: recipe for target 'build/sun8i-h2plus-orangepi-zero.img' failed
make: *** [build/sun8i-h2plus-orangepi-zero.img] Error 128
And the img file is tiny:
$ ls -lh build/
total 206M
drwxrwxr-x 3 benedict benedict 4.0K Mar 16 23:04 boot
drwxr-xr-x 19 root root 4.0K Mar 16 23:03 debian
drwxr-xr-x 20 root root 4.0K May 16 00:36 debian.stretch.armhf
-rw-rw-r-- 1 benedict benedict 71M May 16 00:36 debian.stretch.armhf.cpio
-rw-rw-r-- 1 benedict benedict 25M May 16 00:37 debian.stretch.armhf.lzma
-rw-rw-r-- 1 benedict benedict 31M Mar 16 23:04 initrd.lzma
-rw-rw-r-- 1 benedict benedict 113 May 16 00:34 mtoolsrc
drwxr-xr-x 9 root root 4.0K Feb 1 21:04 sun8i-h2plus-orangepi-zero
-rw-rw-r-- 1 benedict benedict 38M May 16 00:37 sun8i-h2plus-orangepi-zero.cpio
-rw-rw-r-- 1 benedict benedict 534 May 16 00:38 sun8i-h2plus-orangepi-zero.img
-rw-rw-r-- 1 benedict benedict 34M May 16 00:38 sun8i-h2plus-orangepi-zero.initrd
-rw-rw-r-- 1 benedict benedict 9.7M May 16 00:38 sun8i-h2plus-orangepi-zero.lzma
drwxrwxr-x 2 benedict benedict 4.0K May 16 00:38 tags
bah! I forgot to push the tags a couple of weeks back.
do a pull and try again, please
Different error:
Image Name:
Created: Tue May 16 02:01:35 2017
Image Type: ARM Linux RAMDisk Image (lzma compressed)
Data Size: 35539288 Bytes = 34706.34 kB = 33.89 MB
Load Address: 00000000
Entry Point: 00000000
mkdir -p build/boot/dtb
Touching tag dtb
cp build/sun8i-h2plus-orangepi-zero/usr/lib/linux-image-dev-sun8i/sun8i-h2plus-orangepi-zero.dtb build/boot/dtb/sun8i-h2plus-orangepi-zero.dtb
truncate --size=$((0x200)) build/sun8i-h2plus-orangepi-zero.img.tmp # skip past the MBR
date -u "+%FT%TZ " >>build/sun8i-h2plus-orangepi-zero.img.tmp # add a build date
git describe --long --dirty >>build/sun8i-h2plus-orangepi-zero.img.tmp # and describe the repo
truncate --size=$((0x2000)) build/sun8i-h2plus-orangepi-zero.img.tmp # skip to correct offset for SPL
cat build/sun8i-h2plus-orangepi-zero/usr/lib/linux-u-boot-dev-orangepizero_5.25_armhf/u-boot-sunxi-with-spl.bin >>build/sun8i-h2plus-orangepi-zero.img.tmp # add the SPL+uboot binary
MTOOLSRC=build/mtoolsrc mpartition -I z:
/bin/sh: 1: mpartition: not found
Makefile:271: recipe for target 'build/sun8i-h2plus-orangepi-zero.img' failed
make: *** [build/sun8i-h2plus-orangepi-zero.img] Error 127
can you tell me what version of mtools is installed?
in my environment here I have mtools 4.0.17-1, which provides /usr/bin/mpartition - which is what is missing according to the above error
It was not installed. The img built after I installed mtools.
It is included in build-depends
and I have no idea why it was absent on my system. Closing.
Error I got trying to
make
from Gallium OS Chromebook:I probably just need to do this in a Debian VM.