#EvalynOS

1 messages · Page 18 of 1

hazy saddle
#

This isn’t going into any system that would need PAE anyways

hazy saddle
#

good progress is being made

#

@hollow crater

hazy saddle
hazy saddle
hollow crater
hazy saddle
#

So I take the MB2 one

#

Put it into my format

#

And then I punch out all reserved regions

#

And then I sort it

#

Using bubble sort

#

Which for this is fine because it’s pretty much already sorted

hollow crater
#

o thats actually a nice way to do it
i just sort the reserved and make sure they dont collide with the usable ones

shadow canopy
#

this is cool

hollow crater
hazy saddle
hollow crater
#

:O

hazy saddle
#

Il give seperate maps for reserved and reclaimable regions

#

So it’s even easier to parse

#

As you don’t need to seperate those things

hollow crater
#

noice
do u scrap ur prekernel memory after its no longer needed trl

hazy saddle
#

To reclaim such memory

hollow crater
#

aha

hazy saddle
#

I will however be fine grainy be marking it as reserved

#

So say the kernels initial stack

#

Will be a seperate region

#

Same for initial page tables + your kernels program memory

#

All that will be parseable

#

For PMM I will find the largest region and chunk off enough for a maxed out paging table

#

That has everything mapped

#

And then the rest is for the elf loaders stuff

hollow crater
hollow crater
hazy saddle
#

This protocol is gonna be amazing

#

You will be passed a pointer to a 4kb page

#

And that one page is a data structure with all data you need

hollow crater
hazy saddle
#

This works because i limit things like modules

#

So they can be fixed in place

#

Though

#

The memory map

#

Will have to be a pointer

hazy saddle
#

@hollow crater

#

🔥

#
 ✘ evalyn@EvalynPC  ~/Documents/Programming/mb2lmstb   main  cloc ./stage32/src 
      34 text files.
      34 unique files.                              
       0 files ignored.

github.com/AlDanial/cloc v 2.08  T=0.01 s (2923.0 files/s, 83047.0 lines/s)
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
C                               15             96             13            488
C/C++ Header                    15             45              3            209
Assembly                         4             16              0             96
-------------------------------------------------------------------------------
SUM:                            34            157             16            793
-------------------------------------------------------------------------------
#

god this thing is huge

#

😭

#

its almost as if

#

im making a kernel

#

just to load another kernel

clear bison
#

GRUB and UEFI core

rancid viper
#

fix it

hazy saddle
#

Just have to finish the elf loader & generate the entry payload and we are done

mortal bane
hazy saddle
#

And it’s because there is nothing to do

#

So I call panic to make it hang

mortal bane
hazy saddle
#

But the panic is cooler

#

And I worked hard on it

mortal bane
hazy saddle
mortal bane
#

that's one suicidal bootloader ngl

hazy saddle
#

It also panics if it can’t get a frame buffer PSP1G_pspTrollar

#

@mortal bane but this thing is pretty cool

#

And should make i686 shit way easier for people

#

It’s also public domain

mortal bane
#

cool

hazy saddle
#

okay so this protocol will support 64bit

#

later though

#

Since I will also have protocol conversion layers I will have 4 different tags you can give to modules

#

That will tell the loader how to treat them

#

And all other modules will be passed transparently to the loaded stage

#

KRNL32 means it’s a direct kernel using the 32bit variant of the protocol

#

KRNL64 is the same but for ya know

#

BCNVRT32 is a bootloader protocol converter that wishes to be loaded in 32 bit mode

#

And BCNVRT64 is the same yada yada

hazy saddle
#

UACPI port

#

Is uhhhhh

#

Not going well

#

😭

#

CC: @cyan bison for screenshot

cyan bison
hazy saddle
#

:p

cyan bison
#

it was because i was running tcg

hazy saddle
#

oh

cyan bison
#

and didnt know it

hazy saddle
#

whats the real score

#

faster than OBOS?

cyan bison
#

no

hazy saddle
#

damn

cyan bison
#

i snuck in some slow code in the ported version of the allocator so u guys could never surpass me trl

#

jk ofc

cyan bison
#

nice try

#

that doesnt affect me at all

hazy saddle
#

damn

#

how about this

#

or somthing

#

i have other sandwitches

cyan bison
cyan bison
hazy saddle
hazy saddle
cyan bison
hazy saddle
hazy saddle
cyan bison
#

before that

#

never noticed the slowdown

hazy saddle
cyan bison
#

check gc

hazy saddle
#

:3

hazy saddle
#

It’s done

#

It’s over

#

Now I have to fucking integrate this into priem

#

Also @cyan bison don’t forget m68k port

wanton grove
hazy saddle
#

And the codebase gets cleaned up

cyan bison
mild glacier
cyan bison
#

im never giving my money to big corpo

wanton grove
cyan bison
#

no i am oberrow

hazy saddle
#

EvalynOS is back!!!!

#

and thread safe

wanton grove
hazy saddle
wanton grove
mild glacier
hazy saddle
#

After bash

hazy saddle
#

well

#

the heap is still ass

#

so it "deadlocks"

#

but not on a lock

#

because it ran out of memory / it got fragmented

#

so i cant do this test 🥀

#

this one may work tho 🔥

soft snow
hazy saddle
#

Now that it’s fixed

fiery tangle
#

Damn cool

hazy saddle
#

I can come back here to work on crap

#

And then get my real VFS

#

And then fork()

#

And then bash

#

Because I rushed so much fucking shit 💀

#

I also need to put a heap rewrite in there or finish my port of the OBOS allocator

#

But I have other ideas for my heap that could be better/faster

soft snow
#

atleast it runs :D

hazy saddle
#

And the kernel shell is just for debugging and tests

#

So I don’t have to hard code the sequences

#

Everything actually important happens in userspace

#

Btw @fiery tangle I think your pretty cool

#

How’s your projects been going

fiery tangle
fiery tangle
hazy saddle
#

Oooo :o

fiery tangle
#

Discord should have en option to not turn ":D" into ":D"

#

okay what

#

":D"

#

bru

hazy saddle
#

You can change that

fiery tangle
#

discord is trolling me now concern3d

hazy saddle
#

It’s in settings

#

:D

fiery tangle
#

:D

hazy saddle
#

I love ralsei emojis

fiery tangle
mild glacier
hazy saddle
fiery tangle
#

Orbs r nice tho

mild glacier
fiery tangle
#

My avatar decoration rly matches well

#

Does this mean u need money for tech support? KEKW

hazy saddle
#

This is my avatar decoration on fedi

hazy saddle
fiery tangle
hazy saddle
#

Do you know mastadon?

fiery tangle
#

yea

hazy saddle
#

Mastadon is part of the “fediverse” which is a decentralized social media

#

Yes

fiery tangle
#

i'm on mastodon

hazy saddle
#

I post shitposts and somtimes OSdev updates there

fiery tangle
#

Ive never played botw

#

only totk

hazy saddle
#

It’s really fun

#

I prefer totk imo tho

#

Mainly because I can’t flurry rush worth a damn in BOTW but I could do it on almost every attack in TOTK

soft snow
#

gives me nostalgia

fiery tangle
#

wth is this malformed emoji KEKW

soft snow
#

got to 90% completed

#

the good ol days before osdev

fiery tangle
#

...

#

2 sec

soft snow
#

My good old days are when I were 10

#

Or before 10

fiery tangle
fiery tangle
hazy saddle
fiery tangle
#

I got a n2dsxl when i was 7

#

its right in front of me rn

#

xD

hazy saddle
#

I’m the age before 18 turning 18 in two months

soft snow
fiery tangle
hazy saddle
#

I really hope this cold stops beating me down so I can commit the changes that fix the fucking crashes

hazy saddle
#

No I meaj

soft snow
#

Outside my cabin it's like -24 rn

hazy saddle
#

The cold

#

I’m sick

soft snow
hazy saddle
#

It let off me just enough to fix the shit

soft snow
#

Just binge watch YouTube and you will be fineee

hazy saddle
soft snow
#

"cool people"

#

🙏

#

Internet degenerates.

hazy saddle
#

I wonder if I should share my internal dev server here

#

It’s been a bit dead recently but

#

It used to talk a lot about my kernel and other shit to not clog this channel up

fiery tangle
fiery tangle
hazy saddle
#

I’m a frequent shitposter

fiery tangle
#

My childhood

#

well

#

i am still a child ig

#

but early childhood

hazy saddle
#

I was about to say that XD

#

Yeah

fiery tangle
#

tho

hazy saddle
#

I don’t remember much of my childhood tbh

#

Probably for the best though PSP1G_pspTrollar

fiery tangle
#

I found my old 2ds and pokemon cards yesterday

hazy saddle
#

Just bits and pieces of shit

fiery tangle
#

They r just laying on the floor rn KEKW

#

lemme send a pic

hazy saddle
#

What can your kernel do rn btw?

fiery tangle
#

nothing rly

hazy saddle
#

lol

#

Can I see the repo?

hazy saddle
fiery tangle
#

wth

#

oh

#

its private KEKW

#

now it should work

#

for how long have u been working on this btw?

#

great website xD

#

Also whats the <@&1466962950559498270> role?

hazy saddle
hazy saddle
fiery tangle
hazy saddle
#

It’s only on really expensive brand new laptops

#

And only recently the bochs emulator

#

Here is le manual

fiery tangle
fiery tangle
hazy saddle
#

I used Intel SIMICS

#

Because I’m not rich

#

Which is a really fucking annoying emulator to use

#

But I used it to get my role

fiery tangle
#

fuck

#

wrong gif

#

💀

hazy saddle
#

💀

floral kettle
hazy saddle
#

Once you have the steps down it’s not bad

#

But it took me a bit to get it booting AND with FRED enabled

fiery tangle
#

the i need to do nuclear reactor stuff

#

#575111534825439252

#

as it is for school

#

btw

for how long have u been working on this btw?

hazy saddle
#

You can check my git repo

#

And goto the first commit

fiery tangle
hazy saddle
#

Btw my git server is open if you wish to use it :3

fiery tangle
fiery tangle
hazy saddle
#

:3

fiery tangle
#

:3

#

ohhhhh

#

u play deltarune :D

echo cloud
#

how do i set it up

#

:3

hazy saddle
#

Just make an account

echo cloud
#

ive never used that emoticon in my life but i feel like it was appropriate

hazy saddle
#

Email should work and everything

echo cloud
#

can u send link?

#

i friended u btw

echo cloud
#

shit mb

hazy saddle
#

Just follow ze rules

echo cloud
#

5gb limit is plenty

#

my kernel isnt even 20k

hazy saddle
#

Just don’t do anything stupid there and your good lol

echo cloud
#

i wont do anything stupid

#

ill be very respectful 🤗

#

@hazy saddle how do i commit to the repo

#

do i just do a git commit and it will automatically clone the commit from the github repo?

hazy saddle
#

You need to add your ssh public keys and stuff

#

Like GitHub to do pushing

#

But you have to make a repo and add the server as a remote

#

And then do a git push

echo cloud
#

my brain

#

cannot

#

ill figure it out lol

#

imma first update the repo on github though

#

because its a few weeks behind

hazy saddle
#

while fluxer is shitting its self

#

ive made a project thread on fluxer

#

i literaly cannot post about it there

#

because its brtoken

#

unless it just sent it like 20 fucking times

#

which i hope it did not

#

here we go

#

@gilded fjord i saw you typing on fluxer. the platform is on its knees and i can barely send or recive messages there

#

but i do wana be on the list

hazy saddle
gilded fjord
hazy saddle
#

once they get the mobile app working and the server kinks done il me archiving this thread and my discord accoount

hazy saddle
#

@gilded fjord i tried to add the osdev server to the front desk section and the entire fluxer servers crashed

gilded fjord
#

yup

#

same

hazy saddle
#

there we go ;3

marble ridge
#

yeah i think some big community moved over and it crashed the whole thing lol

hazy saddle
#

As soon as they mobile app is up I’m pumping them full of my 5 dollars lmfao

#

They need the support

#

hopefuly they can keep it sustainable

peak cloak
peak cloak
#

how do i even join this idiot

hazy saddle
peak cloak
hazy saddle
#

the epstein list

peak cloak
hazy saddle
#

nah this one @clear bison

clear bison
#

Ah

peak cloak
#

i wanna be on the list tho my project is utterly irrelevant trl

#

and nothing was done ever trl

hazy saddle
#

I’m sure lukflug or mint would love to see it there lol

hazy saddle
#

Why not ask lol

peak cloak
hazy saddle
#

Or if you prefer I can have a kvass section in my server for you

peak cloak
#

nah i want my own server trl

peak cloak
#

oh no their servers are really really cooked

peak cloak
hazy saddle
#

I’ve pinged mods twice in the past 30 minutes

#

Also there is #modmail

peak cloak
#

but you literally added fred first you have a reputation

#

im some idiot making a powerpc thing nooo

hazy saddle
#

Trueee

#

And I have more plans to expand my FRED driver

peak cloak
#

i dont think im the first powerpc fanatic here either, some people definitely deserve to be on The List™ more than me and my non existent idiot

hazy saddle
#

FRED has a lot of docs on shadow stacks

#

So potentially I could get thoes in kernel mode?

peak cloak
#

allegedly

