Rename base.img.6pack to base.img.6pk
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@ -3,4 +3,4 @@
|
||||
*.iso
|
||||
*.img
|
||||
*.hdd
|
||||
*.6pack
|
||||
*.6pk
|
||||
|
||||
@ -29,17 +29,17 @@ void baseimg_init(void) {
|
||||
LOG("baseimg", "looking for base image...\n");
|
||||
for (size_t i = 0; i < BOOT_INFO.modules->module_count; i++) {
|
||||
struct limine_file *module = BOOT_INFO.modules->modules[i];
|
||||
if (hal_strcmp(util_get_filename(module->path), "base.img.6pack") == 0) {
|
||||
if (hal_strcmp(util_get_filename(module->path), "base.img.6pk") == 0) {
|
||||
baseimg = module;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (baseimg == NULL) {
|
||||
ERR("baseimg", "base.img.6pack not found\n");
|
||||
ERR("baseimg", "base.img.6pk not found\n");
|
||||
hal_hang();
|
||||
} else {
|
||||
LOG("baseimg", "base.img.6pack found\n");
|
||||
LOG("baseimg", "base.img.6pk found\n");
|
||||
LOG("baseimg", "addr = %p, size = %lu\n", baseimg->address, baseimg->size);
|
||||
for (size_t i = 0; i < 30; i++) {
|
||||
kprintf("%02X ", ((uint8_t *)(baseimg->address))[i]);
|
||||
@ -53,7 +53,7 @@ void baseimg_init(void) {
|
||||
int res = sixpack_decompress_mem(baseimg->address, baseimg->size,
|
||||
BASEIMG_DECOMP_ADDR, BASEIMG_DECOMPRESSED);
|
||||
if (res < 0) {
|
||||
ERR("baseimg", "could not uncompress base.img.6pack\n");
|
||||
ERR("baseimg", "could not uncompress base.img.6pk\n");
|
||||
hal_hang();
|
||||
}
|
||||
BASEIMG_DECOMP_SIZE = res;
|
||||
|
||||
@ -4,4 +4,4 @@ verbose: yes
|
||||
/mop2
|
||||
protocol: limine
|
||||
path: boot():/boot/mop2
|
||||
module_path: boot():/base.img.6pack
|
||||
module_path: boot():/base.img.6pk
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
rm -f base.img base.img.6pack
|
||||
rm -f base.img base.img.6pk
|
||||
cat user/FILES.txt | while read line; do cp -v $line base/bin; done
|
||||
mklittlefs -c base -b 512 -s $((1<<20)) base.img
|
||||
./FastLZ/examples/6pack -2 base.img base.img.6pack
|
||||
./FastLZ/examples/6pack -2 base.img base.img.6pk
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
rm -rf iso_root
|
||||
mkdir -p iso_root/boot
|
||||
cp -v kernel/mop2 iso_root/boot
|
||||
cp -v base.img.6pack iso_root
|
||||
cp -v base.img.6pk iso_root
|
||||
mkdir -p iso_root/boot/limine
|
||||
cp -v limine.conf limine/limine-bios.sys limine/limine-bios-cd.bin \
|
||||
limine/limine-uefi-cd.bin iso_root/boot/limine
|
||||
|
||||
Reference in New Issue
Block a user