#NoirOS With GRUB

1 messages · Page 1 of 1 (latest)

ocean sleet
#

"with grub" sounds like its part of your osses identity

#

when it really doesnt matter whatsoever

hearty ibex
#

oh k

#

whatever now

hearty ibex
#

so would you like to contribute? @ocean sleet

ocean sleet
#

not really, why?

hearty ibex
#

i kinda need help everytime i set up vga it just wont boot even though the boot should work does vga only work in the boot sector or something?

ocean sleet
#

nah just a bug in your code

hearty ibex
#

i know its a bug but what do i do

ocean sleet
#

debug

hearty ibex
ocean sleet
#

lol

hearty ibex
#

anyways yeah i fixed it

#

thank you for telling me to debug

#

LOL-

ocean sleet
#

np

hearty ibex
#

so would anyone like to contribute?

ocean sleet
#

people generally dont contribute to osses that have literally nothing

#

once its more mature and attractive people will start getting interested

desert sonnet
hearty ibex
#

it works somewhat fine though

#

ill show screenshots in a bit

desert sonnet
hearty ibex
#

its ok dw

desert sonnet
#

lol wrong emoji

hearty ibex
#

ohh k

#

so

#

hows its on your side?

#

is stuff going good with os dev?

desert sonnet
#

its going alright, I was originally doing 32 bit but currently I'm trying to fix my initial code to be 64 bit instead. With that - I'm currently diving into the weeds of paging 😓

hearty ibex
#

i can help!

#

if u need ofc

desert sonnet
#

thanks for offering - will definitely ask if needed

hearty ibex
#

alright, great!

alpine sinew
#

oh hey voltaged gonna take a lookie at your os

hearty ibex
#

Hey bro

severe crane
#

no idt keyboard drivers yes3

hearty ibex
#

Update!

Whats new?

  • Added more commands
  • Shutdown, cpu info and time commands
  • Banner

Whats next?

  • Text editor
  • More commands
  • Maybe a GUI?
  • Games!
silent swan
hearty ibex
silent swan
hearty ibex
#

i wrote it from scratch

silent swan
#

Uhhh

hearty ibex
#

its called NoirACPI

#

these are the ACPI shutdown ports

#define SHUTDOWN_PORT1 0xB004
#define SHUTDOWN_PORT2 0x2000
#define SHUTDOWN_PORT3 0x604
#

its really just ports

#

connected with assembly

#

it works tho

silent swan
#

No it doesn't

#

That's not an aml interpreter

hearty ibex
#

just look at the code and see how it works

silent swan
#

No need....

#

It's not what an acpi interpreter is

hearty ibex
#
void shutdown() {
    print("Shutting down NoirOS...\n");
    print("Please wait while the system powers off...\n");

    // Try ACPI shutdown
    outw(SHUTDOWN_PORT1, 0x2000);

    // Try APM shutdown
    outw(SHUTDOWN_PORT2, 0x0);

    // Try another method
    outw(SHUTDOWN_PORT3, 0x2000);

    // If we get here , shutdown failed
    print("Shutdown failed. System halted.\n");
    while (1) {
        asm volatile("hlt");
    }
}
silent swan
#

Yeah ok

#

That's not an aml interpreter

hearty ibex
#

well it works

#

so i guess i invented a new way

#

¯_(ツ)_/¯

silent swan
hearty ibex
#

it just works ok

#

if it works, dont touch it

#

its simple

#

lol

#

im the average programmer]

silent swan
hearty ibex
#

what is hw

silent swan
#

Hardware

hearty ibex
#

oh

#

its 32 bit so cant rlly test it

#

i can send the iso if u need u can try it if u have a 32 bit pc

ocean sleet
#

this wont work on real hardware

silent swan
hearty ibex
#

so its the QEMU api?

ocean sleet
#

moreoever even if these were the right ports

#

u arent calling the respective aml methods

#

so most laptops will hang instead of shutting down

ocean sleet
hearty ibex
#

k got it

#

ill rewrite it

#

thanks for the help

hearty ibex
#

kk i implemented it correctly (i think) it shuts down both qemu, and it uses propper ACPI

#

i MIGHT start another OS thats graphical

hearty ibex
#

Cant rn its 1:00 for me

#

Sorry

