Search the Community
Showing results for tags 'os'.
Found 2 results
Okay, so here's my problem. I am trying to make my own custom OS for OpenComputers. However, I am having issues with the GPU displaying on-screen. I have code that should, as far as I can tell, do what I need it to, but doesn't. How to reproduce: Download the attached .lua files, and put them on a floppy disk. Place init.lua in the root directory (of the floppy), and boot.lua in sys/boot/ (so the files on the floppy should be /init.lua and /sys/boot/boot.lua). Boot from the floppy, and you will see what I mean. If anyone can help me, or knows what I can change or look at, your help would be greatly appreciated Before you ask, I have already looked at the Wiki entries on Component, GPU, Screen, Writing Custom OSes, and that one forum post about 'Custom OSes under OpenComputers' Lua architecture'. I am probably a moderate to intermediate Lua programmer by now, and this code is the result of around an hour of work. Thanks in advance! boot.lua init.lua
I originally create this kernel as a small software to provide basic functions for reading file, control components, etc. so I can create my custom OS. I decided to make it modular so it would be easy to debug and be like Linux. But I realized it can be used to make any custom OS I(or you)'d like. The kernel currently have few functions along with some useful variables. The functions include: gpuInvoke() Control the GPU and any attached displays. printStatus()/writeStatus() Low-level print() and io.write(). fs() Low-level filesystem controller. Can control any filesystem specified. readFile() Return the content of the specified file execInit() and panic() You probably know what these two does by now... Some more As you can see, it still doesn't have much function but it still get the job done. Please note that there are two init.lua at different location and that they are not the same. init.lua at the root directory are the bootloader, think of it as a OC version of GRUB Another init.lua at /bin/ are the one that the kernel use. Get the kernel here: https://github.com/WattanaGaming/OCLinux