sam9x60 boot

sam9x60 boot_第1张图片

build.sh

#!/bin/bash

docker build --build-arg __USER__=${USER} \
  -t compile:latest .

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

FROM ubuntu:18.04

ARG __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 https://github.com/neovim/neovim/releases/download/stable/nvim-linux64.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 https://nodejs.org/dist/v20.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} 需要修改

收录命令

烧录Uboot 命令

./sam-ba.exe -p serial:COM9:115200 -b sam9x60-ek -a nandflash -c erase:0x40000:0xC0000 -c write:u-boot-sam9x60ek.bin:0x40000

烧录BOOT 命令

./sam-ba.exe -p serial:COM9:115200 -b sam9x60-ek -a nandflash -c erase::0x40000 -c writeboot:sam9x60ek-nandflashboot-uboot-3.9.0.bin

你可能感兴趣的:(linux)