FreeCalypso > hg > freecalypso-sw
comparison loadtools/sertool.c @ 379:7b3fd0e2a352
loadtools: compalstage support implemented in fc-iram
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Mon, 09 Jun 2014 21:07:39 +0000 |
parents | ccc5161848c7 |
children |
comparison
equal
deleted
inserted
replaced
378:3164604a6c70 | 379:7b3fd0e2a352 |
---|---|
21 { | 21 { |
22 extern char *optarg; | 22 extern char *optarg; |
23 extern int optind; | 23 extern int optind; |
24 int c; | 24 int c; |
25 | 25 |
26 while ((c = getopt(argc, argv, "b:h:H:i:n")) != EOF) | 26 while ((c = getopt(argc, argv, "b:c:C:h:H:i:n")) != EOF) |
27 switch (c) { | 27 switch (c) { |
28 case 'b': | 28 case 'b': |
29 set_romload_baudrate(optarg); | 29 set_romload_baudrate(optarg); |
30 continue; | |
31 case 'c': | |
32 set_compalstage_short(optarg); | |
33 continue; | |
34 case 'C': | |
35 set_compalstage_fullpath(optarg); | |
30 continue; | 36 continue; |
31 case 'h': | 37 case 'h': |
32 read_hwparam_file_shortname(optarg); | 38 read_hwparam_file_shortname(optarg); |
33 continue; | 39 continue; |
34 case 'H': | 40 case 'H': |
50 goto usage; | 56 goto usage; |
51 target_ttydev = argv[optind]; | 57 target_ttydev = argv[optind]; |
52 iramimage.filename = argv[optind+1]; | 58 iramimage.filename = argv[optind+1]; |
53 | 59 |
54 open_target_serial(); | 60 open_target_serial(); |
61 perform_compal_stage(1); | |
55 perform_romload(); | 62 perform_romload(); |
56 tty_passthru(); | 63 tty_passthru(); |
57 exit(0); | 64 exit(0); |
58 } | 65 } |