z-turn/linux kernel のビルド のバックアップ(No.1)

更新


公開メモ

VirtualBox に Debian8 を新規インストール

VirtualBox の作成

必要なパッケージなどを洗い出すため、まっさらから始めてみます。

ビルドに linux の開発環境が必要なので、Windows 10 64bit 上の Oracle VM VirtualBox に Debian8 (Jessie) をインストールします。

VirtualBox マネージャの [新規] から、Debian8new という VM を作成します。

virtualbox-new.png

  • メモリ4G
  • VDI形式の仮想ハードディスク可変型20G

としました。

インストールディスクのダウンロード&マウント

https://www.debian.org/CD/netinst/

の amd64 というリンクから、debian-8.7.1-amd64-netinst.iso をダウンロード。

VirtualBox "Debian8new" を右クリックし、[設定] から [ストレージ] の [光学ディスクファイルを選択...] で上記 .iso ファイルをマウント

virtualbox-mount-iso.png

起動

virtualbox-run.png

  1. [Install]
  2. Select Language => [Japanese]
  3. 場所の選択 => [日本]
  4. キーボードの設定 => [日本語]
  5. [CD の検出とマウント]
  6. ネットワークの設定
    • ホスト名 => [debian8new]
    • ドメイン名 => []
  7. root のパスワード => [********]
  8. 新しいユーザー
    • 本名 => [Osamu Takeuchi]
    • ユーザ名 => [osamu]
    • パスワード => [********]
  9. パーティショニング => [ディスク全体を使う] - [return] x 3 - [YES]

u-boot のビルド

http://msyksphinz.hatenablog.com/entry/2016/02/27/020000 を見ながら

https://github.com/Xilinx/u-boot-xlnx

LANG:console
$ git clone https://github.com/Xilinx/u-boot-xlnx.git
 Cloning into 'u-boot-xlnx'...
 remote: Counting objects: 455718, done.
 remote: Total 455718 (delta 0), reused 0 (delta 0), pack-reused 455718
 Receiving objects: 100% (455718/455718), 114.43 MiB | 5.26 MiB/s, done.
 Resolving deltas: 100% (364615/364615), done.
 Checking connectivity... done.
$ ls
 u-boot-xlnx/
$ cd u-boot-xlnx
$ git tag
 ..
 xilinx-v2016.2
 xilinx-v2016.3
 xilinx-v2016.4
 xilinx_microblaze
 xilinx_pele_v2010.09
 xilinx_pre_little_endian
 zynq-beta-v2.2
$ git co xilinx-v2016.4
 Note: checking out 'xilinx-v2016.4'.
 
 You are in 'detached HEAD' state. You can look around, make experimental
 changes and commit them, and you can discard any commits you make in this
 state without impacting any branches by performing another checkout.
 
 If you want to create a new branch to retain commits you create, you may
 do so (now or later) by using -b with the checkout command again. Example:
 
   git checkout -b new_branch_name
 
 HEAD is now at 0b94ce5... ARM64: zynqmp: usb1 on zcu100 is not peripheral
$

Counter: 12859 (from 2010/06/03), today: 1, yesterday: 0