0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

WSL2でCrosstool-NGをインストール

Last updated at Posted at 2020-05-03

#目的
「BareMetalで遊ぶRaspberryPi」の環境構築で詰まったため備忘録

#環境
・WSL2 (Ubuntu-20.04)
・windows10 (ver2004)

#手順

$sudo git clone https://github.com/crosstool-ng/crosstool-ng
$./bootstrap
$sudo ./configure --prefix=(任意のPATH)
$sudo make
$sudo make install

#注意点
・case-sensitive
 ・WSL上ではcase-sensitive関係でct-ng buildできないことがある
 ・解決策はコマンドプロンプト上で以下のコマンドでcase-sensitiveを有効化

$fsutil set fsutil file setCaseSensitiveInfo (パス) enable

・build中にYou must NOT be root to run crosstool-NGとなる問題
 ・以下、参考資料②「You must NOT be root to run crosstool-NG」を参照

#参考

①「BareMetalで遊ぶRaspberryPi」
https://tatsu-zine.com/books/raspi-bm

②How to solve “You must NOT be root to run crosstool-NG” when using ct-ng?
https://stackoverflow.com/questions/17466017/how-to-solve-you-must-not-be-root-to-run-crosstool-ng-when-using-ct-ng

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?