#.

1 messages · Page 1 of 1 (latest)

boreal glen
#

nice

#

the colors are very eye torturing

#

at least for me

#

not bad code

#

wait

#

oh nvm

#

i thought its kernel shell for a second

#

though are you sure you wanna use mb2 ans 32 bit in 2026?

#

just a QoL note

#

you should test it on all emulator you can

#

bochs, vmware, qemu,

#

and your pc (with csm i think its possible)

#
ld.lld -m elf_i386 -T linker/linker.ld -o build/coffeeos.elf build/boot.o build/kernel.o build/gdt.o build/idt.o build/gfx.o build/keyboard.o build/kshell.o build/pmm.o build/interrupt.o
ld.lld: error: undefined symbol: memcpy
>>> referenced by gfx.c
>>>               build/gfx.o:(draw_braille_cell)
#

very nice

#

average clang trying to do its own thing

#

btw

#

you are using host gcc to compile!?!?

#

plus, make sure that the script knows about grub2-mkrescure

#

'like on fedora (just switched in the morning)

#

its grub2-mkrescue

#

very standard os overall

#

if you want it to be better

#

switch the bootloader, and go long mode

low glen
#

okay i will try implementing it as fast as i can

slate heath
#

Finally NO KERNEL SHELL!!! proud of you @low glen

low glen
#

I would love your guys input.. What do you want to see in the OS? If I can, I will prioritize to get it done fast! and probably learn something from it also

low glen
#

i switched to

#

which x86_64-elf-gcc
/mnt/d/toolchains/coffeeos-x86_64/bin/x86_64-elf-gcc

boreal glen
#

better

#

plus add support for clang using --target=x86_64-unknown-none-elf

boreal glen
low glen
#

okayy

boreal glen
# low glen okayy

the reason why i tell you to add clang support is people wont compiler that they wont use just to test out your os

low glen
#

ohh okay

boreal glen
#

though keeping it work on both compilers is a bit of work

#

like my kernel is basically locked to clang

#

though im trying to add gcc support

#

though definitely not keen on it

#

btw you created your account today??

low glen
#

yea

#

i am kinda new to this

boreal glen
#

theres a lot to this

low glen
#

ohh i know i almost faint while looking at the OSDev Wiki

boreal glen
#

interesting build system

low glen
#

luckily i am 16 and probably will live a long life

boreal glen
#

the flags

#

and compiler

low glen
boreal glen
#

assuming justfile is similar to makefile

#

you can reduce this

#

into a few lines

low glen
boreal glen
low glen
#

since i heard it is newer than make

boreal glen
#

llm are good at this

boreal glen
low glen
#

yea

boreal glen
#

or very rare

low glen
#

i wanted to try it out from this : https://youtu.be/_aQ8xJ5DuHY?si=E6uYITuU7SFIpGoa

Except, maybe, if I'm writing C
Click this link https://boot.dev/?promo=DREAMSOFCODE and use my code DREAMSOFCODE to get 25% off your first payment for boot.dev.

For the longest time, Make has been a staple in my developer toolkit, acting as not only a build tool, but also as a task runner.

Whilst there's good reasons to use Make as a build ...

▶ Play video
boreal glen
#

the thing is

#

just isnt actually a build system

#

its like ninja

#

its a command executor

low glen
#

ohh

#

so what should i do now?

boreal glen
#

but refactor the thing man

low glen
#

on it

boreal glen
#

you are not updating 200 lines to add just a flag

#

some flags you may find usefuk for kernel compliation

#

btw some needs runtime support

#

prob overfkill imo

low glen
#

ohh

boreal glen
#

the keyboard driver will likely overflow

#

try slamming the keyboard on startup and see if you can type anything in qemu

dire girder
#

like checking which files need to be compiled again which don't?

calm sapphire
# low glen ohh

Are you sure you understand what you're writing, or is AI writing it for you

low glen
#

yea i can understand if not i ask it to explain

calm sapphire
low glen
#

which one

dire girder
#

wicks when the project has fucking ai comments

low glen
#

i did change it if its in the cpu folder

#

this is frm github

#

this one from vscode

calm sapphire
low glen
#

it stopped working in VirtualBox

#

worked in qemu

calm sapphire
dire girder
low glen
#

Interrupts

calm sapphire
calm sapphire
#

@dire girder dont give him the answer yet

dire girder
#

lmao ok

low glen
#

a signal frm the input device to the cpu to

calm sapphire
dire girder
#

not necessarily input device

low glen
#

tell it stop whatever it is currently doing and do something else

calm sapphire
#

and why doesn't the keyboard work?

#

when you don't handle the keyboard interrupt?

low glen
#

becuz i had 2 diffrent isos

#

i had one is windows vbox

#

and qemu in wsl like that

calm sapphire
low glen
#

nope

calm sapphire
#

If you don't handle the keyboard interrupt it wont work

#

Noo shit

low glen
#

ofc

calm sapphire
#

why even comment about it?

low glen
#

??

calm sapphire
low glen
#

nope

#

idk what is even happening

#

why are we arguing

calm sapphire
# low glen idk what is even happening

Why comment about a thing that's absolutely no-shit moment. Like ohh wonder why the keyboard handler doesnt work when i remove the keyboard handler call? huh??

low glen
#

