fedora
QEMU
RISC-V

fedora の qemu で risc-v

1.png

と 

999 ドル 、 10万円超え

で 高くて購入できない。

落語に うなぎ屋の臭いをかいで 白飯を食った話がある。

これで いこう!

気分は かぎりなく risc-v だ

fedora のインストは

https://report.hot-cafe.net/fedora27-install-4387#Welcome

ですね。

日本語は ibus-mozc

head -15 .bashrc

# .bashrc

#######################################
#export LANG="ja_JP.UTF-8"
export XMODIFIERS="@im=ibus"
export XMODIFIER="@im=ibus"
export GTK_IM_MODULE=ibus
export QT_IM_MODULE=ibus
#export DefaultIMModule=ibus
ibus-daemon &
######################################
# Source global definitions

です。

https://www.aps-web.jp/academy/risc-v/04/

の通りにすれば riscvは いいです。


以下はqemuのバージョンを2から3に上げてます

$ wget https://download.qemu.org/qemu-3.1.0.tar.xz

$ tar Jxf qemu-2.12.0.tar.xz
$ cd qemu-2.12.0/
$ mkdir build
$ cd build
$ ../configure --target-list=riscv64-softmmu --prefix=${RISCV}

しかし ここで
$ ../configure --target-list=riscv64-softmmu --prefix=${RISCV}
ERROR: glib-2.40 gthread-2.0 is required to compile QEMU
がでてめんどうなので

yum install qemu
と 逃げました。

このあと

$ wget https://fedorapeople.org/groups/risc-v/disk-images/vmlinux

$ wget https://fedorapeople.org/groups/risc-v/disk-images/bbl
$ wget https://fedorapeople.org/groups/risc-v/disk-images/stage4-disk.img.xz
$ xzdec -d stage4-disk.img.xz > stage4-disk.img

qemu-system-riscv64 \
-nographic \
-machine virt \
-kernel bbl \
-object rng-random,filename=/dev/urandom,id=rng0 \
-device virtio-rng-device,rng=rng0 \
-append "console=ttyS0 ro root=/dev/vda" \
-device virtio-blk-device,drive=hd0 \
-drive file=stage4-disk.img,format=raw,id=hd0 \
-device virtio-net-device,netdev=usernet \
-netdev user,id=usernet,hostfwd=tcp::10000-:22

これにて以下

             vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

vvvvvvvvvvvvvvvvvvvvvvvvvvvv
rrrrrrrrrrrrr vvvvvvvvvvvvvvvvvvvvvvvvvv
rrrrrrrrrrrrrrrr vvvvvvvvvvvvvvvvvvvvvvvv
rrrrrrrrrrrrrrrrrr vvvvvvvvvvvvvvvvvvvvvvvv
rrrrrrrrrrrrrrrrrr vvvvvvvvvvvvvvvvvvvvvvvv
rrrrrrrrrrrrrrrrrr vvvvvvvvvvvvvvvvvvvvvvvv
rrrrrrrrrrrrrrrr vvvvvvvvvvvvvvvvvvvvvv
rrrrrrrrrrrrr vvvvvvvvvvvvvvvvvvvvvv
rr vvvvvvvvvvvvvvvvvvvvvv
rr vvvvvvvvvvvvvvvvvvvvvvvv rr
rrrr vvvvvvvvvvvvvvvvvvvvvvvvvv rrrr
rrrrrr vvvvvvvvvvvvvvvvvvvvvv rrrrrr
rrrrrrrr vvvvvvvvvvvvvvvvvv rrrrrrrr
rrrrrrrrrr vvvvvvvvvvvvvv rrrrrrrrrr
rrrrrrrrrrrr vvvvvvvvvv rrrrrrrrrrrr
rrrrrrrrrrrrrr vvvvvv rrrrrrrrrrrrrr
rrrrrrrrrrrrrrrr vv rrrrrrrrrrrrrrrr
rrrrrrrrrrrrrrrrrr rrrrrrrrrrrrrrrrrr
rrrrrrrrrrrrrrrrrrrr rrrrrrrrrrrrrrrrrrrr
rrrrrrrrrrrrrrrrrrrrrr rrrrrrrrrrrrrrrrrrrrrr

