Commit graph

10 commits

Author SHA1 Message Date
Paul Sokolovsky
6020a9248a fernly-usb-loader.c: Add -w option, wait for serial port to appear.
Many MTK devices have bootloader connection available only for few seconds
after power-up. To not try to synchronize all of device connection over USB/
power-on and fernly-usb-loader start up, the latter can be run in this "wait"
mode, and a device connected and bootloader start at leisure.
2015-04-02 12:39:34 +08:00
Sean Cross
9e9bab1ff2 Merge pull request #16 from robertfoss/patch_1
Silenced GCC warnings
2015-03-18 17:15:59 +08:00
Robert Foss
11ac2200ff Silenced GCC warnings 2015-03-16 11:32:11 +01:00
Chinmay Pendharkar
0a1b9e3cd9 Changing baudrate to 115200
Changing baudrate to `B115200` which is defined in sys/temios.h on OSX.
2015-03-14 13:48:20 +08:00
Sean Cross
d4283bc9ce fernly-usb-loader: Add 'shell' argument
To interactively communicate with the fernly loader, pass '-s' to the
fernly-usb-loader program.  Otherwise it will wait for the shell to
start and then exit.

Signed-off-by: Sean Cross <xobs@kosagi.com>
2015-02-05 16:02:48 +08:00
Sean Cross
0bfdbb314f fernly-usb-loader: Get rid of call to 'screen'
Since we have an internal terminal of sorts, remove the call to 'screen'
when not running in monitor mode.

Signed-off-by: Sean Cross <xobs@kosagi.com>
2015-02-04 21:30:03 +08:00
Robert Foss
a8bd97b5d0 fernly-usb-loader: Silence a few printf warnings
This silences some printf() warnings that appear due to varying sizes
of printf arguments.
2015-02-02 17:42:46 +08:00
Sean Cross
09bf775667 fernly-usb-loader: Correct stdio handle numbers
Use the macros STDIN_FILENO and STDOUT_FILENO to refer to the file
handles for stdin and stdout.  This prevents us from using the wrong handle
to write or read, which was a problem with the older code.

Signed-off-by: Sean Cross <xobs@kosagi.com>
2015-02-02 16:50:03 +08:00
thesourcerer8
e948d27bb0 fernly-usb-loader: Log output to fernly.log
Log output received from the Fernvale board to a logfile.

Signed-off-by: thesourcerer8 <pg@futureware.at>
2015-01-14 12:14:06 +08:00
Sean Cross
62c79bf5c0 fernly: Add USB loader
Add the fernly usb loader, imported from NuttX.

Signed-off-by: Sean Cross <xobs@kosagi.com>
2014-12-29 09:26:22 +08:00