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.

AM5729: U-Boot static IP address

Part Number: AM5729
Other Parts Discussed in Thread: DRA752, AM5728

Hello,

I am trying to boot my TI AM5729 IDK board using a static IP address. While I could set up DHCP on my computer, it would be easier if I could simply get it to work using a static IP address. I've read the following pages:

https://e2e.ti.com/support/legacy_forums/embedded/linux/f/linux-forum-read-only/405083/ethernet-gadget---sending-dhcp-and-rarp-requests

https://stackoverflow.com/questions/46918065/booting-linux-with-root-filesystem-via-nfs-loops-on-sending-dhcp-and-rarp-requ

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/640139/linux-tmdsevm572x-nfs-mount-issue/2371595#2371595

Similar to what these users are reporting, I am seeing the following error while attempting to boot:

[    3.543652] Micrel KSZ9031 Gigabit PHY 48485000.mdio:00: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=48485000.mdio:00, irq=POLL)
[    3.562737] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    3.569366] net eth1: initializing cpsw version 1.15 (0)
[    3.693447] Micrel KSZ9031 Gigabit PHY 48485000.mdio:01: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=48485000.mdio:01, irq=POLL)
[    3.709414] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[    4.402850] [drm] Cannot find any crtc or sizes
[    7.770431] cpsw 48484000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[    7.792848] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    7.822826] Sending DHCP and RARP requests ...... timed out!

This pattern repeats forever.

See below for several key variables:

=> printenv bootcmd
bootcmd=tftp ${loadaddr} zImage-am57xx-evm.bin; tftp ${fdtaddr} ${fdtfile}; bootz ${loadaddr} - ${fdtaddr}
=> printenv bootargs
bootargs=root=/dev/nfs rw ip=192.168.1.126:192.168.1.1::255.255.255.0:::eth0:off console=ttyS2,115200n8 nfsroot=192.168.1.1:/home/ksmith/ti-processor-sdk-linux-am57xx-evm-06.03.00.106/targetNFS
,nolock,nfsvers=3 nfsrootdebug
=> printenv loadaddr
loadaddr=0x82000000
=> printenv fdtaddr
fdtaddr=0x88000000
=> printenv fdtfile
fdtfile=am572x-idk.dtb
=> printenv ipaddr
ipaddr=192.168.1.126
=> printenv serverip
serverip=192.168.1.1
=> printenv netmask
netmask=255.255.255.0

Note the following:

=> ping ${serverip}
link up on port 0, speed 1000, full duplex
Using ethernet@48484000 device
host 192.168.1.1 is alive

Here is the results of a printenv command:

