2022-10-02

[개발노트] eeprom에 mac address 넣기 참고용.

^^


 macb1: ethernet@f802c000 {

    compatible = "atmel,sama5d3-macb", "cdns,at91sam9260-macb", "cdns,macb";


    status = "okay";

    phy-mode = "rmii";

    #address-cells = <1>;

    #size-cells = <0>;


    nvmem-cells = <&eth0_addr>;

    nvmem-cell-names = "mac-address";


    phy0: ethernet-phy@1 {

        interrupt-parent = <&pioE>;

        interrupts = <30 IRQ_TYPE_EDGE_FALLING>;

        reg = <1>;

    };


    /*ethernet-phy@1 {

        reg = <0x1>;

    };*/

};


/* Bit banging internal I2C to manage the AT24MAC402 chip */


i2c3@ {

    compatible = "i2c-gpio";

    gpios = <&pioE 1 0 /* SDA */

             &pioE 2 0 /* SCK */

            >;

    i2c-gpio,delay-us = <4>;    /* ~178 kHz */

    #address-cells = <1>;

    #size-cells = <0>;


    /* EEPROM contains the eth0 MAC address */


    eeprom@58 {

        compatible = "atmel,24mac402";

        pagesize = <256>;

        read-only;

        reg = <0x58>;

        #address-cells = <1>;

        #size-cells = <1>;


        eth0_addr: eth-mac-addr@9A {

            reg = <0x0 0x06>;

        };

    };

};

댓글 없음:

댓글 쓰기

암호화 + base64 하고 쉘스크립트.

 #!/bin/bash # IV와 UserKey를 설정합니다 (아스키 문자열을 그대로 사용). IV="0123456789abcdef"  UserKey="0123456789abcdef" # IV와 UserKey를 16...