Skip to content

Commit c85a47e

Browse files
authored
Merge pull request #52 from chrizzo-hb/main
Minor improvements to FAQ and patches section
2 parents ff9ba7a + 83705bc commit c85a47e

File tree

3 files changed

+52
-31
lines changed

3 files changed

+52
-31
lines changed

docs/configure/patches-and-overlays.md

+46-7
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@ If you are a Windows user who has never worked with Linux before, you might want
2121

2222
### File systems on Windows machines
2323

24-
On your Windows computer, each **drive** (or **partition**) has an assigned **drive letter**. You might think about them like labeled drawers of a filing cabinet. The **main drive** that hosts your Windows installation traditionally uses the drive letter `C:` - this is a relic of a time when drive letters `A:` and `B:` where reserved for the two floppy disc drives computers used to have. However, if you connect another drive to your PC, like a thumb drive or a SD card, Windows automatically assigns new drive letters to them, so you can access those drives from your *Windows Explorer*. Files and folders are addressed by their **absolute path** which starts with the **drive letter**. E.g., the folder which holds your pictures is located at
24+
On your Windows computer, each **drive** (or **partition**) has an assigned **drive letter**. You might think about them like labeled drawers of a filing cabinet. The **main drive** that hosts your Windows installation traditionally uses the drive letter `C:` - this is a relic of a time when drive letters `A:` and `B:` were reserved for the two floppy disk drives computers used to have. However, if you connect another drive to your PC, like a thumb drive or a SD card, Windows automatically assigns new drive letters to them, so you can access those drives from your *Windows Explorer*. Files and folders are addressed by their **absolute path** which starts with the **drive letter**. E.g., the folder which holds your pictures is located at
2525

2626
```
2727
C:\Users\<username>\Pictures
2828
```
2929

3030
### File systems on Linux machines
3131

32-
Linux filesystems work a little different. On Linux, every **drive** is treated like a **folder**. A Linux system always has a so called **root** that **loosely** corresponds conceptually to the drive letter `C:` on a Windows machine. The **root** is always referred to by the symbol `/`. By definition, each **absolute path** always starts with `/` symbol.
32+
Linux filesystems work a little different. On Linux, every **drive** is treated like a **folder**. A Linux system always has a so called **root** that **loosely** corresponds conceptually to the drive letter `C:` on a Windows machine. The **root** is always referred to by the symbol `/`. By definition, each **absolute path** always starts with the `/` symbol.
3333

34-
Other **drives** are treated like **subfolders** of the **root**. With a command called `mount`, any **empty folder** on a Linux system can be assigned to **any drive** of the device. It is even allowed, to have **more than one folder** that points to **the same drive**. Following the previous metaphor, consider a filing cabinet with only a **single drawer**.
34+
Other **drives** are treated like **subfolders** of the **root**. With a command called `mount`, any **empty folder** of a Linux system can be assigned to **any drive** of the device. It is even allowed, to have **more than one folder** that points to **the same drive**. Following the previous metaphor, consider a filing cabinet with only a **single drawer**.
3535

3636
For example, on your KNULLI device, your games are stored in
3737

@@ -112,7 +112,7 @@ point **to the exact same file**, too.
112112

113113
Since everything outside of the `/userdata` folder of your KNULLI installation is **read-only** by definition, you will need to create an **overlay** to make **permanent** changes to your KNULLI installation. Otherwise, all changes will simply be undone after every reboot of your system.
114114

