Changeset 34141


Ignore:
Timestamp:
2012-11-11T12:07:59+01:00 (5 years ago)
Author:
kaloz
Message:

[ixp4xx]: fix machtype handling above 4096

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/arm-magic.sh

    r20854 r34141  
    33#   Empty/wrong machtype-workaround generator 
    44# 
    5 #   Copyright (C) 2006 Imre Kaloz <kaloz@openwrt.org> 
     5#   Copyright (C) 2006-2012 Imre Kaloz <kaloz@openwrt.org> 
    66#   based on linux/arch/arm/boot/compressed/head-xscale.S 
    77# 
     
    3232  else 
    3333    # we have a high machtypeid, we need a "mov" (e3a) and an "orr" (e38) 
    34     printf "\xe3\xa0\x10\x$(echo $hexid|cut -b "2 3")\xe3\x81\x1c\x$(echo $hexid|cut -b 1)" > $BIN_DIR/openwrt-$1-zImage 
     34    if [ "$2" -lt "4096" ]; then 
     35      printf "\xe3\xa0\x10\x$(echo $hexid|cut -b "2 3")\xe3\x81\x1c\x$(echo $hexid|cut -b 1)" > $BIN_DIR/openwrt-$1-zImage 
     36    else 
     37      printf "\xe3\xa0\x10\x$(echo $hexid|cut -b "3 4")\xe3\x81\x1c\x$(echo $hexid|cut -b "1 2")" > $BIN_DIR/openwrt-$1-zImage 
     38    fi 
    3539  fi 
    3640    # generate the image 
Note: See TracChangeset for help on using the changeset viewer.