---
title: Circle ビルドしてみる
tags: 
author: [Kazuhiro Takahashi](https://www.docswell.com/user/alvstakahashi)
site: [Docswell](https://www.docswell.com/)
thumbnail: https://bcdn.docswell.com/page/GEWG2212J2.jpg?width=480
description: Circle ビルドしてみる by Kazuhiro Takahashi
published: August 02, 26
canonical: https://www.docswell.com/s/alvstakahashi/ZY8G47-2026-08-02-090738
---
# Page. 1

![Page Image](https://bcdn.docswell.com/page/GEWG2212J2.jpg)

CIRCLE ビルドしてみる
RASPBERRY PI１でやってみる例


# Page. 2

![Page Image](https://bcdn.docswell.com/page/47ZLDDP4J3.jpg)

• Getting Startの通り実施すればよい
https://circle-rpi.readthedocs.io/en/47.0/getting-started.html
• 環境設定の確認
$ arm-none-eabi-gcc --version
$ dpkg -l build-essential
・Githubからクローン ブランチチェックアウト
git clone -b preemptive-kernel https://github.com/alvstakahashi/forked-preemptivecircle.git
・コンフィグ（ルートディレクトリで実施）
./configure -r 1 -p arm-none-eabi-
「Raspberry Piのベアメタル環境circleにプリエンプトスケジューラを実装し
た」by 高橋和浩


# Page. 3

![Page Image](https://bcdn.docswell.com/page/YJ6W11MGJV.jpg)

・ライブラリビルド（ルートディレクトリで）
./makeall clean
./makeall
・サンプルビルド（指定のサンプルディレクトリで）
Make
・bootのビルド (bootディレクトリで）
make
「Raspberry Piのベアメタル環境circleにプリエンプトスケジューラを実装し
た」by 高橋和浩


# Page. 4

![Page Image](https://bcdn.docswell.com/page/GJ5M44ZXJ4.jpg)

・SDカードに集めます
SDカードは大きな仕様のSDカードでも Raspberry Pi Imagerでフォーマットすれば使えます。
そのあとファイルコピーを行います。
Bootフォルダに必要なファイルがそろっています。
Boot/READE.md を参照して必要なファイルをコピーします。
Pi1の場合は以下になります。
bootcode.bin
boot loader (not used on Raspberry Pi 4-5)
start.elf
firmware executable for
fixup.dat
relocation information for start.elf
LICENCE.broadcom
firmware license
COPYING.linux
license for the device tree binaries
「Raspberry Piのベアメタル環境circleにプリエンプトスケジューラを実装し
た」by 高橋和浩
Raspberry Pi 1-3


# Page. 5

![Page Image](https://bcdn.docswell.com/page/9E29VVRQ7R.jpg)

さらに
サンプルでビルドした kernel.img
その他以下２つのTXTファイルを用意します
cmdline.txt
logdev=ttyS1 loglevel=4
config.txt
# Raspberry Pi 1 用 config.txt の例
arm_64bit=0
initial_turbo=0
# 必要に応じてUART（シリアル出力）を有効化する場合
enable_uart=1
以上でSDカードをPiにいれて動作させてみましょう。
「Raspberry Piのベアメタル環境circleにプリエンプトスケジューラを実装し
た」by 高橋和浩


