mirror of
https://gitlab.com/bztsrc/bootboot.git
synced 2023-02-13 20:54:32 -05:00
Recompiled with gcc 8.2.0
This commit is contained in:
parent
be499c1cf1
commit
29b0b119a7
10 changed files with 23 additions and 23 deletions
|
@ -12,7 +12,7 @@ I provide pre-compiled images ready for use.
|
|||
[boot.bin](https://gitlab.com/bztsrc/bootboot/raw/master/boot.bin) (512 bytes, works as MBR, VBR and CDROM boot record too), [bootboot.bin](https://gitlab.com/bztsrc/bootboot/raw/master/bootboot.bin) (11k, loaded by boot.bin, also BBS Expansion ROM and Multiboot compliant)
|
||||
|
||||
3. *aarch64-rpi* ARMv8 boot loader for Raspberry Pi 3
|
||||
[bootboot.img](https://gitlab.com/bztsrc/bootboot/raw/master/bootboot.img) (30k)
|
||||
[bootboot.img](https://gitlab.com/bztsrc/bootboot/raw/master/bootboot.img) (31k)
|
||||
|
||||
4. *mykernel* an example BOOTBOOT [compatible kernel](https://gitlab.com/bztsrc/bootboot/tree/master/mykernel) in C which draws lines and boxes
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
all: boot.S bootboot.c fs.h
|
||||
@echo " src aarch64-rpi (Raspberry Pi 3+)"
|
||||
@aarch64-elf-gcc -Wall -O2 -ffreestanding -nostdinc -nostdlib -nostartfiles -c boot.S -o boot.o
|
||||
@aarch64-elf-gcc -Wall -O2 -ffreestanding -nostdinc -nostdlib -nostartfiles -I ./ -c tinflate.c -o tinflate.o
|
||||
@aarch64-elf-gcc -Wall -O2 -ffreestanding -nostdinc -nostdlib -nostartfiles -I ./ -c bootboot.c -o bootboot.o
|
||||
@aarch64-elf-gcc -Wall -O2 -ffreestanding -nostdinc -nostdlib -nostartfiles -fno-stack-protector -c boot.S -o boot.o
|
||||
@aarch64-elf-gcc -Wall -O2 -ffreestanding -nostdinc -nostdlib -nostartfiles -fno-stack-protector -I ./ -c tinflate.c -o tinflate.o
|
||||
@aarch64-elf-gcc -Wall -O2 -ffreestanding -nostdinc -nostdlib -nostartfiles -fno-stack-protector -I ./ -c bootboot.c -o bootboot.o
|
||||
@aarch64-elf-ld -r -b binary -o font.o font.psf
|
||||
@aarch64-elf-ld -nostdlib -nostartfiles boot.o bootboot.o tinflate.o font.o -T link.ld -o bootboot.elf
|
||||
@aarch64-elf-objcopy -O binary bootboot.elf ../bootboot.img
|
||||
|
|
|
@ -56,7 +56,8 @@ _start:
|
|||
// running at EL2?
|
||||
1: cmp x0, #4
|
||||
beq 1f
|
||||
msr sp_el1, x1
|
||||
mov x2, #4096
|
||||
msr sp_el1, x2
|
||||
// set up exception handlers
|
||||
ldr x2, =_vectors
|
||||
msr vbar_el2, x2
|
||||
|
|
BIN
bootboot.efi
BIN
bootboot.efi
Binary file not shown.
BIN
bootboot.img
BIN
bootboot.img
Binary file not shown.
BIN
bootboot.rom
BIN
bootboot.rom
Binary file not shown.
Binary file not shown.
|
@ -10,7 +10,7 @@ ELF Header:
|
|||
Version: 0x1
|
||||
Entry point address: 0xffffffffffe02000
|
||||
Start of program headers: 64 (bytes into file)
|
||||
Start of section headers: 3736 (bytes into file)
|
||||
Start of section headers: 3728 (bytes into file)
|
||||
Flags: 0x0
|
||||
Size of this header: 64 (bytes)
|
||||
Size of program headers: 56 (bytes)
|
||||
|
@ -23,19 +23,19 @@ Program Headers:
|
|||
Type Offset VirtAddr PhysAddr
|
||||
FileSiz MemSiz Flags Align
|
||||
LOAD 0x0000000000000078 0xffffffffffe02000 0xffffffffffe02000
|
||||
0x0000000000000cf0 0x0000000000000cf0 RWE 0x8
|
||||
0x0000000000000ce8 0x0000000000000cf0 RWE 0x8
|
||||
|
||||
Section to Segment mapping:
|
||||
Segment Sections...
|
||||
00 .text .got .got.plt
|
||||
00 .text .got .got.plt .bss
|
||||
|
||||
Symbol table '.symtab' contains 9 entries:
|
||||
Num: Value Size Type Bind Vis Ndx Name
|
||||
0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
|
||||
1: ffffffffffe02000 0 SECTION LOCAL DEFAULT 1
|
||||
2: ffffffffffe02cb8 0 SECTION LOCAL DEFAULT 2
|
||||
3: ffffffffffe02cd8 0 SECTION LOCAL DEFAULT 3
|
||||
4: ffffffffffe02cf0 0 SECTION LOCAL DEFAULT 4
|
||||
2: ffffffffffe02cb0 0 SECTION LOCAL DEFAULT 2
|
||||
3: ffffffffffe02cd0 0 SECTION LOCAL DEFAULT 3
|
||||
4: ffffffffffe02ce8 0 SECTION LOCAL DEFAULT 4
|
||||
5: ffffffffffe01000 0 NOTYPE GLOBAL DEFAULT 1 environment
|
||||
6: fffffffffc000000 0 NOTYPE GLOBAL DEFAULT ABS fb
|
||||
7: ffffffffffe00000 0 NOTYPE GLOBAL DEFAULT 1 bootboot
|
||||
|
|
Binary file not shown.
|
@ -10,32 +10,31 @@ ELF Header:
|
|||
Version: 0x1
|
||||
Entry point address: 0xffffffffffe02000
|
||||
Start of program headers: 64 (bytes into file)
|
||||
Start of section headers: 3344 (bytes into file)
|
||||
Start of section headers: 3288 (bytes into file)
|
||||
Flags: 0x0
|
||||
Size of this header: 64 (bytes)
|
||||
Size of program headers: 56 (bytes)
|
||||
Number of program headers: 1
|
||||
Size of section headers: 64 (bytes)
|
||||
Number of section headers: 7
|
||||
Section header string table index: 6
|
||||
Number of section headers: 6
|
||||
Section header string table index: 5
|
||||
|
||||
Program Headers:
|
||||
Type Offset VirtAddr PhysAddr
|
||||
FileSiz MemSiz Flags Align
|
||||
LOAD 0x0000000000000078 0xffffffffffe02000 0xffffffffffe02000
|
||||
0x0000000000000b88 0x0000000000000b90 RWE 0x8
|
||||
0x0000000000000b6c 0x0000000000000b70 RWE 0x8
|
||||
|
||||
Section to Segment mapping:
|
||||
Segment Sections...
|
||||
00 .text .got.plt .bss
|
||||
00 .text .bss
|
||||
|
||||
Symbol table '.symtab' contains 8 entries:
|
||||
Symbol table '.symtab' contains 7 entries:
|
||||
Num: Value Size Type Bind Vis Ndx Name
|
||||
0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
|
||||
1: ffffffffffe02000 0 SECTION LOCAL DEFAULT 1
|
||||
2: ffffffffffe02b70 0 SECTION LOCAL DEFAULT 2
|
||||
3: ffffffffffe02b88 0 SECTION LOCAL DEFAULT 3
|
||||
4: ffffffffffe01000 0 NOTYPE GLOBAL DEFAULT 1 environment
|
||||
5: fffffffffc000000 0 NOTYPE GLOBAL DEFAULT ABS fb
|
||||
6: ffffffffffe00000 0 NOTYPE GLOBAL DEFAULT 1 bootboot
|
||||
7: fffffffff8000000 0 NOTYPE GLOBAL DEFAULT ABS mmio
|
||||
2: ffffffffffe02b6c 0 SECTION LOCAL DEFAULT 2
|
||||
3: ffffffffffe01000 0 NOTYPE GLOBAL DEFAULT 1 environment
|
||||
4: fffffffffc000000 0 NOTYPE GLOBAL DEFAULT ABS fb
|
||||
5: ffffffffffe00000 0 NOTYPE GLOBAL DEFAULT 1 bootboot
|
||||
6: fffffffff8000000 0 NOTYPE GLOBAL DEFAULT ABS mmio
|
||||
|
|
Loading…
Reference in a new issue