URL
https://opencores.org/ocsvn/eco32/eco32/trunk
Subversion Repositories eco32
Compare Revisions
- This comparison shows the changes necessary to convert path
/eco32
- from Rev 264 to Rev 265
- ↔ Reverse comparison
Rev 264 → Rev 265
/trunk/disk/tools/wrpart/wrpart.c
0,0 → 1,8
/* |
* |
*/ |
|
|
int main(int argc, char *argv[]) { |
return 0; |
} |
/trunk/disk/tools/wrpart/Makefile
0,0 → 1,36
# |
# Makefile for wrpart utility |
# |
|
BUILD = ../../../build |
|
CC = gcc |
CFLAGS = -g -Wall |
LDFLAGS = -g |
LDLIBS = -lm |
|
SRCS = wrpart.c |
OBJS = $(patsubst %.c,%.o,$(SRCS)) |
BIN = wrpart |
|
.PHONY: all install clean |
|
all: $(BIN) |
|
install: $(BIN) |
mkdir -p $(BUILD)/bin |
cp $(BIN) $(BUILD)/bin |
|
$(BIN): $(OBJS) |
$(CC) $(LDFLAGS) -o $(BIN) $(OBJS) $(LDLIBS) |
|
%.o: %.c |
$(CC) $(CFLAGS) -o $@ -c $< |
|
depend.mak: |
$(CC) -MM -MG $(CFLAGS) $(SRCS) >depend.mak |
|
-include depend.mak |
|
clean: |
rm -f *~ $(OBJS) $(BIN) depend.mak |
/trunk/disk/tools/fs-EOS32/README
File deleted
/trunk/disk/tools/fs-EOS32/mkpboot/pbr.s
0,0 → 1,79
; |
; pbr.s -- the partition boot record |
; |
|
; Runtime environment: |
; |
; This code must be loaded and started at 0xC0010000. |
; It allocates a stack from 0xC0011000 downwards. So |
; it must run within 4K (code + data + stack). |
; |
; This code expects the disk number of the boot disk |
; in $16, the start sector of the disk or partition |
; to be booted in $17 and its size in $18. |
; |
; NOTE: THIS IS A FAKE PARTITION BOOT RECORD! |
; It doesn't load anything, but displays a message |
; where the real thing can be downloaded from. |
|
.set stacktop,0xC0011000 ; top of stack |
|
.set cout,0xC0000020 ; the monitor's console output |
|
; display a message and halt |
start: |
add $29,$0,stacktop ; setup stack |
add $4,$0,strtmsg ; say what is going on |
jal msgout |
j halt |
|
; output message |
; $4 pointer to string |
msgout: |
sub $29,$29,8 |
stw $31,$29,4 |
stw $16,$29,0 |
add $16,$4,0 ; $16: pointer to string |
msgout1: |
ldbu $4,$16,0 ; get character |
beq $4,$0,msgout2 ; done? |
jal chrout ; output character |
add $16,$16,1 ; bump pointer |
j msgout1 ; continue |
msgout2: |
ldw $16,$29,0 |
ldw $31,$29,4 |
add $29,$29,8 |
jr $31 |
|
; output character |
; $4 character |
chrout: |
sub $29,$29,4 |
stw $31,$29,0 |
add $8,$0,cout |
jalr $8 |
ldw $31,$29,0 |
add $29,$29,4 |
jr $31 |
|
; halt execution by looping |
halt: |
add $4,$0,hltmsg |
jal msgout |
halt1: |
j halt1 |
|
; messages |
strtmsg: |
.byte "You didn't believe that this tiny program is" |
.byte "a full-fledged operating system, did you? ;-)" |
.byte "The real EOS32 is a project all by itself." |
.byte "You can find it on GitHub, under the name" |
.byte "'eos32-on-eco32'.", 0x0D, 0x0A, 0 |
hltmsg: |
.byte "bootstrap halted", 0x0D, 0x0A, 0 |
|
; boot record signature |
.locate 512-2 |
.byte 0x55, 0xAA |
/trunk/disk/tools/fs-EOS32/mkpboot/Makefile
0,0 → 1,16
# |
# Makefile to build the partition boot record |
# |
|
BUILD = ../../../../build |
|
all: pbr.bin |
|
pbr.bin: pbr.o |
$(BUILD)/bin/ld -h -rc 0xC0010000 -o pbr.bin pbr.o |
|
pbr.o: pbr.s |
$(BUILD)/bin/as -o pbr.o pbr.s |
|
clean: |
rm -f *~ pbr.o pbr.bin |
/trunk/disk/tools/fs-EOS32/Makefile
0,0 → 1,27
# |
# Makefile for a fake EOS32 partition |
# |
|
BUILD = ../../../build |
|
DIRS = mkpboot |
|
.PHONY: all install clean |
|
all: |
for i in $(DIRS) ; do \ |
$(MAKE) -C $$i all ; \ |
done |
|
install: |
for i in $(DIRS) ; do \ |
$(MAKE) -C $$i install ; \ |
done |
mkdir -p $(BUILD)/run/fs-EOS32 |
cp Makefile.run $(BUILD)/run/fs-EOS32/Makefile |
|
clean: |
for i in $(DIRS) ; do \ |
$(MAKE) -C $$i clean ; \ |
done |
rm -f *~ |
/trunk/disk/tools/fs-Linux/README
File deleted
/trunk/disk/tools/fs-Linux/mkpboot/pbr.s
0,0 → 1,79
; |
; pbr.s -- the partition boot record |
; |
|
; Runtime environment: |
; |
; This code must be loaded and started at 0xC0010000. |
; It allocates a stack from 0xC0011000 downwards. So |
; it must run within 4K (code + data + stack). |
; |
; This code expects the disk number of the boot disk |
; in $16, the start sector of the disk or partition |
; to be booted in $17 and its size in $18. |
; |
; NOTE: THIS IS A FAKE PARTITION BOOT RECORD! |
; It doesn't load anything, but displays a message |
; where the real thing can be downloaded from. |
|
.set stacktop,0xC0011000 ; top of stack |
|
.set cout,0xC0000020 ; the monitor's console output |
|
; display a message and halt |
start: |
add $29,$0,stacktop ; setup stack |
add $4,$0,strtmsg ; say what is going on |
jal msgout |
j halt |
|
; output message |
; $4 pointer to string |
msgout: |
sub $29,$29,8 |
stw $31,$29,4 |
stw $16,$29,0 |
add $16,$4,0 ; $16: pointer to string |
msgout1: |
ldbu $4,$16,0 ; get character |
beq $4,$0,msgout2 ; done? |
jal chrout ; output character |
add $16,$16,1 ; bump pointer |
j msgout1 ; continue |
msgout2: |
ldw $16,$29,0 |
ldw $31,$29,4 |
add $29,$29,8 |
jr $31 |
|
; output character |
; $4 character |
chrout: |
sub $29,$29,4 |
stw $31,$29,0 |
add $8,$0,cout |
jalr $8 |
ldw $31,$29,0 |
add $29,$29,4 |
jr $31 |
|
; halt execution by looping |
halt: |
add $4,$0,hltmsg |
jal msgout |
halt1: |
j halt1 |
|
; messages |
strtmsg: |
.byte "You didn't believe that this tiny program is" |
.byte "a full-fledged operating system, did you? ;-)" |
.byte "The real EOS32 is a project all by itself." |
.byte "You can find it on GitHub, under the name" |
.byte "'eos32-on-eco32'.", 0x0D, 0x0A, 0 |
hltmsg: |
.byte "bootstrap halted", 0x0D, 0x0A, 0 |
|
; boot record signature |
.locate 512-2 |
.byte 0x55, 0xAA |
/trunk/disk/tools/fs-Linux/mkpboot/Makefile
0,0 → 1,16
# |
# Makefile to build the partition boot record |
# |
|
BUILD = ../../../../build |
|
all: pbr.bin |
|
pbr.bin: pbr.o |
$(BUILD)/bin/ld -h -rc 0xC0010000 -o pbr.bin pbr.o |
|
pbr.o: pbr.s |
$(BUILD)/bin/as -o pbr.o pbr.s |
|
clean: |
rm -f *~ pbr.o pbr.bin |
/trunk/disk/tools/fs-Linux/Makefile
0,0 → 1,27
# |
# Makefile for a fake Linux partition |
# |
|
BUILD = ../../../build |
|
DIRS = mkpboot |
|
.PHONY: all install clean |
|
all: |
for i in $(DIRS) ; do \ |
$(MAKE) -C $$i all ; \ |
done |
|
install: |
for i in $(DIRS) ; do \ |
$(MAKE) -C $$i install ; \ |
done |
mkdir -p $(BUILD)/run/fs-Linux |
cp Makefile.run $(BUILD)/run/fs-Linux/Makefile |
|
clean: |
for i in $(DIRS) ; do \ |
$(MAKE) -C $$i clean ; \ |
done |
rm -f *~ |
/trunk/disk/tools/fs-NetBSD/README
File deleted
/trunk/disk/tools/fs-NetBSD/mkpboot/pbr.s
0,0 → 1,79
; |
; pbr.s -- the partition boot record |
; |
|
; Runtime environment: |
; |
; This code must be loaded and started at 0xC0010000. |
; It allocates a stack from 0xC0011000 downwards. So |
; it must run within 4K (code + data + stack). |
; |
; This code expects the disk number of the boot disk |
; in $16, the start sector of the disk or partition |
; to be booted in $17 and its size in $18. |
; |
; NOTE: THIS IS A FAKE PARTITION BOOT RECORD! |
; It doesn't load anything, but displays a message |
; where the real thing can be downloaded from. |
|
.set stacktop,0xC0011000 ; top of stack |
|
.set cout,0xC0000020 ; the monitor's console output |
|
; display a message and halt |
start: |
add $29,$0,stacktop ; setup stack |
add $4,$0,strtmsg ; say what is going on |
jal msgout |
j halt |
|
; output message |
; $4 pointer to string |
msgout: |
sub $29,$29,8 |
stw $31,$29,4 |
stw $16,$29,0 |
add $16,$4,0 ; $16: pointer to string |
msgout1: |
ldbu $4,$16,0 ; get character |
beq $4,$0,msgout2 ; done? |
jal chrout ; output character |
add $16,$16,1 ; bump pointer |
j msgout1 ; continue |
msgout2: |
ldw $16,$29,0 |
ldw $31,$29,4 |
add $29,$29,8 |
jr $31 |
|
; output character |
; $4 character |
chrout: |
sub $29,$29,4 |
stw $31,$29,0 |
add $8,$0,cout |
jalr $8 |
ldw $31,$29,0 |
add $29,$29,4 |
jr $31 |
|
; halt execution by looping |
halt: |
add $4,$0,hltmsg |
jal msgout |
halt1: |
j halt1 |
|
; messages |
strtmsg: |
.byte "You didn't believe that this tiny program is" |
.byte "a full-fledged operating system, did you? ;-)" |
.byte "The real EOS32 is a project all by itself." |
.byte "You can find it on GitHub, under the name" |
.byte "'eos32-on-eco32'.", 0x0D, 0x0A, 0 |
hltmsg: |
.byte "bootstrap halted", 0x0D, 0x0A, 0 |
|
; boot record signature |
.locate 512-2 |
.byte 0x55, 0xAA |
/trunk/disk/tools/fs-NetBSD/mkpboot/Makefile
0,0 → 1,16
# |
# Makefile to build the partition boot record |
# |
|
BUILD = ../../../../build |
|
all: pbr.bin |
|
pbr.bin: pbr.o |
$(BUILD)/bin/ld -h -rc 0xC0010000 -o pbr.bin pbr.o |
|
pbr.o: pbr.s |
$(BUILD)/bin/as -o pbr.o pbr.s |
|
clean: |
rm -f *~ pbr.o pbr.bin |
/trunk/disk/tools/fs-NetBSD/Makefile
0,0 → 1,27
# |
# Makefile for a fake NetBSD partition |
# |
|
BUILD = ../../../build |
|
DIRS = mkpboot |
|
.PHONY: all install clean |
|
all: |
for i in $(DIRS) ; do \ |
$(MAKE) -C $$i all ; \ |
done |
|
install: |
for i in $(DIRS) ; do \ |
$(MAKE) -C $$i install ; \ |
done |
mkdir -p $(BUILD)/run/fs-NetBSD |
cp Makefile.run $(BUILD)/run/fs-NetBSD/Makefile |
|
clean: |
for i in $(DIRS) ; do \ |
$(MAKE) -C $$i clean ; \ |
done |
rm -f *~ |
/trunk/disk/tools/Makefile
4,7 → 4,7
|
BUILD = ../../build |
|
DIRS = mkdisk mkmboot mkpart shpart fs-EOS32 fs-NetBSD fs-Linux |
DIRS = mkdisk mkmboot mkpart shpart wrpart fs-EOS32 fs-NetBSD fs-Linux |
|
.PHONY: all install clean |
|
/trunk/disk/tools/README
17,3 → 17,6
shpart: show partitions on a disk |
Usage: shpart <disk image file> |
|
wrpart: write a binary image to a partition on a disk |
Usage: wrpart <disk image file> <partition number> <partition image file> |
|