ocean sleet
#
// ACPI power off helper function
void acpi_poweroff() {
    // Search for RSDP in BIOS memory
    char* addr;
    for (addr = (char*)0x000E0000; addr < (char*)0x00100000; addr += 16) {
        if (memcmp(addr, ACPI_RSDP_SIGNATURE, 8) == 0) {
            // Found RSDP, now try to shut down
            uint32_t pm1a_cnt = 0x1000;  // Default port if we can't find real one
            uint16_t slp_typa = (1 << 13);  // Default sleep type
            outw(pm1a_cnt, slp_typa | (1 << 13));
            io_wait();
            return;
        }
    }
}
#

u think this is correct?

#

did chat gpt give it to u?

silent swan
#

wtf

hearty ibex
#

man im trying i just look up tutorials on osdev and i cant find a good one

#

tis is why im looking for contributors

hearty ibex
#

im just a beginner this is like one of my only OSes

hearty ibex
#

anyways yeah new update

#

i added

  • a game
  • simple song player
  • ported a little bit more of bash
  • more concise help command
  • more Colors and formatting
hearty ibex
#

Update (again)

  • Added a filesystem
  • Commands like touch, cat, ls, mkdir and cd
earnest adder
#

you need to split functions into other files (.c)
if you have ALL kernel in one file - your code is shit

hearty ibex
#

if it works it works

#

im corrently working on it though

#

currently8

#

brh

#

bruh

#

my keyboard is drunk

#

or ive gone too far to even change smth

#

welp

#

prettier is in one single file and its 20k lines of code. IN ONE FILE. and somewhy no one is complaining as long as it works

ocean sleet
#

ChatGPTOS

hearty ibex
#

bruh

#

i coded it myself

#

do you think chatgpt would be able to make a working thing IN 1.6K LINES OF CODE

#

chatgpt is shit

#

i cant split it since ive gone too far to even do smth like this

#

or maybe even better

#

not start this thread

#

cuz everyone even mods are dogshitting me for writing code the way i want

#

im just a beginner bro

#

IM NEW IN THE DAMN SERVER

#

WHY WOULD I GET DOGSHITTED EVEN BY MODS FOR DOING WHAT I LIKE

#

RULE 6

#

IN #readme-rules

#

AND RULE 4

valid lynx
#

man chill

ocean sleet
#

only chatgpt can make a bogus thing with proper comments

hearty ibex
#

i just look up tutorials man

#

and add comments based on what it is

#

yknow what

#

fuck this

#

altogether

#

im gonna make the OS in silence

#

without yo ass always complaining

#

especially @ocean sleet

earnest adder
karmic flame
#

wtf

#

is everything running in ring 0

ocean sleet
#

a secret tool meme

karmic flame
#

print_colored is such a funny name

hearty ibex
#

like templeOS

royal thistle
hearty ibex
ocean sleet
#

except temple os had actual programs

#

not hardcoded functions in the kernel

ocean sleet
#

lol

earnest adder
#

chatgptOS 🤫

hearty ibex
#

kys

#

idc

#

yall r toxic

#

ban me

#

go ahead

earnest adder
#

waiting for chatgptOS release day 1

hearty ibex
#

bro i wrote it myself wtf are you talking about

#

you probably cant even write an OS

earnest adder
#

😔

hearty ibex
#

lets just

#

stop being toixc

#

toxic*

#

cuz dude

#

OSDEV is a good community but its toxic asf

#

the mods too

#

like

#

damn

earnest adder
hearty ibex
silent swan
hearty ibex
silent swan
#

Not an os

hearty ibex
#

HOW DO YOU KNOW ITS CHATGPT

#

HUH

earnest adder
#

no headers

silent swan
#

💀

hearty ibex
#

CAUSE THATS MY CODE STYLE

earnest adder
#

no other files

hearty ibex
#

NO SHIT

earnest adder
#

only one single kernel.c

hearty ibex
#

<@&970022802356850728> can you fucking kill them please

ocean sleet
#

!naenae @hearty ibex being annoying and insulting people

silent swan
#

I assume?

crystal wigeon
#

@hearty ibex bro calm down

ocean sleet
#

.!naenae @hearty ibex being annoying and insulting people

fast snowBOT
#
Voltaged JUST GOT NAENAED

GET FRICKED KIDDO

ocean sleet
#

not anymore meme

crystal wigeon
#

Oh you weren’t kidding

#

Damn

#

Could’ve sniped that

earnest adder
crystal wigeon
#

Anyway

ocean sleet
crystal wigeon
#

Yeah I see

#

I considered a mute but yeah

#

This works

ocean sleet
#

two kyses, pings, and asking to kill someone etc etc