URL
https://opencores.org/ocsvn/eco32/eco32/trunk
Subversion Repositories eco32
Compare Revisions
- This comparison shows the changes necessary to convert path
/eco32/trunk/disk/tools
- from Rev 268 to Rev 269
- ↔ Reverse comparison
Rev 268 → Rev 269
/wrpart/wrpart.c
105,7 → 105,7
error("cannot read partition table from disk image '%s'", diskName); |
} |
convertPartitionTable(ptr, NPE); |
/* get partition number, start and size of partition */ |
/* get partition number, determine start and size of partition */ |
partno = strtol(partNmbr, &endp, 10); |
if (*endp != '\0') { |
error("cannot read partition number"); |
124,7 → 124,7
error("partition %d is larger than the disk", partno); |
} |
fseek(disk, partStart * SECTOR_SIZE, SEEK_SET); |
/* open partition image, check size */ |
/* open partition image, check size (rounded up to whole sectors) */ |
image = fopen(partName, "rb"); |
if (image == NULL) { |
error("cannot open partition image '%s'", partName); |
133,7 → 133,7
imageSize = (ftell(image) + SECTOR_SIZE - 1) / SECTOR_SIZE; |
printf("partition image '%s' occupies %d (0x%X) sectors\n", |
partName, imageSize, imageSize); |
if (imageSize >= partSize) { |
if (imageSize > partSize) { |
error("partition image (%d sectors) too big for partition (%d sectors)", |
imageSize, partSize); |
} |
/fs-EOS32/Makefile.run
1,3 → 1,11
# |
# Makefile.run in fs-EOS32 |
# Makefile for writing the EOS32 partition image to disk |
# |
|
BUILD = ../.. |
|
all: |
$(BUILD)/bin/wrpart ../disk.img 0 pbr.bin |
|
clean: |
rm -f *~ |
/fs-EOS32/mkpboot/pbr.s
66,11 → 66,15
|
; messages |
strtmsg: |
.byte "You didn't expect this tiny program to be " |
.byte "a full-fledged operating system, did you? ;-) " |
.byte "The real EOS32 for ECO32 is a project all by " |
.byte "itself. You can find it on GitHub, under the " |
.byte "name 'eos32-on-eco32'.", 0x0D, 0x0A, 0 |
.byte 0x0D, 0x0A |
.byte "You didn't expect this tiny program to be" |
.byte 0x0D, 0x0A |
.byte "a full-fledged operating system, did you?" |
.byte 0x0D, 0x0A |
.byte "You can find the real EOS32 for ECO32 on" |
.byte 0x0D, 0x0A |
.byte "GitHub, under the name 'eos32-on-eco32'." |
.byte 0x0D, 0x0A, 0x0D, 0x0A, 0 |
hltmsg: |
.byte "bootstrap halted", 0x0D, 0x0A, 0 |
|
/fs-EOS32/Makefile
1,5 → 1,5
# |
# Makefile for a fake EOS32 partition |
# Makefile for building a fake EOS32 partition |
# |
|
BUILD = ../../../build |
/fs-Linux/Makefile.run
1,3 → 1,11
# |
# Makefile.run in fs-Linux |
# Makefile for writing the Linux partition image to disk |
# |
|
BUILD = ../.. |
|
all: |
$(BUILD)/bin/wrpart ../disk.img 4 pbr.bin |
|
clean: |
rm -f *~ |
/fs-Linux/mkpboot/pbr.s
66,11 → 66,15
|
; messages |
strtmsg: |
.byte "You didn't expect this tiny program to be " |
.byte "a full-fledged operating system, did you? ;-) " |
.byte "The real Linux for ECO32 is a project all by " |
.byte "itself. You can find it on GitHub, under the " |
.byte "name 'linux-on-eco32'.", 0x0D, 0x0A, 0 |
.byte 0x0D, 0x0A |
.byte "You didn't expect this tiny program to be" |
.byte 0x0D, 0x0A |
.byte "a full-fledged operating system, did you?" |
.byte 0x0D, 0x0A |
.byte "You can find the real Linux for ECO32 on" |
.byte 0x0D, 0x0A |
.byte "GitHub, under the name 'linux-on-eco32'." |
.byte 0x0D, 0x0A, 0x0D, 0x0A, 0 |
hltmsg: |
.byte "bootstrap halted", 0x0D, 0x0A, 0 |
|
/fs-Linux/Makefile
1,5 → 1,5
# |
# Makefile for a fake Linux partition |
# Makefile for building a fake Linux partition |
# |
|
BUILD = ../../../build |
/fs-NetBSD/Makefile.run
1,3 → 1,11
# |
# Makefile.run in fs-NetBSD |
# Makefile for writing the NetBSD partition image to disk |
# |
|
BUILD = ../.. |
|
all: |
$(BUILD)/bin/wrpart ../disk.img 3 pbr.bin |
|
clean: |
rm -f *~ |
/fs-NetBSD/mkpboot/pbr.s
66,11 → 66,15
|
; messages |
strtmsg: |
.byte "You didn't expect this tiny program to be " |
.byte "a full-fledged operating system, did you? ;-) " |
.byte "The real NetBSD for ECO32 is a project all by " |
.byte "itself. You can find it on GitHub, under the " |
.byte "name 'netbsd-on-eco32'.", 0x0D, 0x0A, 0 |
.byte 0x0D, 0x0A |
.byte "You didn't expect this tiny program to be" |
.byte 0x0D, 0x0A |
.byte "a full-fledged operating system, did you?" |
.byte 0x0D, 0x0A |
.byte "You can find the real NetBSD for ECO32 on" |
.byte 0x0D, 0x0A |
.byte "GitHub, under the name 'netbsd-on-eco32'." |
.byte 0x0D, 0x0A, 0x0D, 0x0A, 0 |
hltmsg: |
.byte "bootstrap halted", 0x0D, 0x0A, 0 |
|
/fs-NetBSD/Makefile
1,5 → 1,5
# |
# Makefile for a fake NetBSD partition |
# Makefile for building a fake NetBSD partition |
# |
|
BUILD = ../../../build |