prob becuz ai did it and i had to change it

#

i told u i use AI

#

i have like lil to no experience

#

I AM 16

calm sapphire
low glen
#

ur elder than me

#

so i have to repect u

#

*respect

calm sapphire
# low glen false

Do I need to send you a picture of my passport for you to believe me?

low glen
#

no

#

why do i need ur passport?

calm sapphire
low glen
#

nah actually are u 14?

calm sapphire
low glen
#

tf

#

how are u more skilled that me

#

probably more experience mb

calm sapphire
low glen
#

oh great

low glen
#

soo

low glen
#

u can expect me to have only like minumum knowlege

calm sapphire
#

I programmed for around 4 years before I even thought about this project.

low glen
#

so imma leave the project and get back to it when i have more exp

#

cya and thanks for informing

calm sapphire
low glen
#

so should i keep working or gather more info?

dire girder
#

no lowkey you could continue but (ab)using ai will keep you from understanding what happens and why things don't work

calm sapphire
calm sapphire
#

It will all come crash down.

dire girder
#

the road is long and hard but also fun and rewarding, use human produced resources

calm sapphire
#

If you haven't made any userspace project don't expect to be able to make a full blown OS:

dire girder
calm sapphire
slate heath
#

damn @calm sapphire you only 15 😭, i'm 17 with 5 years of general programming experience and almost 2 years in systems programming, you are cookin'

low glen
#

imma keep going ig?

calm sapphire
#

That's in userspace?

low glen
#

probably not

#

i might learn more and then try to upgrade this project

#

not just vibe code into this since that ruins the entire point

calm sapphire
# low glen probably not

Well, keep this on a chill and make some decent sized userspace project and then pick it up again.

calm sapphire
low glen
#

thx for the support

calm sapphire
#

np lmk if you need any more help w anything else.

low glen
calm sapphire
#

I made you come to the conclusion that vibecoding a os is not the right thing to do.

boreal glen
#

@calm sapphire did you just suspect another vibecoded project nooo ?

calm sapphire
boreal glen
#

gotta upgrade my ai spotter skills 😭

calm sapphire
boreal glen
#

lets see

#

kinda skipped it

calm sapphire
calm sapphire
winter thicket
#

Kernel Shells are 🔥

boreal glen
boreal glen
winter thicket
slate heath
#

Nothing is fun when your OS/Kernel isn't architecturally correct

#

and a Kernel Shell is a HUGE MEGA FAT no-no

low glen
#

??

boreal glen
#

almost drown

slate heath
boreal glen
#

though yes

#

for obvious reasons

low glen
#

ain't a kernel shell a big security risk?

boreal glen
#

it breaks the kernel - os architecture

slate heath
boreal glen
#

thats why kernel shells are also called os-in-kernel

slate heath
#

nothing else which USERSPACE can do

low glen
#

ohh

boreal glen
low glen
#

so basically its
bootloader then kernel then userspace right?

boreal glen
#

for the os to build stuff

boreal glen
#

it should not define how the os look, feel

#

etc.

low glen
#

so is this the correct order : BIOS/UEFI → Bootloader → Kernel → Userspace

boreal glen
#

though its general

#

but thats how it is

slate heath
#

the only think you must remember when working on your kernel, "the kernel NEVER handles things which userspace can already do"

boreal glen
boreal glen
#

userspace drivers use those methods to draw what you see

low glen
#

ohh

slate heath
#

eg. like accessing hardware DIRECTLY

boreal glen
#

but the reason why you see os-in-kernels are such common

#

is that

#

its easier

#

alot in fact

slate heath
#

people chase easy growth more than correct growth

low glen
#

ohhh

boreal glen
#

if you want a strong plan

#

id say start with mm first

low glen
#

mine ain't a kernel shell right?

boreal glen
slate heath
boreal glen
#

if its run in userspzce

low glen
#

thank god

boreal glen
#

but you need some modifications to get it out of the os-in-kernel area

low glen
#

which are?

boreal glen
#

loadable modules is one of them

#

if your os uses a framebuffer,

#

and its know graphics

#

and its in your kernel

slate heath
boreal glen
boreal glen
slate heath
low glen
#

both of ur guys project are great

slate heath
boreal glen
#

overall, standard project

#

and pls fix the justfile

low glen
#

are u sure i am ready to get into this project Wicks did say its not for meant for me rn

boreal glen
low glen
#

for OSDev u need more experience

#

right?

#

well rn i do not have the necessary knowledge

#

imma continue the project well i have more exp about userspaces

boreal glen
low glen
#

yea otherwise it ruins the exp if i vibecode my way thorugh this

calm sapphire
#

Did you really recommend someone to continue vibecoding a kernel.

#

??

boreal glen
#

i thought he stopped after that?

low glen
#

guys chill i ain't continuing this project until i get more exp

toxic scaffold
boreal glen
#

btw isnt that what im trying to say?

toxic scaffold
#

yes… not clang specific

boreal glen
#

if you compile a freeatanding gcc

#

it wont likely use it

#

clang is different

#

it targets a lot or archtecture and platforms, at once

#

so it inherits

toxic scaffold
boreal glen
#

x86_64-unknown/none

#

i already tried

#

and it did not, in fact ask for mem* functions

toxic scaffold
low glen
#

.