Jump to content

hjoe

Members
  • Posts

    12
  • Joined

  • Last visited

Posts posted by hjoe

  1. Armbianmonitor:

      Hi, trying to install a char driver without any driver framework. The only thing I can not install is getting the Interrupt through to the interrupt servce routine

      err = request_irq(irq, handler,
            // IRQF_TRIGGER_RISING,
             IRQF_TRIGGER_HIGH,
            "can4linux", &can_minors[minor]);

    irq is the Interrupt number of the CAN controller, it is fixed in the A20 to 58.

    I do get no error messages, but the isr is not called. What I am missing?

     

    Greetings Heinz
     

    By the way, it worked  an Bananian 3.x

  2. Igor, in https://armbian.atlassian.net/browse/AR I can see you marked it as solved. Did now expect that we have new kernel-headers, but apt-get update and apt-get upgrade does not show a new one?

     

    May be it is not related but I can not get interrupt number 58 (CAN module) working.

    Am 13.1.2021 um 18:34 schrieb Igor:

    ... and no help where we are asking for one:
    https://forum.armbian.com/forum/54-help-wanted/

    I'm sure all these tasks are above my skills, but when finished may small project, I'll have a look at it. 

  3. Hi, have the same problem with compiling the can4linux driver.
    Why does someone suggest to remove the last line of the linker script module.lds ?

      sudo sh -c "sed '$ d' 

     

    it should include something for sure, may be the .plt section.

    #include does not work, so I added the content of  ./linux-headers-5.10.4-sunxi/arch/arm/include/asm/module.lds.h

     

    Zitat

    SECTIONS {
            .plt : { BYTE(0) }
            .init.plt : { BYTE(0) }
    }


    now I can load the module, but is may be not correct

  4. I read on the forum:

    "Update boot loader to latest version - armbian-config -> system -> install/update boot loader ... and try again." and I did.

    I also removed power, reconnected the cables, and now the result is different: I have now the device /dev/sda available.

    Hopefully, all is good now.  

     

  5. Armbianmonitor:

    Today I updated my BananaPI M1 board, replaced the Bananian OS with Armbian  Armbian_20.05.4_Bananapi_focal_current_5.4.45.img. I'm not getting the SATA with connected 1TB WD10JFCX working. The HD worked before with the Bananien kernel 3.4.x 

    What can I do, how can I test, how can i get more information about the reason?

    The board is powered via the Micro USB and armbianmonitor reports  DC-IN voltage > 5V

  6. I found the CAN device driver sources in  

    sun7i_can.c - CAN bus controller driver for sun7i

     

    to configure the gpio pins for the special case of acting as TX and RX for CAN, the following function calls are used:

    sw_gpio_setcfg(GPIOA(16), 3); 
    

    I try to use this code to implement the can4linux module an a BananaPi M2-Berry using Armbian stretch but are not able to find any prototype of such a function sw_gpio_setcfg(); nor the definitions of the gpio ports like GPIOA.

    What ist the correct way of accessing the gpio ports from within the kernel?

    Thanks for helping.

     

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines