Page 1 of 1

HanOS

Posted: Fri Oct 15, 2021 4:45 am
by junjie
HanOS

https://github.com/jjwang/HanOS

Its design is as below:

- Bootloader: Limine is used to get the kernel running as quickly possible. Boot protocol stivale2 is chosed by HanOS.
- CPU mode: x86-64 Long Mode is supported in HanOS. HanOS does not has plan to support other x86 modes.
- GUI: GUI will not be the 1st priority for HanOS. But HanOS will port some GUI libraries in the future.

Thanks a lot to osdev and hobby os community!

Re: HanOS: x64 Hobby OS Started from Scratch

Posted: Fri Oct 15, 2021 6:13 am
by klange
While I very much encourage the use of my OS as a reference, and that is a major part of why I continue to develop it, I strongly recommend that you read the license and understand what it requires of you.

https://github.com/jjwang/HanOS/blob/2d ... ice/cmos.c
https://github.com/klange/toaruos/blob/ ... _64/cmos.c

https://github.com/jjwang/HanOS/blob/2d ... keyboard.h
https://github.com/klange/toaruos/blob/ ... oaru/kbd.h

etc.

(By the way, I made up those keyboard key values, they are completely arbitrary; I recommend you use something more standardized like the USB HID scancodes)

Re: HanOS: x64 Hobby OS Started from Scratch

Posted: Fri Oct 15, 2021 6:19 am
by vvaltchev
klange wrote:While I very much encourage the use of my OS as a reference, and that is a major part of why I continue to develop it, I strongly recommend that you read the license and understand what it requires of you.

https://github.com/jjwang/HanOS/blob/2d ... ice/cmos.c
https://github.com/klange/toaruos/blob/ ... _64/cmos.c

https://github.com/jjwang/HanOS/blob/2d ... keyboard.h
https://github.com/klange/toaruos/blob/ ... oaru/kbd.h

etc.

(By the way, I made up those keyboard key values, they are completely arbitrary; I recommend you use something more standardized like the USB HID scancodes)
@klange, I'm impressed by how quickly you found some copy-pasted code from another project. Do you have a tool for that?

Re: HanOS: x64 Hobby OS Started from Scratch

Posted: Fri Oct 15, 2021 6:36 am
by junjie
klange wrote:While I very much encourage the use of my OS as a reference, and that is a major part of why I continue to develop it, I strongly recommend that you read the license and understand what it requires of you.

https://github.com/jjwang/HanOS/blob/2d ... ice/cmos.c
https://github.com/klange/toaruos/blob/ ... _64/cmos.c

https://github.com/jjwang/HanOS/blob/2d ... keyboard.h
https://github.com/klange/toaruos/blob/ ... oaru/kbd.h

etc.

(By the way, I made up those keyboard key values, they are completely arbitrary; I recommend you use something more standardized like the USB HID scancodes)
Hi klange, many thanks for your comments! I quickly deleted the codes and will updated codes/docs according to your LICENSE. My interest on Hobby OS is mainly motivated by your great ToaruOS project!

Re: HanOS: x64 Hobby OS Started from Scratch

Posted: Fri Oct 15, 2021 7:10 am
by junjie
vvaltchev wrote:
klange wrote:While I very much encourage the use of my OS as a reference, and that is a major part of why I continue to develop it, I strongly recommend that you read the license and understand what it requires of you.

https://github.com/jjwang/HanOS/blob/2d ... ice/cmos.c
https://github.com/klange/toaruos/blob/ ... _64/cmos.c

https://github.com/jjwang/HanOS/blob/2d ... keyboard.h
https://github.com/klange/toaruos/blob/ ... oaru/kbd.h

etc.

(By the way, I made up those keyboard key values, they are completely arbitrary; I recommend you use something more standardized like the USB HID scancodes)
@klange, I'm impressed by how quickly you found some copy-pasted code from another project. Do you have a tool for that?
Thanks again for klange's codes for reference. @vvaltchev, @klange can find it because he is very familar with his codes.