前提
- OS: Windoes 10 Pro 1909
- Docker :Docker version 19.03.12, build 48a66213fe
- Docker Image: debian:buster-slim
- asp3_in_zig: 3d0d9f6bb7bdafaafb5a76529cc8af3ade577e77
docker run -it --rm debian:buster-slim
してからの作業。
環境構築
apt-get update
apt-get install -y git curl bzip2 xz-utils make ruby qemu-system-arm gcc-arm-none-eabi
# zig 0.6.0+4e63cae36 を /opt/zig-linux-x86_64-0.6.0+4e63cae36 にインストール
curl -L https://ziglang.org/builds/zig-linux-x86_64-0.6.0+4e63cae36.tar.xz -O
tar xf zig-linux-x86_64-0.6.0+4e63cae36.tar.xz -C /opt
export PATH=$PATH:/opt/zig-linux-x86_64-0.6.0+4e63cae36
# tecsgen 1.7.0 のインストール
curl -L https://www.toppers.jp/download.cgi/tecsgen-1.7.0.tgz -O
tar xf tecsgen-1.7.0.tgz -C /opt
asp3_in_zig の取得とビルド
WORK_DIR=/work
ASP3_DIR=$WORK_DIR/asp3_in_zig
mkdir -p $WORK_DIR
cd $WORK_DIR
git clone https://github.com/toppers/asp3_in_zig.git
cd $ASP3_DIR
git checkout 3d0d9f6bb7bdafaafb5a76529cc8af3ade577e77
mkdir $ASP3_DIR/OBJ-ARM
cd $ASP3_DIR/OBJ-ARM
../configure.rb -G /opt/tecsgen-1.7.0/tecsgen/tecsgen.rb -T ct11mpcore_gcc -O "-DTOPPERS_USE_QEMU"
make
sample1 の実行
root@e5307855eb8c:/work/asp3_in_zig/OBJ-ARM# qemu-system-arm -M realview-eb-mpcore -semihosting -m 128M -nographic -kernel asp
pulseaudio: pa_context_connect() failed
pulseaudio: Reason: Connection refused
pulseaudio: Failed to initialize PA contextaudio: Could not init `pa' audio driver
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM default
alsa: Could not initialize DAC
alsa: Failed to open `default':
alsa: Reason: No such file or directory
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM default
alsa: Could not initialize DAC
alsa: Failed to open `default':
alsa: Reason: No such file or directory
audio: Failed to create voice `lm4549.out'
TOPPERS/ASP3 Kernel in Zig Release 3.6.0 for ARM CT11MPCore (Aug 23 2020, 12:34:09)
Copyright (C) 2000-2003 by Embedded and Real-Time Systems Laboratory
Toyohashi Univ. of Technology, JAPAN
Copyright (C) 2004-2020 by Embedded and Real-Time Systems Laboratory
Graduate School of Informatics, Nagoya Univ., JAPAN
no time event is processed in hrt interrupt.
System logging task is started.
Sample program starts (exinf = 0).
task1 is running (001). |
task1 is running (002). |
task1 is running (003). |
...(snip)
以上。
0 件のコメント:
コメントを投稿