Code Monkey home page Code Monkey logo

Comments (8)

vchong avatar vchong commented on July 17, 2024

Was make flash ever available for the rpi3?

Try make img-help and follow the instructions printed. Per rpi3.mk:

# Creating images etc, could wipe out a drive on the system, therefore we don't
# want to automate that in script or make target. Instead we just simply provide
# the steps here.

from build.

darakian avatar darakian commented on July 17, 2024

Got it. My bad.

from build.

vchong avatar vchong commented on July 17, 2024

No problem. Closing issue but feel free to post new one if required.

from build.

darakian avatar darakian commented on July 17, 2024

Is there an issue with making the sd card image on a different device than where the image was built? My ubuntu system is a vm on a fedora system.

from build.

jbech-linaro avatar jbech-linaro commented on July 17, 2024

Is there an issue with making the sd card image on a different device than where the image was built? My ubuntu system is a vm on a fedora system.

I'm not 100% sure I follow you here, but I'd say no, there is no issue moving things around. As long as you can mount the card inside the VM you are good to go. Where you have built them doesn't matter, it is still the same cross compiler being used.

from build.

vchong avatar vchong commented on July 17, 2024

If you're using the instructions from make img-help verbatim then yes. You can probably transfer/copy the required files to the other device and substitute the variable (GEN_ROOTFS_PATH) with whatever it is on the other device.

from build.

darakian avatar darakian commented on July 17, 2024

The reason for this is that Virt manager doesn't want to let me mount my sd card reader to the guest. It seems like the path of least resistance to try to get the files out and make the image outside. I'll give it a spin and report back. Thanks.

Edit:
Alternately are there build instructions for fedora? Specifically what packages are required?

from build.

jbech-linaro avatar jbech-linaro commented on July 17, 2024

I see, well if you can mount a folder accessible from you Fedora dist containing the Ubuntu-built files, then you should just be able to put the files on the SD-card. I.e, if you do that from Fedora or the Ubuntu VM doesn't matter. A side note here, doing the "move file to SD-card" for the RPi3/OP-TEE setup becomes tedious pretty quickly. After doing that a handful of times you will probably start to mumble and swear 😄 . So I think it's well worth spending ~1h trying to configure the tftp/nfs setup. Since that saves so much time in the long run and actually makes RPi3 a quite nice platform to use after that.

Alternately are there build instructions for fedora? Specifically what packages are required?

I think most people in our team are running Ubuntu. Me personally also runs OP-TEE on Arch Linux and that works fine and wasn't too hard to get working. Basically what I did was starting a build and when I noticed errors I searched for the particular package corresponding to the Ubuntu package and tried to build again and so on. Besides the packages needed, please also make sure to put Python2 on the $PATH before Python3. Some of the projects we are using doesn't work with Python3 unfortunately. This can be done globally on the dist, but you can also make temporary changes. I didn't want to mess with my system, so I just created a folder where I symlinked python to python2 then I just export/source that line before starting my build. I guess there tons of ways how this could be done and this is one of them.

$ pwd && ll
/home/jbech/devel/init
total 8
drwxr-xr-x  2 jbech jbech 4096 Aug  1  2016 .
drwxr-xr-x 45 jbech jbech 4096 Dec  5 23:49 ..
lrwxrwxrwx  1 jbech jbech   16 Aug  1  2016 python -> /usr/bin/python2
$ cat ~/bin/init_python2 
export PATH=$HOME/devel/init:$PATH
# Before building OP-TEE
source ~/bin/init_python2

from build.

Related Issues (20)

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.