=> printenv
arch=arm
args_mmc=run finduuid;setenv bootargs console=${console} ${optargs} root=PARTUUID=${uuid} rw rootfstype=${mmcrootfstype}
baudrate=115200
board=am57xx
board_name=am572x_idk
board_rev=1.3C
board_serial=07204P470053
boot_fdt=try
boot_fit=0
bootargs=root=/dev/nfs rw ip=192.168.1.126:192.168.1.1::255.255.255.0:::eth0:off console=ttyS2,115200n8 nfsroot=192.168.1.1:/home/ksmith/ti-processor-sdk-linux-am57xx-evm-06.03.00.106/targetNFS
,nolock,nfsvers=3 nfsrootdebug
bootcmd=tftp ${loadaddr} zImage-am57xx-evm.bin; tftp ${fdtaddr} ${fdtfile}; bootz ${loadaddr} - ${fdtaddr}
bootdelay=2
bootdir=/boot
bootenvfile=uEnv.txt
bootfile=zImage-am57xx-evm.bin
bootm_size=0x10000000
bootpart=0:2
bootscript=echo Running bootscript from mmc${mmcdev} ...; source ${loadaddr}
check_psdk_setup=load mmc 0:1 ${loadaddr} ${psdk_setup_file}
console=ttyS2,115200n8
cpu=armv7
dfu_alt_info_emmc=rawemmc raw 0 3751936;boot part 1 1;rootfs part 1 2;MLO fat 1 1;MLO.raw raw 0x100 0x200;u-boot.img.raw raw 0x300 0x1000;u-env.raw raw 0x1300 0x200;spl-os-args.raw raw 0x1500 0
x200;spl-os-image.raw raw 0x1700 0x6900;spl-os-args fat 1 1;spl-os-image fat 1 1;u-boot.img fat 1 1;uEnv.txt fat 1 1
dfu_alt_info_mmc=boot part 0 1;rootfs part 0 2;MLO fat 0 1;MLO.raw raw 0x100 0x200;u-boot.img.raw raw 0x300 0x1000;u-env.raw raw 0x1300 0x200;spl-os-args.raw raw 0x1500 0x200;spl-os-image.raw r
aw 0x1700 0x6900;spl-os-args fat 0 1;spl-os-image fat 0 1;u-boot.img fat 0 1;uEnv.txt fat 0 1
dfu_alt_info_qspi=MLO raw 0x0 0x040000;u-boot.img raw 0x040000 0x0100000;u-boot-spl-os raw 0x140000 0x080000;u-boot-env raw 0x1C0000 0x010000;u-boot-env.backup raw 0x1D0000 0x010000;kernel raw
0x1E0000 0x800000
dfu_alt_info_ram=kernel ram 0x80200000 0x4000000;fdt ram 0x80f80000 0x80000;ramdisk ram 0x81000000 0x4000000
dfu_bufsiz=0x10000
do_psdk_setup=env default -f -a; saveenv
dofastboot=0
emmc_android_boot=echo Trying to boot Android from eMMC ...; run update_to_fit; setenv eval_bootargs setenv bootargs $bootargs; run eval_bootargs; setenv mmcdev 1; setenv machid fe6; mmc dev $m
mcdev; mmc rescan; part start mmc ${mmcdev} boot boot_start; part size mmc ${mmcdev} boot boot_size; mmc read ${loadaddr} ${boot_start} ${boot_size}; bootm ${loadaddr}#${fdtfile};
emmc_linux_boot=echo Trying to boot Linux from eMMC ...; setenv mmcdev 1; setenv bootpart 1:2; setenv mmcroot /dev/mmcblk0p2 rw; run mmcboot;
envboot=mmc dev ${mmcdev}; if mmc rescan; then echo SD/MMC found on device ${mmcdev};if run loadbootscript; then run bootscript;else if run loadbootenv; then echo Loaded env from ${bootenvfile}
;run importbootenv;fi;if test -n $uenvcmd; then echo Running uenvcmd ...;run uenvcmd;fi;fi;fi;
eth2addr=70:ff:76:1c:32:a3
eth3addr=70:ff:76:1c:32:a4
eth4addr=70:ff:76:1c:32:a5
eth5addr=70:ff:76:1c:32:a6
eth6addr=70:ff:76:1c:32:a7
eth7addr=70:ff:76:1c:32:a8
ethact=ethernet@48484000
ethaddr=e4:15:f6:0d:a2:6e
fastboot.board_rev=1.3C
fastboot.cpu=DRA752
fastboot.secure=GP
fdt_addr_r=0x88000000
fdtaddr=0x88000000
fdtcontroladdr=fdf22128
fdtfile=am572x-idk.dtb
fileaddr=82000000
filesize=5d2
findfdt=if test $board_name = omap5_uevm; then setenv fdtfile omap5-uevm.dtb; fi; if test $board_name = dra7xx; then setenv fdtfile dra7-evm.dtb; fi;if test $board_name = dra72x-revc; then sete
nv fdtfile dra72-evm-revc.dtb; fi;if test $board_name = dra72x; then setenv fdtfile dra72-evm.dtb; fi;if test $board_name = dra71x && test $boot_nand = 1; then setenv fdtfile dra71-evm-nand.dtb
; fi;if test $board_name = dra71x && test $boot_nand = 0; then setenv fdtfile dra71-evm.dtb; fi;if test $board_name = dra76x_acd; then setenv fdtfile dra76-evm.dtb; fi;if test $board_name = bea
gle_x15; then setenv fdtfile am57xx-beagle-x15.dtb; fi;if test $board_name = beagle_x15_revb1; then setenv fdtfile am57xx-beagle-x15-revb1.dtb; fi;if test $board_name = beagle_x15_revc; then se
tenv fdtfile am57xx-beagle-x15-revc.dtb; fi;if test $board_name = am5729_beagleboneai; then setenv fdtfile am5729-beagleboneai.dtb; fi;if test $board_name = am572x_idk && test $idk_lcd = no; th
en setenv fdtfile am572x-idk.dtb; fi;if test $board_name = am572x_idk && test $idk_lcd = osd101t2045; then setenv fdtfile am572x-idk-lcd-osd101t2045.dtb; fi;if test $board_name = am572x_idk &&
test $idk_lcd = osd101t2587; then setenv fdtfile am572x-idk-lcd-osd101t2587.dtb; fi;if test $board_name = am574x_idk && test $idk_lcd = no; then setenv fdtfile am574x-idk.dtb; fi;if test $board
_name = am574x_idk && test $idk_lcd = osd101t2587; then setenv fdtfile am574x-idk-lcd-osd101t2587.dtb; fi;if test $board_name = am57xx_evm; then setenv fdtfile am57xx-evm.dtb; fi;if test $board
_name = am57xx_evm_reva3; then setenv fdtfile am57xx-evm-reva3.dtb; fi;if test $board_name = am571x_idk && test $idk_lcd = no; then setenv fdtfile am571x-idk.dtb; fi;if test $board_name = am571
x_idk && test $idk_lcd = osd101t2045; then setenv fdtfile am571x-idk-lcd-osd101t2045.dtb; fi;if test $board_name = am571x_idk && test $idk_lcd = osd101t2587; then setenv fdtfile am571x-idk-lcd-
osd101t2587.dtb; fi;if test $fdtfile = undefined; then echo WARNING: Could not determine device tree to use; fi;
finduuid=part uuid mmc ${bootpart} uuid
fit_bootfile=fitImage
fit_loadaddr=0x90000000
get_overlaystring=for overlay in $overlay_files;do;setenv overlaystring ${overlaystring}'#'${overlay};done;
getuenv=mmc dev ${mmcdev}; if mmc rescan; then if run loadbootenv; then run importbootenv; fi; fi;
hostname=am57xx-evm
idk_lcd=no
importbootenv=echo Importing environment from mmc${mmcdev} ...; env import -t ${loadaddr} ${filesize}
ip_method=none
ipaddr=192.168.1.126
kernel_addr_r=0x82000000
loadaddr=0x82000000
loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenvfile}
loadbootscript=load mmc ${mmcdev} ${loadaddr} boot.scr
loadfdt=load ${devtype} ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}
loadfit=run args_mmc; run run_fit;
loadimage=load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/${bootfile}
mmcboot=mmc dev ${mmcdev}; setenv devnum ${mmcdev}; setenv devtype mmc; if mmc rescan; then echo SD/MMC found on device ${mmcdev};if run loadimage; then if test ${boot_fit} -eq 1; then run load
fit; else run mmcloados;fi;fi;fi;
mmcdev=0
mmcloados=run args_mmc; if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if run loadfdt; then bootz ${loadaddr} - ${fdtaddr}; else if test ${boot_fdt} = try; then bootz; else echo WARN
: Cannot load the DT; fi; fi; else bootz; fi;
mmcrootfstype=ext4 rootwait
net_interface=eth0
netargs=setenv bootargs console=${console} ${optargs} root=/dev/nfs nfsroot=${serverip}:${rootpath},${nfsopts} rw ip=${ipaddr}:${serverip}::${netmask}:::none
netboot=echo Booting from network ...; setenv autoload no; run netloadimage; run netloadfdt; run netargs; bootz ${loadaddr} - ${fdtaddr}
netloadfdt=tftp ${fdtaddr} ${fdtfile}
netloadimage=tftp ${loadaddr} ${bootfile}
netmask=255.255.255.0
nfsopts=nolock
partitions=uuid_disk=${uuid_gpt_disk};name=bootloader,start=384K,size=1792K,uuid=${uuid_gpt_bootloader};name=rootfs,start=2688K,size=-,uuid=${uuid_gpt_rootfs}
partitions_android=uuid_disk=${uuid_gpt_disk};name=xloader,start=128K,size=256K,uuid=${uuid_gpt_xloader};name=bootloader,size=2048K,uuid=${uuid_gpt_bootloader};name=uboot-env,start=2432K,size=2
56K,uuid=${uuid_gpt_reserved};name=misc,size=128K,uuid=${uuid_gpt_misc};name=recovery,size=40M,uuid=${uuid_gpt_recovery};name=boot,size=10M,uuid=${uuid_gpt_boot};name=system,size=1024M,uuid=${u
uid_gpt_system};name=vendor,size=256M,uuid=${uuid_gpt_vendor};name=userdata,size=-,uuid=${uuid_gpt_userdata}
psdk_setup_file=.psdk_setup
pxefile_addr_r=0x80100000
ramdisk_addr_r=0x88080000
rdaddr=0x88080000
rootpath=/home/ksmith/ti-processor-sdk-linux-am57xx-evm-06.03.00.106/targetNFS
run_fit=bootm ${fit_loadaddr}#${fdtfile}${overlaystring}
scriptaddr=0x80000000
serial#=1801200538b20802
serverip=192.168.1.1
setconsole=if $board_name=am5729_beaglebonai;then setenv console ttyS0,115200; fi;fdtfile=undefined
soc=omap5
static_ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off
stderr=serial@48020000
stdin=serial@48020000
stdout=serial@48020000
uenvcmd=if run check_psdk_setup; then echo "Already setup."; else run do_psdk_setup; mw.b ${loadaddr} 0 1; fatwrite mmc 0:1 ${loadaddr} .psdk_setup 1; reset; fi
update_to_fit=setenv loadaddr ${fit_loadaddr}; setenv bootfile ${fit_bootfile}
usbtty=cdc_acm
vendor=ti
ver=U-Boot 2019.01-g333c3e72d3 (Apr 20 2020 - 04:15:00 +0000)
vram=16M

