GithubHelp home page GithubHelp logo

gunyah-support-scripts's People

Contributors

quic-cvanscha avatar quic-yvasi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

gunyah-support-scripts's Issues

Bug in docker file

I think dockerfile-hyp needs to have this fix:

  • COPY ./utils/* "${BASE_DIR}/utils/"
  • COPY --chown=$USER:$USER ./utils/* "${BASE_DIR}/utils/"

Otherwise some of the cp commands fail with perm denied:

cp ${BASE_DIR}/utils/kern-test.sh ${TOOLS_DIR}/qemu/  && \

Where is ~/tools/qemu?

Hi- I am trying to find this directory. It can't be found any where in my root directory.
cd ~/tools/qemu

I found this instead: -
/gunyah/gunyah-support-scripts/scripts/utils$ kern-test.sh

When I run the script, it gives the error: -
./kern-test.sh: line 32: ./bin/qemu-system-aarch64: No such file or directory

No luck in seting up the docker environment

Hi there,

I tried to set up the docker environment for gunyah on my machine and it didn't go well:

jglathe@snapdragix:~/src/gunyah-support-scripts/scripts$ ./build-docker-img.sh 
Registry server is set to ubuntu:22.04
Building Docker file dockerfile-hyp
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
            Install the buildx component to build images with BuildKit:
            https://docs.docker.com/go/buildx/

permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/build?buildargs=%7B%22GID%22%3A%221000%22%2C%22REGISTRY%22%3A%22ubuntu%3A22.04%22%2C%22UID%22%3A%221000%22%2C%22USER%22%3A%22jglathe%22%7D&cachefrom=%5B%5D&cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=dockerfile-hyp&labels=%7B%7D&memory=0&memswap=0&networkmode=default&rm=1&shmsize=0&t=hyp%3Adev-term&target=&ulimits=null&version=1": dial unix /var/run/docker.sock: connect: permission denied
jglathe@snapdragix:~/src/gunyah-support-scripts/scripts$ docker --version
Docker version 24.0.5, build 24.0.5-0ubuntu1
jglathe@snapdragix:~/src/gunyah-support-scripts/scripts$ sudo ./build-docker-img.sh 
Registry server is set to ubuntu:22.04
Building Docker file dockerfile-hyp
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
            Install the buildx component to build images with BuildKit:
            https://docs.docker.com/go/buildx/

Sending build context to Docker daemon  84.99kB
Step 1/46 : ARG REGISTRY
Step 2/46 : FROM "$REGISTRY"
 ---> e343402cadef
Step 3/46 : RUN apt-get update
 ---> Using cache
 ---> 2643af7ffb50
Step 4/46 : ARG DEBIAN_FRONTEND=noninteractive
 ---> Using cache
 ---> c0fc9bee9a80
Step 5/46 : ENV TZ=America/Los_Angeles     LANG=en_US.UTF-8     LANGUAGE=en_US:en     LC_ALL=en_US.UTF-8
 ---> Using cache
 ---> 6b54104ed2f5
Step 6/46 : ARG USER=test
 ---> Using cache
 ---> 83b6e24d0d0f
Step 7/46 : ARG UID=50000
 ---> Using cache
 ---> a0e47bb721a2
Step 8/46 : ARG GID=200
 ---> Using cache
 ---> a33d412393ea
Step 9/46 : RUN groupadd -g "$GID" "$USER" && 	useradd -m -u "$UID" -g "$GID" -s /bin/bash "$USER" && 	echo "$USER:1234" | chpasswd && adduser "$USER" sudo
 ---> Running in a952998d8889
groupadd: group 'root' already exists
The command '/bin/sh -c groupadd -g "$GID" "$USER" && 	useradd -m -u "$UID" -g "$GID" -s /bin/bash "$USER" && 	echo "$USER:1234" | chpasswd && adduser "$USER" sudo' returned a non-zero code: 9
jglathe@snapdragix:~/src/gunyah-support-scripts/scripts$ 

Maybe I'm a bit too ambitious here, but this looks to me like a problem with running it as sudo. The machine I'm using is a Windows Dev Kit 2023 (sc8280xp-based chip, SQ3) running Ubuntu 23.10 with kernel 6.6.1. Is it even possible to run gunyah on this machine? The SoC looks powerful enough, and it's QualComm. Should I run the docker build environment on an x64 machine to get it going?
Any help is greatly appreciated.

bashrc-extn permission

I think we need this fix:

  • COPY bashrc-extn .
  • COPY --chown=$USER:$USER bashrc-extn .

Otherwise get this error:

Step 29/30 : RUN cat bashrc-extn >> "${HOME}/.bashrc" && rm -f bashrc-extn
---> Running in 15c3e997d384
cat: bashrc-extn: Permission denied
The command '/bin/sh -c cat bashrc-extn >> "${HOME}/.bashrc" && rm -f
bashrc-extn' returned a non-zero code: 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.