Giter Site home page Giter Site logo

Comments (9)

shaardie avatar shaardie commented on May 29, 2024

I have installed it under Debian Jessie using the following: https://wiki.debian.org/CrossToolchains#Installation

It also seems to be able to install it native in Debian Stretch https://packages.debian.org/stretch/crossbuild-essential-armhf

Maybe it can help...

from rpi23-gen-image.

drtyhlpr avatar drtyhlpr commented on May 29, 2024

hm sorry for the delay. if its still important: what host linux os are you using?

https://wiki.debian.org/CrossToolchains#For_jessie_.28Debian_8.29

from rpi23-gen-image.

denismosolov avatar denismosolov commented on May 29, 2024

I got a similar issue on Ubuntu 16.04. I replaced crossbuild-essential-armhf with gcc-arm-linux-gnueabihf and it's gone:

denismosolov@f885521

from rpi23-gen-image.

drtyhlpr avatar drtyhlpr commented on May 29, 2024

oh I wasn't even aware that this script able to run on a ubuntu build host hehe. I am just working on a patch to get it running on a "fresh installed" jessie and stretch with "standard system utilities" packages.

so if you @Alexrocksdude are using a Debian jessie build host you need to do the following:

echo "deb http://emdebian.org/tools/debian/ jessie main" > /etc/apt/sources.list.d/crosstools.list
sudo -u nobody wget -O - http://emdebian.org/tools/debian/emdebian-toolchain-archive.key | apt-key add -
dpkg --add-architecture armhf
apt-get update

ps. there is a "gcc-arm-none-eabi" in debian default packages so maybe it works without added the emdebian.org.

thanks for the patch @denismosolov but this only works on ubuntu. hm maybe I can add a debian/ubuntu detection in the script.

hm or I will just update the readme because I do not want to modify configuration files of the build system by the script. (auto installing software with confirmation: Ok, but patching apt sources and importing pgp keys (https is not available for this key lol) to the build OS should not be performed by an untrusted script.

from rpi23-gen-image.

quozl avatar quozl commented on May 29, 2024

i am reviewing prior to using rpi23-gen-image. i was about to try ubuntu, but will focus on debian first. i couldn't find build host specs in the readme.

from rpi23-gen-image.

denismosolov avatar denismosolov commented on May 29, 2024

@drtyhlpr we run the script with the patch on Debian Jessie (inside a Docker container). Here is the Dockerfile:

FROM debian:jessie
MAINTAINER Evgeny Golyshev <[email protected]>

ENV HOME /root

RUN echo  deb http://ftp.ru.debian.org/debian jessie main    > /etc/apt/sources.list \
 && echo  deb http://emdebian.org/tools/debian/ jessie main >> /etc/apt/sources.list \
 && echo "APT::Default-Release \"stable\";" > /etc/apt/apt.conf

RUN dpkg --add-architecture armhf

RUN apt-get clean && apt-get update && apt-get install -y \
    curl \
 && apt-get install -y --force-yes \
    git \
    libpq-dev \
    locales \
    python3 \
    python3-pip \
    supervisor \

    # Dependencies for rpi2-gen-image
    bc \
    binfmt-support \
    debootstrap \
    dosfstools \
    bmap-tools \
    gcc-arm-linux-gnueabihf \
    psmisc \
    qemu-user-static \
    sudo \
    whois \
 && apt-get clean \
 && rm -rf /var/lib/apt/lists/*


RUN mkdir $HOME/.ssh
COPY id_rsa $HOME/.ssh/id_rsa
COPY id_rsa.pub $HOME/.ssh/id_rsa.pub

RUN ssh-keyscan bitbucket.org > $HOME/.ssh/known_hosts \
 && cd \
 && pip3 install --upgrade pip \
 && git clone [email protected]:cusdeb/dominion.git \
 && cd dominion \
 && pip install -r requirements.txt \
 && python3 setup.py install

RUN mkdir /var/dominion \
 && cd /var/dominion \
 && git clone -b dominion https://github.com/denismosolov/rpi2-gen-image.git

VOLUME ["/var/dominion/workspace"]

COPY ./dominion/config/supervisord.conf /etc/supervisor/supervisord.conf
COPY ./dominion/run_dominion.sh /usr/bin/run_dominion.sh
COPY ./dominion/run_worker.sh /usr/bin/run_worker.sh

But I can also run the script with the path on my Ubuntu 16.04. Actually, we are trying to add a web UI to the script https://cusdeb.com/

from rpi23-gen-image.

drtyhlpr avatar drtyhlpr commented on May 29, 2024

wow gj :) maybe I can add a reference to it in the readme. I want to update the "Build dependencies" saying that the bootstrapping was tested on minimal jessie and stretch linux systems together with the crossbuild-essential-armhf toolchain. Building on other Linux build systems or using other compiler toolchains is of course possible too but was not tested.

the problem is my time - i dont have mutch of it currently. I even tought about adding support for other boards:
Arietta G25
Aria G25
Acqua A5
Beaglebones
even x86-arm64 why not ? :)
(because the have a very up-to-date kernel-patch github). I decided not to do it because the constant testing and patching "little changes" I do not have continuesly have time for)

from rpi23-gen-image.

drtyhlpr avatar drtyhlpr commented on May 29, 2024

https://cusdeb.com/ nice idea and page !

some time ago there was a little hype on german it news pages:
http://www.pibakery.org/ - looks nice but very colorfull - maybe you can get some inspiration. (never tested it)

ps. btw what realy makes this script unique (and one of the very very early reasons I created it) is the support of generated rootfs full encrypted images. I took me f$%!ing ages... special the auto-resizing.
The next months I am planing to release further patches to: encrypt the ramfs, hide the dm-crypt keys ouside the ram (neon cpu registers). A "idea-research" topic is still "how to boot the encrypted device with a key or password" using a untrusted unencrypted initramfs environment (to be precise: you don't even know the source of your 1st stage bootloader :)). I had some ideas to store the checksummed bootpartition fs on an write protected external device, auto mounting/syncing it to ramfs on boot...(other ideas why not use network boot - dont know about cryptfs auth there) this will not prevent attacks (like keyloggers) on the cryptfs authentication but will make it as hard of possible without using the beloved TPM (and their vulns) :)

from rpi23-gen-image.

drtyhlpr avatar drtyhlpr commented on May 29, 2024

crossbuild-essential-armhf: information added to readme

from rpi23-gen-image.

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.