Jump to content

blprasad

Members
  • Posts

    27
  • Joined

  • Last visited

  1. Hi , I am trying to install headers on my orang pi using command #apt install linux-headers-$(uname -r) getting the following message Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package linux-headers-5.4.27-sunxi E: Couldn't find any package by glob 'linux-headers-5.4.27-sunxi' E: Couldn't find any package by regex 'linux-headers-5.4.27-sunxi' could someone help me in how do I install headers ?, I am trying to comiple a kernel module. thanks
  2. exploring https://github.com/zhaolei/WiringOP/blob/h3/wiringPi/wiringPi.c
  3. I suspect it is "drivers/pinctrl/sunxi/pinctrl-sunxi.h" , not tried yet. Correct me know if I am wrong.
  4. Hi all , I am trying to work with GPIO , on Orange Pi zero latest kernel image (linux-sunxi-5.10.60). In old kernel linux-3.4.114 there used to be gpio_lib.h,gpio_lib.c files which are for this purpose as I know. Could someone help me find similar library in latest kernel sources. thanks
  5. Hi tparys, the module is loaded I checked it with "lsmod" list.
  6. Hi tparys, thanks for the prompt reply, I treid to verify whether the module is loaded or not, but I could not succeed, I will try again with more prinks.
  7. Orange Pi zero ,I am working on running toxic (tox protocol) client. On an old image with kernel 3.4.113 was able to compile custom module and load it. But with latest image with kernel 5.10.60 not able to load my custom kernel module , getting following error. " loading out-of-tree module taints kernel. module verification failed: signature and/or required key missing - tainting kernel " Another problem I am facing as follows ethernet eth0 repeatedly up/down ,I learn that this issue exists for the past few years now without any fix !!! Any inputs regarding these are appreciated , thanks in advance.
  8. ___ ____ _ _____ / _ \ _ __ __ _ _ __ __ _ ___ | _ \(_) |__ /___ _ __ ___ | | | | '__/ _` | '_ \ / _` |/ _ \ | |_) | | / // _ \ '__/ _ \ | |_| | | | (_| | | | | (_| | __/ | __/| | / /| __/ | | (_) | \___/|_| \__,_|_| |_|\__, |\___| |_| |_| /____\___|_| \___/ |___/ Welcome to ARMBIAN 5.36 user-built Ubuntu 16.04.3 LTS 3.4.113-sun8i System load: 0.37 0.16 0.07 Up time: 5 min Memory usage: 11 % of 241MB IP: CPU temp: 42�°C Usage of /: 98% of 1.8G I got as above when I login in to my orange pi0, It shows ARMBIAN 5.36!!!
  9. you need to use 3 uart overlays located in /boot/dtb/overlay by editing armbianEnv.txt and adding the following line, save and reboot : I did not find any "/boot/dtb/overlay" file on my orange pi zero. But I gave a try by editing armbianEnv.txt here are the contents: verbosity=7 console=both machid=1029 bootm_boot_mode=sec rootdev=UUID=7dd0c931-6f7e-4fbd-83f6-544d0e1b2765 rootfstype=ext4 overlays=uart1 uart2 uart3 usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u saved the file ,and rebooted but I could not get any change , I could not understand why you mentioned uarts in overlay. Is it UARTs which took the control of PA13?. I thought it was SPI correct me if I am wrong in understanding.
  10. https://github.com/armbian/build/blob/master/config/fex/orangepizero.fex [spi1] spi_used = 1 spi_cs_bitmap = 1 spi_cs0 = port:PA13<2><1><default><default> spi_sclk = port:PA14<2><default><default><default> spi_mosi = port:PA15<2><default><default><default> spi_miso = port:PA16<2><default><default><default> After looking at above my understanding is that PA13 is not configured as gpio by default. so I tried to get PA13 as gpio by using overlay , after studying https://docs.armbian.com/Hardware_Allwinner_overlays/#overlay-pinmux-conflicts gave a try with .dts here is my overlay gpiotrail.dts file /dts-v1/; /plugin/; / { compatible = "allwinner,sun8i-h3"; fragment@0 { target = <&spi1>; __overlay__ { gpio: gpio { pins = "PA13"; function = "gpio_in"; bias-pull-up; }; }; }; I don't know that the above .dts is correct or not , I tried to it after searching for different examples on internet and I tried add this overlay as below root@orangepizero:~# armbian-add-overlay gpiotrail.dts Overlays are supported only on A10, A20, H3, H5 and A64 based boards then I got above message !!! , I am in desperate need of gpios, I don't know how to proceed. I have plans to recompile kernel by disabling spi1 in .fex, I tried to compile kernel few days ago but it's not compiling on my 32 bit host PC. so I need look for another approach. Please suggest if you have any Ideas.
  11. Sorry for delay in reply,debug port is UART0 the 3 pin header!!, I understood it wrongly,I thought it as UART3. So there is no UART3 as such?. I read orange pi has 3 UARTS ,so I wrongly expected them as UART1,UART2,UART3. Now I think they are UART0,UART1,UART2. If that is the case how this UART3 comes into picture?, I am only using default debug port i.e., UART0 for debugging, and I am not explicitly changing any settings or configuration of the board.I am trying to access the the GPIO normally with all default configuration of the board. I dont understand "UART3 overlay,since it use PA13 as UART3_TX ..." , please give more details. Correct me if I am wrong in my understanding.
  12. I may have to modify the overlay explicitly!!, any reference regarding that is appreciated.
  13. I am using debug port for debugging, now I expect that could be UART3 overlay. Is it? If I don't use it as debug port then will it automatically get converted into gpio?
  14. No ,I don't have much idea of what SPI1 overlay is,I am not using this pin for any other purpose, how can I make this pin work as normal GPIO?, how to disable the SPI and make work as GPIO. thanks for comment.
  15. I found mistake in my code I configured R1,and C4 both assigning same pin ,now I corrected it ,there comes some relief. C4 actually I connected to SUNXI_GPG(06) but my SUNXI_GPA(13) is not working at all ,it never goes HIGH. I used same logic to rest of the pins they work fine but this pirticular pin never worked so far.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines