Hi,
I am trying to build a rootfs for the DB410c with the networking modified, Theia IDE installed, and packages updated.
The following topic has been very helpful:
However, it has been a bumpy ride to get Qemu to working. I have updated my host machine to ubuntu 18.10 but I was still getting the following error:
$ sudo cp /usr/bin/qemu-aarch64-static mnt-point/usr/bin
$ uname -a
Linux thinkabit1 4.18.0-17-generic #18-ubuntu SMP Wed Mar 13 14:34:40 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
$ sudo chroot mnt-point/
# uname -a
Linux thinkabit1 4.18.0-17-generic #18-ubuntu SMP Wed Mar 13 14:34:40 UTC 2019 aarch64 GNU/Linux
# apt-get update
Get:1 http://security.debian.org stretch/updates InRelease [94.3 kB]
0% [1 InRelease gpgv 94.3 kB] [Waiting for headers] [Waiting for headers] [Waiting for headers]gpgv: Signature made Tue Apr 9 18:21:53 2019 UTC
gpgv: using RSA key D21169141CECD440F2EB8DDA9D6D8F6BC857C906
gpgv: Good signature from "Debian Security Archive Automatic Signing Key (8/jessie) <ftpmaster@debian.org>"
gpgv: Signature made Tue Apr 9 18:21:53 2019 UTC
gpgv: using RSA key A1BD8E9D78F7FE5C3E65D8AF8B48AD6246925553
gpgv: Good signature from "Debian Archive Automatic Signing Key (7.0/wheezy) <ftpmaster@debian.org>"
/usr/bin/apt-key: 596: /usr/bin/apt-key: cannot create /dev/null: Permission denied
terminate called after throwing an instance of 'std::runtime_error'
what(): random_device::random_device(const std::string&)
qemu: uncaught target signal 6 (Aborted) - core dumped
Aborted (core dumped)
#
I did a chmod on /dev/null and that moved things to a new error:
# chmod 777 /dev/null
# apt update
Ign:1 http://deb.debian.org/debian stretch InRelease
Get:2 http://security.debian.org stretch/updates InRelease [94.3 kB]
Get:3 http://deb.debian.org/debian stretch Release [118 kB]
Ign:5 http://obs.linaro.org/qcom/stretch ./ InRelease
Ign:7 http://obs.linaro.org/linaro-overlay-stretch/Debian_9.0 ./ InRelease
Get:8 http://obs.linaro.org/qcom/stretch ./ Release [952 B]
Get:9 http://obs.linaro.org/linaro-overlay-stretch/Debian_9.0 ./ Release [1035 B]
Get:10 http://obs.linaro.org/qcom/stretch ./ Release.gpg [228 B]
Get:11 http://obs.linaro.org/linaro-overlay-stretch/Debian_9.0 ./ Release.gpg [228 B]
0% [2 InRelease gpgv 94.3 kB]terminate called after throwing an instance of 'std::runtime_error'
what(): random_device::random_device(const std::string&)
qemu: uncaught target signal 6 (Aborted) - core dumped
Aborted (core dumped)
#
This seemed to be an issue with /dev/urandom permissions.
From Bug #1618363 “/dev/urandom not included in chroot, leads to cras...” : Bugs : network-manager-openvpn package : ubuntu I found the following solution:
mknod random c 1 8
mknod urandom c 1 9
Have other people seen these issues? Or did I do something wrong early on that caused these permission issues?
Thanks,
Barry