INSTRUCTION SETS WANT TO BE FREE
OF: fdt: Ignoring memory range 0x80000000 - 0x80200000
Linux version 4.19.0-rc8 (rjones@five.home.annexia.org) (gcc version 7.3.1 20180303 (Red Hat 7.3.1-5) (GCC)) #1 SMP Wed Oct 17 15:11:25 UTC 2018
bootconsole [early0] enabled
initrd not found or empty - disabling initrd
Zone ranges:
DMA32 [mem 0x0000000080200000-0x0000000087ffffff]
Normal [mem 0x0000000088000000-0x0000087fffffffff]
Movable zone start for each node
Early memory node ranges
node 0: [mem 0x0000000080200000-0x0000000087ffffff]
Initmem setup node 0 [mem 0x0000000080200000-0x0000000087ffffff]
software IO TLB: mapped [mem 0x83e3d000-0x87e3d000] (64MB)
elf_hwcap is 0x112d
percpu: Embedded 17 pages/cpu @(____ptrval____) s29976 r8192 d31464 u69632
Built 1 zonelists, mobility grouping on. Total pages: 31815
Kernel command line: console=ttyS0 ro root=/dev/vda
Dentry cache hash table entries: 16384 (order: 5, 131072 bytes)
Inode-cache hash table entries: 8192 (order: 4, 65536 bytes)
Sorting __ex_table...
Memory: 50728K/129024K available (6721K kernel code, 385K rwdata, 2108K rodata, 217K init, 823K bss, 78296K reserved, 0K cma-reserved)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
rcu: Hierarchical RCU implementation.
rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
NR_IRQS: 0, nr_irqs: 0, preallocated irqs: 0
plic: mapped 10 interrupts to 1 (out of 2) handlers.
clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x24e6a1710, max_idle_ns: 440795202120 ns
Console: colour dummy device 80x25
Calibrating delay loop (skipped), value calculated using timer frequency.. 20.00 BogoMIPS (lpj=40000)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes)
rcu: Hierarchical SRCU implementation.
smp: Bringing up secondary CPUs ...
smp: Brought up 1 node, 1 CPU
devtmpfs: initialized
random: get_random_u32 called from bucket_table_alloc+0x76/0x17c with crng_init=0
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
futex hash table entries: 256 (order: 2, 16384 bytes)
xor: measuring software checksum speed
8regs : 885.000 MB/sec
8regs_prefetch: 894.000 MB/sec
32regs : 845.000 MB/sec
32regs_prefetch: 883.000 MB/sec
xor: using function: 8regs_prefetch (894.000 MB/sec)
NET: Registered protocol family 16
raid6: int64x1 gen() 412 MB/s
raid6: int64x1 xor() 284 MB/s
raid6: int64x2 gen() 526 MB/s
raid6: int64x2 xor() 145 MB/s
raid6: int64x4 gen() 975 MB/s
raid6: int64x4 xor() 593 MB/s
raid6: int64x8 gen() 442 MB/s
raid6: int64x8 xor() 320 MB/s
raid6: using algorithm int64x4 gen() 975 MB/s
raid6: .... xor() 593 MB/s, rmw enabled
raid6: using intx1 recovery algorithm
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
clocksource: Switched to clocksource riscv_clocksource
NET: Registered protocol family 2
tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
UDP hash table entries: 256 (order: 1, 8192 bytes)
UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
workingset: timestamp_bits=62 max_order=14 bucket_order=0
NFS: Registering the id_resolver key type
Key type id_resolver registered
Key type id_legacy registered
nfs4filelayout_init: NFSv4 File Layout Driver Registering...
SGI XFS with ACLs, security attributes, no debug enabled
NET: Registered protocol family 38
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
io scheduler mq-deadline registered
io scheduler kyber registered
switchtec: loaded.
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
console [ttyS0] disabled
10000000.uart: ttyS0 at MMIO 0x10000000 (irq = 10, base_baud = 230400) is a 16550A
OF: fdt: Ignoring memory range 0x80000000 - 0x80200000
Linux version 4.19.0-rc8 (rjones@five.home.annexia.org) (gcc version 7.3.1 20180303 (Red Hat 7.3.1-5) (GCC)) #1 SMP Wed Oct 17 15:11:25 UTC 2018
bootconsole [early0] enabled
initrd not found or empty - disabling initrd
Zone ranges:
DMA32 [mem 0x0000000080200000-0x0000000087ffffff]
Normal [mem 0x0000000088000000-0x0000087fffffffff]
Movable zone start for each node
Early memory node ranges
node 0: [mem 0x0000000080200000-0x0000000087ffffff]
Initmem setup node 0 [mem 0x0000000080200000-0x0000000087ffffff]
software IO TLB: mapped [mem 0x83e3d000-0x87e3d000] (64MB)
elf_hwcap is 0x112d
percpu: Embedded 17 pages/cpu @(____ptrval____) s29976 r8192 d31464 u69632
Built 1 zonelists, mobility grouping on. Total pages: 31815
Kernel command line: console=ttyS0 ro root=/dev/vda
Dentry cache hash table entries: 16384 (order: 5, 131072 bytes)
Inode-cache hash table entries: 8192 (order: 4, 65536 bytes)
Sorting __ex_table...
Memory: 50728K/129024K available (6721K kernel code, 385K rwdata, 2108K rodata, 217K init, 823K bss, 78296K reserved, 0K cma-reserved)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
rcu: Hierarchical RCU implementation.
rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
NR_IRQS: 0, nr_irqs: 0, preallocated irqs: 0
plic: mapped 10 interrupts to 1 (out of 2) handlers.
clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x24e6a1710, max_idle_ns: 440795202120 ns
Console: colour dummy device 80x25
Calibrating delay loop (skipped), value calculated using timer frequency.. 20.00 BogoMIPS (lpj=40000)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes)
rcu: Hierarchical SRCU implementation.
smp: Bringing up secondary CPUs ...
smp: Brought up 1 node, 1 CPU
devtmpfs: initialized
random: get_random_u32 called from bucket_table_alloc+0x76/0x17c with crng_init=0
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
futex hash table entries: 256 (order: 2, 16384 bytes)
xor: measuring software checksum speed
8regs : 885.000 MB/sec
8regs_prefetch: 894.000 MB/sec
32regs : 845.000 MB/sec
32regs_prefetch: 883.000 MB/sec
xor: using function: 8regs_prefetch (894.000 MB/sec)
NET: Registered protocol family 16
raid6: int64x1 gen() 412 MB/s
raid6: int64x1 xor() 284 MB/s
raid6: int64x2 gen() 526 MB/s
raid6: int64x2 xor() 145 MB/s
raid6: int64x4 gen() 975 MB/s
raid6: int64x4 xor() 593 MB/s
raid6: int64x8 gen() 442 MB/s
raid6: int64x8 xor() 320 MB/s
raid6: using algorithm int64x4 gen() 975 MB/s
raid6: .... xor() 593 MB/s, rmw enabled
raid6: using intx1 recovery algorithm
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
clocksource: Switched to clocksource riscv_clocksource
NET: Registered protocol family 2
tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
UDP hash table entries: 256 (order: 1, 8192 bytes)
UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
workingset: timestamp_bits=62 max_order=14 bucket_order=0
NFS: Registering the id_resolver key type
Key type id_resolver registered
Key type id_legacy registered
nfs4filelayout_init: NFSv4 File Layout Driver Registering...
SGI XFS with ACLs, security attributes, no debug enabled
NET: Registered protocol family 38
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
io scheduler mq-deadline registered
io scheduler kyber registered
switchtec: loaded.
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
console [ttyS0] disabled
10000000.uart: ttyS0 at MMIO 0x10000000 (irq = 10, base_baud = 230400) is a 16550A
console [ttyS0] enabled
console [ttyS0] enabled
[drm] radeon kernel modesetting enabled.
[drm] radeon kernel modesetting enabled.
loop: module loaded
loop: module loaded
virtio_blk virtio1: [vda] 8388608 512-byte logical blocks (4.29 GB/4.00 GiB)
virtio_blk virtio1: [vda] 8388608 512-byte logical blocks (4.29 GB/4.00 GiB)
libphy: Fixed MDIO Bus: probed
libphy: Fixed MDIO Bus: probed
e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
ehci-pci: EHCI PCI platform driver
ehci-platform: EHCI generic platform driver
ehci-platform: EHCI generic platform driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ohci-pci: OHCI PCI platform driver
ohci-pci: OHCI PCI platform driver
ohci-platform: OHCI generic platform driver
ohci-platform: OHCI generic platform driver
usbcore: registered new interface driver uas
usbcore: registered new interface driver uas
usbcore: registered new interface driver usb-storage
usbcore: registered new interface driver usb-storage
mousedev: PS/2 mouse device common for all mice
mousedev: PS/2 mouse device common for all mice
device-mapper: uevent: version 1.0.3
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.39.0-ioctl (2018-04-03) initialised: dm-devel@redhat.com
device-mapper: ioctl: 4.39.0-ioctl (2018-04-03) initialised: dm-devel@redhat.com
device-mapper: multipath round-robin: version 1.2.0 loaded
device-mapper: multipath round-robin: version 1.2.0 loaded
device-mapper: multipath queue-length: version 0.2.0 loaded
device-mapper: multipath queue-length: version 0.2.0 loaded
device-mapper: multipath service-time: version 0.3.0 loaded
device-mapper: multipath service-time: version 0.3.0 loaded
device-mapper: dm-log-userspace: version 1.3.0 loaded
device-mapper: dm-log-userspace: version 1.3.0 loaded
device-mapper: raid: Loading target version 1.14.0
device-mapper: raid: Loading target version 1.14.0
usbcore: registered new interface driver usbhid
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
usbhid: USB HID core driver
NET: Registered protocol family 10
NET: Registered protocol family 10
Segment Routing with IPv6
Segment Routing with IPv6
sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
NET: Registered protocol family 17
NET: Registered protocol family 17
bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
Key type dns_resolver registered
Key type dns_resolver registered
bootconsole [early0] uses init memory and must be disabled even before the real one is ready
bootconsole [early0] uses init memory and must be disabled even before the real one is ready
bootconsole [early0] disabled
bootconsole [early0] disabled
md: Waiting for all devices to be available before autodetect
md: If you don't use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
EXT4-fs (vda): mounted filesystem with ordered data mode. Opts: (null)
VFS: Mounted root (ext4 filesystem) readonly on device 253:0.
Freeing unused kernel memory: 216K
This architecture does not have kernel memory protection.
Run /sbin/init as init process
systemd[1]: System time before build time, advancing clock.
systemd[1]: systemd 237 running in system mode. (+PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP +GCRYPT -GNUTLS +ACL +XZ +LZ4 -SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=hybrid)
systemd[1]: Detected architecture riscv64.

