-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BOARD PIN MODE ERROR - Check Pin Mode: EINVAL, invalid argument #2
Comments
After updating to all the latest versions of the ideino-linino, lininoIO, etc. the error looks like this:
|
And now this...
|
Are there special aliases, because that gpio path doesn't look correct, which I confirmed:
|
The problem is your outdated version of lininoOS, not compatibile with the ideino-linino-lib. please update your lininoOS to the latest version (at the moment is 14 Oct). before start is recommended to make a backup of your own files. connect via ssh to the board and download it.
if you have an arduino yun board:
otherwise, if you have the linino one:
then, if you installed ideino ide, open the sysupgrade configuration file:
and add these lines
load the serial terminal in the mcu (used in case of problems during the upgrade):
linino one:
upgrade arduino yun:
upgrade linino one:
after few minutes the board will automatically reboot itself and you can reconnect to it via ssh. then install the bathos and reboot again (same for arduino yun and linino one):
now your system is updated. finally you need the latest version of the ideino-linino-lib. download it and replace your. if you have also installed the ideino ide, run these commands to enable it to start at boot
quasto |
Where would I have found this information documented?
From where? I can't |
we are aligning documentation and repositories
in this moment you need to clone this repository and manually move it to the file system of the board. let me know if you are able to go ahead with the issue of the GPIO names. |
I followed all of the upgrade instructions above, everything completed without a failure.
I tarred the latest version of this repo and then locally:
Now, ssh'ed to the board:
Here's the program: var linino = require("ideino-linino-lib");
var board = new linino.Board();
var led = board.pin.digital.D13;
board.connect(function(){
board.pinMode(led, board.MODES.OUTPUT);
board.digitalWrite(led, board.HIGH);
}); |
did you reboot the board after bathos-mcuio.hex loading? try to power off and power on the board. if the problem persists, run these commands and let me know the output:
|
Yes. I followed every step of the instructions.
The board was powered off completely overnight.
|
your lininoOS is up to date.
seems that the bathos is not loaded correctly. you should see something like this:
you missing
|
...After reboot...
So I tried this... var linino = require("ideino-linino-lib");
var board = new linino.Board();
var led = board.pin.digital.D12;
board.connect(function(){
// board.pinMode(led, board.MODES.OUTPUT);
// board.digitalWrite(led, board.HIGH);
}); Which shouldn't have that failure because I'm not initializing any pins, right? I added some logging to the internals of lib/gpio.js to see what was passing through and narrowed it down to the call to Sidenote: nearby the call to Both files are full of race conditions and process blocking IO. Anytime an |
This is still an issue - appreciate if you'd reopen it. I have a fresh update of both Ideino and LininoIO and my results are the same as above. Node scripts all fail during connect with a failure due to that.blink() line. |
This problem occurs when the board is not restarted after the loading of the firmware. So please run this command and let me know the version of you LininoOS
if you version is
your LininoOS is up to date to the latest version. Then try to reload the bathos mucio firmware and reboot the board:
if the firmware is loaded correctly, running this command:
you should see this:
if you see quasto |
Everything checks out, which is why I requested to reopen this issue. My results are:
However, running a simple script always fails: I'm running the 6-line example from http://www.linino.org homepage. However, it repros with even a simple call to connect which means it's having a problem with the |
From the title of this issue, I thought there was an error of type Anyway your problem is caused by an old configuration file. This file contains the pin layout of the boards. To solve it I suggest to download the latest version (at the moment) of ideinoIO from here: https://github.com/ideino/ideino-linino-dist/releases/download/0.1.0/ideinoIO_0.1.0-9_ar71xx.ipk and then install it:
In the next days we'll release a newer version that will improve some functionality. |
How could I have an old configuration file when I just did a clean install of IdeInoIO by following the instructions here http://wiki.linino.org/doku.php?id=wiki:nodejscript Do you mean that |
BTW, I installed ideinoIO_0.1.0-9_ar71xx.ipk and confirmed it's working now |
@rwaldron
if it tells you it's "disabled" , try (with ssh) :
this should run 'run-avrdude /etc/linino/bathos-mcuio.hex' and create some new folders in /sys/class/pwm/pwmchip0/ corresponding to the arduino pin see : http://wiki.linino.org/doku.php?id=wiki:upgradetolininoio |
Reinstalling a new card, I had the same issue. so I went back with lininoio stop , with reboot, then rerun lininoio start and it is OK for me now. Hope this could help, I can now run blink.js :
or |
Result:
The text was updated successfully, but these errors were encountered: