Skip to content

Commit 764670b

Browse files
Merge pull request #44 from CreatorKit/dev
Merge dev to master
2 parents efb363b + 8f8acd6 commit 764670b

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,34 @@ Command | Description
1616
```$ ./scripts/feeds/install device-manager``` | Install only the package device-manager
1717

1818

19+
### Building CreatorKit packages using pre-compiled OpenWrt SDK for Ci40 (Marduk):
20+
21+
1. First download the latest SDK from https://downloads.creatordev.io/pistachio/marduk/ e.g. say OpenWrt-SDK-0.9.4-pistachio-marduk_gcc-5.2.0_musl-1.1.11.Linux-x86_64.tar.bz2 is the latest SDK available.
22+
2. Extract the SDK and go to the extracted folder.
23+
24+
tar -xjvf OpenWrt-SDK-0.9.4-pistachio-marduk_gcc-5.2.0_musl-1.1.11.Linux-x86_64.tar.bz2
25+
cd OpenWrt-SDK-0.9.4-pistachio-marduk_gcc-5.2.0_musl-1.1.11.Linux-x86_64.tar.bz2
26+
3. Check whether the feeds.conf.default file has an entry of https://github.com/CreatorKit/openwrt-ckt-feeds.git
27+
4. Update all the feeds and install the required one from openwrt-ckt-feeds. e.g. if you want to install just button-led-controller then
28+
29+
./scripts/feeds update -a
30+
./scripts/feeds install button-led-controller
31+
5. You can build just the specific package as
32+
33+
make package/button-led-controller/compile
34+
6. Once the package is built successfully, it's .ipk files are generated in the bin/pistachio directory.
35+
7. To copy the .ipk files on to the Ci40 board which is running the CreatorDev/openwrt image, you can either scp them or first copy them on a USB stick, connect the stick to the board, mount it and copy the files in /tmp folder.
36+
8. You can install the ipk by using
37+
38+
root@OpenWrt:/# opkg install /tmp/button-led-controller_HEAD-1_pistachio.ipk
39+
9. However, please note that if a package requires some dependent packages, then those need to be installed first, only then a package can be installed using opkg. Since SDK is a stripped down version, Package.gz is not getting generated and opkg update would fail.
40+
10. e.g. if you want change something in say "button-led-controller", then it would be good to install the default "button-led-controller" using opkg on the Vanila CreatorDev/Openwrt image first. i.e.
41+
42+
root@OpenWrt:/# opkg update
43+
root@OpenWrt:/# opkg install button-led-controller
44+
11. Now,to install your own version of "button-led-controller", you can remove the default version (it will keep intact the dependent packages though) and install your version.
45+
46+
root@OpenWrt:/# opkg remove
47+
root@OpenWrt:/# opkg install /tmp/button-led-controller_HEAD-1_pistachio.ipk
48+
You can follow this approach for building any other packages using OpenWrt SDK.
49+
12. For more details about how to use openwrt sdk please refer https://wiki.openwrt.org/doc/howto/obtain.firmware.sdk

0 commit comments

Comments
 (0)