Welcome to Fedora 28 (Rawhide)!

systemd[1]: Set hostname to <stage4.fedoraproject.org>.
random: fast init done
random: systemd: uninitialized urandom read (16 bytes read)
systemd[1]: Created slice User and Session Slice.
[ OK ] Created slice User and Session Slice.
random: systemd: uninitialized urandom read (16 bytes read)
systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ OK ] Started Forward Password Requests to Wall Directory Watch.
random: systemd: uninitialized urandom read (16 bytes read)
systemd[1]: Created slice System Slice.
[ OK ] Created slice System Slice.
systemd[1]: Created slice system-serial\x2dgetty.slice.
[ OK ] Created slice system-serial\x2dgetty.slice.
systemd[1]: Listening on Journal Socket.
[ OK ] Listening on Journal Socket.
systemd[1]: Mounting POSIX Message Queue File System...
Mounting POSIX Message Queue File System...
systemd[1]: Starting Apply Kernel Variables...
Starting Apply Kernel Variables...
Starting Setup Virtual Console...
[ OK ] Created slice system-sshd\x2dkeygen.slice.
[ OK ] Reached target Remote File Systems.
[ OK ] Created slice system-getty.slice.
[ OK ] Listening on udev Kernel Socket.
[ OK ] Listening on Journal Socket (/dev/log).
Starting Journal Service...
[ OK ] Reached target Slices.
[ OK ] Listening on Process Core Dump Socket.
[ OK ] Reached target Swap.
[ OK ] Listening on Network Service Netlink Socket.
Mounting Temporary Directory (/tmp)...
Starting Remount Root and Kernel File Systems...
[ OK ] Listening on udev Control Socket.
Starting udev Coldplug all Devices...
[ OK ] Listening on /dev/initctl Compatibility Named Pipe.
[ OK ] Mounted POSIX Message Queue File System.
[ OK ] Started Apply Kernel Variables.
EXT4-fs (vda): re-mounted. Opts: (null)
[ OK ] Started Setup Virtual Console.
[ OK ] Started Journal Service.
[ OK ] Mounted Temporary Directory (/tmp).
[ OK ] Started Remount Root and Kernel File Systems.
Starting Rebuild Hardware Database...
Starting Create System Users...
Starting Load/Save Random Seed...
Starting Flush Journal to Persistent Storage...
[ OK ] Started Load/Save Random Seed.
systemd-journald[65]: Received request to flush runtime journal from PID 1
[ OK ] Started Create System Users.
Starting Create Static Device Nodes in /dev...
[ OK ] Started Flush Journal to Persistent Storage.
[ OK ] Started Create Static Device Nodes in /dev.
[ OK ] Reached target Local File Systems (Pre).
[ OK ] Reached target Local File Systems.
Starting Rebuild Dynamic Linker Cache...
Starting Tell Plymouth To Write Out Runtime Data...
Starting Mark the need to relabel after reboot...
Starting Restore /run/initramfs on shutdown...
Starting Rebuild Journal Catalog...
Starting Create Volatile Files and Directories...
[ OK ] Started Tell Plymouth To Write Out Runtime Data.
[ OK ] Started Mark the need to relabel after reboot.
[ OK ] Started Restore /run/initramfs on shutdown.
[ OK ] Started Rebuild Journal Catalog.
[ OK ] Started Create Volatile Files and Directories.
Starting Update UTMP about System Boot/Shutdown...
[ OK ] Started Rebuild Dynamic Linker Cache.
[ OK ] Started Update UTMP about System Boot/Shutdown.
[ OK ] Started udev Coldplug all Devices.
[ OK ] Started Rebuild Hardware Database.
Starting Update is Completed...
Starting udev Kernel Device Manager...
[ OK ] Started Update is Completed.
[ OK ] Started udev Kernel Device Manager.
Starting Show Plymouth Boot Screen...
[ OK ] Reached target System Initialization.
[ OK ] Started dnf makecache timer.
[ OK ] Listening on D-Bus System Message Bus Socket.
[ OK ] Listening on SSSD Secrets Service responder socket.
[ OK ] Reached target Sockets.
[ OK ] Started Daily Cleanup of Temporary Directories.
[ OK ] Reached target Timers.
[ OK ] Started Show Plymouth Boot Screen.
[ OK ] Started Forward Password Requests to Plymouth Directory Watch.
[ OK ] Reached target Paths.
[ OK ] Reached target Basic System.
Starting OpenSSH ecdsa Server Key Generation...
Starting OpenSSH ed25519 Server Key Generation...
[ OK ] Started D-Bus System Message Bus.
Starting firewalld - dynamic firewall daemon...
Starting System Security Services Daemon...
Starting OpenSSH rsa Server Key Generation...
[ OK ] Started OpenSSH ecdsa Server Key Generation.
[ OK ] Started OpenSSH ed25519 Server Key Generation.
[ OK ] Found device /dev/ttyS0.
[ OK ] Started System Security Services Daemon.
[ OK ] Started OpenSSH rsa Server Key Generation.
[ **] A start job is running for firewall…ewall daemon (1min 15s / 1min 56s)random: crng init done
random: 7 urandom warning(s) missed due to ratelimiting
[FAILED] Failed to start firewalld - dynamic firewall daemon.
See 'systemctl status firewalld.service' for details.
[ OK ] Reached target Network (Pre).
Starting Network Manager...
Starting Network Service...
[ OK ] Reached target User and Group Name Lookups.
Starting Login Service...
[ OK ] Reached target sshd-keygen.target.
[ OK ] Started Network Service.
Starting Wait for Network to be Configured...
[ OK ] Started Wait for Network to be Configured.
[FAILED] Failed to start Login Service.
See 'systemctl status systemd-logind.service' for details.
[ OK ] Stopped Login Service.
Starting Login Service...
[FAILED] Failed to start Network Manager.
See 'systemctl status NetworkManager.service' for details.
[DEPEND] Dependency failed for Network Manager Wait Online.
[ OK ] Reached target Network.
Starting Permit User Sessions...
Starting OpenSSH server daemon...
[ OK ] Reached target Network is Online.
[ OK ] Started Set the date and time.
[ OK ] Stopped Network Manager.
Starting Network Manager...
[ OK ] Started Permit User Sessions.
Starting Hold until boot process finishes up...
Starting Terminate Plymouth Boot Screen...

