Jump to content

Marius Brataas

Members
  • Posts

    9
  • Joined

  • Last visited

Everything posted by Marius Brataas

  1. Hey again! I used Igor's excellent software to compile a new kernel and I got the CAN-bus up and running But I've ran into a new problem. When running this custom kernel the GPIO on my Tinker Board is no longer accessible. When I try to use a pin in python I just get this message back: "RuntimeError: This gpio is set to other function!". Any idea why this happens? I thought it would still work on my new kernel, after choosing tinkerboard in the menu of your compilation software, and then choosing the default kernel.. Any hints? All help appreciated, thanks Marius
  2. Hey everyone I've compiled my own kernel using this awesome tool, and I'm now running it on a tinker board. Everything's been working fine, except for one annoying thing I just ran into: I can't use the GPIO pins. When I try to use a pin in python I just get this message back: "RuntimeError: This gpio is set to other function!". If I run Debian I can use the gpio just fine, but I need some kernel modules that doesn't ship with Debian. That's why I've compiled my own armbian kernel. Anyways, any idea on how to fix this? Any special module I should add when compiling the kernel? Thanks Marius
  3. Hey! I recently got a CAN-bus up and running on a Tinkerboard running Armbian, but I've run into another problem here: The CAN-bus buffer fills up. After sending a few messages I get an error saying "No buffer space available". I've noticed that some other people are solving this by increasing the buffer size, but that seems like a weird solution to me. And it wouldn't really help me much. I need to empty this buffer when I read from it, or manually (without restarting the CAN-bus). Any ideas on how to do that? Thanks
  4. I think I'll rather try to use your tools Thanks for you help! I'll try the approach you described
  5. So... Configure on a normal desktop computer, compile, write to SD-card and insert back into tinkerboard, is that what this means? Sorry, I am very new to linux and kernels
  6. root@tinkerboard:~# apt-get -y -qq install git root@tinkerboard:~# git clone --depth 1 https://github.com/armbian/build Cloning into 'build'... remote: Counting objects: 1809, done. remote: Compressing objects: 100% (1506/1506), done. remote: Total 1809 (delta 344), reused 1285 (delta 190), pack-reused 0 Receiving objects: 100% (1809/1809), 48.36 MiB | 8.67 MiB/s, done. Resolving deltas: 100% (344/344), done. Checking connectivity... done. Checking out files: 100% (2206/2206), done. root@tinkerboard:~# cd build root@tinkerboard:~/build# ./compile.sh [ o.k. ] Using config file [ config-default.conf ] [ o.k. ] This script will try to update Already up-to-date. Already on 'master' Your branch is up-to-date with 'origin/master'. [ o.k. ] Preparing [ host ] [ .... ] Please read documentation to set up proper compilation environment [ .... ] http://www.armbian.com/using-armbian-tools/ [ error ] ERROR in function prepare_host [ general.sh:503 ] [ error ] Running this tool on non x86-x64 build host in not supported [ o.k. ] Process terminated Trying to follow the very first steps in that post produces this output.
  7. Thanks Igor, but I haven't really gotten any further. I've tried to compile my own kernel like shown in this video, and this way I was able to add the CAN-bus modules to the config during menuconfig. However, I can't seem to figure out how to boot with that new kernel now. The boot directory on my Tinkerboard is currently looking like this: Any ideas or other strategies? All I really need is normal Armbian but(!) with the CAN modules added to the kernel. All help appreciated, thanks
  8. Hey, I’m running armbian on a tinkerboard and I need to connect to a CAN-bus. Apparently the usual Linux CAN-kernel-modules aren’t shipped with armbian, so I guess I’ll have to add them manually somehow. I`ve been trying to do that for two days now without any luck. I’ve been trying to follow the steps described in other forums, but it haven’t helped. I really just want to add the necessary modules to my existing kernel. Any ideas?
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines