Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qemu-armv7a Ivshmem config and document update #15818

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ Steps for Using NuttX as IVSHMEM host and guest
b. Start rpproxy_ivshmem::

$ qemu-system-arm -cpu cortex-a7 -nographic -machine virt,highmem=off \
-object memory-backend-file,id=shmmem-shmem0,mem-path=/dev/shm/ivshmem0,size=4194304,share=yes \
-object memory-backend-file,discard-data=on,id=shmmem-shmem0,mem-path=/dev/shm/ivshmem0,size=4194304,share=yes \
-device ivshmem-plain,id=shmem0,memdev=shmmem-shmem0,addr=0xb \
-kernel proxy/nuttx -nographic

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ CONFIG_ARM_PSCI=y
CONFIG_ARM_SEMIHOSTING_HOSTFS=y
CONFIG_ARM_THUMB=y
CONFIG_BCH=y
CONFIG_BLK_RPMSG=y
CONFIG_BLK_RPMSG_SERVER=y
CONFIG_BOARDCTL_POWEROFF=y
CONFIG_BOARD_LATE_INITIALIZE=y
CONFIG_BUILTIN=y
Expand All @@ -42,7 +42,7 @@ CONFIG_DEBUG_PCI_INFO=y
CONFIG_DEBUG_PCI_WARN=y
CONFIG_DEBUG_SYMBOLS=y
CONFIG_DEVICE_TREE=y
CONFIG_DEV_RPMSG=y
CONFIG_DEV_RPMSG_SERVER=y
CONFIG_DEV_SIMPLE_ADDRENV=y
CONFIG_EXAMPLES_HELLO=y
CONFIG_EXAMPLES_RPMSGSOCKET=y
Expand Down
6 changes: 4 additions & 2 deletions drivers/misc/rpmsgblk_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ static int rpmsgblk_open_handler(FAR struct rpmsg_endpoint *ept,
msg->header.result = server->bops->open(server->blknode);
if (msg->header.result < 0)
{
ferr("block device open failed, ret=%d\n", msg->header.result);
ferr("block device open failed, ret=%" PRId32 "\n",
msg->header.result);
}
}
else
Expand Down Expand Up @@ -167,7 +168,8 @@ static int rpmsgblk_close_handler(FAR struct rpmsg_endpoint *ept,
msg->header.result = server->bops->close(server->blknode);
if (msg->header.result < 0)
{
ferr("block device close failed, ret=%d\n", msg->header.result);
ferr("block device close failed, ret=%" PRId32 "\n",
msg->header.result);
}
}
else
Expand Down
Loading