sam9x60 boot

编程入门 行业动态 更新时间:2024-10-18 08:38:24

sam9x60 <a href=https://www.elefans.com/category/jswz/34/1769862.html style=boot"/>

sam9x60 boot

build.sh

#!/bin/bashdocker build --build-arg __USER__=${USER} \-t compile:latest .

dockerfile 根据 github 中的petalinux 构建 docker 环境的脚本修改出来的

FROM ubuntu:18.04ARG __USER__
RUN apt-get update &&  DEBIAN_FRONTEND=noninteractive apt-get install -y -q \build-essential \sudo \tofrodos \iproute2 \gawk \net-tools \expect \libncurses5-dev \tftpd \update-inetd \libssl-dev \flex \bison \libselinux1 \gnupg \wget \socat \gcc-multilib \libsdl1.2-dev \libglib2.0-dev \lib32z1-dev \libgtk2.0-0 \libtinfo5 \xxd \screen \pax \diffstat \xvfb \xterm \texinfo \gzip \unzip \cpio \chrpath \autoconf \lsb-release \libtool \libtool-bin \locales \kmod \git \rsync \bc \openssh-server \libpython3-dev \u-boot-tools \python3 \software-properties-common\&& apt-get clean \&& rm -rf /var/lib/apt/lists/*RUN locale-gen en_US.UTF-8 && update-locale
EXPOSE 22 80
RUN adduser --disabled-password --gecos '' ${__USER__} && \usermod -aG sudo ${__USER__} && \echo "${__USER__} ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
RUN echo "dash dash/sh boolean false" | debconf-set-selections
RUN DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash
COPY ./installEnv.sh /home/${__USER__}
RUN cd /home/${__USER__} && ./installEnv.sh
RUN cd /home/${__USER__} && rm ./installEnv.sh
USER ${__USER__}
ENV HOME /home/${__USER__}
ENV LANG en_US.UTF-8
WORKDIR /home/${__USER__}

加上喜爱的neovim 工具

# neovim software
wget .tar.gz
tar xvzf nvim-linux64.tar.gz
cp -rvf nvim-linux64/* /usr/
rm -rf nvim-linux64.tar.gz
rm -rf nvim-linux64# nodejs neovim must depend
wget .4.0/node-v20.4.0-linux-x64.tar.xz
tar xvJf node-v20.4.0-linux-x64.tar.xz
cp -rf node-v20.4.0-linux-x64/* /usr
rm -rf node-v20.4.0-linux-x64.tar.xz
rm -rf node-v20.4.0-linux-x64

ubuntu18.04

buildroot/package/{fakeroot,dtc} 需要修改

更多推荐

sam9x60 boot

本文发布于:2023-12-03 07:18:17,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1652578.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:boot

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!