Environment size: 8371/131067 bytes

Here is the full boot text:

=> boot
link up on port 0, speed 1000, full duplex
Using ethernet@48484000 device
TFTP from server 192.168.1.1; our IP address is 192.168.1.126
Filename 'zImage-am57xx-evm.bin'.
Load address: 0x82000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ########################
         3.3 MiB/s
done
Bytes transferred = 4448768 (43e200 hex)
link up on port 0, speed 1000, full duplex
Using ethernet@48484000 device
TFTP from server 192.168.1.1; our IP address is 192.168.1.126
Filename 'am572x-idk.dtb'.
Load address: 0x88000000
Loading: ###################
         2.8 MiB/s
done
Bytes transferred = 93031 (16b67 hex)
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Loading Device Tree to 8ffe6000, end 8ffffb66 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.19.94-gbe5389fd85 (oe-user@oe-host) (gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36))) #1 SMP PREEMPT Sun Apr 19 02:36:
36 UTC 2020
[    0.000000] CPU: ARMv7 Processor [412fc0f2] revision 2 (ARMv7), cr=30c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt: Machine model: TI AM5728 IDK
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] Reserved memory: created CMA memory pool at 0x0000000095800000, size 56 MiB
[    0.000000] OF: reserved mem: initialized node ipu2-memory@95800000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created CMA memory pool at 0x0000000099000000, size 64 MiB
[    0.000000] OF: reserved mem: initialized node dsp1-memory@99000000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x000000009d000000, size 32 MiB
[    0.000000] OF: reserved mem: initialized node ipu1-memory@9d000000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created CMA memory pool at 0x000000009f000000, size 8 MiB
[    0.000000] OF: reserved mem: initialized node dsp2-memory@9f000000, compatible id shared-dma-pool
[    0.000000] cma: Reserved 24 MiB at 0x00000000fe400000
[    0.000000] OMAP4: Map 0x00000000ffd00000 to (ptrval) for dram barrier
[    0.000000] DRA752 ES2.0
[    0.000000] random: get_random_bytes called from start_kernel+0xb4/0x470 with crng_init=0
[    0.000000] percpu: Embedded 15 pages/cpu s32396 r8192 d20852 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 382848
[    0.000000] Kernel command line: root=/dev/nfs rw ip=192.168.1.126:192.168.1.1::255.255.255.0:::eth0:off console=ttyS2,115200n8 nfsroot=192.168.1.1:/home/ksmith/ti-processor-sdk-linux-am57xx
-evm-06.03.00.106/targetNFS,nolock,nfsvers=3 nfsrootdebug
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 1348632K/1536000K available (10240K kernel code, 335K rwdata, 2800K rodata, 2048K init, 268K bss, 31720K reserved, 155648K cma-reserved, 1020928K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0x(ptrval) - 0x(ptrval)   (12256 kB)
[    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   (2048 kB)
[    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 336 kB)
[    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 269 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000]  Tasks RCU enabled.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] OMAP clockevent source: timer1 at 32786 Hz
[    0.000000] arch_timer: cp15 timer(s) running at 6.14MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x16af5adb9, max_idle_ns: 440795202250 ns
[    0.000005] sched_clock: 56 bits at 6MHz, resolution 162ns, wraps every 4398046511023ns
[    0.000019] Switching to timer-based delay loop, resolution 162ns
[    0.000297] clocksource: 32k_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 58327039986419 ns
[    0.000306] OMAP clocksource: 32k_counter at 32768 Hz
[    0.000760] Console: colour dummy device 80x30
[    0.000806] Calibrating delay loop (skipped), value calculated using timer frequency.. 12.29 BogoMIPS (lpj=61475)
[    0.000821] pid_max: default: 32768 minimum: 301
[    0.000945] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000958] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001523] CPU: Testing write buffer coherency: ok
[    0.001560] CPU0: Spectre v2: using ICIALLU workaround
[    0.001783] /cpus/cpu@0 missing clock-frequency property
[    0.001803] /cpus/cpu@1 missing clock-frequency property
[    0.001816] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.059902] Setting up static identity map for 0x80200000 - 0x80200060
[    0.079906] rcu: Hierarchical SRCU implementation.
[    0.100096] EFI services will not be available.
[    0.119958] smp: Bringing up secondary CPUs ...
[    0.200360] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.200365] CPU1: Spectre v2: using ICIALLU workaround
[    0.200490] smp: Brought up 1 node, 2 CPUs
[    0.200502] SMP: Total of 2 processors activated (24.59 BogoMIPS).
[    0.200512] CPU: All CPU(s) started in HYP mode.
[    0.200519] CPU: Virtualization extensions available.
[    0.200967] devtmpfs: initialized
[    0.218234] VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0
[    0.218510] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.218529] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.221222] pinctrl core: initialized pinctrl subsystem
[    0.221773] DMI not present or invalid.
[    0.222057] NET: Registered protocol family 16
[    0.223247] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.224198] omap_hwmod: l3_main_2 using broken dt data from ocp
[    0.420559] cpuidle: using governor ladder
[    0.420595] cpuidle: using governor menu
[    0.431049] OMAP GPIO hardware version 0.1
[    0.455843] No ATAGs?
[    0.455916] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.455931] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.456787] OMAP DMA hardware revision 0.0
[    0.468323] edma 43300000.edma: memcpy is disabled
[    0.471833] edma 43300000.edma: TI EDMA DMA engine driver
[    0.479057] omap-dma-engine 4a056000.dma-controller: OMAP DMA engine driver (LinkedList1/2/3 supported)
[    0.482649] omap-iommu 40d01000.mmu: 40d01000.mmu registered
[    0.482827] omap-iommu 40d02000.mmu: 40d02000.mmu registered
[    0.483085] omap-iommu 58882000.mmu: 58882000.mmu registered
[    0.483325] omap-iommu 55082000.mmu: 55082000.mmu registered
[    0.483704] omap-iommu 41501000.mmu: 41501000.mmu registered
[    0.483891] omap-iommu 41502000.mmu: 41502000.mmu registered
[    0.484170] iommu: Adding device 58820000.ipu to group 1
[    0.484254] iommu: Adding device 55020000.ipu to group 2
[    0.484379] iommu: Adding device 40800000.dsp to group 0
[    0.484608] iommu: Adding device 41000000.dsp to group 3
[    0.485874] SCSI subsystem initialized
[    0.486932] palmas 0-0058: Irq flag is 0x00000004
[    0.512298] palmas 0-0058: Muxing GPIO 2b, PWM 0, LED 0
[    0.514024] SMPS12: supplied by regulator-dummy
[    0.515748] SMPS3: supplied by VMAIN
[    0.517343] SMPS45: supplied by regulator-dummy
[    0.519233] SMPS6: supplied by VMAIN
[    0.520948] SMPS7: supplied by VMAIN
[    0.522827] SMPS8: supplied by VMAIN
[    0.524099] SMPS9: supplied by VMAIN
[    0.525079] LDO1: supplied by VMAIN
[    0.531118] random: fast init done
[    0.531272] LDO2: supplied by VMAIN
[    0.541119] LDO3: supplied by VMAIN
[    0.551128] LDO4: supplied by VMAIN
[    0.561155] LDO5: supplied by regulator-dummy
[    0.561854] LDO6: supplied by regulator-dummy
[    0.562559] LDO7: supplied by regulator-dummy
[    0.563243] LDO8: supplied by regulator-dummy
[    0.563939] LDO9: supplied by VMAIN
[    0.571480] LDOLN: supplied by VMAIN
[    0.581192] LDOUSB: supplied by VMAIN
[    0.593858] omap_i2c 48070000.i2c: bus 0 rev0.12 at 400 kHz
[    0.594076] media: Linux media interface: v0.10
[    0.594115] videodev: Linux video capture interface: v2.00
[    0.594193] pps_core: LinuxPPS API ver. 1 registered
[    0.594203] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.594224] PTP clock support registered
[    0.594255] EDAC MC: Ver: 3.0.0
[    0.601217] omap-mailbox 48840000.mailbox: omap mailbox rev 0x400
[    0.601465] omap-mailbox 48842000.mailbox: omap mailbox rev 0x400
[    0.601976] Advanced Linux Sound Architecture Driver Initialized.
[    0.602815] clocksource: Switched to clocksource arch_sys_counter
[    0.611058] NET: Registered protocol family 2
[    0.611640] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    0.611670] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.611711] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    0.611780] TCP: Hash tables configured (established 4096 bind 4096)
[    0.611858] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.611882] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.612003] NET: Registered protocol family 1
[    0.632444] RPC: Registered named UNIX socket transport module.
[    0.632454] RPC: Registered udp transport module.
[    0.632463] RPC: Registered tcp transport module.
[    0.632472] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.633555] hw perfevents: no interrupt-affinity property for /pmu, guessing.
[    0.633769] hw perfevents: enabled with armv7_cortex_a15 PMU driver, 7 counters available
[    0.634757] Initialise system trusted keyrings
[    0.634889] workingset: timestamp_bits=14 max_order=19 bucket_order=5
[    0.640048] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.650559] NFS: Registering the id_resolver key type
[    0.650593] Key type id_resolver registered
[    0.650603] Key type id_legacy registered
[    0.650644] ntfs: driver 2.1.32 [Flags: R/O].
[    0.652315] Key type asymmetric registered
[    0.652328] Asymmetric key parser 'x509' registered
[    0.652383] bounce: pool size: 64 pages
[    0.652416] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[    0.652428] io scheduler noop registered
[    0.652437] io scheduler deadline registered
[    0.652534] io scheduler cfq registered (default)
[    0.652544] io scheduler mq-deadline registered
[    0.652553] io scheduler kyber registered
[    0.658312] pinctrl-single 4a003400.pinmux: 282 pins, size 1128
[    0.662168] dra7-pcie 51000000.pcie: Linked as a consumer to phy-4a094000.pciephy.1
[    0.662593] dra7-pcie 51000000.pcie: host bridge /ocp/axi@0/pcie@51000000 ranges:
[    0.662635] dra7-pcie 51000000.pcie:    IO 0x20003000..0x20012fff -> 0x00000000
[    0.662663] dra7-pcie 51000000.pcie:   MEM 0x20013000..0x2fffffff -> 0x20013000
[    1.662974] dra7-pcie 51000000.pcie: Phy link never came up
[    1.663115] dra7-pcie 51000000.pcie: PCI host bridge to bus 0000:00
[    1.663130] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.663142] pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
[    1.663154] pci_bus 0000:00: root bus resource [mem 0x20013000-0x2fffffff]
[    1.669093] PCI: bus0: Fast back to back transfers disabled
[    1.674699] PCI: bus1: Fast back to back transfers enabled
[    1.674744] pci 0000:00:00.0: BAR 0: assigned [mem 0x20100000-0x201fffff 64bit]
[    1.674765] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    1.675088] pcieport 0000:00:00.0: Signaling PME with IRQ 172
[    1.675221] pcieport 0000:00:00.0: AER enabled with IRQ 172
[    1.678888] V3_3D: supplied by smps9
[    1.679141] vtt_fixed: supplied by V3_3D
[    1.724642] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
[    1.728268] console [ttyS2] disabled
[    1.728326] 48020000.serial: ttyS2 at MMIO 0x48020000 (irq = 45, base_baud = 3000000) is a 8250
[    2.791724] console [ttyS2] enabled
[    2.797398] omap_rng 48090000.rng: Random Number Generator ver. 20
[    2.797918] random: crng init done
[    2.804514] omapdss_dss 58000000.dss: Linked as a consumer to regulator.20
[    2.814152] DSS: OMAP DSS rev 6.1
[    2.820421] omapdss_hdmi5 58040000.encoder: Linked as a consumer to regulator.13
[    2.827951] omapdss_hdmi5 58040000.encoder: Dropping the link to regulator.13
[    2.848192] brd: module loaded
[    2.857801] loop: module loaded
[    2.866410] m25p80 spi0.0: s25fl256s1 (32768 Kbytes)
[    2.871468] 7 fixed-partitions partitions found on MTD device spi0.0
[    2.877909] Creating 7 MTD partitions on "spi0.0":
[    2.882726] 0x000000000000-0x000000040000 : "QSPI.SPL"
[    2.888641] 0x000000040000-0x000000140000 : "QSPI.u-boot"
[    2.894776] 0x000000140000-0x0000001c0000 : "QSPI.u-boot-spl-os"
[    2.901466] 0x0000001c0000-0x0000001d0000 : "QSPI.u-boot-env"
[    2.907930] 0x0000001d0000-0x0000001e0000 : "QSPI.u-boot-env.backup1"
[    2.915115] 0x0000001e0000-0x0000009e0000 : "QSPI.kernel"
[    2.921195] 0x0000009e0000-0x000002000000 : "QSPI.file-system"
[    2.928345] libphy: Fixed MDIO Bus: probed
[    2.992855] davinci_mdio 48485000.mdio: davinci mdio revision 1.6, bus freq 1000000
[    3.000548] davinci_mdio 48485000.mdio: detected phy mask fffffffc
[    3.010894] libphy: 48485000.mdio: probed
[    3.014949] davinci_mdio 48485000.mdio: phy[0]: device 48485000.mdio:00, driver Micrel KSZ9031 Gigabit PHY
[    3.024665] davinci_mdio 48485000.mdio: phy[1]: device 48485000.mdio:01, driver Micrel KSZ9031 Gigabit PHY
[    3.035107] cpsw 48484000.ethernet: Detected MACID = e4:15:f6:0d:a2:6e
[    3.041729] cpsw 48484000.ethernet: initialized cpsw ale version 1.4
[    3.048135] cpsw 48484000.ethernet: ALE Table size 1024
[    3.053444] cpsw 48484000.ethernet: cpts: overflow check period 500 (jiffies)
[    3.061450] cpsw 48484000.ethernet: cpsw: Detected MACID = e4:15:f6:0d:a2:6f
[    3.069782] i2c /dev entries driver
[    3.078363] cpu cpu0: Linked as a consumer to regulator.4
[    3.083894] cpu cpu0: Linked as a consumer to regulator.27
[    3.091045] sdhci: Secure Digital Host Controller Interface driver
[    3.097302] sdhci: Copyright(c) Pierre Ossman
[    3.102876] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.109190] omap_gpio 4805d000.gpio: Could not set line 27 debounce to 200000 microseconds (-22)
[    3.118182] sdhci-omap 4809c000.mmc: Got CD GPIO
[    3.122995] sdhci-omap 4809c000.mmc: Linked as a consumer to regulator.26
[    3.130030] sdhci-omap 4809c000.mmc: Linked as a consumer to regulator.11
[    3.136913] sdhci-omap 4809c000.mmc: Dropping the link to regulator.11
[    3.143560] sdhci-omap 4809c000.mmc: Linked as a consumer to regulator.2
[    3.150479] sdhci-omap 4809c000.mmc: Linked as a consumer to regulator.11
[    3.157412] sdhci-omap 4809c000.mmc: no pinctrl state for ddr_3_3v mode
[    3.190621] mmc0: SDHCI controller on 4809c000.mmc [4809c000.mmc] using ADMA
[    3.198867] sdhci-omap 480b4000.mmc: Linked as a consumer to regulator.2
[    3.205700] sdhci-omap 480b4000.mmc: Dropping the link to regulator.2
[    3.212355] sdhci-omap 480b4000.mmc: Linked as a consumer to regulator.2
[    3.245466] mmc1: SDHCI controller on 480b4000.mmc [480b4000.mmc] using ADMA
[    3.254253] ledtrig-cpu: registered to indicate activity on CPUs
[    3.260327] mmc0: host does not support reading read-only switch, assuming write-enable
[    3.270372] mmc0: new high speed SDHC card at address 59b4
[    3.277466] NET: Registered protocol family 10
[    3.282582] Segment Routing with IPv6
[    3.286316] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    3.286891] mmcblk0: mmc0:59b4 USDU1 14.9 GiB
[    3.292629] NET: Registered protocol family 17
[    3.299915] mmc1: new DDR MMC card at address 0001
[    3.301398] Key type dns_resolver registered
[    3.307874]  mmcblk0: p1 p2
[    3.310430] Registering SWP/SWPB emulation handler
[    3.316678] mmcblk1: mmc1:0001 S0J56X 14.8 GiB
[    3.317927] omap_voltage_late_init: Voltage driver support not added
[    3.322980] mmcblk1boot0: mmc1:0001 S0J56X partition 1 31.5 MiB
[    3.328858] Power Management for TI OMAP4+ devices.
[    3.335277] mmcblk1boot1: mmc1:0001 S0J56X partition 2 31.5 MiB
[    3.345767] mmcblk1rpmb: mmc1:0001 S0J56X partition 3 4.00 MiB, chardev (244:0)
[    3.346015] Loading compiled-in X.509 certificates
[    3.376054] dmm 4e000000.dmm: workaround for errata i878 in use
[    3.383452] dmm 4e000000.dmm: initialized all PAT entries
[    3.389822] omapdss_hdmi5 58040000.encoder: Linked as a consumer to regulator.13
[    3.397333] omapdss_hdmi5 58040000.encoder: Dropping the link to regulator.13
[    3.405671] omapdss_hdmi5 58040000.encoder: Linked as a consumer to regulator.13
[    3.413445] omapdss_dss 58000000.dss: bound 58001000.dispc (ops dispc_component_ops)
[    3.421438] omapdss_dss 58000000.dss: bound 58040000.encoder (ops hdmi5_component_ops)
[    3.430198] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    3.436859] [drm] No driver support for vblank timestamp query.
[    3.442836] [drm] Cannot find any crtc or sizes
[    3.448089] [drm] Initialized omapdrm 1.0.0 20110917 for omapdrm.0 on minor 0
[    3.455657] hctosys: unable to open rtc device (rtc0)
[    3.461499] net eth0: initializing cpsw version 1.15 (0)
[    3.583237] Micrel KSZ9031 Gigabit PHY 48485000.mdio:00: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=48485000.mdio:00, irq=POLL)
[    3.601044] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    3.607847] net eth1: initializing cpsw version 1.15 (0)
[    3.733675] Micrel KSZ9031 Gigabit PHY 48485000.mdio:01: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=48485000.mdio:01, irq=POLL)
[    3.749645] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[    4.472875] [drm] Cannot find any crtc or sizes
[    7.760439] cpsw 48484000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[    7.772850] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    7.802900] Sending DHCP and RARP requests ...... timed out!
[   82.168769] cpsw 48484000.ethernet eth0: Link is Down
[   82.181622] IP-Config: Retrying forever (NFS root)...
[   82.186731] net eth0: initializing cpsw version 1.15 (0)
[   82.313668] Micrel KSZ9031 Gigabit PHY 48485000.mdio:00: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=48485000.mdio:00, irq=POLL)
[   82.330548] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   82.336458] net eth1: initializing cpsw version 1.15 (0)
[   82.463474] Micrel KSZ9031 Gigabit PHY 48485000.mdio:01: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=48485000.mdio:01, irq=POLL)
[   82.478301] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready

Please provide any suggestions you might have.

  • Hi Kenyon,

    Sorry for the delay. I am checking internally.

    Regards

    Vineet

  • Hi Kenyon,

    Sorry for the delay.

    I was just going through the issue and initially I assumed that it's about uboot configuration but when I probe in to your logs I see that uboot static IP is working for you and issue is actually with what happens when you boot Linux, correct ?

    The description and question threw me off

    Regards

    Vineet

  • Hi Vineet,

    Sorry for the confusion. Yes, the issue occurs while booting Linux. However, I had assumed that this must be because U-Boot is giving Linux invalid or incorrect boot arguments.

    Regards,

    Kenyon

  • Hi Kenyon,

    Ok, understood. So if I just set ipaddr and serverip and boot from SD card I should see the issue ? Can you confirm ?

    Regards

    Vineet

  • Hi Vineet,

    You should also set bootcmd, bootargs and netmask to match what I have outlined above. You might also want to compare other environment variables to see if there are any significant differences. Alternatively, you could give me your setup with a static IP address that works and I could try it on my end.

    Regards,

    Kenyon

  • Hi Kenyon,

    Sorry for the delay, I am looking at the issue.

    I had some issues with my at home board setup.

    Regards

    Vineet

  • Hi Kenyon,

    I was just trying with setting serverip, netmask and ipaddr with my setup and I didn't see any issues. Here is my uboot environment.

    addr_fit=0x90000000
    arch=arm
    args_mmc=run finduuid;setenv bootargs console=${console} ${optargs} root=PARTUUID=${uuid} rw rootfstype=${mmcrootfstype}
    baudrate=115200
    board=am57xx
    board_name=am574x_idk
    board_rev=1.3B
    board_serial=44184P470149
    boot_fdt=try
    boot_fit=0
    bootargs=androidboot.serialno=${serial#} console=ttyS2,115200 androidboot.console=ttyS2 androidboot.hardware=beagle_x15board
    bootcmd=if test ${dofastboot} -eq 1; then echo Boot fastboot requested, resetting dofastboot ...;setenv dofastboot 0; saveenv;echo Booting into fastboot ...; fastboot 1; fi;if test ${boot_fit} -eq 1; th 
    bootdelay=2
    bootdir=/boot
    bootenvfile=uEnv.txt
    bootfile=zImage
    bootm_size=0x10000000
    bootpart=0:2
    bootscript=echo Running bootscript from mmc${mmcdev} ...; source ${loadaddr}
    console=ttyS2,115200n8
    cpu=armv7
    dfu_alt_info_emmc=rawemmc raw 0 3751936;boot part 1 1;rootfs part 1 2;MLO fat 1 1;MLO.raw raw 0x100 0x200;u-boot.img.raw raw 0x300 0x1000;u-env.raw raw 0x1300 0x200;spl-os-args.raw raw 0x1500 0x200;spl-1
    dfu_alt_info_mmc=boot part 0 1;rootfs part 0 2;MLO fat 0 1;MLO.raw raw 0x100 0x200;u-boot.img.raw raw 0x300 0x1000;u-env.raw raw 0x1300 0x200;spl-os-args.raw raw 0x1500 0x200;spl-os-image.raw raw 0x17001
    dfu_alt_info_qspi=MLO raw 0x0 0x040000;u-boot.img raw 0x040000 0x0100000;u-boot-spl-os raw 0x140000 0x080000;u-boot-env raw 0x1C0000 0x010000;u-boot-env.backup raw 0x1D0000 0x010000;kernel raw 0x1E0000 0
    dfu_alt_info_ram=kernel ram 0x80200000 0x4000000;fdt ram 0x80f80000 0x80000;ramdisk ram 0x81000000 0x4000000
    dfu_bufsiz=0x10000
    dofastboot=0
    dtboaddr=0x89000000
    emmc_android_boot=if bcb load 1 misc; then if bcb test command = bootonce-bootloader; then echo BCB: Bootloader boot...; bcb clear command; bcb store; echo Booting into fastboot ...; fastboot 1; elif bc;
    emmc_android_normal_boot=echo Trying to boot Android from eMMC ...; run update_to_fit; setenv eval_bootargs setenv bootargs $bootargs; run eval_bootargs; setenv mmcdev 1; setenv machid fe6; mmc dev $mmc;
    emmc_linux_boot=echo Trying to boot Linux from eMMC ...; setenv mmcdev 1; setenv bootpart 1:2; setenv mmcroot /dev/mmcblk0p2 rw; run mmcboot;
    envboot=mmc dev ${mmcdev}; if mmc rescan; then echo SD/MMC found on device ${mmcdev};if run loadbootscript; then run bootscript;else if run loadbootenv; then echo Loaded env from ${bootenvfile};run impo;
    eth2addr=70:ff:76:1c:2c:af
    eth3addr=70:ff:76:1c:2c:b0
    eth4addr=70:ff:76:1c:2c:b1
    eth5addr=70:ff:76:1c:2c:b2
    eth6addr=70:ff:76:1c:2c:b3
    eth7addr=70:ff:76:1c:2c:b4
    ethaddr=b0:7e:11:34:83:bc
    fastboot.board_rev=1.3B
    fastboot.cpu=DRA762
    fastboot.product=am574x_idk
    fastboot.secure=GP
    fdt_addr_r=0x88000000
    fdtaddr=0x88000000
    fdtcontroladdr=fdf250c8
    fdtfile=undefined
    findfdt=if test $board_name = omap5_uevm; then setenv fdtfile omap5-uevm.dtb; fi; if test $board_name = dra7xx; then setenv fdtfile dra7-evm.dtb; fi;if test $board_name = dra72x-revc; then setenv fdtfil 
    finduuid=part uuid mmc ${bootpart} uuid
    get_overlaystring=for overlay in $name_overlays;do;setenv overlaystring ${overlaystring}'#'${overlay};done;
    idk_lcd=no
    importbootenv=echo Importing environment from mmc${mmcdev} ...; env import -t ${loadaddr} ${filesize}
    kernel_addr_r=0x82000000
    loadaddr=0x82000000
    loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenvfile}
    loadbootscript=load mmc ${mmcdev} ${loadaddr} boot.scr
    loadfdt=load ${devtype} ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}
    loadimage=load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/${bootfile}
    mmcboot=mmc dev ${mmcdev}; devnum=${mmcdev}; setenv devtype mmc; if mmc rescan; then echo SD/MMC found on device ${mmcdev};if run loadimage; then run args_mmc; if test ${boot_fit} -eq 1; then run run_fi;
    mmcdev=0
    mmcloados=if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if run loadfdt; then bootz ${loadaddr} - ${fdtaddr}; else if test ${boot_fdt} = try; then bootz; else echo WARN: Cannot load the DT; f;
    mmcrootfstype=ext4 rootwait
    name_fit=fitImage
    netargs=setenv bootargs console=${console} ${optargs} root=/dev/nfs nfsroot=${serverip}:${rootpath},${nfsopts} rw ip=dhcp
    netboot=echo Booting from network ...; setenv autoload no; dhcp; run netloadimage; run netloadfdt; run netargs; bootz ${loadaddr} - ${fdtaddr}
    netloadfdt=tftp ${fdtaddr} ${fdtfile}
    netloadimage=tftp ${loadaddr} ${bootfile}
    nfsopts=nolock
    partitions=uuid_disk=${uuid_gpt_disk};name=bootloader,start=384K,size=1792K,uuid=${uuid_gpt_bootloader};name=rootfs,start=2688K,size=-,uuid=${uuid_gpt_rootfs}
    partitions_android=uuid_disk=${uuid_gpt_disk};name=xloader,start=128K,size=256K,uuid=${uuid_gpt_xloader};name=bootloader,size=2048K,uuid=${uuid_gpt_bootloader};name=uboot-env,start=2432K,size=256K,uuid=}
    pxefile_addr_r=0x80100000
    ramdisk_addr_r=0x88080000
    rdaddr=0x88080000
    rootpath=/export/rootfs
    run_fit=bootm ${addr_fit}#${fdtfile}${overlaystring}
    scriptaddr=0x80000000
    serial#=140050073acc0120
    soc=omap5
    static_ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off
    stderr=serial@48020000
    stdin=serial@48020000
    stdout=serial@48020000
    update_to_fit=setenv loadaddr ${addr_fit}; setenv bootfile ${name_fit}
    usbtty=cdc_acm
    vendor=ti
    ver=U-Boot 2020.01-dirty (Dec 18 2020 - 18:45:39 +0530)
    vram=16M
    
    

    My IDK is AM572 and I have the newer Uboot, I don't know if that makes any difference. I can't change my IDK but I will

    1. Older releases.

    2. NFS and TFTP boot

    Regards

    Vineet