hazy saddle
#

I didn’t read much in that part of the docs

fiery tangle
hazy saddle
hazy saddle
#

it seems my FRED driver has broken on recent commits

#

and i cant getg bochs to work

#

the original commits works in SIMICS but not bochs

#

infact it cant even detect that FRED is supported on bochs

#

and bochs is making my ears hurt with its coruption crap

#

it dosnt crash on SIMICS but somthin is locking up and not getting IRQs

#

so hopefuly isnt too bad of a regression to fix

hazy saddle
#

Il possibly even add a -DFRED_DGB compile option for those prints PSP1G_pspTrollar

#

I have a reputation here to uphold with this /s

urban mulch
#

Because no. They don't. There's like one single chat app most people use to which this applies, but it's WhatsApp and you already know you're getting zuckerberg'd there.

fiery tangle
#

but yea ig

urban mulch
fiery tangle
hazy saddle
#

discord audio and video can do E2EE

urban mulch
#

Oh wow something that's extra hard for them to analyze compared to all the text traffix

#

I'm sure they didn't already know your entire life's story from the text /s

rotund furnace
hazy saddle
#

btw @fiery tangle

#

also join fluxer its cool

fiery tangle
#

also what do ppl want that isnt already in Matrix?

hazy saddle
#

its that it dosnt properly replace discord

urban mulch
#

Fluxer is a Discord replacement, Matrix is explicitly not

fiery tangle
hazy saddle
#

its buggy af and missing tons of moderation stuff

fiery tangle
#

missing tons of moderation stuff
Oh...

hazy saddle
#

if you ban one person from a channel in a space

#

it dosnt apply to other channels

fiery tangle
#

I wrote a hella long message but it didn't make sense KEKW

clear bison
#

Bochs is outdated asf

hazy saddle
#

lmfao

#

fluxxer pls work

urban mulch
#

That's just russion non-E2EE by default

peak cloak
urban mulch
#

If you use Telegram for something that needs opsec you're a fucking moron

urban mulch
hazy saddle
#

They “”should”” have it

#

But somthing is clearly severely fucked

clear bison
#

How do you detect FRED presence?

#

Checking some MSR?

hazy saddle
#

It’s on CPUID

#

My source code does check for it

#

But the latest commits have broken it PSP1G_pspTrollar

#

Well the getting of IRQs

#

I’m gonna look into it later once QEMU TCG has FRED

#

It dosnt crash or anything

#

Just locks up so I presume it’s something really basic

hazy saddle
#

I guess talk is cheap

sterile plank
#

send patches

hazy saddle
#

I am nowhere near well versed enough in the QEMU codebase though

#

I can’t even find the non i386 shit on the codebase is

hazy saddle
#

i may take one extra day of break here wahhgone

#

it atleast gives me time to read some VFS papers

#

which i should do PSP1G_pspTrollar

#

instead of just imagining what a VFS is

sterile plank
#

(I'm forced though, I'll have classes til late late(

hazy saddle
#

@rotund furnace Did say I’ve been burnt out

#

So I should probably take breaks

sterile plank
#

take breaks

#

burnouts are not a fucking joke

#

i abandoned my os that had userspace

#

and almost working gcc

rotund furnace
#

I could tell the second you said you prioritised osdev over drinking water 🥀

#

osdev is never that serious

sterile plank
#

😭

hazy saddle
#

Hey it’s also partly being lazy to get the water

#

I have to leave my room to get water

#

The osdev is right there

sterile plank
#

I should get back to osdev

hazy saddle
#

Did you ever get bash ported?

#

That’s my main goal

#

Hopefully I can make it work

#

I may also need to revisit my VMA as it’s mostly correct it could do a bit better at collation and edge cases especially on MUNMAP

sterile plank
#

but listen if i go back to osdev id be doing the same shit

#

linux like shit

#

using mlibc

#

and limine

hazy saddle
#

I’m pretty close to bash

#

Just a VFS and a fork exec away

#

I got doom and bad apple working so

hazy saddle
#

And I COULD extend it a bit

#

But like it’s super fucking ass

#

I should do it proper

#

And also make the proper /dev/tty devices :p

#

And I should add a pipe driver

sterile plank
#

i remember back in 2023 I was working on a kernel and this shit had TTF font rendering baked in the kernel :^)

hazy saddle
sterile plank
#

the other one had shaders

#

but no gpu

#

it made text gay

#

but i had fun

#

I'm still deeply thankful to Qwinci for explaining paging to me

hazy saddle
#

Paging is kool

#

I lowkey want to make a uACPI project that just gives you free paging :p

sterile plank
#

yeah it is

hazy saddle
#

Like here you go have paging have fun

sterile plank
#

but i REALLY REALLY did not understand it

hazy saddle
#

And I would public domain it

#

It would be lacking a ton of features tho

#

Just map and unmap for 4kb plain x86-64 pages on 4 levels

sterile plank
#

kernel gui library :^)

