Changeset 4122


Ignore:
Timestamp:
02/27/08 14:07:32 (5 years ago)
Author:
werner
Message:

Fixed various silly bugs. Devirginating GTA02v5 now works. NOR is still
missing.

  • setup.sh: progress is good, but the right word here really is "process"
  • setup.sh: use new USB ID for GTA02
  • setup.sh: "-s" was missing in env_size_opt
  • setup.sh: unlike cpp, envedit.pl needs a space between -D and the token
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/host/devirginator/setup.sh

    r4117 r4122  
    2323 
    2424 
    25 # USB ID of DFU target (Neo) 
    26 USB_ID=-d1457:5119 
     25# USB ID of DFU target 
     26USB_ID_GTA01=-d1457:5119 
     27USB_ID_GTA02=-d1d50:5119 
    2728 
    2829mkdir -p tmp 
     
    306307if [ "$PLATFORM" = gta01 ]; then 
    307308    env_size_opt= 
     309    usb_id=$USB_ID_GTA01 
    308310else 
    309     env_size_opt=0x40000 
     311    env_size_opt="-s 0x40000" 
     312    usb_id=$USB_ID_GTA02 
    310313fi 
    311314 
     
    366369    echo === STAGE 2: DFU upload 
    367370    sleep 5 
    368     $DFU_UTIL $USB_ID -a kernel -D $UIMAGE 
    369     $DFU_UTIL $USB_ID -a rootfs -D $ROOTFS 
    370     $DFU_UTIL $USB_ID -a splash -D tmp/splash.gz 
     371    $DFU_UTIL $usb_id -a kernel -D $UIMAGE 
     372    $DFU_UTIL $usb_id -a rootfs -D $ROOTFS 
     373    $DFU_UTIL $usb_id -a splash -D tmp/splash.gz 
    371374    rm -f tmp/env.old tmp/env.new 
    372     $DFU_UTIL $USB_ID -a u-boot_env -U tmp/env.old 
     375    $DFU_UTIL $usb_id -a u-boot_env -U tmp/env.old 
    373376    ./openocdcmd.pl $OPENOCD_HOST $OPENOCD_PORT \ 
    374377      "reset halt" wait_halt resume exit 
    375378    sleep 5 
    376379    ./envedit.pl $env_size_opt -i tmp/env.old -o tmp/env.new \ 
    377        -D$U_PLATFORM -D$U_PLATFORM$U_BOARD -f tmp/environment 
    378     $DFU_UTIL $USB_ID -a u-boot_env -D tmp/env.new 
     380       -D $U_PLATFORM -D $U_PLATFORM$U_BOARD -f tmp/environment 
     381    $DFU_UTIL $usb_id -a u-boot_env -D tmp/env.new 
    379382    ./openocdcmd.pl $OPENOCD_HOST $OPENOCD_PORT "reset run" exit 
    380383fi 
     
    421424- switch it on 
    422425- run ./devirginate 
    423 - follow the progress, as described in README 
     426- follow the process, as described in README 
    424427 
    425428------------------------------------------------------------------------------- 
Note: See TracChangeset for help on using the changeset viewer.