bolthur / kernel

bolthur kernel source
GNU General Public License v3.0
6 stars 1 forks source link

Add storage and file system servers #50

Open Dreaded-Gnu opened 2 years ago

Dreaded-Gnu commented 2 years ago

To be able to access the files on sdcard, an sdcard storage server, fat32 filesystem server and an ext4 filesystem server needs to be introduced. Furthermore the vfs needs to be revised to handle only a list of mount points instead of populating the full filesystem as this will consume to much memory.

With revise of vfs to mount point management, a new server for devices shall be introduced.

Also the random server shall be added here using random number generation using the hardware random number generator. Depends on implementation, when adding /dev/random and /dev/urandom this might be handled by two different servers or both by one. When only /dev/random is provided it will be only one server.

Dreaded-Gnu commented 2 years ago

It seems that the rpc logic within newlib is not fully stable. Have to dive into there and see why an overwrite of default rpc handler entry solves the issue.

Furthermore the mmio server needs following two additional rpc handler for gpio:lock and unlock. lock shall request a mmio look for process id which leads to a drop of rpc from other processes. unlock will remove the lock then again.

Dreaded-Gnu commented 2 years ago

It seems that the rpc logic within newlib is not fully stable. Have to dive into there and see why an overwrite of default rpc handler entry solves the issue.

Issue has been identified and fixed. Replaced indirect constructor usage by direct call there.