Skip to content

Commit 790ce71

Browse files
committed
restore wiki folder
1 parent ad88734 commit 790ce71

9 files changed

+1002
-0
lines changed

wiki/Compile-retroarch-for-cm4.md

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# Prepare
2+
3+
## In DevTerm or uConsole
4+
5+
uncomment deb-src in /etc/apt/source.list ,and run 'sudo apt update'
6+
7+
```
8+
sudo apt install git build-essential libasound2-dev libudev-dev
9+
sudo apt install -y libegl-mesa0
10+
sudo apt-get build-dep retroarch
11+
```
12+
13+
```
14+
git clone https://github.com/libretro/RetroArch.git retroarch
15+
```
16+
17+
```
18+
cd retroarch
19+
./configure --disable-videocore --disable-vg --enable-alsa --enable-udev --disable-opengl1
20+
make
21+
sudo make install
22+
```
23+
24+
```
25+
mkdir -p /usr/local/bin 2>/dev/null || /bin/true
26+
mkdir -p /etc 2>/dev/null || /bin/true
27+
mkdir -p /usr/local/share/applications 2>/dev/null || /bin/true
28+
mkdir -p /usr/local/share/metainfo 2>/dev/null || /bin/true
29+
mkdir -p /usr/local/share/doc/retroarch 2>/dev/null || /bin/true
30+
mkdir -p /usr/local/share/man/man6 2>/dev/null || /bin/true
31+
mkdir -p /usr/local/share/pixmaps 2>/dev/null || /bin/true
32+
cp retroarch /usr/local/bin
33+
cp tools/cg2glsl.py /usr/local/bin/retroarch-cg2glsl
34+
cp retroarch.cfg /etc
35+
cp com.libretro.RetroArch.appdata.xml /usr/local/share/metainfo
36+
cp retroarch.desktop /usr/local/share/applications
37+
cp docs/retroarch.6 /usr/local/share/man/man6
38+
cp docs/retroarch-cg2glsl.6 /usr/local/share/man/man6
39+
cp media/retroarch.svg /usr/local/share/pixmaps
40+
cp COPYING /usr/local/share/doc/retroarch
41+
cp README.md /usr/local/share/doc/retroarch
42+
43+
44+
chmod 755 /usr/local/bin/retroarch
45+
chmod 755 /usr/local/bin/retroarch-cg2glsl
46+
chmod 644 /etc/retroarch.cfg
47+
chmod 644 /usr/local/share/applications/retroarch.desktop
48+
chmod 644 /usr/local/share/metainfo/com.libretro.RetroArch.appdata.xml
49+
chmod 644 /usr/local/share/man/man6/retroarch.6
50+
chmod 644 /usr/local/share/man/man6/retroarch-cg2glsl.6
51+
chmod 644 /usr/local/share/pixmaps/retroarch.svg
52+
53+
```
54+
55+
# Modify the RetroArch configuration and download the corresponding core file, taking the Nestopia simulator as an example
56+
```
57+
sudo apt-get install wget unzip -y
58+
sed -i '/^libretro_directory/c\libretro_directory = "~/.config/retroarch/cores"' ~/.config/retroarch/retroarch.cfg
59+
wget https://github.com/christianhaitian/retroarch-cores/raw/master/aarch64/nestopia_libretro.so.zip && unzip nestopia_libretro.so.zip -d ~/.config/retroarch/cores && rm nestopia_libretro.so.zip
60+
```
61+
62+
# apt upgrade stock retroarch for DevTerm / uConsole
63+
```
64+
sudo apt update
65+
sudo apt install -y retroarch-cpi-cm4
66+
```
67+
Current retroarch
68+
Version: 1.17.0 (Git 076d3cc91f)
69+
70+
# RetroArch CM4 64bit core download location
71+
72+
https://github.com/christianhaitian/retroarch-cores

