search for: bootcfg_sector

Displaying 1 result from an estimated 1 matches for "bootcfg_sector".

2007 Apr 05
0
Patch: Add io.c functions, and vfat library
...= &disk_info; rFd.partition = bank1_part_info; fat_fs = libfat_open(fat_disk_read_handle, (intptr_t) &rFd); bootcfg_cluster = libfat_searchdir(fat_fs, 0, "BOOT CFG", NULL); if (bootcfg_cluster <= 0) { error("No boot config file found"); } bootcfg_sector = libfat_clustertosector(fat_fs, bootcfg_cluster) + rFd.partition->start_lba; if (!syslinux_read_disk(&disk_info, sectorbuf, bootcfg_sector, 1)) { printf("boot.cfg: %s\n", sectorbuf); } I will change chain.c to use the library functions, but kinda busy with other stuff...