|
|
@ -126,7 +126,7 @@ fi
|
|
|
|
|
|
|
|
|
|
|
|
function set_defaults {
|
|
|
|
function set_defaults {
|
|
|
|
|
|
|
|
|
|
|
|
wget --no-verbose --directory-prefix=${TEMPDIR}/dl/ http://rcn-ee.net/deb/${DIST}/LATEST
|
|
|
|
wget --no-verbose --directory-prefix=${TEMPDIR}/dl/ http://rcn-ee.net/deb/${DIST}/LATEST-${SUBARCH}
|
|
|
|
|
|
|
|
|
|
|
|
if [ "$BETA_KERNEL" ];then
|
|
|
|
if [ "$BETA_KERNEL" ];then
|
|
|
|
KERNEL_SEL="TESTING"
|
|
|
|
KERNEL_SEL="TESTING"
|
|
|
@ -141,7 +141,7 @@ function set_defaults {
|
|
|
|
|
|
|
|
|
|
|
|
if [ ! "${KERNEL_DEB}" ] ; then
|
|
|
|
if [ ! "${KERNEL_DEB}" ] ; then
|
|
|
|
|
|
|
|
|
|
|
|
FTP_DIR=$(cat ${TEMPDIR}/dl/LATEST | grep "ABI:1 ${KERNEL_SEL}" | awk '{print $3}')
|
|
|
|
FTP_DIR=$(cat ${TEMPDIR}/dl/LATEST-${SUBARCH} | grep "ABI:1 ${KERNEL_SEL}" | awk '{print $3}')
|
|
|
|
FTP_DIR=$(echo ${FTP_DIR} | awk -F'/' '{print $6}')
|
|
|
|
FTP_DIR=$(echo ${FTP_DIR} | awk -F'/' '{print $6}')
|
|
|
|
KERNEL=$(echo ${FTP_DIR} | sed 's/v//')
|
|
|
|
KERNEL=$(echo ${FTP_DIR} | sed 's/v//')
|
|
|
|
|
|
|
|
|
|
|
@ -805,6 +805,23 @@ function check_mmc {
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function is_omap {
|
|
|
|
|
|
|
|
HASMLO=1
|
|
|
|
|
|
|
|
UIMAGE_ADDR="0x80300000"
|
|
|
|
|
|
|
|
UINITRD_ADDR="0x81600000"
|
|
|
|
|
|
|
|
SERIAL_CONSOLE="${SERIAL},115200n8"
|
|
|
|
|
|
|
|
ZRELADD="0x80008000"
|
|
|
|
|
|
|
|
SUBARCH="omap"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function is_imx53 {
|
|
|
|
|
|
|
|
UIMAGE_ADDR="0x70800000"
|
|
|
|
|
|
|
|
UINITRD_ADDR="0x72100000"
|
|
|
|
|
|
|
|
SERIAL_CONSOLE="${SERIAL},115200"
|
|
|
|
|
|
|
|
ZRELADD="0x70008000"
|
|
|
|
|
|
|
|
SUBARCH="imx"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function check_uboot_type {
|
|
|
|
function check_uboot_type {
|
|
|
|
unset DO_UBOOT
|
|
|
|
unset DO_UBOOT
|
|
|
|
|
|
|
|
|
|
|
@ -814,13 +831,9 @@ case "$UBOOT_TYPE" in
|
|
|
|
SYSTEM=beagle_bx
|
|
|
|
SYSTEM=beagle_bx
|
|
|
|
unset IN_VALID_UBOOT
|
|
|
|
unset IN_VALID_UBOOT
|
|
|
|
DO_UBOOT=1
|
|
|
|
DO_UBOOT=1
|
|
|
|
HASMLO=1
|
|
|
|
|
|
|
|
ABI_VER=1
|
|
|
|
ABI_VER=1
|
|
|
|
UIMAGE_ADDR="0x80300000"
|
|
|
|
|
|
|
|
UINITRD_ADDR="0x81600000"
|
|
|
|
|
|
|
|
SERIAL="ttyO2"
|
|
|
|
SERIAL="ttyO2"
|
|
|
|
SERIAL_CONSOLE="${SERIAL},115200n8"
|
|
|
|
is_omap
|
|
|
|
ZRELADD="0x80008000"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
beagle)
|
|
|
|
beagle)
|
|
|
@ -828,13 +841,9 @@ case "$UBOOT_TYPE" in
|
|
|
|
SYSTEM=beagle
|
|
|
|
SYSTEM=beagle
|
|
|
|
unset IN_VALID_UBOOT
|
|
|
|
unset IN_VALID_UBOOT
|
|
|
|
DO_UBOOT=1
|
|
|
|
DO_UBOOT=1
|
|
|
|
HASMLO=1
|
|
|
|
|
|
|
|
ABI_VER=7
|
|
|
|
ABI_VER=7
|
|
|
|
UIMAGE_ADDR="0x80300000"
|
|
|
|
|
|
|
|
UINITRD_ADDR="0x81600000"
|
|
|
|
|
|
|
|
SERIAL="ttyO2"
|
|
|
|
SERIAL="ttyO2"
|
|
|
|
SERIAL_CONSOLE="${SERIAL},115200n8"
|
|
|
|
is_omap
|
|
|
|
ZRELADD="0x80008000"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
panda)
|
|
|
|
panda)
|
|
|
@ -842,14 +851,10 @@ case "$UBOOT_TYPE" in
|
|
|
|
SYSTEM=panda
|
|
|
|
SYSTEM=panda
|
|
|
|
unset IN_VALID_UBOOT
|
|
|
|
unset IN_VALID_UBOOT
|
|
|
|
DO_UBOOT=1
|
|
|
|
DO_UBOOT=1
|
|
|
|
HASMLO=1
|
|
|
|
|
|
|
|
ABI_VER=2
|
|
|
|
ABI_VER=2
|
|
|
|
SMSC95XX_MOREMEM=1
|
|
|
|
SMSC95XX_MOREMEM=1
|
|
|
|
UIMAGE_ADDR="0x80300000"
|
|
|
|
|
|
|
|
UINITRD_ADDR="0x81600000"
|
|
|
|
|
|
|
|
SERIAL="ttyO2"
|
|
|
|
SERIAL="ttyO2"
|
|
|
|
SERIAL_CONSOLE="${SERIAL},115200n8"
|
|
|
|
is_omap
|
|
|
|
ZRELADD="0x80008000"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
touchbook)
|
|
|
|
touchbook)
|
|
|
@ -857,13 +862,9 @@ case "$UBOOT_TYPE" in
|
|
|
|
SYSTEM=touchbook
|
|
|
|
SYSTEM=touchbook
|
|
|
|
unset IN_VALID_UBOOT
|
|
|
|
unset IN_VALID_UBOOT
|
|
|
|
DO_UBOOT=1
|
|
|
|
DO_UBOOT=1
|
|
|
|
HASMLO=1
|
|
|
|
|
|
|
|
ABI_VER=5
|
|
|
|
ABI_VER=5
|
|
|
|
UIMAGE_ADDR="0x80300000"
|
|
|
|
|
|
|
|
UINITRD_ADDR="0x81600000"
|
|
|
|
|
|
|
|
SERIAL="ttyO2"
|
|
|
|
SERIAL="ttyO2"
|
|
|
|
SERIAL_CONSOLE="${SERIAL},115200n8"
|
|
|
|
is_omap
|
|
|
|
ZRELADD="0x80008000"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BETA_KERNEL=1
|
|
|
|
BETA_KERNEL=1
|
|
|
|
SERIAL_MODE=1
|
|
|
|
SERIAL_MODE=1
|
|
|
@ -874,13 +875,9 @@ case "$UBOOT_TYPE" in
|
|
|
|
SYSTEM=crane
|
|
|
|
SYSTEM=crane
|
|
|
|
unset IN_VALID_UBOOT
|
|
|
|
unset IN_VALID_UBOOT
|
|
|
|
DO_UBOOT=1
|
|
|
|
DO_UBOOT=1
|
|
|
|
HASMLO=1
|
|
|
|
|
|
|
|
ABI_VER=6
|
|
|
|
ABI_VER=6
|
|
|
|
UIMAGE_ADDR="0x80300000"
|
|
|
|
|
|
|
|
UINITRD_ADDR="0x81600000"
|
|
|
|
|
|
|
|
SERIAL="ttyO2"
|
|
|
|
SERIAL="ttyO2"
|
|
|
|
SERIAL_CONSOLE="${SERIAL},115200n8"
|
|
|
|
is_omap
|
|
|
|
ZRELADD="0x80008000"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#with the crane, we need the beta kernel and serial-more
|
|
|
|
#with the crane, we need the beta kernel and serial-more
|
|
|
|
BETA_KERNEL=1
|
|
|
|
BETA_KERNEL=1
|
|
|
@ -894,13 +891,9 @@ case "$UBOOT_TYPE" in
|
|
|
|
DO_UBOOT=1
|
|
|
|
DO_UBOOT=1
|
|
|
|
DO_UBOOT_DD=1
|
|
|
|
DO_UBOOT_DD=1
|
|
|
|
ABI_VER=8
|
|
|
|
ABI_VER=8
|
|
|
|
UIMAGE_ADDR="0x70800000"
|
|
|
|
|
|
|
|
UINITRD_ADDR="0x72100000"
|
|
|
|
|
|
|
|
SERIAL="ttymxc0"
|
|
|
|
SERIAL="ttymxc0"
|
|
|
|
SERIAL_CONSOLE="${SERIAL},115200"
|
|
|
|
is_imx53
|
|
|
|
ZRELADD="0x70008000"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BETA_KERNEL=1
|
|
|
|
|
|
|
|
SERIAL_MODE=1
|
|
|
|
SERIAL_MODE=1
|
|
|
|
|
|
|
|
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|