Welcome to the Fedora/RISC-V stage4 disk image
https://fedoraproject.org/wiki/Architectures/RISC-V

Build date: 2018-04-06 08:24

Kernel 4.19.0-rc8 on an riscv64 (ttyS0)

The root password is ‘riscv’.

To install new packages use ‘dnf install ...’

If DNS isn’t working, try editing ‘/etc/yum.repos.d/local.repo’.

For updates and latest information read:
https://fedorapeople.org/groups/risc-v/disk-images/readme.txt

stage4 login: root
riPassword:
Login incorrect

stage4 login: root
Password:

Last failed login: Fri Feb 22 07:19:10 UTC 2019 on ttyS0
There was 1 failed login attempt since the last successful login.
[root@stage4 ~]#

ともあれ

[FAILED] Failed to start firewalld - dynamic firewall daemon

と ここは失敗だ。


systemctl disable firewalld.service

Removed /etc/systemd/system/multi-user.target.wants/firewalld.service.

Removed /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.

すると警告なしで 立ち上がってくれる

そして

ip a show 

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 52:54:00:12:34:56 brd ff:ff:ff:ff:ff:ff
inet 10.0.2.15/24 brd 10.0.2.255 scope global dynamic eth0
valid_lft 33751134sec preferred_lft 33751134sec
inet6 fec0::ec40:96c9:ca5d:dce9/64 scope site dynamic noprefixroute
valid_lft 86374sec preferred_lft 14374sec
inet6 fec0::5054:ff:fe12:3456/64 scope site dynamic mngtmpaddr noprefixroute
valid_lft 86375sec preferred_lft 14375sec
inet6 fe80::5054:ff:fe12:3456/64 scope link noprefixroute
valid_lft forever preferred_lft forever
3: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1000
link/sit 0.0.0.0 brd 0.0.0.0

自分はfedora初心者初心者なので

https://qiita.com/suzutsuki0220/items/dc72df23f1e1b1cda5f2

を参考にさせてもらった

1) yum search XYZ

2) yum clean all

yum check-update

yum update

3) https://wiki.qemu.org/Documentation/Platforms/RISCV

のほうがいいかも

もちろん

systemctl disable firewalld.serviceは したあとだ

[riscv@localhost RISC-V_____]$ ./qemu-riscv.bat-3      

vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
vvvvvvvvvvvvvvvvvvvvvvvvvvvv
rrrrrrrrrrrrr vvvvvvvvvvvvvvvvvvvvvvvvvv
rrrrrrrrrrrrrrrr vvvvvvvvvvvvvvvvvvvvvvvv
rrrrrrrrrrrrrrrrrr vvvvvvvvvvvvvvvvvvvvvvvv
rrrrrrrrrrrrrrrrrr vvvvvvvvvvvvvvvvvvvvvvvv
rrrrrrrrrrrrrrrrrr vvvvvvvvvvvvvvvvvvvvvvvv
rrrrrrrrrrrrrrrr vvvvvvvvvvvvvvvvvvvvvv
rrrrrrrrrrrrr vvvvvvvvvvvvvvvvvvvvvv
rr vvvvvvvvvvvvvvvvvvvvvv
rr vvvvvvvvvvvvvvvvvvvvvvvv rr
rrrr vvvvvvvvvvvvvvvvvvvvvvvvvv rrrr
rrrrrr vvvvvvvvvvvvvvvvvvvvvv rrrrrr
rrrrrrrr vvvvvvvvvvvvvvvvvv rrrrrrrr
rrrrrrrrrr vvvvvvvvvvvvvv rrrrrrrrrr
rrrrrrrrrrrr vvvvvvvvvv rrrrrrrrrrrr
rrrrrrrrrrrrrr vvvvvv rrrrrrrrrrrrrr
rrrrrrrrrrrrrrrr vv rrrrrrrrrrrrrrrr
rrrrrrrrrrrrrrrrrr rrrrrrrrrrrrrrrrrr
rrrrrrrrrrrrrrrrrrrr rrrrrrrrrrrrrrrrrrrr
rrrrrrrrrrrrrrrrrrrrrr rrrrrrrrrrrrrrrrrrrrrr

