Changeset 12441


Ignore:
Timestamp:
07/06/09 13:58:28 (4 years ago)
Author:
BrainSlayer
Message:

current builds (reset/reboot fix for redboot)

Location:
ar5315_microredboot/microredboot
Files:
72 edited

Legend:

Unmodified
Added
Removed
  • ar5315_microredboot/microredboot/boot/src/ramconfig.h

    r12429 r12441  
    1 #define RAM_SIZE 0x2000000 
     1#define RAM_SIZE 0x1000000 
     2#define AR5312 1 
    23#define RESETBUTTON 0x06 
  • ar5315_microredboot/microredboot/build_targets.sh

    r12368 r12441  
    1010cp images/*.rom images_dir300  
    1111 
     12 
     13rm -f images/* 
     14make ap61 RESETBUTTON=0x06 FIS=0 LED1_PIN=0 LED2_PIN=1 LED3_PIN=3 LED4_PIN=4 
     15mkdir images_ubnt 
     16cp images/redboot_ap61_16M_4M_kendin.rom images_ubnt/BS2_LC2.rom 
     17cp images/redboot_ap61_32M_8M_kendin.rom images_ubnt/PICO2.rom 
     18 
     19rm -f images/* 
     20make ap51 RESETBUTTON=0x06 FIS=0 LED1_PIN=0 LED2_PIN=1 LED3_PIN=3 LED4_PIN=4 
     21mkdir images_ubnt 
     22cp images/redboot_ap51_16M_4M_icplus.rom images_ubnt/LS2_PS2.rom 
     23cp images/redboot_ap51_16M_4M_kendin.rom images_ubnt/NS2.rom 
     24 
     25rm -f images/* 
     26make ap48 RESETBUTTON=0x06 FIS=0 LED1_PIN=7 LED2_PIN=5 LED3_PIN=4 LED4_PIN=3 
     27mkdir images_ubnt 
     28cp images/redboot_ap48_16M_4M_kendin.rom images_ubnt/LS5_NS5_PS5_BS5_LC5_PICO5.rom 
     29 
    1230#senao like inverted gpio 5 
    13 make ap51 RESETBUTTON=0x15 FIS=2 
     31rm -f images/* 
     32make ap51 RESETBUTTON=0x15 FIS=2  LED1_PIN=4 LED2_PIN=6 LED3_PIN=7 
    1433mkdir images_senao 
    1534cp images/*.rom images_senao  
     
    2241 
    2342rm -f images/* 
    24 make ap48 RESETBUTTON=0x16 FIS=0 
     43make ap48 RESETBUTTON=0x16 FIS=0 LED1_PIN=0 LED2_PIN=2 LED3_PIN=1 
    2544mkdir images_senao 
    2645cp images/*.rom images_senao 
     
    3554cp -rv images_default /GruppenLW/releases/images 
    3655cp -rv images_dir300 /GruppenLW/releases/images 
     56cp -rv images_ubnt /GruppenLW/releases/images 
    3757cp -rv images_wrt54g2 /GruppenLW/releases/images 
  • ar5315_microredboot/microredboot/ecos/packages/hal/mips/ar2316/current/src/plf_misc.c

    r12431 r12441  
    363363        void (*mips_reset_vec)(void) = (void *) 0xbfc00000; 
    364364    for(;;) { 
     365        sysGpioSet(AR2316_RESET_GPIO, 0); 
     366        sysGpioSet(0, 0); 
    365367        HAL_WRITE_UINT32(AR2316_COLD_RESET,AR2317_RESET_SYSTEM); 
    366         udelay(100*1000); 
    367         sysGpioSet(AR2316_RESET_GPIO, 0); 
    368         udelay(100*1000); 
    369         sysGpioSet(0, 0); 
    370         udelay(100*1000); 
    371368        mips_reset_vec(); 
    372369    } 
  • ar5315_microredboot/microredboot/ecos/packages/redboot/current/src/flash.c

    r12429 r12441  
    10141014static void fis_create_accton(int argc, char *argv[]) 
    10151015{ 
    1016         set_gpio(0,1); 
     1016        set_gpio(0, 1); 
    10171017        page_programming_supported = 1; 
    10181018        page_gpio = 0; 
     
    10231023static void fis_create_256(int argc, char *argv[]) 
    10241024{ 
    1025         set_gpio(3,1); 
     1025        set_gpio(3, 1); 
    10261026        page_programming_supported = 1; 
    10271027        page_gpio = 3; 
     
    12011201#ifdef LEDCODE 
    12021202        static int counter = 0; 
     1203        static int reverse = 0; 
    12031204        unsigned char leds[] = { 
    12041205                LED1_PIN, 
     
    12211222                        set_gpio(leds[i], 0); 
    12221223                } 
    1223                 set_gpio(leds[counter++], 1); 
    1224                 if (counter == len) 
    1225                         counter = 0; 
     1224                if (!reverse) 
     1225                        set_gpio(leds[counter++], 1); 
     1226                else 
     1227                        set_gpio(leds[counter--], 1); 
     1228 
     1229                if (counter == len && !reverse) { 
     1230                        reverse = 1; 
     1231                        counter--; 
     1232                } 
     1233                if (counter == -1 && reverse) { 
     1234                        reverse = 0; 
     1235                        counter++; 
     1236                } 
    12261237        } 
    12271238#endif 
  • ar5315_microredboot/microredboot/makefile

    r12368 r12441  
    1818export FIS=0 
    1919endif 
     20export LEDCODE=1 
     21ifndef LED1_PIN 
     22export LED1_PIN=0xff 
     23export LEDCODE=0 
     24endif 
     25ifndef LED2_PIN 
     26export LED2_PIN=0xff 
     27endif 
     28ifndef LED3_PIN 
     29export LED3_PIN=0xff 
     30endif 
     31ifndef LED4_PIN 
     32export LED4_PIN=0xff 
     33endif 
    2034 
    2135ifndef TFTPPATH 
     
    2539export ECOS_REPOSITORY=$(PWD)/ecos/packages 
    2640PATH:=${PATH}:${ATH_ROOT}/tools/ecos_build/gnutools/mipsisa32-elf/bin:$(PWD)/ecos/tools/bin 
     41#PATH:=${PATH}:${ATH_ROOT}/gnutools/mipsisa32-elf/bin:$(PWD)/ecos/tools/bin 
    2742REDBOOT_DIR=$(PWD) 
    2843 
     
    90105PLATFORM_RAM_BUILD = echo "\#define RESETBUTTON ${RESETBUTTON}" > ecos/packages/redboot/current/src/ramconfig.h; \ 
    91106        echo "\#define FISTYPE ${FIS}" >> ecos/packages/redboot/current/src/ramconfig.h; \ 
     107        echo "\#define LEDCODE ${LEDCODE}" >> ecos/packages/redboot/current/src/ramconfig.h; \ 
     108        echo "\#define LED1_PIN ${LED1_PIN}" >> ecos/packages/redboot/current/src/ramconfig.h; \ 
     109        echo "\#define LED2_PIN ${LED2_PIN}" >> ecos/packages/redboot/current/src/ramconfig.h; \ 
     110        echo "\#define LED3_PIN ${LED3_PIN}" >> ecos/packages/redboot/current/src/ramconfig.h; \ 
     111        echo "\#define LED4_PIN ${LED4_PIN}" >> ecos/packages/redboot/current/src/ramconfig.h; \ 
    92112        make -C $(RAMBUILD_DIR); \ 
    93113        cd $(RAMBUILD_DIR)/install/bin; \ 
     
    148168        cp redboot/ap48/ram/install/bin/redboot.img images/redboot_ap48_32M_8M_kendin.elf 
    149169 
     170 
     171# RAM version 
     172        echo "#define RAM_SIZE 0x1000000" > boot/src/ramconfig.h 
     173        echo "#define AR5312 1" >> boot/src/ramconfig.h 
     174        $(PLATFORM_RAM_START) \ 
     175        ecosconfig import $(REDBOOT_DIR)/options/serial/115200_baud; \ 
     176        ecosconfig import $(REDBOOT_DIR)/options/RAM/16MB_ram; \ 
     177        ecosconfig import $(REDBOOT_DIR)/options/flash/4MB_rom_ap48; \ 
     178        ecosconfig import $(ECOS_REPOSITORY)/hal/mips/ap48/current/misc/redboot_RAM.ecm; \ 
     179        $(PLATFORM_BLD_CUST) 
     180        $(PLATFORM_RAM_BUILD) 
     181        cp redboot/ap48/ram/install/bin/redboot.rom images/redboot_ap48_16M_4M_kendin.rom 
     182        cp redboot/ap48/ram/install/bin/redboot.img images/redboot_ap48_16M_4M_kendin.elf 
     183 
     184 
    150185ap43: 
    151186# ROM version 
Note: See TracChangeset for help on using the changeset viewer.