├── CMakeLists.txt ├── README.md ├── br-global-patches └── gstreamer1 │ └── 0001-gstreamer1-brbox-overlay.patch ├── build-image.sh ├── configs ├── baytrail-media │ ├── busybox.config │ ├── linux.config │ ├── qemu_x86_64_defconfig │ └── readme.txt ├── baytrail │ ├── busybox.config │ ├── linux.config │ └── qemu_x86_64_defconfig ├── bbb │ ├── beaglebone_defconfig │ ├── busybox.config │ └── linux.config ├── bbbmmc-rbox │ ├── beaglebone_defconfig │ ├── busybox.config │ ├── linux.config │ ├── readme.txt │ └── test-configs │ │ └── beaglebone_defconfig.bbbmmc.rbox+gstreamer ├── bbbmmc │ ├── beaglebone_defconfig │ ├── busybox.config │ └── linux.config ├── pc-x86-64-efi │ ├── busybox.config │ ├── disk_skeleton │ │ ├── etc │ │ │ ├── X11 │ │ │ │ ├── logo.png │ │ │ │ └── xinit │ │ │ │ │ └── xinitrc │ │ │ ├── avahi │ │ │ │ └── avahi-daemon.conf │ │ │ ├── init.d │ │ │ │ ├── S40network │ │ │ │ ├── S50dropbear │ │ │ │ ├── S51PublishHttpService │ │ │ │ └── S70BrBoxServices │ │ │ ├── network │ │ │ │ └── interfaces │ │ │ ├── profile │ │ │ ├── shadow │ │ │ └── usb_modeswitch.conf │ │ ├── mnt │ │ │ ├── settings │ │ │ │ └── empty.file.txt │ │ │ └── userdata │ │ │ │ └── empty.file.txt │ │ └── usr │ │ │ ├── sbin │ │ │ └── test-script │ │ │ └── share │ │ │ ├── avahi_services │ │ │ └── http.service.skeleton │ │ │ └── udhcpc │ │ │ └── default.script │ ├── linux.config │ ├── pc_x86_64_efi_defconfig │ └── post-image-efi-gpt.sh ├── raspi0-media │ ├── busybox.config │ ├── linux.config │ └── raspberrypi0_defconfig ├── raspi0 │ ├── README.md │ ├── busybox.config │ ├── linux.config │ ├── raspberrypi0_defconfig │ └── readme.txt ├── raspi1-base-linux-4-0 │ ├── busybox.config │ ├── linux.config │ ├── raspberrypi_defconfig │ └── readme.txt ├── raspi1-disptst │ ├── busybox.config │ ├── kernel-patches │ │ └── 001-enable-hdmi-i2c-dev-node.patch │ ├── linux.config │ └── raspberrypi_defconfig ├── raspi1-rbox-new │ └── raspberrypi_defconfig ├── raspi1-rbox │ ├── busybox.config │ ├── linux.config │ ├── raspberrypi_defconfig │ └── readme.txt ├── raspi1-smartsw │ ├── busybox.config │ ├── linux.config │ └── raspberrypi_defconfig ├── raspi1 │ ├── busybox.config │ ├── linux.config │ └── raspberrypi_defconfig ├── raspi2-media │ ├── busybox.config │ ├── linux.config │ └── raspberrypi2_defconfig ├── raspi2 │ ├── busybox.config │ ├── linux.config │ ├── raspberrypi2_defconfig │ └── readme.txt ├── raspi3-64-asterisk │ ├── busybox.config │ ├── disk_skeleton │ │ ├── etc │ │ │ ├── ifplugd │ │ │ │ └── ifplugd.action │ │ │ ├── init.d │ │ │ │ ├── S45ifplugd │ │ │ │ ├── S50asterisk │ │ │ │ ├── S50dropbear │ │ │ │ ├── S51PublishHttpService │ │ │ │ ├── S55asterisk_wdog │ │ │ │ └── S70BrBoxServices │ │ │ ├── network │ │ │ │ └── interfaces │ │ │ ├── profile │ │ │ └── shadow │ │ ├── mnt │ │ │ ├── settings │ │ │ │ └── empty.file.txt │ │ │ └── userdata │ │ │ │ └── empty.file.txt │ │ └── usr │ │ │ └── share │ │ │ ├── avahi_services │ │ │ └── http.service.skeleton │ │ │ └── udhcpc │ │ │ └── default.script │ └── raspberrypi3_64_defconfig ├── raspi3-64 │ ├── busybox.config │ ├── cmdline.txt │ ├── config.txt │ ├── disk_skeleton │ │ ├── etc │ │ │ ├── init.d │ │ │ │ ├── S50dropbear │ │ │ │ ├── S51PublishHttpService │ │ │ │ └── S70BrBoxServices │ │ │ ├── network │ │ │ │ └── interfaces │ │ │ ├── profile │ │ │ └── shadow │ │ ├── mnt │ │ │ ├── settings │ │ │ │ └── empty.file.txt │ │ │ └── userdata │ │ │ │ └── empty.file.txt │ │ └── usr │ │ │ └── share │ │ │ ├── avahi_services │ │ │ └── http.service.skeleton │ │ │ └── udhcpc │ │ │ └── default.script │ ├── genimage-raspberrypi3-64.cfg │ ├── linux.config │ └── raspberrypi3_64_defconfig ├── raspi3-qt5we │ ├── disk_skeleton │ │ └── etc │ │ │ └── shadow │ └── raspberrypi3_qt5we_defconfig └── raspi3 │ ├── busybox.config │ ├── linux.config │ └── raspberrypi3_defconfig ├── disk_skeleton ├── etc │ ├── X11 │ │ ├── logo.png │ │ └── xinit │ │ │ └── xinitrc │ ├── avahi │ │ └── avahi-daemon.conf │ ├── chrony.conf │ ├── init.d │ │ ├── S40network │ │ ├── S50dropbear │ │ ├── S51PublishHttpService │ │ └── S70BrBoxServices │ ├── network │ │ └── interfaces │ ├── profile │ ├── shadow │ └── usb_modeswitch.conf ├── mnt │ ├── settings │ │ └── empty.file.txt │ └── userdata │ │ └── empty.file.txt └── usr │ ├── sbin │ └── test-script │ └── share │ ├── avahi_services │ └── http.service.skeleton │ └── udhcpc │ └── default.script ├── howto ├── howto.ch341a.i2c.txt └── howto.devantech.usb.i2c.on.x86.linux.txt ├── packages ├── Config.in ├── brbox.mk ├── brbox_I210kmodAvbIgb │ ├── Config.in │ └── brbox_I210kmodAvbIgb.mk ├── brbox_actkbd │ ├── Config.in │ └── brbox_actkbd.mk ├── brbox_apisrv │ ├── Config.in │ └── brbox_apisrv.mk ├── brbox_baytrail_mount │ ├── Config.in │ └── brbox_baytrail_mount.mk ├── brbox_baytrail_update │ ├── Config.in │ └── brbox_baytrail_update.mk ├── brbox_bbb_mount │ ├── Config.in │ └── brbox_bbb_mount.mk ├── brbox_bbb_update │ ├── Config.in │ └── brbox_bbb_update.mk ├── brbox_bbbmmc_mount │ ├── Config.in │ └── brbox_bbbmmc_mount.mk ├── brbox_bbbmmc_update │ ├── Config.in │ └── brbox_bbbmmc_update.mk ├── brbox_bboxsms │ ├── Config.in │ └── brbox_bboxsms.mk ├── brbox_chandongle │ ├── Config.in │ └── brbox_chandongle.mk ├── brbox_defhostname │ ├── Config.in │ └── brbox_defhostname.mk ├── brbox_dispsrv │ ├── Config.in │ └── brbox_dispsrv.mk ├── brbox_eeprog │ ├── Config.in │ └── brbox_eeprog.mk ├── brbox_fbtestapp │ ├── Config.in │ └── brbox_fbtestapp.mk ├── brbox_fim │ ├── Config.in │ └── brbox_fim.mk ├── brbox_finddevtype │ ├── Config.in │ └── brbox_raspi2_mount.mk ├── brbox_flircutil │ ├── Config.in │ └── brbox_flircutil.mk ├── brbox_genintrdrv │ ├── Config.in │ ├── S59GenIntrDrvModule │ └── brbox_genintrdrv.mk ├── brbox_gphoto2 │ ├── 0001-fix-buildroot-compile-problem.patch │ ├── Config.in │ └── brbox_gphoto2.mk ├── brbox_gpiomgr │ ├── Config.in │ └── brbox_gpiomgr.mk ├── brbox_gstd │ ├── Config.in │ └── brbox_gstd.mk ├── brbox_gstdstartup │ ├── Config.in │ └── brbox_gstdstartup.mk ├── brbox_gstreamer_vaapi │ ├── Config.in │ └── brbox_gstreamer_vaapi.mk ├── brbox_hellovideo │ ├── Config.in │ └── brbox_hellovideo.mk ├── brbox_huawei_e173udevrule │ ├── Config.in │ └── brbox_huawei_e173udevrule.mk ├── brbox_i2csrv │ ├── Config.in │ └── brbox_i2csrv.mk ├── brbox_libAdCmn │ ├── Config.in │ └── brbox_libAdCmn.mk ├── brbox_libAdCmnOld │ ├── Config.in │ └── brbox_libAdCmnOld.mk ├── brbox_libAdDisp │ ├── Config.in │ └── brbox_libAdDisp.mk ├── brbox_libAdSttngs │ ├── Config.in │ └── brbox_libAdSttngs.mk ├── brbox_libIlClient │ ├── Config.in │ └── brbox_libIlClient.mk ├── brbox_libgammu │ ├── Config.in │ └── brbox_libgammu.mk ├── brbox_libgloox │ ├── Config.in │ └── brbox_libgloox.mk ├── brbox_libonion │ ├── 0001-disable-creation-of-test-tools.patch │ ├── Config.in │ └── brbox_libonion.mk ├── brbox_lightsense │ ├── Config.in │ └── brbox_lightsense.mk ├── brbox_lightyconfig │ ├── Config.in │ └── brbox_lightyconfig.mk ├── brbox_miscbins │ ├── Config.in │ └── brbox_miscbins.mk ├── brbox_mkimage │ ├── Config.in │ ├── brbox_mkimage.mk │ └── host-brbox_mkimage.mk ├── brbox_modbussrv │ ├── Config.in │ └── brbox_modbussrv.mk ├── brbox_mplaysrv │ ├── Config.in │ └── brbox_mplaysrv.mk ├── brbox_nrtp │ ├── Config.in │ └── brbox_nrtp.mk ├── brbox_pngview │ ├── Config.in │ └── brbox_pngview.mk ├── brbox_postbootup │ ├── Config.in │ └── brbox_postbootup.mk ├── brbox_preparebootdisk │ ├── Config.in │ └── brbox_preparebootdisk.mk ├── brbox_raspi2_mount │ ├── Config.in │ └── brbox_raspi2_mount.mk ├── brbox_raspi2_update │ ├── Config.in │ └── brbox_raspi2_update.mk ├── brbox_samplemedia │ ├── Config.in │ └── brbox_samplemedia.mk ├── brbox_smarteye │ ├── Config.in │ └── brbox_smarteye.mk ├── brbox_sysmgr │ ├── Config.in │ └── brbox_sysmgr.mk ├── brbox_tftpdconfig │ ├── Config.in │ └── brbox_tftpdconfig.mk ├── brbox_umtskeeper │ ├── Config.in │ └── brbox_umtskeeper.mk ├── brbox_x11startup │ ├── Config.in │ └── brbox_x11startup.mk ├── brbox_xmproxy │ ├── Config.in │ └── brbox_xmproxy.mk └── brbox_zbarimg │ ├── Config.in │ └── brbox_zbarimg.mk ├── prebuilt-bins └── raspi1 │ ├── CMakeLists.txt │ └── zbarimg ├── prepare-buildroot.sh ├── scripts ├── beagle-bootdisk.sh ├── beaglemmc-bootdisk.sh ├── brbox-mkuimg.sh ├── brbox-post-build.sh ├── brbox-raspi0-post-build.sh ├── brbox-raspi3-post-build.sh ├── create-signed-brbox-proj.sh ├── grub2-bootdisk.sh ├── raspi-bootdisk.sh ├── raspi0-media-bootdisk.sh ├── raspi3-bootdisk.sh └── sudo-grub2-bootdisk.sh └── sources ├── CMakeLists.txt ├── cmake ├── brbox-raspi1-arm.cmake ├── brbox-x86.cmake ├── lede-a5v11-mips.cmake └── toolchain-arm-backup.cmake ├── firmware ├── .usbconfig.h.kate-swp ├── attiny85-hid-rotary │ ├── Makefile │ ├── README.md │ ├── hexfiles │ │ └── attiny85-volume-control-hid.hex │ ├── images │ │ ├── connection-diagram.jpg │ │ ├── required-items.jpg │ │ └── volume-control-knob.jpg │ ├── main.c │ ├── readme.txt │ ├── usbconfig.h │ └── usbdrv │ │ ├── Changelog.txt │ │ ├── CommercialLicense.txt │ │ ├── License.txt │ │ ├── Readme.txt │ │ ├── USB-ID-FAQ.txt │ │ ├── USB-IDs-for-free.txt │ │ ├── asmcommon.inc │ │ ├── oddebug.c │ │ ├── oddebug.h │ │ ├── osccal.h │ │ ├── usbconfig-prototype.h │ │ ├── usbdrv.c │ │ ├── usbdrv.h │ │ ├── usbdrvasm.S │ │ ├── usbdrvasm.asm │ │ ├── usbdrvasm12.inc │ │ ├── usbdrvasm128.inc │ │ ├── usbdrvasm15.inc │ │ ├── usbdrvasm16.inc │ │ ├── usbdrvasm165.inc │ │ ├── usbdrvasm18-crc.inc │ │ ├── usbdrvasm20.inc │ │ └── usbportability.h ├── attiny85-hid │ ├── Makefile │ ├── main.c │ ├── readme.txt │ ├── usbconfig.h │ └── usbdrv │ │ ├── Changelog.txt │ │ ├── CommercialLicense.txt │ │ ├── License.txt │ │ ├── Readme.txt │ │ ├── USB-ID-FAQ.txt │ │ ├── USB-IDs-for-free.txt │ │ ├── asmcommon.inc │ │ ├── oddebug.c │ │ ├── oddebug.h │ │ ├── osccal.h │ │ ├── usbconfig-prototype.h │ │ ├── usbdrv.c │ │ ├── usbdrv.h │ │ ├── usbdrvasm.S │ │ ├── usbdrvasm.asm │ │ ├── usbdrvasm12.inc │ │ ├── usbdrvasm128.inc │ │ ├── usbdrvasm15.inc │ │ ├── usbdrvasm16.inc │ │ ├── usbdrvasm165.inc │ │ ├── usbdrvasm18-crc.inc │ │ ├── usbdrvasm20.inc │ │ └── usbportability.h ├── attiny85-i2c-tiny-usb │ ├── i2c-tiny-usb-fmw.hex │ └── readme.txt ├── binaries │ ├── digispark-attiny85-i2c-tiny-usb.hex │ └── digispark-attiny85-micronucleus.hex ├── micronucleus-cmdline │ ├── Makefile │ ├── littleWire_util.c │ ├── littleWire_util.h │ ├── micronucleus │ ├── micronucleus.c │ ├── micronucleus_lib.c │ ├── micronucleus_lib.h │ └── readme.txt └── mx-usb-isp │ ├── ATmega88.hex │ ├── firmware.hex │ ├── i2c_tiny_usb.hex │ ├── progisp1.72.rar │ ├── programmer-screenshot.png │ └── readme.txt ├── kmods ├── CMakeLists.txt ├── cmnsrc │ ├── chain.c │ ├── chain.h │ ├── sl_chain.c │ └── sl_chain.h ├── genintrdrv │ ├── CMakeLists.txt │ ├── Kbuild │ ├── Makefile │ ├── include │ │ └── linux │ │ │ └── genintrdrv.h │ ├── kmod │ │ ├── chain.c │ │ ├── chain.h │ │ ├── genintrdrv.c │ │ ├── sl_chain.c │ │ └── sl_chain.h │ ├── kmodclt │ │ ├── CMakeLists.txt │ │ └── src │ │ │ ├── KmodCltCmdline.cpp │ │ │ ├── KmodCltCmdline.h │ │ │ └── main.cpp │ └── readme.txt ├── i210-igb-avb │ ├── LICENSE │ ├── Makefile │ ├── README │ ├── e1000_82575.c │ ├── e1000_82575.h │ ├── e1000_api.c │ ├── e1000_api.h │ ├── e1000_defines.h │ ├── e1000_hw.h │ ├── e1000_i210.c │ ├── e1000_i210.h │ ├── e1000_mac.c │ ├── e1000_mac.h │ ├── e1000_manage.c │ ├── e1000_manage.h │ ├── e1000_mbx.c │ ├── e1000_mbx.h │ ├── e1000_nvm.c │ ├── e1000_nvm.h │ ├── e1000_osdep.h │ ├── e1000_phy.c │ ├── e1000_phy.h │ ├── e1000_regs.h │ ├── igb.h │ ├── igb_avb.7 │ ├── igb_debugfs.c │ ├── igb_ethtool.c │ ├── igb_hwmon.c │ ├── igb_main.c │ ├── igb_param.c │ ├── igb_procfs.c │ ├── igb_ptp.c │ ├── igb_regtest.h │ ├── igb_vmdq.c │ ├── igb_vmdq.h │ ├── kcompat.c │ ├── kcompat.h │ ├── kcompat_ethtool.c │ ├── pci.updates │ └── startup.sh ├── i2c-stub │ ├── Kbuild │ ├── Makefile │ ├── kmod │ │ └── i2c-stub.c │ └── readme.txt ├── i2c-tiny-usb │ ├── Makefile │ └── kmod │ │ └── i2c-tiny-usb.c └── usb-iss │ ├── Kbuild │ ├── LICENSE │ ├── Makefile │ ├── README │ └── kmod │ └── i2c-devantech-iss.c ├── lib ├── CMakeLists.txt ├── lib-adav-old │ ├── .cproject │ ├── .project │ ├── CMakeLists.txt │ ├── FindJSON.cmake │ ├── include │ │ ├── ADCmdlineHelper.hpp │ │ ├── ADCmnCltCmdProcessor.hpp │ │ ├── ADCmnDevTypes.h │ │ ├── ADCmnPortList.h │ │ ├── ADCmnStringProcessor.hpp │ │ ├── ADCommon.hpp │ │ ├── ADEvntMgr.hpp │ │ ├── ADEvntNotifier.hpp │ │ ├── ADFpgaMem.hpp │ │ ├── ADGenericChain.hpp │ │ ├── ADJsonChecker.hpp │ │ ├── ADJsonRpcClient.hpp │ │ ├── ADJsonRpcMapper.hpp │ │ ├── ADJsonRpcMgr.hpp │ │ ├── ADJsonRpcProxy.hpp │ │ ├── ADNetClient.hpp │ │ ├── ADNetServer.hpp │ │ ├── ADRuntimeMinCounter.hpp │ │ ├── ADSerial.hpp │ │ ├── ADSerialProto.hpp │ │ ├── ADSettings.hpp │ │ ├── ADSonOffHttpClient.hpp │ │ ├── ADSysInfo.hpp │ │ ├── ADTaskWorker.hpp │ │ ├── ADThread.hpp │ │ ├── ADThreadedSockClient.hpp │ │ ├── ADTimer.hpp │ │ ├── BitBang_I2C.h │ │ ├── DisplayDevice.hpp │ │ ├── I2CBusAccess.h │ │ ├── I2CDS3231.hpp │ │ ├── I2CDualPcfLcd.hpp │ │ ├── I2CGroveRgbLcd.hpp │ │ ├── I2CPcfLcd.hpp │ │ ├── I2CSsd1306.hpp │ │ ├── I2CTAOS3414Reg.h │ │ ├── I2CTAOS3414Sensor.hpp │ │ ├── JsonCmnDef.h │ │ ├── LightSensor.hpp │ │ ├── RTCDevice.hpp │ │ ├── glcdfont.h │ │ └── ss_oled.h │ └── src │ │ ├── ADCmdlineHelper.cpp │ │ ├── ADCmnCltCmdProcessor.cpp │ │ ├── ADCmnStringProcessor.cpp │ │ ├── ADEvntMgr.cpp │ │ ├── ADEvntNotifier.cpp │ │ ├── ADFpgaMem.cpp │ │ ├── ADGenericChain.cpp │ │ ├── ADJsonChecker.cpp │ │ ├── ADJsonRpcClient.cpp │ │ ├── ADJsonRpcMapper.cpp │ │ ├── ADJsonRpcMgr.cpp │ │ ├── ADJsonRpcProxy.cpp │ │ ├── ADNetClient.cpp │ │ ├── ADNetServer.cpp │ │ ├── ADRuntimeMinCounter.cpp │ │ ├── ADSerial.cpp │ │ ├── ADSerialProto.cpp │ │ ├── ADSettings.cpp │ │ ├── ADSonOffHttpClient.cpp │ │ ├── ADSysInfo.cpp │ │ ├── ADTaskWorker.cpp │ │ ├── ADThread.cpp │ │ ├── ADThreadedSockClient.cpp │ │ ├── ADTimer.cpp │ │ ├── BitBang_I2C.cpp │ │ ├── DisplayDevice.cpp │ │ ├── I2CBusAccess.cpp │ │ ├── I2CDS3231.cpp │ │ ├── I2CDualPcfLcd.cpp │ │ ├── I2CGroveRgbLcd.cpp │ │ ├── I2CPcfLcd.cpp │ │ ├── I2CSsd1306.cpp │ │ ├── I2CTAOS3414Sensor.cpp │ │ ├── LightSensor.cpp │ │ ├── RTCDevice.cpp │ │ └── ss_oled.cpp ├── lib-adav │ ├── CMakeLists.txt │ ├── cmake │ │ └── Modules │ │ │ └── FindJSON.cmake │ ├── include │ │ ├── ADCmnStringProcessor.h │ │ ├── ADCommon.h │ │ ├── ADFpgaMem.h │ │ ├── ADGenericChain.h │ │ ├── ADJsonChecker.h │ │ ├── ADJsonCmnDef.h │ │ ├── ADJsonRpcMapper.h │ │ ├── ADJsonRpcProxy.h │ │ ├── ADNetClient.h │ │ ├── ADNetServer.h │ │ ├── ADRuntimeMinCounter.h │ │ ├── ADSerial.h │ │ ├── ADSerialProto.h │ │ ├── ADSettings.h │ │ ├── ADSysInfo.h │ │ ├── ADTaskWorker.h │ │ ├── ADThread.h │ │ └── ADTimer.h │ └── src │ │ ├── ADCmnStringProcessor.cpp │ │ ├── ADFpgaMem.cpp │ │ ├── ADGenericChain.cpp │ │ ├── ADJsonRpcMapper.cpp │ │ ├── ADJsonRpcProxy.cpp │ │ ├── ADNetClient.cpp │ │ ├── ADNetServer.cpp │ │ ├── ADRuntimeMinCounter.cpp │ │ ├── ADSerial.cpp │ │ ├── ADSerialProto.cpp │ │ ├── ADSettings.cpp │ │ ├── ADSysInfo.cpp │ │ ├── ADTaskWorker.cpp │ │ ├── ADThread.cpp │ │ └── ADTimer.cpp ├── lib-display │ ├── CMakeLists.txt │ ├── include │ │ ├── Adafruit_GFX.h │ │ ├── ArduiPi_OLED.h │ │ ├── ArduiPi_OLED_lib.h │ │ ├── bcm2835.h │ │ └── i2c-dev.h │ ├── readme.txt │ └── src │ │ ├── Adafruit_GFX.cpp │ │ ├── ArduiPi_OLED.cpp │ │ ├── Wrapper.cpp │ │ ├── bcm2835.c │ │ └── glcdfont.c ├── lib-ilclient │ ├── CMakeLists.txt │ ├── include │ │ └── ilclient.h │ └── src │ │ ├── ilclient.c │ │ └── ilcore.c ├── lib-onion │ ├── .travis.yml │ ├── AGPL.txt │ ├── APACHE2.txt │ ├── CMakeLists.txt │ ├── CPackConfig.cmake │ ├── Doxyfile │ ├── GPLv2.txt │ ├── LICENSE.txt │ ├── README.md │ ├── debian │ │ ├── changelog │ │ ├── compat │ │ ├── control │ │ ├── copyright │ │ ├── docs │ │ ├── libonion-dev.install │ │ ├── libonion-examples.install │ │ ├── libonion-tools.install │ │ ├── libonion0.install │ │ └── rules │ ├── examples │ │ ├── CMakeLists.txt │ │ ├── basic │ │ │ ├── CMakeLists.txt │ │ │ ├── basic │ │ │ ├── basic.c │ │ │ ├── cert.key │ │ │ └── cert.pem │ │ ├── boehm-gc │ │ │ ├── CMakeLists.txt │ │ │ └── boehm-gc.c │ │ ├── cairo │ │ │ ├── CMakeLists.txt │ │ │ └── cairo.c │ │ ├── cpp │ │ │ ├── CMakeLists.txt │ │ │ └── main.cpp │ │ ├── fileserver │ │ │ ├── CMakeLists.txt │ │ │ └── fileserver.c │ │ ├── hello │ │ │ ├── CMakeLists.txt │ │ │ └── hello.c │ │ ├── interactive │ │ │ ├── CMakeLists.txt │ │ │ └── interactive.c │ │ ├── jsonrpc │ │ │ ├── CMakeLists.txt │ │ │ ├── jsonrpc.c │ │ │ └── test.py │ │ ├── longpoll │ │ │ ├── CMakeLists.txt │ │ │ └── longpoll.c │ │ ├── mandelbrot │ │ │ ├── CMakeLists.txt │ │ │ ├── mandel.html │ │ │ └── mandelbrot.cpp │ │ ├── multiport │ │ │ ├── CMakeLists.txt │ │ │ └── multiport.c │ │ ├── ofileserver │ │ │ ├── CMakeLists.txt │ │ │ ├── es.po │ │ │ ├── fileserver.c │ │ │ ├── fileserver.html │ │ │ ├── fr.po │ │ │ ├── messages.po │ │ │ ├── pl.po │ │ │ └── zh.po │ │ ├── oterm │ │ │ ├── CMakeLists.txt │ │ │ ├── README.rst │ │ │ ├── favicon.ico │ │ │ ├── jquery.js │ │ │ ├── oterm.c │ │ │ ├── oterm.service │ │ │ ├── oterm.socket │ │ │ ├── oterm_handler.c │ │ │ ├── oterm_handler.h │ │ │ └── static │ │ │ │ ├── coralbits.png │ │ │ │ ├── index.html │ │ │ │ ├── oterm.html │ │ │ │ ├── oterm.js │ │ │ │ ├── oterm_data.js │ │ │ │ ├── oterm_input.js │ │ │ │ ├── oterm_parser.js │ │ │ │ └── oterm_termfunctions.js │ │ ├── otop │ │ │ ├── CMakeLists.txt │ │ │ ├── index.html │ │ │ └── otop.c │ │ ├── post │ │ │ ├── CMakeLists.txt │ │ │ ├── Makefile │ │ │ └── post.c │ │ ├── userver │ │ │ ├── CMakeLists.txt │ │ │ └── userver.c │ │ └── websockets │ │ │ ├── CMakeLists.txt │ │ │ └── websockets.c │ ├── gentoo │ │ ├── metadata │ │ │ └── layout.conf │ │ └── www-servers │ │ │ └── libonion │ │ │ ├── Manifest │ │ │ ├── libonion-9999.ebuild │ │ │ └── metadata.xml │ ├── git-version-gen │ ├── src │ │ ├── CMakeLists.txt │ │ ├── bindings │ │ │ ├── CMakeLists.txt │ │ │ ├── cpp │ │ │ │ ├── CMakeLists.txt │ │ │ │ ├── dict.cpp │ │ │ │ ├── dict.hpp │ │ │ │ ├── exceptions.cpp │ │ │ │ ├── exceptions.hpp │ │ │ │ ├── extrahandlers.cpp │ │ │ │ ├── extrahandlers.hpp │ │ │ │ ├── handler.cpp │ │ │ │ ├── handler.hpp │ │ │ │ ├── onion.hpp │ │ │ │ ├── request.hpp │ │ │ │ ├── response.hpp │ │ │ │ ├── shortcuts.cpp │ │ │ │ ├── shortcuts.hpp │ │ │ │ ├── url.cpp │ │ │ │ └── url.hpp │ │ │ └── onion │ │ └── onion │ │ │ ├── CMakeLists.txt │ │ │ ├── GPLv2.txt │ │ │ ├── block.c │ │ │ ├── block.h │ │ │ ├── codecs.c │ │ │ ├── codecs.h │ │ │ ├── dict.c │ │ │ ├── dict.h │ │ │ ├── extras │ │ │ ├── CMakeLists.txt │ │ │ ├── jpeg.c │ │ │ ├── jpeg.h │ │ │ ├── png.c │ │ │ └── png.h │ │ │ ├── handler.c │ │ │ ├── handler.h │ │ │ ├── handlers │ │ │ ├── CMakeLists.txt │ │ │ ├── auth_pam.c │ │ │ ├── auth_pam.h │ │ │ ├── exportlocal.c │ │ │ ├── exportlocal.h │ │ │ ├── internal_status.c │ │ │ ├── internal_status.h │ │ │ ├── opack.c │ │ │ ├── opack.h │ │ │ ├── path.c │ │ │ ├── path.h │ │ │ ├── static.c │ │ │ ├── static.h │ │ │ ├── webdav.c │ │ │ └── webdav.h │ │ │ ├── http.c │ │ │ ├── http.h │ │ │ ├── https.c │ │ │ ├── https.h │ │ │ ├── listen_point.c │ │ │ ├── listen_point.h │ │ │ ├── log.c │ │ │ ├── log.h │ │ │ ├── low.c │ │ │ ├── low.h │ │ │ ├── mime.c │ │ │ ├── mime.h │ │ │ ├── onion.c │ │ │ ├── onion.h │ │ │ ├── poller.c │ │ │ ├── poller.h │ │ │ ├── poller_libev.c │ │ │ ├── poller_libevent.c │ │ │ ├── ptr_list.c │ │ │ ├── ptr_list.h │ │ │ ├── random-default.c │ │ │ ├── random-gnutls.c │ │ │ ├── random.h │ │ │ ├── request.c │ │ │ ├── request.h │ │ │ ├── request_parser.c │ │ │ ├── response.c │ │ │ ├── response.h │ │ │ ├── sessions.c │ │ │ ├── sessions.h │ │ │ ├── sessions_mem.c │ │ │ ├── sessions_mem.h │ │ │ ├── sessions_sqlite3.c │ │ │ ├── sessions_sqlite3.h │ │ │ ├── shortcuts.c │ │ │ ├── shortcuts.h │ │ │ ├── types.h │ │ │ ├── types_internal.h │ │ │ ├── url.c │ │ │ ├── url.h │ │ │ ├── websocket.c │ │ │ └── websocket.h │ ├── tests │ │ ├── .kdev_include_paths │ │ ├── 01-internal │ │ │ ├── 01-hash.c │ │ │ ├── 02-request.c │ │ │ ├── 03-response.c │ │ │ ├── 04-handler.c │ │ │ ├── 05-server.c │ │ │ ├── 06-onion.c │ │ │ ├── 07-codecs.c │ │ │ ├── 08-post.c │ │ │ ├── 09-block.c │ │ │ ├── 10-mime.c │ │ │ ├── 11-sessions.c │ │ │ ├── 12-cloexec.c │ │ │ ├── 13-otemplate.html │ │ │ ├── 13-otemplates.c │ │ │ ├── 14-websockets.c │ │ │ ├── 15-post-no-type.c │ │ │ ├── 16-url.c │ │ │ ├── 17-permissions.c │ │ │ ├── 18-listen_stop.c │ │ │ ├── 19-random.c │ │ │ ├── 20-session_sqlite3.c │ │ │ ├── CMakeLists.txt │ │ │ ├── buffer_listen_point.c │ │ │ ├── buffer_listen_point.h │ │ │ └── mycert.cfg │ │ ├── 02-fullserver │ │ │ ├── 01-userver.sh │ │ │ ├── 02-keepalive.sh │ │ │ ├── 03-recorded.sh │ │ │ ├── CMakeLists.txt │ │ │ ├── segfault-01.txt │ │ │ └── segfault-02.txt │ │ ├── 03-methods │ │ │ ├── 01-methods.c │ │ │ └── CMakeLists.txt │ │ ├── 04-prerecorded │ │ │ ├── 01-basic.tst │ │ │ ├── 02-post.tst │ │ │ ├── CMakeLists.txt │ │ │ ├── README.rst │ │ │ └── prerecorded.c │ │ ├── 05-sessions │ │ │ ├── CMakeLists.txt │ │ │ └── sessions.c │ │ ├── 07-otemplate │ │ │ └── 02-test.cpp │ │ ├── 07-tools │ │ │ ├── 01-otemplate.c │ │ │ ├── CMakeLists.txt │ │ │ ├── base.html │ │ │ ├── extended.html │ │ │ ├── external.html │ │ │ ├── test-assets.sh │ │ │ ├── test.html │ │ │ └── test_html.c │ │ ├── 08-cpp │ │ │ ├── 01-basic.cpp │ │ │ ├── 02-dict.cpp │ │ │ ├── 03-urls.cpp │ │ │ ├── 04-templates.cpp │ │ │ ├── 04-templates.html │ │ │ ├── 05-exportlocal.cpp │ │ │ └── CMakeLists.txt │ │ ├── 09-webdav │ │ │ ├── CMakeLists.txt │ │ │ └── wdserver.c │ │ ├── 11-style │ │ │ └── check_low.sh │ │ ├── CMakeLists.txt │ │ ├── auto.sh │ │ ├── ctest.h │ │ └── onion.ini │ ├── toolchain │ │ ├── arm.txt │ │ └── dmoreno.txt │ └── tools │ │ ├── CMakeLists.txt │ │ ├── common │ │ ├── updateassets.c │ │ └── updateassets.h │ │ ├── compilerunloop │ │ ├── CMakeLists.txt │ │ └── compilerunloop.sh │ │ ├── opack │ │ ├── CMakeLists.txt │ │ └── opack.c │ │ └── otemplate │ │ ├── CMakeLists.txt │ │ ├── README.rst │ │ ├── functions.c │ │ ├── functions.h │ │ ├── list.c │ │ ├── list.h │ │ ├── load.c │ │ ├── load.h │ │ ├── otemplate.c │ │ ├── parser.c │ │ ├── parser.h │ │ ├── tag_builtins.c │ │ ├── tags.c │ │ ├── tags.h │ │ ├── templatetags │ │ ├── CMakeLists.txt │ │ └── i18n.c │ │ ├── variables.c │ │ └── variables.h ├── lib-settings │ ├── CMakeLists.txt │ ├── include │ │ ├── settings.h │ │ └── strmap.h │ └── src │ │ ├── settings.cpp │ │ └── strmap.cpp ├── libstrophe │ ├── .gitignore │ ├── .travis.yml │ ├── AUTHORS │ ├── COPYING │ ├── ChangeLog │ ├── Doxyfile │ ├── GPL-LICENSE.txt │ ├── LICENSE.txt │ ├── MIT-LICENSE.txt │ ├── Makefile.am │ ├── NEWS │ ├── README │ ├── README.markdown │ ├── TODO │ ├── bootstrap.sh │ ├── build-android.sh │ ├── configure.ac │ ├── docs │ │ └── footer.html │ ├── examples │ │ ├── README.md │ │ ├── active.c │ │ ├── basic.c │ │ ├── bot.c │ │ ├── component.c │ │ ├── roster.c │ │ ├── uuid.c │ │ └── vcard.c │ ├── jni │ │ ├── Android.mk │ │ └── Application.mk │ ├── libstrophe.pc.in │ ├── rpm │ │ ├── README │ │ └── libstrophe.spec │ ├── src │ │ ├── auth.c │ │ ├── common.h │ │ ├── conn.c │ │ ├── crypto.c │ │ ├── ctx.c │ │ ├── event.c │ │ ├── handler.c │ │ ├── hash.c │ │ ├── hash.h │ │ ├── jid.c │ │ ├── md5.c │ │ ├── md5.h │ │ ├── oocontext.cpp │ │ ├── oostanza.cpp │ │ ├── ostypes.h │ │ ├── parser.h │ │ ├── parser_expat.c │ │ ├── parser_libxml2.c │ │ ├── rand.c │ │ ├── rand.h │ │ ├── resolver.c │ │ ├── resolver.h │ │ ├── sasl.c │ │ ├── sasl.h │ │ ├── scram.c │ │ ├── scram.h │ │ ├── sha1.c │ │ ├── sha1.h │ │ ├── snprintf.c │ │ ├── snprintf.h │ │ ├── sock.c │ │ ├── sock.h │ │ ├── stanza.c │ │ ├── tls.h │ │ ├── tls_dummy.c │ │ ├── tls_gnutls.c │ │ ├── tls_openssl.c │ │ ├── tls_schannel.c │ │ ├── util.c │ │ ├── util.h │ │ └── uuid.c │ ├── strophe.h │ ├── strophepp.h │ └── tests │ │ ├── check_parser.c │ │ ├── res_query_dump.c │ │ ├── test.c │ │ ├── test.h │ │ ├── test_base64.c │ │ ├── test_ctx.c │ │ ├── test_hash.c │ │ ├── test_jid.c │ │ ├── test_md5.c │ │ ├── test_rand.c │ │ ├── test_resolver.c │ │ ├── test_sasl.c │ │ ├── test_scram.c │ │ ├── test_sha1.c │ │ ├── test_snprintf.c │ │ ├── test_sock.c │ │ └── test_string.c └── readme.txt ├── misc_binaries ├── 1.png ├── 10.png ├── 2.png ├── 3.png ├── 4.png ├── 5.png ├── 6.png ├── 7.png ├── 8.png ├── 9.png ├── CMakeLists.txt ├── pattern-1.png ├── pattern-10.png ├── pattern-11.png ├── pattern-12.png ├── pattern-13.png ├── pattern-2.png ├── pattern-3.png ├── pattern-4.png ├── pattern-5.png ├── pattern-6.png ├── pattern-7.png ├── pattern-8.png └── pattern-9.png ├── patches └── bbb-linux-patches │ └── linux-0002-arm-Enable-bbb-dtsi-i2c2-i2c3.patch ├── sample-media ├── CMakeLists.txt ├── omx-key-config.txt └── sample-video.mkv ├── scripts ├── baytrail │ └── boot │ │ ├── CMakeLists.txt │ │ ├── S02MountSettings │ │ └── fstab ├── baytrail_update │ ├── CMakeLists.txt │ ├── S02MountSettings │ ├── baytrail-brdskmgr │ ├── baytrail-update │ └── fstab ├── bbb │ ├── boot │ │ ├── CMakeLists.txt │ │ ├── S02MountSettings │ │ ├── fstab │ │ └── uEnv.txt │ └── update │ │ ├── CMakeLists.txt │ │ ├── S02MountSettings │ │ ├── bbb-brdskmgr │ │ ├── bbb-update │ │ └── fstab ├── bbbmmc │ ├── boot │ │ ├── CMakeLists.txt │ │ ├── S02MountSettings │ │ ├── fstab │ │ └── uEnv.txt │ └── update │ │ ├── CMakeLists.txt │ │ ├── S02MountSettings │ │ ├── bbbmmc-brdskmgr │ │ ├── bbbmmc-update │ │ └── fstab ├── cmn │ ├── X11-startup-script │ │ ├── CMakeLists.txt │ │ ├── S25StartX11 │ │ ├── draw-desktop-info.sh │ │ ├── init-functions │ │ └── vars.sh │ ├── default-hostname │ │ ├── CMakeLists.txt │ │ ├── S02DefaultHostname │ │ └── default-hostname │ ├── find-devtype │ │ ├── CMakeLists.txt │ │ ├── S01FindDevType │ │ ├── WrtFindDevType │ │ └── find-devtype │ ├── gstd-startup-script │ │ ├── CMakeLists.txt │ │ ├── S26StartGstd │ │ ├── capture-and-stream-unicast.sh │ │ ├── play-multicast-stream.sh │ │ ├── play-unicast-stream.sh │ │ ├── play-uri.sh │ │ ├── recv-udp-pattern.sh │ │ ├── send-udp-pattern.sh │ │ └── stop-pipeline.sh │ ├── huawei-E173-udev-rule │ │ ├── 41-usb_modeswitch.rules │ │ ├── CMakeLists.txt │ │ └── S53USBModeSwitch │ ├── lighty-config │ │ ├── CMakeLists.txt │ │ ├── S99PostLightyConfig │ │ └── dirlisting.conf │ ├── prepare-boot-disk │ │ ├── CMakeLists.txt │ │ ├── prepare-boot-disk-intel-usb.sh │ │ ├── prepare-boot-disk-minimal.sh │ │ └── prepare-boot-disk.sh │ ├── tftpd-config │ │ ├── CMakeLists.txt │ │ └── S80tftpd-hpa │ └── umts-keeper │ │ ├── CMakeLists.txt │ │ ├── S55UmtsKeeper │ │ ├── favicon.ico │ │ ├── robots.txt │ │ ├── sakis3g │ │ ├── style.css │ │ └── umtskeeper ├── custom-startups │ └── rc.local ├── postbootup │ ├── CMakeLists.txt │ ├── S79ZPostBootInit │ └── rc.local └── raspi2 │ ├── boot │ ├── CMakeLists.txt │ ├── S02MountSettings │ ├── cmdline.txt │ ├── config.txt │ └── fstab │ └── update │ ├── CMakeLists.txt │ ├── S02MountSettings │ ├── fstab │ ├── raspi2-brdskmgr │ └── raspi2-update ├── services ├── CMakeLists.txt ├── apisrv │ ├── CMakeLists.txt │ ├── clt │ │ └── .empty │ ├── include │ │ └── ApisrvJsonDef.h │ └── srv │ │ ├── ApisrvStartupScr │ │ ├── CMakeLists.txt │ │ ├── WrtApisrvStartupScr │ │ ├── src │ │ ├── ApiRpc.cpp │ │ ├── ApiRpc.h │ │ ├── MyCmdline.cpp │ │ ├── MyCmdline.h │ │ ├── SdapiHttpHandler.cpp │ │ ├── SdapiHttpHandler.h │ │ ├── main.cpp │ │ ├── route.cpp │ │ └── route.h │ │ ├── test1.json │ │ └── test2.json ├── bboxsms │ ├── CMakeLists.txt │ ├── clt │ │ ├── CMakeLists.txt │ │ └── src │ │ │ ├── BboxsmsCltCmdline.cpp │ │ │ ├── BboxsmsCltCmdline.h │ │ │ └── main.cpp │ ├── include │ │ └── BboxsmsJsonDef.h │ └── srv │ │ ├── BboxsmsStartupScr │ │ ├── CMakeLists.txt │ │ ├── WrtBboxsmsStartupScr │ │ └── src │ │ ├── MyCmdline.cpp │ │ ├── MyCmdline.h │ │ ├── SmsMgr.cpp │ │ ├── SmsMgr.h │ │ ├── SmsRpc.cpp │ │ ├── SmsRpc.h │ │ └── main.cpp ├── dispsrv │ ├── CMakeLists.txt │ ├── clt │ │ ├── CMakeLists.txt │ │ └── src │ │ │ ├── DispCltCmdline.cpp │ │ │ ├── DispCltCmdline.h │ │ │ └── main.cpp │ ├── include │ │ └── DispsrvJsonDef.h │ └── srv │ │ ├── CMakeLists.txt │ │ ├── DispsrvStartupScr │ │ ├── WrtDispsrvStartupScr │ │ └── src │ │ ├── DispAccess.cpp │ │ ├── DispAccess.h │ │ ├── DispCtrlRpc.cpp │ │ ├── DispCtrlRpc.h │ │ ├── DispScanner.cpp │ │ ├── DispScanner.h │ │ ├── MyCmdline.cpp │ │ ├── MyCmdline.h │ │ └── main.cpp ├── gpioctl │ ├── CMakeLists.txt │ ├── clt │ │ ├── CMakeLists.txt │ │ └── src │ │ │ ├── GpioCltCmdline.cpp │ │ │ ├── GpioCltCmdline.h │ │ │ └── main.cpp │ ├── include │ │ └── GpioctlJsonDef.h │ ├── readme.txt │ └── srv │ │ ├── CMakeLists.txt │ │ ├── GpioctlStartupScr │ │ └── src │ │ ├── GpioCtrlRpc.cpp │ │ ├── GpioCtrlRpc.h │ │ ├── MyCmdline.cpp │ │ ├── MyCmdline.h │ │ ├── RaspiIo.cpp │ │ ├── RaspiIo.h │ │ └── main.cpp ├── hotwire │ ├── CMakeLists.txt │ ├── clt │ │ ├── CMakeLists.txt │ │ └── src │ │ │ ├── HotwireCltCmdline.cpp │ │ │ ├── HotwireCltCmdline.h │ │ │ └── main.cpp │ ├── include │ │ └── HotwireJsonDef.h │ ├── readme.txt │ └── srv │ │ ├── CMakeLists.txt │ │ ├── MplaySrvStartupScr │ │ ├── gst-loop.sh │ │ ├── omx-loop.sh │ │ └── src │ │ ├── HotwireRpc.cpp │ │ ├── HotwireRpc.h │ │ ├── MPlayRaspi.cpp │ │ ├── MPlayRaspi.h │ │ ├── MPlayX86.cpp │ │ ├── MPlayX86.h │ │ ├── MPlayer.cpp │ │ ├── MPlayer.h │ │ ├── MyCmdline.cpp │ │ ├── MyCmdline.h │ │ └── main.cpp ├── i2csrv │ ├── CMakeLists.txt │ ├── README.md │ ├── clt │ │ ├── CMakeLists.txt │ │ └── src │ │ │ ├── I2CCltCmdline.cpp │ │ │ ├── I2CCltCmdline.h │ │ │ └── main.cpp │ ├── include │ │ └── I2CSrvJsonDef.h │ └── srv │ │ ├── CMakeLists.txt │ │ ├── I2CSrvStartupScr │ │ └── src │ │ ├── CmnRpc.cpp │ │ ├── CmnRpc.h │ │ ├── MyCmdline.cpp │ │ ├── MyCmdline.h │ │ ├── Pcf8574Rpc.cpp │ │ ├── Pcf8574Rpc.h │ │ └── main.cpp ├── lightsense │ ├── CMakeLists.txt │ ├── clt │ │ ├── CMakeLists.txt │ │ └── src │ │ │ ├── CltCmdline.cpp │ │ │ ├── CltCmdline.h │ │ │ └── main.cpp │ ├── include │ │ └── LightsenseJsonDef.h │ └── srv │ │ ├── CMakeLists.txt │ │ ├── LightSenseSrvStartupScr │ │ ├── WrtLightSenseSrvStartupScr │ │ └── src │ │ ├── MyCmdline.cpp │ │ ├── MyCmdline.h │ │ ├── SeaBreezeAccess.cpp │ │ ├── SeaBreezeAccess.h │ │ ├── SensorCtrlRpc.cpp │ │ ├── SensorCtrlRpc.h │ │ └── main.cpp ├── modbussrv │ ├── CMakeLists.txt │ ├── clt │ │ ├── CMakeLists.txt │ │ └── src │ │ │ ├── CltCmdline.cpp │ │ │ ├── CltCmdline.h │ │ │ └── main.cpp │ ├── include │ │ └── ModBusSrvJsonDef.h │ └── srv │ │ ├── CMakeLists.txt │ │ ├── FindModbus.cmake │ │ ├── ModbusSrvStartupScr │ │ ├── WrtModbusSrvStartupScr │ │ └── src │ │ ├── MODBusAccess.cpp │ │ ├── MODBusAccess.h │ │ ├── ModbusRpc.cpp │ │ ├── ModbusRpc.h │ │ ├── MyCmdline.cpp │ │ ├── MyCmdline.h │ │ ├── main.cpp │ │ └── tmp │ │ ├── CmnRpc.cpp │ │ ├── CmnRpc.h │ │ ├── Pcf8574Rpc.cpp │ │ └── Pcf8574Rpc.h ├── monitsrv │ ├── CMakeLists.txt │ ├── clt │ │ ├── CMakeLists.txt │ │ └── src │ │ │ ├── CltCmdline.cpp │ │ │ ├── CltCmdline.h │ │ │ └── main.cpp │ ├── include │ │ └── MonitSrvJsonDef.h │ └── srv │ │ ├── CMakeLists.txt │ │ ├── MonitSrvStartupScr │ │ └── src │ │ ├── MyCmdline.cpp │ │ ├── MyCmdline.h │ │ └── main.cpp ├── smarteye │ ├── CMakeLists.txt │ ├── clt │ │ ├── CMakeLists.txt │ │ └── src │ │ │ ├── SmarteyeCltCmdline.cpp │ │ │ ├── SmarteyeCltCmdline.h │ │ │ └── main.cpp │ ├── include │ │ └── SmarteyeJsonDef.h │ └── srv │ │ ├── CMakeLists.txt │ │ ├── SmarteyeStartupScr │ │ └── src │ │ ├── ImgIdentify.cpp │ │ ├── ImgIdentify.h │ │ ├── MyCmdline.cpp │ │ ├── MyCmdline.h │ │ ├── SmarteyeRpc.cpp │ │ ├── SmarteyeRpc.h │ │ └── main.cpp ├── sysmgr │ ├── CMakeLists.txt │ ├── clt │ │ ├── CMakeLists.txt │ │ └── src │ │ │ ├── SysmgrCltCmdline.cpp │ │ │ ├── SysmgrCltCmdline.h │ │ │ └── main.cpp │ ├── include │ │ └── SysmgrJsonDef.h │ └── srv │ │ ├── CMakeLists.txt │ │ ├── SysmgrStartupScr │ │ ├── WrtSysmgrStartupScr │ │ ├── src │ │ ├── CmnRpc.cpp │ │ ├── CmnRpc.h │ │ ├── DevIdent.cpp │ │ ├── DevIdent.h │ │ ├── DevIdentA5V11.cpp │ │ ├── DevIdentA5V11.h │ │ ├── DevIdentGlMt300nv2.cpp │ │ ├── DevIdentGlMt300nv2.h │ │ ├── DevIdentNexx3020.cpp │ │ ├── DevIdentNexx3020.h │ │ ├── DevIdentRaspiAZero.cpp │ │ ├── DevIdentRaspiAZero.h │ │ ├── DispCtrlRpc.cpp │ │ ├── DispCtrlRpc.h │ │ ├── EventHandler.cpp │ │ ├── EventHandler.h │ │ ├── EventMonitor.cpp │ │ ├── EventMonitor.h │ │ ├── LogHandler.cpp │ │ ├── LogHandler.h │ │ ├── MyCmdline.cpp │ │ ├── MyCmdline.h │ │ ├── NetRpc.cpp │ │ ├── NetRpc.h │ │ ├── SysRpc.cpp │ │ ├── SysRpc.h │ │ └── main.cpp │ │ └── sysmgr.service └── xmproxy │ ├── CMakeLists.txt │ ├── clt │ ├── CMakeLists.txt │ └── src │ │ ├── XmproxyCltCmdline.cpp │ │ ├── XmproxyCltCmdline.h │ │ └── main.cpp │ ├── include │ └── XmproxyJsonDef.h │ └── srv │ ├── CMakeLists.txt │ ├── WrtXmproxyStartupScr │ ├── XmproxyStartupScr │ ├── src │ ├── ADXmppProxy.cpp │ ├── ADXmppProxy.hpp │ ├── CXmppProxy.cpp │ ├── CXmppProxy.hpp │ ├── EvntHandler.cpp │ ├── EvntHandler.h │ ├── MyCmdline.cpp │ ├── MyCmdline.h │ ├── XmppMgr.cpp │ ├── XmppMgr.h │ ├── XmppRpc.cpp │ ├── XmppRpc.h │ └── main.cpp │ └── xmproxysrv.service ├── testing ├── scripts │ └── operation.sh └── simplified-gst-pipeline.sh └── utils ├── CMakeLists.txt ├── brbox-mkimage ├── CMakeLists.txt ├── Makefile ├── crc32.c ├── image.h ├── mkimage.c ├── zconf.h └── zlib.h ├── eeprog-0.7.6-tear12 ├── 24cXX.c ├── 24cXX.h ├── ChangeLog ├── Makefile ├── README ├── WARNING ├── eeprog.c └── i2c-dev.h ├── eeprog-0.7.6 ├── 24cXX.c ├── 24cXX.h ├── CMakeLists.txt ├── ChangeLog ├── Makefile ├── README ├── WARNING ├── eeprog.c └── i2c-dev.h ├── fb-test-app ├── .gitignore ├── COPYING ├── Makefile ├── common.c ├── common.h ├── fb-string.c ├── fb-test.c ├── font_8x8.c ├── offset.c ├── perf.c └── rect.c ├── hello_video ├── CMakeLists.txt └── src │ └── video.c ├── i2c-oled ├── Android.h ├── Inspire.h ├── Q_NPN.h ├── bb_oled.c └── box128x64.h ├── lan9512-blink ├── Makefile ├── README └── llctl.c ├── libtester ├── CMakeLists.txt └── src │ └── main.cpp ├── mips-update ├── CMakeLists.txt └── mips-update.sh ├── playloop ├── playloop.c └── readme.txt ├── pngview ├── Makefile ├── README.md ├── common │ ├── README.md │ ├── backgroundLayer.c │ ├── backgroundLayer.h │ ├── bits.h │ ├── element_change.h │ ├── font.c │ ├── font.h │ ├── hsv2rgb.c │ ├── hsv2rgb.h │ ├── image.c │ ├── image.h │ ├── imageGraphics.c │ ├── imageGraphics.h │ ├── imageKey.c │ ├── imageKey.h │ ├── imageLayer.c │ ├── imageLayer.h │ ├── imagePalette.c │ ├── imagePalette.h │ ├── key.c │ ├── key.h │ ├── loadpng.c │ ├── loadpng.h │ ├── savepng.c │ ├── savepng.h │ ├── scrollingLayer.c │ ├── scrollingLayer.h │ ├── spriteLayer.c │ └── spriteLayer.h └── pngview.c ├── scripts └── testeeprom.sh └── usb-relay-ctl └── usb-relay-ctl.c /CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 2.8.9) 2 | set(PROJECT_NAME BrBox) 3 | project(${PROJECT_NAME}) 4 | add_subdirectory(sources) 5 | -------------------------------------------------------------------------------- /configs/baytrail-media/readme.txt: -------------------------------------------------------------------------------- 1 | last working config: 2 | cd /home/adav/sandbox/;svn co https://github.com/hackboxguy/brbox;cd brbox/trunk;ln -s /home/adav/dl dl;./prepare-buildroot.sh -v 2019.11.1 ;time ./build-image.sh -o /mnt/buildramdisk -v 00.01 -s -b baytrail-media 3 | -------------------------------------------------------------------------------- /configs/bbbmmc-rbox/readme.txt: -------------------------------------------------------------------------------- 1 | how to create bootable sdcard image and upgrade image for bbbmmc-rbox: 2 | cd ~/sandbox/;svn co https://github.com/hackboxguy/brbox;cd brbox/trunk;ln -s ~/dl dl;./prepare-buildroot.sh -v 2016.08-rc1 ;time ./build-image.sh -o /mnt/buildramdisk -v 00.01 -s -b bbbmmc-rbox 3 | -------------------------------------------------------------------------------- /configs/pc-x86-64-efi/disk_skeleton/etc/X11/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/configs/pc-x86-64-efi/disk_skeleton/etc/X11/logo.png -------------------------------------------------------------------------------- /configs/pc-x86-64-efi/disk_skeleton/etc/init.d/S40network: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Start the network.... 4 | # 5 | 6 | # Debian ifupdown needs the /run/network lock directory 7 | mkdir -p /run/network 8 | 9 | case "$1" in 10 | start) 11 | echo "Starting network..." 12 | sleep 1 #needed to get networking working on raspi2 13 | /sbin/ifup -a 14 | ;; 15 | stop) 16 | echo -n "Stopping network..." 17 | /sbin/ifdown -a 18 | ;; 19 | restart|reload) 20 | "$0" stop 21 | "$0" start 22 | ;; 23 | *) 24 | echo "Usage: $0 {start|stop|restart}" 25 | exit 1 26 | esac 27 | 28 | exit $? 29 | 30 | -------------------------------------------------------------------------------- /configs/pc-x86-64-efi/disk_skeleton/etc/network/interfaces: -------------------------------------------------------------------------------- 1 | # Configure Loopback 2 | auto lo 3 | iface lo inet loopback 4 | 5 | auto eth0 6 | #allow-hotplug eth0 7 | iface eth0 inet dhcp 8 | #iface eth0 inet manual 9 | # up ifconfig $IFACE 0.0.0.0 up 10 | # down ifconfig $IFACE down 11 | 12 | auto eth1 13 | #allow-hotplug eth1 14 | iface eth1 inet dhcp 15 | #iface eth1 inet manual 16 | # up ifconfig $IFACE 0.0.0.0 up 17 | # down ifconfig $IFACE down 18 | 19 | -------------------------------------------------------------------------------- /configs/pc-x86-64-efi/disk_skeleton/etc/shadow: -------------------------------------------------------------------------------- 1 | root:kw60Ifsqg/Pb.:16529:0:99999:7::: 2 | bin:*:10933:0:99999:7::: 3 | daemon:*:10933:0:99999:7::: 4 | sync:*:10933:0:99999:7::: 5 | halt:*:10933:0:99999:7::: 6 | uucp:*:10933:0:99999:7::: 7 | operator:*:10933:0:99999:7::: 8 | ftp:*:10933:0:99999:7::: 9 | nobody:*:10933:0:99999:7::: 10 | -------------------------------------------------------------------------------- /configs/pc-x86-64-efi/disk_skeleton/mnt/settings/empty.file.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/configs/pc-x86-64-efi/disk_skeleton/mnt/settings/empty.file.txt -------------------------------------------------------------------------------- /configs/pc-x86-64-efi/disk_skeleton/mnt/userdata/empty.file.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/configs/pc-x86-64-efi/disk_skeleton/mnt/userdata/empty.file.txt -------------------------------------------------------------------------------- /configs/pc-x86-64-efi/disk_skeleton/usr/sbin/test-script: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | echo "this is just a dummy test script" 3 | -------------------------------------------------------------------------------- /configs/raspi0/readme.txt: -------------------------------------------------------------------------------- 1 | cd /home/adav/sandbox/;svn co https://github.com/hackboxguy/brbox;cd brbox/trunk;ln -s /home/adav/dl dl;./prepare-buildroot.sh -v 2016.08-rc2 2 | cd /home/adav/sandbox/brbox/trunk 3 | cp configs/raspi0/raspberrypi0_defconfig buildroot/configs/ 4 | cp configs/raspi0/busybox.config buildroot/package/busybox/ 5 | cd buildroot 6 | make O=/mnt/buildramdisk/00.01 raspberrypi0_defconfig BRBOX_RELVERSION=00.01 BRBOX_BUILDNUM=12345 7 | make O=/mnt/buildramdisk/00.01 menuconfig BRBOX_RELVERSION=00.01 BRBOX_BUILDNUM=12345 8 | sudo dd if=/mnt/buildramdisk/00.01/images/sdcard.img of=/dev/sdX 9 | -------------------------------------------------------------------------------- /configs/raspi1-base-linux-4-0/readme.txt: -------------------------------------------------------------------------------- 1 | this config is based on linux kernel 4.0.6(default raspi config of 2015.08.1) 2 | it is showing an error when "update -u /tmp/uBrBox.uimg" is triggered, error is "targ: invalid option -- 'J'"(to be fixed) 3 | -------------------------------------------------------------------------------- /configs/raspi1-rbox/readme.txt: -------------------------------------------------------------------------------- 1 | this config is based on linux kernel 4.0.6(default raspi config of 2015.08.1) 2 | it is showing an error when "update -u /tmp/uBrBox.uimg" is triggered, error is "targ: invalid option -- 'J'"(to be fixed) 3 | -------------------------------------------------------------------------------- /configs/raspi3-64-asterisk/disk_skeleton/etc/init.d/S50asterisk: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | IFACE=eth0 4 | IF_WAIT_DELAY=10 5 | 6 | asterisk_start() 7 | { 8 | echo "Starting Asterisk" 9 | asterisk 10 | } 11 | 12 | asterisk_stop() 13 | { 14 | asterisk -rx 'core stop now' 15 | sleep 2 16 | if [ -r /var/run/asterisk/asterisk.pid ]; then 17 | # seems like asterisk didn't stop 18 | kill $(cat /var/run/asterisk/asterisk.pid) 19 | sleep 2 20 | fi 21 | } 22 | 23 | case "$1" in 24 | start) 25 | asterisk_start 26 | ;; 27 | stop) 28 | asterisk_stop 29 | ;; 30 | restart) 31 | asterisk_stop 32 | asterisk_start 33 | ;; 34 | *) 35 | echo "usage $0 {start|stop|restart}" 36 | ;; 37 | esac 38 | 39 | exit 0 40 | -------------------------------------------------------------------------------- /configs/raspi3-64-asterisk/disk_skeleton/etc/network/interfaces: -------------------------------------------------------------------------------- 1 | # Configure Loopback 2 | auto lo 3 | iface lo inet loopback 4 | 5 | auto eth0 6 | #allow-hotplug eth0 7 | iface eth0 inet dhcp 8 | #iface eth0 inet manual 9 | # up ifconfig $IFACE 0.0.0.0 up 10 | # down ifconfig $IFACE down 11 | 12 | auto eth1 13 | #allow-hotplug eth1 14 | iface eth1 inet dhcp 15 | #iface eth1 inet manual 16 | # up ifconfig $IFACE 0.0.0.0 up 17 | # down ifconfig $IFACE down 18 | 19 | -------------------------------------------------------------------------------- /configs/raspi3-64-asterisk/disk_skeleton/etc/shadow: -------------------------------------------------------------------------------- 1 | root:kw60Ifsqg/Pb.:16529:0:99999:7::: 2 | bin:*:10933:0:99999:7::: 3 | daemon:*:10933:0:99999:7::: 4 | sync:*:10933:0:99999:7::: 5 | halt:*:10933:0:99999:7::: 6 | uucp:*:10933:0:99999:7::: 7 | operator:*:10933:0:99999:7::: 8 | ftp:*:10933:0:99999:7::: 9 | nobody:*:10933:0:99999:7::: 10 | -------------------------------------------------------------------------------- /configs/raspi3-64-asterisk/disk_skeleton/mnt/settings/empty.file.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/configs/raspi3-64-asterisk/disk_skeleton/mnt/settings/empty.file.txt -------------------------------------------------------------------------------- /configs/raspi3-64-asterisk/disk_skeleton/mnt/userdata/empty.file.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/configs/raspi3-64-asterisk/disk_skeleton/mnt/userdata/empty.file.txt -------------------------------------------------------------------------------- /configs/raspi3-64/cmdline.txt: -------------------------------------------------------------------------------- 1 | logo.nologo ro rootwait root=/dev/mmcblk0p2 console=tty1 console=tty0,115200 2 | -------------------------------------------------------------------------------- /configs/raspi3-64/disk_skeleton/etc/network/interfaces: -------------------------------------------------------------------------------- 1 | # Configure Loopback 2 | auto lo 3 | iface lo inet loopback 4 | 5 | auto eth0 6 | #allow-hotplug eth0 7 | iface eth0 inet dhcp 8 | #iface eth0 inet manual 9 | # up ifconfig $IFACE 0.0.0.0 up 10 | # down ifconfig $IFACE down 11 | 12 | auto eth1 13 | #allow-hotplug eth1 14 | iface eth1 inet dhcp 15 | #iface eth1 inet manual 16 | # up ifconfig $IFACE 0.0.0.0 up 17 | # down ifconfig $IFACE down 18 | 19 | -------------------------------------------------------------------------------- /configs/raspi3-64/disk_skeleton/etc/shadow: -------------------------------------------------------------------------------- 1 | root:kw60Ifsqg/Pb.:16529:0:99999:7::: 2 | bin:*:10933:0:99999:7::: 3 | daemon:*:10933:0:99999:7::: 4 | sync:*:10933:0:99999:7::: 5 | halt:*:10933:0:99999:7::: 6 | uucp:*:10933:0:99999:7::: 7 | operator:*:10933:0:99999:7::: 8 | ftp:*:10933:0:99999:7::: 9 | nobody:*:10933:0:99999:7::: 10 | -------------------------------------------------------------------------------- /configs/raspi3-64/disk_skeleton/mnt/settings/empty.file.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/configs/raspi3-64/disk_skeleton/mnt/settings/empty.file.txt -------------------------------------------------------------------------------- /configs/raspi3-64/disk_skeleton/mnt/userdata/empty.file.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/configs/raspi3-64/disk_skeleton/mnt/userdata/empty.file.txt -------------------------------------------------------------------------------- /configs/raspi3-64/genimage-raspberrypi3-64.cfg: -------------------------------------------------------------------------------- 1 | image boot.vfat { 2 | vfat { 3 | files = { 4 | "bcm2710-rpi-3-b.dtb", 5 | "bcm2837-rpi-3-b.dtb", 6 | "rpi-firmware/bootcode.bin", 7 | "rpi-firmware/cmdline.txt", 8 | "rpi-firmware/config.txt", 9 | "rpi-firmware/fixup.dat", 10 | "rpi-firmware/start.elf", 11 | "Image" 12 | } 13 | } 14 | size = 32M 15 | } 16 | 17 | image sdcard.img { 18 | hdimage { 19 | } 20 | 21 | partition boot { 22 | partition-type = 0xC 23 | bootable = "true" 24 | image = "boot.vfat" 25 | } 26 | 27 | partition rootfs { 28 | partition-type = 0x83 29 | image = "rootfs.ext4" 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /configs/raspi3-qt5we/disk_skeleton/etc/shadow: -------------------------------------------------------------------------------- 1 | root:kw60Ifsqg/Pb.:16529:0:99999:7::: 2 | bin:*:10933:0:99999:7::: 3 | daemon:*:10933:0:99999:7::: 4 | sync:*:10933:0:99999:7::: 5 | halt:*:10933:0:99999:7::: 6 | uucp:*:10933:0:99999:7::: 7 | operator:*:10933:0:99999:7::: 8 | ftp:*:10933:0:99999:7::: 9 | nobody:*:10933:0:99999:7::: 10 | -------------------------------------------------------------------------------- /disk_skeleton/etc/X11/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/disk_skeleton/etc/X11/logo.png -------------------------------------------------------------------------------- /disk_skeleton/etc/chrony.conf: -------------------------------------------------------------------------------- 1 | pool pool.ntp.org iburst 2 | rtconutc 3 | makestep 0.1 5 4 | -------------------------------------------------------------------------------- /disk_skeleton/etc/init.d/S40network: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Start the network.... 4 | # 5 | 6 | # Debian ifupdown needs the /run/network lock directory 7 | mkdir -p /run/network 8 | 9 | case "$1" in 10 | start) 11 | echo "Starting network..." 12 | sleep 1 #needed to get networking working on raspi2 13 | /sbin/ifup -a 14 | ;; 15 | stop) 16 | echo -n "Stopping network..." 17 | /sbin/ifdown -a 18 | ;; 19 | restart|reload) 20 | "$0" stop 21 | "$0" start 22 | ;; 23 | *) 24 | echo "Usage: $0 {start|stop|restart}" 25 | exit 1 26 | esac 27 | 28 | exit $? 29 | 30 | -------------------------------------------------------------------------------- /disk_skeleton/etc/network/interfaces: -------------------------------------------------------------------------------- 1 | # Configure Loopback 2 | auto lo 3 | iface lo inet loopback 4 | 5 | auto eth0 6 | #allow-hotplug eth0 7 | iface eth0 inet dhcp 8 | #iface eth0 inet manual 9 | # up ifconfig $IFACE 0.0.0.0 up 10 | # down ifconfig $IFACE down 11 | 12 | auto eth1 13 | #allow-hotplug eth1 14 | iface eth1 inet dhcp 15 | #iface eth1 inet manual 16 | # up ifconfig $IFACE 0.0.0.0 up 17 | # down ifconfig $IFACE down 18 | 19 | -------------------------------------------------------------------------------- /disk_skeleton/etc/shadow: -------------------------------------------------------------------------------- 1 | root:kw60Ifsqg/Pb.:16529:0:99999:7::: 2 | bin:*:10933:0:99999:7::: 3 | daemon:*:10933:0:99999:7::: 4 | sync:*:10933:0:99999:7::: 5 | halt:*:10933:0:99999:7::: 6 | uucp:*:10933:0:99999:7::: 7 | operator:*:10933:0:99999:7::: 8 | ftp:*:10933:0:99999:7::: 9 | nobody:*:10933:0:99999:7::: 10 | -------------------------------------------------------------------------------- /disk_skeleton/mnt/settings/empty.file.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/disk_skeleton/mnt/settings/empty.file.txt -------------------------------------------------------------------------------- /disk_skeleton/mnt/userdata/empty.file.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/disk_skeleton/mnt/userdata/empty.file.txt -------------------------------------------------------------------------------- /disk_skeleton/usr/sbin/test-script: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | echo "this is just a dummy test script" 3 | -------------------------------------------------------------------------------- /howto/howto.ch341a.i2c.txt: -------------------------------------------------------------------------------- 1 | details are taken from here: https://patrickelectric.work/blog/2018/ch341a-dongle/ 2 | ch341a programmer schematic: https://4.bp.blogspot.com/-nQk5fUPl6fg/XHFbRfvceJI/AAAAAAAAMSY/cN3t6fTZO400e9D-m_SIK27ro1HIkebYgCLcBGAs/s1600/ch341a_miniprogrammer.png 3 | 4 | ## how to use ch341a based usb-to-i2c converter to drive i2c based 16x2 lcd-display 5 | git clone https://github.com/allanbian1017/i2c-ch341-usb 6 | make clean 7 | make 8 | sudo modprobe i2c-ch341-usb.ko speed=0 (set the speed to 20kh, else "dispsrv --disptype=1602_pcf --device=/dev/i2c-8" will not work) 9 | sudo i2cdetect -y 8 10 | sudo i2cset -y 8 0x20 0xff 11 | sudo i2cset -y 8 0x20 0x00 12 | sudo sh -c "export LD_LIBRARY_PATH=./lib/;./bin/dispsrv --disptype=1602_pcf --device=/dev/i2c-8" 13 | ./bin/dispclt --printline=line2,hello12345678 14 | sudo rmmod i2c-ch341-usb.ko 15 | -------------------------------------------------------------------------------- /howto/howto.devantech.usb.i2c.on.x86.linux.txt: -------------------------------------------------------------------------------- 1 | In this guide, you will find the details about how to use devantech usb-to-i2c converter on ubuntu based linux machine. 2 | 1)git clone https://github.com/hackboxguy/brbox 3 | 2)sudo apt-get install i2c-tools 4 | 3)sudo echo "blacklist cdc-acm" >> /etc/modprobe.d/blacklist.conf 5 | 4)cd brbox/sources/kmods/usb-iss/ 6 | 5)make clean;make 7 | 6)sudo insmod i2c-devantech-iss.ko 8 | 7)ls /dev/i2c* (notedown how many i2c nodes present in your system) 9 | 8)connect devantech-usb-i2c converter to usb port of your ubuntu machine. 10 | 9)ls /dev/i2c* (if you see an extra i2c node compared to the list in step 7, then you have a working i2c converter) 11 | 10)sudo i2cdetect -y 8 (8 means /dev/i2c-8, this command scans all available i2c slave addressed on the bus) 12 | -------------------------------------------------------------------------------- /packages/brbox.mk: -------------------------------------------------------------------------------- 1 | include package/brbox/*/*.mk 2 | -------------------------------------------------------------------------------- /packages/brbox_I210kmodAvbIgb/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_I210KMODAVBIGB 2 | bool "I210kmodAvbIgb" 3 | depends on BR2_LINUX_KERNEL 4 | default n 5 | help 6 | Intel i210 igb driver with support for AVB 7 | 8 | #comment "I210kmodAvbIgb needs a Linux kernel to be built" 9 | # depends on !BR2_LINUX_KERNEL 10 | 11 | 12 | -------------------------------------------------------------------------------- /packages/brbox_actkbd/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_ACTKBD 2 | bool "brbox-actkbd" 3 | default n 4 | help 5 | actkbd is a daemon for keyboard shortcuts. 6 | https://github.com/thkala/actkbd 7 | -------------------------------------------------------------------------------- /packages/brbox_actkbd/brbox_actkbd.mk: -------------------------------------------------------------------------------- 1 | ################################################################################ 2 | # 3 | # actkbd daemon 4 | # 5 | ################################################################################ 6 | BRBOX_ACTKBD_VERSION = master 7 | BRBOX_ACTKBD_SITE = $(call github,hackboxguy,actkbd,$(BRBOX_ACTKBD_VERSION)) 8 | BRBOX_ACTKBD_INSTALL_STAGING = NO 9 | BRBOX_ACTKBD_INSTALL_TARGET = YES 10 | BRBOX_ACTKBD_LICENSE = GPL-2.0 11 | BRBOX_ACTKBD_LICENSE_FILES = COPYING 12 | BRBOX_ACTKBD_CONF_OPTS=-DAUTO_SVN_VERSION=OFF 13 | 14 | $(eval $(cmake-package)) 15 | -------------------------------------------------------------------------------- /packages/brbox_apisrv/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_APISRV 2 | bool "Api-Service" 3 | default n 4 | select BR2_PACKAGE_BRBOX_LIBADCMNOLD 5 | select BR2_PACKAGE_BRBOX_LIBONION 6 | help 7 | http-proxy gateway for rpc calls to api call 8 | 9 | config BR2_PACKAGE_BRBOX_APISRV_INIT_ORDER 10 | string "apisrv init.d order" 11 | default "79" 12 | depends on BR2_PACKAGE_BRBOX_APISRV 13 | help 14 | At which place in the init.d startup this service should be started. Needs to be a 2-digit integer. 15 | Will be prefixed by "S" by buildroot, so e.g. "79" becomes "S79" 16 | 17 | -------------------------------------------------------------------------------- /packages/brbox_apisrv/brbox_apisrv.mk: -------------------------------------------------------------------------------- 1 | ############################################################# 2 | # 3 | # apisrv (raw-tcp-rpc to http-api gateway) 4 | # 5 | ############################################################# 6 | BRBOX_APISRV_STARTNUM=$(call qstrip,$(BR2_PACKAGE_BRBOX_APISRV_INIT_ORDER)) 7 | BRBOX_APISRV_VERSION = 0.1 8 | BRBOX_APISRV_SITE_METHOD = local 9 | BRBOX_APISRV_SITE = $(TOPDIR)/../sources/services/apisrv 10 | BRBOX_APISRV_INSTALL_STAGING = YES 11 | BRBOX_APISRV_INSTALL_TARGET = YES 12 | BRBOX_APISRV_DEPENDENCIES = json-c brbox_libAdCmnOld brbox_libAdSttngs brbox_libonion 13 | BRBOX_APISRV_CONF_OPTS=-DCMAKE_INSTALL_PREFIX="/opt/fmw/" -DAUTO_SVN_VERSION=OFF -DINSTALL_MY_HEADERS=OFF -DSTARTNUM=$(BRBOX_APISRV_STARTNUM) 14 | $(eval $(cmake-package)) 15 | 16 | -------------------------------------------------------------------------------- /packages/brbox_baytrail_mount/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_BAYTRAIL_MOUNT 2 | bool "Settings partition mount startup-script for baytrail based target" 3 | default n 4 | depends on BR2_TARGET_BRBOX_PACKAGES 5 | help 6 | provides mounting of settings partition on startup for baytrail based boards. 7 | 8 | -------------------------------------------------------------------------------- /packages/brbox_baytrail_mount/brbox_baytrail_mount.mk: -------------------------------------------------------------------------------- 1 | ############################################################# 2 | # 3 | # brbox baytrail mount startup-script 4 | # 5 | ############################################################# 6 | BRBOX_BAYTRAIL_MOUNT_SITE_METHOD = local 7 | BRBOX_BAYTRAIL_MOUNT_SITE = $(TOPDIR)/../sources/scripts/baytrail/boot 8 | BRBOX_BAYTRAIL_MOUNT_INSTALL_STAGING = NO 9 | BRBOX_BAYTRAIL_MOUNT_INSTALL_TARGET = YES 10 | BRBOX_BAYTRAIL_MOUNT_CONF_OPTS=-DCMAKE_INSTALL_PREFIX="/" 11 | $(eval $(cmake-package)) 12 | 13 | -------------------------------------------------------------------------------- /packages/brbox_baytrail_update/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_BAYTRAIL_UPDATE 2 | bool "Update Script for baytrail based target" 3 | default n 4 | depends on BR2_TARGET_BRBOX_PACKAGES 5 | help 6 | provides in-system failsafe upgrade feature for baytrail based boards. 7 | 8 | -------------------------------------------------------------------------------- /packages/brbox_baytrail_update/brbox_baytrail_update.mk: -------------------------------------------------------------------------------- 1 | ############################################################# 2 | # 3 | # brbox baytrail update scripts 4 | # 5 | ############################################################# 6 | BRBOX_BAYTRAIL_UPDATE_SITE_METHOD = local 7 | BRBOX_BAYTRAIL_UPDATE_SITE = $(TOPDIR)/../sources/scripts/baytrail_update 8 | BRBOX_BAYTRAIL_UPDATE_INSTALL_STAGING = NO 9 | BRBOX_BAYTRAIL_UPDATE_INSTALL_TARGET = YES 10 | $(eval $(cmake-package)) 11 | 12 | -------------------------------------------------------------------------------- /packages/brbox_bbb_mount/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_BBB_MOUNT 2 | bool "Settings partition mount startup-script for beagle-bone-black based target" 3 | default n 4 | depends on BR2_TARGET_BRBOX_PACKAGES 5 | help 6 | provides mounting of settings partition on startup for beagle-bone-black based boards. 7 | 8 | -------------------------------------------------------------------------------- /packages/brbox_bbb_mount/brbox_bbb_mount.mk: -------------------------------------------------------------------------------- 1 | ############################################################# 2 | # 3 | # brbox bbb mount startup-script 4 | # 5 | ############################################################# 6 | BRBOX_BBB_MOUNT_SITE_METHOD = local 7 | BRBOX_BBB_MOUNT_SITE = $(TOPDIR)/../sources/scripts/bbb/boot 8 | BRBOX_BBB_MOUNT_INSTALL_STAGING = NO 9 | BRBOX_BBB_MOUNT_INSTALL_TARGET = YES 10 | BRBOX_BBB_MOUNT_CONF_OPTS=-DCMAKE_INSTALL_PREFIX="/" 11 | $(eval $(cmake-package)) 12 | 13 | -------------------------------------------------------------------------------- /packages/brbox_bbb_update/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_BBB_UPDATE 2 | bool "Update Script for beagle-bone-black based target" 3 | default n 4 | depends on BR2_TARGET_BRBOX_PACKAGES 5 | help 6 | provides in-system failsafe upgrade feature for beagle-bone-black based boards. 7 | 8 | -------------------------------------------------------------------------------- /packages/brbox_bbb_update/brbox_bbb_update.mk: -------------------------------------------------------------------------------- 1 | ############################################################# 2 | # 3 | # brbox bbb update scripts 4 | # 5 | ############################################################# 6 | BRBOX_BBB_UPDATE_SITE_METHOD = local 7 | BRBOX_BBB_UPDATE_SITE = $(TOPDIR)/../sources/scripts/bbb/update 8 | BRBOX_BBB_UPDATE_INSTALL_STAGING = NO 9 | BRBOX_BBB_UPDATE_INSTALL_TARGET = YES 10 | $(eval $(cmake-package)) 11 | 12 | -------------------------------------------------------------------------------- /packages/brbox_bbbmmc_mount/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_BBBMMC_MOUNT 2 | bool "Settings partition mount startup-script for beagle-bone-black-mmc based target" 3 | default n 4 | depends on BR2_TARGET_BRBOX_PACKAGES 5 | help 6 | provides mounting of settings partition on startup for beagle-bone-black-mmc based boards. 7 | 8 | -------------------------------------------------------------------------------- /packages/brbox_bbbmmc_mount/brbox_bbbmmc_mount.mk: -------------------------------------------------------------------------------- 1 | ############################################################# 2 | # 3 | # brbox bbbmmc mount startup-script 4 | # 5 | ############################################################# 6 | BRBOX_BBBMMC_MOUNT_SITE_METHOD = local 7 | BRBOX_BBBMMC_MOUNT_SITE = $(TOPDIR)/../sources/scripts/bbbmmc/boot 8 | BRBOX_BBBMMC_MOUNT_INSTALL_STAGING = NO 9 | BRBOX_BBBMMC_MOUNT_INSTALL_TARGET = YES 10 | BRBOX_BBBMMC_MOUNT_CONF_OPTS=-DCMAKE_INSTALL_PREFIX="/" 11 | $(eval $(cmake-package)) 12 | 13 | -------------------------------------------------------------------------------- /packages/brbox_bbbmmc_update/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_BBBMMC_UPDATE 2 | bool "Update Script for beagle-bone-black-mmc based target" 3 | default n 4 | depends on BR2_TARGET_BRBOX_PACKAGES 5 | help 6 | provides in-system failsafe upgrade feature for beagle-bone-black-mmc based boards. 7 | 8 | -------------------------------------------------------------------------------- /packages/brbox_bbbmmc_update/brbox_bbbmmc_update.mk: -------------------------------------------------------------------------------- 1 | ############################################################# 2 | # 3 | # brbox bbbmmc update scripts 4 | # 5 | ############################################################# 6 | BRBOX_BBBMMC_UPDATE_SITE_METHOD = local 7 | BRBOX_BBBMMC_UPDATE_SITE = $(TOPDIR)/../sources/scripts/bbbmmc/update 8 | BRBOX_BBBMMC_UPDATE_INSTALL_STAGING = NO 9 | BRBOX_BBBMMC_UPDATE_INSTALL_TARGET = YES 10 | $(eval $(cmake-package)) 11 | 12 | -------------------------------------------------------------------------------- /packages/brbox_bboxsms/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_BBOXSMS 2 | bool "Bbox-Sms-Service" 3 | default n 4 | select BR2_PACKAGE_BRBOX_LIBADCMNOLD 5 | select BR2_PACKAGE_BRBOX_LIBGAMMU 6 | help 7 | sms service for automated handling of gms messages 8 | 9 | config BR2_PACKAGE_BRBOX_BBOXSMS_INIT_ORDER 10 | string "bboxsms init.d order" 11 | default "73" 12 | depends on BR2_PACKAGE_BRBOX_BBOXSMS 13 | help 14 | At which place in the init.d startup this service should be started. Needs to be a 2-digit integer. 15 | Will be prefixed by "S" by buildroot, so e.g. "77" becomes "S77" 16 | 17 | -------------------------------------------------------------------------------- /packages/brbox_bboxsms/brbox_bboxsms.mk: -------------------------------------------------------------------------------- 1 | ############################################################# 2 | # 3 | # bboxsms (3g modem sms control server) 4 | # 5 | ############################################################# 6 | BRBOX_BBOXSMS_STARTNUM=$(call qstrip,$(BR2_PACKAGE_BRBOX_BBOXSMS_INIT_ORDER)) 7 | BRBOX_BBOXSMS_VERSION = 0.1 8 | BRBOX_BBOXSMS_SITE_METHOD = local 9 | BRBOX_BBOXSMS_SITE = $(TOPDIR)/../sources/services/bboxsms 10 | BRBOX_BBOXSMS_INSTALL_STAGING = YES 11 | BRBOX_BBOXSMS_INSTALL_TARGET = YES 12 | BRBOX_BBOXSMS_DEPENDENCIES = json-c brbox_libAdCmnOld brbox_libAdSttngs brbox_libgammu 13 | BRBOX_BBOXSMS_CONF_OPTS=-DCMAKE_INSTALL_PREFIX="/opt/fmw/" -DAUTO_SVN_VERSION=OFF -DINSTALL_MY_HEADERS=OFF -DSTARTNUM=$(BRBOX_BBOXSMS_STARTNUM) 14 | $(eval $(cmake-package)) 15 | 16 | -------------------------------------------------------------------------------- /packages/brbox_chandongle/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_CHANDONGLE 2 | bool "asterisk-chan-dongle" 3 | default n 4 | depends on BR2_PACKAGE_ASTERISK 5 | help 6 | chan-dongle module for adding gsm modem suppor to asterisk 7 | 8 | -------------------------------------------------------------------------------- /packages/brbox_defhostname/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_DEFHOSTNAME 2 | bool "Default hostname startup-script for brbox platform" 3 | default y 4 | depends on BR2_TARGET_BRBOX_PACKAGES 5 | help 6 | provides detection and creation of hostname on startup for brbox based boards. 7 | 8 | -------------------------------------------------------------------------------- /packages/brbox_defhostname/brbox_defhostname.mk: -------------------------------------------------------------------------------- 1 | ############################################################# 2 | # 3 | # brbox default-hostname startup-script 4 | # 5 | ############################################################# 6 | BRBOX_DEFHOSTNAME_SITE_METHOD = local 7 | BRBOX_DEFHOSTNAME_SITE = $(TOPDIR)/../sources/scripts/cmn/default-hostname 8 | BRBOX_DEFHOSTNAME_INSTALL_STAGING = NO 9 | BRBOX_DEFHOSTNAME_INSTALL_TARGET = YES 10 | BRBOX_DEFHOSTNAME_CONF_OPTS=-DCMAKE_INSTALL_PREFIX="/" 11 | $(eval $(cmake-package)) 12 | 13 | -------------------------------------------------------------------------------- /packages/brbox_dispsrv/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_DISPSRV 2 | bool "Display-Control-Service" 3 | default n 4 | select BR2_PACKAGE_BRBOX_LIBADDISP 5 | select BR2_PACKAGE_BRBOX_LIBADCMNOLD 6 | help 7 | display control service for accessing oled display via rpc 8 | 9 | config BR2_PACKAGE_BRBOX_DISPSRV_INIT_ORDER 10 | string "dispsrv init.d order" 11 | default "78" 12 | depends on BR2_PACKAGE_BRBOX_DISPSRV 13 | help 14 | At which place in the init.d startup this service should be started. Needs to be a 2-digit integer. 15 | Will be prefixed by "S" by buildroot, so e.g. "77" becomes "S77" 16 | 17 | -------------------------------------------------------------------------------- /packages/brbox_dispsrv/brbox_dispsrv.mk: -------------------------------------------------------------------------------- 1 | ############################################################# 2 | # 3 | # dispsrv (oled display control server) 4 | # 5 | ############################################################# 6 | BRBOX_DISPSRV_STARTNUM=$(call qstrip,$(BR2_PACKAGE_BRBOX_DISPSRV_INIT_ORDER)) 7 | BRBOX_DISPSRV_VERSION = 0.1 8 | BRBOX_DISPSRV_SITE_METHOD = local 9 | BRBOX_DISPSRV_SITE = $(TOPDIR)/../sources/services/dispsrv 10 | BRBOX_DISPSRV_INSTALL_STAGING = YES 11 | BRBOX_DISPSRV_INSTALL_TARGET = YES 12 | BRBOX_DISPSRV_DEPENDENCIES = i2c-tools json-c brbox_libAdDisp brbox_libAdCmnOld brbox_libAdSttngs 13 | BRBOX_DISPSRV_CONF_OPTS=-DCMAKE_INSTALL_PREFIX="/opt/fmw/" -DAUTO_SVN_VERSION=OFF -DINSTALL_MY_HEADERS=OFF -DSTARTNUM=$(BRBOX_DISPSRV_STARTNUM) 14 | $(eval $(cmake-package)) 15 | 16 | -------------------------------------------------------------------------------- /packages/brbox_eeprog/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_EEPROG 2 | bool "eeprog i2c eeprom access tool" 3 | default y 4 | help 5 | eeprog tool is used for accessing various i2c eeprom chips 6 | 7 | 8 | -------------------------------------------------------------------------------- /packages/brbox_eeprog/brbox_eeprog.mk: -------------------------------------------------------------------------------- 1 | ############################################################# 2 | # 3 | # eeprog i2c eeprom access utility 4 | # 5 | ############################################################# 6 | BRBOX_EEPROG_VERSION = 0.1 7 | BRBOX_EEPROG_SITE_METHOD = local 8 | BRBOX_EEPROG_SITE = $(TOPDIR)/../sources/utils/eeprog-0.7.6 9 | BRBOX_EEPROG_INSTALL_STAGING = NO 10 | BRBOX_EEPROG_INSTALL_TARGET = YES 11 | BRBOX_EEPROG_CONF_OPTS=-DAUTO_SVN_VERSION=OFF #todo: when SITE_METHOD is svnco, enable AUTO_SVN_VERSION flag 12 | #-DCMAKE_INSTALL_PREFIX="/opt/fmw/" 13 | $(eval $(cmake-package)) 14 | 15 | -------------------------------------------------------------------------------- /packages/brbox_fbtestapp/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_FBTESTAPP 2 | bool "brbox-fb-test-app" 3 | help 4 | Test suite for Linux framebuffer cloned from. 5 | 6 | https://github.com/prpplague/fb-test-app 7 | -------------------------------------------------------------------------------- /packages/brbox_fim/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_FIM 2 | bool "fim - fbv improved image viewer" 3 | default n 4 | help 5 | Dmidecode reports information about your system's hardware 6 | as described in your system BIOS according to the SMBIOS/DMI 7 | standard. 8 | 9 | http://www.nongnu.org/dmidecode/ 10 | -------------------------------------------------------------------------------- /packages/brbox_fim/brbox_fim.mk: -------------------------------------------------------------------------------- 1 | ################################################################################ 2 | # 3 | # brbox_fbv_improved 4 | # 5 | ################################################################################ 6 | BRBOX_FIM_VERSION = 0.6 7 | BRBOX_FIM_SOURCE = fim-$(BRBOX_FIM_VERSION)-trunk.tar.gz 8 | BRBOX_FIM_SITE = http://download.savannah.nongnu.org/releases/fbi-improved 9 | BRBOX_FIM_LICENSE = GPL-2.0+ 10 | BRBOX_FIM_LICENSE_FILES = LICENSE 11 | BRBOX_FIM_DEPENDENCIES += host-pkgconf libexif libpng ncurses readline flex 12 | #BRBOX_FIM_CONF_ENV += libpng_config_prefix=$(STAGING_DIR)/usr/bin/libpng-config 13 | #BRBOX_FIM_CONF_ENV += fim_cv_regex=no 14 | BRBOX_FIM_CONF_ENV += ac_cv_path_LIBPNG_CONFIG=$(STAGING_DIR)/usr/bin/libpng-config 15 | BRBOX_FIM_AUTORECONF = YES 16 | BRBOX_FIM_CONF_OPTS += --enable-libpng --disable-exif 17 | $(eval $(autotools-package)) 18 | -------------------------------------------------------------------------------- /packages/brbox_finddevtype/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_FINDDEVTYPE 2 | bool "Find Device type startup-script for brbox platform" 3 | default y 4 | depends on BR2_TARGET_BRBOX_PACKAGES 5 | help 6 | provides detection of board type on startup for brbox based boards. 7 | 8 | -------------------------------------------------------------------------------- /packages/brbox_finddevtype/brbox_raspi2_mount.mk: -------------------------------------------------------------------------------- 1 | ############################################################# 2 | # 3 | # brbox find-devtype startup-script 4 | # 5 | ############################################################# 6 | BRBOX_FINDDEVTYPE_SITE_METHOD = local 7 | BRBOX_FINDDEVTYPE_SITE = $(TOPDIR)/../sources/scripts/cmn/find-devtype 8 | BRBOX_FINDDEVTYPE_INSTALL_STAGING = NO 9 | BRBOX_FINDDEVTYPE_INSTALL_TARGET = YES 10 | BRBOX_FINDDEVTYPE_CONF_OPTS=-DCMAKE_INSTALL_PREFIX="/" 11 | $(eval $(cmake-package)) 12 | 13 | -------------------------------------------------------------------------------- /packages/brbox_flircutil/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_FLIRCUTIL 2 | bool "brbox-flircutil" 3 | default n 4 | select BR2_PACKAGE_READLINE 5 | select BR2_PACKAGE_HIDAPI 6 | select BR2_PACKAGE_LIBUSB 7 | help 8 | flirc_util is IR-USB HW dongle management tool. 9 | https://github.com/hackboxguy/flirc-sdk 10 | -------------------------------------------------------------------------------- /packages/brbox_flircutil/brbox_flircutil.mk: -------------------------------------------------------------------------------- 1 | ################################################################################ 2 | # 3 | # flirc utility 4 | # 5 | ################################################################################ 6 | BRBOX_FLIRCUTIL_VERSION = master 7 | BRBOX_FLIRCUTIL_SITE = $(call github,hackboxguy,flirc-sdk,$(BRBOX_FLIRC_VERSION)) 8 | BRBOX_FLIRCUTIL_INSTALL_STAGING = NO 9 | BRBOX_FLIRCUTIL_DEPENDENCIES = readline hidapi libusb 10 | BRBOX_FLIRCUTIL_LICENSE = GPL-2.0 11 | BRBOX_FLIRCUTIL_LICENSE_FILES = COPYING 12 | 13 | define BRBOX_FLIRCUTIL_BUILD_CMDS 14 | $(MAKE) all -C $(@D) 15 | endef 16 | 17 | define BRBOX_FLIRCUTIL_INSTALL_TARGET_CMDS 18 | $(INSTALL) -D -m 0755 $(@D)/cli/buildresults/*/*/flirc_util/release/flirc_util $(TARGET_DIR)/usr/bin/flirc_util 19 | endef 20 | 21 | $(eval $(generic-package)) 22 | -------------------------------------------------------------------------------- /packages/brbox_genintrdrv/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_GENINTRDRV 2 | bool "generic-interrupt-driver" 3 | depends on BR2_LINUX_KERNEL 4 | help 5 | Kernel modules for generic interrupt driver. 6 | 7 | comment "generic-interrupt-driver needs a Linux kernel to be built" 8 | depends on !BR2_LINUX_KERNEL 9 | 10 | #config BR2_PACKAGE_BRBOX_GENINTRDRV_INIT_SCRIPT 11 | # string "auto insert module through init.d order" 12 | # default "S59GenIntrDrvStartup" 13 | # depends on BR2_PACKAGE_BRBOX_GENINTRDRV 14 | # help 15 | # Name of the startup script for loading the module 16 | 17 | -------------------------------------------------------------------------------- /packages/brbox_genintrdrv/S59GenIntrDrvModule: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Start/stop linux kernel module 4 | # 5 | MODULE_NAME=genintrdrv 6 | start() { 7 | echo -n "Inserting Module $MODULE_NAME: " 8 | modprobe $MODULE_NAME 9 | echo "OK" 10 | } 11 | 12 | stop() { 13 | echo -n "Removing Module $MODULE_NAME: " 14 | modprobe -r $MODULE_NAME 15 | echo "OK" 16 | } 17 | 18 | case "$1" in 19 | start) 20 | start 21 | ;; 22 | stop) 23 | stop 24 | ;; 25 | restart|reload) 26 | stop 27 | start 28 | ;; 29 | *) 30 | echo "Usage: $0 {start|stop|restart}" 31 | exit 1 32 | esac 33 | 34 | exit $? 35 | -------------------------------------------------------------------------------- /packages/brbox_gphoto2/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_GPHOTO2 2 | bool "gphoto2 commandline utility" 3 | default n 4 | help 5 | includes gphoto2 commandline utility. 6 | 7 | -------------------------------------------------------------------------------- /packages/brbox_gpiomgr/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_GPIOMGR 2 | bool "Gpio-Manager-Service" 3 | default n 4 | select BR2_PACKAGE_BRBOX_LIBADCMNOLD 5 | help 6 | gpio manager service for supporting gpio control features via rpc 7 | 8 | config BR2_PACKAGE_BRBOX_GPIOMGR_INIT_ORDER 9 | string "gpiomgr init.d order" 10 | default "71" 11 | depends on BR2_PACKAGE_BRBOX_GPIOMGR 12 | help 13 | At which place in the init.d startup this service should be started. Needs to be a 2-digit integer. 14 | Will be prefixed by "S" by buildroot, so e.g. "77" becomes "S77" 15 | 16 | -------------------------------------------------------------------------------- /packages/brbox_gpiomgr/brbox_gpiomgr.mk: -------------------------------------------------------------------------------- 1 | ############################################################# 2 | # 3 | # gpiomgr (gpio control server) 4 | # 5 | ############################################################# 6 | BRBOX_GPIOMGR_STARTNUM=$(call qstrip,$(BR2_PACKAGE_BRBOX_GPIOMGR_INIT_ORDER)) 7 | BRBOX_GPIOMGR_VERSION = 0.1 8 | BRBOX_GPIOMGR_SITE_METHOD = local 9 | BRBOX_GPIOMGR_SITE = $(TOPDIR)/../sources/services/gpioctl 10 | BRBOX_GPIOMGR_INSTALL_STAGING = YES 11 | BRBOX_GPIOMGR_INSTALL_TARGET = YES 12 | BRBOX_GPIOMGR_DEPENDENCIES = json-c brbox_libAdCmnOld brbox_libAdSttngs 13 | BRBOX_GPIOMGR_CONF_OPTS=-DCMAKE_INSTALL_PREFIX="/opt/fmw/" -DAUTO_SVN_VERSION=OFF -DINSTALL_MY_HEADERS=OFF -DSTARTNUM=$(BRBOX_GPIOMGR_STARTNUM) 14 | $(eval $(cmake-package)) 15 | 16 | -------------------------------------------------------------------------------- /packages/brbox_gstd/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_GSTD 2 | bool "gstd" 3 | select BR2_PACKAGE_GSTREAMER1_CHECK 4 | select BR2_PACKAGE_GST1_PLUGINS_BASE 5 | select BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_APP 6 | select BR2_PACKAGE_READLINE 7 | select BR2_PACKAGE_NCURSES 8 | select BR2_PACKAGE_JSON_GLIB 9 | help 10 | GStreamer Daemon is a GStreamer framework for controlling 11 | audio and video streaming using TCP messages. 12 | This version is based on GStreamer 1.x 13 | 14 | https://github.com/RidgeRun/gstd-1.x 15 | 16 | -------------------------------------------------------------------------------- /packages/brbox_gstdstartup/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_GSTDSTARTUP 2 | bool "gstd daemon startup script and dependencies for brbox platform" 3 | default n 4 | depends on BR2_TARGET_BRBOX_PACKAGES 5 | select BR2_PACKAGE_BRBOX_GSTD 6 | help 7 | provides mechanism to auto start gstd-daemon on linux bootup. 8 | 9 | -------------------------------------------------------------------------------- /packages/brbox_gstdstartup/brbox_gstdstartup.mk: -------------------------------------------------------------------------------- 1 | ############################################################# 2 | # 3 | # brbox gstd-daemon startup-script 4 | # 5 | ############################################################# 6 | BRBOX_GSTDSTARTUP_SITE_METHOD = local 7 | BRBOX_GSTDSTARTUP_SITE = $(TOPDIR)/../sources/scripts/cmn/gstd-startup-script 8 | BRBOX_GSTDSTARTUP_INSTALL_STAGING = NO 9 | BRBOX_GSTDSTARTUP_INSTALL_TARGET = YES 10 | BRBOX_GSTDSTARTUP_CONF_OPTS=-DCMAKE_INSTALL_PREFIX="/" 11 | $(eval $(cmake-package)) 12 | 13 | -------------------------------------------------------------------------------- /packages/brbox_gstreamer_vaapi/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_GSTREAMER_VAAPI 2 | bool "gstreamer-vaapi" 3 | depends on BR2_PACKAGE_GSTREAMER1 4 | depends on BR2_PACKAGE_LIBVA 5 | help 6 | gstreamer-vaapi consists in a collection of VA-API based plugins for 7 | GStreamer and helper libraries. 8 | -------------------------------------------------------------------------------- /packages/brbox_hellovideo/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_HELLOVIDEO 2 | bool "hello-video media player for raspberry pi" 3 | default n 4 | select BR2_PACKAGE_BRBOX_LIBILCLIENT 5 | help 6 | video player utility user h/w based decoding on raspberry pi 7 | 8 | -------------------------------------------------------------------------------- /packages/brbox_hellovideo/brbox_hellovideo.mk: -------------------------------------------------------------------------------- 1 | ############################################################# 2 | # 3 | # hellovideo (rpi video player) 4 | # 5 | ############################################################# 6 | BRBOX_HELLOVIDEO_VERSION = 0.1 7 | BRBOX_HELLOVIDEO_SITE_METHOD = local 8 | BRBOX_HELLOVIDEO_SITE = $(TOPDIR)/../sources/utils/hello_video 9 | BRBOX_HELLOVIDEO_INSTALL_STAGING = NO 10 | BRBOX_HELLOVIDEO_INSTALL_TARGET = YES 11 | BRBOX_HELLOVIDEO_DEPENDENCIES = brbox_libIlClient 12 | BRBOX_HELLOVIDEO_CONF_OPTS=-DCMAKE_INSTALL_PREFIX="/" -DAUTO_SVN_VERSION=OFF -DINSTALL_MY_HEADERS=OFF 13 | $(eval $(cmake-package)) 14 | 15 | -------------------------------------------------------------------------------- /packages/brbox_huawei_e173udevrule/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_HUAWEI_E173UDEVRULE 2 | bool "On startup, automatically switch the E173 usb device as GSM modem" 3 | default n 4 | depends on BR2_TARGET_BRBOX_PACKAGES 5 | help 6 | provides udev rule to switch E173 as GSM modem on startup. 7 | 8 | -------------------------------------------------------------------------------- /packages/brbox_huawei_e173udevrule/brbox_huawei_e173udevrule.mk: -------------------------------------------------------------------------------- 1 | ############################################################# 2 | # 3 | # brbox huawei E173 udev rule(starts the 3g stick as gsm modem) 4 | # 5 | ############################################################# 6 | BRBOX_HUAWEI_E173UDEVRULE_SITE_METHOD = local 7 | BRBOX_HUAWEI_E173UDEVRULE_SITE = $(TOPDIR)/../sources/scripts/cmn/huawei-E173-udev-rule 8 | BRBOX_HUAWEI_E173UDEVRULE_INSTALL_STAGING = NO 9 | BRBOX_HUAWEI_E173UDEVRULE_INSTALL_TARGET = YES 10 | BRBOX_HUAWEI_E173UDEVRULE_CONF_OPTS=-DCMAKE_INSTALL_PREFIX="/" 11 | $(eval $(cmake-package)) 12 | 13 | -------------------------------------------------------------------------------- /packages/brbox_i2csrv/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_I2CSRV 2 | bool "I2C-Control-Service" 3 | default n 4 | select BR2_PACKAGE_BRBOX_LIBADCMNOLD 5 | help 6 | i2c bus service for supporting i2c control features via rpc 7 | 8 | config BR2_PACKAGE_BRBOX_I2CSRV_INIT_ORDER 9 | string "i2csrv init.d order" 10 | default "69" 11 | depends on BR2_PACKAGE_BRBOX_I2CSRV 12 | help 13 | At which place in the init.d startup this service should be started. Needs to be a 2-digit integer. 14 | Will be prefixed by "S" by buildroot, so e.g. "77" becomes "S77" 15 | 16 | -------------------------------------------------------------------------------- /packages/brbox_i2csrv/brbox_i2csrv.mk: -------------------------------------------------------------------------------- 1 | ############################################################# 2 | # 3 | # i2csrv (i2c control server) 4 | # 5 | ############################################################# 6 | BRBOX_I2CSRV_STARTNUM=$(call qstrip,$(BR2_PACKAGE_BRBOX_I2CSRV_INIT_ORDER)) 7 | BRBOX_I2CSRV_VERSION = 0.1 8 | BRBOX_I2CSRV_SITE_METHOD = local 9 | BRBOX_I2CSRV_SITE = $(TOPDIR)/../sources/services/i2csrv 10 | BRBOX_I2CSRV_INSTALL_STAGING = YES 11 | BRBOX_I2CSRV_INSTALL_TARGET = YES 12 | BRBOX_I2CSRV_DEPENDENCIES = json-c brbox_libAdCmnOld brbox_libAdSttngs 13 | BRBOX_I2CSRV_CONF_OPTS=-DCMAKE_INSTALL_PREFIX="/opt/fmw/" -DAUTO_SVN_VERSION=OFF -DINSTALL_MY_HEADERS=OFF -DSTARTNUM=$(BRBOX_I2CSRV_STARTNUM) 14 | $(eval $(cmake-package)) 15 | 16 | -------------------------------------------------------------------------------- /packages/brbox_libAdCmn/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_LIBADCMN 2 | bool "libAdCommon" 3 | default n 4 | help 5 | ADAV Common library for writing various services 6 | 7 | -------------------------------------------------------------------------------- /packages/brbox_libAdCmn/brbox_libAdCmn.mk: -------------------------------------------------------------------------------- 1 | BRBOX_LIBADCMN_VERSION = 0.1 2 | BRBOX_LIBADCMN_SITE_METHOD = local 3 | BRBOX_LIBADCMN_SITE = $(TOPDIR)/../sources/lib/lib-adav 4 | BRBOX_LIBADCMN_INSTALL_STAGING = YES 5 | BRBOX_LIBADCMN_INSTALL_TARGET = YES 6 | BRBOX_LIBADCMN_DEPENDENCIES = brbox_libAdSttngs json-c 7 | $(eval $(cmake-package)) 8 | 9 | -------------------------------------------------------------------------------- /packages/brbox_libAdCmnOld/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_LIBADCMNOLD 2 | bool "libAdCommonOld" 3 | default y 4 | select BR2_PACKAGE_JSON_C 5 | select BR2_PACKAGE_BRBOX_LIBADSTTNGS 6 | depends on BR2_TOOLCHAIN_HAS_THREADS 7 | help 8 | This shared object provide all services with gerneric thread/proxy/json interface . 9 | 10 | comment "libAdCommonOld needs a toolchain with thread support" 11 | depends on !(BR2_TOOLCHAIN_HAS_THREADS) 12 | 13 | 14 | -------------------------------------------------------------------------------- /packages/brbox_libAdCmnOld/brbox_libAdCmnOld.mk: -------------------------------------------------------------------------------- 1 | BRBOX_LIBADCMNOLD_VERSION = 0.1 2 | BRBOX_LIBADCMNOLD_SITE_METHOD = local 3 | BRBOX_LIBADCMNOLD_SITE = $(TOPDIR)/../sources/lib/lib-adav-old 4 | BRBOX_LIBADCMNOLD_INSTALL_STAGING = YES 5 | BRBOX_LIBADCMNOLD_INSTALL_TARGET = YES 6 | BRBOX_LIBADCMNOLD_CONF_OPTS=-DAUTO_SVN_VERSION=OFF -DINSTALL_MY_HEADERS=OFF 7 | BRBOX_LIBADCMNOLD_DEPENDENCIES = brbox_libAdSttngs json-c 8 | $(eval $(cmake-package)) 9 | 10 | -------------------------------------------------------------------------------- /packages/brbox_libAdDisp/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_LIBADDISP 2 | bool "libAdDisp" 3 | default y 4 | help 5 | library for controlling i2c/spi based oled displays 6 | 7 | -------------------------------------------------------------------------------- /packages/brbox_libAdDisp/brbox_libAdDisp.mk: -------------------------------------------------------------------------------- 1 | BRBOX_LIBADDISP_VERSION=0.1 2 | BRBOX_LIBADDISP_SITE_METHOD=local 3 | BRBOX_LIBADDISP_SITE=$(TOPDIR)/../sources/lib/lib-display 4 | BRBOX_LIBADDISP_INSTALL_STAGING=YES 5 | BRBOX_LIBADDISP_INSTALL_TARGET=YES 6 | $(eval $(cmake-package)) 7 | 8 | -------------------------------------------------------------------------------- /packages/brbox_libAdSttngs/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_LIBADSTTNGS 2 | bool "libAdSettings" 3 | default y 4 | help 5 | settings library to be used along with lib-adav for writing services 6 | 7 | -------------------------------------------------------------------------------- /packages/brbox_libAdSttngs/brbox_libAdSttngs.mk: -------------------------------------------------------------------------------- 1 | BRBOX_LIBADSTTNGS_VERSION=0.1 2 | BRBOX_LIBADSTTNGS_SITE_METHOD=local 3 | BRBOX_LIBADSTTNGS_SITE=$(TOPDIR)/../sources/lib/lib-settings 4 | BRBOX_LIBADSTTNGS_INSTALL_STAGING=YES 5 | BRBOX_LIBADSTTNGS_INSTALL_TARGET=YES 6 | $(eval $(cmake-package)) 7 | 8 | -------------------------------------------------------------------------------- /packages/brbox_libIlClient/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_LIBILCLIENT 2 | bool "libIlClient" 3 | default n 4 | help 5 | ilclient library used by raspberry pi hello_video omx based video player 6 | 7 | -------------------------------------------------------------------------------- /packages/brbox_libIlClient/brbox_libIlClient.mk: -------------------------------------------------------------------------------- 1 | BRBOX_LIBILCLIENT_VERSION=0.1 2 | BRBOX_LIBILCLIENT_SITE_METHOD=local 3 | BRBOX_LIBILCLIENT_SITE=$(TOPDIR)/../sources/lib/lib-ilclient 4 | BRBOX_LIBILCLIENT_INSTALL_STAGING=YES 5 | BRBOX_LIBILCLIENT_INSTALL_TARGET=YES 6 | BRBOX_LIBILCLIENT_DEPENDENCIES = rpi-userland 7 | $(eval $(cmake-package)) 8 | 9 | -------------------------------------------------------------------------------- /packages/brbox_libgammu/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_LIBGAMMU 2 | bool "libgammu" 3 | default n 4 | help 5 | gammu library for gsm modems 6 | 7 | -------------------------------------------------------------------------------- /packages/brbox_libgammu/brbox_libgammu.mk: -------------------------------------------------------------------------------- 1 | ################################################################################ 2 | # 3 | # brbox_libgammu 4 | # 5 | ################################################################################ 6 | BRBOX_LIBGAMMU_VERSION = 1.39.0 #1.36.6 7 | BRBOX_LIBGAMMU_SITE = $(call github,gammu,gammu,$(BRBOX_LIBGAMMU_VERSION)) 8 | BRBOX_LIBGAMMU_INSTALL_STAGING = YES 9 | BRBOX_LIBGAMMU_CONF_OPTS = -DWITH_NOKIA_SUPPORT=OFF -DWITH_BLUETOOTH=OFF -DWITH_IRDA=OFF 10 | BRBOX_LIBGAMMU_LICENSE = GPLv2.0 11 | BRBOX_LIBGAMMU_LICENSE_FILES = COPYING.lib 12 | 13 | $(eval $(cmake-package)) 14 | 15 | -------------------------------------------------------------------------------- /packages/brbox_libgloox/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_LIBGLOOX 2 | bool "libgloox" 3 | default n 4 | help 5 | portable c++ xmpp library 6 | 7 | -------------------------------------------------------------------------------- /packages/brbox_libgloox/brbox_libgloox.mk: -------------------------------------------------------------------------------- 1 | ################################################################################ 2 | # 3 | # brbox_libgloox 4 | # 5 | ################################################################################ 6 | 7 | BRBOX_LIBGLOOX_VERSION = 1.0.24 #4 8 | BRBOX_LIBGLOOX_SOURCE = gloox-$(BRBOX_LIBGLOOX_VERSION).tar.bz2 9 | BRBOX_LIBGLOOX_SITE = http://camaya.net/download 10 | BRBOX_LIBGLOOX_INSTALL_STAGING = YES 11 | BRBOX_LIBGLOOX_CONF_OPTS += --with-openssl=$(STAGING_DIR)/usr 12 | BRBOX_LIBGLOOX_AUTORECONF = YES 13 | BRBOX_LIBGLOOX_LICENSE = AGPLv3 14 | BRBOX_LIBGLOOX_LICENSE_FILES = COPYING 15 | BRBOX_LIBGLOOX_DEPENDENCIES += openssl 16 | $(eval $(autotools-package)) 17 | -------------------------------------------------------------------------------- /packages/brbox_libonion/0001-disable-creation-of-test-tools.patch: -------------------------------------------------------------------------------- 1 | diff --git a/CMakeLists.txt b/CMakeLists.txt 2 | index 9156a90..1e1ce8e 100644 3 | --- a/CMakeLists.txt 4 | +++ b/CMakeLists.txt 5 | @@ -269,5 +269,5 @@ if (${ONION_USE_TESTS}) 6 | enable_testing() 7 | endif(${ONION_USE_TESTS}) 8 | 9 | -add_subdirectory(tests) 10 | +#add_subdirectory(tests) 11 | add_subdirectory(manpages) 12 | -------------------------------------------------------------------------------- /packages/brbox_libonion/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_LIBONION 2 | bool "libonion" 3 | default n 4 | help 5 | c based http server library 6 | 7 | -------------------------------------------------------------------------------- /packages/brbox_libonion/brbox_libonion.mk: -------------------------------------------------------------------------------- 1 | ################################################################################ 2 | # 3 | # brbox_libonion 4 | # 5 | ################################################################################ 6 | BRBOX_LIBONION_VERSION = v0.8 #HEAD #v0.7 7 | BRBOX_LIBONION_SITE = $(call github,davidmoreno,onion,$(BRBOX_LIBONION_VERSION)) 8 | BRBOX_LIBONION_INSTALL_STAGING = YES 9 | BRBOX_LIBONION_CONF_OPTS = -DONION_USE_SSL=false -DONION_USE_PAM=false -DONION_USE_SYSTEMD=false -DONION_USE_SQLITE3=false -DONION_USE_GC=false -DONION_USE_TESTS=false -DONION_EXAMPLES=false -DONION_USE_BINDINGS_CPP=true -DONION_USE_JPEG=false -DONION_USE_PNG=false 10 | BRBOX_LIBONION_LICENSE = GPLv2.0 11 | BRBOX_LIBONION_LICENSE_FILES = COPYING.lib 12 | 13 | $(eval $(cmake-package)) 14 | 15 | -------------------------------------------------------------------------------- /packages/brbox_lightsense/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_LIGHTSENSE 2 | bool "Light-Sensor-Service" 3 | default n 4 | select BR2_PACKAGE_BRBOX_LIBADCMNOLD 5 | help 6 | light sensor service for accessing various color/brightness sensors 7 | 8 | config BR2_PACKAGE_BRBOX_LIGHTSENSE_INIT_ORDER 9 | string "lightsensesrv init.d order" 10 | default "79" 11 | depends on BR2_PACKAGE_BRBOX_LIGHTSENSE 12 | help 13 | At which place in the init.d startup this service should be started. Needs to be a 2-digit integer. 14 | Will be prefixed by "S" by buildroot, so e.g. "79" becomes "S79" 15 | 16 | -------------------------------------------------------------------------------- /packages/brbox_lightsense/brbox_lightsense.mk: -------------------------------------------------------------------------------- 1 | ############################################################# 2 | # 3 | # lightsensrv (light sensor service) 4 | # 5 | ############################################################# 6 | BRBOX_LIGHTSENSE_STARTNUM=$(call qstrip,$(BR2_PACKAGE_BRBOX_LIGHTSENSE_INIT_ORDER)) 7 | BRBOX_LIGHTSENSE_VERSION = 0.1 8 | BRBOX_LIGHTSENSE_SITE_METHOD = local 9 | BRBOX_LIGHTSENSE_SITE = $(TOPDIR)/../sources/services/lightsense 10 | BRBOX_LIGHTSENSE_INSTALL_STAGING = YES 11 | BRBOX_LIGHTSENSE_INSTALL_TARGET = YES 12 | BRBOX_LIGHTSENSE_DEPENDENCIES = i2c-tools json-c brbox_libAdCmnOld brbox_libAdSttngs 13 | BRBOX_LIGHTSENSE_CONF_OPTS=-DCMAKE_INSTALL_PREFIX="/opt/fmw/" -DAUTO_SVN_VERSION=OFF -DINSTALL_MY_HEADERS=OFF -DSTARTNUM=$(BRBOX_LIGHTSENSE_STARTNUM) 14 | $(eval $(cmake-package)) 15 | 16 | -------------------------------------------------------------------------------- /packages/brbox_lightyconfig/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_LIGHTYCONFIG 2 | bool "overwrites default lighttpd configs" 3 | default n 4 | depends on BR2_TARGET_BRBOX_PACKAGES && BR2_PACKAGE_LIGHTTPD 5 | help 6 | overwrites default lighttpd configs with brbox customized config. 7 | 8 | -------------------------------------------------------------------------------- /packages/brbox_lightyconfig/brbox_lightyconfig.mk: -------------------------------------------------------------------------------- 1 | ############################################################# 2 | # 3 | # brbox lightyconfig overlay 4 | # 5 | ############################################################# 6 | BRBOX_LIGHTYCONFIG_SITE_METHOD = local 7 | BRBOX_LIGHTYCONFIG_SITE = $(TOPDIR)/../sources/scripts/cmn/lighty-config 8 | BRBOX_LIGHTYCONFIG_INSTALL_STAGING = NO 9 | BRBOX_LIGHTYCONFIG_INSTALL_TARGET = YES 10 | BRBOX_LIGHTYCONFIG_DEPENDENCIES = lighttpd 11 | BRBOX_LIGHTYCONFIG_CONF_OPTS=-DCMAKE_INSTALL_PREFIX="/" 12 | $(eval $(cmake-package)) 13 | 14 | -------------------------------------------------------------------------------- /packages/brbox_miscbins/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_MISCBINS 2 | bool "misc binary images(pattern files etc)" 3 | default n 4 | depends on BR2_TARGET_BRBOX_PACKAGES 5 | help 6 | includes misc binaries to target file system. 7 | 8 | -------------------------------------------------------------------------------- /packages/brbox_miscbins/brbox_miscbins.mk: -------------------------------------------------------------------------------- 1 | ############################################################# 2 | # 3 | # brbox misc-binary images(ex: patterns etc) 4 | # 5 | ############################################################# 6 | BRBOX_MISCBINS_SITE_METHOD = local 7 | BRBOX_MISCBINS_SITE = $(TOPDIR)/../sources/misc_binaries 8 | BRBOX_MISCBINS_INSTALL_STAGING = NO 9 | BRBOX_MISCBINS_INSTALL_TARGET = YES 10 | #BRBOX_MISCBINS_DEPENDENCIES = tftpd 11 | BRBOX_MISCBINS_CONF_OPTS=-DCMAKE_INSTALL_PREFIX="/" 12 | $(eval $(cmake-package)) 13 | 14 | -------------------------------------------------------------------------------- /packages/brbox_mkimage/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_MKIMAGE 2 | bool "Modified u-boot mkimage tool" 3 | default y 4 | help 5 | mkimage tool modified to support BRBOX image types plus some extra features 6 | 7 | config BR2_PACKAGE_HOST_BRBOX_MKIMAGE 8 | bool "Modified u-boot mkimage tool (for host)" 9 | default n 10 | depends on BR2_PACKAGE_BRBOX_MKIMAGE 11 | help 12 | Also build host tool brbox-mkimage 13 | -------------------------------------------------------------------------------- /packages/brbox_mkimage/brbox_mkimage.mk: -------------------------------------------------------------------------------- 1 | ############################################################# 2 | # 3 | # mkimage for target 4 | # 5 | ############################################################# 6 | BRBOX_MKIMAGE_VERSION = 0.1 7 | BRBOX_MKIMAGE_SITE_METHOD = local 8 | BRBOX_MKIMAGE_SITE = $(TOPDIR)/../sources/utils/brbox-mkimage 9 | BRBOX_MKIMAGE_INSTALL_STAGING = NO 10 | BRBOX_MKIMAGE_INSTALL_TARGET = YES 11 | BRBOX_MKIMAGE_CONF_OPTS=-DMKIMG_HOST_BUILD=OFF -DAUTO_SVN_VERSION=OFF #todo: when SITE_METHOD is svnco, enable AUTO_SVN_VERSION flag 12 | #BRBOX_MKIMAGE_CONF_OPTS=-DCMAKE_INSTALL_PREFIX="/opt/fmw/" 13 | $(eval $(cmake-package)) 14 | 15 | -------------------------------------------------------------------------------- /packages/brbox_mkimage/host-brbox_mkimage.mk: -------------------------------------------------------------------------------- 1 | ############################################################# 2 | # 3 | # mkimage for host 4 | # 5 | ############################################################# 6 | BRBOX_MKIMAGE_VERSION = 0.1 7 | BRBOX_MKIMAGE_SITE_METHOD = local 8 | BRBOX_MKIMAGE_SITE = $(TOPDIR)/../sources/utils/brbox-mkimage 9 | BRBOX_MKIMAGE_INSTALL_STAGING = NO 10 | BRBOX_MKIMAGE_INSTALL_TARGET = NO 11 | HOST_BRBOX_MKIMAGE_CONF_OPTS=-DAUTO_SVN_VERSION=OFF #todo: when SITE_METHOD is svnco, enable this flag 12 | #BRBOX_MKIMAGE_CONF_OPT=-DCMAKE_INSTALL_PREFIX="opt/bin" 13 | $(eval $(host-cmake-package)) 14 | 15 | -------------------------------------------------------------------------------- /packages/brbox_modbussrv/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_MODBUSSRV 2 | bool "Modbus-Control-Service" 3 | default n 4 | select BR2_PACKAGE_BRBOX_LIBADCMNOLD 5 | help 6 | modbus service for supporting modbus control features via rpc 7 | 8 | config BR2_PACKAGE_BRBOX_MODBUSSRV_INIT_ORDER 9 | string "modbussrv init.d order" 10 | default "81" 11 | depends on BR2_PACKAGE_BRBOX_MODBUSSRV 12 | help 13 | At which place in the init.d startup this service should be started. Needs to be a 2-digit integer. 14 | Will be prefixed by "S" by buildroot, so e.g. "77" becomes "S77" 15 | 16 | -------------------------------------------------------------------------------- /packages/brbox_modbussrv/brbox_modbussrv.mk: -------------------------------------------------------------------------------- 1 | ############################################################# 2 | # 3 | # modbussrv (modbus control server) 4 | # 5 | ############################################################# 6 | BRBOX_MODBUSSRV_STARTNUM=$(call qstrip,$(BR2_PACKAGE_BRBOX_MODBUSSRV_INIT_ORDER)) 7 | BRBOX_MODBUSSRV_VERSION = 0.1 8 | BRBOX_MODBUSSRV_SITE_METHOD = local 9 | BRBOX_MODBUSSRV_SITE = $(TOPDIR)/../sources/services/modbussrv 10 | BRBOX_MODBUSSRV_INSTALL_STAGING = YES 11 | BRBOX_MODBUSSRV_INSTALL_TARGET = YES 12 | BRBOX_MODBUSSRV_DEPENDENCIES = json-c brbox_libAdCmnOld brbox_libAdSttngs 13 | BRBOX_MODBUSSRV_CONF_OPTS=-DCMAKE_INSTALL_PREFIX="/opt/fmw/" -DAUTO_SVN_VERSION=OFF -DINSTALL_MY_HEADERS=OFF -DSTARTNUM=$(BRBOX_MODBUSSRV_STARTNUM) 14 | $(eval $(cmake-package)) 15 | 16 | -------------------------------------------------------------------------------- /packages/brbox_mplaysrv/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_MPLAYSRV 2 | bool "Media-Player-Service" 3 | default n 4 | select BR2_PACKAGE_BRBOX_LIBADCMNOLD 5 | help 6 | mplayer service for playing multi-media content 7 | 8 | config BR2_PACKAGE_BRBOX_MPLAYSRV_INIT_ORDER 9 | string "mplaysrv init.d order" 10 | default "75" 11 | depends on BR2_PACKAGE_BRBOX_MPLAYSRV 12 | help 13 | At which place in the init.d startup this service should be started. Needs to be a 2-digit integer. 14 | Will be prefixed by "S" by buildroot, so e.g. "75" becomes "S75" 15 | 16 | -------------------------------------------------------------------------------- /packages/brbox_mplaysrv/brbox_mplaysrv.mk: -------------------------------------------------------------------------------- 1 | ############################################################# 2 | # 3 | # mplaysrv (media-player server) 4 | # 5 | ############################################################# 6 | BRBOX_MPLAYSRV_STARTNUM=$(call qstrip,$(BR2_PACKAGE_BRBOX_MPLAYSRV_INIT_ORDER)) 7 | BRBOX_MPLAYSRV_VERSION = 0.1 8 | BRBOX_MPLAYSRV_SITE_METHOD = local 9 | BRBOX_MPLAYSRV_SITE = $(TOPDIR)/../sources/services/hotwire #hotwire has been renamed to mplaysrv 10 | BRBOX_MPLAYSRV_INSTALL_STAGING = YES 11 | BRBOX_MPLAYSRV_INSTALL_TARGET = YES 12 | BRBOX_MPLAYSRV_DEPENDENCIES = json-c brbox_libAdCmnOld brbox_libAdSttngs opencv 13 | BRBOX_MPLAYSRV_CONF_OPTS=-DCMAKE_INSTALL_PREFIX="/opt/fmw/" -DAUTO_SVN_VERSION=OFF -DINSTALL_MY_HEADERS=OFF -DSTARTNUM=$(BRBOX_MPLAYSRV_STARTNUM) 14 | $(eval $(cmake-package)) 15 | 16 | -------------------------------------------------------------------------------- /packages/brbox_nrtp/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_NRTP 2 | bool "nrtp" 3 | select BR2_PACKAGE_GSTREAMER1_CHECK 4 | select BR2_PACKAGE_GST1_PLUGINS_BASE 5 | select BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_APP 6 | help 7 | nrtp is a new rtp srource/sink gst-plugins from Marc Leeman for easy usability of 8 | audio and video streaming in gstreamer pipelines. 9 | This version is based on GStreamer 1.x 10 | 11 | https://github.com/mleeman/gst-plugins-rtp 12 | 13 | -------------------------------------------------------------------------------- /packages/brbox_nrtp/brbox_nrtp.mk: -------------------------------------------------------------------------------- 1 | ################################################################################ 2 | # 3 | # brbox_nrtp 4 | # 5 | ################################################################################ 6 | BRBOX_NRTP_VERSION = HEAD 7 | BRBOX_NRTP_SITE = https://github.com/mleeman/gst-plugins-rtp.git 8 | BRBOX_NRTP_SITE_METHOD = git 9 | BRBOX_NRTP_INSTALL_STAGING = YES 10 | BRBOX_NRTP_DEPENDENCIES = gstreamer1 gst1-plugins-base 11 | BRBOX_NRTP_LICENSE = LGPL-2.1 12 | BRBOX_NRTP_LICENSE_FILES = COPYING 13 | 14 | $(eval $(meson-package)) 15 | 16 | -------------------------------------------------------------------------------- /packages/brbox_pngview/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_PNGVIEW 2 | bool "brbox-pngview-app" 3 | help 4 | png file rendering tool cloned from. 5 | https://github.com/AndrewFromMelbourne/raspidmx/tree/master/pngview 6 | -------------------------------------------------------------------------------- /packages/brbox_pngview/brbox_pngview.mk: -------------------------------------------------------------------------------- 1 | ################################################################################ 2 | # 3 | # pngview-app 4 | # 5 | ################################################################################ 6 | BRBOX_PNGVIEW_VERSION = master 7 | #BRBOX_PNGVIEW_SITE_METHOD = local 8 | #BRBOX_PNGVIEW_SITE = $(TOPDIR)/../sources/utils/pngview 9 | BRBOX_PNGVIEW_SITE = $(call github,AndrewFromMelbourne,raspidmx,$(BRBOX_PNGVIEW_VERSION)) 10 | BRBOX_PNGVIEW_INSTALL_STAGING = NO 11 | BRBOX_PNGVIEW_DEPENDENCIES = libpng 12 | BRBOX_PNGVIEW_LICENSE = GPL-2.0 13 | BRBOX_PNGVIEW_LICENSE_FILES = COPYING 14 | 15 | define BRBOX_PNGVIEW_BUILD_CMDS 16 | $(MAKE) $(TARGET_CONFIGURE_OPTS) CFLAGS="-I$(@D)/common" -C $(@D) pngview 17 | endef 18 | 19 | #define BRBOX_PNGVIEW_INSTALL_TARGET_CMDS 20 | # $(INSTALL) -D -m 0755 $(@D)/pngview $(TARGET_DIR)/usr/bin/pngview 21 | #endef 22 | 23 | $(eval $(generic-package)) 24 | -------------------------------------------------------------------------------- /packages/brbox_postbootup/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_POSTBOOTUP 2 | bool "linux post-bootup-late-init-script" 3 | default n 4 | depends on BR2_TARGET_BRBOX_PACKAGES 5 | help 6 | includes a late-init script which is used for running custom actions at the last stage of linuxboot. 7 | 8 | -------------------------------------------------------------------------------- /packages/brbox_postbootup/brbox_postbootup.mk: -------------------------------------------------------------------------------- 1 | ############################################################# 2 | # 3 | # brbox post-bootup(late-init) script for custom activities. 4 | # 5 | ############################################################# 6 | BRBOX_POSTBOOTUP_SITE_METHOD = local 7 | BRBOX_POSTBOOTUP_SITE = $(TOPDIR)/../sources/scripts/postbootup 8 | BRBOX_POSTBOOTUP_INSTALL_STAGING = NO 9 | BRBOX_POSTBOOTUP_INSTALL_TARGET = YES 10 | BRBOX_POSTBOOTUP_CONF_OPTS=-DCMAKE_INSTALL_PREFIX="/" 11 | $(eval $(cmake-package)) 12 | 13 | -------------------------------------------------------------------------------- /packages/brbox_preparebootdisk/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_PREPAREBOOTDISK 2 | bool "installs an automated boot disk creation script" 3 | default n 4 | depends on BR2_TARGET_BRBOX_PACKAGES 5 | help 6 | installs automated boot disk creator script to the target script. 7 | 8 | -------------------------------------------------------------------------------- /packages/brbox_preparebootdisk/brbox_preparebootdisk.mk: -------------------------------------------------------------------------------- 1 | ############################################################# 2 | # 3 | # brbox prepare-boot-disk-script. 4 | # 5 | ############################################################# 6 | BRBOX_PREPAREBOOTDISK_SITE_METHOD = local 7 | BRBOX_PREPAREBOOTDISK_SITE = $(TOPDIR)/../sources/scripts/cmn/prepare-boot-disk 8 | BRBOX_PREPAREBOOTDISK_INSTALL_STAGING = NO 9 | BRBOX_PREPAREBOOTDISK_INSTALL_TARGET = YES 10 | BRBOX_PREPAREBOOTDISK_CONF_OPTS=-DCMAKE_INSTALL_PREFIX="/" 11 | $(eval $(cmake-package)) 12 | 13 | -------------------------------------------------------------------------------- /packages/brbox_raspi2_mount/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_RASPI2_MOUNT 2 | bool "Settings partition mount startup-script for raspi2 based target" 3 | default n 4 | depends on BR2_TARGET_BRBOX_PACKAGES 5 | help 6 | provides mounting of settings partition on startup for raspi2 based boards. 7 | 8 | -------------------------------------------------------------------------------- /packages/brbox_raspi2_mount/brbox_raspi2_mount.mk: -------------------------------------------------------------------------------- 1 | ############################################################# 2 | # 3 | # brbox raspi2 mount startup-script 4 | # 5 | ############################################################# 6 | BRBOX_RASPI2_MOUNT_SITE_METHOD = local 7 | BRBOX_RASPI2_MOUNT_SITE = $(TOPDIR)/../sources/scripts/raspi2/boot 8 | BRBOX_RASPI2_MOUNT_INSTALL_STAGING = NO 9 | BRBOX_RASPI2_MOUNT_INSTALL_TARGET = YES 10 | BRBOX_RASPI2_MOUNT_CONF_OPTS=-DCMAKE_INSTALL_PREFIX="/" 11 | $(eval $(cmake-package)) 12 | 13 | -------------------------------------------------------------------------------- /packages/brbox_raspi2_update/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_RASPI2_UPDATE 2 | bool "Update Script for raspi2 based target" 3 | default n 4 | depends on BR2_TARGET_BRBOX_PACKAGES 5 | help 6 | provides in-system failsafe upgrade feature for raspi2 based boards. 7 | 8 | -------------------------------------------------------------------------------- /packages/brbox_raspi2_update/brbox_raspi2_update.mk: -------------------------------------------------------------------------------- 1 | ############################################################# 2 | # 3 | # brbox raspi2 update scripts 4 | # 5 | ############################################################# 6 | BRBOX_RASPI2_UPDATE_SITE_METHOD = local 7 | BRBOX_RASPI2_UPDATE_SITE = $(TOPDIR)/../sources/scripts/raspi2/update 8 | BRBOX_RASPI2_UPDATE_INSTALL_STAGING = NO 9 | BRBOX_RASPI2_UPDATE_INSTALL_TARGET = YES 10 | $(eval $(cmake-package)) 11 | 12 | -------------------------------------------------------------------------------- /packages/brbox_samplemedia/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_SAMPLEMEDIA 2 | bool "sample media files" 3 | default n 4 | depends on BR2_TARGET_BRBOX_PACKAGES 5 | help 6 | includes sample media files to target file system. 7 | 8 | -------------------------------------------------------------------------------- /packages/brbox_samplemedia/brbox_samplemedia.mk: -------------------------------------------------------------------------------- 1 | ############################################################# 2 | # 3 | # brbox sample-media files(ex: mkv/mp4 audio/video files) 4 | # 5 | ############################################################# 6 | BRBOX_SAMPLEMEDIA_SITE_METHOD = local 7 | BRBOX_SAMPLEMEDIA_SITE = $(TOPDIR)/../sources/sample-media 8 | BRBOX_SAMPLEMEDIA_INSTALL_STAGING = NO 9 | BRBOX_SAMPLEMEDIA_INSTALL_TARGET = YES 10 | BRBOX_SAMPLEMEDIA_CONF_OPTS=-DCMAKE_INSTALL_PREFIX="/" 11 | $(eval $(cmake-package)) 12 | 13 | -------------------------------------------------------------------------------- /packages/brbox_smarteye/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_SMARTEYE 2 | bool "Smart-Eye-Service" 3 | default n 4 | select BR2_PACKAGE_BRBOX_LIBADCMNOLD 5 | help 6 | smarteye service for machine processed imaging 7 | 8 | config BR2_PACKAGE_BRBOX_SMARTEYE_INIT_ORDER 9 | string "smarteye init.d order" 10 | default "72" 11 | depends on BR2_PACKAGE_BRBOX_SMARTEYE 12 | help 13 | At which place in the init.d startup this service should be started. Needs to be a 2-digit integer. 14 | Will be prefixed by "S" by buildroot, so e.g. "77" becomes "S77" 15 | 16 | -------------------------------------------------------------------------------- /packages/brbox_smarteye/brbox_smarteye.mk: -------------------------------------------------------------------------------- 1 | ############################################################# 2 | # 3 | # smarteye (smarteye control server) 4 | # 5 | ############################################################# 6 | BRBOX_SMARTEYE_STARTNUM=$(call qstrip,$(BR2_PACKAGE_BRBOX_SMARTEYE_INIT_ORDER)) 7 | BRBOX_SMARTEYE_VERSION = 0.1 8 | BRBOX_SMARTEYE_SITE_METHOD = local 9 | BRBOX_SMARTEYE_SITE = $(TOPDIR)/../sources/services/smarteye 10 | BRBOX_SMARTEYE_INSTALL_STAGING = YES 11 | BRBOX_SMARTEYE_INSTALL_TARGET = YES 12 | BRBOX_SMARTEYE_DEPENDENCIES = json-c brbox_libAdCmnOld brbox_libAdSttngs opencv 13 | BRBOX_SMARTEYE_CONF_OPTS=-DCMAKE_INSTALL_PREFIX="/opt/fmw/" -DAUTO_SVN_VERSION=OFF -DINSTALL_MY_HEADERS=OFF -DSTARTNUM=$(BRBOX_SMARTEYE_STARTNUM) 14 | $(eval $(cmake-package)) 15 | 16 | -------------------------------------------------------------------------------- /packages/brbox_sysmgr/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_SYSMGR 2 | bool "System-Manager-Service" 3 | default y 4 | select BR2_PACKAGE_BRBOX_LIBADCMNOLD 5 | help 6 | system manager service for supporting various system features via rpc 7 | 8 | config BR2_PACKAGE_BRBOX_SYSMGR_INIT_ORDER 9 | string "smarteye init.d order" 10 | default "70" 11 | depends on BR2_PACKAGE_BRBOX_SYSMGR 12 | help 13 | At which place in the init.d startup this service should be started. Needs to be a 2-digit integer. 14 | Will be prefixed by "S" by buildroot, so e.g. "77" becomes "S77" 15 | 16 | -------------------------------------------------------------------------------- /packages/brbox_sysmgr/brbox_sysmgr.mk: -------------------------------------------------------------------------------- 1 | ############################################################# 2 | # 3 | # sysmgr server 4 | # 5 | ############################################################# 6 | BRBOX_SYSMGR_STARTNUM=$(call qstrip,$(BR2_PACKAGE_BRBOX_SYSMGR_INIT_ORDER)) 7 | BRBOX_SYSMGR_VERSION = 0.1 8 | BRBOX_SYSMGR_SITE_METHOD = local 9 | BRBOX_SYSMGR_SITE = $(TOPDIR)/../sources/services/sysmgr 10 | BRBOX_SYSMGR_INSTALL_STAGING = YES 11 | BRBOX_SYSMGR_INSTALL_TARGET = YES 12 | BRBOX_SYSMGR_DEPENDENCIES = json-c brbox_libAdCmnOld brbox_libAdSttngs 13 | BRBOX_SYSMGR_CONF_OPTS=-DCMAKE_INSTALL_PREFIX="/opt/fmw/" -DAUTO_SVN_VERSION=OFF -DINSTALL_MY_HEADERS=OFF -DINSTALL_CLIENT=ON -DSTARTNUM=$(BRBOX_SYSMGR_STARTNUM) 14 | $(eval $(cmake-package)) 15 | 16 | -------------------------------------------------------------------------------- /packages/brbox_tftpdconfig/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_TFTPDCONFIG 2 | bool "overwrites default tftpd config" 3 | default n 4 | depends on BR2_TARGET_BRBOX_PACKAGES && BR2_PACKAGE_TFTPD 5 | help 6 | overwrites default tftpd config with brbox customized config. 7 | 8 | -------------------------------------------------------------------------------- /packages/brbox_tftpdconfig/brbox_tftpdconfig.mk: -------------------------------------------------------------------------------- 1 | ############################################################# 2 | # 3 | # brbox tftpd-config overlay 4 | # 5 | ############################################################# 6 | BRBOX_TFTPDCONFIG_SITE_METHOD = local 7 | BRBOX_TFTPDCONFIG_SITE = $(TOPDIR)/../sources/scripts/cmn/tftpd-config 8 | BRBOX_TFTPDCONFIG_INSTALL_STAGING = NO 9 | BRBOX_TFTPDCONFIG_INSTALL_TARGET = YES 10 | BRBOX_TFTPDCONFIG_DEPENDENCIES = tftpd 11 | BRBOX_TFTPDCONFIG_CONF_OPTS=-DCMAKE_INSTALL_PREFIX="/" 12 | $(eval $(cmake-package)) 13 | 14 | -------------------------------------------------------------------------------- /packages/brbox_umtskeeper/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_UMTSKEEPER 2 | bool "3g data connectivity script" 3 | default n 4 | depends on BR2_TARGET_BRBOX_PACKAGES 5 | help 6 | provides 3g data connectivity and monitoring to keep the connection alive. 7 | 8 | -------------------------------------------------------------------------------- /packages/brbox_umtskeeper/brbox_umtskeeper.mk: -------------------------------------------------------------------------------- 1 | ############################################################# 2 | # 3 | # brbox umtskeeper for 3g data connectivity 4 | # 5 | ############################################################# 6 | BRBOX_UMTSKEEPER_SITE_METHOD = local 7 | BRBOX_UMTSKEEPER_SITE = $(TOPDIR)/../sources/scripts/cmn/umts-keeper 8 | BRBOX_UMTSKEEPER_INSTALL_STAGING = NO 9 | BRBOX_UMTSKEEPER_INSTALL_TARGET = YES 10 | BRBOX_UMTSKEEPER_CONF_OPTS=-DCMAKE_INSTALL_PREFIX="/" 11 | $(eval $(cmake-package)) 12 | 13 | -------------------------------------------------------------------------------- /packages/brbox_x11startup/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_X11STARTUP 2 | bool "X11 display server startup script and dependencies for brbox platform" 3 | default n 4 | depends on BR2_TARGET_BRBOX_PACKAGES 5 | help 6 | provides mechanism to auto start X display server on linux bootup. 7 | 8 | -------------------------------------------------------------------------------- /packages/brbox_x11startup/brbox_x11startup.mk: -------------------------------------------------------------------------------- 1 | ############################################################# 2 | # 3 | # brbox x display-server startup-script 4 | # 5 | ############################################################# 6 | BRBOX_X11STARTUP_SITE_METHOD = local 7 | BRBOX_X11STARTUP_SITE = $(TOPDIR)/../sources/scripts/cmn/X11-startup-script 8 | BRBOX_X11STARTUP_INSTALL_STAGING = NO 9 | BRBOX_X11STARTUP_INSTALL_TARGET = YES 10 | BRBOX_X11STARTUP_CONF_OPTS=-DCMAKE_INSTALL_PREFIX="/" 11 | $(eval $(cmake-package)) 12 | 13 | -------------------------------------------------------------------------------- /packages/brbox_xmproxy/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_XMPROXY 2 | bool "Xmproxy-Service" 3 | default n 4 | select BR2_PACKAGE_BRBOX_LIBADCMNOLD 5 | select BR2_PACKAGE_BRBOX_LIBGLOOX 6 | help 7 | xmpp client agent for remote connectivity of devices behind firewall 8 | 9 | config BR2_PACKAGE_BRBOX_XMPROXY_INIT_ORDER 10 | string "xmproxy init.d order" 11 | default "74" 12 | depends on BR2_PACKAGE_BRBOX_XMPROXY 13 | help 14 | At which place in the init.d startup this service should be started. Needs to be a 2-digit integer. 15 | Will be prefixed by "S" by buildroot, so e.g. "77" becomes "S77" 16 | 17 | -------------------------------------------------------------------------------- /packages/brbox_xmproxy/brbox_xmproxy.mk: -------------------------------------------------------------------------------- 1 | ############################################################# 2 | # 3 | # xmproxy (xmpp client agent) 4 | # 5 | ############################################################# 6 | BRBOX_XMPROXY_STARTNUM=$(call qstrip,$(BR2_PACKAGE_BRBOX_XMPROXY_INIT_ORDER)) 7 | BRBOX_XMPROXY_VERSION = 0.1 8 | BRBOX_XMPROXY_SITE_METHOD = local 9 | BRBOX_XMPROXY_SITE = $(TOPDIR)/../sources/services/xmproxy 10 | BRBOX_XMPROXY_INSTALL_STAGING = YES 11 | BRBOX_XMPROXY_INSTALL_TARGET = YES 12 | BRBOX_XMPROXY_DEPENDENCIES = json-c brbox_libAdCmnOld brbox_libAdSttngs brbox_libgloox 13 | BRBOX_XMPROXY_CONF_OPTS=-DCMAKE_INSTALL_PREFIX="/opt/fmw/" -DAUTO_SVN_VERSION=OFF -DINSTALL_MY_HEADERS=OFF -DINSTALL_CLIENT=ON -DSTARTNUM=$(BRBOX_XMPROXY_STARTNUM) 14 | $(eval $(cmake-package)) 15 | 16 | -------------------------------------------------------------------------------- /packages/brbox_zbarimg/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_BRBOX_ZBARIMG 2 | bool "prebuilt raspi1-zbarimg binary" 3 | default n 4 | help 5 | includes prebuilt raspi1-zbarimg binary to targetfs. 6 | 7 | -------------------------------------------------------------------------------- /packages/brbox_zbarimg/brbox_zbarimg.mk: -------------------------------------------------------------------------------- 1 | ############################################################# 2 | # 3 | # brbox zbarimg prebuilt binary 4 | # 5 | ############################################################# 6 | BRBOX_ZBARIMG_SITE_METHOD = local 7 | BRBOX_ZBARIMG_SITE = $(TOPDIR)/../prebuilt-bins/raspi1 8 | BRBOX_ZBARIMG_INSTALL_STAGING = NO 9 | BRBOX_ZBARIMG_INSTALL_TARGET = YES 10 | #BRBOX_ZBARIMG_DEPENDENCIES = lighttpd 11 | BRBOX_ZBARIMG_CONF_OPTS=-DCMAKE_INSTALL_PREFIX="/" 12 | $(eval $(cmake-package)) 13 | 14 | -------------------------------------------------------------------------------- /prebuilt-bins/raspi1/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | #this cmake is only used for installing scripts to target) 2 | cmake_minimum_required(VERSION 2.8.9) 3 | set(ZBARIMG_BIN_FILE zbarimg) 4 | 5 | file(GLOB BIN_FILES ${ZBARIMG_BIN_FILE}) 6 | install(PROGRAMS ${BIN_FILES} DESTINATION usr/bin/) 7 | 8 | -------------------------------------------------------------------------------- /prebuilt-bins/raspi1/zbarimg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/prebuilt-bins/raspi1/zbarimg -------------------------------------------------------------------------------- /scripts/sudo-grub2-bootdisk.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/expect -f 2 | 3 | #./sudo-grub2-bootdisk.sh /home/adav/sandbox/brbox/trunk/scripts/grub2-bootdisk.sh /mnt/buildramdisk/x86 02.00.23456 /mnt/buildramdisk/x86/images/out.disk.img 4 | 5 | # set standard arguments to local Variables 6 | set grub2scr [lrange $argv 0 0] 7 | set outfolder [lrange $argv 1 1] 8 | set diskversion [lrange $argv 2 2] 9 | set outimgname [lrange $argv 3 3] 10 | set sudo_password [lrange $argv 4 4] 11 | 12 | set timeout -1 13 | spawn sudo -k $grub2scr -o "$outfolder" -v "$diskversion" -i $outimgname 14 | 15 | match_max 100000 16 | expect "*?assword" 17 | send -- "$sudo_password\r" 18 | expect eof 19 | 20 | -------------------------------------------------------------------------------- /sources/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 2.8.9) 2 | set(PROJECT_NAME BrBoxComponents) 3 | project(${PROJECT_NAME}) 4 | option(SDSRV_USE_MUSL "link with musl c library" OFF) 5 | if(${SDSRV_USE_MUSL}) 6 | add_definitions(-DSDSRV_USE_MUSL_LIB) 7 | endif() 8 | add_subdirectory(lib) 9 | add_subdirectory(services) 10 | add_subdirectory(utils) 11 | #add_subdirectory(kmods) 12 | 13 | #for cross compiling 14 | #cmake -H. -BOutput -DCMAKE_TOOLCHAIN_FILE=/path/to/toolchain-arm-backup.cmake -DCMAKE_INSTALL_PREFIX=/home/user/tmp/ 15 | #cmake --build Output -- all 16 | #cmake --build Output -- install -j$(nproc) 17 | 18 | #for local compiling 19 | #cmake -H. -BOutput -DCMAKE_INSTALL_PREFIX=/home/adav/tmp/brbox -DAUTO_SVN_VERSION=OFF -DINSTALL_CLIENT=ON 20 | #cmake -H. -BOutput 21 | #cmake --build Output -- all -j$(nproc) 22 | 23 | #for cleaning make generated output 24 | #rm -rf Output 25 | 26 | -------------------------------------------------------------------------------- /sources/cmake/brbox-raspi1-arm.cmake: -------------------------------------------------------------------------------- 1 | # this one is important 2 | SET(CMAKE_SYSTEM_NAME Linux) 3 | #this one not so much 4 | #SET(CMAKE_SYSTEM_VERSION 1) 5 | 6 | # specify the cross compiler 7 | SET(CMAKE_C_COMPILER /opt/brbox-raspi1-arm/usr/bin/arm-buildroot-linux-gnueabi-gcc) 8 | SET(CMAKE_CXX_COMPILER /opt/brbox-raspi1-arm/usr/bin/arm-buildroot-linux-gnueabi-g++) 9 | 10 | # where is the target environment 11 | SET(CMAKE_FIND_ROOT_PATH /opt/brbox-raspi1-arm /opt/brbox-raspi1-arm/usr/arm-buildroot-linux-gnueabi/sysroot) 12 | 13 | # search for programs in the build host directories 14 | SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) 15 | # for libraries and headers in the target directories 16 | SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) 17 | SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) 18 | -------------------------------------------------------------------------------- /sources/cmake/brbox-x86.cmake: -------------------------------------------------------------------------------- 1 | # this one is important 2 | SET(CMAKE_SYSTEM_NAME Linux) 3 | #this one not so much 4 | #SET(CMAKE_SYSTEM_VERSION 1) 5 | 6 | # specify the cross compiler 7 | SET(CMAKE_C_COMPILER /opt/brbox-x86/usr/bin/x86_64-buildroot-linux-gnu-gcc) 8 | SET(CMAKE_CXX_COMPILER /opt/brbox-x86/usr/bin/x86_64-buildroot-linux-gnu-g++) 9 | 10 | # where is the target environment 11 | SET(CMAKE_FIND_ROOT_PATH /opt/brbox-x86 /opt/brbox-x86/usr/x86_64-buildroot-linux-gnu/sysroot) 12 | 13 | # search for programs in the build host directories 14 | SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) 15 | # for libraries and headers in the target directories 16 | SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) 17 | SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) 18 | -------------------------------------------------------------------------------- /sources/cmake/lede-a5v11-mips.cmake: -------------------------------------------------------------------------------- 1 | # this one is important 2 | SET(CMAKE_SYSTEM_NAME Linux) 3 | #this one not so much 4 | #SET(CMAKE_SYSTEM_VERSION 1) 5 | 6 | # specify the cross compiler 7 | SET(CMAKE_C_COMPILER /opt/lede-a5v11/bin/mipsel-openwrt-linux-gcc) 8 | SET(CMAKE_CXX_COMPILER /opt/lede-a5v11/bin/mipsel-openwrt-linux-g++) 9 | 10 | # where is the target environment 11 | SET(CMAKE_FIND_ROOT_PATH /opt/lede-a5v11/target-mipsel_24kc_musl) 12 | 13 | # search for programs in the build host directories 14 | SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) 15 | # for libraries and headers in the target directories 16 | SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) 17 | SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) 18 | -------------------------------------------------------------------------------- /sources/cmake/toolchain-arm-backup.cmake: -------------------------------------------------------------------------------- 1 | # this one is important 2 | SET(CMAKE_SYSTEM_NAME Linux) 3 | #this one not so much 4 | #SET(CMAKE_SYSTEM_VERSION 1) 5 | 6 | # specify the cross compiler 7 | SET(CMAKE_C_COMPILER /opt/arm-backup/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc) 8 | SET(CMAKE_CXX_COMPILER /opt/arm-backup/usr/bin/arm-buildroot-linux-uclibcgnueabi-g++) 9 | 10 | # where is the target environment 11 | SET(CMAKE_FIND_ROOT_PATH /opt/arm-backup /opt/arm-backup/usr/arm-buildroot-linux-uclibcgnueabi/sysroot) 12 | 13 | # search for programs in the build host directories 14 | SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) 15 | # for libraries and headers in the target directories 16 | SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) 17 | SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) 18 | -------------------------------------------------------------------------------- /sources/firmware/.usbconfig.h.kate-swp: -------------------------------------------------------------------------------- 1 | Kate Swap File - Version 1.0SWeESWfESWgESIgH#define USB_RESET_HOOK(resetStarts) if(!resetStarts){hadUsbReset();}WgHIh#ifndef __ASSEMBLER__WhIi5extern void hadUsbReset(void); // define the functionWi5Ij#endifWjESUkRjUjRi5UiRhUhRgHESUhUgUfE -------------------------------------------------------------------------------- /sources/firmware/attiny85-hid-rotary/images/connection-diagram.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/sources/firmware/attiny85-hid-rotary/images/connection-diagram.jpg -------------------------------------------------------------------------------- /sources/firmware/attiny85-hid-rotary/images/required-items.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/sources/firmware/attiny85-hid-rotary/images/required-items.jpg -------------------------------------------------------------------------------- /sources/firmware/attiny85-hid-rotary/images/volume-control-knob.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/sources/firmware/attiny85-hid-rotary/images/volume-control-knob.jpg -------------------------------------------------------------------------------- /sources/firmware/attiny85-hid-rotary/usbdrv/usbdrvasm.asm: -------------------------------------------------------------------------------- 1 | /* Name: usbdrvasm.asm 2 | * Project: V-USB, virtual USB port for Atmel's(r) AVR(r) microcontrollers 3 | * Author: Christian Starkjohann 4 | * Creation Date: 2006-03-01 5 | * Tabsize: 4 6 | * Copyright: (c) 2006 by OBJECTIVE DEVELOPMENT Software GmbH 7 | * License: GNU GPL v2 (see License.txt), GNU GPL v3 or proprietary (CommercialLicense.txt) 8 | * This Revision: $Id$ 9 | */ 10 | 11 | /* 12 | General Description: 13 | The IAR compiler/assembler system prefers assembler files with file extension 14 | ".asm". We simply provide this file as an alias for usbdrvasm.S. 15 | 16 | Thanks to Oleg Semyonov for his help with the IAR tools port! 17 | */ 18 | 19 | #include "usbdrvasm.S" 20 | 21 | end 22 | -------------------------------------------------------------------------------- /sources/firmware/attiny85-hid/readme.txt: -------------------------------------------------------------------------------- 1 | This folder contains the source code of digispark-attiny85 firmware, 2 | This firmware allows you to turn your digispark board as 4-input usb-hid-keyboard. 3 | digispark-attiny85 board: http://digistump.com/products/1 4 | 5 | how to build and flash firmware: 6 | 1)ensure that avr-gcc and related tools are installed on your linux machine. 7 | 2)ensure that your digispark-attiny85 board is programmed with micronucleus bootloader. 8 | 3)do "make hex" to generate main.hex file 9 | 4)sudo ./micronucleus main.hex ("Please plug in the device" will show-up, 10 | now insert the board to usb port of your linux machine) 11 | 5)After successful flashing of main.hex, your digispark-attiny85 board will be 12 | detected by your linux machine as USB HID v1.01 Keyboard. 13 | 6)you need to connect four free pin's of digispark-attiny85 to four push-buttons between 14 | pullup resistors and GND. 15 | 16 | -------------------------------------------------------------------------------- /sources/firmware/attiny85-hid/usbdrv/usbdrvasm.asm: -------------------------------------------------------------------------------- 1 | /* Name: usbdrvasm.asm 2 | * Project: V-USB, virtual USB port for Atmel's(r) AVR(r) microcontrollers 3 | * Author: Christian Starkjohann 4 | * Creation Date: 2006-03-01 5 | * Tabsize: 4 6 | * Copyright: (c) 2006 by OBJECTIVE DEVELOPMENT Software GmbH 7 | * License: GNU GPL v2 (see License.txt), GNU GPL v3 or proprietary (CommercialLicense.txt) 8 | * This Revision: $Id$ 9 | */ 10 | 11 | /* 12 | General Description: 13 | The IAR compiler/assembler system prefers assembler files with file extension 14 | ".asm". We simply provide this file as an alias for usbdrvasm.S. 15 | 16 | Thanks to Oleg Semyonov for his help with the IAR tools port! 17 | */ 18 | 19 | #include "usbdrvasm.S" 20 | 21 | end 22 | -------------------------------------------------------------------------------- /sources/firmware/micronucleus-cmdline/Makefile: -------------------------------------------------------------------------------- 1 | SOURCES := littleWire_util.c micronucleus.c micronucleus_lib.c 2 | HEADERS := littleWire_util.h micronucleus_lib.h 3 | LFLAGS += `pkg-config --libs --cflags libusb-1.0` 4 | 5 | all: micronucleus 6 | 7 | micronucleus: $(SOURCES) $(HEADERS) 8 | $(CROSS_COMPILE)gcc $(I386_FLAG) -Wall -DUSE_HOSTCC $(SOURCES) $(LFLAGS) -o micronucleus 9 | 10 | .PHONY: version 11 | 12 | clean: 13 | rm -f micronucleus 14 | 15 | -------------------------------------------------------------------------------- /sources/firmware/micronucleus-cmdline/littleWire_util.c: -------------------------------------------------------------------------------- 1 | #include "littleWire_util.h" 2 | 3 | /* Delay in miliseconds */ 4 | void delay(unsigned int duration) { 5 | #if defined _WIN32 || defined _WIN64 6 | // use windows sleep api with milliseconds 7 | // * 2 to make it run at half speed, because windows seems to have some trouble with this... 8 | Sleep(duration * 2); 9 | #else 10 | // use standard unix api with microseconds 11 | usleep(duration*1000); 12 | #endif 13 | } 14 | -------------------------------------------------------------------------------- /sources/firmware/micronucleus-cmdline/littleWire_util.h: -------------------------------------------------------------------------------- 1 | #ifndef LITTLEWIRE_UTIL_H 2 | #define LITTLEWIRE_UTIL_H 3 | 4 | #include 5 | 6 | /* Delay in miliseconds */ 7 | void delay(unsigned int duration); 8 | 9 | // end LITTLEWIRE_UTIL_H section: 10 | #endif 11 | -------------------------------------------------------------------------------- /sources/firmware/micronucleus-cmdline/micronucleus: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/sources/firmware/micronucleus-cmdline/micronucleus -------------------------------------------------------------------------------- /sources/firmware/micronucleus-cmdline/readme.txt: -------------------------------------------------------------------------------- 1 | how to compile: 2 | sudo apt-get install libusb-1.0-0-dev 3 | gcc -o micronucleus littleWire_util.c micronucleus_lib.c micronucleus.c `pkg-config --libs --cflags libusb-1.0` 4 | -------------------------------------------------------------------------------- /sources/firmware/mx-usb-isp/progisp1.72.rar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/sources/firmware/mx-usb-isp/progisp1.72.rar -------------------------------------------------------------------------------- /sources/firmware/mx-usb-isp/programmer-screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/sources/firmware/mx-usb-isp/programmer-screenshot.png -------------------------------------------------------------------------------- /sources/firmware/mx-usb-isp/readme.txt: -------------------------------------------------------------------------------- 1 | 1)download progisp1.72.rar (http://www.electrodragon.com/w/ProgISP) 2 | 2)download fernando's usbAsp hex for atmega88 (http://www.sciencetronics.com/greenphotons/?p=938) 3 | 3)fernando hexfile download link: https://www.dropbox.com/s/88zve7kq2mc0h38/ATmega88.hex?dl=0 4 | 4)plugin working mx-usbisp programmer to windows machine. 5 | 5)connect flat ribbon cable between two mx-usbisp's 6 | 6)short <-up-> jumper on the target mx-usbisp board(open the aluminium casing). 7 | 7)start progisp1.72 program, and select atmega88 device and fuse value should be 0xF9DFFF 8 | 8)press auto button, after programming, remove the jumper. 9 | 9)connect newly updated target mx-usb-isp to linux pc, do dmesg, usbasp device should be detected. 10 | 11 | 12 | how to convert ms-usb-isp to usp-i2c converter? 13 | http://homes-smart.ru/index.php/oborudovanie/prochee/i2c-usb-perekhodnik 14 | -------------------------------------------------------------------------------- /sources/kmods/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 2.8.9) 2 | set(PROJECT_NAME BrBoxKmods) 3 | project(${PROJECT_NAME}) 4 | add_subdirectory(genintrdrv) 5 | 6 | #for cross compiling 7 | #cmake -H. -BOutput -DCMAKE_TOOLCHAIN_FILE=/path/to/toolchain-arm-backup.cmake -DCMAKE_INSTALL_PREFIX=/home/user/tmp/ 8 | #cmake --build Output -- all 9 | #cmake --build Output -- install 10 | 11 | #for local compiling 12 | #cmake -H. -BOutput 13 | #cmake --build Output -- all 14 | 15 | #for cleaning make generated output 16 | #rm -rf Output 17 | 18 | -------------------------------------------------------------------------------- /sources/kmods/cmnsrc/sl_chain.h: -------------------------------------------------------------------------------- 1 | //spinlock chain 2 | #ifndef _SL_CHAIN_H_ 3 | #define _SL_CHAIN_H_ 4 | #include 5 | 6 | //content moved to chain.h 7 | #include "chain.h" 8 | 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /sources/kmods/genintrdrv/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 2.8.9) 2 | set(PROJECT_NAME GenIntrDrv) 3 | project(${PROJECT_NAME}) 4 | #todo add building of kernel module 5 | add_subdirectory(kmodclt) 6 | 7 | #for cross compiling 8 | #cmake -H. -BOutput -DCMAKE_TOOLCHAIN_FILE=/path/to/toolchain-arm-backup.cmake -DCMAKE_INSTALL_PREFIX=/home/user/tmp/ 9 | #cmake --build Output -- all 10 | #cmake --build Output -- install 11 | 12 | #for local compiling 13 | #cmake -H. -BOutput 14 | #cmake --build Output -- all 15 | 16 | #for cleaning make generated output 17 | #rm -rf Output 18 | -------------------------------------------------------------------------------- /sources/kmods/genintrdrv/Kbuild: -------------------------------------------------------------------------------- 1 | obj-m := genintrdrv.o 2 | INCLDIR=$(PWD)/include/linux 3 | genintrdrv-y := kmod/genintrdrv.o kmod/chain.o kmod/sl_chain.o 4 | ccflags-y := -I$(INCLDIR) 5 | 6 | -------------------------------------------------------------------------------- /sources/kmods/genintrdrv/Makefile: -------------------------------------------------------------------------------- 1 | CONFIG_MODULE_SIG=n 2 | MODULENAME=genintrdrv 3 | INCLDIR=$(PWD)/include/linux 4 | obj-m += kmod/$(MODULENAME).o 5 | 6 | ifeq ("$(Cross)","yes") 7 | KDIR := /lib/modules/$(shell uname -r)/build #/home/adav/tmp/kernels/linux-omap-5f0a6e2 8 | ARCH := arm 9 | CROSS_COMPILE := /opt/brbox-raspi1-arm/usr/bin/arm-linux- 10 | MAKEARCH := make ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) 11 | else 12 | KDIR := /lib/modules/$(shell uname -r)/build 13 | MAKEARCH := make 14 | endif 15 | 16 | module: 17 | $(MAKEARCH) -C $(KDIR) M=$(PWD) modules 18 | #make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules 19 | clean: 20 | $(MAKEARCH) -C $(KDIR) M=$(PWD) clean 21 | #make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean 22 | 23 | install: 24 | sudo insmod $(MODULENAME).ko 25 | sudo chmod 666 /dev/$(MODULENAME) 26 | 27 | uninstall: 28 | sudo rmmod $(MODULENAME) 29 | -------------------------------------------------------------------------------- /sources/kmods/genintrdrv/kmod/sl_chain.h: -------------------------------------------------------------------------------- 1 | //spinlock chain 2 | #ifndef _SL_CHAIN_H_ 3 | #define _SL_CHAIN_H_ 4 | #include 5 | 6 | //content moved to chain.h 7 | #include "chain.h" 8 | 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /sources/kmods/genintrdrv/kmodclt/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | #include "KmodCltCmdline.h" 6 | using namespace std; 7 | int main(int argc, const char* argv[]) 8 | { 9 | KmodCltCmdline CmdLine; 10 | CmdLine.parse_cmdline_arguments(argc,(char**)argv); 11 | return 0; 12 | } 13 | -------------------------------------------------------------------------------- /sources/kmods/genintrdrv/readme.txt: -------------------------------------------------------------------------------- 1 | this is a generic interrupt driver(kernel module). 2 | it allows userspace program to register for a signal via ioctl for a specific interrupt, when interrupt event happens, this module would send the registered signal to the userspace program's pid 3 | 4 | -------------------------------------------------------------------------------- /sources/kmods/i210-igb-avb/igb_avb.7: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/sources/kmods/i210-igb-avb/igb_avb.7 -------------------------------------------------------------------------------- /sources/kmods/i210-igb-avb/pci.updates: -------------------------------------------------------------------------------- 1 | # updates for the system pci.ids file 2 | # 3 | # IMPORTANT! Entries in this list must be sorted as they 4 | # would appear in the system pci.ids file. Entries 5 | # are sorted by ven, dev, subven, subdev 6 | # (numerical order). 7 | # 8 | 8086 Intel Corporation 9 | 1533 I210 Gigabit Network Connection 10 | 103c 0003 Ethernet I210-T1 GbE NIC 11 | 8086 0001 Ethernet Server Adapter I210-T1 12 | 8086 0002 Ethernet Server Adapter I210-T1 13 | 1534 I210 Gigabit Network Connection 14 | 1535 I210 Gigabit Network Connection 15 | 1536 I210 Gigabit Fiber Network Connection 16 | 1537 I210 Gigabit Backplane Network Connection 17 | 1538 I210 Gigabit Network Connection 18 | 157b I210 Gigabit Network Connection 19 | 157c I210 Gigabit Backplane Connection 20 | -------------------------------------------------------------------------------- /sources/kmods/i210-igb-avb/startup.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Network interface name (e.g. Fedora=p2p1, Ubuntu=eth2, OpenSUSE=ens01) 4 | INTERFACE=p2p1 5 | export INTERFACE 6 | 7 | rmmod igb 8 | rmmod igb_avb 9 | insmod ./igb_avb.ko 10 | sleep 1 11 | ifconfig $INTERFACE down 12 | echo 0 > /sys/class/net/$INTERFACE/queues/tx-0/xps_cpus 13 | echo 0 > /sys/class/net/$INTERFACE/queues/tx-1/xps_cpus 14 | echo f > /sys/class/net/$INTERFACE/queues/tx-2/xps_cpus 15 | echo f > /sys/class/net/$INTERFACE/queues/tx-3/xps_cpus 16 | ifconfig $INTERFACE up 17 | -------------------------------------------------------------------------------- /sources/kmods/i2c-stub/Kbuild: -------------------------------------------------------------------------------- 1 | obj-m := i2c-stub.o 2 | INCLDIR=$(PWD)/include/linux 3 | i2c-stub-y := kmod/i2c-stub.o 4 | ccflags-y := -I$(INCLDIR) 5 | 6 | -------------------------------------------------------------------------------- /sources/kmods/i2c-stub/Makefile: -------------------------------------------------------------------------------- 1 | CONFIG_MODULE_SIG=n 2 | MODULENAME=i2c-stub 3 | INCLDIR=$(PWD)/include/linux 4 | obj-m += kmod/$(MODULENAME).o 5 | 6 | ifeq ("$(Cross)","yes") 7 | KDIR := /lib/modules/$(shell uname -r)/build #/home/adav/tmp/kernels/linux-omap-5f0a6e2 8 | ARCH := arm 9 | CROSS_COMPILE := /opt/brbox-raspi1-arm/usr/bin/arm-linux- 10 | MAKEARCH := make ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) 11 | else 12 | KDIR := /lib/modules/$(shell uname -r)/build 13 | MAKEARCH := make 14 | endif 15 | 16 | module: 17 | $(MAKEARCH) -C $(KDIR) M=$(PWD) modules 18 | #make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules 19 | clean: 20 | $(MAKEARCH) -C $(KDIR) M=$(PWD) clean 21 | #make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean 22 | 23 | install: 24 | sudo insmod $(MODULENAME).ko 25 | sudo chmod 666 /dev/$(MODULENAME) 26 | 27 | uninstall: 28 | sudo rmmod $(MODULENAME) 29 | 30 | -------------------------------------------------------------------------------- /sources/kmods/i2c-tiny-usb/Makefile: -------------------------------------------------------------------------------- 1 | CONFIG_MODULE_SIG=n 2 | MODULENAME=i2c-tiny-usb 3 | INCLDIR=$(PWD)/include/linux 4 | obj-m += kmod/$(MODULENAME).o 5 | 6 | ifeq ("$(Cross)","yes") 7 | KDIR := /lib/modules/$(shell uname -r)/build #/home/adav/tmp/kernels/linux-omap-5f0a6e2 8 | ARCH := arm 9 | CROSS_COMPILE := /opt/brbox-raspi1-arm/usr/bin/arm-linux- 10 | MAKEARCH := make ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) 11 | else 12 | KDIR := /lib/modules/$(shell uname -r)/build 13 | MAKEARCH := make 14 | endif 15 | 16 | module: 17 | $(MAKEARCH) -C $(KDIR) M=$(PWD) modules 18 | #make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules 19 | clean: 20 | $(MAKEARCH) -C $(KDIR) M=$(PWD) clean 21 | #make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean 22 | 23 | install: 24 | sudo insmod $(MODULENAME).ko 25 | sudo chmod 666 /dev/$(MODULENAME) 26 | 27 | uninstall: 28 | sudo rmmod $(MODULENAME) 29 | 30 | -------------------------------------------------------------------------------- /sources/kmods/usb-iss/Kbuild: -------------------------------------------------------------------------------- 1 | obj-m := i2c-devantech-iss.o 2 | INCLDIR=$(PWD)/include/linux 3 | i2c-devantech-iss-y := kmod/i2c-devantech-iss.o 4 | ccflags-y := -I$(INCLDIR) 5 | 6 | -------------------------------------------------------------------------------- /sources/kmods/usb-iss/Makefile: -------------------------------------------------------------------------------- 1 | CONFIG_MODULE_SIG=n 2 | MODULENAME=i2c-devantech-iss 3 | INCLDIR=$(PWD)/include/linux 4 | obj-m += kmod/$(MODULENAME).o 5 | 6 | ifeq ("$(Cross)","yes") 7 | KDIR := /lib/modules/$(shell uname -r)/build #/home/adav/tmp/kernels/linux-omap-5f0a6e2 8 | ARCH := arm 9 | CROSS_COMPILE := /opt/brbox-raspi1-arm/usr/bin/arm-linux- 10 | MAKEARCH := make ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) 11 | else 12 | KDIR := /lib/modules/$(shell uname -r)/build 13 | MAKEARCH := make 14 | endif 15 | 16 | module: 17 | $(MAKEARCH) -C $(KDIR) M=$(PWD) modules 18 | #make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules 19 | clean: 20 | $(MAKEARCH) -C $(KDIR) M=$(PWD) clean 21 | #make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean 22 | 23 | install: 24 | sudo insmod $(MODULENAME).ko 25 | sudo chmod 666 /dev/$(MODULENAME) 26 | 27 | uninstall: 28 | sudo rmmod $(MODULENAME) 29 | 30 | -------------------------------------------------------------------------------- /sources/lib/lib-adav-old/include/ADCmnPortList.h: -------------------------------------------------------------------------------- 1 | #ifndef __ADCMN_PORTLIST_H_ 2 | #define __ADCMN_PORTLIST_H_ 3 | 4 | #define ADCMN_PORT_BEGIN 40000 5 | #define ADCMN_PORT_SYSMGR ADCMN_PORT_BEGIN+1 6 | #define ADCMN_PORT_SMARTEYE ADCMN_PORT_BEGIN+2 7 | #define ADCMN_PORT_GPIOCTL ADCMN_PORT_BEGIN+3 8 | #define ADCMN_PORT_BBOXSMS ADCMN_PORT_BEGIN+4 9 | #define ADCMN_PORT_XMPROXY ADCMN_PORT_BEGIN+5 10 | #define ADCMN_PORT_APISRV ADCMN_PORT_BEGIN+6 11 | #define ADCMN_PORT_I2CSRV ADCMN_PORT_BEGIN+7 12 | #define ADCMN_PORT_DISPSRV ADCMN_PORT_BEGIN+8 13 | #define ADCMN_PORT_LIGHTSENSE ADCMN_PORT_BEGIN+9 14 | #define ADCMN_PORT_MPLAYSRV ADCMN_PORT_BEGIN+10 15 | #define ADCMN_PORT_MODBUSSRV ADCMN_PORT_BEGIN+11 16 | #define ADCMN_PORT_MONITSRV ADCMN_PORT_BEGIN+12 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /sources/lib/lib-adav-old/include/ADJsonChecker.hpp: -------------------------------------------------------------------------------- 1 | /* JSON_checker.h */ 2 | #ifndef __ADC_JSON_CHECKER_H_ 3 | #define __ADC_JSON_CHECKER_H_ 4 | 5 | typedef struct JSON_checker_struct { 6 | int state; 7 | int depth; 8 | int top; 9 | int* stack; 10 | } * JSON_checker; 11 | 12 | 13 | extern JSON_checker new_JSON_checker(int depth); 14 | extern int JSON_checker_char(JSON_checker jc, int next_char); 15 | extern int JSON_checker_done(JSON_checker jc); 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /sources/lib/lib-adav-old/include/I2CDS3231.hpp: -------------------------------------------------------------------------------- 1 | #ifndef __I2C_DS3231_H_ 2 | #define __I2C_DS3231_H_ 3 | #include 4 | #include "I2CBusAccess.h" 5 | #include "RTCDevice.hpp" 6 | class I2CDS3231 : public RTCDevice 7 | { 8 | public: 9 | I2CDS3231(std::string DevNode,std::string DevType); 10 | ~I2CDS3231(); 11 | RPC_SRV_RESULT get_date_time(struct tm &time); 12 | RPC_SRV_RESULT set_date_time(struct tm time); 13 | }; 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /sources/lib/lib-adav-old/include/RTCDevice.hpp: -------------------------------------------------------------------------------- 1 | #ifndef __RTCDEVICE_H_ 2 | #define __RTCDEVICE_H_ 3 | /*interface class for real-time-clock-calander device*/ 4 | #include 5 | #include 6 | #include "ADCommon.hpp" 7 | #include 8 | #include "I2CBusAccess.h" 9 | /*****************************************************************************/ 10 | class RTCDevice : public I2CBusAccess 11 | { 12 | public: 13 | RTCDevice(std::string devnode); 14 | ~RTCDevice(); 15 | virtual RPC_SRV_RESULT get_date_time(struct tm &time)=0; 16 | virtual RPC_SRV_RESULT set_date_time(struct tm time)=0; 17 | }; 18 | #endif 19 | -------------------------------------------------------------------------------- /sources/lib/lib-adav-old/src/DisplayDevice.cpp: -------------------------------------------------------------------------------- 1 | #include "DisplayDevice.hpp" 2 | using namespace std; 3 | /*****************************************************************************/ 4 | DisplayDevice::DisplayDevice(std::string devnode):I2CBusAccess(devnode) 5 | { 6 | //DispType=disptype; 7 | //DispOpened=init_display(); 8 | } 9 | /*****************************************************************************/ 10 | DisplayDevice::~DisplayDevice() 11 | { 12 | } 13 | /*****************************************************************************/ 14 | 15 | -------------------------------------------------------------------------------- /sources/lib/lib-adav-old/src/I2CDS3231.cpp: -------------------------------------------------------------------------------- 1 | #include "I2CDS3231.hpp" 2 | #include 3 | #include 4 | /*****************************************************************************/ 5 | I2CDS3231::I2CDS3231(std::string DevNode,std::string DevType):RTCDevice(DevNode) 6 | { 7 | } 8 | I2CDS3231::~I2CDS3231() 9 | { 10 | } 11 | /*****************************************************************************/ 12 | RPC_SRV_RESULT I2CDS3231::get_date_time(struct tm &time) 13 | { 14 | return RPC_SRV_RESULT_FEATURE_NOT_AVAILABLE; 15 | } 16 | RPC_SRV_RESULT I2CDS3231::set_date_time(struct tm time) 17 | { 18 | return RPC_SRV_RESULT_FEATURE_NOT_AVAILABLE; 19 | } 20 | /*****************************************************************************/ 21 | 22 | -------------------------------------------------------------------------------- /sources/lib/lib-adav-old/src/LightSensor.cpp: -------------------------------------------------------------------------------- 1 | #include "LightSensor.hpp" 2 | using namespace std; 3 | /*****************************************************************************/ 4 | LightSensor::LightSensor(std::string devnode):I2CBusAccess(devnode) 5 | { 6 | } 7 | /*****************************************************************************/ 8 | LightSensor::~LightSensor() 9 | { 10 | } 11 | /*****************************************************************************/ 12 | 13 | -------------------------------------------------------------------------------- /sources/lib/lib-adav-old/src/RTCDevice.cpp: -------------------------------------------------------------------------------- 1 | #include "RTCDevice.hpp" 2 | using namespace std; 3 | /*****************************************************************************/ 4 | RTCDevice::RTCDevice(std::string devnode):I2CBusAccess(devnode) 5 | { 6 | } 7 | /*****************************************************************************/ 8 | RTCDevice::~RTCDevice() 9 | { 10 | } 11 | /*****************************************************************************/ 12 | 13 | -------------------------------------------------------------------------------- /sources/lib/lib-adav/include/ADJsonChecker.h: -------------------------------------------------------------------------------- 1 | /* JSON_checker.h */ 2 | #ifndef __ADC_JSON_CHECKER_H_ 3 | #define __ADC_JSON_CHECKER_H_ 4 | 5 | typedef struct JSON_checker_struct { 6 | int state; 7 | int depth; 8 | int top; 9 | int* stack; 10 | } * JSON_checker; 11 | 12 | 13 | extern JSON_checker new_JSON_checker(int depth); 14 | extern int JSON_checker_char(JSON_checker jc, int next_char); 15 | extern int JSON_checker_done(JSON_checker jc); 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /sources/lib/lib-display/readme.txt: -------------------------------------------------------------------------------- 1 | OLED display control library wrapper which is originally from Adafruit. 2 | As of now, this library is specifically written for raspberry pi hardware. 3 | see the original sources at https://github.com/hallard/ArduiPi_OLED 4 | 5 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/CPackConfig.cmake: -------------------------------------------------------------------------------- 1 | SET(CPACK_PACKAGE_NAME libonion) 2 | SET(CPACK_PACKAGE_VERSION ${ONION_VERSION}) 3 | SET(CPACK_DEBIAN_PACKAGE_DEPENDS "libgnutls26, libpam0g") 4 | 5 | SET(CPACK_GENERATOR "STGZ;TGZ;DEB") 6 | 7 | SET(CPACK_PACKAGE_CONTACT "David Moreno Montero ") 8 | SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "HTTP server library to create or embbed easily a web server") 9 | 10 | SET(CPACK_RESOURCE_FILE_README ${PROJECT_SOURCE_DIR}/README.md) 11 | 12 | MESSAGE(STATUS "Prepared for packaging") 13 | 14 | 15 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/LICENSE.txt: -------------------------------------------------------------------------------- 1 | Contents of the src folder (the Library) is licensed under both GPLv2+ and Apache 2. See APACHE2.txt and GPLv2.txt files for more details. 2 | 3 | All the rest of the code (examples, tests, tools) are AGPLv3. See AGPL.txt file for details. 4 | 5 | The GPLv2+ compatibility is needed as Apache 2 is not compatible with GPLv2: http://www.gnu.org/licenses/license-list.html#apache2 6 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/debian/changelog: -------------------------------------------------------------------------------- 1 | libonion (0.7.5) unstable; urgency=low 2 | 3 | * Initial release (Closes: #744119) 4 | 5 | -- David Moreno Montero Wed, 23 Apr 2014 16:16:42 +0200 6 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/debian/compat: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/debian/docs: -------------------------------------------------------------------------------- 1 | README.rst 2 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/debian/libonion-dev.install: -------------------------------------------------------------------------------- 1 | usr/include/* 2 | usr/lib/lib*.a 3 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/debian/libonion-examples.install: -------------------------------------------------------------------------------- 1 | usr/bin/onion-interactive 2 | usr/bin/onion-fileserver 3 | usr/bin/oterm 4 | usr/bin/otop 5 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/debian/libonion-tools.install: -------------------------------------------------------------------------------- 1 | usr/bin/opack 2 | usr/bin/onion-crl 3 | usr/bin/otemplate 4 | usr/lib/otemplate/templatetags/*.so 5 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/debian/libonion0.install: -------------------------------------------------------------------------------- 1 | usr/lib/lib*.so* 2 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/debian/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | 3 | # Uncomment this to turn on verbose mode. 4 | #export DH_VERBOSE=1 5 | 6 | %: 7 | dh $@ 8 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/examples/basic/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories (${PROJECT_SOURCE_DIR}/src/) 2 | 3 | add_executable(basic basic.c) 4 | target_link_libraries(basic onion ) 5 | 6 | 7 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/examples/basic/basic: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/sources/lib/lib-onion/examples/basic/basic -------------------------------------------------------------------------------- /sources/lib/lib-onion/examples/basic/basic.c: -------------------------------------------------------------------------------- 1 | /** Licensed under AGPL 3.0. (C) 2010 David Moreno Montero. http://coralbits.com */ 2 | #include 3 | 4 | #include 5 | #include 6 | 7 | int main(int argc, char **argv){ 8 | onion *o=onion_new(O_THREADED); 9 | onion_set_certificate(o, O_SSL_CERTIFICATE_KEY, "cert.pem", "cert.key", O_SSL_NONE); 10 | onion_set_root_handler(o, onion_handler_auth_pam("Onion Example", "login", onion_handler_export_local_new("."))); 11 | onion_listen(o); 12 | onion_free(o); 13 | return 0; 14 | } 15 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/examples/boehm-gc/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories (${PROJECT_SOURCE_DIR}/src/) 2 | 3 | add_executable(boehm-gc boehm-gc.c) 4 | target_link_libraries(boehm-gc onion gc) 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/examples/cairo/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories (${PROJECT_SOURCE_DIR}/src/) 2 | 3 | add_executable(cairo_example cairo.c) 4 | target_link_libraries(cairo_example onion onion_extras cairo m) 5 | 6 | set_target_properties(cairo_example PROPERTIES OUTPUT_NAME "onion-cairo_example") 7 | install(TARGETS cairo_example DESTINATION ${CMAKE_INSTALL_BINDIR}) 8 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/examples/cpp/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | SET(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -std=c++0x") 2 | 3 | include_directories (${PROJECT_SOURCE_DIR}/src/) 4 | include_directories (${PROJECT_SOURCE_DIR}/src/bindings/cpp/) 5 | 6 | add_executable(cpp main.cpp) 7 | target_link_libraries(cpp onion onioncpp) 8 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/examples/fileserver/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories (${PROJECT_SOURCE_DIR}/src/) 2 | 3 | add_executable(fileserver fileserver.c) 4 | target_link_libraries(fileserver onion_static) 5 | 6 | set_target_properties(fileserver PROPERTIES OUTPUT_NAME "onion-fileserver") 7 | install(TARGETS fileserver DESTINATION ${CMAKE_INSTALL_BINDIR}) 8 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/examples/hello/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories (${PROJECT_SOURCE_DIR}/src/) 2 | 3 | add_executable(hello hello.c) 4 | target_link_libraries(hello onion) 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/examples/interactive/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories (${PROJECT_SOURCE_DIR}/src/) 2 | 3 | add_executable(interactive interactive.c) 4 | 5 | target_link_libraries(interactive onion_static) 6 | 7 | set_target_properties(interactive PROPERTIES OUTPUT_NAME "onion-interactive") 8 | install(TARGETS interactive DESTINATION ${CMAKE_INSTALL_BINDIR}) 9 | 10 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/examples/jsonrpc/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories (${PROJECT_SOURCE_DIR}/src/) 2 | 3 | add_executable(jsonrpc jsonrpc.c) 4 | target_link_libraries(jsonrpc onion) 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/examples/jsonrpc/test.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/python 2 | 3 | # 4 | # pip install tinyrpc 5 | # 6 | 7 | from tinyrpc.protocols.jsonrpc import JSONRPCProtocol 8 | from tinyrpc.transports.http import HttpPostClientTransport 9 | from tinyrpc import RPCClient 10 | 11 | rpc_client = RPCClient( 12 | JSONRPCProtocol(), 13 | HttpPostClientTransport('http://localhost:8080/') 14 | ) 15 | 16 | local = rpc_client.get_proxy() 17 | 18 | 19 | s=' This is a message ' 20 | stripped = local.strip(str=s) 21 | 22 | assert stripped == s.strip() 23 | 24 | print 'rpc ok' 25 | 26 | import sys 27 | sys.exit(0) 28 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/examples/longpoll/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories (${PROJECT_SOURCE_DIR}/src/) 2 | add_executable(longpoll longpoll.c) 3 | target_link_libraries(longpoll onion_static) 4 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/examples/mandelbrot/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories (${PROJECT_SOURCE_DIR}/src/) 2 | 3 | add_custom_command( 4 | OUTPUT mandel_html.c 5 | COMMAND ${OTEMPLATE} ${CMAKE_CURRENT_SOURCE_DIR}/mandel.html 6 | ${CMAKE_CURRENT_BINARY_DIR}/mandel_html.c 7 | DEPENDS ${OTEMPLATE} ${CMAKE_CURRENT_SOURCE_DIR}/mandel.html 8 | ) 9 | 10 | add_executable(mandelbrot mandelbrot.cpp mandel_html.c) 11 | target_link_libraries(mandelbrot onion_static onion_extras) 12 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/examples/multiport/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories (${PROJECT_SOURCE_DIR}/src/) 2 | 3 | add_executable(multiport multiport.c) 4 | 5 | target_link_libraries(multiport onion_static) 6 | 7 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/examples/ofileserver/zh.po: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2011 2 | # This file is distributed under the same license as the PACKAGE package. 3 | # David Moreno , 2011. 4 | # 5 | msgid "" 6 | msgstr "" 7 | "Project-Id-Version: 0\n" 8 | "Report-Msgid-Bugs-To: \n" 9 | "POT-Creation-Date: 2011-05-24 16:20+0100\n" 10 | "Last-Translator: David Moreno \n" 11 | "Language: cn\n" 12 | "MIME-Version: 1.0\n" 13 | "Content-Type: text/plain; charset=UTF-8\n" 14 | "Content-Transfer-Encoding: 8bit\n" 15 | "PO-Revision-Date: \n" 16 | "Language-Team: \n" 17 | 18 | #: fileserver_html.c:58 19 | msgid "Current directory: " 20 | msgstr "当前目录" 21 | 22 | #: fileserver_html.c:91 23 | msgid "Filename" 24 | msgstr "文件名" 25 | 26 | #: fileserver_html.c:93 27 | msgid "Size" 28 | msgstr "尺寸" 29 | 30 | #: fileserver_html.c:95 31 | msgid "Owner" 32 | msgstr "业主" 33 | 34 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/examples/oterm/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/sources/lib/lib-onion/examples/oterm/favicon.ico -------------------------------------------------------------------------------- /sources/lib/lib-onion/examples/oterm/oterm.service: -------------------------------------------------------------------------------- 1 | [Service] 2 | ExecStart=/usr/local/bin/oterm 3 | 4 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/examples/oterm/oterm.socket: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Onion web terminal emulator. 3 | 4 | [Socket] 5 | ListenStream=8080 6 | 7 | [Install] 8 | WantedBy=oterm.target 9 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/examples/oterm/static/coralbits.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/sources/lib/lib-onion/examples/oterm/static/coralbits.png -------------------------------------------------------------------------------- /sources/lib/lib-onion/examples/otop/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories (${PROJECT_SOURCE_DIR}/src/) 2 | 3 | add_custom_command( 4 | OUTPUT otop_data.c 5 | COMMAND ${OPACK} ${CMAKE_CURRENT_SOURCE_DIR}/index.html -o ${CMAKE_CURRENT_BINARY_DIR}/otop_data.c 6 | DEPENDS ${OPACK} ${CMAKE_CURRENT_SOURCE_DIR}/index.html 7 | ) 8 | 9 | add_executable(otop otop.c otop_data.c) 10 | target_link_libraries(otop onion ) 11 | 12 | install(TARGETS otop DESTINATION ${CMAKE_INSTALL_BINDIR}) 13 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/examples/post/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories (${PROJECT_SOURCE_DIR}/src/) 2 | 3 | add_executable(post post.c) 4 | target_link_libraries(post onion) 5 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/examples/post/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | gcc -o post post.c -lonion 3 | 4 | clean: 5 | rm post 6 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/examples/userver/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | 2 | add_executable(userver userver.c) 3 | target_link_libraries(userver onion_static) 4 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/examples/websockets/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_executable(websockets websockets.c) 2 | target_link_libraries(websockets onion) 3 | 4 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/gentoo/metadata/layout.conf: -------------------------------------------------------------------------------- 1 | masters = gentoo 2 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/gentoo/www-servers/libonion/Manifest: -------------------------------------------------------------------------------- 1 | EBUILD libonion-9999.ebuild 1443 SHA256 92aa9bbeca88dbbafb9e8025eb09f1afa73d126fdbf120b58743949cc1d165d4 SHA512 df9fed598b92cba2a6a3c7afa8939ed70efaa7f87ca0b67abaee806efd1250013ebc151fedbbf9ca27b3109a7b5e467d4f1214d0821c962028da32ef6773df7c WHIRLPOOL 82e29f60dd916bffa0aaa22ea97fa6e402c9d1c2a396728d18558db71136822c2023e1267c3d35fe4a337cc4f6d5361c240587d0d2272572e6f5ddb17338964c 2 | MISC metadata.xml 945 SHA256 e549b58bb9a966631268233e8403f56ed386f39236fb9274dab77f20d5d7a6f2 SHA512 c651463ef9dcac12606c1efd9a43ed8c7ff9d31b9cf686fb9df0267040a203495710ccc231d77c86ea08aeef93961f6a6e5a8826fe79d0e2b97d997a54b4d7c7 WHIRLPOOL 2d11e11560ca451b66c6bb1a5de063cffcd56bbaead6245258f29ec0ad26a80b06b4d77079b7f9c3fc4a4c178e48e12f1ed952f0b13d1b5b8eb04a2e2e1a3b50 3 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/src/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | 2 | add_subdirectory(onion) 3 | add_subdirectory(bindings) 4 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/src/bindings/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | if (${ONION_USE_BINDINGS_CPP}) 2 | add_subdirectory(cpp) 3 | endif (${ONION_USE_BINDINGS_CPP}) -------------------------------------------------------------------------------- /sources/lib/lib-onion/src/bindings/onion: -------------------------------------------------------------------------------- 1 | cpp/ -------------------------------------------------------------------------------- /sources/lib/lib-onion/src/onion/handlers/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | 2 | SET(INCLUDES_HANDLERS static.h exportlocal.h auth_pam.h opack.h path.h webdav.h internal_status.h) 3 | 4 | install(FILES ${INCLUDES_HANDLERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/) 5 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/tests/.kdev_include_paths: -------------------------------------------------------------------------------- 1 | /usr/include/ 2 | /home/dmoreno/src/onion/src/ 3 | /home/dmoreno/src/onion/src/bindings/cpp/ 4 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/tests/01-internal/13-otemplate.html: -------------------------------------------------------------------------------- 1 | {% load i18n %} 2 | 3 | 4 | {{title}} 5 | 6 | 7 |

{% trans "List" %}

8 |
    9 | {% for i in list %} 10 |
  • {{i}}
  • 11 | {% endfor %} 12 |
13 |

{hello}

14 | 15 | {{title}} {{title}} 16 |
17 | quoted: {{quoted}} 18 | 19 |
20 | complex for: 21 | {% for i in loop.loop %}{{i}} {% endfor %} 22 | 23 | 24 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/tests/01-internal/mycert.cfg: -------------------------------------------------------------------------------- 1 | # X.509 Certificate options 2 | 3 | organization = "Coralbits test." 4 | unit = "Testing." 5 | state = "ES" 6 | country = ES 7 | cn = "coralbits" 8 | expiration_days = 700 9 | tls_www_server 10 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/tests/02-fullserver/01-userver.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | #normal download 4 | 5 | 6 | ../../examples/userver/userver . & 7 | echo %1 8 | 9 | wget -O test http://localhost:8080/01-userver.sh 10 | DF=$( diff test 01-userver.sh ) 11 | rm test 12 | if [ "$DF" ]; then 13 | echo "Error: Download did not give the right file" 14 | exit 1 15 | fi 16 | 17 | # get out of known places 18 | wget -O test http://localhost:8080/../../../../../../../etc/passwd 19 | DF=$( diff test ../../../../../../../etc/passwd ) 20 | rm test 21 | if [ ! "$DF" ]; then 22 | echo "Download gave the file! and its out of allowed scope!" 23 | exit 1 24 | fi 25 | 26 | echo "Test passed OK." 27 | 28 | kill %1 29 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/tests/02-fullserver/03-recorded.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | #normal download 4 | 5 | killall hello 6 | ../../examples/hello/hello & 7 | REQUESTS="$( ls segfault-*.txt )" 8 | 9 | for i in $REQUESTS; do 10 | echo $i 11 | cat $i | nc localhost 8080 12 | sleep 1 13 | if [ ! "$( pgrep hello )" ]; then 14 | echo "Segfault at hello at $i" 15 | exit 1 16 | fi 17 | done 18 | 19 | 20 | kill %1 21 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/tests/03-methods/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_executable(01-methods 01-methods.c) 2 | target_link_libraries(01-methods onion) 3 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/tests/04-prerecorded/01-basic.tst: -------------------------------------------------------------------------------- 1 | GET / HTTP/1.1 2 | 3 | -- -- 4 | Path: / 5 | Method: GET 6 | ++ ++ 7 | UNKNOWN / HTTP/1.0 8 | 9 | -- -- 10 | NOT_IMPLEMENTED 11 | ++ ++ 12 | GET /?test=1 HTTP/.. 13 | 14 | -- -- 15 | Path: / 16 | Query: test = 1 17 | ++ ++ 18 | GET / HTTP/1.1 19 | Connection: Close 20 | Header-Name: Header-Value 21 | 22 | -- -- 23 | Header: Connection = Close 24 | Header: Header-Name = Header-Value 25 | ++ ++ 26 | POST /?get=true HTTP/1.1 27 | Content-Type: post/urlencoded 28 | 29 | 30 | -- -- 31 | INTERNAL_ERROR 32 | ++ ++ 33 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/tests/04-prerecorded/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | 2 | include_directories (${PROJECT_SOURCE_DIR}/src/) 3 | 4 | add_executable(prerecorded prerecorded.c ../01-internal/buffer_listen_point.c) 5 | target_link_libraries(prerecorded onion_static) 6 | 7 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/tests/05-sessions/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | 2 | include_directories (${PROJECT_SOURCE_DIR}/src/) 3 | 4 | add_executable(sessions sessions.c) 5 | target_link_libraries(sessions onion) 6 | 7 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/tests/07-tools/base.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | {% block title %}No title{% endblock %} 5 | 6 | 7 | {% block body %} 8 | No body. If you see this, ERROR. 9 | {% endblock %} 10 |

