please choosego to mobile | Continue to access the PC version
View: 7599|Reply: 13

2G-IOT Android Source build fails

[Copy link]

1

threads

2

posts

17

credits

Novice

Rank: 1

credits
17
Published in 2018-11-9 21:48:43 | Show all floors |Read mode
I downloaded the source files from the mega link. Then I followed the instructions from the 2g-iot manual to build the Androiid source. I am getting the following error:
"/bin/bash: mips-elf-gcc: command not found"

This error occurs when trying to compile the modem image.

Anyone experienced this?

Thanks,
SN

1

threads

2

posts

17

credits

Novice

Rank: 1

credits
17
 Author| Published in 2018-11-16 05:07:11 | Show all floors
I was able to get around this build error by removing the 2G Modem support. I still plan to figure out the 2G Modem build errors at a later date.

To get the build working without 2g Modem support just make the following change to /device/rda/slt/BoardConfig.mk

# TARGET_NO_MODEM := false
TARGET_NO_MODEM := true

Thanks,
SN

0

threads

1

posts

6

credits

Novice

Rank: 1

credits
6
Published in 2020-3-26 09:58:02 | Show all floors
10dnail replied at 2018-11-16 05:07
I was able to get around this build error by removing the 2G Modem support. I still plan to figure o ...

You need to execute the following command
$ sudo tar -xzf ~/modem-cross-compiler-linux.tar.gz -C /opt$ ls /opt/cross-compiler
$ sudo chown -R root:root /opt/cross-compiler
$ sudo chmod +x /opt/cross-compiler/bin/*
$ sudo sh -c 'echo export PATH=$PATH:/opt/cross-compiler/bin >/etc/profile.d/cross-compiler.sh'
$ sudo sh -c 'echo /opt/cross-compiler/lib > /etc/ld.so.conf.d/cross-compiler.conf'
$ sudo ldconfig -v
$ sudo ldconfig -v | grep '/opt/cross-compiler/lib'
$ mips-elf-gcc -v

You can find it in the source code: modem-cross-compiler-linux.tar.gz

0

threads

2

posts

20

credits

Novice

Rank: 1

credits
20
Published in 2020-7-9 17:55:40 | Show all floors
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.

0

threads

2

posts

20

credits

Novice

Rank: 1

credits
20
Published in 2020-7-9 17:59:18 | Show all floors
Edited by Pe3ucTop at 2020-7-9 20:06

Would be great to find original "modem-cross-compiler-linux.tar.gz" , may be someone have local copy of it ?
Links I found around are out of date and not working.

There is "modem-crosss-compiler-linux.tar.gz" file on original orange pi download site now (probably after Mart of this year).

0

threads

51

posts

148

credits

Registered member

Rank: 2

credits
148
Published in 2023-5-8 17:51:10 | Show all floors
The forums you share are really helpful to me, I will follow your posts regularly. For more information about me, go here: quordle

0

threads

4

posts

18

credits

Novice

Rank: 1

credits
18
Published in 2024-6-21 11:50:54 | Show all floors
Great information, it came at just the right time grade calculator
Published in 2024-8-21 23:50:59 | Show all floors
It is rare to discover a professional in whom you might have some trust. In the world in the present day, nobody truly cares about showing others the answer in this matter. How blessed I am to have found a really wonderful web site as this. It really is people like you that make a genuine difference nowadays through the strategies they reveal.        토토사이트
Published in 2024-8-23 21:43:07 | Show all floors
Hi there just wanted to give you a quick heads up. The text in your content seem to be running off the screen in Firefox. I’m not sure if this is a format issue or something to do with internet browser compatibility but I thought I’d post to let you know. The design look great though! Hope you get the problem solved soon. Many thanks        슬롯사이트
Published in 2024-8-24 01:39:07 | Show all floors
cheers for the actual article i have recently been on the lookout with regard to this kind of advice on the net for sum time right now so many thanks        꽁머니사이트
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list