INSTRUCTION SETS WANT TO BE FREE
OF: fdt: Ignoring memory range 0x80000000 - 0x80200000
Linux version 4.19.0-rc8 (rjones@five.home.annexia.org) (gcc version 7.3.1 20180303 (Red Hat 7.3.1-5) (GCC)) #1 SMP Wed Oct 17 15:11:25 UTC 2018
bootconsole [early0] enabled
initrd not found or empty - disabling initrd
Zone ranges:
DMA32 [mem 0x0000000080200000-0x00000000ffffffff]
Normal [mem 0x0000000100000000-0x000017ffffffffff]
Movable zone start for each node
Early memory node ranges
node 0: [mem 0x0000000080200000-0x000000017fffffff]
Initmem setup node 0 [mem 0x0000000080200000-0x000000017fffffff]
software IO TLB: mapped [mem 0xfbfff000-0xfffff000] (64MB)
elf_hwcap is 0x112d
percpu: Embedded 17 pages/cpu @(____ptrval____) s29976 r8192 d31464 u69632
Built 1 zonelists, mobility grouping on. Total pages: 1033735
Kernel command line: console=ttyS0 ro root=/dev/vda
Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
Sorting __ex_table...
Memory: 4052244K/4192256K available (6721K kernel code, 385K rwdata, 2108K rodata, 217K init, 823K bss, 140012K reserved, 0K cma-reserved)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
rcu: Hierarchical RCU implementation.
rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
NR_IRQS: 0, nr_irqs: 0, preallocated irqs: 0
plic: mapped 10 interrupts to 4 (out of 8) handlers.
clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x24e6a1710, max_idle_ns: 440795202120 ns
Console: colour dummy device 80x25
Calibrating delay loop (skipped), value calculated using timer frequency.. 20.00 BogoMIPS (lpj=40000)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 8192 (order: 4, 65536 bytes)
Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes)
rcu: Hierarchical SRCU implementation.
smp: Bringing up secondary CPUs ...
smp: Brought up 1 node, 4 CPUs
devtmpfs: initialized
random: get_random_u32 called from bucket_table_alloc+0x76/0x17c with crng_init=0
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
futex hash table entries: 1024 (order: 4, 65536 bytes)
xor: measuring software checksum speed
8regs : 1497.000 MB/sec
8regs_prefetch: 1428.000 MB/sec
32regs : 1368.000 MB/sec
32regs_prefetch: 1376.000 MB/sec
xor: using function: 8regs (1497.000 MB/sec)
NET: Registered protocol family 16
raid6: int64x1 gen() 574 MB/s
raid6: int64x1 xor() 259 MB/s
raid6: int64x2 gen() 506 MB/s
raid6: int64x2 xor() 94 MB/s
raid6: int64x4 gen() 558 MB/s
raid6: int64x4 xor() 351 MB/s
raid6: int64x8 gen() 245 MB/s
raid6: int64x8 xor() 173 MB/s
raid6: using algorithm int64x1 gen() 574 MB/s
raid6: .... xor() 259 MB/s, rmw enabled
raid6: using intx1 recovery algorithm
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
clocksource: Switched to clocksource riscv_clocksource
NET: Registered protocol family 2
tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes)
TCP established hash table entries: 32768 (order: 6, 262144 bytes)
TCP bind hash table entries: 32768 (order: 7, 524288 bytes)
TCP: Hash tables configured (established 32768 bind 32768)
UDP hash table entries: 2048 (order: 4, 65536 bytes)
UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
workingset: timestamp_bits=62 max_order=20 bucket_order=0
NFS: Registering the id_resolver key type
Key type id_resolver registered
Key type id_legacy registered
nfs4filelayout_init: NFSv4 File Layout Driver Registering...
SGI XFS with ACLs, security attributes, no debug enabled
NET: Registered protocol family 38
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
io scheduler mq-deadline registered
io scheduler kyber registered
switchtec: loaded.
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
console [ttyS0] disabled
10000000.uart: ttyS0 at MMIO 0x10000000 (irq = 10, base_baud = 230400) is a 16550A
OF: fdt: Ignoring memory range 0x80000000 - 0x80200000
Linux version 4.19.0-rc8 (rjones@five.home.annexia.org) (gcc version 7.3.1 20180303 (Red Hat 7.3.1-5) (GCC)) #1 SMP Wed Oct 17 15:11:25 UTC 2018
bootconsole [early0] enabled
initrd not found or empty - disabling initrd
Zone ranges:
DMA32 [mem 0x0000000080200000-0x00000000ffffffff]
Normal [mem 0x0000000100000000-0x000017ffffffffff]
Movable zone start for each node
Early memory node ranges
node 0: [mem 0x0000000080200000-0x000000017fffffff]
Initmem setup node 0 [mem 0x0000000080200000-0x000000017fffffff]
software IO TLB: mapped [mem 0xfbfff000-0xfffff000] (64MB)
elf_hwcap is 0x112d
percpu: Embedded 17 pages/cpu @(____ptrval____) s29976 r8192 d31464 u69632
Built 1 zonelists, mobility grouping on. Total pages: 1033735
Kernel command line: console=ttyS0 ro root=/dev/vda
Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
Sorting __ex_table...
Memory: 4052244K/4192256K available (6721K kernel code, 385K rwdata, 2108K rodata, 217K init, 823K bss, 140012K reserved, 0K cma-reserved)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
rcu: Hierarchical RCU implementation.
rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
NR_IRQS: 0, nr_irqs: 0, preallocated irqs: 0
plic: mapped 10 interrupts to 4 (out of 8) handlers.
clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x24e6a1710, max_idle_ns: 440795202120 ns
Console: colour dummy device 80x25
Calibrating delay loop (skipped), value calculated using timer frequency.. 20.00 BogoMIPS (lpj=40000)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 8192 (order: 4, 65536 bytes)
Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes)
rcu: Hierarchical SRCU implementation.
smp: Bringing up secondary CPUs ...
smp: Brought up 1 node, 4 CPUs
devtmpfs: initialized
random: get_random_u32 called from bucket_table_alloc+0x76/0x17c with crng_init=0
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
futex hash table entries: 1024 (order: 4, 65536 bytes)
xor: measuring software checksum speed
8regs : 1497.000 MB/sec
8regs_prefetch: 1428.000 MB/sec
32regs : 1368.000 MB/sec
32regs_prefetch: 1376.000 MB/sec
xor: using function: 8regs (1497.000 MB/sec)
NET: Registered protocol family 16
raid6: int64x1 gen() 574 MB/s
raid6: int64x1 xor() 259 MB/s
raid6: int64x2 gen() 506 MB/s
raid6: int64x2 xor() 94 MB/s
raid6: int64x4 gen() 558 MB/s
raid6: int64x4 xor() 351 MB/s
raid6: int64x8 gen() 245 MB/s
raid6: int64x8 xor() 173 MB/s
raid6: using algorithm int64x1 gen() 574 MB/s
raid6: .... xor() 259 MB/s, rmw enabled
raid6: using intx1 recovery algorithm
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
clocksource: Switched to clocksource riscv_clocksource
NET: Registered protocol family 2
tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes)
TCP established hash table entries: 32768 (order: 6, 262144 bytes)
TCP bind hash table entries: 32768 (order: 7, 524288 bytes)
TCP: Hash tables configured (established 32768 bind 32768)
UDP hash table entries: 2048 (order: 4, 65536 bytes)
UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
workingset: timestamp_bits=62 max_order=20 bucket_order=0
NFS: Registering the id_resolver key type
Key type id_resolver registered
Key type id_legacy registered
nfs4filelayout_init: NFSv4 File Layout Driver Registering...
SGI XFS with ACLs, security attributes, no debug enabled
NET: Registered protocol family 38
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
io scheduler mq-deadline registered
io scheduler kyber registered
switchtec: loaded.
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
console [ttyS0] disabled
10000000.uart: ttyS0 at MMIO 0x10000000 (irq = 10, base_baud = 230400) is a 16550A
console [ttyS0] enabled
console [ttyS0] enabled
[drm] radeon kernel modesetting enabled.
[drm] radeon kernel modesetting enabled.
loop: module loaded
loop: module loaded
virtio_blk virtio1: [vda] 8388608 512-byte logical blocks (4.29 GB/4.00 GiB)
virtio_blk virtio1: [vda] 8388608 512-byte logical blocks (4.29 GB/4.00 GiB)
libphy: Fixed MDIO Bus: probed
libphy: Fixed MDIO Bus: probed
e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
ehci-pci: EHCI PCI platform driver
ehci-platform: EHCI generic platform driver
ehci-platform: EHCI generic platform driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ohci-pci: OHCI PCI platform driver
ohci-pci: OHCI PCI platform driver
ohci-platform: OHCI generic platform driver
ohci-platform: OHCI generic platform driver
usbcore: registered new interface driver uas
usbcore: registered new interface driver uas
usbcore: registered new interface driver usb-storage
usbcore: registered new interface driver usb-storage
mousedev: PS/2 mouse device common for all mice
mousedev: PS/2 mouse device common for all mice
device-mapper: uevent: version 1.0.3
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.39.0-ioctl (2018-04-03) initialised: dm-devel@redhat.com
device-mapper: ioctl: 4.39.0-ioctl (2018-04-03) initialised: dm-devel@redhat.com
device-mapper: multipath round-robin: version 1.2.0 loaded
device-mapper: multipath round-robin: version 1.2.0 loaded
device-mapper: multipath queue-length: version 0.2.0 loaded
device-mapper: multipath queue-length: version 0.2.0 loaded
device-mapper: multipath service-time: version 0.3.0 loaded
device-mapper: multipath service-time: version 0.3.0 loaded
device-mapper: dm-log-userspace: version 1.3.0 loaded
device-mapper: dm-log-userspace: version 1.3.0 loaded
device-mapper: raid: Loading target version 1.14.0
device-mapper: raid: Loading target version 1.14.0
usbcore: registered new interface driver usbhid
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
usbhid: USB HID core driver
NET: Registered protocol family 10
NET: Registered protocol family 10
Segment Routing with IPv6
Segment Routing with IPv6
sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
NET: Registered protocol family 17
NET: Registered protocol family 17
bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
Key type dns_resolver registered
Key type dns_resolver registered
bootconsole [early0] uses init memory and must be disabled even before the real one is ready
bootconsole [early0] uses init memory and must be disabled even before the real one is ready
bootconsole [early0] disabled
bootconsole [early0] disabled
md: Waiting for all devices to be available before autodetect
md: If you don't use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
EXT4-fs (vda): mounted filesystem with ordered data mode. Opts: (null)
VFS: Mounted root (ext4 filesystem) readonly on device 253:0.
Freeing unused kernel memory: 216K
This architecture does not have kernel memory protection.
Run /sbin/init as init process
systemd[1]: System time before build time, advancing clock.
systemd[1]: systemd 237 running in system mode. (+PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP +GCRYPT -GNUTLS +ACL +XZ +LZ4 -SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=hybrid)
systemd[1]: Detected architecture riscv64.