11 | This should appear, as is outside block. 12 | 13 | 14 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/tests/07-tools/extended.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | 3 | {% block title %}Extended{% endblock %} 4 | 5 | {% block body %} 6 |

This is an extended template

7 | 8 | {% block body_in %} 9 | More text. 10 | {% endblock %} 11 | 12 | If you see this, OK. 13 |
14 | Random (only at test2): {{random}} 15 |
16 | 17 | Unicode Chars: € ¡ á é í ú ó. 汉语/漢語. 18 | 19 | {% endblock %} 20 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/tests/07-tools/external.html: -------------------------------------------------------------------------------- 1 | This code is in an external html. 2 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/tests/08-cpp/04-templates.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Test 4 | 5 | 6 | From template
7 | Test: {{test}} 8 | 9 | 10 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/tests/09-webdav/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories (${PROJECT_SOURCE_DIR}/src/) 2 | 3 | add_executable(wdserver wdserver.c) 4 | target_link_libraries(wdserver onion) 5 | 6 | 7 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/tests/09-webdav/wdserver.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | 5 | int main(void){ 6 | onion *o=onion_new(O_POOL); 7 | 8 | onion_url *root=onion_root_url(o); 9 | onion_url_add_handler(root, "^wd", onion_handler_webdav(".",NULL)); 10 | 11 | onion_listen(o); 12 | 13 | return 0; 14 | } 15 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/tests/11-style/check_low.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | echo "Checks source code uses the onion_low_* functions and not directly others" 4 | 5 | BADF="malloc alloc calloc realloc strdup free pthread_create pthread_destroy pthread_join pthread_cancel pthread_detach pthread_exit pthread_sigmask" 6 | PATH=${1:-../../src} 7 | FILES=$(/bin/find $PATH -name "*.c" -or -name "*.h" | /bin/grep -v low.[ch] ) 8 | 9 | ERROR=0 10 | #echo $FILES 11 | for f in $BADF; do 12 | HAS_F="$( /bin/grep '[[:space:]=]'$f'[[:space:]]*(' $FILES -l )" 13 | if [ "$HAS_F" ]; then 14 | echo "$f: $( echo $HAS_F )" 15 | ERROR=1 16 | fi 17 | done 18 | 19 | exit $ERROR 20 | 21 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/tests/auto.sh: -------------------------------------------------------------------------------- 1 | FAILED="" 2 | 3 | for d in 01-internal 02-fullserver; do 4 | pushd $d 5 | for i in $( find -maxdepth 1 -type f -executable | sort -n ); do 6 | $i 7 | if [ "$?" != "0" ]; then 8 | FAILED="$FAILED $d/$i" 9 | fi 10 | done 11 | popd 12 | done 13 | 14 | if [ "$FAILED" ]; then 15 | echo -e "\033[31mFAILED TESTS: $FAILED\033[0m" 16 | exit 1 17 | else 18 | echo "OK" 19 | exit 0 20 | fi 21 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/tests/onion.ini: -------------------------------------------------------------------------------- 1 | # Garlic test config file. Check http://github.com/davidmoreno/garlic 2 | 3 | [global] 4 | #username=coralbits 5 | #password=coralbits 6 | 7 | name=Garlic test onion 8 | 9 | [server] 10 | port=1234 11 | address=0.0.0.0 12 | 13 | [scripts] 14 | on_back_to_normal=mail -s "[Onion testing] is back to normal ✓" dmoreno@coralbits.com 15 | on_error=mail -s "[Onion testing] error ✗" dmoreno@coralbits.com 16 | 17 | check=git fetch && [ $( git diff origin/master | wc -l ) = 0 ] 18 | update=git pull 19 | 20 | test=./auto.sh 21 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/tools/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | 2 | 3 | add_subdirectory(opack) 4 | add_subdirectory(compilerunloop) 5 | add_subdirectory(otemplate) -------------------------------------------------------------------------------- /sources/lib/lib-onion/tools/compilerunloop/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | ADD_CUSTOM_TARGET(crl ALL DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/compilerunloop.sh 2 | COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/compilerunloop.sh ${CMAKE_CURRENT_BINARY_DIR}/crl 3 | ) 4 | 5 | install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/crl 6 | DESTINATION ${CMAKE_INSTALL_BINDIR} RENAME onion-crl 7 | ) 8 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/tools/opack/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories (${PROJECT_SOURCE_DIR}/src) 2 | 3 | add_executable(opack opack.c ../common/updateassets.c ../../src/onion/log.c ../../src/onion/low.c ../../src/onion/mime.c ../../src/onion/dict.c ../../src/onion/block.c ../../src/onion/codecs.c) 4 | target_link_libraries(opack ${PTHREADS_LIB}) 5 | 6 | if(GNUTLS_ENABLED) 7 | target_link_libraries(opack ${GNUTLS_LIB}) 8 | endif(GNUTLS_ENABLED) 9 | 10 | install(TARGETS opack DESTINATION ${CMAKE_INSTALL_BINDIR}) 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/tools/otemplate/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories (${PROJECT_SOURCE_DIR}/src) 2 | 3 | remove_definitions(-DHAVE_PTHREADS) 4 | remove_definitions(-DHAVE_GNUTLS) 5 | 6 | add_executable(otemplate otemplate.c parser.c tags.c variables.c list.c functions.c tag_builtins.c load.c 7 | ../../src/onion/log.c ../../src/onion/block.c ../../src/onion/codecs.c ../../src/onion/dict.c ../../src/onion/low.c 8 | ../common/updateassets.c) 9 | 10 | if (CMAKE_SYSTEM_NAME STREQUAL "Linux") 11 | target_link_libraries(otemplate dl) 12 | else (CMAKE_SYSTEM_NAME STREQUAL "Linux") 13 | SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--export-dynamic") 14 | endif (CMAKE_SYSTEM_NAME STREQUAL "Linux") 15 | 16 | install(TARGETS otemplate DESTINATION ${CMAKE_INSTALL_BINDIR}) 17 | 18 | add_subdirectory(templatetags) 19 | -------------------------------------------------------------------------------- /sources/lib/lib-onion/tools/otemplate/templatetags/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_library(i18n SHARED i18n.c) 2 | 3 | install(TARGETS i18n DESTINATION ${CMAKE_INSTALL_LIBDIR}/otemplate/templatetags) 4 | -------------------------------------------------------------------------------- /sources/lib/libstrophe/.travis.yml: -------------------------------------------------------------------------------- 1 | language: c 2 | install: 3 | - sudo apt-get update 4 | - sudo apt-get -y install libtool pkg-config libexpat1-dev libxml2-dev libssl-dev check 5 | before_script: 6 | - ./bootstrap.sh 7 | script: 8 | - ./configure ${CONFIGURE_OPT} && make && make check-TESTS 9 | env: 10 | - CONFIGURE_OPT="--without-libxml2" 11 | - CONFIGURE_OPT="--with-libxml2" 12 | - CONFIGURE_OPT="--disable-tls --without-libxml2" 13 | - CONFIGURE_OPT="--disable-tls --with-libxml2" 14 | matrix: 15 | fast_finish: true 16 | -------------------------------------------------------------------------------- /sources/lib/libstrophe/AUTHORS: -------------------------------------------------------------------------------- 1 | Jack Moffit 2 | -------------------------------------------------------------------------------- /sources/lib/libstrophe/LICENSE.txt: -------------------------------------------------------------------------------- 1 | libstrophe XMPP client library 2 | Copyright (C) 2005-2009 Collecta, Inc. 3 | 4 | This program is dual licensed under the MIT and GPLv3 licenses. 5 | Please the files MIT-LICENSE.txt and GPL-LICENSE.txt for details. 6 | -------------------------------------------------------------------------------- /sources/lib/libstrophe/NEWS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/sources/lib/libstrophe/NEWS -------------------------------------------------------------------------------- /sources/lib/libstrophe/README: -------------------------------------------------------------------------------- 1 | README.markdown -------------------------------------------------------------------------------- /sources/lib/libstrophe/TODO: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/sources/lib/libstrophe/TODO -------------------------------------------------------------------------------- /sources/lib/libstrophe/bootstrap.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Some versions of aclocal fail if m4/ doesn't exist 4 | mkdir -p m4 5 | autoreconf -i 6 | -------------------------------------------------------------------------------- /sources/lib/libstrophe/docs/footer.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /sources/lib/libstrophe/examples/README.md: -------------------------------------------------------------------------------- 1 | Build Instructions 2 | ================== 3 | 4 | Compile example files with the following gcc flags: 5 | ``` 6 | gcc -o bot bot.c `pkg-config --cflags --libs libstrophe` 7 | ``` 8 | -------------------------------------------------------------------------------- /sources/lib/libstrophe/examples/uuid.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | int main(int argc, char **argv) 5 | { 6 | xmpp_ctx_t *ctx; 7 | char *uuid; 8 | int rc = 0; 9 | 10 | ctx = xmpp_ctx_new(NULL, NULL); 11 | 12 | uuid = xmpp_uuid_gen(ctx); 13 | if (uuid != NULL) { 14 | printf("%s\n", uuid); 15 | xmpp_free(ctx, uuid); 16 | } else { 17 | fprintf(stderr, "Couldn't allocate memory.\n"); 18 | rc = 1; 19 | } 20 | 21 | xmpp_ctx_free(ctx); 22 | return rc; 23 | } 24 | -------------------------------------------------------------------------------- /sources/lib/libstrophe/jni/Application.mk: -------------------------------------------------------------------------------- 1 | APP_ABI := armeabi armeabi-v7a mips x86 2 | APP_PLATFORM := android-19 3 | -------------------------------------------------------------------------------- /sources/lib/libstrophe/libstrophe.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | includedir=@includedir@ 5 | 6 | Name: libstrophe 7 | Description: A simple, lightweight C library for writing XMPP clients 8 | URL: http://strophe.im/libstrophe/ 9 | Version: @VERSION@ 10 | Requires: 11 | Requires.private: @PC_REQUIRES@ 12 | Libs: -L${libdir} -lstrophe 13 | Libs.private: @PC_LIBS@ 14 | Cflags: -I${includedir} @PC_CFLAGS@ 15 | -------------------------------------------------------------------------------- /sources/lib/libstrophe/rpm/README: -------------------------------------------------------------------------------- 1 | 1. Setup 2 | 3 | yum install gcc make autoconf automake expat-devel openssl-devel 4 | 5 | Fedora: 6 | 7 | yum install fedora-packager 8 | cd ~ 9 | rpmdev-setuptree 10 | 11 | CentOS: 12 | 13 | mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS} 14 | 15 | Then make a tarball of sources: 16 | 17 | tar czf libstrophe_git.tar.gz libstrophe 18 | 19 | 2. Build 20 | 21 | cp libstrophe.spec ~/rpmbuild/SPECS 22 | cp libstrophe_git.tar.gz ~/rpmbuild/SOURCES 23 | rpmbuild -bb ~/rpmbuild/SPECS/libstrophe.spec 24 | 25 | 3. Install 26 | 27 | yum localinstall ~/rpmbuild/RPMS//libstrophe-1.1..rpm 28 | 29 | Or, if localinstall is not recognised: 30 | 31 | rpm -i ~/rpmbuild/RPMS//libstrophe-1.1..rpm 32 | -------------------------------------------------------------------------------- /sources/lib/libstrophe/src/md5.h: -------------------------------------------------------------------------------- 1 | /* md5.h 2 | ** interface to MD5 hash function 3 | ** 4 | ** This code is in the Public Domain. 5 | */ 6 | 7 | /** @file 8 | * MD5 hash API. 9 | */ 10 | 11 | #ifndef MD5_H 12 | #define MD5_H 13 | 14 | /* make sure the stdint.h types are available */ 15 | #include "ostypes.h" 16 | 17 | struct MD5Context { 18 | uint32_t buf[4]; 19 | uint32_t bits[2]; 20 | unsigned char in[64]; 21 | }; 22 | 23 | void MD5Init(struct MD5Context *context); 24 | void MD5Update(struct MD5Context *context, unsigned char const *buf, 25 | uint32_t len); 26 | void MD5Final(unsigned char digest[16], struct MD5Context *context); 27 | 28 | #endif /* !MD5_H */ 29 | -------------------------------------------------------------------------------- /sources/lib/libstrophe/src/util.h: -------------------------------------------------------------------------------- 1 | /* util.h 2 | ** strophe XMPP client library -- various utility functions 3 | ** 4 | ** Copyright (C) 2005-2009 Collecta, Inc. 5 | ** 6 | ** This software is provided AS-IS with no warranty, either express 7 | ** or implied. 8 | ** 9 | ** This program is dual licensed under the MIT and GPLv3 licenses. 10 | */ 11 | 12 | /** @file 13 | * Internally used utility functions. 14 | */ 15 | 16 | #ifndef __LIBSTROPHE_UTIL_H__ 17 | #define __LIBSTROPHE_UTIL_H__ 18 | 19 | #include "ostypes.h" 20 | 21 | /* TODO evaluate x and y only once */ 22 | #define xmpp_min(x, y) ((x) < (y) ? (x) : (y)) 23 | 24 | /* string functions */ 25 | char *xmpp_strtok_r(char *s, const char *delim, char **saveptr); 26 | 27 | /* timing functions */ 28 | uint64_t time_stamp(void); 29 | uint64_t time_elapsed(uint64_t t1, uint64_t t2); 30 | 31 | #endif /* __LIBSTROPHE_UTIL_H__ */ 32 | -------------------------------------------------------------------------------- /sources/lib/readme.txt: -------------------------------------------------------------------------------- 1 | lib-adav-old base Revision: 18403 2 | lib-adav-old Last Changed Rev: 18379 3 | 4 | -------------------------------------------------------------------------------- /sources/misc_binaries/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/sources/misc_binaries/1.png -------------------------------------------------------------------------------- /sources/misc_binaries/10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/sources/misc_binaries/10.png -------------------------------------------------------------------------------- /sources/misc_binaries/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/sources/misc_binaries/2.png -------------------------------------------------------------------------------- /sources/misc_binaries/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/sources/misc_binaries/3.png -------------------------------------------------------------------------------- /sources/misc_binaries/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/sources/misc_binaries/4.png -------------------------------------------------------------------------------- /sources/misc_binaries/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/sources/misc_binaries/5.png -------------------------------------------------------------------------------- /sources/misc_binaries/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/sources/misc_binaries/6.png -------------------------------------------------------------------------------- /sources/misc_binaries/7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/sources/misc_binaries/7.png -------------------------------------------------------------------------------- /sources/misc_binaries/8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/sources/misc_binaries/8.png -------------------------------------------------------------------------------- /sources/misc_binaries/9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/sources/misc_binaries/9.png -------------------------------------------------------------------------------- /sources/misc_binaries/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | #this cmake is only used for installing scripts to target) 2 | cmake_minimum_required(VERSION 2.8.9) 3 | set(MISC_BIN_FILES *.png) 4 | #set(MISC_MKV_FILES *.mkv) 5 | set(MISC_SCRIPT_FILES *.sh) 6 | file(GLOB BIN_FILES ${MISC_BIN_FILES}) 7 | file(GLOB SCRIPT_FILES ${MISC_SCRIPT_FILES}) 8 | install(FILES ${BIN_FILES} DESTINATION opt/fmw/misc_binaries/) 9 | install(PROGRAMS ${SCRIPT_FILES} DESTINATION usr/bin/) 10 | -------------------------------------------------------------------------------- /sources/misc_binaries/pattern-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/sources/misc_binaries/pattern-1.png -------------------------------------------------------------------------------- /sources/misc_binaries/pattern-10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/sources/misc_binaries/pattern-10.png -------------------------------------------------------------------------------- /sources/misc_binaries/pattern-11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/sources/misc_binaries/pattern-11.png -------------------------------------------------------------------------------- /sources/misc_binaries/pattern-12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/sources/misc_binaries/pattern-12.png -------------------------------------------------------------------------------- /sources/misc_binaries/pattern-13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/sources/misc_binaries/pattern-13.png -------------------------------------------------------------------------------- /sources/misc_binaries/pattern-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/sources/misc_binaries/pattern-2.png -------------------------------------------------------------------------------- /sources/misc_binaries/pattern-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/sources/misc_binaries/pattern-3.png -------------------------------------------------------------------------------- /sources/misc_binaries/pattern-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/sources/misc_binaries/pattern-4.png -------------------------------------------------------------------------------- /sources/misc_binaries/pattern-5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/sources/misc_binaries/pattern-5.png -------------------------------------------------------------------------------- /sources/misc_binaries/pattern-6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/sources/misc_binaries/pattern-6.png -------------------------------------------------------------------------------- /sources/misc_binaries/pattern-7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/sources/misc_binaries/pattern-7.png -------------------------------------------------------------------------------- /sources/misc_binaries/pattern-8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/sources/misc_binaries/pattern-8.png -------------------------------------------------------------------------------- /sources/misc_binaries/pattern-9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/sources/misc_binaries/pattern-9.png -------------------------------------------------------------------------------- /sources/sample-media/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | #this cmake is used for installing media files to target) 2 | cmake_minimum_required(VERSION 2.8.9) 3 | set(MISC_MEDIA_FILES *.*) 4 | file(GLOB BIN_FILES ${MISC_MEDIA_FILES}) 5 | install(FILES ${BIN_FILES} DESTINATION opt/fmw/misc_binaries/) 6 | -------------------------------------------------------------------------------- /sources/sample-media/omx-key-config.txt: -------------------------------------------------------------------------------- 1 | PAUSE:hex 0x0A 2 | DECREASE_VOLUME:down 3 | INCREASE_VOLUME:up 4 | REWIND:left 5 | FAST_FORWARD:right 6 | -------------------------------------------------------------------------------- /sources/sample-media/sample-video.mkv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/sources/sample-media/sample-video.mkv -------------------------------------------------------------------------------- /sources/scripts/baytrail/boot/S02MountSettings: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Start logging 4 | # 5 | STTNGS_PARTITION=/dev/sda4 6 | start() { 7 | echo -n "Mounting Settings Partition: " 8 | mount $STTNGS_PARTITION /mnt/settings 9 | echo "OK" 10 | } 11 | 12 | stop() { 13 | echo -n "Unmounting Settings Partition: " 14 | umount /mnt/settings 15 | echo "OK" 16 | } 17 | 18 | case "$1" in 19 | start) 20 | start 21 | ;; 22 | stop) 23 | stop 24 | ;; 25 | restart|reload) 26 | stop 27 | start 28 | ;; 29 | *) 30 | echo "Usage: $0 {start|stop|restart}" 31 | exit 1 32 | esac 33 | 34 | exit $? 35 | -------------------------------------------------------------------------------- /sources/scripts/baytrail/boot/fstab: -------------------------------------------------------------------------------- 1 | # 2 | /dev/root / ext3 rw,noauto 0 1 3 | proc /proc proc defaults 0 0 4 | devpts /dev/pts devpts defaults,gid=5,mode=620 0 0 5 | tmpfs /dev/shm tmpfs mode=0777 0 0 6 | tmpfs /tmp tmpfs mode=1777 0 0 7 | tmpfs /run tmpfs mode=0755,nosuid,nodev 0 0 8 | sysfs /sys sysfs defaults 0 0 9 | /dev/sda4 /mnt/settings ext3 defaults,sync 0 0 10 | /dev/sda5 /mnt/userdata ext3 defaults 0 0 11 | -------------------------------------------------------------------------------- /sources/scripts/baytrail_update/S02MountSettings: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Start logging 4 | # 5 | STTNGS_PARTITION=/dev/sda4 6 | start() { 7 | echo -n "Mounting Settings Partition: " 8 | mount $STTNGS_PARTITION /mnt/settings 9 | echo "OK" 10 | } 11 | 12 | stop() { 13 | echo -n "Unmounting Settings Partition: " 14 | umount /mnt/settings 15 | echo "OK" 16 | } 17 | 18 | case "$1" in 19 | start) 20 | start 21 | ;; 22 | stop) 23 | stop 24 | ;; 25 | restart|reload) 26 | stop 27 | start 28 | ;; 29 | *) 30 | echo "Usage: $0 {start|stop|restart}" 31 | exit 1 32 | esac 33 | 34 | exit $? 35 | -------------------------------------------------------------------------------- /sources/scripts/baytrail_update/fstab: -------------------------------------------------------------------------------- 1 | # 2 | /dev/root / ext2 noauto 0 1 3 | proc /proc proc defaults 0 0 4 | devpts /dev/pts devpts defaults,gid=5,mode=620 0 0 5 | tmpfs /dev/shm tmpfs mode=0777 0 0 6 | tmpfs /tmp tmpfs mode=1777 0 0 7 | tmpfs /run tmpfs mode=0755,nosuid,nodev 0 0 8 | sysfs /sys sysfs defaults 0 0 9 | /dev/sda4 /mnt/settings ext3 defaults,sync 0 0 10 | /dev/sda5 /mnt/userdata ext3 defaults 0 0 11 | -------------------------------------------------------------------------------- /sources/scripts/bbb/boot/S02MountSettings: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Start logging 4 | # 5 | STTNGS_PARTITION=/dev/mmcblk0p5 6 | start() { 7 | echo -n "Mounting Settings Partition: " 8 | mount $STTNGS_PARTITION /mnt/settings 9 | echo "OK" 10 | } 11 | 12 | stop() { 13 | echo -n "Unmounting Settings Partition: " 14 | umount /mnt/settings 15 | echo "OK" 16 | } 17 | 18 | case "$1" in 19 | start) 20 | start 21 | ;; 22 | stop) 23 | stop 24 | ;; 25 | restart|reload) 26 | stop 27 | start 28 | ;; 29 | *) 30 | echo "Usage: $0 {start|stop|restart}" 31 | exit 1 32 | esac 33 | 34 | exit $? 35 | -------------------------------------------------------------------------------- /sources/scripts/bbb/boot/fstab: -------------------------------------------------------------------------------- 1 | # 2 | /dev/root / ext3 rw,noauto 0 1 3 | proc /proc proc defaults 0 0 4 | devpts /dev/pts devpts defaults,gid=5,mode=620 0 0 5 | tmpfs /dev/shm tmpfs mode=0777 0 0 6 | tmpfs /tmp tmpfs mode=1777 0 0 7 | tmpfs /run tmpfs mode=0755,nosuid,nodev 0 0 8 | sysfs /sys sysfs defaults 0 0 9 | /dev/mmcblk0p5 /mnt/settings ext3 defaults,sync 0 0 10 | /dev/mmcblk0p6 /mnt/userdata ext3 defaults,sync 0 0 11 | -------------------------------------------------------------------------------- /sources/scripts/bbb/boot/uEnv.txt: -------------------------------------------------------------------------------- 1 | mmcroot=/dev/mmcblk0p2 ro 2 | bootpart=0:1 3 | bootdir= 4 | bootfile=zImage 5 | uenvcmd=run loadimage;run loadramdisk;run findfdt;run loadfdt;run ramboot 6 | args_mmc=run finduuid;setenv bootargs console=${console} ${optargs} root=/dev/mmcblk0p2 rw 7 | -------------------------------------------------------------------------------- /sources/scripts/bbb/update/S02MountSettings: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Start logging 4 | # 5 | STTNGS_PARTITION=/dev/mmcblk0p5 6 | start() { 7 | echo -n "Mounting Settings Partition: " 8 | mount $STTNGS_PARTITION /mnt/settings 9 | echo "OK" 10 | } 11 | 12 | stop() { 13 | echo -n "Unmounting Settings Partition: " 14 | umount /mnt/settings 15 | echo "OK" 16 | } 17 | 18 | case "$1" in 19 | start) 20 | start 21 | ;; 22 | stop) 23 | stop 24 | ;; 25 | restart|reload) 26 | stop 27 | start 28 | ;; 29 | *) 30 | echo "Usage: $0 {start|stop|restart}" 31 | exit 1 32 | esac 33 | 34 | exit $? 35 | -------------------------------------------------------------------------------- /sources/scripts/bbb/update/fstab: -------------------------------------------------------------------------------- 1 | # 2 | /dev/root / ext2 noauto 0 1 3 | proc /proc proc defaults 0 0 4 | devpts /dev/pts devpts defaults,gid=5,mode=620 0 0 5 | tmpfs /dev/shm tmpfs mode=0777 0 0 6 | tmpfs /tmp tmpfs mode=1777 0 0 7 | tmpfs /run tmpfs mode=0755,nosuid,nodev 0 0 8 | sysfs /sys sysfs defaults 0 0 9 | /dev/mmcblk0p5 /mnt/settings ext3 defaults,sync 0 0 10 | /dev/mmcblk0p6 /mnt/userdata ext3 defaults,sync 0 0 11 | -------------------------------------------------------------------------------- /sources/scripts/bbbmmc/boot/S02MountSettings: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Start logging 4 | # 5 | STTNGS_PARTITION=/dev/mmcblk1p5 6 | start() { 7 | echo -n "Mounting Settings Partition: " 8 | mount $STTNGS_PARTITION /mnt/settings 9 | echo "OK" 10 | } 11 | 12 | stop() { 13 | echo -n "Unmounting Settings Partition: " 14 | umount /mnt/settings 15 | echo "OK" 16 | } 17 | 18 | case "$1" in 19 | start) 20 | start 21 | ;; 22 | stop) 23 | stop 24 | ;; 25 | restart|reload) 26 | stop 27 | start 28 | ;; 29 | *) 30 | echo "Usage: $0 {start|stop|restart}" 31 | exit 1 32 | esac 33 | 34 | exit $? 35 | -------------------------------------------------------------------------------- /sources/scripts/bbbmmc/boot/fstab: -------------------------------------------------------------------------------- 1 | # 2 | /dev/root / ext3 rw,noauto 0 1 3 | proc /proc proc defaults 0 0 4 | devpts /dev/pts devpts defaults,gid=5,mode=620 0 0 5 | tmpfs /dev/shm tmpfs mode=0777 0 0 6 | tmpfs /tmp tmpfs mode=1777 0 0 7 | tmpfs /run tmpfs mode=0755,nosuid,nodev 0 0 8 | sysfs /sys sysfs defaults 0 0 9 | /dev/mmcblk1p5 /mnt/settings ext3 defaults,sync 0 0 10 | /dev/mmcblk1p6 /mnt/userdata ext3 defaults,sync 0 0 11 | -------------------------------------------------------------------------------- /sources/scripts/bbbmmc/boot/uEnv.txt: -------------------------------------------------------------------------------- 1 | mmcroot=/dev/mmcblk0p2 ro 2 | bootpart=1:1 3 | bootdir= 4 | bootfile=zImage 5 | uenvcmd=run loadimage;run loadramdisk;run findfdt;run loadfdt;run ramboot 6 | args_mmc=run finduuid;setenv bootargs console=${console} ${optargs} root=/dev/mmcblk0p2 rw 7 | -------------------------------------------------------------------------------- /sources/scripts/bbbmmc/update/S02MountSettings: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Start logging 4 | # 5 | STTNGS_PARTITION=/dev/mmcblk1p5 6 | start() { 7 | echo -n "Mounting Settings Partition: " 8 | mount $STTNGS_PARTITION /mnt/settings 9 | echo "OK" 10 | } 11 | 12 | stop() { 13 | echo -n "Unmounting Settings Partition: " 14 | umount /mnt/settings 15 | echo "OK" 16 | } 17 | 18 | case "$1" in 19 | start) 20 | start 21 | ;; 22 | stop) 23 | stop 24 | ;; 25 | restart|reload) 26 | stop 27 | start 28 | ;; 29 | *) 30 | echo "Usage: $0 {start|stop|restart}" 31 | exit 1 32 | esac 33 | 34 | exit $? 35 | -------------------------------------------------------------------------------- /sources/scripts/bbbmmc/update/fstab: -------------------------------------------------------------------------------- 1 | # 2 | /dev/root / ext2 noauto 0 1 3 | proc /proc proc defaults 0 0 4 | devpts /dev/pts devpts defaults,gid=5,mode=620 0 0 5 | tmpfs /dev/shm tmpfs mode=0777 0 0 6 | tmpfs /tmp tmpfs mode=1777 0 0 7 | tmpfs /run tmpfs mode=0755,nosuid,nodev 0 0 8 | sysfs /sys sysfs defaults 0 0 9 | /dev/mmcblk1p5 /mnt/settings ext3 defaults,sync 0 0 10 | /dev/mmcblk1p6 /mnt/userdata ext3 defaults,sync 0 0 11 | -------------------------------------------------------------------------------- /sources/scripts/cmn/default-hostname/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | #this cmake is only used for installing scripts to target) 2 | cmake_minimum_required(VERSION 2.8.9) 3 | set(ACTION_SCR default-hostname) #action script to be copied to target 4 | set(ACTION_STARTUP S02DefaultHostname) #startup script to be copied to target 5 | file(GLOB SCRIPTFILES ${ACTION_SCR}) 6 | file(GLOB STARTUPFILES ${ACTION_STARTUP}) 7 | install(PROGRAMS ${SCRIPTFILES} DESTINATION usr/sbin) 8 | install(PROGRAMS ${STARTUPFILES} DESTINATION etc/init.d) 9 | 10 | -------------------------------------------------------------------------------- /sources/scripts/cmn/default-hostname/S02DefaultHostname: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Set default hostname if desnt exist 4 | # 5 | start() { 6 | echo -n "Checking default hostname: " 7 | default-hostname -f n 8 | echo "OK" 9 | } 10 | 11 | stop() { 12 | echo -n "Unchecking default hostname: " 13 | echo "OK" 14 | } 15 | 16 | case "$1" in 17 | start) 18 | start 19 | ;; 20 | stop) 21 | stop 22 | ;; 23 | restart|reload) 24 | stop 25 | start 26 | ;; 27 | *) 28 | echo "Usage: $0 {start|stop|restart}" 29 | exit 1 30 | esac 31 | 32 | exit $? 33 | -------------------------------------------------------------------------------- /sources/scripts/cmn/find-devtype/S01FindDevType: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Detect device type 4 | # 5 | DEV_TYPE_FILE=/tmp/BrBoxDevType.txt 6 | start() { 7 | echo -n "Detecting device type: " 8 | find-devtype > $DEV_TYPE_FILE 9 | echo "OK" 10 | } 11 | 12 | stop() { 13 | echo -n "Undetecting device type: " 14 | rm -f $DEV_TYPE_FILE 15 | echo "OK" 16 | } 17 | 18 | case "$1" in 19 | start) 20 | start 21 | ;; 22 | stop) 23 | stop 24 | ;; 25 | restart|reload) 26 | stop 27 | start 28 | ;; 29 | *) 30 | echo "Usage: $0 {start|stop|restart}" 31 | exit 1 32 | esac 33 | 34 | exit $? 35 | -------------------------------------------------------------------------------- /sources/scripts/cmn/find-devtype/WrtFindDevType: -------------------------------------------------------------------------------- 1 | #!/bin/sh /etc/rc.common 2 | # "new(er)" style init script 3 | # Look at /lib/functions/service.sh on a running system for explanations of what other SERVICE_ 4 | # options you can use, and when you might want them. 5 | 6 | START=01 7 | APP=find-devtype 8 | SERVICE_WRITE_PID=0 9 | SERVICE_DAEMONIZE=0 10 | DEV_TYPE_FILE=/tmp/BrBoxDevType.txt 11 | 12 | start() { 13 | /usr/bin/find-devtype > $DEV_TYPE_FILE 14 | } 15 | 16 | stop() { 17 | rm -f $DEV_TYPE_FILE 18 | } 19 | 20 | -------------------------------------------------------------------------------- /sources/scripts/cmn/gstd-startup-script/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | #this cmake is only used for installing scripts to target) 2 | cmake_minimum_required(VERSION 2.8.9) 3 | set(GSTD_STARTUP S26StartGstd) 4 | 5 | file(GLOB STARTUPFILE ${GSTD_STARTUP}) 6 | file(GLOB GSTDSCRIPTS "*.sh") 7 | install(PROGRAMS ${STARTUPFILE} DESTINATION etc/init.d) 8 | install(PROGRAMS ${GSTDSCRIPTS} DESTINATION usr/bin) 9 | 10 | 11 | #for cross compiling 12 | #cmake -H. -BOutput -DCMAKE_TOOLCHAIN_FILE=/path/to/toolchain-arm-backup.cmake -DCMAKE_INSTALL_PREFIX=/home/user/tmp/ 13 | #cmake --build Output -- all 14 | #cmake --build Output -- install 15 | 16 | #for local compiling 17 | #cmake -H. -BOutput 18 | #cmake --build Output -- all 19 | 20 | #for cleaning make generated output 21 | #rm -rf Output 22 | 23 | -------------------------------------------------------------------------------- /sources/scripts/cmn/gstd-startup-script/S26StartGstd: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Start Gstd-daemon 4 | # 5 | SERVER_NAME=gstd 6 | SERVER_PORT=5000 7 | SERVER_PROTOCOL="-t" 8 | start() { 9 | echo -n "Starting Gstd-daemon: " 10 | sysctl -w net.core.rmem_max=98214400 11 | mkdir -p /var/log/gstd/ 12 | mkdir -p /var/run/gstd/ 13 | export DISPLAY=:0;$SERVER_NAME --tcp-base-port=$SERVER_PORT $SERVER_PROTOCOL & 14 | echo "OK" 15 | } 16 | 17 | stop() { 18 | echo -n "Stopping Gstd-daemon: " 19 | killall $SERVER_NAME 20 | echo "OK" 21 | } 22 | 23 | case "$1" in 24 | start) 25 | start 26 | ;; 27 | stop) 28 | stop 29 | ;; 30 | restart|reload) 31 | stop 32 | start 33 | ;; 34 | *) 35 | echo "Usage: $0 {start|stop|restart}" 36 | exit 1 37 | esac 38 | 39 | exit $? 40 | 41 | -------------------------------------------------------------------------------- /sources/scripts/cmn/gstd-startup-script/play-uri.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | #./play-uri.sh -g -u -s 3 | USAGE="./play-uri.sh -g -u -s " 4 | URI="" 5 | VIDEOSINK="xvimagesink" 6 | GSTD_IP=127.0.0.1 #gstreamer-daemon ip 7 | GSTD_CLIENT_BIN=gst-client-1.0 8 | 9 | 10 | while getopts u:g:s: f 11 | do 12 | case $f in 13 | u) URI=$OPTARG ;; 14 | g) GSTD_IP=$OPTARG ;; 15 | s) VIDEOSINK=$OPTARG ;; 16 | esac 17 | done 18 | 19 | if [ $# -lt 2 ]; then 20 | echo $USAGE 21 | exit 1 22 | fi 23 | 24 | RES=$($GSTD_CLIENT_BIN --tcp-address=$GSTD_IP --tcp-port=5000 pipeline_delete p1) 25 | 26 | RES=$($GSTD_CLIENT_BIN --tcp-address=$GSTD_IP --tcp-port=5000 create /pipelines p1 playbin3 uri="$URI" video-sink=$VIDEOSINK) 27 | 28 | RES=$($GSTD_CLIENT_BIN --tcp-address=$GSTD_IP --tcp-port=5000 pipeline_play p1) 29 | 30 | -------------------------------------------------------------------------------- /sources/scripts/cmn/gstd-startup-script/stop-pipeline.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | #./stop-pipeline.sh -g -l 3 | USAGE="./stop-pipeline.sh -g -l " 4 | PIPELINE_ID=p1 5 | GSTD_IP=127.0.0.1 #gstreamer-daemon ip 6 | GSTD_CLIENT_BIN=gst-client-1.0 7 | 8 | while getopts g:l: f 9 | do 10 | case $f in 11 | l) PIPELINE_ID=$OPTARG ;; 12 | g) GSTD_IP=$OPTARG ;; 13 | esac 14 | done 15 | 16 | if [ $# -lt 2 ]; then 17 | echo $USAGE 18 | exit 1 19 | fi 20 | 21 | RES=$($GSTD_CLIENT_BIN --tcp-address=$GSTD_IP --tcp-port=5000 pipeline_delete $PIPELINE_ID) 22 | 23 | -------------------------------------------------------------------------------- /sources/scripts/cmn/huawei-E173-udev-rule/41-usb_modeswitch.rules: -------------------------------------------------------------------------------- 1 | ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1446", RUN+="usb_modeswitch '%b/%k'" 2 | ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="14db", RUN+="usb_modeswitch '%b/%k'" 3 | -------------------------------------------------------------------------------- /sources/scripts/cmn/lighty-config/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | #this cmake is only used for installing scripts to target) 2 | cmake_minimum_required(VERSION 2.8.9) 3 | set(LIGHTYCFG_DIR_LISTING dirlisting.conf) 4 | set(LIGHTYCFG_STARTUP S99PostLightyConfig) 5 | 6 | file(GLOB LIGHTYCFGFILES ${LIGHTYCFG_DIR_LISTING} ) 7 | file(GLOB STARTUPFILES ${LIGHTYCFG_STARTUP}) 8 | 9 | install(FILES ${LIGHTYCFGFILES} DESTINATION etc/lighttpd/conf.d) 10 | install(PROGRAMS ${STARTUPFILES} DESTINATION etc/init.d) 11 | 12 | if(CMAKE_HOST_UNIX) 13 | install(CODE "EXECUTE_PROCESS(WORKING_DIRECTORY \$ENV{TARGET_DIR}\${CMAKE_INSTALL_PREFIX}/var/www COMMAND ln -sf /tmp/downloads downloads)") 14 | #install(CODE "EXECUTE_PROCESS(WORKING_DIRECTORY \$ENV{TARGET_DIR}\${CMAKE_INSTALL_PREFIX}/tmp COMMAND mkdir -p /tmp/downloads)") 15 | endif(CMAKE_HOST_UNIX) 16 | 17 | -------------------------------------------------------------------------------- /sources/scripts/cmn/lighty-config/S99PostLightyConfig: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Set default hostname if desnt exist 4 | # 5 | start() { 6 | echo -n "Lighty-config startup: " 7 | mkdir -p /tmp/downloads 8 | echo "OK" 9 | } 10 | 11 | stop() { 12 | echo -n "Lighty-config stopping: " 13 | rm -rf /tmp/downloads 14 | echo "OK" 15 | } 16 | 17 | case "$1" in 18 | start) 19 | start 20 | ;; 21 | stop) 22 | stop 23 | ;; 24 | restart|reload) 25 | stop 26 | start 27 | ;; 28 | *) 29 | echo "Usage: $0 {start|stop|restart}" 30 | exit 1 31 | esac 32 | 33 | exit $? 34 | -------------------------------------------------------------------------------- /sources/scripts/cmn/prepare-boot-disk/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | #this cmake is only used for installing scripts to target) 2 | cmake_minimum_required(VERSION 2.8.9) 3 | set(PREPARE_BOOT_DISK prepare-boot-disk.sh) 4 | set(PREPARE_INTEL_DISK prepare-boot-disk-intel-usb.sh) 5 | set(PREPARE_BOOT_DISK_MIN prepare-boot-disk-minimal.sh) 6 | file(GLOB BOOTDISK_SCRIPT ${PREPARE_BOOT_DISK} ${PREPARE_INTEL_DISK} ${PREPARE_BOOT_DISK_MIN}) 7 | install(PROGRAMS ${BOOTDISK_SCRIPT} DESTINATION usr/bin/) 8 | 9 | -------------------------------------------------------------------------------- /sources/scripts/cmn/tftpd-config/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | #this cmake is only used for installing scripts to target) 2 | cmake_minimum_required(VERSION 2.8.9) 3 | #set(LIGHTYCFG_DIR_LISTING dirlisting.conf) 4 | set(TFTPDCFG_STARTUP S80tftpd-hpa) 5 | 6 | #file(GLOB LIGHTYCFGFILES ${LIGHTYCFG_DIR_LISTING} ) 7 | file(GLOB STARTUPFILES ${TFTPDCFG_STARTUP}) 8 | 9 | #install(FILES ${LIGHTYCFGFILES} DESTINATION etc/lighttpd/conf.d) 10 | install(PROGRAMS ${STARTUPFILES} DESTINATION etc/init.d) 11 | 12 | #if(CMAKE_HOST_UNIX) 13 | #install(CODE "EXECUTE_PROCESS(WORKING_DIRECTORY \$ENV{TARGET_DIR}\${CMAKE_INSTALL_PREFIX}/var/www COMMAND ln -sf /tmp/downloads downloads)") 14 | #endif(CMAKE_HOST_UNIX) 15 | 16 | -------------------------------------------------------------------------------- /sources/scripts/cmn/umts-keeper/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | #this cmake is only used for installing scripts to target) 2 | cmake_minimum_required(VERSION 2.8.9) 3 | set(UMTS_SCR_FILE1 favicon.ico) #umts script to be copied to target 4 | set(UMTS_SCR_FILE2 robots.txt) #umts script to be copied to target 5 | set(UMTS_SCR_FILE3 style.css) #umts script to be copied to target 6 | set(UMTS_SCR_FILE4 umtskeeper) #umts script to be copied to target 7 | set(UMTS_SCR_FILE5 sakis3g) #umts script to be copied to target 8 | set(UMTS_SCR_STARTUP S55UmtsKeeper) #umts script to be copied to target 9 | 10 | file(GLOB UMTSFILES ${UMTS_SCR_FILE1} ${UMTS_SCR_FILE2} ${UMTS_SCR_FILE3} ${UMTS_SCR_FILE4} ${UMTS_SCR_FILE5}) 11 | file(GLOB UMTS_STARTUP ${UMTS_SCR_STARTUP}) 12 | install(PROGRAMS ${UMTSFILES} DESTINATION etc/umts-keeper) 13 | install(PROGRAMS ${UMTS_STARTUP} DESTINATION etc/init.d) 14 | 15 | -------------------------------------------------------------------------------- /sources/scripts/cmn/umts-keeper/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/sources/scripts/cmn/umts-keeper/favicon.ico -------------------------------------------------------------------------------- /sources/scripts/cmn/umts-keeper/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: / -------------------------------------------------------------------------------- /sources/scripts/cmn/umts-keeper/sakis3g: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/sources/scripts/cmn/umts-keeper/sakis3g -------------------------------------------------------------------------------- /sources/scripts/postbootup/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | #this cmake is used for installing media files to target) 2 | cmake_minimum_required(VERSION 2.8.9) 3 | set(POST_BOOTUP_SCRIPT S79ZPostBootInit) 4 | file(GLOB SCRIPT_FILES ${POST_BOOTUP_SCRIPT}) 5 | install(PROGRAMS ${SCRIPT_FILES} DESTINATION opt/fmw/etc/init.d/) 6 | -------------------------------------------------------------------------------- /sources/scripts/postbootup/rc.local: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # rc.local 4 | # 5 | # This script is executed at the end of each multiuser runlevel. 6 | # Make sure that the script will "exit 0" on success or any other 7 | # value on error. 8 | # 9 | # In order to enable or disable this script just change the execution 10 | # bits. 11 | # 12 | # By default this script does nothing. 13 | 14 | #echo hello-world 15 | sleep 5 16 | /opt/fmw/bin/mplayclt --pattern=blue 17 | /opt/fmw/bin/mplayclt --mfile=/mnt/userdata/test.h264 18 | /opt/fmw/bin/mplayclt --mloop=enable 19 | /opt/fmw/bin/mplayclt --seamlessloop=enable 20 | /opt/fmw/bin/mplayclt --maction=start 21 | -------------------------------------------------------------------------------- /sources/scripts/raspi2/boot/S02MountSettings: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Start logging 4 | # 5 | STTNGS_PARTITION=/dev/mmcblk0p5 6 | start() { 7 | echo -n "Mounting Settings Partition: " 8 | mount $STTNGS_PARTITION /mnt/settings 9 | echo "OK" 10 | } 11 | 12 | stop() { 13 | echo -n "Unmounting Settings Partition: " 14 | umount /mnt/settings 15 | echo "OK" 16 | } 17 | 18 | case "$1" in 19 | start) 20 | start 21 | ;; 22 | stop) 23 | stop 24 | ;; 25 | restart|reload) 26 | stop 27 | start 28 | ;; 29 | *) 30 | echo "Usage: $0 {start|stop|restart}" 31 | exit 1 32 | esac 33 | 34 | exit $? 35 | -------------------------------------------------------------------------------- /sources/scripts/raspi2/boot/cmdline.txt: -------------------------------------------------------------------------------- 1 | logo.nologo ro rootwait root=/dev/mmcblk0p2 console=tty1 console=tty0,115200 2 | -------------------------------------------------------------------------------- /sources/scripts/raspi2/boot/fstab: -------------------------------------------------------------------------------- 1 | # 2 | /dev/root / ext3 rw,noauto 0 1 3 | proc /proc proc defaults 0 0 4 | devpts /dev/pts devpts defaults,gid=5,mode=620 0 0 5 | tmpfs /dev/shm tmpfs mode=0777 0 0 6 | tmpfs /tmp tmpfs mode=1777 0 0 7 | tmpfs /run tmpfs mode=0755,nosuid,nodev 0 0 8 | sysfs /sys sysfs defaults 0 0 9 | /dev/mmcblk0p5 /mnt/settings ext3 defaults,sync 0 0 10 | /dev/mmcblk0p6 /mnt/userdata vfat defaults,sync 0 0 11 | -------------------------------------------------------------------------------- /sources/scripts/raspi2/update/S02MountSettings: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Start logging 4 | # 5 | STTNGS_PARTITION=/dev/mmcblk0p5 6 | start() { 7 | echo -n "Mounting Settings Partition: " 8 | mount $STTNGS_PARTITION /mnt/settings 9 | echo "OK" 10 | } 11 | 12 | stop() { 13 | echo -n "Unmounting Settings Partition: " 14 | umount /mnt/settings 15 | echo "OK" 16 | } 17 | 18 | case "$1" in 19 | start) 20 | start 21 | ;; 22 | stop) 23 | stop 24 | ;; 25 | restart|reload) 26 | stop 27 | start 28 | ;; 29 | *) 30 | echo "Usage: $0 {start|stop|restart}" 31 | exit 1 32 | esac 33 | 34 | exit $? 35 | -------------------------------------------------------------------------------- /sources/scripts/raspi2/update/fstab: -------------------------------------------------------------------------------- 1 | # 2 | /dev/root / ext2 noauto 0 1 3 | proc /proc proc defaults 0 0 4 | devpts /dev/pts devpts defaults,gid=5,mode=620 0 0 5 | tmpfs /dev/shm tmpfs mode=0777 0 0 6 | tmpfs /tmp tmpfs mode=1777 0 0 7 | tmpfs /run tmpfs mode=0755,nosuid,nodev 0 0 8 | sysfs /sys sysfs defaults 0 0 9 | /dev/mmcblk0p5 /mnt/settings ext3 defaults,sync 0 0 10 | /dev/mmcblk0p6 /mnt/userdata ext3 defaults,sync 0 0 11 | -------------------------------------------------------------------------------- /sources/services/apisrv/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 2.8.9) 2 | set(PROJECT_NAME Apisrv) 3 | project(${PROJECT_NAME}) 4 | add_subdirectory(srv) 5 | #add_subdirectory(clt) 6 | 7 | #for cross compiling 8 | #cmake -H. -BOutput -DCMAKE_TOOLCHAIN_FILE=/path/to/toolchain-arm-backup.cmake -DCMAKE_INSTALL_PREFIX=/home/user/tmp/ 9 | #cmake --build Output -- all 10 | #cmake --build Output -- install 11 | 12 | #for local compiling 13 | #cmake -H. -BOutput 14 | #cmake --build Output -- all 15 | 16 | #for cleaning make generated output 17 | #rm -rf Output 18 | -------------------------------------------------------------------------------- /sources/services/apisrv/clt/.empty: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/sources/services/apisrv/clt/.empty -------------------------------------------------------------------------------- /sources/services/apisrv/srv/ApisrvStartupScr: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Start/stop server script 4 | # 5 | CLIENT_NAME=/opt/fmw/bin/apiclt 6 | SERVER_NAME=apisrv 7 | SERVER_PATH=/opt/fmw/bin/ 8 | DEV_TYPE_FILE=/tmp/BrBoxDevType.txt 9 | HTTP_PORT=8080 10 | start() { 11 | echo -n "Starting $SERVER_NAME Service: " 12 | DEV_TYPE=$(cat $DEV_TYPE_FILE) 13 | $SERVER_PATH/$SERVER_NAME --boardtype=$DEV_TYPE --httpport=$HTTP_PORT & 14 | echo "OK" 15 | } 16 | 17 | stop() { 18 | echo -n "Stopping $SERVER_NAME Service: " 19 | $CLIENT_NAME --shutdown 20 | sleep 1 21 | echo "OK" 22 | } 23 | 24 | case "$1" in 25 | start) 26 | start 27 | ;; 28 | stop) 29 | stop 30 | ;; 31 | restart|reload) 32 | stop 33 | start 34 | ;; 35 | *) 36 | echo "Usage: $0 {start|stop|restart}" 37 | exit 1 38 | esac 39 | 40 | exit $? 41 | -------------------------------------------------------------------------------- /sources/services/apisrv/srv/WrtApisrvStartupScr: -------------------------------------------------------------------------------- 1 | #!/bin/sh /etc/rc.common 2 | # "new(er)" style init script 3 | # Look at /lib/functions/service.sh on a running system for explanations of what other SERVICE_ 4 | # options you can use, and when you might want them. 5 | 6 | START=74 7 | APP=apisrv 8 | SERVICE_WRITE_PID=1 9 | SERVICE_DAEMONIZE=1 10 | HTTP_PORT=80 11 | 12 | start() { 13 | service_start /opt/fmw/bin/$APP --boardtype=$(cat /tmp/BrBoxDevType.txt) --httpport=$HTTP_PORT 14 | } 15 | 16 | stop() { 17 | service_stop /opt/fmw/bin/$APP 18 | } 19 | 20 | -------------------------------------------------------------------------------- /sources/services/apisrv/srv/test1.json: -------------------------------------------------------------------------------- 1 | { 2 | "energy": 3 | { 4 | "voltage" :"/energy/voltage.txt", 5 | "current" :"/energy/current.txt", 6 | "frequency":"/energy/freq.txt", 7 | "pfactor" :"/energy/pfactor.txt" 8 | }, 9 | "temps": 10 | { 11 | "ambient" :"/temps/ambient.txt", 12 | "cpu" :"/temps/cpu.txt", 13 | "internal" :"/temps/internal.txt", 14 | "external" :"/temps/external.txt" 15 | }, 16 | "fan": 17 | { 18 | "fan1" : 19 | { 20 | "actualspeed":"/fan/fan1/actualspeed.txt", 21 | "setspeed" :"/fan/fan1/setspeed.txt" 22 | }, 23 | "fan2" : 24 | { 25 | "actualspeed":"/fan/fan2/actualspeed.txt", 26 | "setspeed" :"/fan/fan2/setspeed.txt" 27 | }, 28 | "fan3" : 29 | { 30 | "actualspeed":"/fan/fan3/actualspeed.txt", 31 | "setspeed" :"/fan/fan3/setspeed.txt" 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /sources/services/bboxsms/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 2.8.9) 2 | set(PROJECT_NAME Bboxsms) 3 | project(${PROJECT_NAME}) 4 | add_subdirectory(srv) 5 | add_subdirectory(clt) 6 | 7 | #for cross compiling 8 | #cmake -H. -BOutput -DCMAKE_TOOLCHAIN_FILE=/path/to/toolchain-arm-backup.cmake -DCMAKE_INSTALL_PREFIX=/home/user/tmp/ 9 | #cmake --build Output -- all 10 | #cmake --build Output -- install 11 | 12 | #for local compiling 13 | #cmake -H. -BOutput 14 | #cmake --build Output -- all 15 | 16 | #for cleaning make generated output 17 | #rm -rf Output 18 | -------------------------------------------------------------------------------- /sources/services/bboxsms/clt/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | #include "BboxsmsCltCmdline.h" 6 | using namespace std; 7 | int main(int argc, const char* argv[]) 8 | { 9 | BboxsmsCltCmdline CmdLine; 10 | CmdLine.parse_cmdline_arguments(argc,(char**)argv); 11 | return 0; 12 | } 13 | -------------------------------------------------------------------------------- /sources/services/bboxsms/srv/BboxsmsStartupScr: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Start/stop server script 4 | # 5 | SERVER_NAME=bboxsmsrv 6 | SERVER_PATH=/opt/fmw/bin/ 7 | DEV_TYPE_FILE=/tmp/BrBoxDevType.txt 8 | start() { 9 | echo -n "Starting $SERVER_NAME Service: " 10 | DEV_TYPE=$(cat $DEV_TYPE_FILE) 11 | $SERVER_PATH/$SERVER_NAME --boardtype=$DEV_TYPE & 12 | echo "OK" 13 | } 14 | 15 | stop() { 16 | echo -n "Stopping $SERVER_NAME Service: " 17 | killall $SERVER_NAME 18 | echo "OK" 19 | } 20 | 21 | case "$1" in 22 | start) 23 | start 24 | ;; 25 | stop) 26 | stop 27 | ;; 28 | restart|reload) 29 | stop 30 | start 31 | ;; 32 | *) 33 | echo "Usage: $0 {start|stop|restart}" 34 | exit 1 35 | esac 36 | 37 | exit $? 38 | -------------------------------------------------------------------------------- /sources/services/bboxsms/srv/WrtBboxsmsStartupScr: -------------------------------------------------------------------------------- 1 | #!/bin/sh /etc/rc.common 2 | # "new(er)" style init script 3 | # Look at /lib/functions/service.sh on a running system for explanations of what other SERVICE_ 4 | # options you can use, and when you might want them. 5 | 6 | START=76 7 | APP=bboxsmssrv 8 | APPCLT=bboxsmsclt 9 | SERVICE_WRITE_PID=1 10 | SERVICE_DAEMONIZE=1 11 | 12 | start() { 13 | service_start /opt/fmw/bin/$APP --boardtype=$(cat /tmp/BrBoxDevType.txt) & 14 | } 15 | 16 | stop() { 17 | /opt/fmw/bin/$APPCLT --shutdown 18 | sleep 5 19 | } 20 | -------------------------------------------------------------------------------- /sources/services/dispsrv/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 2.8.9) 2 | set(PROJECT_NAME Dispsrv) 3 | project(${PROJECT_NAME}) 4 | add_subdirectory(srv) 5 | add_subdirectory(clt) 6 | 7 | #for cross compiling 8 | #cmake -H. -BOutput -DCMAKE_TOOLCHAIN_FILE=/path/to/toolchain-arm-backup.cmake -DCMAKE_INSTALL_PREFIX=/home/user/tmp/ 9 | #cmake --build Output -- all 10 | #cmake --build Output -- install 11 | 12 | #for local compiling 13 | #cmake -H. -BOutput 14 | #cmake --build Output -- all 15 | 16 | #for cleaning make generated output 17 | #rm -rf Output 18 | -------------------------------------------------------------------------------- /sources/services/dispsrv/clt/src/DispCltCmdline.h: -------------------------------------------------------------------------------- 1 | #ifndef __DISPCLT_CMDLINE_H_ 2 | #define __DISPCLT_CMDLINE_H_ 3 | #include "ADCmdlineHelper.hpp" 4 | #include "DispsrvJsonDef.h" 5 | #include "ADCmnStringProcessor.hpp" 6 | class DispCltCmdline:public ADCmdlineHelperConsumer ,public ADCmnStringProcessor 7 | { 8 | ADCmdlineHelper CmdlineHelper; 9 | 10 | //Chain-callback functions 11 | virtual int parse_my_cmdline_options(int arg, char* sub_arg); 12 | virtual int run_my_commands(CmdExecutionObj *pCmdObj,ADJsonRpcClient *pSrvSockConn,ADGenericChain *pOutMsgList,ADThreadedSockClientProducer *pWorker);//char* ip); 13 | virtual int run_my_autotest(char* ip,int interval_us,int max_loop,int test_num); 14 | virtual int print_my_version(); 15 | virtual int get_my_server_port(); 16 | public: 17 | DispCltCmdline(); 18 | ~DispCltCmdline(); 19 | int parse_cmdline_arguments(int argc, char **argv); 20 | }; 21 | #endif 22 | -------------------------------------------------------------------------------- /sources/services/dispsrv/clt/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | #include "DispCltCmdline.h" 6 | using namespace std; 7 | int main(int argc, const char* argv[]) 8 | { 9 | DispCltCmdline CmdLine; 10 | CmdLine.parse_cmdline_arguments(argc,(char**)argv); 11 | return 0; 12 | } 13 | -------------------------------------------------------------------------------- /sources/services/gpioctl/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 2.8.9) 2 | set(PROJECT_NAME Gpioctl) 3 | project(${PROJECT_NAME}) 4 | add_subdirectory(srv) 5 | add_subdirectory(clt) 6 | 7 | #for cross compiling 8 | #cmake -H. -BOutput -DCMAKE_TOOLCHAIN_FILE=/path/to/toolchain-arm-backup.cmake -DCMAKE_INSTALL_PREFIX=/home/user/tmp/ 9 | #cmake --build Output -- all 10 | #cmake --build Output -- install 11 | 12 | #for local compiling 13 | #cmake -H. -BOutput 14 | #cmake --build Output -- all 15 | 16 | #for cleaning make generated output 17 | #rm -rf Output 18 | -------------------------------------------------------------------------------- /sources/services/gpioctl/clt/src/GpioCltCmdline.h: -------------------------------------------------------------------------------- 1 | #ifndef __GPIOCLT_CMDLINE_H_ 2 | #define __GPIOCLT_CMDLINE_H_ 3 | #include "ADCmdlineHelper.hpp" 4 | #include "GpioctlJsonDef.h" 5 | #include "ADCmnStringProcessor.hpp" 6 | class GpioCltCmdline:public ADCmdlineHelperConsumer ,public ADCmnStringProcessor 7 | { 8 | ADCmdlineHelper CmdlineHelper; 9 | 10 | //Chain-callback functions 11 | virtual int parse_my_cmdline_options(int arg, char* sub_arg); 12 | virtual int run_my_commands(CmdExecutionObj *pCmdObj,ADJsonRpcClient *pSrvSockConn,ADGenericChain *pOutMsgList,ADThreadedSockClientProducer *pWorker);//char* ip); 13 | virtual int run_my_autotest(char* ip,int interval_us,int max_loop,int test_num); 14 | virtual int print_my_version(); 15 | virtual int get_my_server_port(); 16 | public: 17 | GpioCltCmdline(); 18 | ~GpioCltCmdline(); 19 | int parse_cmdline_arguments(int argc, char **argv); 20 | }; 21 | #endif 22 | -------------------------------------------------------------------------------- /sources/services/gpioctl/clt/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | #include "GpioCltCmdline.h" 6 | using namespace std; 7 | int main(int argc, const char* argv[]) 8 | { 9 | GpioCltCmdline CmdLine; 10 | CmdLine.parse_cmdline_arguments(argc,(char**)argv); 11 | return 0; 12 | } 13 | -------------------------------------------------------------------------------- /sources/services/gpioctl/readme.txt: -------------------------------------------------------------------------------- 1 | This is a gpio control service supporting different h/w including raspberry pi 1 and 2 models. 2 | 3 | use the following command on raspi-relay-power-strip to control those 4 relay's 4 | ON : ./bin/gpioclt --gpio=17,1 --gpio=22,1 --gpio=23,1 --gpio=24,1 5 | OFF: ./bin/gpioclt --gpio=17,0 --gpio=22,0 --gpio=23,0 --gpio=24,0 6 | -------------------------------------------------------------------------------- /sources/services/gpioctl/srv/GpioctlStartupScr: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Start/stop server script 4 | # 5 | SERVER_NAME=gpiosrv 6 | SERVER_PATH=/opt/fmw/bin/ 7 | DEV_TYPE_FILE=/tmp/BrBoxDevType.txt 8 | start() { 9 | echo -n "Starting $SERVER_NAME Service: " 10 | DEV_TYPE=$(cat $DEV_TYPE_FILE) 11 | $SERVER_PATH/$SERVER_NAME --boardtype=$DEV_TYPE & 12 | echo "OK" 13 | } 14 | 15 | stop() { 16 | echo -n "Stopping $SERVER_NAME Service: " 17 | killall $SERVER_NAME 18 | echo "OK" 19 | } 20 | 21 | case "$1" in 22 | start) 23 | start 24 | ;; 25 | stop) 26 | stop 27 | ;; 28 | restart|reload) 29 | stop 30 | start 31 | ;; 32 | *) 33 | echo "Usage: $0 {start|stop|restart}" 34 | exit 1 35 | esac 36 | 37 | exit $? 38 | -------------------------------------------------------------------------------- /sources/services/hotwire/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 2.8.9) 2 | set(PROJECT_NAME Hotwire) 3 | project(${PROJECT_NAME}) 4 | add_subdirectory(srv) 5 | add_subdirectory(clt) 6 | 7 | #for cross compiling 8 | #cmake -H. -BOutput -DCMAKE_TOOLCHAIN_FILE=/path/to/toolchain-arm-backup.cmake -DCMAKE_INSTALL_PREFIX=/home/user/tmp/ 9 | #cmake --build Output -- all 10 | #cmake --build Output -- install 11 | 12 | #for local compiling 13 | #cmake -H. -BOutput 14 | #cmake --build Output -- all 15 | 16 | #for cleaning make generated output 17 | #rm -rf Output 18 | -------------------------------------------------------------------------------- /sources/services/hotwire/clt/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | #include "HotwireCltCmdline.h" 6 | using namespace std; 7 | int main(int argc, const char* argv[]) 8 | { 9 | GpioCltCmdline CmdLine; 10 | CmdLine.parse_cmdline_arguments(argc,(char**)argv); 11 | return 0; 12 | } 13 | -------------------------------------------------------------------------------- /sources/services/hotwire/readme.txt: -------------------------------------------------------------------------------- 1 | hotwire is an app developped for a game 2 | -------------------------------------------------------------------------------- /sources/services/hotwire/srv/MplaySrvStartupScr: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Start/stop server script 4 | # 5 | SERVER_NAME=mplaysrv #hotwiresrv 6 | SERVER_PATH=/opt/fmw/bin/ 7 | DEV_TYPE_FILE=/tmp/BrBoxDevType.txt 8 | start() { 9 | echo -n "Starting $SERVER_NAME Service: " 10 | DEV_TYPE=$(cat $DEV_TYPE_FILE) 11 | $SERVER_PATH/$SERVER_NAME --boardtype=$DEV_TYPE --edid_dvi="/dev/i2c-1" --edid_hdmi="/dev/i2c-2" --edid_dp="/dev/i2c-3" 1>/dev/null 2>/dev/null & 12 | echo "OK" 13 | } 14 | 15 | stop() { 16 | echo -n "Stopping $SERVER_NAME Service: " 17 | killall $SERVER_NAME 18 | echo "OK" 19 | } 20 | 21 | case "$1" in 22 | start) 23 | start 24 | ;; 25 | stop) 26 | stop 27 | ;; 28 | restart|reload) 29 | stop 30 | start 31 | ;; 32 | *) 33 | echo "Usage: $0 {start|stop|restart}" 34 | exit 1 35 | esac 36 | 37 | exit $? 38 | -------------------------------------------------------------------------------- /sources/services/hotwire/srv/gst-loop.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | export DISPLAY=:0 3 | while true; do 4 | gst-play-1.0 $1 --videosink=xvimagesink 5 | #wait 6 | if [ -f /tmp/omxplay.stoploop ]; then 7 | rm -rf /tmp/omxplay.stoploop 8 | #fbset -depth 8 && fbset -depth 16 9 | #touch /tmp/omxplay.finished 10 | break 11 | fi 12 | done 13 | 14 | -------------------------------------------------------------------------------- /sources/services/hotwire/srv/omx-loop.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | while true; do 3 | /usr/bin/omxplayer --loop -b --layer 2 -r -o both $1 < /tmp/omxplay.fifo & 4 | echo . > /tmp/omxplay.fifo 5 | wait 6 | if [ -f /tmp/omxplay.stoploop ]; then 7 | rm -rf /tmp/omxplay.stoploop 8 | fbset -depth 8 && fbset -depth 16 9 | touch /tmp/omxplay.finished 10 | break 11 | fi 12 | done 13 | 14 | -------------------------------------------------------------------------------- /sources/services/hotwire/srv/src/MPlayer.cpp: -------------------------------------------------------------------------------- 1 | #include "MPlayer.h" 2 | using namespace std; 3 | /*****************************************************************************/ 4 | MPlayer::MPlayer(std::string devnode)//:I2CBusAccess(devnode) 5 | { 6 | edid_dev_node=devnode; 7 | graphics_out_sts=MPLAYSRV_GRAPHICS_OUT_ENABLE;//by default graphics out is enabled 8 | } 9 | /*****************************************************************************/ 10 | MPlayer::~MPlayer() 11 | { 12 | } 13 | /*****************************************************************************/ 14 | 15 | -------------------------------------------------------------------------------- /sources/services/i2csrv/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 2.8.9) 2 | set(PROJECT_NAME Gpioctl) 3 | project(${PROJECT_NAME}) 4 | add_subdirectory(srv) 5 | add_subdirectory(clt) 6 | 7 | #for cross compiling 8 | #cmake -H. -BOutput -DCMAKE_TOOLCHAIN_FILE=/path/to/toolchain-arm-backup.cmake -DCMAKE_INSTALL_PREFIX=/home/user/tmp/ 9 | #cmake --build Output -- all 10 | #cmake --build Output -- install 11 | 12 | #for local compiling 13 | #cmake -H. -BOutput 14 | #cmake --build Output -- all 15 | 16 | #for cleaning make generated output 17 | #rm -rf Output 18 | -------------------------------------------------------------------------------- /sources/services/i2csrv/README.md: -------------------------------------------------------------------------------- 1 | # i2csrv 2 | i2csrv is a userspace daemon which allows accessing of i2c devices over tcp-socket via json-rpc mechanism. 3 | Before running i2csrv, ensure that /dev/i2c-n exists, n should be the index of the bus number. 4 | 5 | On raspberry pi, /dev/i2c-1 is accessible on following pins. 6 | 1. Pin-01 : 3.3vDC 7 | 2. Pin-03 : SDA1 8 | 3. Pin-05 : SCL1 9 | 4. Pin-39 : Ground 10 | 11 | 12 | Before running i2csrv, its a good idea to scan available i2c devices on the bus using following command. 13 | 1. ```i2cdetect -y 1``` 14 | 15 | Following command can be used to test the accessibility of PCF8574 having a address of 0x78 16 | 1. ```i2cset -f -y 1 0x3c 0x00 0xff b``` (makes all pins of PCF8574 as high) 17 | 2. ```i2cset -f -y 1 0x3c 0x00 0x00 b``` (makes all pins of PCF8574 as low) 18 | 19 | 20 | -------------------------------------------------------------------------------- /sources/services/i2csrv/clt/src/I2CCltCmdline.h: -------------------------------------------------------------------------------- 1 | #ifndef __I2CCLT_CMDLINE_H_ 2 | #define __I2CCLT_CMDLINE_H_ 3 | #include "ADCmdlineHelper.hpp" 4 | #include "I2CSrvJsonDef.h" 5 | #include "ADCmnStringProcessor.hpp" 6 | class I2CCltCmdline:public ADCmdlineHelperConsumer ,public ADCmnStringProcessor 7 | { 8 | ADCmdlineHelper CmdlineHelper; 9 | 10 | //Chain-callback functions 11 | virtual int parse_my_cmdline_options(int arg, char* sub_arg); 12 | virtual int run_my_commands(CmdExecutionObj *pCmdObj,ADJsonRpcClient *pSrvSockConn,ADGenericChain *pOutMsgList,ADThreadedSockClientProducer *pWorker);//char* ip); 13 | virtual int run_my_autotest(char* ip,int interval_us,int max_loop,int test_num); 14 | virtual int print_my_version(); 15 | virtual int get_my_server_port(); 16 | public: 17 | I2CCltCmdline(); 18 | ~I2CCltCmdline(); 19 | int parse_cmdline_arguments(int argc, char **argv); 20 | }; 21 | #endif 22 | -------------------------------------------------------------------------------- /sources/services/i2csrv/clt/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | #include "I2CCltCmdline.h" 6 | using namespace std; 7 | int main(int argc, const char* argv[]) 8 | { 9 | I2CCltCmdline CmdLine; 10 | CmdLine.parse_cmdline_arguments(argc,(char**)argv); 11 | return 0; 12 | } 13 | -------------------------------------------------------------------------------- /sources/services/i2csrv/srv/I2CSrvStartupScr: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Start/stop server script 4 | # 5 | I2CDEVNODE=/dev/i2c-1 #todo: for raspi this works, to be handled correctly for other services 6 | SERVER_NAME=i2csrv 7 | SERVER_PATH=/opt/fmw/bin/ 8 | DEV_TYPE_FILE=/tmp/BrBoxDevType.txt 9 | start() { 10 | echo -n "Starting $SERVER_NAME Service: " 11 | DEV_TYPE=$(cat $DEV_TYPE_FILE) 12 | $SERVER_PATH/$SERVER_NAME --boardtype=$DEV_TYPE --device=$I2CDEVNODE & 13 | echo "OK" 14 | } 15 | 16 | stop() { 17 | echo -n "Stopping $SERVER_NAME Service: " 18 | killall $SERVER_NAME 19 | echo "OK" 20 | } 21 | 22 | case "$1" in 23 | start) 24 | start 25 | ;; 26 | stop) 27 | stop 28 | ;; 29 | restart|reload) 30 | stop 31 | start 32 | ;; 33 | *) 34 | echo "Usage: $0 {start|stop|restart}" 35 | exit 1 36 | esac 37 | 38 | exit $? 39 | -------------------------------------------------------------------------------- /sources/services/lightsense/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 2.8.9) 2 | set(PROJECT_NAME LightSense) 3 | project(${PROJECT_NAME}) 4 | add_subdirectory(srv) 5 | add_subdirectory(clt) 6 | 7 | #for cross compiling 8 | #cmake -H. -BOutput -DCMAKE_TOOLCHAIN_FILE=/path/to/toolchain-arm-backup.cmake -DCMAKE_INSTALL_PREFIX=/home/user/tmp/ 9 | #cmake --build Output -- all 10 | #cmake --build Output -- install 11 | 12 | #for local compiling 13 | #cmake -H. -BOutput 14 | #cmake --build Output -- all 15 | 16 | #for cleaning make generated output 17 | #rm -rf Output 18 | -------------------------------------------------------------------------------- /sources/services/lightsense/clt/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | #include "CltCmdline.h" 6 | using namespace std; 7 | int main(int argc, const char* argv[]) 8 | { 9 | CltCmdline CmdLine; 10 | CmdLine.parse_cmdline_arguments(argc,(char**)argv); 11 | return 0; 12 | } 13 | -------------------------------------------------------------------------------- /sources/services/lightsense/srv/LightSenseSrvStartupScr: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Start/stop server script 4 | # 5 | SERVER_NAME=lightsensesrv 6 | SERVER_PATH=/opt/fmw/bin/ 7 | DEV_TYPE_FILE=/tmp/BrBoxDevType.txt 8 | start() { 9 | echo -n "Starting $SERVER_NAME Service: " 10 | DEV_TYPE=$(cat $DEV_TYPE_FILE) 11 | $SERVER_PATH/$SERVER_NAME --boardtype=$DEV_TYPE --sensortype=taos3414 --device=/dev/i2c-1 & 12 | echo "OK" 13 | } 14 | 15 | stop() { 16 | echo -n "Stopping $SERVER_NAME Service: " 17 | killall $SERVER_NAME 18 | echo "OK" 19 | } 20 | 21 | case "$1" in 22 | start) 23 | start 24 | ;; 25 | stop) 26 | stop 27 | ;; 28 | restart|reload) 29 | stop 30 | start 31 | ;; 32 | *) 33 | echo "Usage: $0 {start|stop|restart}" 34 | exit 1 35 | esac 36 | 37 | exit $? 38 | -------------------------------------------------------------------------------- /sources/services/lightsense/srv/WrtLightSenseSrvStartupScr: -------------------------------------------------------------------------------- 1 | #!/bin/sh /etc/rc.common 2 | # "new(er)" style init script 3 | # Look at /lib/functions/service.sh on a running system for explanations of what other SERVICE_ 4 | # options you can use, and when you might want them. 5 | 6 | START=73 7 | APP=lightsensesrv 8 | SERVICE_WRITE_PID=1 9 | SERVICE_DAEMONIZE=1 10 | SENSORTYPE=oosts #if i2c device 0x39 is not found, then start as spectrometer sensor 11 | DEVNODE=/dev/i2c-0 12 | start() { 13 | 14 | #DEVNODE=$(ls -la /dev/i2c-* |head -1|grep -oh "/dev/.*") #choose the first i2c device node in the list 15 | #auto detect 16 | i2cdetect -r -y 0 | grep 39 > /dev/null && SENSORTYPE=taos3414 17 | service_start /opt/fmw/bin/$APP --boardtype=$(cat /tmp/BrBoxDevType.txt) --sensortype=$SENSORTYPE --device=$DEVNODE 18 | } 19 | 20 | stop() { 21 | service_stop /opt/fmw/bin/$APP 22 | } 23 | 24 | -------------------------------------------------------------------------------- /sources/services/modbussrv/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 2.8.9) 2 | set(PROJECT_NAME ModBusSrv) 3 | project(${PROJECT_NAME}) 4 | add_subdirectory(srv) 5 | add_subdirectory(clt) 6 | 7 | #for cross compiling 8 | #cmake -H. -BOutput -DCMAKE_TOOLCHAIN_FILE=/path/to/toolchain-arm-backup.cmake -DCMAKE_INSTALL_PREFIX=/home/user/tmp/ 9 | #cmake --build Output -- all 10 | #cmake --build Output -- install 11 | 12 | #for local compiling 13 | #cmake -H. -BOutput 14 | #cmake --build Output -- all 15 | 16 | #for cleaning make generated output 17 | #rm -rf Output 18 | -------------------------------------------------------------------------------- /sources/services/modbussrv/clt/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | #include "CltCmdline.h" 6 | using namespace std; 7 | int main(int argc, const char* argv[]) 8 | { 9 | CltCmdline CmdLine; 10 | CmdLine.parse_cmdline_arguments(argc,(char**)argv); 11 | return 0; 12 | } 13 | -------------------------------------------------------------------------------- /sources/services/monitsrv/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 2.8.9) 2 | set(PROJECT_NAME MonitSrv) 3 | project(${PROJECT_NAME}) 4 | add_subdirectory(srv) 5 | add_subdirectory(clt) 6 | 7 | #for cross compiling 8 | #cmake -H. -BOutput -DCMAKE_TOOLCHAIN_FILE=/path/to/toolchain-arm-backup.cmake -DCMAKE_INSTALL_PREFIX=/home/user/tmp/ 9 | #cmake --build Output -- all 10 | #cmake --build Output -- install 11 | 12 | #for local compiling 13 | #cmake -H. -BOutput 14 | #cmake --build Output -- all 15 | 16 | #for cleaning make generated output 17 | #rm -rf Output 18 | -------------------------------------------------------------------------------- /sources/services/monitsrv/clt/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | #include "CltCmdline.h" 6 | using namespace std; 7 | int main(int argc, const char* argv[]) 8 | { 9 | CltCmdline CmdLine; 10 | CmdLine.parse_cmdline_arguments(argc,(char**)argv); 11 | return 0; 12 | } 13 | -------------------------------------------------------------------------------- /sources/services/monitsrv/srv/MonitSrvStartupScr: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Start/stop server script 4 | # 5 | I2CDEVNODE=/dev/i2c-1 #todo: for raspi this works, to be handled correctly for other services 6 | SERVER_NAME=i2csrv 7 | SERVER_PATH=/opt/fmw/bin/ 8 | DEV_TYPE_FILE=/tmp/BrBoxDevType.txt 9 | start() { 10 | echo -n "Starting $SERVER_NAME Service: " 11 | DEV_TYPE=$(cat $DEV_TYPE_FILE) 12 | $SERVER_PATH/$SERVER_NAME --boardtype=$DEV_TYPE --device=$I2CDEVNODE & 13 | echo "OK" 14 | } 15 | 16 | stop() { 17 | echo -n "Stopping $SERVER_NAME Service: " 18 | killall $SERVER_NAME 19 | echo "OK" 20 | } 21 | 22 | case "$1" in 23 | start) 24 | start 25 | ;; 26 | stop) 27 | stop 28 | ;; 29 | restart|reload) 30 | stop 31 | start 32 | ;; 33 | *) 34 | echo "Usage: $0 {start|stop|restart}" 35 | exit 1 36 | esac 37 | 38 | exit $? 39 | -------------------------------------------------------------------------------- /sources/services/smarteye/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 2.8.9) 2 | set(PROJECT_NAME Smarteye) 3 | project(${PROJECT_NAME}) 4 | add_subdirectory(srv) 5 | add_subdirectory(clt) 6 | 7 | #for cross compiling 8 | #cmake -H. -BOutput -DCMAKE_TOOLCHAIN_FILE=/path/to/toolchain-arm-backup.cmake -DCMAKE_INSTALL_PREFIX=/home/user/tmp/ 9 | #cmake --build Output -- all 10 | #cmake --build Output -- install 11 | 12 | #for local compiling 13 | #cmake -H. -BOutput 14 | #cmake --build Output -- all 15 | 16 | #for cleaning make generated output 17 | #rm -rf Output 18 | -------------------------------------------------------------------------------- /sources/services/smarteye/clt/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | #include "SmarteyeCltCmdline.h" 6 | using namespace std; 7 | int main(int argc, const char* argv[]) 8 | { 9 | SmarteyeCltCmdline CmdLine; 10 | CmdLine.parse_cmdline_arguments(argc,(char**)argv); 11 | return 0; 12 | } 13 | -------------------------------------------------------------------------------- /sources/services/smarteye/srv/SmarteyeStartupScr: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Start/stop server script 4 | # 5 | SERVER_NAME=smarteye 6 | SERVER_PATH=/opt/fmw/bin/ 7 | DEV_TYPE_FILE=/tmp/BrBoxDevType.txt 8 | start() { 9 | echo -n "Starting $SERVER_NAME Service: " 10 | DEV_TYPE=$(cat $DEV_TYPE_FILE) 11 | $SERVER_PATH/$SERVER_NAME --boardtype=$DEV_TYPE & 12 | echo "OK" 13 | } 14 | 15 | stop() { 16 | echo -n "Stopping $SERVER_NAME Service: " 17 | killall $SERVER_NAME 18 | echo "OK" 19 | } 20 | 21 | case "$1" in 22 | start) 23 | start 24 | ;; 25 | stop) 26 | stop 27 | ;; 28 | restart|reload) 29 | stop 30 | start 31 | ;; 32 | *) 33 | echo "Usage: $0 {start|stop|restart}" 34 | exit 1 35 | esac 36 | 37 | exit $? 38 | -------------------------------------------------------------------------------- /sources/services/sysmgr/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 2.8.9) 2 | set(PROJECT_NAME BrBoxsysmgr) 3 | project(${PROJECT_NAME}) 4 | add_subdirectory(srv) 5 | add_subdirectory(clt) 6 | 7 | #for cross compiling 8 | #cmake -H. -BOutput -DCMAKE_TOOLCHAIN_FILE=/path/to/toolchain-arm-backup.cmake -DCMAKE_INSTALL_PREFIX=/home/user/tmp/ 9 | #cmake --build Output -- all 10 | #cmake --build Output -- install 11 | 12 | #for local compiling 13 | #cmake -H. -BOutput 14 | #cmake --build Output -- all 15 | 16 | #for cleaning make generated output 17 | #rm -rf Output 18 | -------------------------------------------------------------------------------- /sources/services/sysmgr/clt/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | #include "SysmgrCltCmdline.h" 6 | using namespace std; 7 | int main(int argc, const char* argv[]) 8 | { 9 | SysmgrCltCmdline CmdLine; 10 | CmdLine.parse_cmdline_arguments(argc,(char**)argv); 11 | return 0; 12 | } 13 | -------------------------------------------------------------------------------- /sources/services/sysmgr/srv/SysmgrStartupScr: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Start/stop server script 4 | # 5 | SERVER_NAME=sysmgr 6 | SERVER_PATH=/opt/fmw/bin/ 7 | DEV_TYPE_FILE=/tmp/BrBoxDevType.txt 8 | start() { 9 | echo -n "Starting $SERVER_NAME Service: " 10 | DEV_TYPE=$(cat $DEV_TYPE_FILE) 11 | $SERVER_PATH/$SERVER_NAME --boardtype=$DEV_TYPE & 12 | echo "OK" 13 | } 14 | 15 | stop() { 16 | echo -n "Stopping $SERVER_NAME Service: " 17 | killall $SERVER_NAME 18 | echo "OK" 19 | } 20 | 21 | case "$1" in 22 | start) 23 | start 24 | ;; 25 | stop) 26 | stop 27 | ;; 28 | restart|reload) 29 | stop 30 | start 31 | ;; 32 | *) 33 | echo "Usage: $0 {start|stop|restart}" 34 | exit 1 35 | esac 36 | 37 | exit $? 38 | -------------------------------------------------------------------------------- /sources/services/sysmgr/srv/src/DevIdent.cpp: -------------------------------------------------------------------------------- 1 | #include "DevIdent.h" 2 | using namespace std; 3 | /*****************************************************************************/ 4 | DevIdent::DevIdent() 5 | { 6 | } 7 | /*****************************************************************************/ 8 | DevIdent::~DevIdent() 9 | { 10 | } 11 | /*****************************************************************************/ 12 | 13 | -------------------------------------------------------------------------------- /sources/services/sysmgr/srv/src/DevIdent.h: -------------------------------------------------------------------------------- 1 | #ifndef __DEVIDENT_H_ 2 | #define __DEVIDENT_H_ 3 | #include 4 | #include "ADCommon.hpp" 5 | #include 6 | using namespace std; 7 | class DevIdent 8 | { 9 | public: 10 | DevIdent(); 11 | ~DevIdent(); 12 | virtual RPC_SRV_RESULT device_identify()=0; 13 | }; 14 | #endif 15 | -------------------------------------------------------------------------------- /sources/services/sysmgr/srv/src/DevIdentA5V11.h: -------------------------------------------------------------------------------- 1 | #ifndef __DEVIDENT_A5V11_H_ 2 | #define __DEVIDENT_A5V11_H_ 3 | #include "DevIdent.h" 4 | using namespace std; 5 | class DevIdentA5V11: public DevIdent 6 | { 7 | public: 8 | DevIdentA5V11(); 9 | ~DevIdentA5V11(); 10 | RPC_SRV_RESULT device_identify();//virtual override 11 | }; 12 | #endif 13 | -------------------------------------------------------------------------------- /sources/services/sysmgr/srv/src/DevIdentGlMt300nv2.h: -------------------------------------------------------------------------------- 1 | #ifndef __DEVIDENT_GLMT300NV2_H_ 2 | #define __DEVIDENT_GLMT300NV2_H_ 3 | #include "DevIdent.h" 4 | using namespace std; 5 | class DevIdentGlMt300nv2: public DevIdent 6 | { 7 | public: 8 | DevIdentGlMt300nv2(); 9 | ~DevIdentGlMt300nv2(); 10 | RPC_SRV_RESULT device_identify();//virtual override 11 | }; 12 | #endif 13 | -------------------------------------------------------------------------------- /sources/services/sysmgr/srv/src/DevIdentNexx3020.h: -------------------------------------------------------------------------------- 1 | #ifndef __DEVIDENT_NEXX3020_H_ 2 | #define __DEVIDENT_NEXX3020_H_ 3 | #include "DevIdent.h" 4 | using namespace std; 5 | class DevIdentNexx3020: public DevIdent 6 | { 7 | public: 8 | DevIdentNexx3020(); 9 | ~DevIdentNexx3020(); 10 | RPC_SRV_RESULT device_identify();//virtual override 11 | }; 12 | #endif 13 | -------------------------------------------------------------------------------- /sources/services/sysmgr/srv/src/DevIdentRaspiAZero.h: -------------------------------------------------------------------------------- 1 | #ifndef __DEVIDENT_RASPIAZERO_H_ 2 | #define __DEVIDENT_RASPIAZERO_H_ 3 | //#include 4 | //#include "ADCommon.hpp" 5 | //#include 6 | #include "DevIdent.h" 7 | using namespace std; 8 | class DevIdentRaspiAZero: public DevIdent 9 | { 10 | public: 11 | DevIdentRaspiAZero(); 12 | ~DevIdentRaspiAZero(); 13 | RPC_SRV_RESULT device_identify();//virtual override 14 | }; 15 | #endif 16 | -------------------------------------------------------------------------------- /sources/services/sysmgr/srv/sysmgr.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=sysmgr 3 | 4 | [Service] 5 | User=pi 6 | Environment=LD_LIBRARY_PATH=/home/pi/brbox/output/lib 7 | Environment=BRBOX_BOARD_TYPE=RASPI_BPLUS 8 | ExecStart=/home/pi/brbox/output/bin/sysmgr --boardtype=${BRBOX_BOARD_TYPE} 9 | 10 | [Install] 11 | WantedBy=multi-user.target 12 | -------------------------------------------------------------------------------- /sources/services/xmproxy/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 2.8.9) 2 | set(PROJECT_NAME Xmproxy) 3 | project(${PROJECT_NAME}) 4 | add_subdirectory(srv) 5 | add_subdirectory(clt) 6 | 7 | #for cross compiling 8 | #cmake -H. -BOutput -DCMAKE_TOOLCHAIN_FILE=/path/to/toolchain-arm-backup.cmake -DCMAKE_INSTALL_PREFIX=/home/user/tmp/ 9 | #cmake --build Output -- all 10 | #cmake --build Output -- install 11 | 12 | #for local compiling 13 | #cmake -H. -BOutput 14 | #cmake --build Output -- all 15 | 16 | #for cleaning make generated output 17 | #rm -rf Output 18 | -------------------------------------------------------------------------------- /sources/services/xmproxy/clt/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | #include "XmproxyCltCmdline.h" 6 | using namespace std; 7 | int main(int argc, const char* argv[]) 8 | { 9 | XmproxyCltCmdline CmdLine; 10 | CmdLine.parse_cmdline_arguments(argc,(char**)argv); 11 | return 0; 12 | } 13 | -------------------------------------------------------------------------------- /sources/services/xmproxy/srv/xmproxysrv.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=xmproxysrv 3 | Requires=sysmgr.service 4 | 5 | [Service] 6 | User=pi 7 | Environment=LD_LIBRARY_PATH=/home/pi/brbox/output/lib 8 | Environment=BRBOX_XMPLOGIN=/home/pi/brbox/output/etc/xmpp-login.txt 9 | Environment=BRBOX_XMPALIAS=/home/pi/brbox/output/etc/xmpp-alias-list.txt 10 | Environment=BRBOX_XMPBOTNAME=/home/pi/brbox/output/etc/xmpp-login.txt 11 | Environment=BRBOX_BOARD_TYPE=RASPI_BPLUS 12 | ExecStart=/home/pi/brbox/output/bin/xmproxysrv --boardtype=${BRBOX_BOARD_TYPE} --loginfile=${BRBOX_XMPLOGIN} --aliaslist=${BRBOX_XMPALIAS} --botname=${BRBOX_XMPBOTNAME} --usbgsm=0 13 | ExecStop=/home/pi/brbox/output/bin/xmproxyclt --shutdown 14 | 15 | [Install] 16 | WantedBy=multi-user.target 17 | -------------------------------------------------------------------------------- /sources/utils/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 2.8.9) 2 | set(PROJECT_NAME BrBoxUtils) 3 | project(${PROJECT_NAME}) 4 | set(BRBOX_MIPS_UPDATE_UTILS OFF CACHE BOOL OFF) 5 | if(${BRBOX_MIPS_UPDATE_UTILS}) 6 | add_subdirectory(brbox-mkimage) 7 | add_subdirectory(mips-update) 8 | endif() 9 | #add_subdirectory(brbox-mkimage) 10 | #add_subdirectory(hello_video) 11 | 12 | 13 | #for cross compiling 14 | #cmake -H. -BOutput -DCMAKE_TOOLCHAIN_FILE=/path/to/toolchain-arm-backup.cmake -DCMAKE_INSTALL_PREFIX=/home/user/tmp/ 15 | #cmake --build Output -- all 16 | #cmake --build Output -- install 17 | 18 | #for local compiling 19 | #cmake -H. -BOutput 20 | #cmake --build Output -- all 21 | 22 | #for cleaning make generated output 23 | #rm -rf Output 24 | -------------------------------------------------------------------------------- /sources/utils/eeprog-0.7.6-tear12/ChangeLog: -------------------------------------------------------------------------------- 1 | 29.02.2004, 0.7.6 2 | - better error handling 3 | - read_from_eeprom bug fixed, thanks to Marek Michalkiewicz 4 | 02.12.2003, 0.7.5 5 | - help switch (-h) added 6 | - 8bit addressing is now the default (safest) 7 | - 16bit mode switch added (-16) 8 | - quiet mode has been added (-q) 9 | 28.11.2003, 0.7.4 10 | - force switch added (-f) 11 | - big warning will be displayed before reading/writing, user must 12 | confirm 13 | - i2c-dev.h has been (re)included into the distribution package because 14 | user space functions have been removed from the original i2c-dev.h 15 | by the dev team. 16 | 21.11.2003, 0.7.3 17 | - ChangeLog added 18 | - WARNING file added 19 | - support for 8bit addressing EEPROMs (-8 command line switch) 20 | - better code documentation 21 | - i2c-dev.h is no more included into the dist package. 22 | -------------------------------------------------------------------------------- /sources/utils/eeprog-0.7.6-tear12/Makefile: -------------------------------------------------------------------------------- 1 | CFLAGS=-g -Wall -O2 2 | PREFIX=/usr/bin 3 | 4 | all: eeprog 5 | 6 | eeprog: eeprog.o 24cXX.o 7 | 8 | eeprog-static: eeprog.o 24cXX.o 9 | $(CC) -static -o $@ $? 10 | 11 | clean: 12 | $(RM) eeprog eeprog.o 24cXX.o 13 | 14 | distclean: clean 15 | $(RM) *~ 16 | $(RM) dist/*~ 17 | 18 | install: eeprog 19 | install -ps eeprog $(PREFIX)/eeprog-tear 20 | install -p dist/eeprog-spd-dump $(PREFIX) 21 | install -p dist/eeprog-spd-flash $(PREFIX) 22 | install -p dist/eeprog-spd-dump-g34 $(PREFIX) 23 | install -p dist/eeprog-spd-flash-g34 $(PREFIX) 24 | 25 | uninstall: 26 | $(RM) $(PREFIX)/eeprog-tear 27 | $(RM) $(PREFIX)/eeprog-spd-dump 28 | $(RM) $(PREFIX)/eeprog-spd-flash 29 | $(RM) $(PREFIX)/eeprog-spd-dump-g34 30 | $(RM) $(PREFIX)/eeprog-spd-flash-g34 31 | 32 | .PHONY: all clean distclean install uninstall 33 | -------------------------------------------------------------------------------- /sources/utils/eeprog-0.7.6-tear12/README: -------------------------------------------------------------------------------- 1 | Important! See the WARNING file. 2 | 3 | eeprog reads and writes 24Cxx EEPROMs connected to I2C serial bus. 4 | 5 | It uses the SMBus protocol used by most of the recent chipsets. Don't forget to load 6 | your i2c chipset and the i2c-dev drivers. 7 | 8 | Use -16 switch for EEPROMs larger than 24C16 (16bit addressing mode). 9 | 10 | Again, it's really important that you read the WARNING file. 11 | 12 | Type "make" to compile. 13 | -------------------------------------------------------------------------------- /sources/utils/eeprog-0.7.6-tear12/WARNING: -------------------------------------------------------------------------------- 1 | Writing to unknown EEPROMs can break your computer. 2 | 3 | DIMMs contain an EEPROM and if you overwrite it, your computer 4 | may not boot anymore. 5 | 6 | Reading 8bit EEPROM using 16bit addressing may actually WRITE 7 | to the EEPROM. Be careful. 8 | 9 | The following chips use 8bit mode: 10 | 24C01 11 | 24C02 12 | 24C04 13 | 24C08 14 | 24C16 15 | 16 | Bigger ones use 16bit addressing so you must use -16. 17 | 18 | When in doubt, check data sheets. 19 | 20 | If you are not sure what you're doing, DO NOT use this tool. 21 | -------------------------------------------------------------------------------- /sources/utils/eeprog-0.7.6/ChangeLog: -------------------------------------------------------------------------------- 1 | 29.02.2004, 0.7.6 2 | - better error handling 3 | - read_from_eeprom bug fixed, thanks to Marek Michalkiewicz 4 | 02.12.2003, 0.7.5 5 | - help switch (-h) added 6 | - 8bit addressing is now the default (safest) 7 | - 16bit mode switch added (-16) 8 | - quiet mode has been added (-q) 9 | 28.11.2003, 0.7.4 10 | - force switch added (-f) 11 | - big warning will be displayed before reading/writing, user must 12 | confirm 13 | - i2c-dev.h has been (re)included into the distribution package because 14 | user space functions have been removed from the original i2c-dev.h 15 | by the dev team. 16 | 21.11.2003, 0.7.3 17 | - ChangeLog added 18 | - WARNING file added 19 | - support for 8bit addressing EEPROMs (-8 command line switch) 20 | - better code documentation 21 | - i2c-dev.h is no more included into the dist package. 22 | -------------------------------------------------------------------------------- /sources/utils/eeprog-0.7.6/Makefile: -------------------------------------------------------------------------------- 1 | CFLAGS=-g -I. -Wall -O2 2 | 3 | all: eeprog 4 | 5 | clean: 6 | rm -f eeprog eeprog.o 24cXX.o 7 | 8 | eeprog: eeprog.o 24cXX.o 9 | 10 | eeprog-static: eeprog.o 24cXX.o 11 | $(CC) -static -o $@ $? 12 | -------------------------------------------------------------------------------- /sources/utils/eeprog-0.7.6/README: -------------------------------------------------------------------------------- 1 | Important! See the WARNING file. 2 | 3 | eeprog reads and writes 24Cxx EEPROMs connected to I2C serial bus. 4 | 5 | It uses the SMBus protocol used by most of the recent chipsets. Don't forget to load 6 | your i2c chipset and the i2c-dev drivers. 7 | 8 | Use -8 switch for EEPROM smaller then 24C16 (8bit addressing mode). 9 | 10 | Again, it's really important that you read the WARNING file. 11 | 12 | Type "make" to compile. 13 | -------------------------------------------------------------------------------- /sources/utils/eeprog-0.7.6/WARNING: -------------------------------------------------------------------------------- 1 | Writing on unknown EEPROMs can brake your computer. 2 | 3 | DIMMs contain an EEPROM and if you overwrite it somehow your computer 4 | will not boot anymore. 5 | 6 | Reading using 16bit addressing (i.e. not using the -8 switch) on a 8bit EEPROM 7 | can actually WRITE to the EEPROM. Be careful. 8 | 9 | The following chips use 8bit mode: 10 | 24C01 11 | 24C02 12 | 24C04 13 | 24C08 14 | 24C16 15 | 16 | Bigger ones use 16bit addressing so you must not use -8. 17 | 18 | More could need it, check data sheets. 19 | 20 | If you are not sure about what you're doing DON'T use this tool. 21 | -------------------------------------------------------------------------------- /sources/utils/fb-test-app/.gitignore: -------------------------------------------------------------------------------- 1 | *.o 2 | perf 3 | rect 4 | fb-test 5 | offset 6 | pan 7 | ovl 8 | fb-string -------------------------------------------------------------------------------- /sources/utils/fb-test-app/Makefile: -------------------------------------------------------------------------------- 1 | VERSION = 1 2 | PATCHLEVEL = 1 3 | SUBLEVEL = 0 4 | EXTRAVERSION = .git 5 | NAME = rosetta 6 | 7 | ifdef CROSS_COMPILE 8 | CC=$(CROSS_COMPILE)gcc 9 | CFLAGS=-O2 -Wall 10 | else 11 | CFLAGS=-O2 -Wall 12 | endif 13 | 14 | override CFLAGS += -DVERSION=$(VERSION) 15 | override CFLAGS += -DPATCHLEVEL=$(PATCHLEVEL) 16 | override CFLAGS += -DSUBLEVEL=$(SUBLEVEL) 17 | override CFLAGS += -DVERSION_NAME=\"$(NAME)\" 18 | 19 | PROGS=perf rect fb-test offset fb-string 20 | 21 | all: $(PROGS) 22 | 23 | .c.o: common.h font.h 24 | 25 | fb-test: fb-test.o common.o font_8x8.c 26 | 27 | fb-string: fb-string.o common.o font_8x8.c 28 | 29 | clean: 30 | rm -f $(PROGS) *.o 31 | -------------------------------------------------------------------------------- /sources/utils/fb-test-app/font_8x8.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackboxguy/brbox/1dae5c184ef79331837c128a36e6824e050fe6bd/sources/utils/fb-test-app/font_8x8.c -------------------------------------------------------------------------------- /sources/utils/lan9512-blink/Makefile: -------------------------------------------------------------------------------- 1 | CC = gcc 2 | CCFLAGS = -lusb 3 | SRC = llctl.c 4 | TRG = llctl 5 | 6 | all: 7 | $(CC) $(CCFLAGS) $(SRC) -o $(TRG) 8 | strip $(TRG) 9 | -------------------------------------------------------------------------------- /sources/utils/mips-update/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 2.8.9) 2 | file(GLOB UPDATEFILES "*.sh") 3 | install(PROGRAMS ${UPDATEFILES} DESTINATION sbin) 4 | -------------------------------------------------------------------------------- /sources/utils/playloop/readme.txt: -------------------------------------------------------------------------------- 1 | how to compile: 2 | gcc -Wall playloop.c -o playloop $(pkg-config --cflags --libs gstreamer-1.0) 3 | 4 | how to run: 5 | ./playloop file://`pwd`/sample.mkv 6 | -------------------------------------------------------------------------------- /sources/utils/pngview/Makefile: -------------------------------------------------------------------------------- 1 | OBJS=pngview.o 2 | BIN=pngview 3 | 4 | CFLAGS+=-Wall -g -O3 -I./common $(shell libpng-config --cflags) 5 | LDFLAGS+=-L/opt/vc/lib/ -lbcm_host -lm $(shell libpng-config --ldflags) -L../lib -lraspidmx 6 | 7 | INCLUDES+=-I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux 8 | 9 | all: $(BIN) 10 | 11 | %.o: %.c 12 | @rm -f $@ 13 | $(CC) $(CFLAGS) $(INCLUDES) -g -c $< -o $@ -Wno-deprecated-declarations 14 | 15 | $(BIN): $(OBJS) 16 | $(CC) -o $@ -Wl,--whole-archive $(OBJS) $(LDFLAGS) -Wl,--no-whole-archive -rdynamic 17 | 18 | clean: 19 | @rm -f $(OBJS) 20 | @rm -f $(BIN) 21 | -------------------------------------------------------------------------------- /sources/utils/pngview/README.md: -------------------------------------------------------------------------------- 1 | # pngview 2 | 3 | Utility to display a PNG image on the Raspberry Pi screen using the Dispmanx windowing system. Press Esc key to exit. Use 'w', 's', 'a' and 'd' keys to move the image on screen. Use '+' and '-' keys to change the number of pixels the image moves (default is 1). 4 | 5 | Usage: pngview [-b ] [-d ] [-l ] [-x ] [-y ] 6 | 7 | -b - set background colour 16 bit RGBA 8 | e.g. 0x000F is opaque black 9 | -d - Raspberry Pi display number 10 | -l - DispmanX layer number 11 | -x - offset (pixels from the left) 12 | -y - offset (pixels from the top) 13 | -n - non-interactive mode 14 | 15 | -------------------------------------------------------------------------------- /sources/utils/pngview/common/README.md: -------------------------------------------------------------------------------- 1 | # common 2 | 3 | I have put all the generic code in this common directory. 4 | 5 | --------------------------------------------------------------------------------