This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| mission:resources:picoprint:software [2014-01-08 12:06] – [Install and compile kernel] chrono | mission:resources:picoprint:software [2015-01-26 22:15] (current) – [GPIOs] chrono | ||
|---|---|---|---|
| Line 9: | Line 9: | ||
| </ | </ | ||
| - | Create a cubieboard2 specific cross-development environment: | + | Create a stable armv7a-hardfloat-linux-gnueabi tool chain for the Cubieboard2: |
| < | < | ||
| Line 94: | Line 94: | ||
| <WRAP round tip> | <WRAP round tip> | ||
| - | **The kernel | + | **The kernel |
| - | * Networking support > [*] RF Switch subsystem support | + | * Networking support |
| - | * Power Management options > [*] Run-time PM core functionality | + | //Solution: Disable RF Switch subsystem support (not needed on CB2 anyways).// |
| - | + | * Power Management options | |
| - | To make it work you'll have to disable RF Switch subsystem support and either disable | + | // |
| </ | </ | ||
| Line 157: | Line 157: | ||
| </ | </ | ||
| - | Other software | + | ==== Install and compile sunxi-tools ==== |
| + | |||
| + | < | ||
| + | $ cd .. | ||
| + | $ git clone https:// | ||
| + | $ cd sunxi-tools | ||
| + | $ make bin2fex fex2bin | ||
| + | $ git clone https:// | ||
| + | </ | ||
| < | < | ||
| emerge -pv nginx pycurl mjpg-streamer | emerge -pv nginx pycurl mjpg-streamer | ||
| </ | </ | ||
| + | |||
| + | ===== GPIOs ===== | ||
| + | |||
| + | http:// | ||
| + | ===== nginx config ===== | ||
| + | |||
| + | < | ||
| + | worker_processes | ||
| + | |||
| + | events | ||
| + | { | ||
| + | worker_connections | ||
| + | } | ||
| + | |||
| + | http | ||
| + | { | ||
| + | include | ||
| + | default_type | ||
| + | sendfile | ||
| + | keepalive_timeout | ||
| + | |||
| + | map | ||
| + | { | ||
| + | default | ||
| + | '' | ||
| + | } | ||
| + | |||
| + | upstream | ||
| + | { | ||
| + | server | ||
| + | } | ||
| + | |||
| + | upstream | ||
| + | { | ||
| + | server | ||
| + | } | ||
| + | |||
| + | server | ||
| + | { | ||
| + | listen | ||
| + | server_name | ||
| + | |||
| + | client_max_body_size 50M; | ||
| + | |||
| + | location /framecam/ | ||
| + | { | ||
| + | proxy_pass http:// | ||
| + | proxy_buffering off; | ||
| + | } | ||
| + | | ||
| + | | ||
| + | location /sockjs | ||
| + | { | ||
| + | proxy_pass http:// | ||
| + | proxy_buffering off; | ||
| + | proxy_http_version 1.1; | ||
| + | proxy_set_header Upgrade $http_upgrade; | ||
| + | proxy_set_header Connection $connection_upgrade; | ||
| + | |||
| + | } | ||
| + | |||
| + | location / | ||
| + | { | ||
| + | | ||
| + | set $pp_d http:// | ||
| + | if ( $args = ' | ||
| + | set $pp_d http:// | ||
| + | } | ||
| + | | ||
| + | if ( $args = ' | ||
| + | set $pp_d http:// | ||
| + | } | ||
| + | |||
| + | proxy_pass $pp_d; | ||
| + | proxy_http_version 1.1; | ||
| + | proxy_set_header Upgrade $http_upgrade; | ||
| + | proxy_set_header Connection " | ||
| + | proxy_set_header Host $host: | ||
| + | proxy_set_header X-Forwarded-Proto $scheme; | ||
| + | proxy_set_header X-Forwarded-For $remote_addr; | ||
| + | proxy_set_header X-Forwarded-Port $server_port; | ||
| + | proxy_set_header X-Request-Start $msec; | ||
| + | | ||
| + | } | ||
| + | |||
| + | # redirect server error pages to the static page /50x.html | ||
| + | error_page | ||
| + | location = / | ||
| + | { | ||
| + | root html; | ||
| + | } | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | {{tag> | ||
| + | |||
| + | {{keywords> | ||
| + | |||
| + | ~~DISCUSSION~~ | ||