Jump to content

martinayotte

Members
  • Posts

    3892
  • Joined

  • Last visited

Posts posted by martinayotte

  1. 8 minutes ago, iav said:

    read how to "use this overlay source and compile it and load it"?

    Install DT compiler from http://ftp.debian.org/debian/pool/main/d/device-tree-compiler/device-tree-compiler_1.4.7-3_arm64.deb

    Then, compile the DTS I've provided and then load it dynamically :

    dtc -@ -I dts -O dtb -o odroid-n2-ic2@1c000.dtbo odroid-n2-ic2@1c000.dts
    mkdir /sys/kernel/config/device-tree/overlays/i2c3a
    cat odroid-n2-ic2@1c000.dtbo > /sys/kernel/config/device-tree/overlays/i2c3a/dtbo

     

  2. 11 hours ago, Burschi500 said:

    I also have no i2c bus, in /dev/ there is only i2c-0.

    Odroid-N2 external RTC is attached on I2C3 which isn't enabled by default.

    To enable it, use this overlay source and compile it and load it.

    /dts-v1/;
    /plugin/;
    
    / {
        compatible = "amlogic,meson-g12b";
        fragment@0 {
            target-path = "/aliases";
            __overlay__ {
                i2c3a = "/soc/bus@ffd00000/i2c@1c000";
            };
        };
        fragment@1 {
            target-path = "/soc/bus@ffd00000/i2c@1c000";
            __overlay__ {
                status = "okay";
                pinctrl-0 = <&i2c3_sda_a_pins>, <&i2c3_sck_a_pins>;
                pinctrl-names = "default";
                pcf8563: rtc@51 { /*I2C-bus slave address: read A3h and write A2h*/
    		compatible = "nxp,pcf8563";
    		reg = <0x51>;
                };
            };
        };
    };

    Then, the i2c will appear as well as module for PCF8563 will be loaded, it will be hookup as /dev/rtc1, you can then set the clock and re-read it using :

    hwclock -w -f /dev/rtc1
    hwclock -f /dev/rtc1

     

  3. On 3/30/2020 at 12:19 PM, iav said:

    How to set hardware clock correctly?

    Odroid-N2 external RTC is attached on I2C3 which isn't enabled by default.

    To enable it, use this overlay source and compile it and load it.

    /dts-v1/;
    /plugin/;
    
    / {
        compatible = "amlogic,meson-g12b";
        fragment@0 {
            target-path = "/aliases";
            __overlay__ {
                i2c3a = "/soc/bus@ffd00000/i2c@1c000";
            };
        };
        fragment@1 {
            target-path = "/soc/bus@ffd00000/i2c@1c000";
            __overlay__ {
                status = "okay";
                pinctrl-0 = <&i2c3_sda_a_pins>, <&i2c3_sck_a_pins>;
                pinctrl-names = "default";
                pcf8563: rtc@51 { /*I2C-bus slave address: read A3h and write A2h*/
    		compatible = "nxp,pcf8563";
    		reg = <0x51>;
                };
            };
        };
    };

    Then, the i2c will appear as well as module for PCF8563 will be loaded, it will be hookup as /dev/rtc1, you can then set the clock and re-read it using :

    hwclock -w -f /dev/rtc1
    hwclock -f /dev/rtc1

     

  4. 16 hours ago, braineniac said:

    should I try to write my own overlay? Is that even doable?

    I think writing your own overlay would be the most easy approach ...

    Which board are you using ?

  5. Lets say that the easiest way to clone a running SDCard is to blindly the first sectors where u-boot reside using "dd" :

    dd if=/dev/mmcblk0 of=/dev/sda bs=1024 count=2048

    Then, after that blind copy, you can use "gparted" like you did previously.

  6. Redoing my work on a clean branch, I've just figured out that we have two RTL8723CS drivers in the tree ...

    One is added using Armbian patch pushing code into driver/net/wireless/realtek and there is already another one in cache/sources/linux-mainline/orange-pi-5.5/drivers/staging/rtl8723cs-new that have been added since 5.5.y back in January.

    @Igor, I think we should use the later since Smaeul and Ondrej have even done some "suspend" fix recently ...

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines