mirror of
https://gitlab.com/bztsrc/bootboot.git
synced 2023-02-13 20:54:32 -05:00
Mykernel directory reorg
This commit is contained in:
parent
d258506c6b
commit
c78962025d
26 changed files with 50 additions and 17 deletions
|
@ -14,7 +14,7 @@ Előre lefordított binárisok mellékelve, egyből használhatók.
|
|||
3. *aarch64-rpi* ARMv8 betöltő Raspberry Pi 3-hoz, 4-hez
|
||||
[bootboot.img](https://gitlab.com/bztsrc/bootboot/raw/master/dist/bootboot.img) (34k)
|
||||
|
||||
4. *mykernel* egy példa BOOTBOOT [kompatíbilis kernel](https://gitlab.com/bztsrc/bootboot/tree/binaries/mykernel) (forrás elérhető [C](https://gitlab.com/bztsrc/bootboot/tree/master/mykernel)-ben, [Pascal](https://gitlab.com/bztsrc/bootboot/tree/master/mykernel-pas)-ban, [Rust](https://gitlab.com/bztsrc/bootboot/tree/master/mykernel-rust)-ban és [Go](https://gitlab.com/bztsrc/bootboot/tree/master/mykernel-go)-ban), ami vonalakat húz meg színes dobozokat rajzol
|
||||
4. *mykernel* egy példa BOOTBOOT [kompatíbilis kernel](https://gitlab.com/bztsrc/bootboot/tree/binaries/mykernel) (forrás elérhető [C](https://gitlab.com/bztsrc/bootboot/tree/master/mykernel/c)-ben, [Pascal](https://gitlab.com/bztsrc/bootboot/tree/master/mykernel/pas)-ban, [Rust](https://gitlab.com/bztsrc/bootboot/tree/master/mykernel/rust)-ban és [Go](https://gitlab.com/bztsrc/bootboot/tree/master/mykernel/go)-ban), ami vonalakat húz meg színes dobozokat rajzol
|
||||
|
||||
5. *mkbootimg* minden az egyben, multiplatform [bootolható lemezkép készítő](https://gitlab.com/bztsrc/bootboot/tree/binaries) (Windows, MacOSX, Linux).
|
||||
|
||||
|
@ -100,7 +100,7 @@ tinflate: Joergen Ibsen
|
|||
|
||||
raspbootcom: (GPL) Goswin von Brederlow
|
||||
|
||||
mykernel-rust: Vinay Chandra
|
||||
mykernel/rust: Vinay Chandra
|
||||
|
||||
BOOTBOOT, FS/Z: bzt
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ I provide pre-compiled images ready for use.
|
|||
3. *aarch64-rpi* ARMv8 boot loader for Raspberry Pi 3, 4
|
||||
[bootboot.img](https://gitlab.com/bztsrc/bootboot/raw/master/dist/bootboot.img) (34k)
|
||||
|
||||
4. *mykernel* an example BOOTBOOT [compatible kernel](https://gitlab.com/bztsrc/bootboot/tree/binaries/mykernel) (source available in [C](https://gitlab.com/bztsrc/bootboot/tree/master/mykernel), [Pascal](https://gitlab.com/bztsrc/bootboot/tree/master/mykernel-pas), [Rust](https://gitlab.com/bztsrc/bootboot/tree/master/mykernel-rust) and [Go](https://gitlab.com/bztsrc/bootboot/tree/master/mykernel-go)) which draws lines and boxes
|
||||
4. *mykernel* an example BOOTBOOT [compatible kernel](https://gitlab.com/bztsrc/bootboot/tree/binaries/mykernel) (source available in [C](https://gitlab.com/bztsrc/bootboot/tree/master/mykernel/c), [Pascal](https://gitlab.com/bztsrc/bootboot/tree/master/mykernel/pas), [Rust](https://gitlab.com/bztsrc/bootboot/tree/master/mykernel/rust) and [Go](https://gitlab.com/bztsrc/bootboot/tree/master/mykernel/go)) which draws lines and boxes
|
||||
|
||||
5. *mkbootimg* an all-in-one multiplatform [bootable disk image creator](https://gitlab.com/bztsrc/bootboot/tree/binaries/) (Windows, MacOSX, Linux).
|
||||
|
||||
|
@ -101,7 +101,7 @@ tinflate: Joergen Ibsen
|
|||
|
||||
raspbootcom: (GPL) Goswin von Brederlow
|
||||
|
||||
mykernel-rust: Vinay Chandra
|
||||
mykernel/rust: Vinay Chandra
|
||||
|
||||
BOOTBOOT, FS/Z: bzt
|
||||
|
||||
|
|
17
mykernel/OLVASSEL.md
Normal file
17
mykernel/OLVASSEL.md
Normal file
|
@ -0,0 +1,17 @@
|
|||
BOOTBOOT Minta Kernelek
|
||||
=======================
|
||||
|
||||
Általános leírásért lásd a [BOOTBOOT Protokoll](https://gitlab.com/bztsrc/bootboot)t.
|
||||
|
||||
Ezek példa "Hello Világ" kernelek különböző programozási nyelveken írva. Bináris verzió
|
||||
elérhető [itt](https://gitlab.com/bztsrc/bootboot/tree/binaries/mykernel). Sikeres indítás
|
||||
után egy ilyen képernyőt kell látnod:
|
||||
|
||||
<img src="https://gitlab.com/bztsrc/bootboot/raw/binaries/mykernel/screenshot.png" alt="Screenshot">
|
||||
|
||||
Fordítás
|
||||
--------
|
||||
|
||||
Az adott nyelv mappájában csak futtasd a `make` parancsot. Kelleni fog a `gcc`, `fpc` (FreePascal Compiler),
|
||||
`cargo` + `rust`, és a `gccgo` (GNU go-lang fordító, NEM a hivatalos go-lang fordító!).
|
||||
|
16
mykernel/README.md
Normal file
16
mykernel/README.md
Normal file
|
@ -0,0 +1,16 @@
|
|||
BOOTBOOT Example Kernels
|
||||
========================
|
||||
|
||||
See [BOOTBOOT Protocol](https://gitlab.com/bztsrc/bootboot) for common details.
|
||||
|
||||
These are sample "Hello World" kernels written in different system languages. Binary
|
||||
versions [here](https://gitlab.com/bztsrc/bootboot/tree/binaries/mykernel). They all
|
||||
should output a screen like this after a successful boot:
|
||||
|
||||
<img src="https://gitlab.com/bztsrc/bootboot/raw/binaries/mykernel/screenshot.png" alt="Screenshot">
|
||||
|
||||
Compilation
|
||||
-----------
|
||||
|
||||
In the language's directory, just run `make`. You'll need `gcc`, `fpc` (FreePascal Compiler),
|
||||
`cargo` + `rust`, and `gccgo` (GNU go-lang compiler, NOT the official go-lang compiler!).
|
|
@ -1,5 +1,5 @@
|
|||
#
|
||||
# mykernel/Makefile
|
||||
# mykernel/c/Makefile
|
||||
#
|
||||
# Copyright (C) 2017 - 2021 bzt (bztsrc@gitlab)
|
||||
#
|
||||
|
@ -28,7 +28,7 @@
|
|||
#
|
||||
#
|
||||
|
||||
CFLAGS = -Wall -fpic -ffreestanding -fno-stack-protector -nostdinc -nostdlib -I../dist/
|
||||
CFLAGS = -Wall -fpic -ffreestanding -fno-stack-protector -nostdinc -nostdlib -I../../dist/
|
||||
|
||||
all: mykernel.x86_64.elf mykernel.aarch64.elf
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* mykernel/kernel.c
|
||||
* mykernel/c/kernel.c
|
||||
*
|
||||
* Copyright (C) 2017 - 2021 bzt (bztsrc@gitlab)
|
||||
*
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* mykernel/link.ld
|
||||
* mykernel/c/link.ld
|
||||
*
|
||||
* Copyright (C) 2017 - 2021 bzt (bztsrc@gitlab)
|
||||
*
|
|
@ -1,5 +1,5 @@
|
|||
#
|
||||
# mykernel-go/Makefile
|
||||
# mykernel/go/Makefile
|
||||
#
|
||||
# Copyright (C) 2017 - 2021 bzt (bztsrc@gitlab)
|
||||
#
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* mykernel-go/go_rt0.s
|
||||
* mykernel/go/go_rt0.s
|
||||
*
|
||||
* Copyright (C) 2017 - 2021 bzt (bztsrc@gitlab)
|
||||
*
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* mykernel-go/kernel.go
|
||||
* mykernel/go/kernel.go
|
||||
*
|
||||
* Copyright (C) 2017 - 2021 bzt (bztsrc@gitlab)
|
||||
*
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* mykernel-go/link.ld
|
||||
* mykernel/go/link.ld
|
||||
*
|
||||
* Copyright (C) 2017 - 2021 bzt (bztsrc@gitlab)
|
||||
*
|
|
@ -1,5 +1,5 @@
|
|||
#
|
||||
# mykernel-pas/Makefile
|
||||
# mykernel/pas/Makefile
|
||||
#
|
||||
# Copyright (C) 2017 - 2021 bzt (bztsrc@gitlab)
|
||||
#
|
|
@ -1,5 +1,5 @@
|
|||
{*
|
||||
* mykernel-pas/bootboot.inc
|
||||
* mykernel/pas/bootboot.inc
|
||||
*
|
||||
* Copyright (C) 2017 - 2021 bzt (bztsrc@gitlab)
|
||||
*
|
|
@ -1,5 +1,5 @@
|
|||
{*
|
||||
* mykernel-pas/kernel.pas
|
||||
* mykernel/pas/kernel.pas
|
||||
*
|
||||
* Copyright (C) 2017 - 2021 bzt (bztsrc@gitlab)
|
||||
*
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* mykernel-pas/link.ld
|
||||
* mykernel/pas/link.ld
|
||||
*
|
||||
* Copyright (C) 2017 - 2021 bzt (bztsrc@gitlab)
|
||||
*
|
|
@ -1,5 +1,5 @@
|
|||
{*
|
||||
* mykernel-pas/system.pas
|
||||
* mykernel/pas/system.pas
|
||||
*
|
||||
* Copyright (C) 2017 - 2021 bzt (bztsrc@gitlab)
|
||||
*
|
Loading…
Reference in a new issue