As for the “luks” variant, it it already to your liking? I have an OpenPGP card with the phone. Is the “luks” variant integrated with it?
There is an integration of the OpenPGP card for LUKS (I only tested it with a seperate USB OpenPGP card reader):
May be you would also like to change
the master key before flashing:
When installing the package libusb
does it need to be the exact version 1.0-0-dev or will it work if I download the latest version which is libusb-0_1.4
?
EDIT: Actually it cannot find that one particular package.
Loading repository data...
Reading installed packages...
'libusb-1.0-0-dev' not found in package names. Trying capabilities.
No provider of 'libusb-1.0-0-dev' found.
Resolving package dependencies...
Nothing to do.
I think you already answered your own question but … that list of packages was arrived at by me simply by iteration … try to build, wait for it to fail because xyz
isn’t installed, install xyz
, repeat.
After some struggle I managed to download the 5 packages required to build the uuu tool but when I run the last command I got this output. What now?
Cloning into 'mfgtools'...
warning: redirecting to https://source.puri.sm/Librem5/mfgtools.git/
remote: Enumerating objects: 2991, done.
remote: Total 2991 (delta 0), reused 0 (delta 0), pack-reused 2991
Receiving objects: 100% (2991/2991), 3.31 MiB | 67.00 KiB/s, done.
Resolving deltas: 100% (2084/2084), done.
CMake Warning (dev) in CMakeLists.txt:
No project() command is present. The top-level CMakeLists.txt file must
contain a literal, direct call to the project() command. Add a line of
code such as
project(ProjectName)
near the top of the file, but after cmake_minimum_required().
CMake is pretending there is a "project(Project)" command on the first
line.
This warning is for project developers. Use -Wno-dev to suppress it.
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error in CMakeLists.txt:
No CMAKE_C_COMPILER could be found.
Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.
CMake Error in CMakeLists.txt:
No CMAKE_CXX_COMPILER could be found.
Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
-- Configuring incomplete, errors occurred!
See also "/home/gantz/git/librem5-devkit-tools/build/mfgtools/CMakeFiles/CMakeOutput.log".
See also "/home/gantz/git/librem5-devkit-tools/build/mfgtools/CMakeFiles/CMakeError.log".
make: *** No targets specified and no makefile found. Stop.
[sudo] password for root:
Based on that, my guess is you can ignore the part above that and worry more about the errors that came below:
and
Looks like you need a C compiler and a C++ compiler, the most common C compiler is called “gcc” and the corresponding C++ compiler is g++ so try to installing packages called “gcc” and “g++”, or similar names. Try to look up the package names for gcc and g++ for your distro and install them. Probably g++ is enough because installing it will give you gcc automatically as a dependency.
I bieleve I have now installed the gcc and g++ compilers but now I have some other error.
gantz@localhost:~/git/librem5-devkit-tools> ./scripts/build_uuu.sh -i
fatal: destination path 'mfgtools' already exists and is not an empty directory.
CMake Warning (dev) in CMakeLists.txt:
No project() command is present. The top-level CMakeLists.txt file must
contain a literal, direct call to the project() command. Add a line of
code such as
project(ProjectName)
near the top of the file, but after cmake_minimum_required().
CMake is pretending there is a "project(Project)" command on the first
line.
This warning is for project developers. Use -Wno-dev to suppress it.
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2")
-- Checking for module 'libusb-1.0>=1.0.16'
-- No package 'libusb-1.0' found
CMake Error at /usr/share/cmake/Modules/FindPkgConfig.cmake:467 (message):
A required package was not found
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindPkgConfig.cmake:647 (_pkg_check_modules_internal)
libuuu/CMakeLists.txt:7 (pkg_check_modules)
-- Configuring incomplete, errors occurred!
See also "/home/gantz/git/librem5-devkit-tools/build/mfgtools/CMakeFiles/CMakeOutput.log".
See also "/home/gantz/git/librem5-devkit-tools/build/mfgtools/CMakeFiles/CMakeError.log".
make: *** No targets specified and no makefile found. Stop.
However I cannot install ‘libusb-1.0’ because that package is not available to me.
I think I can help you get over this issue where I replied in another thread. Likely best to keep it to one thread or the other. Flashing to Byzantium
Also libusb is likely here: https://software.opensuse.org/package/libusb-1_0-0 so you should be able to install it if you like.