Welcome to Fedora 28 (Rawhide)!

systemd[1]: Set hostname to <stage4.fedoraproject.org>.
random: fast init done
random: systemd: uninitialized urandom read (16 bytes read)
systemd[1]: Created slice User and Session Slice.
[ OK ] Created slice User and Session Slice.
random: systemd: uninitialized urandom read (16 bytes read)
systemd[1]: Reached target Remote File Systems.
[ OK ] Reached target Remote File Systems.
random: systemd: uninitialized urandom read (16 bytes read)
systemd[1]: Reached target Swap.
[ OK ] Reached target Swap.
systemd[1]: Created slice System Slice.
[ OK ] Created slice System Slice.
systemd[1]: Created slice system-serial\x2dgetty.slice.
[ OK ] Created slice system-serial\x2dgetty.slice.
systemd[1]: Reached target Slices.
[ OK ] Reached target Slices.
systemd[1]: Created slice system-getty.slice.
[ OK ] Created slice system-getty.slice.
[ OK ] Listening on udev Kernel Socket.
[ OK ] Listening on /dev/initctl Compatibility Named Pipe.
[ OK ] Listening on Process Core Dump Socket.
[ OK ] Listening on Journal Socket.
Starting Setup Virtual Console...
[ OK ] Listening on Journal Socket (/dev/log).
Starting Journal Service...
Mounting Temporary Directory (/tmp)...
[ OK ] Started Forward Password Requests to Wall Directory Watch.
[ OK ] Listening on Network Service Netlink Socket.
Starting Apply Kernel Variables...
Starting Remount Root and Kernel File Systems...
[ OK ] Listening on udev Control Socket.
Starting udev Coldplug all Devices...
[ OK ] Created slice system-sshd\x2dkeygen.slice.
Mounting POSIX Message Queue File System...
[ OK ] Started Setup Virtual Console.
EXT4-fs (vda): re-mounted. Opts: (null)
[ OK ] Mounted Temporary Directory (/tmp).
[ OK ] Started Apply Kernel Variables.
[ OK ] Started Remount Root and Kernel File Systems.
[ OK ] Mounted POSIX Message Queue File System.
Starting Rebuild Hardware Database...
systemd[1]: Starting Load/Save Random Seed...
Starting Load/Save Random Seed...
systemd[1]: Starting Create System Users...
Starting Create System Users...
systemd[1]: Started Journal Service.
[ OK ] Started Journal Service.
Starting Flush Journal to Persistent Storage...
[ OK ] Started Load/Save Random Seed.
[ OK ] Started Create System Users.
Starting Create Static Device Nodes in /dev...
systemd-journald[84]: Received request to flush runtime journal from PID 1
systemd-journald[84]: File /var/log/journal/ed8eac2427e84259970aa1b8b1d6195d/system.journal corrupted or uncleanly shut down, renaming and replacing.
[ OK ] Started Create Static Device Nodes in /dev.
[ OK ] Reached target Local File Systems (Pre).
[ OK ] Reached target Local File Systems.
Starting Restore /run/initramfs on shutdown...
Starting Rebuild Journal Catalog...
Starting Tell Plymouth To Write Out Runtime Data...
Starting Rebuild Dynamic Linker Cache...
[ OK ] Started Flush Journal to Persistent Storage.
[ OK ] Started Restore /run/initramfs on shutdown.
[ OK ] Started Tell Plymouth To Write Out Runtime Data.
Starting Create Volatile Files and Directories...
[ OK ] Started Rebuild Journal Catalog.
[ OK ] Started Rebuild Dynamic Linker Cache.
[ OK ] Started Create Volatile Files and Directories.
Starting Update UTMP about System Boot/Shutdown...
[ OK ] Started Update UTMP about System Boot/Shutdown.
[ OK ] Started udev Coldplug all Devices.
[ OK ] Started Rebuild Hardware Database.
Starting udev Kernel Device Manager...
Starting Update is Completed...
[ OK ] Started Update is Completed.
[ OK ] Started udev Kernel Device Manager.
Starting Show Plymouth Boot Screen...
[ OK ] Reached target System Initialization.
[ OK ] Listening on SSSD Secrets Service responder socket.
[ OK ] Started Daily Cleanup of Temporary Directories.
[ OK ] Listening on D-Bus System Message Bus Socket.
[ OK ] Reached target Sockets.
[ OK ] Started dnf makecache timer.
[ OK ] Reached target Timers.
Starting Network Service...
[ OK ] Started Show Plymouth Boot Screen.
[ OK ] Started Forward Password Requests to Plymouth Directory Watch.
[ OK ] Reached target Paths.
[ OK ] Reached target Basic System.
Starting System Security Services Daemon...
[ OK ] Reached target sshd-keygen.target.
[ OK ] Started D-Bus System Message Bus.
Starting Network Manager...
[ OK ] Started Network Service.
[ OK ] Found device /dev/ttyS0.
[ OK ] Started System Security Services Daemon.
[ OK ] Reached target User and Group Name Lookups.
Starting Login Service...
Starting Wait for Network to be Configured...
[ OK ] Started Wait for Network to be Configured.
[ ***] (2 of 2) A start job is running for…ogin Service (1min 36s / 2min 16s)random: crng init done
random: 7 urandom warning(s) missed due to ratelimiting
[FAILED] Failed to start Network Manager.
See 'systemctl status NetworkManager.service' for details.
[DEPEND] Dependency failed for Network Manager Wait Online.
[ OK ] Reached target Network.
Starting OpenSSH server daemon...
Starting Permit User Sessions...
[ OK ] Reached target Network is Online.
[ OK ] Started Set the date and time.
[ OK ] Stopped Network Manager.
Starting Network Manager...
[ OK ] Started Permit User Sessions.
Starting Hold until boot process finishes up...
Starting Terminate Plymouth Boot Screen...

