Coder Social home page Coder Social logo

pistats's Introduction

PiStats

Build on mac

  • Download crosstool-ng, brew install crosstool-ng
  • crosstool-ng requires a case-sensitive file system, so you'll have to create one (Thanks for the instructions, whomever wrote the ones ChatGPT stole)
    1. Open Disk Utility: You can find Disk Utility in the "Utilities" folder within the "Applications" folder, or you can search for it using Spotlight.

    2. Create a new disk image: Click on "File" in the menu bar and select "New Image" -> "Blank Image."

    3. Configure the disk image settings:

      • Choose the desired size and name for the disk image. I chose 10 GB
      • Select "Mac OS Extended (Case-sensitive, Journaled)" as the format.
      • Choose the location where you want to save the disk image.
    4. Create the disk image: Click on the "Save" button to create the disk image with the specified settings.

    5. Mount the disk image: Double-click on the disk image file to mount it. It should appear as a new volume on your desktop.

    6. Give the file system a name in finder. Note the full path to this directory, typically it will be in /Volumes. I named mine RPI-Toolchain

  • Setup the toolchain in this new file system
    1. cd /Volumes/RPI-Toolchain
    2. mkdir toolchain tarballs
    3. ct-ng menuconfig
    4. In the configuration menu, make the following selections:
      • Select "Target options" and set the "Target Architecture" to "arm".
      • Select "Operating System" and set the "Target OS" to "linux".
      • Select "Paths and misc options" and set the "Prefix directory" to the directory you created earlier (e.g., /Volumes/RPI-Toolchain/toolchain).
      • Select "Paths and misc options" and set the "Local tarballs directory" to /Volumes/RPI-Toolchain/tarballs
      • Select "C Compiler" and key down to enable C++ and Fortran by pressing space bar on their options.
      • Determine the glibc version on your pi ldd --version. Then, select "C-library" and find the option for glibc version and set it appropriately
      • Save the configuration and exit the menu.
  • Open up .config and change CT_ZLIB_VERSION to "1.2.13"
  • Open up .config and comment out CT_GLIBC_ENABLE_WERROR=y
  • Build the toolchain, ct-ng build
  • If you run into errors, this repo may have a solution

pistats's People

Contributors

k20shores avatar

Watchers

 avatar

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.