115-
Your primary SD card (SD1) has a drive called `BATOCERA`, which is formatted to **FAT32** and can be accessed easily from Windows, Linux, and MacOS. On that drive, you will find a folder called `boot` which contains a **file** called `batocera` - that file contains the **majority of your KNULLI installation**. (This is why you can manually update your KNULLI installation by simply replacing this file, as explained in the [Update](../../play/update) section.
115+
Your primary SD card (SD1) has a drive called `BATOCERA`, which is formatted to **FAT32** and can be accessed easily from Windows, Linux, and MacOS. On that drive, you will find a folder called `boot` which contains a **file** called `batocera` - that file contains the **majority of your KNULLI installation**. (This is why you can manually update your KNULLI installation by simply replacing this file, as explained in the [Update](../../play/update) section.)
116116

117117
The **overlay** is **another** file that is just called `overlay` and resides in the same folder. The overlay is **optional** - usually, users do **not** have an overlay in place. The **overlay file** contains **changes** you made to the KNULLI installation, which will be applied **during boot**.
118118

@@ -156,11 +156,50 @@ There are several options to put files in the right places **outside** of the `/
156156
or
157157
```
158158
mv /userdata/system/some-file.sh /usr/bin/some-file.sh
159-
```
159+
```
160+
where the **first** argument is always the path to the **source file** you want to copy/move and the **second** argument is always the **final destination** where you want the file to end up.
160161
161162
### Making files executable
162163
163-
After you have moved the files in the right places, you need to make sure that all files which are **supposed** to be executable **actually are** executable. Again, you have several options to achieve this:
164+
After you have moved the files in the right places, you need to make sure that all files which are **supposed** to be executable **actually are** executable.
165+
166+
#### Linux file system permissions
167+
168+
On Linux file systems, three different permissions can be set on each file or folder:
169+
170+
* The **read** (`r`) permission allows to **read** the contents of the file.
171+
* The **write** (`w`) permission allows to **modify** or even **delete** the file and/or its content.
172+
* The **execute** (`x`) permission allows to **execute** the file, which is a special precaution to avoid users accidentally launching dangerous programs. Each program has to be actively set to actually be **executable**.
173+
174+
The three permissions can be set on each file for three different "user classes":
175+
176+
* The **owner** is a **single user** who **owns** the file. (It doesn't necessarily has to be the file's creator.)
177+
* The **group** is a single **group of users** who might have a certain interest in the file.
178+
* The **others** are **all other users** who are **not** the owner and **not** members of the group.
179+
180+
As a result, the permissions of each file can be represented by a 3-by-3 matrix. In this example, **everyone** can **read** and **execute** the file, but only the **owner** can **modify** it:
181+
182+
| | Read | Write | Execute |
183+
| ------ | --------------------- | --------------------- | --------------------- |
184+
| Owner | :material-check-bold: | :material-check-bold: | :material-check-bold: |
185+
| Group | :material-check-bold: | | :material-check-bold: |
186+
| Others | :material-check-bold: | | :material-check-bold: |
187+
188+
This corresponds to a string representation of
189+
190+
```
191+
rwxr-xr-x
192+
```
193+
194+
where the first 3 letters represent the **owner**, the next 3 letters represent the **group** and the last 3 letters represent the **others**.
195+
196+
#### Setting Linux file permissions
197+
198+
!!! warning "Make sure that files need to be executable"
199+
200+
Before you make a file executable, make sure the file actually **needs** to be executable. Do **not** randomly mark files as executable "just to be safe". If you are unsure, check back with the patch developer and ask if a file should be executable or not.
201+
202+
Again, you have several options to set the file permissions on the files of your KNULLI system and make sure a file is **executable**:
164203
165204
* If using WinSCP, you can right-click a file and select *Properties*.
166205
* In the *Common* tab, go to the *Permissions* section and make sure all the *X*es are **checked** if the file is required to be **executable**.
@@ -173,7 +212,7 @@ After you have moved the files in the right places, you need to make sure that a
173212
```
174213
-rwxr-xr-x 1 root root 458 Aug 3 22:20 /userdata/system/patch-installer.sh
175214
```
176-
and you can tell from the part `rwxr-xr-x` if a file is executable (you see 3 `x` letters) or not (you see less than 3 or even no `x` letters).
215+
and you can tell from the part `rwxr-xr-x` if a file is executable for **everyone**.
177216
* use the `chmod` command to change the permissions of a file and make it executable, e.g.,
178217
```
179218
chmod +x /userdata/system/patch-installer.sh

docs/faq/knulli.md

+2-7
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ The long answer is: After we adapted Batocera to make it work on the RG35XX Plus
3737

3838
### Q: Where can I download the latest version?
3939

40-
A: You will find the latest version of KNULLI on our [Releases page](https://github.com/knulli-cfw/distribution/releases/latest). Find the download for your device in the `Installation Package Downloads` section and follow the [Installation guide](../play/install) to install KNULLI on your device. If your device is not listed there, please be patient - there is no public release of KNULLI for your device available, yet.
40+
A: You will find the latest version of KNULLI on our [Releases page](https://github.com/knulli-cfw/distribution/releases/latest). Find the download for your device in the `Installation Package Downloads` section and follow the [Quick Start Guide](../../play/quick-start) to install KNULLI on your device. If your device is not listed there, please be patient - there is no public release of KNULLI for your device available, yet.
4141

4242
---
4343

@@ -49,12 +49,7 @@ A: You will find a list of all currently supported devices in the `Installation
4949

5050
### Q: Do I have to flash every release or can I update?
5151

52-
A: For most of the releases you can update:
53-
* Download the boot.tar.xz file from the releases page
54-
* Extract its content
55-
* Mount your KNULLI SDCARD on your PC/Mac/Linux computer
56-
* Delete the file ``boot/knulli`` (you can make a backup of this file on your computer in case you want to revert to the previous version)
57-
* Copy the contents of the extracted boot.tar.xz to the SDCARD
52+
A: For most of the releases you can run a manual update as explained in the [Update](../../play/update) section.
5853

5954
---
6055

docs/faq/troubleshooting.md

+4-17
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,7 @@ Instead of accessing the partition directly, we propose to use network transfer
1111

1212
### Q: Can I use a second SD card for my roms/bios content?
1313

14-
A: Yes! if you have a new or empty SDCARD you can insert the SDCARD on the second slot of the RG35XX and follow these steps:
15-
16-
* Boot KNULLI and go to ``Settings -> System Settings -> Storage Device`` and change it from ``INTERNAL`` to your second card, e.g. ``SHARE - 25.6G``.
17-
* Exit the settings menu and the system will indicate you need to reboot to get the changes applied.
18-
* Go to the menu ``Settings -> Quit -> Restart System`` to reboot. The system will reboot and the second card will be now used for batocera and the folder structure (roms, bios, etc.) will be created.
19-
* You can now shutdown the console, insert the card on your computer, and copy your bios & roms content.
14+
A: Yes! Have a look in the [Second SD Card](../../play/add-games/second-sd-card) section!
2015

2116
---
2217

@@ -38,23 +33,15 @@ A: Expanding and booting the first time with a 64GB SDCARD takes about 1 to 1:30
3833

3934
---
4035

41-
### Q: I've installed KNULLI or updated to the latest version and my controls don't respond as expected - what can I do?
42-
43-
A: For some devices, especially those which share a common installation image (e.g., the RG35XX H/Plus/SP series), it might be required to manually map the controls after the first installation. To do that, follow the instructions in the [Control](../../configure/controls) section.
44-
45-
---
46-
4736
### Q: I cannot connect to my Wi-Fi even though my device has a wireless network adapter - what can I do?
4837

4938
A: Make sure that your router is set to WPA2. Some users experience connection issues with Wi-Fis which are set to WPA3.
5039

5140
---
5241

53-
### Q: I've installed/updated to the latest version and I don't have audio, or my controls don't respond, or something else is not working as expected:
42+
### Q: I've installed/updated to the latest version and I don't have audio, or my controls don't respond, or something else is not working as expected - what can I do?
5443

55-
A: If you have updated from an older version you may need to copy the ``batocera.conf`` from the releases page to your SD card:
56-
* If you use one single SD card, mount the second partition on your PC/Mac/Linux (``SHARE``) and copy the file to ``system/batocera.conf``
57-
* If you use two SD cards, mount the second SD card on your PC/Mac/Linux and copy the file to ``system/batocera.conf``
44+
A: You might want to try to reset your device to **factory settings**. Please follow our guide on [Resetting to Factory Settings](../../configure/reset-to-factory-settings)
5845

5946
---
6047

@@ -66,7 +53,7 @@ A: Nothing. But don't worry! If you see this message, it only means that your ve
6653

6754
### Q: Why are bezel decorations not working on my KNULLI device?
6855

69-
A: Most bezel decorations are made for screens with an aspect ratio of 16:9. Consequently, those bezels do not work on a 4:3 display (like on the Anbernic RG35XX H/Plus/SP). To get bezel decorations working, find a bezel pack for 4:3 displays. You will find a detailed explanation (and a pointer to 4:3-compatible bezels) in the [Bezel Decorations](../../configure/bezel-decorations) section.
56+
A: Most bezel decorations are made for screens with an aspect ratio of 16:9. Consequently, those bezels do not work on a 4:3 display (like on the Anbernic RG35XX H/Plus/SP). To get bezel decorations working, find a bezel pack for 4:3 displays. You will find a detailed explanation (and a pointer to 4:3-compatible bezels) in the [Bezel Decorations](../../configure/customization/bezel-decorations) section.
7057

7158
---
7259

0 commit comments

Comments
 (0)