-
Notifications
You must be signed in to change notification settings - Fork 13
Description
É interessante se tiver suporte para compilação usando SDK, de forma que a compilação se dá em menos tempo e gera pacotes compatíveis com os releases binários oficiais do openwrt.
Eu tentei fazer com o seguinte roteiro, mas tive problemas de dependência recursiva, e após ajustado manualmente com esse commit ( allgood@d977335 ), e após instalados os pacotes, não consegui rodar o teste.
obtain the sdk
add the feed
echo "src-git simetbox https://github.com/simetnicbr/simetbox-openwrt-feed.git" >> feeds.conf.default
install source packages
./scripts/feeds update -a
./scripts/feeds install -p simetbox -a
create signing key
./staging_dir/host/bin/usign -G -s ./key-build -p ./key-build.pub -c "SIMETBOX Build signing key"
build
make
Note: To speed up the build you can add -j5 if you have a quad-core CPU or -j9 if you have a octa-core CPU
build index
make package/index
publish
After the last command, folder ./bin/packages/<arch>/simetbox/ will have the built packages, it can be published on any URL like "https:///simetbox/packages//simetbox/"
use repository on an openwrt installation
1. get key fingerprint with
From SDK folder, use the command
./staging_dir/host/bin/usign -F -p ./key-build.pub
2. copy content of key-build.pub into device
obtain the content of key-build.pub with
cat key-build.pub
Paste it into the device with the fingerprint obtained on previous command, on folder /etc/opkg/keys/, example: /etc/opkg/keys/1301dcaaf2d17be3
3. install desired packages
On the device shell
opkg install simetbox-openwrt-luci