Coder Social home page Coder Social logo

balena-io / docs Goto Github PK

View Code? Open in Web Editor NEW
68.0 36.0 365.0 235.43 MB

Documentation for the balenaCloud platform.

Home Page: https://docs.balena.io/

License: Apache License 2.0

CSS 21.28% JavaScript 11.30% HTML 37.49% CoffeeScript 12.42% Makefile 0.22% Shell 17.28%
balenacloud docs hacktoberfest

docs's Issues

Add info about disk partitioning

A user once asked what we do to their boards disk / HDD, what are partitions and what are their sizes
We should doc it

Here's the info from Ted:

  1. Boot partition
  2. Rootfs partition
  3. Update partition
  4. Expanded partion (this just holds 5 and 6)
  5. Configuration partition (config.json here)
  6. Data partition (this expands at boot till it fills the entire memory medium also holds all the user data)

document custom boot splash screen

Customizing splash

We configure all of our initial images to produce a resin logo at boot, shutdown or reboot. But we encourage any user to go and replace that logo with their own. All you have to do is replace the splash/resin-logo.png file that you will find in the first partition of our images (boot partition) with your own image. NOTE: As it currently stands plymouth expects the image to be named resin-logo.png.

Front logo Front conversations

Suggest power cleaning devices

By 'power cleaning' I mean surge protection, uninterruptible supply, devices that clean up the power signal provided, etc.

This is because devices like the rpi are very sensitive to power fluctuations and it can cause serious issues if they occur, esp. surges.

link broken

broken link to node.js here: "This is a simple Hello, World project for [node.js][node] designed"

Document supervisor update strategies

Via adding an env var RESIN_SUPERVISOR_UPDATE_STRATEGY, current options

  • download-then-kill (default)
  • kill-then-download
  • hand-over

Requires supervisor >= 1.3.0

I2C workaround

A feedback from the user (https://app.intercom.io/a/apps/yg02r5dz/inbox/conversation/1606996671)

http://docs.resin.io/#/pages/hardware/i2c-and-spi.md#i2c
"After your first push, the code will most likely throw an error caused by the modules not being loaded. If this is the case, simply reboot the pi and the modules should be loaded."
I have exactly the same issue on first boot.
Here is my workaround:

# show what i2c buses are available, and grant file permissions 
for i in "$(/usr/sbin/i2cdetect -l | cut -f1)"; do 
# reboot to work around issue discussed here: 
# http://docs.resin.io/#/pages/hardware/i2c-and-spi.md 
/usr/sbin/i2cdetect -y "$(cut -f2 -d '-' <<< $i)" || curl -X POST --header "Content-Type:application/json" \
--data "{"appId": "$APP_ID"}" \ 
"${RESIN_SUPERVISOR_ADDRESS}/v1/restart?apikey=${RESIN_SUPERVISOR_API_KEY}" 
chown "${APP_USER}" "/dev/${i}" 
done

This happens to work like charm ๐Ÿ˜€

Update strategies docs unclear

  • Need to mention what agent version works for update strategies.
  • Also need to mention that these need to be set in the APPLICATION CONFIG VARIABLES section not in regular env vars

Better docs for BBB capemgr use

We need some more/better documentation on using the capemgr and loading capes...some examples of using UART and SPI would be very useful.

Some example stuff from a previous user issue:

Here are the commands to load the cape for UART 1,2,4 and 5 , check it and unload:

root@beaglebone:~# echo BB-UART1 > /sys/devices/platform/bone_capemgr/slots          
root@beaglebone:~# echo BB-UART2 > /sys/devices/platform/bone_capemgr/slots          
root@beaglebone:~# echo BB-UART4 > /sys/devices/platform/bone_capemgr/slots 
root@beaglebone:~# echo BB-UART5 > /sys/devices/platform/bone_capemgr/slots 
root@beaglebone:~# cat /sys/devices/platform/bone_capemgr/slots
 0: PF----  -1 
 1: PF----  -1 
 2: PF----  -1 
 3: PF----  -1 
 5: P-O-L-   0 Override Board Name,00A0,Override Manuf,BB-UART1
 6: P-O-L-   1 Override Board Name,00A0,Override Manuf,BB-UART2
 7: P-O-L-   2 Override Board Name,00A0,Override Manuf,BB-UART4
 8: P-O-L-   3 Override Board Name,00A0,Override Manuf,BB-UART5
root@beaglebone:~# echo -5 > /sys/devices/platform/bone_capemgr/slots
root@beaglebone:~# echo -6 > /sys/devices/platform/bone_capemgr/slots
root@beaglebone:~# echo -7 > /sys/devices/platform/bone_capemgr/slots
root@beaglebone:~# echo -8 > /sys/devices/platform/bone_capemgr/slots
root@beaglebone:~# cat /sys/devices/platform/bone_capemgr/slots
 0: PF----  -1 
 1: PF----  -1  2: PF----  -1 
 3: PF----  -1

Front logo Front conversations

Document using host Systemd calls in the container through dbus.

1.) apt-get install dbus (in your dockerfile)
2.) make sure systemd is running in the container, this is done by setting the environment variable INITSYSTEM = on
3.) run the following command from your start shell script:
DBUS_SYSTEM_BUS_ADDRESS=unix:path=/host_run/dbus/system_bus_socket dbus-send --system --print-reply --dest=org.freedesktop.systemd1 /org/freedesktop/systemd1 org.freedesktop.systemd1.Manager.Reboot

Update info on Changing SSID and/or Passphrase

In this section:

http://docs.resin.io/#/pages/deployment/wifi.md#changing-your-ssid-and-or-passphrase

the instructions state that changing the wifi ssid/passphrase in Beaglebone (and other board) is only possible before provisioning the device. In fact, there is a way to do it (though rough) and users have done it anyway in at least one occasion.

A possible change would be to mention that a method exists, though it is untested (or even not recommended)

Document "Config Vars"

The Config Vars section in Dashboard is a generic interface to set special variables from. It currently lacks docs describing its use.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.