概要
wsl(wsl2じゃない)でnervesやってみる。
qemu(x86_64エミュレータ、ラズパイじゃない)でやってみた。
生成したnerves_livebook.imgを、QEMUで起動してテストしてみた。
linux周りを、調査する。
写真
実行結果
$ Toolshed.cmd("cat /proc/mounts")
/dev/root / squashfs ro,relatime 0 0
devtmpfs /dev devtmpfs rw,nosuid,noexec,relatime,size=1024k,nr_inodes=504672,mode=755 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /tmp tmpfs rw,nosuid,nodev,noexec,relatime,size=404064k 0 0
tmpfs /run tmpfs rw,nosuid,nodev,noexec,relatime,size=202032k,mode=755 0 0
/dev/rootdisk0p1 /boot/grub vfat ro,nosuid,nodev,noexec,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/rootdisk0p4 /root ext4 rw,nodev,relatime 0 0
$ Toolshed.cmd("cat /proc/uptime")
6634.86 6507.95
$ Toolshed.cmd("cat /proc/cpuinfo")
processor : 0
vendor_id : AuthenticAMD
cpu family : 15
model : 107
model name : QEMU Virtual CPU version 2.5+
stepping : 1
microcode : 0x1000065
cpu MHz : 2390.493
cache size : 512 KB
physical id : 0
siblings : 1
core id : 0
cpu cores : 1
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good nopl cpuid extd_apicid pni cx16 hypervisor lahf_lm svm 3dnowprefetch vmmcall
bugs : fxsave_leak sysret_ss_attrs null_seg swapgs_fence amd_e400 spectre_v1 spectre_v2
bogomips : 4780.98
TLB size : 1024 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
$ Toolshed.cmd("cat /proc/meminfo")
MemTotal: 4040632 kB
MemFree: 3800688 kB
MemAvailable: 3835508 kB
Buffers: 23788 kB
Cached: 96248 kB
SwapCached: 0 kB
Active: 109868 kB
Inactive: 105888 kB
Active(anon): 84552 kB
Inactive(anon): 52448 kB
Active(file): 25316 kB
Inactive(file): 53440 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 12 kB
Writeback: 0 kB
AnonPages: 95720 kB
Mapped: 62188 kB
Shmem: 52456 kB
KReclaimable: 7472 kB
Slab: 12140 kB
SReclaimable: 7472 kB
SUnreclaim: 4668 kB
KernelStack: 1036 kB
PageTables: 756 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 2020316 kB
Committed_AS: 190324 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 1100 kB
VmallocChunk: 0 kB
Percpu: 188 kB
DirectMap4k: 14196 kB
DirectMap2M: 4182016 kB
$ Toolshed.cmd("cat /proc/sysrq-trigger")
cat: can't open '/proc/sysrq-trigger': No such file or directory
以上。