Welcome to the Fedora/RISC-V stage4 disk image
https://fedoraproject.org/wiki/Architectures/RISC-V

Build date: 2018-04-06 08:24

Kernel 4.19.0-rc8 on an riscv64 (ttyS0)

The root password is ‘riscv’.

To install new packages use ‘dnf install ...’

If DNS isn’t working, try editing ‘/etc/yum.repos.d/local.repo’.

For updates and latest information read:
https://fedorapeople.org/groups/risc-v/disk-images/readme.txt

stage4 login: root
Password:
Last login: Fri Feb 22 18:21:51 on ttyS0

[root@stage4 ~]# systemctl status NetworkManager.service
● NetworkManager.service - Network Manager
Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; enabled; vend
Active: activating (start) since Sun 2018-01-28 16:00:07 UTC; 1 years 0 month
Docs: man:NetworkManager(8)
Main PID: 174 (NetworkManager)
CGroup: /system.slice/NetworkManager.service
├─174 /usr/sbin/NetworkManager --no-daemon
└─212 /sbin/dhclient -d -q -sf /usr/libexec/nm-dhcp-helper -pf /var/r

Feb 22 18:27:02 stage4.fedoraproject.org dhclient[212]: DHCPOFFER from 10.0.2.2
Feb 22 18:27:02 stage4.fedoraproject.org dhclient[212]: DHCPACK from 10.0.2.2 (x
Feb 22 18:27:02 stage4.fedoraproject.org NetworkManager[174]: <info> [155086002
Feb 22 18:27:02 stage4.fedoraproject.org NetworkManager[174]: <info> [155086002
Feb 22 18:27:02 stage4.fedoraproject.org NetworkManager[174]: <info> [155086002
Feb 22 18:27:02 stage4.fedoraproject.org NetworkManager[174]: <info> [155086002
Feb 22 18:27:02 stage4.fedoraproject.org NetworkManager[174]: <info> [155086002
Feb 22 18:27:02 stage4.fedoraproject.org NetworkManager[174]: <info> [155086002
Feb 22 18:27:02 stage4.fedoraproject.org NetworkManager[174]: <info> [155086002
Feb 22 18:27:02 stage4.fedoraproject.org dhclient[212]: bound to 10.0.2.15 -- re

[root@stage4 ~]# ip a show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 52:54:00:12:34:56 brd ff:ff:ff:ff:ff:ff
inet 10.0.2.15/24 brd 10.0.2.255 scope global dynamic eth0
valid_lft 86342sec preferred_lft 86342sec
inet6 fec0::7af6:d859:cf5c:9335/64 scope site dynamic noprefixroute
valid_lft 86341sec preferred_lft 14341sec
inet6 fec0::5054:ff:fe12:3456/64 scope site dynamic mngtmpaddr noprefixroute
valid_lft 86341sec preferred_lft 14341sec
inet6 fe80::5054:ff:fe12:3456/64 scope link noprefixroute
valid_lft forever preferred_lft forever
3: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1000
link/sit 0.0.0.0 brd 0.0.0.0

[root@stage4 ~]# service network restart
Restarting network (via systemctl): [ OK ]
と うまくいてる

しかし
[root@stage4 ~]# ping www.google.com
PING www.google.com (172.217.161.196) 56(84) bytes of data.
--- www.google.com ping statistics ---
14 packets transmitted, 0 received, 100% packet loss, time 13315ms
だし
[root@stage4 ~]# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.

--- 8.8.8.8 ping statistics ---
12 packets transmitted, 0 received, 100% packet loss, time 11258ms

と インターネットにでれない
アドレスが 10.0.2.15 だよねー