Habr

[Перевод] Операционная система в 1 000 строках кода (часть 2)

Продолжаем серию статей, посвящённую написанию собственной минималистичной ОС. В прошлой части мы познакомились со всеми вводными компонентами проекта и поставили общие цели. В этой же мы реализуем загрузку ядра, вывод строки Hello World!, механизм паники ядра, а также некоторые функции управления памятью и работы со строками. ▍ Навигация по вышедшим частям Часть 1 Часть 2 < — вы здесь.

habr.com/ru/companies/ruvds/ar

#ruvds_перевод #операционные_системы #разработка_ядра #linux #паника_ядра #работа_с_памятью #opensbi

Операционная система в 1 000 строках кода (часть 2)

Продолжаем серию статей, посвящённую написанию собственной…

Хабр
Lup Yuen Lee 李立源

Inside TinyEMU #RISCV Emulator: This is how we emulate the #OpenSBI System Timer with the Machine-Mode System Timer

Article: lupyuen.codeberg.page/articles

Jarkko Sakkinen
I like how easy it is with RISC-V to emulation ISA extensions by emulating privileged instructions in M-mode. that makes it pretty good production creation platform when you have something in-between FPGA and QEMU. I.e. you can take ASIC board and build a PoC with customized OpenSBI. #riscv #opensbi #fpga #qemu
Akkoma

social.kernel.org
Jarkko Sakkinen
Nice, with the DIP switches Starfive VisionFive 2 SBC can be made to boot the full chain from SD card. Initially booting from SPI flash for any possible use for this never really makes sense. It is a badly chosen default for this sort of maker and/or developer product :-) #riscv #opensbi #uboot #starfive #visionfive2 #keystone
Akkoma

social.kernel.org
Lup Yuen Lee 李立源

#OpenSBI provides Secure Access to the #RISCV System Functions ... Like for controlling CPUs and Timers

Article: lupyuen.codeberg.page/articles

Lup Yuen Lee 李立源

Let's boot Apache #NuttX RTOS on #RISCV Star64 #JH7110 SBC (VisionFive5 too) ... And experiment with the #OpenSBI Supervisor Binary Interface

Article: lupyuen.codeberg.page/articles

exponentialverteit

Seems AMD with #openSIL could end up more open than RISC-V with their affinity to vintage hardware architecture #OpenSBI.

Daniel 黄法官 CyReVolt 🐢

I found the fix to the #DRAM issue on the #JH7100 / #VisionFive1 - missed copying one stupid function call, whoopsies!

`disable_u74_memaxi_remap(1)` - that was it.

So, in other words: @oreboot now loads the #OpenSBI + U-Boot blob successfully and runs it from the cacheable RAM.

Next week I'll recap that and then get back to drafting #RustSBI, but the rest will be for next year.

Vagrant Cascadian

I've mostly used the #pinephone with #mobian for communications.

The other day I got an email while sitting on the couch that a alternate #reproduciblebuilds patch for #opensbi was merged.

The smart thing to do would be to ssh into another machine to confirm the fix.

The *fun* thing to do was to confirm the fix by building the package twice on the pinephone using a standard #debian tool, sbuild.

It is so nice to have a handheld computer instead of a phone!

#notforeverybody #funforme