Changeset 566


Ignore:
Timestamp:
11/15/08 07:12:19 (5 years ago)
Author:
reyalp
Message:

misc patches from chr in prep for ixus80_sd1100
see http://chdk.setepontos.com/index.php/topic,650.msg24281.html#msg24281
applied
0001-found-O_APPEND-for-dryos.patch
0004-tool-for-encoding-diskboot.bin-images.patch
0005-hack-gensigs.sh-we-have-different-rom-start-adresse.patch
0008-while-hacking-it-happend-that-.cfg-got-corrupt-and.patch
0009-hacking-debug-osd-panel.patch
0011-compile-fix-make-OPT_DEBUGGING-global.patch

Location:
trunk
Files:
1 added
12 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/Makefile

    r552 r566  
    3737endif 
    3838ifdef OPT_DEBUGGING 
    39 CFLAGS+=-DOPT_DEBUGGING 
     39# global in root makefile.inc 
     40#CFLAGS+=-DOPT_DEBUGGING 
    4041OPT_OBJS+=gui_debug.o gui_bench.o  
    4142endif 
  • trunk/core/gui.c

    r556 r566  
    23352335 
    23362336//------------------------------------------------------------------- 
    2337 extern long physw_status[3]; 
    2338 extern long GetPropertyCase(long opt_id, void *buf, long bufsize); 
    23392337//extern int xxxx, eeee; 
    23402338//------------------------------------------------------------------- 
     
    25222520//      sprintf(osd_buf, "1:%03d-%04d  ", (v>>18)&0x3FF, (v>>4)&0x3FFF); 
    25232521//      sprintf(osd_buf, "1:%d, %08X  ", xxxx, eeee); 
     2522/* 
     2523extern long physw_status[3]; 
    25242524        sprintf(osd_buf, "1:%8x  ", physw_status[0]); 
    25252525        draw_txt_string(28, 10, osd_buf, conf.osd_color); 
    25262526 
    2527  sprintf(osd_buf, "2:%8x  ", physw_status[1]); 
    2528  
     2527        sprintf(osd_buf, "2:%8x  ", physw_status[1]); 
    25292528        draw_txt_string(28, 11, osd_buf, conf.osd_color); 
    25302529 
    2531 sprintf(osd_buf, "3:%8x  ", physw_status[2]); 
    2532  
     2530        sprintf(osd_buf, "3:%8x  ", physw_status[2]); 
    25332531        draw_txt_string(28, 12, osd_buf, conf.osd_color); 
    25342532 
    2535 //      sprintf(osd_buf, "4:%8x  ", vid_get_viewport_fb_d()); 
    2536          sprintf(osd_buf, "4:%8x  ", get_usb_power(1)); 
     2533        //      sprintf(osd_buf, "4:%8x  ", vid_get_viewport_fb_d()); 
     2534*/ 
     2535        sprintf(osd_buf, "u:%8x  ", get_usb_power(1)); 
     2536        draw_txt_string(28,  9, osd_buf, conf.osd_color); 
     2537 
     2538        sprintf(osd_buf, "1:%8x  ", (void*) (*(int*)conf.mem_view_addr_init)); 
     2539        draw_txt_string(28, 10, osd_buf, conf.osd_color); 
     2540 
     2541extern volatile long focus_busy; 
     2542        sprintf(osd_buf, "f:%8x  ", focus_busy); 
     2543        draw_txt_string(28, 11, osd_buf, conf.osd_color); 
     2544 
     2545extern volatile long zoom_busy; 
     2546        sprintf(osd_buf, "z:%8x  ", zoom_busy); 
     2547        draw_txt_string(28, 12, osd_buf, conf.osd_color); 
     2548 
     2549        sprintf(osd_buf, "t:%8x  ", zoom_status); 
    25372550        draw_txt_string(28, 13, osd_buf, conf.osd_color); 
     2551 
    25382552    } 
    25392553 
  • trunk/core/gui_osd.c

    r556 r566  
    116116            osd[curr_item].pos->x+=(screen_width-osd[curr_item].size.x-osd[curr_item].pos->x>step)?step:screen_width-osd[curr_item].size.x-osd[curr_item].pos->x; 
    117117            osd_to_draw = 1; 
    118         } 
     118        } else 
     119            osd[curr_item].pos->x = screen_width-osd[curr_item].size.x; 
    119120        break; 
    120121    case KEY_UP: 
     
    128129            osd[curr_item].pos->y+=(screen_height-osd[curr_item].size.y-osd[curr_item].pos->y>step)?step:screen_height-osd[curr_item].size.y-osd[curr_item].pos->y; 
    129130            osd_to_draw = 1; 
    130         } 
     131        } else 
     132            osd[curr_item].pos->y = screen_height-osd[curr_item].size.y; 
    131133        break; 
    132134    case KEY_SET: 
  • trunk/include/stdlib.h

    r544 r566  
    4646#else 
    4747 
     48#define O_APPEND        0x8 // ok for dryos, vx? 
    4849#define O_TRUNC         0x200 
    4950#define O_CREAT         0x100 
  • trunk/makefile.inc

    r557 r566  
    261261LDFLAGS+=-L$(topdir)platform/$(PLATFORM) -L$(topdir)platform/$(PLATFORM)/sub/$(PLATFORMSUB) 
    262262 
     263ifdef OPT_DEBUGGING 
     264CFLAGS+=-DOPT_DEBUGGING 
     265endif 
     266 
    263267########################################################################## 
    264268 
  • trunk/tools/Makefile

    r518 r566  
    55include $(topdir)makefile.inc 
    66 
    7 OBJS=pakwif.o finsig.o gensig.o dumpchk.o 
     7OBJS=pakwif.o finsig.o gensig.o dumpchk.o dancingbits.o 
    88 
    9 all: pakwif$(EXE) finsig$(EXE) 
     9all: pakwif$(EXE) finsig$(EXE) dancingbits$(EXE) 
    1010 
    1111%.o: %.c 
     
    3131 
    3232dumpchk$(EXE): dumpchk.o 
     33        @echo $< \-\> $@ 
     34        $(HOSTCC) $(HOSTCFLAGS) -o $@ $^ 
     35 
     36dancingbits$(EXE): dancingbits.o 
    3337        @echo $< \-\> $@ 
    3438        $(HOSTCC) $(HOSTCFLAGS) -o $@ $^ 
  • trunk/tools/gensigs.sh

    r515 r566  
    77for v in $VERSIONS; do 
    88    cat sig_ref_$2_${v}.txt | \ 
     9        ( read line; rom_start=($line) ; \ 
    910    while read line; do 
    1011        # workaround - multiword read does not work in Windows shell! 
     
    1314        addr=${line[1]} 
    1415        length=${line[2]} 
    15         ./gensig sig_ref_$2_${v}.bin 0xffc00000 ${name}_${v} $addr ${length:-32} 
     16        ./gensig sig_ref_$2_${v}.bin ${rom_start} ${name}_${v} $addr ${length:-32} 
    1617    done 
     18        ) 
    1719done 
    1820 
     
    2123for v in $VERSIONS; do 
    2224    cat sig_ref_$2_${v}.txt | \ 
     25        ( read line; rom_start=($line) ; \ 
    2326    awk -v v=${v} '{ printf("\t{ \"%s\", func_sig_%s_%d },\n",$1,$1,v)}' 
     27        ) 
    2428done | "$1" 
    2529 
  • trunk/tools/readme.txt

    r515 r566  
    33sig_ref_vxworks_3.bin : should contain a570-100e primary 
    44sig_ref_dryos_1.bin   : should contain a720-100c primary 
     5sig_ref_dryos_2.bin   : should contain sd1100-100c primary 
     6 
     7files should have rom start address in first line. 
  • trunk/tools/sig_ref_dryos_1.txt

    r538 r566  
     10xffc00000 
    12SleepTask 0xFFC196d0 
    23CreateTask 0xFFC0BBC0 
  • trunk/tools/sig_ref_vxworks_1.txt

    r517 r566  
     10xFFC00000 
    12AllocateMemory 0xFFC01B1C 32 
    23close 0xFFEBBE5C 
  • trunk/tools/sig_ref_vxworks_2.txt

    r515 r566  
     10xFFC00000 
    12GetSystemTime 0xFFC04D38 
    23GetPropertyCase 0xFFC14DEC 
  • trunk/tools/sig_ref_vxworks_3.txt

    r517 r566  
     10xFFC00000 
    12Fclose_Fut 0xFFE422A0 
    23Fopen_Fut 0xFFE42260 
Note: See TracChangeset for help on using the changeset viewer.