ccgx:root_access
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
ccgx:root_access [2019-05-24 09:44] – [Hooks to install/run own code at boot] mvader | ccgx:root_access [2020-06-28 10:35] – mvader | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Venus OS: Root Access ====== | ====== Venus OS: Root Access ====== | ||
- | It is possible | + | This document explains how to access |
- | Do you have improvements? | + | This document is part of the Venus OS developer documentation. The main document is [[https:// |
==== Warning about modifying the rootfs ==== | ==== Warning about modifying the rootfs ==== | ||
Note that additions made to the rootfs are not safe during an update, as the complete rootfs is replaced during an update. | Note that additions made to the rootfs are not safe during an update, as the complete rootfs is replaced during an update. | ||
Line 10: | Line 10: | ||
==== Hooks to install/run own code at boot ==== | ==== Hooks to install/run own code at boot ==== | ||
+ | |||
+ | Everything, except for information on /data, will be wiped after an update. | ||
+ | |||
+ | Therefor, the trick to make changes & modifications survive an update, is to put files you need on /data, make them be (re-)installed automatically on startup. This section describes how to do that. | ||
If the files / | If the files / | ||
Line 22: | Line 26: | ||
https:// | https:// | ||
- | ==== Available | + | ==== Partitions and available |
- | See https:// | + | |
- | And see ''/ | + | On a GX Device, there are three partitions that matter: |
+ | |||
+ | * rootfs partition one | ||
+ | * rootfs partition two | ||
+ | * the data partition | ||
+ | |||
+ | Only one of the two rootfs partitions will be in use. When doing a firmware update, it will be installed on the other, and the subsequent reboot will reboot the device onto that other partition. | ||
+ | |||
+ | The data partition is not touched during a firmware update, except maybe some migration scripts that run at boot. | ||
+ | |||
+ | When doing modifications, | ||
+ | |||
+ | With regards to the size of the data partition, thats easy to check using the '' | ||
+ | |||
+ | After logging into a GX device, and checking the free disk space on the rootfs(! thats not the data partition), you might get a bit disappointed at first. Don't worry too much, by design there will always be only 5% of free space. | ||
+ | |||
+ | The reason behind is that a firmware update replaces the full filesystem on the rootfs (as an image). | ||
+ | |||
+ | To see the full space, run ''/ | ||
+ | |||
+ | For actual available diskspace on our GX Devices, see https:// | ||
+ | |||
+ | To see what resize2fs.sh | ||
+ | |||
+ | Note that a firmware update will replace all of the rootfs, as also explained above. Which implies that you'll need to run resize2fs.sh again after doing a firmware update. | ||
==== 1. Set access level to Superuser ==== | ==== 1. Set access level to Superuser ==== | ||
Line 71: | Line 98: | ||
https:// | https:// | ||
- | ==== 6. Connecting | + | ==== 6. Connecting |
+ | |||
+ | === Introduction === | ||
+ | |||
+ | The serial console offers a straight connection from your computer. Not relying on TCP or anything else. | ||
+ | |||
+ | Its an alternative to connecting to the commandline | ||
+ | |||
+ | Connecting to the serial console requires a USB interface, ie a USB to serial cable with proper pin-out. For example this one: https:// | ||
+ | |||
+ | The serial consoles on all GX devices are configured to 115200 baud. | ||
+ | |||
+ | === Serial console on CCGX === | ||
+ | |||
+ | All GX Devices have a dedicated serial console, except for the CCGX. Therefor its documented on a separate page: | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | === Serial Console on Cerbo GX === | ||
+ | |||
+ | The serial console is located on the CPU board, header JP201. GND is pin 1, RX and TX are pins 4 and 5. Here is a picture showing a [[https:// | ||
+ | |||
+ | Make sure not to connect the red wire. | ||
- | First, note that this is only relevant for the CCGX, as the Beagleboards have a uart dedicated to a console function. | + | {{ : |
- | See menu item Settings -> Services -> Console on VE.Direct 1 | + | === Serial |
- | Enable the Serial Console on VE.Direct Port 1. Serial | + | The serial |
- | Settings are 115k2 / 8N1. Note that a normal VE.Direct | + | White: TX of the Beaglebone - connect |
+ | Black: ground | ||
+ | Green: RX of the Beaglebone - connect | ||
+ | Make sure not to connect the red wire. | ||
+ | Here is a picture showing how, also using the adafruit serial console cable as referenced above: | ||
- | ===== DISQUS ===== | + | {{ : |
- | ~~DISQUS~~ | + | |
ccgx/root_access.txt · Last modified: 2024-02-09 17:06 by dfaber