How to install mraa and get it running on UP4000 / Ubuntu ? (step by step instructions request )

I ensured again that there is something not clear with mraa on UP4000/Ubuntu installation...
- I unpacked new , clean UP4000 from box.
- I installed clean Ubuntu20.04. there, no issue.
Then I followed instructions on UP wiki and replaced kernel with 5.4.0 , again without issue. Restarted board, everything without issue.
Then I clone mraa-master from git and updated src/x86/x86 as was sugested in different discussion :
@garyw said:
if you are using official mraa from Github with our up 5.4 kernel, you have add the UP4000 board name "UP-APL03" into src/x86/x86.c aselse if (strncasecmp(line, "UP-APL03", strlen("UP-APL03") + 1) == 0) {
platform_type = MRAA_UP2;
plat = mraa_up2_board();
}
}
, installed cmake, build-essential and so on... and compiled mraa.
Then I install it. Its all. No issue so far.
But regarding to mraa - there is issue to run it :
mraa-gpio version
Version v2.2.0 on Unknown platform
mraa-gpio list
No Pins
Can someone please get us step by step instructions, how to get mraa running on UP4000/Ububtu on "clean, just unpacked" UP4000 ?
Answers
-
@Lubo
we are switching to new pinctrl driver, if you don't need customization kernel (UP kernel 5.4),
you can refer below comment I provide to other user. it's suitable for UP 4000 too.https://forum.up-community.org/discussion/comment/13367#Comment_13367
-
Thank you,
the answer in different discussion helped me lot :https://forum.up-community.org/discussion/comment/13367#Comment_13367
mraa works now.
But I am facing another issue now, with pin availability, maybe pin mapping ? but I will describe it in different thread, because mraa is working now.
Tagged
Categories
- All Categories
- 105 Announcements & News
- 55 Product News - New Product/Product Change Notice/ End-of-life
- 184 Welcome Developers!
- 55 Unboxing & Project Sharing
- 34 Tech Updates
- 661 UP Products
- 2 UP 7000
- UP Squared i12
- 8 UP Xtreme i12
- 9 UP Squared Pro 7000
- 1 UP Element i12 Edge
- 18 UP Squared V2
- 54 UP 4000
- 24 UP Xtreme i11
- 35 UP Squared 6000
- 58 UP Squared Pro
- 142 UP Xtreme
- 834 UP Squared
- 1.4K UP Board
- 89 UP Core Plus
- 222 UP Core
- 3 UP Xtreme Lite
- 44 UP AI Edge
- 215 Starter Kits & Peripheral