ipq-6018.md
IPQ-6018
Here is packages needed to add for Lora
Packages
- lora-gateway
- packet-forwarder
Modify the deconfig file
/images/config/deconfig
CONFIG_PACKAGE_lora-gateway=y
CONFIG_PACKAGE_packet_forwarder=y
How to build a single package
make ./package/libs/<package_name>/{clean,compile,install} -j1 V=s
-
use
-j1 V=s
to show details when building packages -
lora-gatway,packet-forwarder
need to be added addtionally
Error in packer-forwarder
- because we depend on
musl
and there will be a problem in methodqsort_r
need to build a patch to fix it
change
void qsort_r(void *base, size_t nmemb, size_t size,
int (*compar)(const void *, const void *, void *),
void *arg);
to
void qsort(void *base, size_t nmemb, size_t size,
int (*compar)(const void *, const void *));
How to quilt a patch
- you must quilt in the package under path
/build_dir/target-arm_cortex-a7_musl-1.1.16_eabi/<package>
quilt new <patch-name>
quilt a new patch
quilt add <file>
add the file you need to modify
quilt edit <file>
to modify the file
quilt refresh
to build the final patch file
Build the image
- sh build.sh
Build to the machine
sudo scp nand-ipq6018-apps.img root@192.168.1.1:/tmp/
Upgrade the machine
- Need to ssh to the machine with
sudo ssh root@192.168.1.1
sysupgrade /tmp/nand-ipq6018-apps.img
Please register or sign in to comment