wiki/Home.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Welcome to the uConsole Wiki!
2+
3+
uConsole, developed by ClockworkPi, is a powerful, modular, and portable device designed for developers, makers, and tech enthusiasts. This Wiki serves as a comprehensive documentation resource, providing guides for hardware extensions, OS image creation, and various functionalities. Whether you're new to uConsole or looking to explore its advanced features, this Wiki is your go-to resource.
4+
5+
6+
## Quick Navigation
7+
Below is the list of available Wiki pages. Click on the links to explore detailed guides and information:
8+
9+
* [Compile RetroArch for CM4](https://github.com/clockworkpi/uConsole/wiki/Compile-retroarch-for-cm4)
10+
Learn how to compile and run the RetroArch emulator on the CM4 module of uConsole.
11+
12+
* [How to Make Phone Calls and Send SMS with the 4G Extension](https://github.com/clockworkpi/uConsole/wiki/How-to-make-phone-call---send-sms-with-4G-extension)
13+
A guide on how to use the 4G extension module for making phone calls and sending SMS.
14+
15+
* [How to Upgrade 4G Extension Firmware](https://github.com/clockworkpi/uConsole/wiki/How-to-upgrade-4G-extension-firmware)
16+
Learn how to update the firmware of the 4G extension module to access the latest features and fixes.
17+
18+
* [How to Use the Keyboard UART Port to Flash Firmware](https://github.com/clockworkpi/uConsole/wiki/How-to-use-keyboard-UART-port-to-flash-firmware)
19+
Detailed instructions on how to flash firmware using the keyboard's UART port.
20+
21+
* [How to Use the 4G Extension ](https://github.com/clockworkpi/uConsole/wiki/How-to-use-the-4G-extension)
22+
A guide to help you operate and configure the 4G extension module.
23+
24+
* [How the uConsole A06 OS Image Is Made](https://github.com/clockworkpi/uConsole/wiki/How-uConsole-A06-OS-image-made)
25+
Learn how to create a custom OS image for the A06 module of uConsole.
26+
27+
* [How the uConsole CM4 OS Image Is Made](https://github.com/clockworkpi/uConsole/wiki/How-uConsole-CM4-OS-image-made)
28+
Instructions for generating OS images for the CM4 module of uConsole.
29+
30+
* [Kali Linux Image for uConsole CM4](https://github.com/clockworkpi/uConsole/wiki/Kali-linux-image-for-uConsole-cm4)
31+
Information on running Kali Linux on the CM4 module of uConsole.
32+
33+
34+
## Edit
35+
36+
### Directly on the GitHub Website
37+
38+
If you have the necessary permissions, go to the Wiki page of the target repository.
39+
Click the "Edit" button (or the pencil icon on the page).
40+
Edit the content of the Wiki page directly in the web interface using Markdown format.
41+
Once you’re done, click the "Save Page" button to save your changes.
42+
43+
### Pull Request
44+
45+
Just clone https://github.com/clockworkpi/uConsole, and add markdown files to the **_wiki** folder
46+
47+
Then Send Pull Request , once got merged, wiki will be shown at https://github.com/clockworkpi/uConsole/wiki
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
First we need [power on the 4G extension](https://github.com/clockworkpi/uConsole/wiki/How-to-use-the-4G-extension) on the uConsole
2+
3+
Then use [AT commands](https://github.com/clockworkpi/uConsole/blob/master/SIM7500_SIM7600%20Series_AT%20Command%20Manual_V3.00.pdf) to do the jobs in uConsole
4+
5+
We use /dev/ttyUSB3 as AT port
6+
7+
## Check sim card if is ready
8+
```
9+
echo -en "AT+CPIN?\r\n" | sudo socat - /dev/ttyUSB3,crnl
10+
11+
+CPIN: READY
12+
13+
OK
14+
```
15+
16+
## Check ISP info
17+
```
18+
echo -en "AT+COPS?\r\n" | sudo socat - /dev/ttyUSB3,crnl
19+
20+
+COPS: 0,0,"SOME-ISP",7
21+
22+
OK
23+
```
24+
25+
## Make phone call
26+
```
27+
echo -en "ATD123456;\r\n" | sudo socat - /dev/ttyUSB3,crnl
28+
29+
OK
30+
31+
+CLCC: 3,0,2,0,0,"123456",129
32+
```
33+
34+
replace **123456** with your really target phone number
35+
36+
## Hang up phone call
37+
```
38+
echo -en "AT+CVHU=0\r\n" | sudo socat - /dev/ttyUSB3,crnl
39+
echo -en "ATH\r\n" | sudo socat - /dev/ttyUSB3,crnl
40+
41+
OK
42+
43+
+CLCC: 3,0,6,0,0,"123456",129
44+
45+
OK
46+
```
47+
48+
## Answer phone call
49+
```
50+
echo -en "ATA\r\n" | sudo socat - /dev/ttyUSB3,crnl
51+
52+
VOICE CALL: BEGIN
53+
or
54+
NO CARRIER
55+
56+
```
57+
## Network state
58+
```
59+
echo -en "AT+CGREG?\r\n" | sudo socat - /dev/ttyUSB3,crnl
60+
61+
+CGREG: 2,1,E7B6,EA22BB2
62+
63+
OK
64+
```
65+
66+
## Send text message
67+
```
68+
echo -e "ATZ\r" | sudo socat - /dev/ttyUSB3,crnl
69+
sleep 1
70+
echo -e "AT+CMGF=1\r" | sudo socat - /dev/ttyUSB3,crnl
71+
sleep 1
72+
echo -e "AT+CMGS=\"123456\"" | sudo socat - /dev/ttyUSB3,crnl
73+
sleep 1
74+
echo -e "Hello this is SMS message from shell\x1A" | sudo socat - /dev/ttyUSB3,crnl
75+
sleep 1
76+
echo -en "ATE0\r\n" | sudo socat - /dev/ttyUSB3,crnl
77+
```
78+
replace **123456** with your really target phone number
79+
80+
81+
82+
***
83+
84+
For more AT commands, please refer the [manual](https://github.com/clockworkpi/uConsole/blob/master/SIM7500_SIM7600%20Series_AT%20Command%20Manual_V3.00.pdf)

0 commit comments

Comments
 (0)