#

Something something CosmosOS C#

hazy saddle
#

Nah that would make things worse

#

TBH making free paging will allow more slop

#

But like it would be funny

sterile plank
#

just glue up projects together

hazy saddle
#

And maybe allow SOME people to get further without slop

#

Kernel GUI library honestly would just be bad all around lmfao

sterile plank
#

uacpi, your mmu, my graphics, flanterm, limine, mlibc

hazy saddle
#

Make actual graphics

#

Maybe do pcie VGA adapter driver

sterile plank
#

then I'd make generic drivers

#

:^)

#

imagine a world where you have interface that kernel has to implement and drivers use that (it won't exist, it cant)

#

but i saw a guy doing it

hazy saddle
#

uHDA exists

#

It’s a portable Intel audio driver

sterile plank
#

maybe it is possible to create such interface but i don't have enough knowledge to assume things

hazy saddle
#

If your thing needs to do paging

#

You add a way for people to fill in a paging function for example

#

Etc etc

#

Or like allocate physical memory

hollow crater
#

Im supposed to start reading on this too instead of just procrastinating

hazy saddle
#

@hollow crater this is the sunVFS paper

#

I think @cold barn knows some other good papers for this?

hollow crater
hazy saddle
hollow crater
#

😔

hazy saddle
#

And I should do a good bit of research

hollow crater
#

same here but im lazy 💔

#

rn*

hazy saddle
cold barn
hollow crater
#

😭

hazy saddle
#

I forget the context of that gif

#

But it’s funny 😭

hollow crater
#

thaaaanks

hazy saddle
hazy saddle
#

Okayyyy

#

So tomorrow I’m gonna make the VFS

#

And I’m gonna fix up a lot of the shit

#

And and

#

Il make my own shell

#

And il call it

#

“csh”

#

For crap shell

#

What

#

It will be in userspace atleast

#

:p

#

@cold barn can you elaborate 😭 💀

#

I don’t wana implement fork right away

#

It may be easier to make some stupid crap shell

cold barn
#

csh is used already

hazy saddle
#

Fuck

cold barn
#

for "C SHell"

#

lmao

#

DECADES ago

hazy saddle
#

Damn

#

shtty

#

What about that

#

Shitty try

cold barn
#

that works I think

hazy saddle
#

Shitty TTY

#

Ir some crash

#

This will be a bandaid stopgap before I get bash

#

Just so people can’t clown on me for using a kernel shell

#

🥀

#

And so I can clown on other people with a kernel shell

#

XD

cold barn
#

its not hard

hazy saddle
#

True

#

But fork scares me

#

Especially with my very crappy VMA that is kind of okay

cold barn
#

don't be

hazy saddle
#

And that I will need to rework

cold barn
#

you'll need fork for your shell too

hazy saddle
#

True

#

Wait now

#

I was gonna make a syscall

#

That would spawn a process and auto wait the current process on it

#

💀

hazy saddle
# cold barn you'll need fork for your shell too

I mean afaik fork would be copying all of the threads current structures and then marking all the pages as CoW and then in the new thread restore all the registers the same besides the return value

#

Ehh the VFS needs work first

#

I mean I think bash can work without fork?

#

Well it won’t do much

quiet rose
#

is there a deltarune refrence

#

ok im dumb there literally says deltarune

peak cloak
#

where's "you have not win!!! jajajaja!!!"

#

also crap why did it scroll up to something from 2025

#

mobile discord tweaking out BAD

kindred stirrup
mild glacier
hazy saddle
#

Okay so

#

Hm

#

I wonder if I can “””port””” bash

#

And just have it compiling

#

And going to a prompt

#

Get the build system stuff out of the way atleast

#

@soft snow You just got bash ported? What’s the rundown for the build system crap for a static build? Should I just have to point bash’s configure and make to my cross compiler?

hazy saddle
#

nvm i made a typo

#

lmfaoo

#

also i saw manafarn mainlined in there

#

gg

#

crap

#

i possibly need more sysdeps

#

ive gotta get ready to goto my grandmas

#

But getting this port to the point of compiling and loading before burning into a fiery blaze could be good

#

Atleast then I can get the list of sysdeps early

#

And architecture things nicer

hazy saddle
#

And I copied a Linux chunk

#

But forgot to paste it twice

#

And then I edited most of it with my kernels info

#

But left in the Linux bit

soft snow
cold barn
soft snow
#

I also ran into that.

cyan bison
#

ez

soft snow
#

Also sysdeps are just trial and error.

#

I'll make a quick list of the ones I made.

cyan bison
#

what?

hazy saddle
hazy saddle
#

Ehh

#

Il do that when I fix it

hazy saddle
hazy saddle
#

I snooped into astrals folder

hazy saddle
#

I’m here

soft snow
#

Its not Linux

#

Its glibc

#

glibc option m

hazy saddle
#

That’s what the symlink one said

#

Crap that’s the one with an s

#

💀

#

Sorry @soft snow

soft snow
#

Lol

peak cloak
#

Managerms assertos

hazy saddle
#

i presume this is because i dont have them installed?

#

let me run the script

#

crap

soft snow
#

maybe Im just stupid but ye

urban mulch
#

This is only a thing if you enable the linux option

hazy saddle
urban mulch
#

Linux requires a LOT of random extras

hazy saddle
urban mulch
#

I just hope you don't encounter some random thing that detects a Linux feature via m4 then depends on it

hazy saddle
soft snow
#

Why even enable it when you can't use it?

#

(and might potentially suffer from the linux feature detecting Emma mentioned)

hazy saddle
#

glibc and posix it is then

soft snow
#

Well that's what I have enabled atleast.

hazy saddle
opaque marten
#

they like to delacre their own implementations

#

you have to add a bunch of ac_cv things that disable their functions to tell them libc has them

cold barn
#

or you have to figure out where it detects that libc has them, and satisfy those checks

hazy saddle
#

Then I tried to power busybox

#

That was way worse lmfao

#

Even an all no config wants a fuck ton of Linux crap and I got tried after the 7th abi bit and then it giving some random file being missing error

cold barn
#

Does your os run in virtualbox?

hazy saddle
#

It should?

cold barn
#

If so I can try to help port toybox or bash

hazy saddle
#

That would be amazing

#

I just need to get the stupid thing to compile so i can throw sysdeps at it proper

#

Want me to give you an ISO to test before you grab my entire thing and build the toolchain?

cold barn
#

you might wanna update this link to the codeberg btw

hazy saddle
#

Uhhh my laptops kernel build is fucking up

#

Let me fix this real quick

hazy saddle
#

💀

#

@cold barn I have some older builds on my file server you can test in the meantime

cold barn
#

ok cool

hazy saddle
cold barn
#

what disk controller should I use?

peak cloak
#

ide trl

hazy saddle
#

I don’t have any disk drivers so it should be fine as long as limine supports it

cold barn
#

NVMe for the drive, and USB for the ISO? IDE? SATA?

#

ah ok

hazy saddle
#

I plan to do NVME though

cold barn
#

you'll want at least one other if you want to support reading the ISO. which you could just use limine for I guess

hazy saddle
#

I have plans to do AHCI & USB at some point

#

Possibly after networking though

#

But that’s all after x11

hazy saddle
cold barn
hazy saddle
#

If it breaks for the dev branch let me know the errors and I will patch it

#

Ooo that looks excellent

#

If bash gives you issues 100% go for that

#

I’m rebuilding the libc on my laptop rn

#

Including GCC and core utils

cold barn
#

I just need an x86_64-elf right? or do you have a gcc patch

hazy saddle
#

I have a script that will build gcc core utils and mlibc with all my patches automatically

#

You just have to add it to the path manually

#

It seems some mirrors are being an ass so I had to re run it a few times so it could grab the source

cold barn
#

I can also just build the toolchain myself
is the gcc patch based on a git version, or a specific release?

hazy saddle
hazy saddle
#

And I have a patch in the directives

#

You can do it yourself

#

Should be src/patches

cold barn
#

I'm just using build-libc

#

also if you have fast internet, I've found that downloading gcc-*.tar.gz is faster than gcc-*.tar.xz, since the xz takes aaaages to unpack

hazy saddle
#

Crap I forgot my laptop charger

#

I can use my phone charger and it should keep it alive

#

TIL I can pick it up tomorrow

cold barn
#

in /root/evalynos/src/libc/binutils-2.45.1/build/ld I get: make all-recursive make[1]: Entering directory '/root/evalynos/src/libc/binutils-2.45.1/build/ld' Making all in po make[2]: Entering directory '/root/evalynos/src/libc/binutils-2.45.1/build/ld/po' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/root/evalynos/src/libc/binutils-2.45.1/build/ld/po' make[2]: Entering directory '/root/evalynos/src/libc/binutils-2.45.1/build/ld' make[2]: *** No rule to make target '/root/evalynos/src/libc/binutils-2.45.1/ld/scripttempl/.sc', needed by 'eelf_x86_64_evalynos.c'. Stop. make[2]: Leaving directory '/root/evalynos/src/libc/binutils-2.45.1/build/ld' make[1]: *** [Makefile:1904: all-recursive] Error 1 make[1]: Leaving directory '/root/evalynos/src/libc/binutils-2.45.1/build/ld' make: *** [Makefile:1093: all] Error 2

hazy saddle
#

Sometimes the script file is annoying and if you run it twice it will kick it back 💀

cold barn
#

genscripts is a big user of scriptteml/${SCRIPT_NAME}.sc, so maybe something went wrong there or somewhere that called it?

hazy saddle
#

Maybe?

#

All I know is my shell script works and I never wana touch it pain

#

Getting binutils and GCC was a pain

cold barn
#
CFLAGS_FOR_TARGET="-march=x86-64 -mabi-sysv"
CXXFLAGS_FOR_TARGET="-march=x86-64 -mabi-sysv"```
shouldn't this be set in your port?
#

also I kinda doubt you even need that

hazy saddle
#

That’s set in my script file

#

At the top I think?

cold barn
#

also I highly recommend using wget -c -O instead of wget -O, so you won't redownload the files

cold barn
#

I'm going through it right now trying to find odd looking stuff to see if we can fix the "you gotta run it twice" issue

hazy saddle
#

Ahh

#

To be fair it happened on a fresh install on my laptop

#

And then never happened again

cold barn
#

if [ ! -e "${SRC_DIR}/.got-binutils" ]? just verify a checksum of it, or trust in wget -c to make sure the file is properly downloaded. if it is partially fetched, wget will finish it. if it's fully fetched, it will exit(0)

hazy saddle
cold barn
#

yeah, wget -c will too

hazy saddle
#

Because I did not know about that argument of wget

cold barn
#

ah

hazy saddle
#

I do hash checks for my doom port which has a script file similar to this

#

I’ve been considering swapping to meson soon™ which should fix a lot of this madness

#

Btw thanks for helping PCC

cold barn
#

eh, it's not that mad, it just seems like you're not super familiar with shell tools

#
if [ -d ${BINUTILS_DIR}/build ]; then
    if [ "$(ls -A ${BINUTILS_DIR}/build)" ]; then                                                                                                                                            rm -rf ${BINUTILS_DIR}/build
        mkdir -p ${BINUTILS_DIR}/build
    fi
else
    mkdir -p ${BINUTILS_DIR}/build
fi```
this can be replaced with `rm -rf .../build; mkdir -p .../build`
#

rm's -f will make sure it never fails assuming you have write access

#

even if the file doesn't exist

hazy saddle
#

Huh neat

#

Yeah I do use shell utilis a bit but I haven’t scripted too much with them wahhgone

cold barn
#

I might take a hack at rewriting that script later, or maybe even converting it to a makefile if you'd prefer I try that. sometimes build systems get weird when using makefiles though, so I'll just fall back to a shell script if it gets too bad

cold barn
hazy saddle
#

Oooo neat

#

I have considered making a mini Lua build system that would be a glorified list of other scripts to run and then they define the steps to execute them

cold barn
#

so similar to what Oasis linux does?

hazy saddle
#

Which would atleast be more standard than what I have rn and would integrate with other build system

hazy saddle
#

Just as a wrapper for all the other things

cold barn
#

yeah I've run build-libc 3 times total now and it's not changing the result

#

I'll try a manual build+patch

hazy saddle
#

To be fair this is designed for arch Linux and I haven’t tested elsewhere

cold barn
#

ah

#

I still don't think that should change too much

hazy saddle
#

I mean in the earlier days I’ve had issues with Debian friends yaaar

hazy saddle
cold barn
#

well, I'm going to rework your script first I think

#

and I'll probably keep the patch method just since that's the way it will actually build

hazy saddle
#

I think patches are better versed downing from my repo as it’s more trust worthy

cold barn
#

also btw, $PWD can be manipulated so $(pwd) is safer

hazy saddle
#

Interesting lmfao

cold barn
#

do you care about how many spaces per tab? I usually use 2 but I can change it to 4 to keep with the old script style

hazy saddle
#

I like using 4 spaces and no tabs but I can always change it later if you wish to write it your way

#

Not like the codebase has any standards anyways pain

#

(That’s gonna be part of my plan when cleaning up everything)

cold barn
hazy saddle
#

Tabs in my editor show things in the white space and it drives me mad whenever I have to write go which enforces real tabs wahhgone

hazy saddle
#

got a crash on real hardware

#

i think its because i forgot to patch this

#

and well it dont like poor paging tables

#

lmfao

#

yayyy it fixed it

#

and the heao deadlocked again because it was too slow and the heap fragments way too much

hazy saddle
peak cloak
#

heao

hazy saddle
#

Heap

#

I mean it dosnt help I allocate 64kb chunks off it

#

💀

#

Likeee

peak cloak
hazy saddle
#

I 100% need to rework my heap

peak cloak
#

kids these days with even more slang terms that are unnecessary yet they somehow help with performance

#

more memroy allocations

hazy saddle
#

But atleast that’s a known bug where it gets stuck in an infinite loop and NOT a thread safety issues

hazy saddle
#

Basically the heap can get too fragmented and then it tries to call the PMM

#

But it won’t get enough from it by mistake

#

And cause issues™

#

BUT it’s a known bug

#

I’m not fixing

#

Because I’m gonna completely redo that code

#

:p

peak cloak
cold barn
#

EWONTFIX

peak cloak
hazy saddle
#

So there isn’t a point when it only happens on stress tests

#

Like I either fix it and waste time

#

Or I just redo it like o was gonna anyways

peak cloak
hazy saddle
#

It’s funny

peak cloak
#

fix bugs

#

theyre gonna become colonies later

hazy saddle
#

I’m pretty proud of this project

peak cloak
#

dedotated wham to rhum this survhur

hazy saddle
hazy saddle
#

Along with ESNDPATCH

peak cloak
hazy saddle
#

Btw @cold barn how goes that script file? Need anything from me etc?

#

I may be going to sleep in 40 minutes or so

cold barn
#

nah i don't, I kinda got distracted but I am coming back to it every now and then lol

hazy saddle
#

Ahh lol

#

All good

#

Whatcha being distracted by?

cold barn
#

tracking the prices of consumable substances

#

and vcing with horny transfems

peak cloak
#

average OSdever activity

hazy saddle
#

I’m playing Pokemon fire red rn after fixing that bug

#

I should upload it to git rn tho lol

#

oh btw PCC you did get on the dev branch right?

#

the main branch needs to be updated soon

#

i think its 3 other times people have grabbed the wrong one lmfao

#

tho for this iirc only a few mlibc patches happened

#

so should be fine either way

#

Ngl @peak cloak if you get your kconfig clone going well I think I wana use it

#

Would be cool to be able to enable/disable certain drivers etc

peak cloak
#

gregloader's config works fine

#

idk it at least doesnt crash in my experience

peak cloak
#

theres currently no option to disable or enable entries if some item is toggled tho

#

idk it might be necessary for it to not look weird-ish

hazy saddle
#

Okay idea

#

Let things have a dependency on other things

#

But also have an option to show things as greyed out instead of hidden

#

Because it’s really annoying inside of kconfig

#

And have a key to force enable it by toggling the dependancies when greyed

peak cloak
hazy saddle
#

Btw what file does it generate at the end tro

peak cloak
#

i mean honestly first consider if you need the "if i enable this tihs appears" thing

peak cloak
#

something like this i guess

#

the goal for it is to get loaded into a makefile as an include

#

or even a bash script, why not trl

hazy saddle
#

Ooo looks good

#

Honestly borscht is a genuinely good project

#

Like I am very proud of you

peak cloak
#

talk is cheap, send pa- trl

hazy saddle
#

Atleast it’s better than kconfig

peak cloak
#

how so

hazy saddle
#

Easier to add to other projects

peak cloak
#

idk i mean kconfig is linux only

#

and i think its syntax might just be peepeepoopoo

cold barn
hazy saddle
#

Yeah it’s fucking ass

cold barn
#

the syntax is not that bad

#

it's good as a DSL

hazy saddle
#

I mean I like @peak cloak s more

peak cloak
hazy saddle
peak cloak
cold barn
#

for built in, module, and not built

peak cloak
#

wait what does y/m/n stand for

#

i thought it was year month and day trl

cold barn
peak cloak
peak cloak
#

i still have radio buttons for that tho trl