CV-Bowen commented on PR #9297:
URL: https://github.com/apache/nuttx/pull/9297#issuecomment-1600955304
@masayuki2009 I found the virtio-blk bug, the descriptor flags set wrong
(F_WRITE) and now it has been fixed. Could you take a look ?
```c
wangbowen@ubuntu:/data/project/code/apache$ qemu-system-aarch64 -cpu
cortex-a53 -nographic \
ardev stdio,id=con,mux=on -serial chardev:con \
-g> -machine virt,virtualization=on,gic-version=3 \
> -chardev stdio,id=con,mux=on -serial chardev:con \
> -global virtio-mmio.force-legacy=false \
> -device virtio-serial-device,bus=virtio-mmio-bus.0 \
> -chardev
socket,telnet=on,host=127.0.0.1,port=3450,server=on,wait=off,id=foo \
> -device virtconsole,chardev=foo \
> -device virtio-rng-device,bus=virtio-mmio-bus.1 \
> -netdev
user,id=u1,hostfwd=tcp:127.0.0.1:10023-10.0.2.15:23,hostfwd=tcp:127.0.0.1:15001-10.0.2.15:5001,hostfwd=udp:127.0.0.1:15001-10.0.2.15:5001
\
> -device virtio-net-device,netdev=u1,bus=virtio-mmio-bus.2 \
> -drive file=./mydisk-1gb.img,if=none,format=raw,id=hd \
> -device virtio-blk-device,bus=virtio-mmio-bus.3,drive=hd \
> -mon chardev=con,mode=readline -kernel ./nuttx/nuttx
telnetd [4:100]
NuttShell (NSH) NuttX-12.1.0
nsh>
nsh>
nsh> ?
help usage: help [-v] [<cmd>]
. cat echo hexdump mkfatfs put time
wget
[ cd env ifconfig mkrd pwd true xd
? cp exec ifdown mount rm truncate
alias cmp exit ifup mv rmdir uname
unalias dirname false kill nfsmount set umount
arp dd free ls nslookup sleep unset
basename df get md5 printf source uptime
break dmesg help mkdir ps test usleep
Builtin Apps:
telnetd renew getprime iperf nsh
ostest sh ping hello
nsh>
nsh>
nsh> mkfatfs /dev/virtblk0
nsh> mount -t vfat /dev/virtblk0 /mnt
nsh> df -h
Filesystem Size Used Available Mounted on
vfat 1023M 32K 1023M /mnt
procfs 0B 0B 0B /proc
nsh> echo asdfsdfds > /mnt/test.txt
nsh> cat /mnt/test.txt
asdfsdfds
nsh> QEMU: Terminated
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]