概要
wsl(wsl2じゃない)でnervesやってみる。
qemu(x86_64エミュレータ、ラズパイじゃない)でやってみた。
生成したnerves_livebook.imgを、QEMUで起動してテストしてみた。
linux周りを、調査する。
写真
実行結果
$ Toolshed.cmd("cat /etc/os-release")
NAME=Nerves
ID=nerves
NERVES_SYSTEM_BR_VERSION=1.24.1
NERVES_SYSTEM_NAME=project
NERVES_SYSTEM_VERSION=1.24.1
NERVES_BUILDROOT_VERSION=2023.05.3
$ Toolshed.cmd("cat /etc/shells")
/bin/ash
$ Toolshed.cmd("ps -wlT")
S UID PID PPID VSZ RSS TTY STIME TIME CMD
S 0 1 0 840 636 tty1 20:41 00:00:01 /sbin/init
S 0 2 0 0 0 0:0 20:41 00:00:00 [kthreadd]
I 0 3 2 0 0 0:0 20:41 00:00:00 [rcu_gp]
I 0 4 2 0 0 0:0 20:41 00:00:00 [rcu_par_gp]
I 0 6 2 0 0 0:0 20:41 00:00:00 [kworker/0:0H-ev]
I 0 7 2 0 0 0:0 20:41 00:00:00 [kworker/u2:0-fl]
I 0 8 2 0 0 0:0 20:41 00:00:00 [kworker/0:1H-ev]
I 0 9 2 0 0 0:0 20:41 00:00:00 [mm_percpu_wq]
S 0 10 2 0 0 0:0 20:41 00:00:00 [ksoftirqd/0]
I 0 11 2 0 0 0:0 20:41 00:00:00 [rcu_preempt]
S 0 12 2 0 0 0:0 20:41 00:00:00 [migration/0]
S 0 13 2 0 0 0:0 20:41 00:00:00 [cpuhp/0]
S 0 14 2 0 0 0:0 20:41 00:00:00 [kdevtmpfs]
I 0 15 2 0 0 0:0 20:41 00:00:00 [netns]
S 0 16 2 0 0 0:0 20:41 00:00:00 [rcu_tasks_kthre]
I 0 17 2 0 0 0:0 20:41 00:00:00 [kworker/0:1-eve]
S 0 18 2 0 0 0:0 20:41 00:00:00 [oom_reaper]
I 0 19 2 0 0 0:0 20:41 00:00:00 [writeback]
S 0 20 2 0 0 0:0 20:41 00:00:00 [kcompactd0]
I 0 23 2 0 0 0:0 20:41 00:00:00 [kworker/u2:2]
I 0 32 2 0 0 0:0 20:41 00:00:00 [kblockd]
I 0 33 2 0 0 0:0 20:41 00:00:00 [ata_sff]
S 0 34 2 0 0 0:0 20:41 00:00:00 [watchdogd]
S 0 35 2 0 0 0:0 20:41 00:00:00 [kswapd0]
I 0 36 2 0 0 0:0 20:41 00:00:00 [acpi_thermal_pm]
I 0 37 2 0 0 0:0 20:41 00:00:00 [kworker/0:2-eve]
I 0 38 2 0 0 0:0 20:41 00:00:00 [ipv6_addrconf]
S 0 39 1 1274m 203m tty1 20:41 00:00:01 /srv/erlang/erts-14.1/bin/beam.smp -Bc -C multi_time_warp -sbwt none -sbwtdcpu
S 0 43 1 1274m 203m tty1 20:41 00:00:00 {erts_ssig_disp} /srv/erlang/erts-14.1/bin/beam.smp -Bc -C multi_time_warp -sb
S 0 44 1 1274m 203m tty1 20:41 00:00:00 {erts_smsg_disp} /srv/erlang/erts-14.1/bin/beam.smp -Bc -C multi_time_warp -sb
S 0 45 1 1274m 203m tty1 20:41 00:00:00 {erts_async_1} /srv/erlang/erts-14.1/bin/beam.smp -Bc -C multi_time_warp -sbwt
S 0 47 1 1274m 203m tty1 20:41 00:01:55 {erts_sched_1} /srv/erlang/erts-14.1/bin/beam.smp -Bc -C multi_time_warp -sbwt
S 0 48 1 1274m 203m tty1 20:41 00:00:00 {erts_dcpus_1} /srv/erlang/erts-14.1/bin/beam.smp -Bc -C multi_time_warp -sbwt
S 0 49 1 1274m 203m tty1 20:41 00:00:02 {erts_dios_1} /srv/erlang/erts-14.1/bin/beam.smp -Bc -C multi_time_warp -sbwt
S 0 50 1 1274m 203m tty1 20:41 00:00:00 {erts_dios_2} /srv/erlang/erts-14.1/bin/beam.smp -Bc -C multi_time_warp -sbwt
S 0 51 1 1274m 203m tty1 20:41 00:00:00 {erts_dios_3} /srv/erlang/erts-14.1/bin/beam.smp -Bc -C multi_time_warp -sbwt
S 0 52 1 1274m 203m tty1 20:41 00:00:00 {erts_dios_4} /srv/erlang/erts-14.1/bin/beam.smp -Bc -C multi_time_warp -sbwt
S 0 53 1 1274m 203m tty1 20:41 00:00:00 {erts_dios_5} /srv/erlang/erts-14.1/bin/beam.smp -Bc -C multi_time_warp -sbwt
S 0 54 1 1274m 203m tty1 20:41 00:00:00 {erts_dios_6} /srv/erlang/erts-14.1/bin/beam.smp -Bc -C multi_time_warp -sbwt
S 0 55 1 1274m 203m tty1 20:41 00:00:00 {erts_dios_7} /srv/erlang/erts-14.1/bin/beam.smp -Bc -C multi_time_warp -sbwt
S 0 56 1 1274m 203m tty1 20:41 00:00:00 {erts_dios_8} /srv/erlang/erts-14.1/bin/beam.smp -Bc -C multi_time_warp -sbwt
S 0 57 1 1274m 203m tty1 20:41 00:00:00 {erts_dios_9} /srv/erlang/erts-14.1/bin/beam.smp -Bc -C multi_time_warp -sbwt
S 0 58 1 1274m 203m tty1 20:41 00:00:00 {erts_dios_10} /srv/erlang/erts-14.1/bin/beam.smp -Bc -C multi_time_warp -sbwt
S 0 59 1 1274m 203m tty1 20:41 00:00:00 {erts_aux_1} /srv/erlang/erts-14.1/bin/beam.smp -Bc -C multi_time_warp -sbwt n
S 0 60 1 1274m 203m tty1 20:41 00:00:00 {erts_poll_0} /srv/erlang/erts-14.1/bin/beam.smp -Bc -C multi_time_warp -sbwt
S 0 62 1 1274m 203m tty1 20:41 00:00:00 {gpio_poller} /srv/erlang/erts-14.1/bin/beam.smp -Bc -C multi_time_warp -sbwt
S 0 40 2 0 0 0:0 20:41 00:00:00 [jbd2/vda4-8]
I 0 41 2 0 0 0:0 20:41 00:00:00 [ext4-rsv-conver]
S 0 46 39 812 584 0:0 20:41 00:00:00 erl_child_setup 1024
S 0 61 46 808 432 0:0 20:41 00:00:01 heart -pid 39 -ht 30
S 0 67 1 896 36 0:0 20:42 00:00:01 /srv/erlang/erts-14.1/bin/epmd -daemon
S 0 68 46 836 500 0:0 20:42 00:00:00 /srv/erlang/lib/nerves_uevent-0.1.0/priv/uevent modprobe
S 0 75 46 804 412 0:0 20:42 00:00:00 /srv/erlang/lib/nerves_logging-0.2.2/priv/kmsg_tailer
S 0 80 46 812 432 0:0 20:42 00:00:00 /srv/erlang/lib/muontrap-1.3.2/priv/muontrap --capture-stderr -- /usr/sbin/ntp
S 0 81 80 1052 480 0:0 20:42 00:00:00 /usr/sbin/ntpd -n -S /srv/erlang/lib/nerves_time-0.4.6/priv/ntpd_script -p 0.p
S 0 82 46 852 420 0:0 20:42 00:00:00 /srv/erlang/lib/vintage_net-0.13.5/priv/if_monitor
S 0 95 46 812 464 0:0 20:42 00:00:00 /srv/erlang/lib/muontrap-1.3.2/priv/muontrap --capture-stderr --capture-output
S 0 96 95 1052 500 0:0 20:42 00:00:00 /sbin/udhcpc -f -i eth0 -x hostname:nerves-3456 -s /srv/erlang/lib/beam_notify
S 0 108 46 1060 440 0:0 20:42 00:00:00 sh -s disksup
S 0 109 46 804 460 0:0 20:42 00:00:01 /srv/erlang/lib/os_mon-2.9/priv/bin/memsup
S 0 110 46 804 448 0:0 20:42 00:00:00 /srv/erlang/lib/os_mon-2.9/priv/bin/cpu_sup
S 0 131 46 1052 452 0:0 21:08 00:00:00 cat /dev/input/event0
S 0 132 46 1052 500 0:0 21:09 00:00:00 cat /dev/input/event1
S 0 133 46 1052 464 0:0 21:09 00:00:00 cat /dev/input/event2
R 0 157 46 1060 508 0:0 22:52 00:00:00 ps -wlT
以上。