view gsm-fw/cfgmagic/feature.mokoffs @ 853:ae254ffeaec3

AT command interface works! The cause of the breakage was the same Nucleus API issue with NU_Create_Timer() which we encountered at the very beginning of this project with Riviera timers: the code in uartfax.c from TCS211 was passing 0 as the initial dummy value for the timer duration, and our FreeNucleus version doesn't like it. The fix is the same: pass 1 as the initial dummy value instead.
author Space Falcon <falcon@ivan.Harhan.ORG>
date Thu, 30 Apr 2015 01:46:26 +0000
parents c70c077243dd
children 6ffebb8cec78
line wrap: on
line source

# feature mokoffs is applicable only when building gsm-fw for the Openmoko
# GTA0x GSM modem.  This feature directs our fw to use the original FFS
# which contains the factory IMEI + RF calibration data and which the
# original mokoN firmware treats as writable.
#
# feature mokoffs	-- use MokoFFS, but treat it as read-only
# feature mokoffs rw	-- treat MokoFFS as R/W like the original fw does

if [ $TARGET != gtamodem ]
then
	echo "Error: feature mokoffs is applicable only to target gtamodem" 1>&2
	exit 1
fi

FFS_IN_RAM=0
CONFIG_MOKOFFS=1
export_to_c	CONFIG_MOKOFFS

if [ "$2" = rw ]
then
	CONFIG_FLASH_WRITE=1
else
	CONFIG_FLASH_WRITE=0
fi
export_to_c	CONFIG_FLASH_WRITE