srx-andoid-nix-poc/README.md
Sebastian Wendel 2f618bd349 initial commit
2024-07-30 12:01:25 +02:00

61 lines
2.3 KiB
Markdown

# SRX Robotnix Android
## Commands
### Build
#### Image
```sh
NIXPKGS_ALLOW_INSECURE=1 nix build .\# --impure
```
#### Emulator
```sh
nix-build --arg configuration { device="x86_64"; flavor="vanilla"; } -A build.emulator
```
### Flash
```sh
fastboot update -w ./result
```
## Issues
### auto-patchelf 1 dependencies could not be satisfied
```txt
patching script interpreter paths in /nix/store/jfgs4v5jiqqp33msl90jmlqb91arhvff-aapt2
stripping (with command strip and flags -S -p) in /nix/store/jfgs4v5jiqqp33msl90jmlqb91arhvff-aapt2/bin
automatically fixing dependencies for ELF files
{'append_rpaths': [],
'extra_args': [],
'ignore_missing': [],
'libs': [PosixPath('/nix/store/j6zw04xlczkkrwmjrya1h8ycciasqckk-auto-patchelf-hook/lib'),
PosixPath('/nix/store/h7ywv0949dwkp6kdvqbvi9y1yicl0ipp-binutils-wrapper-2.40/lib'),
PosixPath('/nix/store/yf4fcxik258lrm0r4vxjv05wy1svd6i2-patchelf-0.15.0/lib'),
PosixPath('/nix/store/cdlnsi5c5siqzich9yblqcwcslfv1wa9-binutils-wrapper-2.40/lib')],
'paths': [PosixPath('/nix/store/jfgs4v5jiqqp33msl90jmlqb91arhvff-aapt2')],
'recursive': True,
'runtime_dependencies': []}
setting interpreter of /nix/store/jfgs4v5jiqqp33msl90jmlqb91arhvff-aapt2/bin/aapt2
searching for dependencies of /nix/store/jfgs4v5jiqqp33msl90jmlqb91arhvff-aapt2/bin/aapt2
libgcc_s.so.1 -> not found!
auto-patchelf: 1 dependencies could not be satisfied
error: auto-patchelf could not satisfy dependency libgcc_s.so.1 wanted by /nix/store/jfgs4v5jiqqp33msl90jmlqb91arhvff-aapt2/bin/aapt2
auto-patchelf failed to find all the required dependencies.
Add the missing dependencies to --libs or use `--ignore-missing="foo.so.1 bar.so etc.so"`.
/nix/store/y6x85gyyndgbvzvdlz1y69gs1zxsa29f-stdenv-linux/setup: line 74: pop_var_context: head of shell_variables not a function context
/nix/store/y6x85gyyndgbvzvdlz1y69gs1zxsa29f-stdenv-linux/setup: line 1458: pop_var_context: head of shell_variables not a function context
/nix/store/y6x85gyyndgbvzvdlz1y69gs1zxsa29f-stdenv-linux/setup: line 1561: pop_var_context: head of shell_variables not a function context
```
## Links
- https://www.youtube.com/watch?v=tj8t0aRaUro
- https://talks.nixcon.org/nixcon2020/talk/AK98WZ/
- https://nixos.wiki/wiki/Android
- https://github.com/Kranzes/robotnix-personal/
- https://github.com/ajs124/robotnix-hydra/