News:

Attention: For security reasons,please choose a user name *different* from your login name.
Also make sure to choose a secure password and change it regularly.

Main Menu

TE820 +TE0706 carrier Ethernet in u-boot

Started by pema, December 05, 2023, 12:27:30 PM

Previous topic - Next topic

pema

Hi there,
I would like to enable ethernet in u-boot for the TE0820 (connected to gem3).
I added to the .../project-spec/meta-user/recipes-bsp/device-tree/files/system-user.dtsi


/*------------------ ETH PHY --------------------*/
&gem3 {
    /delete-property/ local-mac-address;
    phy-handle = <&phy0>;
    nvmem-cells = <&eth0_addr>;
    nvmem-cell-names = "mac-address";
    phy0: phy0@1 {
        device_type = "ethernet-phy";
        reg = <1>;
    };
};


Also tried :

&gem3 {
    /delete-property/ local-mac-address;
    phy-handle = <&phy0>;
    nvmem-cells = <&eth0_addr>;
    nvmem-cell-names = "mac-address"
    phy0: phy0@1 {
        device_type = "ethernet-phy";
        reg = <1>;
    };
};


As provided in the BSP for the TE0820. But this gives me an error during compilation.
is there any thing else that needs to be added to the kernel config or u-boot config?

The error output are little enigmatic for me:

| during RTL pass: cse2
| /home/ubuntu/dev_petalinux/xr23_rtfg/build/tmp/work-shared/zynqmp-generic-xczu3cg/kernel-source/fs/btrfs/extent_io.c: In function 'btree_write_cache_pages':
| /home/ubuntu/dev_petalinux/xr23_rtfg/build/tmp/work-shared/zynqmp-generic-xczu3cg/kernel-source/fs/btrfs/extent_io.c:3074:1: internal compiler error: in validate_canon_reg, at cse.cc:2804
|  3074 | }
|       | ^
| 0x183eec9 internal_error(char const*, ...)
| ???:0
| 0x6a8cf6 fancy_abort(char const*, int, char const*)
| ???:0
| Please submit a full bug report, with preprocessed source (by using -freport-bug).
| Please include the complete backtrace with any bug report.
| See <https://gcc.gnu.org/bugs/> for instructions.
| make[3]: *** [/home/ubuntu/dev_petalinux/xr23_rtfg/build/tmp/work-shared/zynqmp-generic-xczu3cg/kernel-source/scripts/Makefile.build:250: fs/btrfs/extent_io.o] Error 1
| make[3]: *** Waiting for unfinished jobs....
|   CC      fs/proc_namespace.o
|   CC      fs/eventpoll.o
|   CC      fs/anon_inodes.o
|   CC      fs/signalfd.o
|   CC      fs/timerfd.o
|   CC      fs/eventfd.o
|   CC      fs/aio.o
|   CC      fs/locks.o
|   CC      fs/binfmt_script.o
|   CC      fs/binfmt_elf.o
|   CC      fs/compat_binfmt_elf.o
| make[2]: *** [/home/ubuntu/dev_petalinux/xr23_rtfg/build/tmp/work-shared/zynqmp-generic-xczu3cg/kernel-source/scripts/Makefile.build:500: fs/btrfs] Error 2
| make[2]: *** Waiting for unfinished jobs....
| make[1]: *** [/home/ubuntu/dev_petalinux/xr23_rtfg/build/tmp/work-shared/zynqmp-generic-xczu3cg/kernel-source/scripts/Makefile.build:500: fs] Error 2
| make: *** [/home/ubuntu/dev_petalinux/xr23_rtfg/build/tmp/work-shared/zynqmp-generic-xczu3cg/kernel-source/Makefile:1992: .] Error 2
| ERROR: oe_runmake failed
| WARNING: /home/ubuntu/dev_petalinux/xr23_rtfg/build/tmp/work/zynqmp_generic_xczu3cg-xilinx-linux/linux-xlnx/6.1.5-xilinx-v2023.1+gitAUTOINC+716921b6d7-r0/temp/run.do_compile.792878:307 exit 1 from 'exit 1'
| WARNING: Backtrace (BB generated script):
| #1: bbfatal_log, /home/ubuntu/dev_petalinux/xr23_rtfg/build/tmp/work/zynqmp_generic_xczu3cg-xilinx-linux/linux-xlnx/6.1.5-xilinx-v2023.1+gitAUTOINC+716921b6d7-r0/temp/run.do_compile.792878, line 307
| #2: die, /home/ubuntu/dev_petalinux/xr23_rtfg/build/tmp/work/zynqmp_generic_xczu3cg-xilinx-linux/linux-xlnx/6.1.5-xilinx-v2023.1+gitAUTOINC+716921b6d7-r0/temp/run.do_compile.792878, line 291
| #3: oe_runmake, /home/ubuntu/dev_petalinux/xr23_rtfg/build/tmp/work/zynqmp_generic_xczu3cg-xilinx-linux/linux-xlnx/6.1.5-xilinx-v2023.1+gitAUTOINC+716921b6d7-r0/temp/run.do_compile.792878, line 219
| #4: kernel_do_compile, /home/ubuntu/dev_petalinux/xr23_rtfg/build/tmp/work/zynqmp_generic_xczu3cg-xilinx-linux/linux-xlnx/6.1.5-xilinx-v2023.1+gitAUTOINC+716921b6d7-r0/temp/run.do_compile.792878, line 203
| #5: do_compile, /home/ubuntu/dev_petalinux/xr23_rtfg/build/tmp/work/zynqmp_generic_xczu3cg-xilinx-linux/linux-xlnx/6.1.5-xilinx-v2023.1+gitAUTOINC+716921b6d7-r0/temp/run.do_compile.792878, line 149
| #6: main, /home/ubuntu/dev_petalinux/xr23_rtfg/build/tmp/work/zynqmp_generic_xczu3cg-xilinx-linux/linux-xlnx/6.1.5-xilinx-v2023.1+gitAUTOINC+716921b6d7-r0/temp/run.do_compile.792878, line 311
ERROR: Task (/home/ubuntu/dev_petalinux/xr23_rtfg/components/yocto/layers/meta-xilinx/meta-xilinx-core/recipes-kernel/linux/linux-xlnx_2023.1.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 4158 tasks of which 3816 didn't need to be rerun and 2 failed.


any help would be appreciated. Kinda stuck and I just need this to speed up my development tryouts.
Many Thanks


pema

So I made a dumb mistake with an inline comment in the device tree .
I can compile the device tree but I still get no ethernet detected in ubuntu


Trying to load boot images from dhcp
!!!!!!!!!!!!!!!!!!!!!!!!!!
! Booting from TFTP !
!!!!!!!!!!!!!!!!!!!!!!!!!!
No ethernet found.


pema