littleosbook | Source for the little book about OS development | Media library
kandi X-RAY | littleosbook Summary
kandi X-RAY | littleosbook Summary
This is the source code for the book "The little book about OS development". The source for the book is written in "Pandoc" Markdown.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of littleosbook
littleosbook Key Features
littleosbook Examples and Code Snippets
Community Discussions
Trending Discussions on littleosbook
QUESTION
Recently I've started reading this "book" about OS development (https://littleosbook.github.io/), and I find it great and all that, but I came across a problem while trying to boot up my image in bochs.
At some point the guide about running the operating system in Bochs tells me to create a config file for the emulator. I set every option to what I read.
But when I run the following command,
bochs -f bochsrc.txt -q
it says:
display library 'sdl' not available
The relevant line in the config file is pretty obvious:
display_library: sdl
I don't know what's the problem. I installed both libsdl and libsdl2.0, but it still won't work.
My work environment consists of an Ubuntu 20.04 and a Bochs 2.6.11.
Has anybody faced with this issue? What's the solution?
...ANSWER
Answered 2020-Aug-01 at 20:10I ran into this issue when running my code on a Vagrant that had no windows manager installed. I think that a windows manager has to be set up in order for bochs to be able to access the relevant libraries or whatever (don't quote me on that lol). After I reinstalled the following dependencies over this Vagrantfile, I managed to get it to work. It worked even better with bochs-x and x.
QUESTION
I'm following this tutorial to make a simple bare bones 32-bit operating system. I have gotten as far as section 4 where i'm writing to the frame buffer. Basically i'm attempting to create my own println function. Here is the code for my function:
...ANSWER
Answered 2017-Oct-15 at 22:48The issues here are not related to your C code but problems in your file loader.s
. You have problems with the section names having a colon on the end that becomes part of the section name, and you haven't put the code in the executable .text
section.
These lines have extra colons on the section names:
QUESTION
I'm roughly following this guide on setting up a simple OS. It gives some assembly intended for NASM but I am using the GNU Assembler.
At the top of my assembly file I am using
...ANSWER
Answered 2018-Sep-05 at 17:04The following lines are causing the error
QUESTION
I have been following a tutorial called "The little book about OS development". I can write individual characters to the framebuffer, but not the next character. Here are the files:
kmain.c ...ANSWER
Answered 2018-Jun-20 at 20:27@Margaret Bloom's comment solved my issue. The issue was that a character is 16 bits, and I needed to increment I by 2, but I was increment it by 1, causing it to overlap like this:
Intended: char1Data char1Color char2Data char2Color
Problem: char1Data char2Data char2Color
QUESTION
I'm working my way through The Little Book About OS Development, specifically the section on the framebuffer (linked). I'm able to successfully assemble, link, turn into an ISO file and boot pure assembly, but as soon as I try to link a compiled object file for my C code (called from my loader, which was written in assembly), the linker complains. Here's the output:
...ANSWER
Answered 2017-Nov-01 at 01:34As it turns out, this was solved by cross-compiling GNU Binutils and GCC together (with the same prefix) on my Mac. I did this according to the instructions here.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install littleosbook
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page