Commit Graph

246 Commits

Author SHA1 Message Date
Laurent Vivier
b0c25d723f rename map_partition_read and map_partition_write to map_read_sector and map_write_sector 2007-10-10 21:07:52 +00:00
Laurent Vivier
ce315dd349 Add device_get_blocksize() 2007-10-10 16:47:03 +00:00
Laurent Vivier
912c63ad48 Add device_get_blocksize(), and adjust offset using blocksize instead of << 11 2007-10-10 16:46:03 +00:00
Laurent Vivier
ffe511becc correct signedness of 4th arguments of map_partition_{read|write} 2007-10-09 20:48:13 +00:00
Laurent Vivier
360b17f8cc use map_partition_read() and map_partition_write() 2007-10-09 20:43:05 +00:00
Laurent Vivier
f2745a6bbb use device_io_t 2007-10-09 19:29:13 +00:00
Laurent Vivier
4555512e10 Add device.c to link emile and emile-map-set 2007-10-09 19:23:18 +00:00
Laurent Vivier
69aec7aac7 use device_sector_size to set sector size to 2048 2007-10-09 19:21:14 +00:00
Laurent Vivier
7ba120c6c5 Add device_write_sector() and device_sector_size, use int fd instead FILE* 2007-10-09 19:16:11 +00:00
Laurent Vivier
52a797f3eb Manage chainloader attribute in configuration files 2007-10-08 12:05:52 +00:00
Laurent Vivier
a60a6bfb71 Change emile_map_* to map_* 2007-10-04 20:55:52 +00:00
Laurent Vivier
5a0b1494b5 Add libmap 2007-10-04 20:54:14 +00:00
Laurent Vivier
84bc5c1e6d include config.mk 2007-09-13 18:32:14 +00:00
Laurent Vivier
01a1a91188 correct usage 2007-09-13 18:31:42 +00:00
Laurent Vivier
880d7d25fd tools correctly get vga, modem and printer properties 2007-09-08 23:31:40 +00:00
Laurent Vivier
fb677da2fe configuration is int8_t 2007-09-08 23:09:14 +00:00
Laurent Vivier
14a1b857f2 Manage vga, modem and printer properties 2007-09-08 22:49:13 +00:00
Laurent Vivier
8a586c3e31 include tools.mk 2007-09-06 22:09:11 +00:00
Laurent Vivier
4e1468ddff Add some error messages 2007-09-05 12:54:01 +00:00
Laurent Vivier
537b85855e don't remove tmp files in test mode 2007-09-03 19:55:52 +00:00
Laurent Vivier
d446f79fea improve --test 2007-09-03 19:39:01 +00:00
Laurent Vivier
2bbea3543d Allow bigger (> 1024) configuration 2007-09-02 21:00:05 +00:00
Laurent Vivier
c4871345d9 Display parameters only if set 2007-09-02 20:32:20 +00:00
Laurent Vivier
6f3cbe15a7 preliminary version to manage multiboot, untested \!\! 2007-09-02 20:31:24 +00:00
Laurent Vivier
869161fd15 add set_config() function 2007-09-02 12:57:37 +00:00
Laurent Vivier
aeddb9f7e4 add get_info() function 2007-09-02 12:46:37 +00:00
Laurent Vivier
bae6b7b888 Add some verbosity 2007-09-01 21:56:26 +00:00
Laurent Vivier
f5963dc437 read_description() should return 0 on the last item and not EOF 2007-09-01 21:55:49 +00:00
Laurent Vivier
b913b47144 display vga property 2007-08-31 23:26:04 +00:00
Laurent Vivier
de3844b97d improve list scan 2007-08-31 21:09:06 +00:00
Laurent Vivier
979196f410 read correctly second level config 2007-08-31 20:55:06 +00:00
Laurent Vivier
3e35773799 Manage only one kernel and ramdisk 2007-08-26 20:06:56 +00:00
Laurent Vivier
ba6f52623b add config file 2007-08-26 19:46:39 +00:00
Laurent Vivier
d7ef366023 use libconfig 2007-08-25 21:33:57 +00:00
Laurent Vivier
b9431c6cf7 emile_config_get() return -1 if tag is not found 2007-08-24 09:20:55 +00:00
Laurent Vivier
b01815f349 emile_config_read_next() return -1 on end of file 2007-08-23 19:54:27 +00:00
Laurent Vivier
3de771d453 move config variable from static to stack of main() 2007-05-12 19:31:52 +00:00
Laurent Vivier
d03d07ed11 add support for gestalid, vga, modem and printer 2007-05-12 19:28:08 +00:00
Laurent Vivier
1d732318d1 read kernel, initrd, parameters and emile information from emile.conf using functions from emile_config.c 2007-05-11 12:21:58 +00:00
Laurent Vivier
f1e93f3a84 Add emile_config.c and emile_config.h 2007-05-11 12:20:14 +00:00
Laurent Vivier
bff6076aa9 remove uneeded variable, correct return value from get_tag() 2007-05-11 12:18:27 +00:00
Laurent Vivier
09e4ba8e43 on restoring backup, rename file to .old 2007-05-09 19:26:48 +00:00
Laurent Vivier
e0cbb39f65 Add missing } 2007-05-09 19:25:55 +00:00
Laurent Vivier
592f3e2068 add kernel_map and initrd_map 2007-05-09 19:08:23 +00:00
Laurent Vivier
45e29cda8a emile_config_get() can manage many types, given by tag id 2007-05-06 23:12:29 +00:00
Laurent Vivier
10026118a2 hide map files 2007-05-06 23:03:55 +00:00
Laurent Vivier
a2cfb4a4a7 First revision 2007-05-05 22:05:43 +00:00
Laurent Vivier
49480d82b3 correct ramdisk management, rename it to initrd 2007-05-04 20:45:21 +00:00
Laurent Vivier
a1d8405965 correct flag ACTION_RAMDISK 2007-05-04 09:22:15 +00:00
Laurent Vivier
e8bdbd5e5f enable option "-r" 2007-05-04 09:19:57 +00:00
Laurent Vivier
09423e7e90 to remove warning on signedness with gcc 4, cast some parameters 2007-02-24 14:02:40 +00:00
Laurent Vivier
7be7cf61df Add -Werror 2007-02-24 14:02:11 +00:00
Laurent Vivier
479702a005 Add default pathes for first and second level, manage some error cases 2006-11-03 12:39:55 +00:00
Laurent Vivier
c44daf1cd4 correctly set second level information 2006-10-28 22:35:44 +00:00
Laurent Vivier
a4abee7327 allow to read scsi info in first level 2006-10-28 22:21:39 +00:00
Laurent Vivier
73c91de7a6 emile_first_set_param_scsi_extents() takes block size in argument 2006-10-20 17:12:30 +00:00
Laurent Vivier
c6bce62661 use a default size (64KiB) for driver partition, in block0 counts blocks in blocksize blocks 2006-10-20 07:57:29 +00:00
Laurent Vivier
5fa77b2ff2 print size of device found in block0 using blocksise blocks instead of 512 bytes blocs, correct typo 2006-10-20 07:55:27 +00:00
Laurent Vivier
e101bf5337 display driver type, correct driver signature 2006-10-18 21:57:41 +00:00
Laurent Vivier
da8b04e3b4 display driver signature 2006-10-18 18:38:47 +00:00
Laurent Vivier
60ce7c18eb Allow to not provide kernel or ramdisk 2006-10-18 18:13:35 +00:00
Laurent Vivier
656abb6c79 allow to read driver if block is given using 'blocksize' bytes unit instead of 512 bytes unit; extract only bootsize bytes from the driver partition 2006-10-16 20:03:22 +00:00
Laurent Vivier
151189f71f Create a more generic data structure for mkisofs, allows to write my own apple driver 2006-10-16 20:01:40 +00:00
Laurent Vivier
54521d6fe9 Allow to find driver if base is not in block_size but using 512 bytes block 2006-10-15 22:08:42 +00:00
Laurent Vivier
c2fa547aea correct source file for emile-mkisofs 2006-10-08 17:04:07 +00:00
Laurent Vivier
c470022639 remove definition of second driver in block0, compute some values for map of driver in 2048 block size 2006-09-24 22:59:08 +00:00
Laurent Vivier
6abf87cc0b Read driver in memory before writing it 2006-09-24 22:46:26 +00:00
Laurent Vivier
51c32ac892 Get the partition size and write all the content of the driver partition to the file 2006-09-24 22:24:02 +00:00
Laurent Vivier
c3e57818e4 Fixe temporarily size of Apple_Driver partition 2006-09-23 22:28:12 +00:00
Laurent Vivier
13c80d5e27 Set some default value found on install CD of MacOS 7.6 2006-09-23 22:13:26 +00:00
Laurent Vivier
c54484befc Display patch info 2006-09-23 22:09:08 +00:00
Laurent Vivier
7a0405a53f add iso9660:(sd3) before kernel and ramdisk path 2006-09-20 23:29:44 +00:00
Laurent Vivier
723a50c993 modify emile_second_set_param() to not check if bootblock is present, checking is moving before call 2006-09-20 23:28:53 +00:00
Laurent Vivier
2438e1a8c0 Display where second level is 2006-09-20 23:08:48 +00:00
Laurent Vivier
20bf00341d emile-mkisofs.c 2006-09-20 22:42:48 +00:00
Laurent Vivier
53f4028182 use emile_first_set_param_scsi_extents 2006-09-20 21:52:16 +00:00
Laurent Vivier
0e2fed5a0f Display driver type using hex, not dec 2006-09-20 21:51:00 +00:00
Laurent Vivier
1bb375da59 Change my email address to Laurent@lvivier.info 2006-09-15 14:55:39 +00:00
Laurent Vivier
8113b3e654 allow to provide disk and partition on command line (like "/dev/cdrom 1" instead of "/dev/hdc1" 2006-09-13 21:33:49 +00:00
Laurent Vivier
9d5ff84740 Check map can be opened 2006-09-13 20:39:55 +00:00
Laurent Vivier
b0838c149a base is given using block size of 2048 (ISO9660), but SCSI uses block size of 512, so base is multiplicated by 4 2006-09-12 00:59:59 +00:00
Laurent Vivier
916b8de203 allow to set manually blocks to load for second 2006-09-12 00:58:31 +00:00
Laurent Vivier
5596502a8d option '-i' allows to dump start base and size of given file 2006-09-09 21:25:35 +00:00
Laurent Vivier
9aa7430439 allow to read image file instead of /dev/cdrom 2006-09-08 22:57:36 +00:00
Laurent Vivier
91b49f5e6b Allow to define the path of the second level 2006-09-08 21:17:13 +00:00
Laurent Vivier
bcbeb89ac4 Remove unneeded check on parameters 2006-06-05 22:29:17 +00:00
Laurent Vivier
d449f26966 allow to kernel path, ramdisk path 2006-06-02 11:45:10 +00:00
Laurent Vivier
8406b30f6d Add emile_secont_set_param(), emile_get_dev_name(), and preliminary ramdisk management 2006-06-01 23:36:57 +00:00
Laurent Vivier
5d238a87d0 use emile_second_set_param() and emile_second_get_param() 2006-06-01 23:23:42 +00:00
Laurent Vivier
cf1f03dd19 change emile_scsi_get_dev() API 2006-06-01 22:19:52 +00:00
Laurent Vivier
a3f46bd6c8 modified to be able to read info from an image like from a block device 2006-05-30 21:21:31 +00:00
Laurent Vivier
e23b98e394 Allow to examine a given device 2006-05-29 22:17:46 +00:00
Laurent Vivier
dc17cc55f7 More checking on function return 2006-05-29 20:23:18 +00:00
Laurent Vivier
0b6dcf91f1 Allow to scan ATA bus, ignoring non allocated device (to jump from hda to hdc even if there is no hdb) 2006-05-29 19:10:48 +00:00
Laurent Vivier
e910ef344e correct floppy case 2005-12-12 22:14:52 +00:00
Laurent Vivier
a90a4c3e23 correct --set-hfs 2005-12-12 07:59:06 +00:00
Laurent Vivier
65e7d52cd2 Can change output on second_scsi too 2005-12-05 19:52:48 +00:00
Laurent Vivier
3f843ab7cd Add vga parameter by default in configuration 2005-12-02 00:14:48 +00:00
Laurent Vivier
7dae74d734 remove unused buffer_size 2005-12-01 22:57:33 +00:00
Laurent Vivier
364c09f440 change interface of emile_second_create_mapfile() 2005-12-01 22:16:06 +00:00