I am trying to compile “hello_world” example and burn it to MUTS & LTE EVB board. I could compile it to “.o” file but could not proceed to compile into “.ubi” and also do not know how to do the rest thing to make things works. Please guide me next steps. Thank you.
I am not sure where you got the sdk, please make sure the sdk verison is same with the verison inside module, otherwise it may cause some strange issue.
if you want build sdk, you can refer the following.
cd ql-ol-sdk
source ql-ol-crosstool/ql-ol-crosstool-env-init
// if you want build kernel you can use make kernel
// if you want build aboot you can use make aboot
make
// if you want build the quectel's example
cd ql-ol-extsdk/example/
cd helloworld
make clean
make
// then you will get the binary file, then you can use adb push or copy the file to ql-rootfs to build a new system.ubi to flash module, then you will see it already inside the module
Regarding the compilation environment, we recommend using Ubuntu 16.04 or 18.04. Below is the Dockerfile. You can refer to the dependencies that need to be installed.
FROM ubuntu:16.04
RUN apt-get update
RUN apt-get upgrade --assume-yes
RUN apt-get install --assume-yes perl mc re2c g++ g++-multilib wget sudo python
ARG user=test
RUN useradd --create-home --no-log-init --shell /bin/bash ${user} \
&& adduser ${user} sudo \
&& echo "${user}:1" | chpasswd
RUN apt-get install --assume-yes bison gcc make build-essential libc6-dev-i386 libncurses-dev wget coreutils diffstat chrpath cpio gawk sed texi2html texinfo unzip flex bc libssl-dev
RUN update-alternatives --install /usr/bin/python python /usr/bin/python2 2700
# USER builder
USER ${user}
#RUN locale-gen en_US.UTF-8
#RUN export LANG=en_US.UTF-8
FROM ubuntu:18.04
RUN apt-get update
RUN apt-get upgrade --assume-yes
RUN apt-get install --assume-yes perl
RUN apt-get update && apt-get install -y sudo
# RUN apt-get install --assume-yes python
ARG user=test
RUN useradd --create-home --no-log-init --shell /bin/bash ${user} \
&& adduser ${user} sudo \
&& echo "${user}:1" | chpasswd
RUN apt-get install --assume-yes mc re2c g++
RUN apt-get install --assume-yes bison gcc make build-essential libc6-dev-i386 libncurses-dev wget coreutils diffstat chrpath cpio bc
RUN apt-get install --assume-yes gawk git git-core help2man libtool libxml2-dev quilt sed subversion texi2html texinfo unzip flex libtinfo5 locales
RUN apt-get install --assume-yes diffstat unzip texinfo gcc-multilib build-essential chrpath socat python python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping
RUN update-alternatives --install /usr/bin/python python /usr/bin/python2 2700
# RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 3600
# USER builder
USER ${user}
#RUN locale-gen en_US.UTF-8
#RUN export LANG=en_US.UTF-8