This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM62A7: build the SDK faiulre

Part Number: AM62A7


Tool/software:

compile the SDK ti-processor-sdk-linux-edgeai-am62a-evm-10_00_00_08 through build command:

make all - The SDK can success build the package

But using build command with (make linux_install)  will lead to failure.

the error message show that the path "/home/kemeng/ti-processor-sdk-linux-edgeai-am62a-evm-10_00_00_08/targetNFS/boot" is not allow to access."

change the authorize through command chmod . The failure will not disappear.

  • Hi Meng,

    But using build command with (make linux_install)  will lead to failure.

    Where are the kernel installed to?

    the error message show that the path "/home/kemeng/ti-processor-sdk-linux-edgeai-am62a-evm-10_00_00_08/targetNFS/boot" is not allow to access."

    How is this targetNFS generated?

  • by using command" sudo setup.sh"

  • But using build command with (make linux_install)  will lead to failure.

    Where are the kernel installed to?

  • ./board-support/ti-linux-kernel-6.6.32+git-ti/rust/kernel
    ./board-support/ti-linux-kernel-6.6.32+git-ti/kernel
    ./board-support/ti-linux-kernel-6.6.32+git-ti/tools/power/cpupower/debug/kernel
    ./board-support/ti-linux-kernel-6.6.32+git-ti/arch/sparc/kernel
    ./board-support/ti-linux-kernel-6.6.32+git-ti/arch/alpha/kernel
    ./board-support/ti-linux-kernel-6.6.32+git-ti/arch/hexagon/kernel
    ./board-support/ti-linux-kernel-6.6.32+git-ti/arch/microblaze/kernel
    ./board-support/ti-linux-kernel-6.6.32+git-ti/arch/um/kernel
    ./board-support/ti-linux-kernel-6.6.32+git-ti/arch/loongarch/kernel
    ./board-support/ti-linux-kernel-6.6.32+git-ti/arch/csky/kernel
    ./board-support/ti-linux-kernel-6.6.32+git-ti/arch/arc/kernel
    ./board-support/ti-linux-kernel-6.6.32+git-ti/arch/ia64/uv/kernel
    ./board-support/ti-linux-kernel-6.6.32+git-ti/arch/ia64/kernel
    ./board-support/ti-linux-kernel-6.6.32+git-ti/arch/nios2/kernel
    ./board-support/ti-linux-kernel-6.6.32+git-ti/arch/riscv/kernel
    ./board-support/ti-linux-kernel-6.6.32+git-ti/arch/xtensa/kernel
    ./board-support/ti-linux-kernel-6.6.32+git-ti/arch/arm/kernel
    ./board-support/ti-linux-kernel-6.6.32+git-ti/arch/sh/kernel
    ./board-support/ti-linux-kernel-6.6.32+git-ti/arch/m68k/kernel
    ./board-support/ti-linux-kernel-6.6.32+git-ti/arch/x86/kernel
    ./board-support/ti-linux-kernel-6.6.32+git-ti/arch/powerpc/kernel
    ./board-support/ti-linux-kernel-6.6.32+git-ti/arch/arm64/kernel
    ./board-support/ti-linux-kernel-6.6.32+git-ti/arch/parisc/kernel
    ./board-support/ti-linux-kernel-6.6.32+git-ti/arch/s390/kernel
    ./board-support/ti-linux-kernel-6.6.32+git-ti/arch/openrisc/kernel

  • --------------------------------------------------------------------------------
    This step will set up the u-boot variables for booting the EVM.
    --------------------------------------------------------------------------------
    Autodetected the following ip address of your host, correct it if necessary
    [ 10.162.102.96 ]

    Select Linux kernel location:
    1: TFTP
    2: SD card

    [ 1 ]

    Select root file system location:
    1: NFS
    2: SD card

    [ 1 ]

    Available kernel images in /tftpboot:

  • i using the default path during running the script of setup.sh.  is this process is uncorrect. please let me know

  • Are you working on an AM62A7 EVM or your custom board? What interface does the board boot from? That will determine where to install the kernel to, this is for my previous question.

  • yes. i am working on an AM62A7 EVM board. not my custom board. I need to set the Product start up from EMMC. So I choose the TFTP and NFS using as my Kernel image and Target file system.  

    by the way . I download a image "tisdk-edgeai-image-am62a-evm.wic.xz" form TI official website "PROCESSOR-SDK-LINUX-AM62A Software development kit (SDK) | TI.com" . and right now using SD card with this image to startup the system. 

    Right now i need to update the boot and other bin file to this board though the eth0 or Serial. To verify the SDK env. and adjust the code to the CMOS and Serdes to check the system status.  and I did not seem there have a build script can build all file and assemble all bin together. This is different from my pervious project. 

  • Hi Meng,

    Thanks for the details. But it seems you mentioned 3 different things.

    by the way . I download a image "tisdk-edgeai-image-am62a-evm.wic.xz" form TI official website "PROCESSOR-SDK-LINUX-AM62A Software development kit (SDK) | TI.com" . and right now using SD card with this image to startup the system. 

    If you have any issue in using SD card boot on the EVM, please create a new E2E thread and provide the details of the queries.

    yes. i am working on an AM62A7 EVM board. not my custom board. I need to set the Product start up from EMMC. So I choose the TFTP and NFS using as my Kernel image and Target file system.  

    I am not sure if you still need help on TFTP/NFS boot since you use SD card boot now. If so, please clarify and we will continue communicate for this matter on this thread.

    Right now i need to update the boot and other bin file to this board though the eth0 or Serial. To verify the SDK env. and adjust the code to the CMOS and Serdes to check the system status.  and I did not seem there have a build script can build all file and assemble all bin together. This is different from my pervious project. 

    It sounds like you are trying to compile a Linux user space program? If so and need help, please create a new E2E thread and provide the details of the queries.

  • Hello Liu. i using the sd card card boot now. i need to flash the software target file insideof the image file from  Ti webside. So please help to deal with this problem first. thx. 
    and for your option. I need to change the kernal to SD card. I will run the setup.sh script again to adjust the config.

    bu the way for emmc setup. i will reopen a ticket to ask question. thx

  • i need to flash the software target file insideof the image file from  Ti webside.

    You don't need to do this, if you only want to transfer the software binaries to the Linux running on the EVM. You can connect the EVM ethernet port to the network with the PC, setup IP address, then using command such as scp to transfer the files to the Linux running on the EVM.

  • unfortunaty. the eho seems not work in my system.  
    when derictly connect the EVM board and PC. 

    Using serial minicom can have access the SOC. and check the ipconfig. It do not have ip like "192.168.x.x" appear. 
    after a have addr add 196.168.x.x  dev eto
    I can see the ip addr. but i can not ping with this ip by using my PC.putty is not working either

  • When connect the EVM with the PC via Ethernet, you either have to have the DHCP server running on the PC to provide an IP address to the EVM, or manually set the IP address on the EVM to be on the same subnet with the IP address on the PC.

    For details, please check the instruction linked below.

    https://dev.ti.com/tirex/explore/node?node=A__AQMhBPbjrDEDOjp2HGcaaQ__AM62A-ACADEMY__WeZ9SsL__LATEST

  • For transfer files to the Linux on the EVM through Ethernet, please see the example linked below.

    https://dev.ti.com/tirex/explore/node?node=A__AYfms9.5mHI3xFT3MVWaoQ__AM62A-ACADEMY__WeZ9SsL__LATEST

  • I try to set the eth0 follow below action. but It do not woking. can you help to check what the problem. thx very much

    root@am62axx-evm:/opt/edgeai-gst-apps# ip link set dev eth0 down                                                                                   
    [  158.572257] am65-cpsw-nuss 8000000.ethernet eth0: Link is Down
    root@am62axx-evm:/opt/edgeai-gst-apps# ip addr add 192.168.101.2/24 dev eth0
    root@am62axx-evm:/opt/edgeai-gst-apps# ip link set dev eth0 up  
    [  196.644814] am65-cpsw-nuss 8000000.ethernet eth0: PHY [8000f00.mdio:00] driver [TI DP83867] (irq=POLL)
    [  196.654155] am65-cpsw-nuss 8000000.ethernet eth0: configuring for phy/rgmii-rxid link mode
    root@am62axx-evm:/opt/edgeai-gst-apps# [  200.762327] am65-cpsw-nuss 8000000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx

    root@am62axx-evm:/opt/edgeai-gst-apps# ifconfig
    eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
            inet 192.168.101.2  netmask 255.255.255.0  broadcast 0.0.0.0
            inet6 fe80::1e63:49ff:fe1e:8275  prefixlen 64  scopeid 0x20<link>
            ether 1c:63:49:1e:82:75  txqueuelen 1000  (Ethernet)
            RX packets 51  bytes 13763 (13.4 KiB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 68  bytes 12433 (12.1 KiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

    lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
            inet 127.0.0.1  netmask 255.0.0.0
            inet6 ::1  prefixlen 128  scopeid 0x10<host>
            loop  txqueuelen 1000  (Local Loopback)
            RX packets 18  bytes 2192 (2.1 KiB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 18  bytes 2192 (2.1 KiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

  • in Linux the PC can not link with SOC. ping 192.168.101.2 show do not have message tranfer

  • What is the IP address on your PC?

  • here is the log i using ifconfig in my linux PC. the PC using the wirefire link to the public network

    enp0s31f6: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
            ether 9c:2d:cd:10:a8:36  txqueuelen 1000  (以太网)
            RX packets 25  bytes 7026 (7.0 KB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 84  bytes 14058 (14.0 KB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
            device interrupt 16  memory 0xb0180000-b01a0000  

    lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
            inet 127.0.0.1  netmask 255.0.0.0
            inet6 ::1  prefixlen 128  scopeid 0x10<host>
            loop  txqueuelen 1000  (本地环回)
            RX packets 231  bytes 30622 (30.6 KB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 231  bytes 30622 (30.6 KB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

    wlp0s20f3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
            inet 10.162.105.67  netmask 255.255.255.0  broadcast 10.162.105.255
            inet6 fe80::8452:561e:2cc8:f352  prefixlen 64  scopeid 0x20<link>
            ether 38:7a:0e:c1:4e:95  txqueuelen 1000  (以太网)
            RX packets 96745  bytes 126232833 (126.2 MB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 46456  bytes 4029406 (4.0 MB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

  • The log show that the physic link for SOC and PC is correct. I choose both window PC andLINUX PC. They all can not ping with the am62a board.

    Did the soc need to config the access for eth0 visit? Or is the switch in the board setting is incorrect?

    Or maybe the Image i flash into the SD card do not support eth0 setting?
     

  • You configured the EVM IP address to be 192.168.101.2/24, but the PC IP address doesn't have one on the 192.168.101.0/24 network. Of cause the ping will fail.

  • Is the problem come from the PC. I have switch different PC to visit the board.

    PC network can visit international . Can not visti SOC board.  how should i do to solve the problem? thanks very much

  • For nodes on a network to communicate to each other, their IP addresses should be all on the same subnet.

    Depending on how you connected the EVM with the PC (with or without a network switch in the middle), you need to ensure both IP addresses are on the same subnet.