Jump to content

thiagoralves

Members
  • Posts

    2
  • Joined

  • Last visited

  1. I just downloaded the most recent mainline image for the NanoPi Neo (Ubuntu_xenial_dev_nightly.7z). It boots and runs fine. However, I was trying to access the UART1 on /dev/ttyS1, but apparently it is not enabled by default.The dmesg output is: dmesg | grep tty [ 0.000000] Kernel command line: root=UUID=d9678417-38b4-4c2b-993e-04cdea0247de rootwait rootfstype=ext4 console=tty1 console=ttyS0,115200 hdmi.audio=EDID:0 disp.screen0_output_mode=1920x1080p60 panic=10 consoleblank=0 loglevel=1 ubootpart=eeb8ef06-01 ubootsource=mmc sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_fb_mem_reserve=16 cgroup_enable=memory swapaccount=1 [ 0.000973] console [tty1] enabled [ 4.066624] console [ttyS0] disabled [ 4.086857] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 33, base_baud = 1500000) is a U6_16550A [ 4.086926] console [ttyS0] enabled [ 4.111551] 1c28c00.serial: ttyS3 at MMIO 0x1c28c00 (irq = 34, base_baud = 1500000) is a U6_16550A I can see that ttyS0 and ttyS3 gets initialized, but I don't see anything related to ttyS1 or ttyS2. By using setserial I can see that ttyS0 is attached to interrupt 33, but ttyS1 and ttyS2 are attached to interrupt 0 (which probably means none). I tried using minicom to talk over ttyS1 and ttyS2. It can open the port, but nothing goes through it. I was using ttyS1 before with the legacy Armbian image, and it was working fine. By updating it to the most recent ubuntu xenial it stopped working. I know this is a nightly build and is not supposed to work perfectly, but I really want to use this updated version because it runs on a more recent kernel.Any ideas on how to fix this?Thanks!
  2. Hi all, First of all, I must congratulate the Armbian team for such an amazing job! It is really terrific! I'm using Armbian on a NanoPi Neo where I'm running an application that relies on having low latency UART responses. My application is having a latency of around 10ms and I believe that it might be related to the tick rate defined in the Armbian kernel (http://www.makelinux.net/books/lkd2/ch10lev1sec2). I would like to increase the tick rate, however, I got a little lost when I tried to browse the Armbian repository. I couldn't find the actual Linux Kernel source code. In order to increase the tick rate I need to edit the file /include/asm-"architecture"/param.h and change the #define HZ to whatever I want. Then I just need to recompile the kernel and run. So my questions are: 1) Where can I find this in the Armbian repository 2) Is there an easy way to recompile the kernel after the modification is made? I looked at the docs for Armbian and it seems that the process is pretty much automatized, which makes me wonder if I can go through the same process even after making modifications to the kernel. 3) After having the binary kernel compiled, how do I "deploy" it in my NanoPi Neo SD Card? Thanks!!!
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines