User Tools

Site Tools


opi:3g

Orange Pi Sakis3G Huawei E352 modem

[  254.142632] ehci_irq: highspeed device connect
[  254.160042] ehci_irq: highspeed device disconnect
[  258.800669] ehci_irq: highspeed device connect
[  259.070068] usb 2-1: new high-speed USB device number 3 using sunxi-ehci
[  259.448265] scsi2 : usb-storage 2-1:1.0
[  259.449429] scsi3 : usb-storage 2-1:1.1
[  260.441377] scsi 3:0:0:0: Direct-Access     HUAWEI   SD Storage       2.31 PQ: 0 ANSI: 2
[  260.442463] scsi 2:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
[  260.444814] sd 3:0:0:0: [sda] Attached SCSI removable disk
[  260.445335] sr0: scsi-1 drive
[  260.446058] sr 2:0:0:0: Attached scsi CD-ROM sr0

Prerequisites

sudo apt-get install git bzip2 gcc libusb-1.0-0-dev ppp
sudo cp /usr/include/libusb-1.0/libusb.h /usr/include
git clone https://github.com/Trixarian/sakis3g-source.git
orangepi@OrangePizero:~/sakis3g-source$ ./compile 
Base directory:  /home/orangepi/sakis3g-source.
Source files:    All found.
Device database: Found and transformed.
Usb-ModeSwitch:  Compiled.
Compressed file: Created.
Compilation complete.
Compression ratio 80.05% (500579/2508800).

Sakis3G script is available at: build/sakis3gz
This is all you need. You may delete the rest.

If you later want to compile it for another platform, invoke it with
"recompile" argument, or use "disassemble" argument to recreate
source folder.

For installing it, use:
  $ sudo bash || su
  Password:
  # cp build/sakis3gz /usr/bin/sakis3g
sudo cp build/sakis3gz /usr/bin/sakis3g
sudo sakis3g --interactive "connect"
orangepi@OrangePizero:~/sakis3g-source$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN group default 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 9e:91:ec:9b:18:31 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.23/24 brd 192.168.0.255 scope global eth0
    inet6 fe80::9c91:ecff:fe9b:1831/64 scope link 
       valid_lft forever preferred_lft forever
3: tunl0: <NOARP> mtu 1480 qdisc noop state DOWN group default 
    link/ipip 0.0.0.0 brd 0.0.0.0
4: gre0: <NOARP> mtu 1476 qdisc noop state DOWN group default 
    link/gre 0.0.0.0 brd 0.0.0.0
5: sit0: <NOARP> mtu 1480 qdisc noop state DOWN group default 
    link/sit 0.0.0.0 brd 0.0.0.0
6: ip6tnl0: <NOARP> mtu 1452 qdisc noop state DOWN group default 
    link/tunnel6 :: brd ::
7: wlan1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
    link/ether 9c:91:ec:9b:18:30 brd ff:ff:ff:ff:ff:ff
8: p2p0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
    link/ether 9c:91:ec:9b:18:31 brd ff:ff:ff:ff:ff:ff
9: ppp0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 3
    link/ppp 
    inet 100.83.130.17 peer 10.64.64.64/32 scope global ppp0

orangepi@OrangePizero:~/sakis3g-source$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN group default 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 9e:91:ec:9b:18:31 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.23/24 brd 192.168.0.255 scope global eth0
    inet6 fe80::9c91:ecff:fe9b:1831/64 scope link 
       valid_lft forever preferred_lft forever
3: tunl0: <NOARP> mtu 1480 qdisc noop state DOWN group default 
    link/ipip 0.0.0.0 brd 0.0.0.0
4: gre0: <NOARP> mtu 1476 qdisc noop state DOWN group default 
    link/gre 0.0.0.0 brd 0.0.0.0
5: sit0: <NOARP> mtu 1480 qdisc noop state DOWN group default 
    link/sit 0.0.0.0 brd 0.0.0.0
6: ip6tnl0: <NOARP> mtu 1452 qdisc noop state DOWN group default 
    link/tunnel6 :: brd ::
7: wlan1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
    link/ether 9c:91:ec:9b:18:30 brd ff:ff:ff:ff:ff:ff
8: p2p0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
    link/ether 9c:91:ec:9b:18:31 brd ff:ff:ff:ff:ff:ff
11: ppp0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 3
    link/ppp 
    inet 100.89.17.158 peer 10.64.64.64/32 scope global ppp0
opi/3g.txt · Last modified: 2020/12/11 16:20 by 127.0.0.1