khadas / fenix

One-stop script set to build Ubuntu/Debian images
GNU General Public License v2.0
218 stars 137 forks source link

make linux for fenix sdk is error! #252

Open ruijitek opened 9 months ago

ruijitek commented 9 months ago

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 commented 9 months ago

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 commented 9 months ago

@ruijitek what's your build host?

ruijitek commented 9 months ago

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 commented 8 months ago

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

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

ruijitek commented 8 months ago

hi ,numbqq I dokcer run it,it is yet error ,it have not see linux source ,pls help me . khadas@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 khadas@f22f83ea9988:~/fenix$ docker images bash: docker: command not found khadas@f22f83ea9988:~/fenix$ docker imagers bash: docker: command not found khadas@f22f83ea9988:~/fenix$ docker images bash: docker: command not found khadas@f22f83ea9988:~/fenix$ ls khadas@f22f83ea9988:~/fenix$ pwd /home/khadas/fenix khadas@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.

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

ruijitek commented 8 months ago

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 commented 8 months ago

hi,numbqq,

  I am docker  run contiaer below commend:

bus cd fenix direction ,have not content,why?

dokcer_20240328121429

image

ruijitek commented 8 months ago

image