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

更新

[[公開メモ]]

* VirtualBox に Debian8 を新規インストール [#v69e44c4]

** VirtualBox の作成 [#z343f177]

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

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

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

&ref(virtualbox-new.png,,66%);

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

としました。

** インストールディスクのダウンロード&マウント [#xf5ca6f2]

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

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

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

&ref(virtualbox-mount-iso.png,,66%);

** 起動 [#d9fe58e5]

&ref(virtualbox-run.png,,66%);

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

* u-boot のビルド [#df085745]

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: 12827 (from 2010/06/03), today: 1, yesterday: 1