Giter Club home page Giter Club logo

raspbian-aarch64-builder's Introduction

raspbian-aarch64-builder

基本的には以下のページに沿って進める。

Raspbianのカーネルを64bitにする - Qiita
https://qiita.com/Hiroki_Kawakami/items/6ab4ecc184c368e438f4

手順

ビルド

./build.sh

インストール

loop2のところは使用する環境によっては変わる場合がある。

sudo kpartx -a $SRC_DIR/Downloads/2019-06-20-raspbian-buster.img
mkdir -p $SRC_DIR/mnt/fat32
mkdir -p $SRC_DIR/mnt/ext4
sudo mount -t vfat /dev/mapper/loop2p1 $SRC_DIR/mnt/fat32
sudo mount -t ext4 /dev/mapper/loop2p2 $SRC_DIR/mnt/ext4
cd $SRC_DIR/linux
sudo make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- O=$SRC_DIR/kernel INSTALL_MOD_PATH=$SRC_DIR/mnt/ext4 modules_install
sudo cp $SRC_DIR/kernel/arch/arm64/boot/Image $SRC_DIR/mnt/fat32/
sudo cp $SRC_DIR/kernel/arch/arm64/boot/dts/broadcom/*.dtb $SRC_DIR/mnt/fat32/
sudo cp $SRC_DIR/kernel/arch/arm64/boot/dts/overlays/*.dtb* $SRC_DIR/mnt/fat32/overlays/
echo kernel=Image | sudo tee -a $SRC_DIR/mnt/fat32/config.txt
echo arm_control=0x200 | sudo tee -a $SRC_DIR/mnt/fat32/config.txt
sudo umount $SRC_DIR/mnt/fat32
sudo umount $SRC_DIR/mnt/ext4
sudo kpartx -d /dev/loop2
sudo losetup -d /dev/loop2
cd $SRC_DIR/Downloads
xz -kvz -T0 2019-06-20-raspbian-buster.img

raspbian-aarch64-builder's People

Contributors

tiryoh avatar

Stargazers

 avatar

Watchers

 avatar  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.