Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
View: 1432|Reply: 2

2G-IOT Android Source build fails

[Copy link]

1

Threads

2

Posts

17

Credits

Novice

Rank: 1

Credits
17
Post time 2018-11-9 21:48:43 | Show all posts |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| Post time 2018-11-16 05:07:11 | Show all posts
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
Post time 2020-3-26 09:58:02 | Show all posts
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

You have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2020-5-28 21:23 GMT+8 , Processed in 0.026675 second(s), 22 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list