Basic init and add two projects

pull/1/head
Igor Zalatov (from Citadel PC) 2022-08-28 21:47:30 +03:00
parent 95a27dd24e
commit 0e1a91f416
11 changed files with 130 additions and 2 deletions

7
.gitignore vendored 100644
View File

@ -0,0 +1,7 @@
# These are some examples of commonly ignored file patterns.
# You should customize this list as applicable to your project.
# Learn more about .gitignore:
# https://www.atlassian.com/git/tutorials/saving-changes/gitignore
# Assembly folder
Firmware/

View File

@ -1,2 +1,13 @@
# composer
Creating OpenIPC firmware with custom settings
## COMPOSER
** Creating OpenIPC firmware with custom settings**
-----
### Quick Start - run one command for happiness ;)
```
https://github.com/ZigFisher/composer.git && cd composer && ./stapler.sh t31_vixand
```
-----

View File

@ -0,0 +1 @@
../../general/package/ax-agent

View File

@ -0,0 +1,7 @@
config BR2_PACKAGE_AX_AGENT
bool "ax-agent"
default n
help
Simple daemon
https://openipc.org

View File

@ -0,0 +1,22 @@
################################################################################
#
# ax-agent | updated 2022.08.10
#
################################################################################
AX_AGENT_LICENSE = MIT
AX_AGENT_LICENSE_FILES = LICENSE
define AX_AGENT_EXTRACT_CMDS
cp ../general/package/ax-agent/src/ax-agent.c $(@D)/
endef
define AX_AGENT_BUILD_CMDS
(cd $(@D); $(TARGET_CC) -s ax-agent.c -o ax-agent)
endef
define AX_AGENT_INSTALL_TARGET_CMDS
install -m 0755 -D $(@D)/ax-agent $(TARGET_DIR)/usr/sbin/ax-agent
endef
$(eval $(generic-package))

View File

@ -0,0 +1,7 @@
#include <stdio.h>
int main (void)
{
puts ("Hello, World!");
return 0;
}

View File

@ -0,0 +1,12 @@
bsd_comp
ch341
option
ppp_async
ppp_deflate
ppp_generic
ppp_mppe
slhc
usb_wwan
usbserial
vfat

View File

@ -0,0 +1,19 @@
# Interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address $(fw_printenv -n ipaddr || echo 192.168.1.10)
netmask 255.255.255.0
auto ppp0
iface ppp0 inet manual
pre-up echo 61 > /sys/class/gpio/export
pre-up echo out > /sys/class/gpio/gpio61/direction
pre-up echo 0 > /sys/class/gpio/gpio61/value
pre-up (sleep 7; pon)
post-down poff
post-down echo 1 > /sys/class/gpio/gpio61/value
post-down echo 61 > /sys/class/gpio/unexport

View File

@ -0,0 +1,24 @@
ABORT 'BUSY'
ABORT 'NO ANSWER'
ABORT 'NO CARRIER'
ABORT 'NO DIALTONE'
ABORT 'NO DIAL TONE'
ABORT '\nRING\r\n\r\nRING\r'
ABORT '\nRINGING\r\n\r\nRINGING\r'
ABORT 'VOICE'
ABORT 'DELAYED'
#REPORT 'CONNECT'
TIMEOUT '6'
'' 'AT'
'' 'AT'
#OK 'AT&FZ'
#'OK' 'ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0'
OK 'AT'
ABORT 'ERROR'
OK 'AT+CGDCONT=1,"IP","internet"'
OK 'AT+CGATT=1'
OK 'ATI'
OK 'AT+CSQ'
OK 'ATD*99***1#'
TIMEOUT '30'
CONNECT ''

View File

@ -0,0 +1,16 @@
ttyUSB0
921600
lock
crtscts
modem
passive
novj
defaultroute
noipdefault
usepeerdns
noauth
hide-password
persist
holdoff 10
maxfail 0
debug

View File

@ -0,0 +1,2 @@
file /etc/ppp/options
connect "/usr/sbin/chat -v -t15 -f /etc/ppp/chatscripts/modem.chat"