|
Would like to share my findings about XCPU part (modem).
XCPU comes from CoolSand, so tools needed for compiling are CSDTK3.8 and CSDTK4.2, you can find those over internet, if will be needed I have a copy.
Those tools are for Windows.
To get sources compiled I had to install both, used version 3.8 but had to update file srecmap.exe from version 4.2.
I had to find mkimage.exe and place it near srecmap.exe.
Modem sources are in SDK from OrangePi , OrangePi-2g_Android/modem .
There is two versions for dual and single SIM.
And I had to update modem-src/soft/env/compilation/compilerules.mk file :
line 3279: srecmap -c ${MAP_FILE} -m ${FLSH_MODEL} ${HEX} ${BAS}_ ${STDOUT_NULL}
to
srecmap -c `cygpath -w ${MAP_FILE}` -m ${FLSH_MODEL} `cygpath -w ${HEX}` `cygpath -w ${BAS}_` ${STDOUT_NULL}
Similar changes need be done for mkimage use flags in the same file.
After those changes, create modem/output directory , and from modem source path execute:
./build_modem.sh system soft/ ../output/ ../../device/rda/etau/ Lensun_R635D_8810P release MODEM MyModemHAHA 0 phone
At this step I got working modem firmware, but with lack of SIM .
Solution for SIM visibility is:
in OrangePi_2G-IOT_Android/device/rda/etau/Lensun_R635D_8810P/target.def
need change
USER_SIM_ORDER ?= 1
That's all. |
|