この文書の現在のバージョンと選択したバージョンの差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
xg_series_devel:clone_sources:start [2018/03/07 14:03] admin |
xg_series_devel:clone_sources:start [2018/03/07 14:10] (現在) admin |
||
---|---|---|---|
ライン 1: | ライン 1: | ||
+ | ====== NuttX のビルド ====== | ||
+ | |||
+ | 開発環境の構築が完了しましたので、NuttX をサンプルのコンフィグでビルドし、どのような雰囲気なのか確認してみます。 | ||
+ | |||
+ | ===== ソースのダウンロード ===== | ||
+ | |||
+ | [[https://gitlab.com/centurysystems/XG-50|Gitlab]] から ''git clone'' します。 | ||
+ | |||
+ | <code> | ||
+ | xubuntu64:~/src/NuttX$ git clone https://gitlab.com/centurysystems/XG-50/nuttx.git | ||
+ | Cloning into 'nuttx'... | ||
+ | remote: Counting objects: 366273, done. | ||
+ | remote: Compressing objects: 100% (65738/65738), done. | ||
+ | remote: Total 366273 (delta 285492), reused 366273 (delta 285492) | ||
+ | Receiving objects: 100% (366273/366273), 82.80 MiB | 2.53 MiB/s, done. | ||
+ | Resolving deltas: 100% (285492/285492), done. | ||
+ | Checking connectivity... done. | ||
+ | </code> | ||
+ | |||
+ | <code> | ||
+ | xubuntu64:~/src/NuttX$ git clone https://gitlab.com/centurysystems/XG-50/apps.git | ||
+ | Cloning into 'apps'... | ||
+ | remote: Counting objects: 35004, done. | ||
+ | remote: Compressing objects: 100% (6622/6622), done. | ||
+ | remote: Total 35004 (delta 28217), reused 35004 (delta 28217) | ||
+ | Receiving objects: 100% (35004/35004), 7.60 MiB | 2.29 MiB/s, done. | ||
+ | Resolving deltas: 100% (28217/28217), done. | ||
+ | Checking connectivity... done. | ||
+ | xubuntu64:~/src/NuttX$ | ||
+ | </code> | ||
+ | |||
+ | \\ | ||
+ | |||
+ | <code> | ||
+ | xubuntu64:~/src/NuttX$ ls -ln | ||
+ | 合計 12 | ||
+ | drwxrwxr-x 20 1000 1000 4096 3月 7 13:59 apps | ||
+ | drwxrwxr-x 23 1000 1000 4096 3月 7 13:58 nuttx | ||
+ | drwxrwxr-x 5 1000 1000 4096 3月 7 12:51 tools | ||
+ | xubuntu64:~/src/NuttX$ | ||
+ | </code> | ||
+ | |||
+ | \\ | ||
+ | |||
+ | ===== ビルド ===== | ||
+ | |||
+ | NuttX のシェル [[http://nuttx.org/Documentation/NuttShell.html|NuttShell]] が動作するだけの、サンプルコンフィグでビルドします。 | ||
+ | |||
+ | <code> | ||
+ | xubuntu64:~/src/NuttX$ cd nuttx/ | ||
+ | xubuntu64:~/src/NuttX/nuttx$ cd tools/ | ||
+ | xubuntu64:~/src/NuttX/nuttx/tools$ ./configure.sh centurysys-xg50/nsh_tickless | ||
+ | Copy files | ||
+ | Refreshing... | ||
+ | xubuntu64:~/src/NuttX/nuttx/tools$ | ||
+ | </code> | ||
+ | |||
+ | <code> | ||
+ | xubuntu64:~/src/NuttX/nuttx/tools$ cd .. | ||
+ | xubuntu64:~/src/NuttX/nuttx$ make | ||
+ | ... 略 ... | ||
+ | CC: binfmt_dumpmodule.c | ||
+ | CC: binfmt_schedunload.c | ||
+ | CC: builtin.c | ||
+ | CC: libbuiltin/libbuiltin_getname.c | ||
+ | CC: libbuiltin/libbuiltin_isavail.c | ||
+ | AR: binfmt_globals.o binfmt_register.o binfmt_unregister.o binfmt_loadmodule.o binfmt_unloadmodule.o binfmt_execmodule.o binfmt_exec.o binfmt_copyargv.o binfmt_dumpmodule.o binfmt_schedunload.o builtin.o libbuiltin_getname.o libbuiltin_isavail.o | ||
+ | make[1]: ディレクトリ '/home/kikuchi/src/NuttX/nuttx/binfmt' から出ます | ||
+ | make[1]: ディレクトリ '/home/kikuchi/src/NuttX/nuttx/arch/arm/src' に入ります | ||
+ | make[2]: ディレクトリ '/home/kikuchi/src/NuttX/nuttx/configs/centurysys-xg50/src' に入ります | ||
+ | CC: stm32_boot.c | ||
+ | CC: stm32_clockconfig.c | ||
+ | stm32_clockconfig.c: In function 'stm32l4_board_clockconfig': | ||
+ | stm32_clockconfig.c:180:2: warning: #warning todo: regulator voltage according to clock freq [-Wcpp] | ||
+ | #warning todo: regulator voltage according to clock freq | ||
+ | ^ | ||
+ | CC: stm32_autoleds.c | ||
+ | CC: stm32_userleds.c | ||
+ | CC: stm32_timer.c | ||
+ | CC: stm32_appinit.c | ||
+ | AR: stm32_boot.o stm32_clockconfig.o stm32_autoleds.o stm32_userleds.o stm32_timer.o stm32_appinit.o | ||
+ | make[2]: ディレクトリ '/home/kikuchi/src/NuttX/nuttx/configs/centurysys-xg50/src' から出ます | ||
+ | LD: nuttx | ||
+ | make[1]: ディレクトリ '/home/kikuchi/src/NuttX/nuttx/arch/arm/src' から出ます | ||
+ | CP: nuttx.hex | ||
+ | CP: nuttx.bin | ||
+ | xubuntu64:~/src/NuttX/nuttx$ | ||
+ | </code> | ||
+ | |||