Ethernet samples/demo
Hi all,
Wondering if SAME70 XPLD board has been tested with Ethernet Networking Samples in the repository. So far, all the examples that I have tried did not work for me. Wondering if I am missing something here. regards, RDS
|
|
Jukka Rissanen
Hi,
toggle quoted messageShow quoted text
I have been using sam-e70 with some of the samples, mainly gptp and echo-server. There have been regressions in past with the networking samples as currently we have no automatic testing of these samples. The situation will improve with this PR https://github.com/zephyrproject-rtos/zephyr/pull/19677 after it is merged. If you find some sample that does not work with sam-e70, please file an issue (one / sample please) for those. All the generic samples that can be run on Etherhet should work with sam-e70 board. Cheers, Jukka
On Mon, 2019-10-21 at 19:37 -0700, rdsingh@iotwizards.com wrote:
Hi all,
|
|
Jukka, RDS
|
|
Tried to run gptp with the following results -
rajas-imac:zephyr rdsingh$ west build -b sam_e70_xplained samples/net/gptp --pristinefdfadfadfad Zephyr version: 2.0.99 -- Found PythonInterp: /Users/rdsingh/.pyenv/versions/3.7.0/bin/python (found suitable version "3.7.0", minimum required is "3.4") -- Selected BOARD sam_e70_xplained -- Found west: /Users/rdsingh/.pyenv/versions/3.7.0/bin/west (found suitable version "0.6.3", minimum required is "0.6.0") -- Loading /Users/rdsingh/zephyrDev/zephyrproject/zephyr/boards/arm/sam_e70_xplained/sam_e70_xplained.dts as base -- Overlaying /Users/rdsingh/zephyrDev/zephyrproject/zephyr/dts/common/common.dts Devicetree configuration written to /Users/rdsingh/zephyrDev/zephyrproject/zephyr/build/zephyr/include/generated/generated_dts_board.conf
warning: ETH_SAM_GMAC_MAC0 (defined at drivers/ethernet/Kconfig.sam_gmac:97) was assigned the value '0xFC' but got the value ''. You can check symbol information (including dependencies) in the 'menuconfig' interface (see the Application Development Primer section of the manual), or in the Kconfig reference at http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_ETH_SAM_GMAC_MAC0.html (which is updated regularly from the master branch). See the 'Setting configuration values' section of the Board Porting Guide as well.
warning: ETH_SAM_GMAC_MAC1 (defined at drivers/ethernet/Kconfig.sam_gmac:102) was assigned the value '0xC2' but got the value ''. You can check symbol information (including dependencies) in the 'menuconfig' interface (see the Application Development Primer section of the manual), or in the Kconfig reference at http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_ETH_SAM_GMAC_MAC1.html (which is updated regularly from the master branch). See the 'Setting configuration values'Parsing Kconfig tree in /Users/rdsingh/zephyrDev/zephyrproject/zephyr/samples/net/gptp/Kconfig Loaded configuration '/Users/rdsingh/zephyrDev/zephyrproject/zephyr/boards/arm/sam_e70_xplained/sam_e70_xplained_defconfig' Merged configuration '/Users/rdsingh/zephyrDev/zephyrproject/zephyr/samples/net/gptp/prj.conf' Merged configuration '/Users/rdsingh/zephyrDev/zephyrproject/zephyr/samples/net/gptp/boards/sam_e70_xplained.conf' Configuration saved to '/Users/rdsingh/zephyrDev/zephyrproject/zephyr/build/zephyr/.config' section of the Board Porting Guide as well.
warning: ETH_SAM_GMAC_MAC2 (defined at drivers/ethernet/Kconfig.sam_gmac:107) was assigned the value '0x3D' but got the value ''. You can check symbol information (including dependencies) in the 'menuconfig' interface (see the Application Development Primer section of the manual), or in the Kconfig reference at http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_ETH_SAM_GMAC_MAC2.html (which is updated regularly from the master branch). See the 'Setting configuration values' section of the Board Porting Guide as well.
warning: ETH_SAM_GMAC_MAC3 (defined at drivers/ethernet/Kconfig.sam_gmac:112) was assigned the value '0xBC' but got the value ''. You can check symbol information (including dependencies) in the 'menuconfig' interface (see the Application Development Primer section of the manual), or in the Kconfig reference at http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_ETH_SAM_GMAC_MAC3.html (which is updated regularly from the master branch). See the 'Setting configuration values' section of the Board Porting Guide as well.
warning: ETH_SAM_GMAC_MAC4 (defined at drivers/ethernet/Kconfig.sam_gmac:117) was assigned the value '0x8C' but got the value ''. You can check symbol information (including dependencies) in the 'menuconfig' interface (see the Application Development Primer section of the manual), or in the Kconfig reference at http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_ETH_SAM_GMAC_MAC4.html (which is updated regularly from the master branch). See the 'Setting configuration values' section of the Board Porting Guide as well.
warning: ETH_SAM_GMAC_MAC5 (defined at drivers/ethernet/Kconfig.sam_gmac:122) was assigned the value '0xAE' but got the value ''. You can check symbol information (including dependencies) in the 'menuconfig' interface (see the Application Development Primer section of the manual), or in the Kconfig reference at http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_ETH_SAM_GMAC_MAC5.html (which is updated regularly from the master branch). See the 'Setting configuration values' section of the Board Porting Guide as well.
warning: TEST_RANDOM_GENERATOR (defined at subsys/random/Kconfig:8) was assigned the value 'y' but got the value 'n'. You can check symbol information (including dependencies) in the 'menuconfig' interface (see the Application Development Primer section of the manual), or in the Kconfig reference at http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_TEST_RANDOM_GENERATOR.html (which is updated regularly from the master branch). See the 'Setting configuration values' section of the Board Porting Guide as well. -- The C compiler identification is GNU 6.3.1 -- The CXX compiler identification is GNU 6.3.1 -- The ASM compiler identification is GNU -- Found assembler: /Users/rdsingh/arm-none-eabi/bin/arm-none-eabi-gcc -- Cache files will be written to: /Users/rdsingh/Library/Caches/zephyr -- Configuring done -- Generating done -- Build files have been written to: /Users/rdsingh/zephyrDev/zephyrproject/zephyr/build -- west build: building application [1/177] Preparing syscall dependency handling
[172/177] Linking C executable zephyr/zephyr_prebuilt.elf Memory region Used Size Region Size %age Used FLASH: 148200 B 2 MB 7.07% SRAM: 59352 B 384 KB 15.09% IDT_LIST: 72 B 2 KB 3.52% [177/177] Linking C executable zephyr/zephyr.elf rajas-imac:zephyr rdsingh$ west flashConnected a serial Terminal to the board - uart:~$ [00:00:00.000,000]
uart:~$ [00:00:00.000,000] <inf> i2c_sam_twihs: Device I2C_0 initialized
uart:~$ uart:~$ [00:00:00.001,000] <inf> eth_sam: MAC: fc:c2:3d:0b:fe:34
uart:~$ [00:00:00.001,000] <inf> eth_sam: Queue 0 activated
uart:~$ [00:00:00.001,000] <inf> eth_sam: Queue 1 set to idle
uart:~$ [00:00:00.001,000] <inf> eth_sam: Queue 2 set to idle
uart:~$ [00:00:00.001,000] <inf> eth_sam_phy: Soft Reset of ETH PHY
uart:~$ [00:00:00.091,000] <inf> eth_sam_phy: PHYID: 0x221561 at addr: 0
uart:~$ uart:~$ ***** Booting Zephyr OS build zephyr-v2.0.0-1321-g8bc3b6f6732c *****
[00:00:03.107,000] <inf> eth_sam_phy: common abilities: speed 100 Mb, full duplex
uart:~$ [00:00:03.117,000] <inf> net_config: Initializing network
uart:~$ [00:00:03.117,000] <inf> net_config: IPv4 address: 192.0.2.1
uart:~$ [00:00:03.207,000] <inf> net_config: IPv6 address: fe80::fec2:3dff:fe0b:fe34
uart:~$ [00:00:03.217,000] <inf> net_config: IPv6 address: fe80::fec2:3dff:fe0b:fe34
uart:~$ uart:~$ [00:00:04.113,000] <wrn> net_gptp: Reset Pdelay requests
uart:~$ uart:~$ [00:00:05.119,000] <wrn> net_gptp: Reset Pdelay requests
uart:~$ uart:~$ [00:00:06.125,000] <wrn> net_gptp: Reset Pdelay requests
uart:~$ uart:~$ [00:00:07.131,000] <wrn> net_gptp: Reset Pdelay requests
uart:~$ uart:~$ [00:00:08.137,000] <wrn> net_gptp: Reset Pdelay requests
uart:~$ uart:~$ [00:00:09.143,000] <wrn> net_gptp: Reset Pdelay requests
uart:~$ uart:~$ [00:00:10.149,000] <wrn> net_gptp: Reset Pdelay requests
uart:~$ uart:~$ Then in a Linux machine got AVnu/ptp, compiled and ran - ~/gptp/build$ sudo ./gptp enp3s0 -F gptp_cfg.ini INFO : GPTP [17:55:35:130] gPTP starting INFO : GPTP [17:55:35:132] priority1 = 248 INFO : GPTP [17:55:35:132] announceReceiptTimeout: 3 INFO : GPTP [17:55:35:132] syncReceiptTimeout: 3 INFO : GPTP [17:55:35:132] LINKSPEED_100MB - PHY delay TX: 1044 | RX: 2133 INFO : GPTP [17:55:35:132] LINKSPEED_1G - PHY delay TX: 184 | RX: 382 INFO : GPTP [17:55:35:132] neighborPropDelayThresh: 10000 INFO : GPTP [17:55:35:132] syncReceiptThreshold: 8 INFO : GPTP [17:55:35:132] SyncFollowUp with negative correction field: forbidden ERROR : GPTP [17:55:35:132] Failed to configure timestamping: Operation not supported ERROR : GPTP [17:55:35:132] post_init failed ERROR : GPTP [17:55:35:132] failed to initialize port Any help is much appreciated. I am trying to get at least a dhcpV4_client running without any luck so far. I am not very experienced with Zephyr. But I am experienced in compiling Linux on embedded systems using buildroot. I am experienced on Networking and the concepts. I would like to know how the hardware configuration is done on KConfig in zephyr. Please point me to documentation on that. best regards, RDS
|
|