Commit Graph

246 Commits

Author SHA1 Message Date
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
Laurent Vivier
caf064dc24 Add device.c gzio.c in SOURCES, device.h in HEADERS, silent dist 2005-12-01 13:51:36 +00:00
Laurent Vivier
2c614bb92d update copyright 2005-11-30 15:31:09 +00:00
Laurent Vivier
cc3e4d9cd7 correct typo for --map 2005-11-29 23:44:48 +00:00
Laurent Vivier
68c6b83ec3 move to EM06 2005-11-29 23:30:50 +00:00
Laurent Vivier
e09e3164ae temporarily disable scsi creation, obsoleted by EM06 2005-11-29 00:15:30 +00:00
Laurent Vivier
8d2c64e23f Use EM06 header 2005-11-28 23:39:28 +00:00
Laurent Vivier
ca5cef15fd Manage new header (EM06) 2005-11-28 20:56:06 +00:00
Laurent Vivier
448618ccc0 modified for EM06 2005-11-28 00:19:54 +00:00
Laurent Vivier
6e81f25305 add -I../libcontainer for libstream 2005-11-26 08:41:34 +00:00
Laurent Vivier
1aa1aed83a Add gzopen() prototype 2005-11-26 08:40:53 +00:00
Laurent Vivier
d3ae348d71 Add gzopen() prototype and correct some printf format 2005-11-26 08:40:31 +00:00
Laurent Vivier
ee6d28c91f Add libstream 2005-11-21 22:09:43 +00:00
Laurent Vivier
bce8a698c5 Add libstream-like interface 2005-11-21 22:09:16 +00:00
Laurent Vivier
8a104ca7ca Add iso9660_VOLUME 2005-11-21 22:07:17 +00:00
Laurent Vivier
672a59c142 add read_vmlinuz.c 2005-11-17 13:23:34 +00:00
Laurent Vivier
29e60b8681 uncompress and read ELF 2005-11-17 13:23:07 +00:00
Laurent Vivier
1d46991bab device.c header 2005-11-16 14:03:30 +00:00
Laurent Vivier
1b2b96804c Import from zlib-1.2.3 2005-11-14 23:24:08 +00:00
Laurent Vivier
aed2d777a0 change device interface 2005-11-13 19:43:28 +00:00
Laurent Vivier
e421b248fc Add iso9660 tools 2005-11-12 22:28:50 +00:00
Laurent Vivier
652d8bee27 Add targets install, uninstall and dist 2005-11-08 02:17:41 +00:00
Laurent Vivier
8efc25ca70 smarter --gestaltid 2005-09-10 00:06:08 +00:00
Laurent Vivier
b5c3418abf Allow to set/unset gestaltid alone 2005-09-09 23:50:30 +00:00
Laurent Vivier
a1d0dcba79 Correct typo in usage 2005-08-27 21:54:24 +00:00
Laurent Vivier
713ca6ad89 move to version 5 of header: kernel_size == kernel_image_size means uncompressed 2005-06-09 19:55:12 +00:00
Laurent Vivier
1d1e1e5bd7 Add CROSS_COMPILE to cross-compile tools 2005-05-10 20:20:15 +00:00
Laurent Vivier
88b858679e Add put_driver() 2005-05-09 22:18:21 +00:00
Laurent Vivier
277cc9ffde Add partition boot info 2005-02-03 16:04:41 +00:00
Laurent Vivier
43eee2c466 add emile_scanbus to emile-map-set 2005-02-02 16:46:08 +00:00
Laurent Vivier
46da9c1017 Add --get-driver 2005-02-02 14:47:49 +00:00
Laurent Vivier
efcd323152 block_size is used in drivers section (block0) otherwise use 512-byte block 2005-02-01 23:21:06 +00:00
Laurent Vivier
afab5c5f43 Add --scanbus 2005-02-01 20:34:00 +00:00
Laurent Vivier
3441475b77 get block_size even if we aren't in verbose mode 2005-02-01 20:29:11 +00:00
Laurent Vivier
1ce4925be6 Correct drivers info when block size is not 512 (i.e. CDROM) 2005-02-01 19:48:33 +00:00
Laurent Vivier
c3f49c0382 activate emile_map_partition_set_flags and emile_map_set_partition_type 2004-12-27 22:34:59 +00:00
Laurent Vivier
45201900ef correct restore and backup parameters 2004-12-27 22:32:18 +00:00
Laurent Vivier
3c95e71ca8 display bootblock info even if not bootable 2004-12-27 21:45:09 +00:00
Laurent Vivier
f21fd88ead replace emile-set-startup by emile-map-set 2004-12-27 21:39:19 +00:00
Laurent Vivier
c43e184cff moved to emile-map-set.c 2004-12-27 21:20:11 +00:00
Laurent Vivier
e893a1c9ba correct Apple_HS and --set-hfs 2004-12-27 01:32:03 +00:00
Laurent Vivier
a67a546c6c open file on --test, check it can... 2004-12-26 20:12:44 +00:00
Laurent Vivier
63a8d52768 Add --getinfo 2004-12-25 00:48:29 +00:00
Laurent Vivier
9d2e1f38c2 use getopt() 2004-12-24 23:43:44 +00:00
Laurent Vivier
c8732a8d43 remove emile-first-info.c 2004-12-24 23:03:47 +00:00
Laurent Vivier
1cb4278688 Move info emile-first-tune.c 2004-12-24 23:03:13 +00:00
Laurent Vivier
46bef4183b use getopt(), move code from emile-first-info.c 2004-12-24 23:01:14 +00:00
Laurent Vivier
24baafee89 use getopt() and emile_get_uncompressed_size() 2004-12-24 22:34:26 +00:00
Laurent Vivier
4c85e103ed Can work on floppy image or directly on second level binary 2004-12-24 20:12:30 +00:00
Laurent Vivier
97612d63c1 Add usage, some parameters and set bootable HFS partition 2004-12-24 00:10:33 +00:00
Laurent Vivier
f2dea3f3e2 Add set_HFS and set_startup 2004-12-23 23:48:35 +00:00
Laurent Vivier
1d7a624f7d add all stuff to set firt level, second level and boot block, change exit values 2004-12-23 23:24:06 +00:00
Laurent Vivier
ba478e64a2 Add open_map_of() and backup_bootblock() 2004-12-23 22:35:36 +00:00
Laurent Vivier
01cc6d189d Add ARG_TEST, check_is_EMILE_bootblock, check_is_startup, backup_bootblock 2004-12-22 23:14:07 +00:00
Laurent Vivier
1b23f432a4 Add some args, check Apple_Driver, checj Apple_HFS 2004-12-22 00:29:25 +00:00
Laurent Vivier
5558c361fb move seek_partition() to libemile 2004-12-22 00:28:24 +00:00
Laurent Vivier
2574f16a80 display part flags in verbose mode 2004-12-21 17:35:34 +00:00
Laurent Vivier
0821beab8f Add emile-set-startup 2004-12-21 17:35:10 +00:00
Laurent Vivier
5d60ee8c95 First revision 2004-12-21 17:34:30 +00:00
Laurent Vivier
49cdb5aa59 Add -g in CFLAGS 2004-12-21 15:17:37 +00:00
Laurent Vivier
a8a3fb19ab add print_size() 2004-12-21 15:16:11 +00:00
Laurent Vivier
6eeecaf3ce Add emile_scanbus and PREFIX 2004-12-16 23:28:43 +00:00
Laurent Vivier
a226a841ca scanbus support 2004-12-16 23:27:50 +00:00
Laurent Vivier
ad7b493a1a First revision 2004-12-16 23:25:03 +00:00
Laurent Vivier
54b000c149 use new function emile_second_set_buffer_size 2004-12-14 21:49:13 +00:00
Laurent Vivier
a68bdea45c moved to ../libemile/ 2004-12-14 16:23:09 +00:00
Laurent Vivier
ad5745956a set first, second and kernel parameters, it's a draft... 2004-12-13 02:12:27 +00:00
Laurent Vivier
563d560e04 use libemile 2004-12-10 00:28:35 +00:00
Laurent Vivier
b4018d0a2b moved to libemile/emile_scsi_create_container.c 2004-12-10 00:13:11 +00:00
Laurent Vivier
0244400cc2 move to libemile/libemile.h 2004-12-10 00:11:59 +00:00
Laurent Vivier
30eb44b0c0 moved to libemile in bootblock.h 2004-12-10 00:11:12 +00:00
Laurent Vivier
8edbc51f9d remove empty file 2004-12-09 23:47:43 +00:00
Laurent Vivier
b9cba58847 Add SCSI support for level 1 2004-12-07 00:39:39 +00:00
Laurent Vivier
3d6bc88376 declare scsi_create_container() for blocks.c 2004-12-03 00:35:33 +00:00
Laurent Vivier
43cb8eec36 Add blocks.c, emile.c to create emile 2004-12-03 00:30:26 +00:00
Laurent Vivier
618375c887 Add container information of a given kernel in an appropriate second stage file 2004-12-03 00:29:29 +00:00
Laurent Vivier
1e32dc2399 create container information for a given file 2004-12-03 00:28:46 +00:00
Laurent Vivier
385015a670 Allow to create a floppy image without kernel (load kernel from SCSI disk) 2004-12-03 00:26:28 +00:00
Laurent Vivier
da6b458ef4 more bootblock signature 2004-10-07 19:53:37 +00:00
Laurent Vivier
212202c2d1 Add emile-set-ouput to configure output of EMILE: display or serial line 2004-06-24 00:05:09 +00:00
Laurent Vivier
656ac19037 use second/head.h 2004-06-22 22:58:04 +00:00
Laurent Vivier
c0894c3445 Move emile_l2_header definition from tools/emile-second.h to second/head.h 2004-06-22 21:19:48 +00:00
Laurent Vivier
f2d141f2c4 pad size of floppy to 1440kB to be able to create floppy with MacOS Disk Copy 2004-06-11 20:05:56 +00:00
Laurent Vivier
000f32ff38 Add signature(build info) 2004-06-03 11:09:28 +00:00
Laurent Vivier
5430f75fb4 64bit support 2004-06-02 17:40:47 +00:00
Laurent Vivier
c0fb2a2399 add emile-install 2004-06-01 21:56:44 +00:00
Laurent Vivier
048b48b0e3 first revision 2004-06-01 21:56:28 +00:00
Laurent Vivier
09ef8c96cf allow to read big endian on little endian machine 2004-06-01 15:09:13 +00:00
Laurent Vivier
c814cb68e9 Enhance second stage header 2004-05-26 23:05:35 +00:00
Laurent Vivier
075b4ba6c7 Align size and offset to 512 2004-05-26 21:30:23 +00:00
Laurent Vivier
d795ed1334 move ParamBlockRec from tools/emile-first.h to second/glue.h 2004-05-26 21:29:16 +00:00
Laurent Vivier
b31edbfa11 correct typo 2004-05-21 15:36:01 +00:00
Laurent Vivier
b79a4cffea Add command to tune first level 2004-05-21 12:42:40 +00:00
Laurent Vivier
21a346e3f0 Allow to read current command line 2004-05-21 10:42:54 +00:00
Laurent Vivier
e5764a7b71 Move some defines to emile-first.h 2004-05-21 10:24:41 +00:00
Laurent Vivier
26fac279a5 Add emile-first-info to see content of boot block 2004-05-21 10:23:12 +00:00
Laurent Vivier
e839d9fc1f Allow to set kernel command line 2004-05-19 00:09:58 +00:00