Posts

Showing posts with the label vmblock

Getting the MIPI DBI screen for the Sipeed M1S dock to work on Linux

Image
Background What started out as an activity to clear out unused stuff from my cupboard led on to a small project to get Linux working with the MIPI DBI screen for the Sipeed M1S dock. I first got hold of the Sipeed M1S dock back in December 2022. What tempted me was the rich set of features it supports, all in a really small package -- NPU, WiFi/BT/Zigbee, 3 RISCV cores courtesy of the BL808 SoC from Bouffalo Labs. It was also touted as being able to run Linux owing to one of its RISCV cores having an MMU. Beyond playing around with the SDK and a few examples, I didn't venture further due to poor documentation. Quickly, it went back to a box I've conveniently dedicated for dev boards which were marketed to support all kinds of features but disappointingly lack good documentation and were thus chucked aside until I had more time to mess around. That time finally came, in a period when work has gotten mundane and I needed some mental stimulation. In the process of declutter...

vmblock patch for linux 3.11-rc1 (vmware 9)

Linux 3.11-rc1 was released a few days ago. With it comes a kernel-level API change related to VFS . Specifically, struct file_operations no longer contains the function pointer readdir and vfs_readdir() which was defined in fs/readdir.c is now gone. They are both superseded by iterate and iterate_dir() respectively. Unfortunately, these changes broke the compilation of the vmblock fs module. So, here is a simple patch I've written for anyone who is interested. Note that you also have to apply the vmblock patch for linux 3.10 if you haven't already. Otherwise, the compilation would fail. Download: vmblock.3.11.patch diff --git a/linux/file.c b/linux/file.c index d7ac1f6..5499169 100644 --- a/linux/file.c +++ b/linux/file.c @@ -38,46 +38,6 @@ typedef u64 inode_num_t; typedef ino_t inode_num_t; #endif -/* Specifically for our filldir_t callback */ -typedef struct FilldirInfo { - filldir_t filldir; - void *dirent; -} FilldirInfo; - - -/* - *----------------------...

vmblock patch for linux 3.10 (vmware 9)

After upgrading to linux 3.10, vmware workstation will have trouble compiling the vmnet and vmblock kernel modules against the latest kernel headers. This is attributed to the removal of create_proc_entry() in favor of proc_create() . CC [M] /tmp/modconfig-lEXylP/vmnet-only/driver.o CC [M] /tmp/modconfig-lEXylP/vmnet-only/hub.o CC [M] /tmp/modconfig-lEXylP/vmnet-only/userif.o CC [M] /tmp/modconfig-lEXylP/vmnet-only/netif.o /tmp/modconfig-lEXylP/vmnet-only/userif.c: In function ‘VNetUserIf_Create’: /tmp/modconfig-lEXylP/vmnet-only/userif.c:1049:34: error: dereferencing pointer to incomplete type /tmp/modconfig-lEXylP/vmnet-only/userif.c:1050:34: error: dereferencing pointer to incomplete type /tmp/modconfig-lEXylP/vmnet-only/hub.c: In function ‘VNetHubAlloc’: /tmp/modconfig-lEXylP/vmnet-only/hub.c:366:28: error: dereferencing pointer to incomplete type /tmp/modconfig-lEXylP/vmnet-only/hub.c:367:28: error: dereferencing pointer to incomplete type make[2]: *** [/tmp/modconfi...