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.

PROCESSOR-SDK-J721E: PROCESSOR-SDK-J721E

Part Number: PROCESSOR-SDK-J721E


How to assign the valid ip address to the board in the U-boot?

I have connected the board to the linux laptop which doesn't the dhcp server running in it. I want to assign the static ip address to the board ie 192.168.1.3.

Assign below the ip=192.168.1.3 and removed the dhcp from the below line but the IP is not set in the u-boot.

/home/uic68347/ti-processor-sdk-linux-j7-evm-08_00_00_08/bin/setupBoard.minicom

expect {
"=>"
}
send "setenv init_net 'run args_all args_net; setenv autoload no; dhcp'"

send "setenv args_net 'setenv bootargs console=${console} ${optargs} rootfstype=nfs root=/dev/nfs rw nfsroot=${serverip}:${nfs_root},${nfs_options} ip=dhcp'"

expect {
"=>"
}

expect {
"=>"
}
send "setenv setup_net 'setenv autoload no; dhcp'"

expect {
"=>"
}

Regards,

Viswa

  • Hi,

    Which port do you want to assign IP to ? Is it the MCU CPSW port ?

    Regards

    Vineet

  • Can you use the mii command to show the link status as well ? Please also confirm that you are using the EVM

    Regards

    Vineet

  • Yes I have connected the ethernet cable to the  Rj45 G-Bit ethernet x, MCU RGMII.

    My Linux laptop ip is 192.168.1.2

    =>
    MII devices: 'ethernet@46000000'
    Current device: 'ethernet@46000000'

  • Additional Information:

    =>
    => mii dump 0 0
    0. (1140) -- PHY control register --
    (8000:0000) 0.15 = 0 reset
    (4000:0000) 0.14 = 0 loopback
    (2040:0040) 0. 6,13 = b10 speed selection = 1000 Mbps
    (1000:1000) 0.12 = 1 A/N enable
    (0800:0000) 0.11 = 0 power-down
    (0400:0000) 0.10 = 0 isolate
    (0200:0000) 0. 9 = 0 restart A/N
    (0100:0100) 0. 8 = 1 duplex = full
    (0080:0000) 0. 7 = 0 collision test enable
    (003f:0000) 0. 5- 0 = 0 (reserved)


    => mii dump 0 1
    1. (796d) -- PHY status register --
    (8000:0000) 1.15 = 0 100BASE-T4 able
    (4000:4000) 1.14 = 1 100BASE-X full duplex able
    (2000:2000) 1.13 = 1 100BASE-X half duplex able
    (1000:1000) 1.12 = 1 10 Mbps full duplex able
    (0800:0800) 1.11 = 1 10 Mbps half duplex able
    (0400:0000) 1.10 = 0 100BASE-T2 full duplex able
    (0200:0000) 1. 9 = 0 100BASE-T2 half duplex able
    (0100:0100) 1. 8 = 1 extended status
    (0080:0000) 1. 7 = 0 (reserved)
    (0040:0040) 1. 6 = 1 MF preamble suppression
    (0020:0020) 1. 5 = 1 A/N complete
    (0010:0000) 1. 4 = 0 remote fault
    (0008:0008) 1. 3 = 1 A/N able
    (0004:0004) 1. 2 = 1 link status
    (0002:0000) 1. 1 = 0 jabber detect
    (0001:0001) 1. 0 = 1 extended capabilities

  • Hi ,
    I have set the ip address in the u-boot command prompt, i was able to load the rootfs. let me where to make the changes in the script.sh so that it can boot directly.

    U-Boot # setenv ipaddr 192.168.1.2 U-Boot # setenv serverip 192.168.1.1 U-Boot # setenv gatewayip 192.168.1.1 U-Boot # setenv netmask 255.255.255.0

    U-Boot # boot

    Able to load the rootfs.

    but when i make the changes in the 
    nfsroot=${serverip}:${nfs_root},${nfs_options} ip=dhcp'"
    send "setenv setup_net 'setenv autoload no; dhcp'"

    Not working.

    Let me know if you have any update for me on the changes needed for the script.sh?

    Regards,

    Viswa

  • Hi Vineet Roy,


    Is there any update on how to set the ip address of the server and the target board in the minicom.sh script ? if the linux laptop doesnot have the dhcp server service?

    Regards,

    Viswa

  • Hi Viswanathan,

    Sorry for the late reply.

    U-Boot # setenv ipaddr 192.168.1.2 U-Boot # setenv serverip 192.168.1.1 U-Boot # setenv gatewayip 192.168.1.1 U-Boot # setenv netmask 255.255.255.0

    Have you saved these changes using a saveenv command?

    Please try that once.

    Also the "bin/setupBoard.minicom" script is having formattion issue while seen in the post. Please add an '.txt' extension to the file and upload the file as attachment.

    Regards,

    Tanmay