Skip to content

aleksander0m/libratp-barebox

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
doc
 
 
m4
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

libratp-barebox

libratp-barebox is a small C library that allows controlling a barebox running instance through a RATP link, in the same way as the barebox 'bbremote' tool does it.

ratp-barebox-cli

ratp-barebox-cli is a simple command line tool that implements support for the operations defined by libratp-barebox. E.g.:

$ ratp-barebox-cli -t /dev/ttyUSB3 --ping
Sending PING...
PONG received...

$ ratp-barebox-cli -t /dev/ttyUSB3 --getenv global.boot.default
Sending getenv request: global.boot.default
global.boot.default: net

$ ratp-barebox-cli -t /dev/ttyUSB3 --command "ls /dev"
Sending command: ls /dev
Received response (errno Success):
cs0              eeprom0          eeprom1          full
imx-ocotp        mem              netconsole-1     null
prng             ram0             ratpconsole-1    serial0-1
serial1-1        serial2-1        zero


Building

options and dependencies

The basic dependencies to build the libratp project are libevent 2, libratp and gtk-doc (only if building from a git checkout).

On a Debian based system, the additional dependencies may be installed as follows:

$ sudo apt-get install libevent-dev gtk-doc-tools

configure, compile and install

$ NOCONFIGURE=1 ./autogen.sh     # only needed if building from git
$ ./configure --prefix=/usr
$ make
$ sudo make install

License

This libratp-barebox library is licensed under the LGPLv2.1+ license, and the ratp-barebox-cli program under the GPLv2+ license.

About

Barebox specific operations over a RATP link

Resources

License

Stars

Watchers

Forks

Packages

No packages published