FAQ_MA35D1_Read MAC Address from OTP

Post Reply
ytliu6
Posts: 62
Joined: 08 Nov 2022, 10:28

22 Nov 2022, 10:32

Read MAC Address from OTP

Before read the MAC address, write MAC address by NuWriter_MA

Yocto:

1. Disable default MAC address in U-Boot device tree

Code: Select all

~/yocto/build/tmp-glibc/work/numaker_som_ma35d16a81-poky-linux/u-boot-ma35d1/2020.07-r0/git/arch/arm/dts$ vim ma35d1.dtsi

gmac0: ethernet@40120000 {
//        mac-address = [ 00 11 22 33 44 55 ];
    };
    gmac1: ethernet@40130000 {
//        mac-address = [ 00 11 22 33 44 66 ];
    };
2. Rebuild U-Boot, Linux kernel and re-pack Image

Code: Select all

~/yocto/build$ bitbake u-boot-ma35d1 linux-ma35d1 –C compile && bitbake nvt-image-qt5 –c cleanall && bitbake nvt-image-qt5
3. Program the Image to MA35D1

Buildroot:

1. Disable default MAC address in U-Boot device tree

Code: Select all

~/MA35D1_Buildroot$ vim ma35d1.dtsi

gmac0: ethernet@40120000 {
//        mac-address = [ 00 11 22 33 44 55 ];
    };
    gmac1: ethernet@40130000 {
//        mac-address = [ 00 11 22 33 44 66 ];
    };
2. Rebuild U-Boot, Linux kernel and re-pack Image

Code: Select all

~/MA35D1_Buildroot$ make uboot-rebuild linux-rebuild && make
3. Program the Image to MA35D1

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest