[zaptel-commits] kpfleming: branch 1.4 r1828 - in /branches/1.4: ./ build_tools/ wct4xxp/

zaptel-commits at lists.digium.com zaptel-commits at lists.digium.com
Mon Jan 15 21:38:42 MST 2007


Author: kpfleming
Date: Mon Jan 15 22:38:41 2007
New Revision: 1828

URL: http://svn.digium.com/view/zaptel?view=rev&rev=1828
Log:
Merged revisions 1826-1827 via svnmerge from 
https://origsvn.digium.com/svn/zaptel/branches/1.2

........
r1826 | kpfleming | 2007-01-15 22:30:00 -0600 (Mon, 15 Jan 2007) | 3 lines

make the 'firmware object' files load the firmware blobs as read-only data
simplify the code that uses the firmware objects a bit

........
r1827 | kpfleming | 2007-01-15 22:37:06 -0600 (Mon, 15 Jan 2007) | 2 lines

use latest Octasic API tag

........

Modified:
    branches/1.4/   (props changed)
    branches/1.4/build_tools/make_firmware_object
    branches/1.4/wct4xxp/vpm450m.c

Propchange: branches/1.4/
------------------------------------------------------------------------------
Binary property 'branch-1.2-merged' - no diff available.

Propchange: branches/1.4/
------------------------------------------------------------------------------
--- svn:externals (original)
+++ svn:externals Mon Jan 15 22:38:41 2007
@@ -1,2 +1,2 @@
 menuselect https://origsvn.digium.com/svn/menuselect/branches/1.0
-oct612x https://origsvn.digium.com/svn/octasic_api/oct612x/tags/PR43-00/software
+oct612x http://svn.digium.com/svn/octasic_api/oct612x/tags/PR43-01/software

Modified: branches/1.4/build_tools/make_firmware_object
URL: http://svn.digium.com/view/zaptel/branches/1.4/build_tools/make_firmware_object?view=diff&rev=1828&r1=1827&r2=1828
==============================================================================
--- branches/1.4/build_tools/make_firmware_object (original)
+++ branches/1.4/build_tools/make_firmware_object Mon Jan 15 22:38:41 2007
@@ -9,4 +9,4 @@
 bfdname=`objdump -f ${3} | grep -e "${3}:" | sed "s/.*file format \(.*\)/\1/"`
 bfdarch=`objdump -f ${3} | grep -e "architecture:" | sed "s/.*ture: \(.*\),.*/\1/"`
 
-objcopy -I binary ${1} -B ${bfdarch} -O ${bfdname} ${2}
+objcopy -I binary ${1} -B ${bfdarch} -O ${bfdname} ${2} --rename-section .data=.rodata,alloc,load,data,contents,readonly

Modified: branches/1.4/wct4xxp/vpm450m.c
URL: http://svn.digium.com/view/zaptel/branches/1.4/wct4xxp/vpm450m.c?view=diff&rev=1828&r1=1827&r2=1828
==============================================================================
--- branches/1.4/wct4xxp/vpm450m.c (original)
+++ branches/1.4/wct4xxp/vpm450m.c Mon Jan 15 22:38:41 2007
@@ -12,11 +12,6 @@
 #include <linux/time.h>
 #ifdef HOTPLUG_FIRMWARE
 #include <linux/firmware.h>
-#else
-extern unsigned char _binary_OCT6114_64D_ima_start;
-extern unsigned int _binary_OCT6114_64D_ima_size;
-extern unsigned char _binary_OCT6114_128D_ima_start;
-extern unsigned int _binary_OCT6114_128D_ima_size;
 #endif
 
 #include "oct6100api/oct6100_api.h"
@@ -44,7 +39,7 @@
 	return cOCT6100_ERR_OK;
 }
 
-UINT32 Oct6100UserMemCopy(PVOID f_pDestination, PVOID f_pSource, UINT32 f_ulLength)
+UINT32 Oct6100UserMemCopy(PVOID f_pDestination, const void *f_pSource, UINT32 f_ulLength)
 {
 	memcpy(f_pDestination, f_pSource, f_ulLength);
 	return cOCT6100_ERR_OK;
@@ -411,10 +406,16 @@
 	ChipOpen.ulImageSize = firmware->size;
 #else
 	if (vpm450m->numchans > 64) {
-		ChipOpen.pbyImageFile = &_binary_OCT6114_128D_ima_start;
+		extern const unsigned char _binary_OCT6114_128D_ima_start[];
+		extern const unsigned int _binary_OCT6114_128D_ima_size;
+
+		ChipOpen.pbyImageFile = _binary_OCT6114_128D_ima_start;
 		ChipOpen.ulImageSize = _binary_OCT6114_128D_ima_size;
 	} else {
-		ChipOpen.pbyImageFile = &_binary_OCT6114_64D_ima_start;
+		extern const unsigned char _binary_OCT6114_64D_ima_start[];
+		extern const unsigned int _binary_OCT6114_64D_ima_size;
+
+		ChipOpen.pbyImageFile = _binary_OCT6114_64D_ima_start;
 		ChipOpen.ulImageSize = _binary_OCT6114_64D_ima_size;
 	}
 #endif	



More information about the zaptel-commits mailing list