Jump to content

temach

Members
  • Posts

    9
  • Joined

  • Last visited

Recent Profile Visitors

871 profile views
  1. My Orange Pi Lite used to just hang at some random moment during boot. I though the issue was with the software, but actually changing the power supply and using a shorter power cable solved the problem. Since you seem to get some sort of a timeout error, problem can be the electricity.
  2. Alright, I will just leave the instructions here for the record: So I went with x-compiling. (looks like now there is a vargrand config to set up the x-compile environment, so you can use that) Installed VitrualBox & put Ubuntu Xenial on it. sudo apt-get install linux-headers-$(uname -r) build-essentials Then according to https://github.com/igorpecovnik/lib I git cloned the lib Then edited the compile.sh with the following options: Then I run ./compile.sh with sudo. Then when the script got to kernel compilation, I was prompted to edit the code and continue. So I went ahead and modified the sources/linux-sun8i/sun8i/drivers/hid-core.c Then I hit enter to let compilation continue and it told me that a patch was generated. However that patch did not seem to get applied. So I moved the patch into userpatches/kernel/sun8i-default/my-kernel-patch.patch and restarted the whole compile process (this time I compiled with CREATE_PATCHES="no") In the end I got the deb files in the output I used scp to copy them over to the orange pi lite. After reading this thread: https://forum.armbian.com/index.php/topic/1315-custom-kernel-and-apt-get-update/ I realised that I only needed the headers, image and firmware debs. So I went ahead and installed them with "sudo dpkg -i *.deb" (after removing u-boot deb package). Then I pinned them, so they dont get changed on the next "apt-get upgrade". And it works! Thanks everyone! Overall the toolchain is a bit difficult to grasp (argh, and the constant recompiles are off putting!), but serious kudos to you for creating and maintaning it! Because it actually works!
  3. In the end I decided to go with creating a x-compile environment to get a patched hid.ko.gz However I just noticed that my current armbian does not have a hid.ko.gz module. It has only g_hid.ko.gz So would I go about installing a hid.ko.gz module? my current setup: (uname -r) Linux orangepilite 3.4.112-sun8i #10 SMP PREEMPT Sun Oct 23 16:06:55 CEST 2016 armv7l GNU/Linux Legacy Debian Jessie
  4. After more looking around I found this thread: https://forum.armbian.com/index.php/topic/574-minimum-steps-to-build-a-kernel-module-for-latest-armbian-release/ Can I just use Igor's lib tool on the Orange Pi Lite? That should automate everything.
  5. I have a non compliant usb device that I want to work with my Orange Pi Lite board. I know how to make it work under Arch linux. For that I need to edit source for the usb generic hid driver (kernel/drivers/hid/hid-core.c), recompile the usb kernel module and reinstall it to intramfs (mkinitcpio -p linux). To recompile kernel module I followed this guide: https://wiki.archlinux.org/index.php/Compile_kernel_module What procedure do I need to follow under Armbian? One way is to set up a development environment on a PC, with Virtual Box running Ubuntu Xenial, etc. Recompile the whole armbian and copy the compiled kernel module over to Orange Pi Lite. But it takes a long time. Is there any way to recompile a kernel modue directly on the board? Thanks for your time.
  6. It turned out to be a problem with electricity. I was using a usb extension cable to power the board and the cable is about 1.2 meters in length. This was causing some I-dont-know-what power issue and the board would just shut down randomly (I guess when it tried to bring up the wifi interface?). Removing the long cable and connecting the board to the power supply with a 10cm cable fixed everything. This boards really, really need their power supply! The hungry bastards!!
  7. I configured the on board wifi access point on my Orange Pi Lite, (WPA / WPA2 encrypted, hostapd, dnsmasq). Everything was fine. I could power the board, connect to its wi-fi and ssh into it. Just a day ago I connected to the board with ssh, just to test that it was working and closed the connection immediately. So I know that it should be working and that all the configs are good. But now I keep on getting Connection Timed Out error, tested under Arch Linux and Mac (as the connecting clients). Under arch linux my card finds the wi-fi, finds its bssid and gets to sending an "ASSOCIATING" request which gets a Timeout response. It does not seem to be a hardware failure, because the wi-fi is still created and is visible. Config files also have not changed since the last time it worked. Any ideas?
  8. OH man! Thank you so much, I spend so much time on this! Well at least it will be fixed soon.
  9. Fresh install no X server, no GUI. Unfortunately the cursor is not shown in the terminal. You can type and delete text, but the character under the cursor position is not at all highlighted. I can make it shown with adding something like "echo -e '\e[?16;0;200c' " (colors it orange) to my bash prompt, but in then I start vim and the cursor is still hidden! I can set colorcolumn and colorrow to work around this in vim, but it seems that the problem lies deeper. So I looked around and found the setterm command. It works for setting my background and foreground colors, however when I do "setterm --cursor on" or "setterm --blink on" nothing happens, cursor is still not shown. So I looked around even more! And found that the virtual console can be configured in kernel boot options. The options are documented here: https://www.kernel.org/doc/Documentation/kernel-parameters.txt And there is the option "vt.global_cursor_default= " which looks promising. BUT! It looks like Armbian does not use grub. (no /etc/default/grub folder) So the question is: 1) Is there any way to set kernel boot parameters? OR 2) Is there any other way to solve this?
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines