将docker不调整改为Athrill动作,并在日报中记录。docker(103)
将TOPPERS/athrill的使用方式扩展到Docker上的过程如下:
https://qiita.com/kanetugu2018/items/f1368a6da7bdc773cfd9#dockerathrill_asp3的示例执行方法
我尝试运行 docker run,但是出现了错误。
这个部分还未完成,会逐步添加补充。
设备:MacOS 10.13.6
$ docker run -it kanetugu2015/athrill_asp3
Using default tag: latest
Error response from daemon: manifest for kanetugu2015/athrill_asp3:latest not found
无法收到关于docker images的响应。
ps -ax | grep docker
1110 ?? 0:00.01 /Library/PrivilegedHelperTools/com.docker.vmnetd
1120 ?? 0:26.23 /Applications/Docker.app/Contents/MacOS/com.docker.supervisor -watchdog fd:0
1123 ?? 0:33.14 com.docker.driver.amd64-linux -addr fd:3 -debug
1129 ?? 228:14.01 com.docker.hyperkit -A -u -F vms/0/hyperkit.pid -c 2 -m 2048M -s 0:0,hostbridge -s 31,lpc -s 1:0,virtio-vpnkit,path=vpnkit.eth.sock,uuid=ff939260-f90b-4bfb-8d80-bc2a38a2ffa7 -U 8cfa5a74-9a1c-4fdd-a926-f0981fc5377b -s 2:0,ahci-hd,file:///Users/administrator/Library/Containers/com.docker.docker/Data/vms/0/Docker.qcow2?sync=os&buffered=1,format=qcow,qcow-config=discard=true;compact_after_unmaps=262144;keep_erased=262144;runtime_asserts=false -s 3,virtio-sock,guest_cid=3,path=vms/0,guest_forwards=2376;1525 -s 4,ahci-cd,/Applications/Docker.app/Contents/Resources/linuxkit/docker-for-mac.iso -s 5,ahci-cd,vms/0/config.iso -s 6,ahci-cd,/Applications/Docker.app/Contents/Resources/linuxkit/docker.iso -s 7,virtio-rnd -l com1,autopty=vms/0/tty,asl -f bootrom,/Applications/Docker.app/Contents/Resources/uefi/UEFI.fd,,
12509 ttys002 0:00.04 docker images
12743 ttys009 0:00.00 grep docker
KM-S05:~ administrator$ kill -9 1129
KM-S05:~ administrator$ ps -ax | grep docker
1110 ?? 0:00.01 /Library/PrivilegedHelperTools/com.docker.vmnetd
12763 ttys009 0:00.00 grep docker
一旦杀死,然后重新启动。
无论是退出再登录还是重新登录,都会出现相同的错误。
KM-S05:Documents administrator$ docker images
Error response from daemon: Bad response from Docker engine
KM-S05:Documents administrator$ docker images
Error response from daemon: Bad response from Docker engine
经过参考文献中的顶部方法(如下所示)进行重置后,不再出现错误。
解决Docker无法启动的问题
https://qiita.com/tono0123/items/468c36417e6c6a435e06
$ docker pull kanetugu2015/athrill_asp3
Using default tag: latest
Error response from daemon: manifest for kanetugu2015/athrill_asp3:latest not found
$ docker pull kanetugu2015/athrill
Using default tag: latest
Error response from daemon: manifest for kanetugu2015/athrill:latest not found
最初遇到了上述的错误,执行docker images后,操作一直停滞不动。
然后尝试了各种操作,连docker ps也无法接收,
进行了重置/重新启动操作。
tag 不一定是最新的吗?有没有其他选项?
让我感兴趣的是,
https://hub.docker.com/r/kanetugu2015/athrill
kanetugu2015/athrill
By kanetugu2015 • Updated Invalid date
但是
kanetugu2015/athrill_asp3
By kanetugu2015 • Updated 6 days ago
这边应该没问题。然后,如果仔细看Qiita的描述,标签不是latest!
$ docker run -it kanetugu2015/athrill_asp3:ver3.0
Unable to find image 'kanetugu2015/athrill_asp3:ver3.0' locally
ver3.0: Pulling from kanetugu2015/athrill_asp3
d3b478b0a2b0: Pull complete
adadd1c561a4: Pull complete
5f00b46af26a: Pull complete
3d489676f78d: Pull complete
777fbb85af61: Pull complete
ba59bcea44b9: Pull complete
6e2408f5cf01: Pull complete
6808e9877531: Pull complete
f67a9ef32419: Pull complete
1b04ece94c7a: Pull complete
Digest: sha256:f8f0bc8f5ed531817eb11ca33e39213ad5455999d5701fbd61909a01de79d192
Status: Downloaded newer image for kanetugu2015/athrill_asp3:ver3.0
考虑到无法顺利启动的情况,设置了远程登录功能。
# apt update
# apt install net-tools
# apt install telnetd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
telnetd
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 39.3 kB of archives.
After this operation, 110 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu bionic/universe amd64 telnetd amd64 0.17-41 [39.3 kB]
Fetched 39.3 kB in 1s (37.1 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package telnetd.
(Reading database ... 11844 files and directories currently installed.)
Preparing to unpack .../telnetd_0.17-41_amd64.deb ...
Unpacking telnetd (0.17-41) ...
Setting up telnetd (0.17-41) ...
Adding user telnetd to group utmp
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of start.
相比之下,这边并没有进展顺利。我们决定放弃并继续执行。
root@7bfb86f7a7b7:/# cda
root@7bfb86f7a7b7:/athrill/sample/os/asp3/OBJ# athrill2 -c1 -i -m memory.txt -d device_config.txt asp
core id num=1
ROM : START=0x0 SIZE=512
RAM : START=0x5ff7000 SIZE=512
Elf loading was succeeded:0x0 - 0x77c5 : 29.965 KB
Elf loading was succeeded:0x77c8 - 0x100c0 : 0.0 KB
ELF SYMBOL SECTION LOADED:index=16
ELF SYMBOL SECTION LOADED:sym_num=549
ELF STRING TABLE SECTION LOADED:index=17
Not supported:unknown typeref(*) debug_offset=0x60dc
Not supported:unknown typeref(*) debug_offset=0x945b
Not supported:unknown typeref(*) debug_offset=0x9a08
[DBG>[NEXT> pc=0x0 kernel_cfg_asm.S 23
c
[CPU>
TOPPERS/ASP3 Kernel Release 3.2.0 for V850-ESFK3 (Nov 18 2018, 22:33:00)
Copyright (C) 2000-2003 by Embedded and Real-Time Systems Laboratory
Toyohashi Univ. of Technology, JAPAN
Copyright (C) 2004-2017 by Embedded and Real-Time Systems Laboratory
Graduate School of Information Science, Nagoya Univ., JAPAN
System logging task is started.
Sample program starts (exinf = 0).
E_OBJ (-1) reported by `serial_opn_por'.
task1 is running (001). |
task1 is running (002). |
task1 is running (003). |
task1 is running (004). |
task1 is running (005). |
task1 is running (006). |
我移动了。前天收到了不能正常运作的报告。实际上,由于说它没有运作良好,我查看了日报的报告记录,但在日报中没有写下来。当我问他是否写在日报中时,他说没有写。于是,一天晚了,以下是收到的报告。
エラーが沢山出てしまったため、何か足りないものがあり、それを探さなければならない。
DockerにgitコマンドでAthrillを入れるところまではうまくいったが、Athrillを起動すると全てのコマンドが使えなくなり、そもそもAthrillの正常な動きがわからないため、わからなかった。
为什么选择在Docker上进行机器学习?目前正在创建书籍和资源清单(目标100)。
https://qiita.com/kaizen_nagoya/items/ddd12477544bf5ba85e2
我正在進行確認作業。據說一旦運行docker,就會變成習慣先進行git操作。據說在運行後,他們會立即進行git操作,而不閱讀任何Qiita文章。
助言1:文章に「が」を使わずに、文章を終わり、次の文として関連事項を書く。
「在Docker中使用git命令成功安装了Athrill,但在接下来的过程中出现了很多错误。似乎还缺少了一些东西,需要继续寻找它。」
日本語(10):日本语文章的改进和校对
建议2:添加URL。包括原始信息和搜索的网站等。
在学习如何提问之前,也许应该先学习如何进行搜索。
助言3:やったこと、状態を記録する。
「つかえなくなり」画面を表示するか、画面に現れている文字列を表現する。コマンドプロンプトが返ってこないのか、なにもせずにコマントプロンプトだけが帰ってくるかなどの状況がわからない。
「gitコマンドで」のどうコマンドを入れたのかの記録がない。
以下是中国的本地化释义:
【假设验证(73)程序员的“日报、周报、月报、年报”考虑】
请参考以下链接:
https://qiita.com/kaizen_nagoya/items/97ad8ac9217c12c3bb69
建议四:不要使用「为了」。因果关系尚未得到证明。
「そもそもAthrillの正常な動きがわからないため、わからなかった。」
訂正後が下記。
「Athrillの正常な動きがわかっている。上記URLに
「成功すると,以下のathrill起動ログが出力されます.」
と記載されている。」
自分で動かしてから担当に聞いたら、「昨日、動きました」って。
当我问他:“你写了日报吗?”他回答说:“我没有写。”嘻嘻嘻,因为我在GitLab上有记录日报的地方,所以即使之后去修改也可以知道的。
尝试将不顺利的事情逐一仔细记录下来,根据经验法则有50%的可能性会变得顺利起来。
プログラマが心がけるとよい文章の書き方
https://qiita.com/kaizen_nagoya/items/af1e6207ccaa063dafb8
gcc 进行交叉编译
瑞萨 V850 64位 Linux 版 GCC 编译器。
正在确认任务中。
以下の作業はうまくいかなかった。
別途gccのdockerから再出発。
https://qiita.com/kaizen_nagoya/items/42a57f6cbc685c557e2b
ここの作業をコピペして継続している。無駄ではない。
# apt update
# apt install gcc
# apt install g++
# apt install m4
# wget https://gcc-renesas.com/downloads/d.php?f=v850/gcc/14.01/gcc-4.9.2_v850_v14.01.tar.bz2
# wget https://gcc-renesas.com/downloads/d.php?f=v850/newlib/14.01/newlib-2.1.0_v850_v14.01.tar.bz2
# wget https://gcc-renesas.com/downloads/d.php?f=v850/binutils/14.01/binutils-2.24_v850_v14.01.tar.bz2
# wget https://gcc-renesas.com/downloads/d.php?f=v850/gdb/14.01/gdb-7.8.1_v850_v14.01.tar.bz2
# mkdir other; cd other
# wget https://gmplib.org/download/gmp/gmp-6.1.2.tar.bz2
# wget https://www.mpfr.org/mpfr-current/mpfr-4.0.1.tar.bz2
# wget https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz
解凍 –
# tar -zxvf mpc-1.1.0.tar.gz
# tar -jxvf mpfr-4.0.1.tar.bz2
# tar -jxvf gmp-6.1.2.tar.bz2
# cd ..
# tar -jxvf binutils-2.24_v850_v14.01.tar.bz2
# tar -jxvf gcc-4.9.2_v850_v14.01.tar.bz2
# tar -jxvf gdb-7.8.1_v850_v14.01.tar.bz2
# tar -jxvf newlib-2.1.0_v850_v14.01.tar.bz2
# cd other
# cd gmp-6.1.2
# mkdir build
# cd build
# CPPFLAGS=-fexceptions ../configure --prefix=/user/local/other --enable-cxx
...
Version: GNU MP 6.1.2
Host type: haswell-pc-linux-gnu
ABI: 64
Install prefix: /user/local/other
Compiler: gcc
Static libraries: yes
Shared libraries: yes
# make
../gen-psqr.c: In function 'print':
../gen-psqr.c:452:11: internal compiler error: Illegal instruction
(1.0 - sq_res_0x100_fraction) * 100.0,
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
Makefile:1447: recipe for target 'gen-psqr' failed
make: *** [gen-psqr] Error 1
在作业中出现的错误。
编译器内部错误:非法指令
-fno-guess-branch-probability 可以在编译选项中使用,表示禁用猜测分支概率的功能。
在MacOSX上编译gr-citrus的ide4gr出现编译错误。
參考資料 (references) 的相關資源
解决Docker无法启动的问题。
在Ubuntu上启动IPv4 telnetd的方法参见链接:https://qiita.com/fetaro/items/6b4c6a1ca45e1c95d321
当计算机或软件无法按预期运行时,可以采取的10条建议。
[Linux] 壓縮和解壓檔案方法
https://qiita.com/supersaiakujin/items/c6b54e9add21d375161f
这篇文章是基于个人过去经验的个人感受。与我目前所属的组织和工作无关。
文件记录
版本0.01 初稿 20181218 中午
版本0.02 增添報告 20181218 晚上
版本0.03 增加內容 20181219 早上
版本0.04 移至跨編譯器分支文章 20181219 中午
版本0.05 追加 20200104
版本0.06 追加網址 20210711
感谢您阅读至最后一行。
喜欢的话,请关注一下。
非常感谢您读到最后一句话。
请点击喜欢的图标 ? 并关注我,过上快乐的生活。