klange changed the topic of #osdev to: Operating System Development || Don't ask to ask---just ask! || For 3+ LoC, use a pastebin (for example https://gist.github.com/) || Stats + Old logs: http://osdev-logs.qzx.com New Logs: https://libera.irclog.whitequark.org/osdev || Visit https://wiki.osdev.org and https://forum.osdev.org || Books: https://wiki.osdev.org/Books
masoudd has joined #osdev
sonny has quit [Quit: Going offline, see ya! (www.adiirc.com)]
mahmutov has quit [Ping timeout: 240 seconds]
Burgundy has quit [Ping timeout: 252 seconds]
andreas303 has quit [Quit: fBNC - https://bnc4free.com]
andreas303 has joined #osdev
<heat> downcat
<gog> what's downcat
<heat> it's all bad
<gog> :(
<mrvn> "Don't fuck with the post office."
<mrvn> getting closer to type checking my ipc messages automatically
heat has quit [Remote host closed the connection]
heat has joined #osdev
nyah has quit [Ping timeout: 250 seconds]
Mutabah has quit [Ping timeout: 256 seconds]
Mutabah has joined #osdev
freakazoid333 has quit [Ping timeout: 256 seconds]
<not_not> Lol
<not_not> U guys ever play jk3?
<gog> i played a lot of jk2
<gog> mostly multiplayer
pg12 has quit [Ping timeout: 256 seconds]
masoudd has quit [Ping timeout: 260 seconds]
mlombard has quit [Ping timeout: 256 seconds]
freakazoid343 has joined #osdev
freakazoid343 has quit [Ping timeout: 256 seconds]
gwizon has quit [Quit: Lost terminal]
[itchyjunk] has quit [Ping timeout: 240 seconds]
pg12 has joined #osdev
[itchyjunk] has joined #osdev
pretty_dumm_guy has quit [Quit: WeeChat 3.4]
terrorjack has quit [Quit: The Lounge - https://thelounge.chat]
terrorjack has joined #osdev
ElectronApps has joined #osdev
rcvalle has joined #osdev
rcvalle has quit [Quit: Leaving]
rcvalle has joined #osdev
not_not has quit [Ping timeout: 256 seconds]
CaCode- has joined #osdev
CaCode_ has quit [Ping timeout: 240 seconds]
gog has quit [Ping timeout: 256 seconds]
smeso has quit [Quit: smeso]
smeso has joined #osdev
<bslsk05> ​mdasoh/simple_verilator - simple model for evaluating logic with verilator (0 forks/0 stargazers)
gog has joined #osdev
gog has quit [Client Quit]
CaCode- has quit [Ping timeout: 256 seconds]
the_lanetly_052 has joined #osdev
the_lanetly_052 has quit [Max SendQ exceeded]
the_lanetly_052 has joined #osdev
the_lanetly_052 has quit [Max SendQ exceeded]
the_lanetly_052 has joined #osdev
the_lanetly_052 has quit [Max SendQ exceeded]
eroux has joined #osdev
the_lanetly_052 has joined #osdev
[itchyjunk] has quit [Quit: Leaving]
heat has quit [Ping timeout: 250 seconds]
masoudd has joined #osdev
ss4 has joined #osdev
wootehfoot has quit [Ping timeout: 256 seconds]
mlombard has joined #osdev
puck has quit [Excess Flood]
puck has joined #osdev
the_lanetly_052 has quit [Ping timeout: 256 seconds]
the_lanetly_052 has joined #osdev
CaCode has joined #osdev
CaCode_ has joined #osdev
CaCode has quit [Ping timeout: 272 seconds]
<kazinsal> went to upgrade my one official Linux On The Desktop VM and got this. good work, Mint. https://i.imgur.com/aVJX6Jw.png
<kazinsal> I'm not even sure where to go about starting to troubleshoot this but at least I took a snapshot before the upgrade
<klange> mm, crispy gpu
<Mutabah> I've seen that happen recently too... try software rendering as a fallback
<Mutabah> (at least it'll allow you to dig into the issue)
<kazinsal> yeah it looks like at some point the vmsvga drivers just utterly broke because switching the paravirtual graphics to BGA fixes it but obviously provides no acceleration
<CompanionCube> there was once a mesa update which caused...a .colourful desktop momentarily
<CompanionCube> i think it involved 10-bit colour
<bslsk05> ​gitlab.freedesktop.org: [bisected] Compton weird colors (#1299) · Issues · Mesa / mesa · GitLab
elastic_dog has quit [Quit: elastic_dog]
elastic_dog has joined #osdev
jjuran has quit [Quit: Killing Colloquy first, before it kills me…]
jjuran has joined #osdev
hmmmm has quit [Read error: Connection reset by peer]
eroux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ss4 has quit [Quit: Leaving]
wootehfoot has joined #osdev
m5zs7k has quit [Ping timeout: 272 seconds]
m5zs7k has joined #osdev
GeDaMo has joined #osdev
CaCode_ has quit [Quit: Leaving]
the_lanetly_052 has quit [Ping timeout: 256 seconds]
pretty_dumm_guy has joined #osdev
pretty_dumm_guy has quit [Client Quit]
Burgundy has joined #osdev
pretty_dumm_guy has joined #osdev
dormito has joined #osdev
eroux has joined #osdev
<g1n> hi
rb has quit [Ping timeout: 272 seconds]
dennis95 has joined #osdev
vin has joined #osdev
<vin> Is there a sector size for SSDs? HDD have a sector size of 512B but why would SSDs have same size when there are no tracks or sectors on them?
<klange> Pretty much all random-access storage has some concept of sectors. SSDs have a wide range of native sector sizes.
nyah has joined #osdev
<vin> Is the minimum 512 or can it natively support smaller accesses? [512B, 4KB, 1MB, 2Mb] would be some generall sector sizes correct?
<klange> It's mostly 512 (most things), 2048 (CDs, specifically), and 4096 (newer stuff). Not megabytes.
the_lanetly_052 has joined #osdev
ThinkT510 has quit [Quit: WeeChat 3.4]
<Terlisimo> some NVMe drives can be low level formatted to present as either 512b or 4k sector sizes
bxh7 has quit [Quit: ZNC 1.8.2 - https://znc.in]
ThinkT510 has joined #osdev
<Terlisimo> SSDs don't have tracks or sectors but they do have blocks
<Terlisimo> vin: see here under "Reads, Writes and Erasure" https://www.extremetech.com/extreme/210492-extremetech-explains-how-do-ssds-work
<bslsk05> ​www.extremetech.com: How Do SSDs Work? - ExtremeTech
gog has joined #osdev
_eryjus has quit [Remote host closed the connection]
eryjus has joined #osdev
[itchyjunk] has joined #osdev
eroux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
srjek has joined #osdev
blockhead has quit []
eroux has joined #osdev
sonny has joined #osdev
the_lanetly_052_ has joined #osdev
the_lanetly_052 has quit [Ping timeout: 240 seconds]
jjuran_ has joined #osdev
jjuran has quit [Ping timeout: 260 seconds]
jjuran_ is now known as jjuran
xenos1984 has quit [Ping timeout: 260 seconds]
<mrvn> vin: Beware that flash also has an erasure size, which frequently is something like 64k. So while you can write 512b or 4k blocks you can only erase 64k chunks for reuse. If the disk runs out of space the firmware will have to copy partially used erasure blocks around to free one up for reuse.
<mrvn> vin: or your driver for storage that is accessed at a low level.
xenos1984 has joined #osdev
bauen1 has quit [Ping timeout: 256 seconds]
mahmutov has joined #osdev
ElectronApps has quit [Remote host closed the connection]
<j`ey> I'm trying to run qemu-system-x86_64 (never run it before, only -aarch64) like so: qemu-system-x86_64 -hda debian.img -cdrom debian-testing-amd64-netinst.iso -boot d -m 512 -nographic
<j`ey> I don't get any output.. is there something I'm missing/doing wrong?
<j`ey> seems im on quite an old qemu (2.1, from 2017), but I assume that's fine
<gog> idk what grub does to do output but if it's trying to draw it's own fonts you won't get any
the_lanetly_052_ has quit [Ping timeout: 272 seconds]
<gog> OVMF will redirect ConOut to serial and print that
<j`ey> so I probably should grab OVMF then..
<gog> oh wait
<gog> sorry i was assuming you were using UEFI
<gog> uh, idk then, but whatever grub does for output isn't going to work with -nographic
<gog> do you want a headless boot so you can ssh in or something?
<j`ey> yeah
<gog> there are packages for headless versions of qemu
<gog> idk what your distro is
<j`ey> Ubuntu
<gog> apt-cache search qemu-headless ?
<gog> although it might conflict with regular qemu
<j`ey> no headless package
<j`ey> -curses flashes up something from the bios, too quick for me to sea, but then it doens't show anything after that
<gog> yeah i'm guessing grub draws to the framebuffer itself
<gog> and in turn linux console does as well
<gog> can you set the kernel parameters to force it to use serial output for the message stream?
<gog> idk how one would do that via command line from the host though
<j`ey> I tried to use '-append', but that's only available with -kernel
<mrvn> console=tty0 console=ttyS0,115200 to get both
<gog> yeah
<mrvn> try -curses and -nographics
<j`ey> together?
<j`ey> i tried separately and together
wootehfoot has quit [Ping timeout: 256 seconds]
<mrvn> and does any combination show something?
<j`ey> nope
<j`ey> well as i said curses shows the bios briefly, but thats it
<mrvn> hmm, maybe I have something in my grub.cfg for serial output
<j`ey> it just has '640 x 480 GGraphic Mode' in the middle of my screen with -curses
<kingoffrance> hit ctrl-c
<kingoffrance> also, how do you have an older qemu than me
<j`ey> apparently that's what this old ubunut has
<mrvn> yeah, you have to turn off the framebuffer
<j`ey> maybe I should just build it from source..
<kingoffrance> i just used -curses and hit ctrl-c and gives me a boot>
<kingoffrance> *-display curses
<j`ey> ctrl-c doesnt do anything for me :/
* j`ey googling
<kingoffrance> well i can reproduce it with ctrl-c <space> <enter> it goes: vga blank mode <bios stuff> 640 x 480 graphic mode (shown on terminal curses output)
<kingoffrance> so really it gives an error first, but then a get boot: and i can "help" from there
<kingoffrance> *then i
<j`ey> no keys do anything for me
<kingoffrance> i mean, it doesnt show anything until i wait for "640 x 480 graphic mode" to show up on curses, then <ctrl-c> <space> <enter> then i finally see an error and "boot:" prompt. this is qemu 3.1.0 and 2022 02 21 debian 12 (bookworm) netinst. i should mention i just found this by mashing
<kingoffrance> so i dont claim that is correct
<kingoffrance> really i was just hitting ctrl-c to close it lol
<j`ey> heh
the_lanetly_052 has joined #osdev
<kingoffrance> i also have a qemu 0.13.0 ..
<j`ey> archlinux gets a bit further but then seems to hang
<j`ey> ok no, it was just slow, it's printing systemd out now
Terlisimo has quit [Quit: Connection reset by beer]
rwb has joined #osdev
Terlisimo has joined #osdev
sonny has quit [Ping timeout: 272 seconds]
sonny has joined #osdev
dayimproper has quit [Ping timeout: 240 seconds]
X-Scale` has joined #osdev
dayimproper has joined #osdev
X-Scale has quit [Ping timeout: 272 seconds]
X-Scale` is now known as X-Scale
Matt|home has quit [Killed (NickServ (GHOST command used by matt|lib!~matt|lib@12.188.116.55))]
bauen1 has joined #osdev
<vin> makes sense, mrvn
sonny has quit [Ping timeout: 256 seconds]
Matt|home has joined #osdev
the_lanetly_052 has quit [Ping timeout: 240 seconds]
dennis95 has quit [Quit: Leaving]
<gog> my memory manager rewrite is progressing
<gog> no more ugly hack to get the struct page cache set up
<gog> now it's a genius, elegant hack
sonny has joined #osdev
<jimbzy> The best hacks are the ones that work when everything in your gut says they shouldn't.
<gog> yes, this in particular solves an annoying potential issue where if there weren't enough contiguous free physical pages i wouldn't be able to make the page stack
<gog> and not being able to track pages that are like MMIO or something way out of bounds of the end of physical memory
<mrvn> gog: I totaly ignore physical contiguous
<gog> mrvn: i still need large enough contiguous regions to load my boot images but those are rather small still
<gog> i don't think it'll ever become an issue
<mrvn> gog: why? load them into virtual memory?
<gog> my loader isn't quite set up for that. in theory it's possible if i read them in a page at a time and switch from the UEFI mappings to the kernel ones and back
<gog> and i was working on an experiment with that before but it didn't work and i didn't bother digging into why
<gog> that might go on my TODO though
<mrvn> gog: well, in the loader you have the memory map giving you a huge chunk of physical memory and you just use it up.
<gog> j`ey: peeeets
<gog> mrvn: i don't follow, my boot images are only some tens of KiB's large rn
<mrvn> gog: and your memory map probably gives you a nice big fat >1GB chunk of memory.
<gog> it doesn't, i only start with 128MiB's for the vm
<mrvn> still an order of magnitude above what you need
<gog> true
sinan has joined #osdev
sinan has left #osdev [#osdev]
<gog> a few orders actually :p
<mrvn> so all you need for memory management is a pointer to the next free address (4k aligned)
mahmutov has quit [Ping timeout: 250 seconds]
wootehfoot has joined #osdev
X-Scale` has joined #osdev
X-Scale has quit [Ping timeout: 272 seconds]
X-Scale` is now known as X-Scale
sonny has quit [Ping timeout: 240 seconds]
sonny has joined #osdev
xenos1984 has quit [Read error: Connection reset by peer]
xenos1984 has joined #osdev
srjek has quit [Ping timeout: 250 seconds]
mahmutov has joined #osdev
ahalaney has joined #osdev
ahalaney has quit [Client Quit]
ahalaney has joined #osdev
gdd has quit [Quit: WeeChat 3.3]
gdd has joined #osdev
bauen1 has quit [Ping timeout: 250 seconds]
sonny has quit [Ping timeout: 240 seconds]
bauen1 has joined #osdev
pretty_dumm_guy has quit [Ping timeout: 272 seconds]
Raito_Bezarius has quit [Ping timeout: 252 seconds]
sonny has joined #osdev
blockhead has joined #osdev
Raito_Bezarius has joined #osdev
GeDaMo has quit [Remote host closed the connection]
sonny has quit [Ping timeout: 272 seconds]
eroux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mrvn> Happy Twos-Day Tuesday! 22
dormito has quit [Quit: WeeChat 3.3]
sonny has joined #osdev
srjek has joined #osdev
pretty_dumm_guy has joined #osdev
mahmutov has quit [Ping timeout: 272 seconds]
<kingoffrance> yes, yes happy two's day
* kingoffrance secretly renews blood feud against utf with Tiw for Tiw's day
<gog> what did utf do to tiw?
<gog> or are you just enlisting tiw's wisdom and strengh?
<kingoffrance> i dont know the details, but you gotta get when the getting is good
<gog> fair enough
<gog> i'm doing battle against memory management and i think i'm winning
<gog> my test sessions are doing The Thing™
nyah has quit [Quit: leaving]
<mrvn> The generalization of Bogosort. Do something random and see if it solves the problem.
<gog> with enough iterations it will.... statistically speaking
<moon-child> while true; do dd if=/dev/urandom bs=1 count=$RANDOM of=test; chmod 755 test; if testrunner ./test; then break; fi; done
<mrvn> moon-child: oh damn, the first one resulted in "rm -rf /"
<klange> apparently if you leave doom running demos for 24 hours or so, it just stops
<klange> it hasn't crashed, in fact it stopped with an invisible mob on screen and it's still shimmering
srjek has quit [Ping timeout: 240 seconds]
wootehfoot has quit [Ping timeout: 240 seconds]