Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make linux for fenix sdk is error! #252

Open
ruijitek opened this issue Feb 28, 2024 · 8 comments
Open

make linux for fenix sdk is error! #252

ruijitek opened this issue Feb 28, 2024 · 8 comments

Comments

@ruijitek
Copy link

hi ,
I am download fenix sdk package on master branch.
and source /env/setenv.sh, make is have error below:

your should setup environment fist,Run 'source env/setenv.sh' to setup environment.
Makefile:5: recipe for target '_env_is_setup' failed
make: *** [_env_is_setup] Error 1

@ruijitek
Copy link
Author

hi,
I am do this below:
Make ARCH=arm CROSS_COPILE=/fenix-test/fenix/build/gcc-linaro-aarch64-linux-gnu-
make[2]: *** [scripts/Makefile.vmlinux:35:vmlinux] 错误 1

make[1]: *** [Makefile:1250:vmlinux] 错误 2

make[1]: 离开目录“/home/lille/fenix-test/fenix/build/linux”

./scripts/create_image.sh:130 Error: Build Linux failed!

make: *** [Makefile:2:all] 错误 1
what is error that ?

@numbqq
Copy link
Member

numbqq commented Mar 4, 2024

@ruijitek what's your build host?

@ruijitek
Copy link
Author

ruijitek commented Mar 5, 2024

hi numbqq,
Thank you for your reply!
m build host enviroment is below:

NAME="Ubuntu"
VERSION="18.04.6 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.6 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic

@numbqq
Copy link
Member

numbqq commented Mar 13, 2024

please try to use more recently distribution or build in docker.

https://github.com/khadas/fenix?tab=readme-ov-file#build-in-docker

@ruijitek
Copy link
Author

hi ,numbqq
I dokcer run it,it is yet error ,it have not see linux source ,pls help me .
f22f83ea9988:/fenix$ man sudo_root
/bin/sh: error while loading shared libraries: /lib/x86_64-linux-gnu/libc.so.6: cannot apply additional memory protection after relocation: Permission denied
f22f83ea9988:
/fenix$ docker images
bash: docker: command not found
f22f83ea9988:/fenix$ docker imagers
bash: docker: command not found
f22f83ea9988:
/fenix$ docker images
bash: docker: command not found
f22f83ea9988:/fenix$ ls
f22f83ea9988:
/fenix$ pwd
/home/khadas/fenix
f22f83ea9988:~/fenix$ exit
exit
root@kclee-Precision-Tower-7810:/data/git_khadas/fenix# ls
archives config config-template.conf Dockerfile docs env LICENSE Makefile packages README.md scripts setenv.sh
root@kclee-Precision-Tower-7810:/data/git_khadas/fenix# docker run -it --name fenix -v $(pwd):/home/khadas/fenix -v /etc/localtime:/etc/localtime:ro -v /etc/timezone:/etc/timezone:ro -v $HOME/.ccache:/data/git_khadas/.ccache --privileged --device=/dev/loop-control:/dev/loop-control --device=/dev/loop0:/dev/loop0 --cap-add SYS_ADMIN numbqq/fenix
docker: Error response from daemon: Conflict. The container name "/fenix" is already in use by container "f22f83ea998807f3c2d60294feb2e32fdd94c896529cc1033c9a0b9c2ad237ce". You have to remove (or rename) that container to be able to reuse that name.
See 'docker run --help'.
root@kclee-Precision-Tower-7810:/data/git_khadas/fenix# You have to remove (or rename) that container to be able to reuse that name^C
root@kclee-Precision-Tower-7810:/data/git_khadas/fenix# docker run -it --name fenix -v $(pwd):/home/khadas/fenix -v /etc/localtime:/etc/localtime:ro -v /etc/timezone:/etc/timezone:ro -v $HOME/.ccache:/data/git_khadas/.ccache --privileged --device=/dev/loop-control:/dev/loop-control --device=/dev/loop0:/dev/loop0 --cap-add SYS_ADMIN numbqq/fenix
To run a command as administrator (user "root"), use "sudo ".
See "man sudo_root" for details.

cc1864ed270e:/fenix$ ls
cc1864ed270e:
/fenix$ pwd
/home/khadas/fenix
cc1864ed270e:/fenix$ source env/setenv.sh
bash: env/setenv.sh: No such file or directory
cc1864ed270e:
/fenix$

@ruijitek
Copy link
Author

hi,numbqq,

  root user is local passwd?yet is docker contian passwd ?

root@kclee-Precision-Tower-7810:/data/git_khadas# docker run -it --privileged --name fenix -v /data/git_khadas:/home/khadas/fenix -v /etc/localtime:/etc/localtime:ro -v /etc/timezone:/etc/timezone:ro -v $HOME/.ccache:/data/git_khadas/.ccache --privileged --device=/dev/loop-control:/dev/loop-control --device=/dev/loop0:/dev/loop0 --cap-add SYS_ADMIN numbqq/fenix
To run a command as administrator (user "root"), use "sudo ".
See "man sudo_root" for details.

@ruijitek
Copy link
Author

hi,numbqq,

  I am docker  run contiaer below commend:

bus cd fenix direction ,have not content,why?
dokcer_20240328121429

image

@ruijitek
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants