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.

booting evmk2h without dhcp

Hi

I'm trying to bring-up my evmk2h board. I'm trying to load the kernel through network connection, but I don't want to use dhcp, I put the image files in tftp server folder (on my PC). I added some uboot macros to help me do the work. However, from here, I'm stuck. I tried to configure static IP in the bootargs, but it failed. Can you please assist me with the issue?

my mcsdk version is 3.0.4.18

the relevant env macros (I can post all if needed)

args_all=setenv bootargs console=ttyS0,115200n8 rootwait=1
args_tftp=setenv bootargs ${bootargs} rootfstype=nfs root=/dev/nfs rw nfsroot=${serverip}:${nfs_root},${nfs_options} ip=192.168.10.109
baudrate=115200
boot=tftp
bootargs=console=ttyS0,115200n8 rootwait=1
bootcmd=run init_${boot} get_fdt_${boot} get_mon_${boot} get_kern_${boot} run_mon run_kern
bootdelay=3
bootfile=//uImage-k2hk-evm.dtb
dnsip=0.0.0.0
dnsip2=0.0.0.0
get_fdt_tftp=tftpboot ${addr_fdt} ${serverip}:${name_fdt}
get_kern_tftp=tftpboot ${addr_kern} ${serverip}:${name_kern}
get_mon_tftp=tftpboot ${addr_mon} ${serverip}:${name_mon}
init_tftp=run set_fs_none args_all args_tftp
ipaddr=192.168.10.109
name_fdt=uImage-k2hk-evm.dtb
name_fs=arago-console-image.cpio.gz
name_kern=uImage-keystone-evm.bin
name_mon=skern-keystone-evm.bin
name_ubi=keystone-evm-ubifs.ubi
name_uboot=u-boot-spi-keystone-evm.gph
name_uinitrd=uinitrd.bin
nfs_options=v3,tcp,rsize=4096,wsize=4096
nfs_root=/home/rajesh/work/ks2-rootfs
run_kern=bootm ${addr_kern} ${addr_uinitrd} ${addr_fdt}
run_mon=mon_install ${addr_mon}
serverip=192.168.10.250
set_fs_none=setenv addr_uinitrd -
set_fs_uinitrd=setenv addr_uinitrd ${addr_fs}
severip=192.168.10.250

as you can see, I added the *_tftp macros

the boot output is here. I marked the line that shows the kernel command line args.

Using TCI6638_EMAC device
TFTP from server 192.168.10.250; our IP address is 192.168.10.109
Filename 'uImage-k2hk-evm.dtb'.
Load address: 0x87000000
Loading: ####
         1.3 MiB/s
done
Bytes transferred = 48300 (bcac hex)
Using TCI6638_EMAC device
TFTP from server 192.168.10.250; our IP address is 192.168.10.109
Filename 'skern-keystone-evm.bin'.
Load address: 0xc5f0000
Loading: ####
         1.3 MiB/s
done
Bytes transferred = 45056 (b000 hex)
Using TCI6638_EMAC device
TFTP from server 192.168.10.250; our IP address is 192.168.10.109
Filename 'uImage-keystone-evm.bin'.
Load address: 0x88000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #
         1.4 MiB/s
done
Bytes transferred = 3818936 (3a45b8 hex)
## installed monitor, freq [194560000], status 194560000
## Booting kernel from Legacy Image at 88000000 ...
   Image Name:   Linux-3.10.10
   Created:      2014-04-24   5:26:45 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3818872 Bytes = 3.6 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 87000000
   Booting using the fdt blob at 0x87000000
   Loading Kernel Image ... OK
OK
   Using Device Tree in place at 87000000, end 8700ecab

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 3.10.10 (gtbldadm@ubuntu-12) (gcc version 4.7.3 20130226 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro
GCC 2013.03) ) #1 SMP Thu Apr 24 01:26:22 EDT 2014
[    0.000000] CPU: ARMv7 Processor [412fc0f4] revision 4 (ARMv7), cr=30c7387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] Machine: KeyStone2, model: Texas Instruments Keystone 2 SoC
[    0.000000] switching to high address space at 0x800000000
[    0.000000] cma: CMA: reserved 16 MiB at 1f000000
[    0.000000] Memory policy: ECC disabled, Data cache writealloc
[    0.000000] DT missing boot CPU MPIDR[23:0], fall back to default cpu_logical_map
[    0.000000] PERCPU: Embedded 8 pages/cpu @c0b91000 s11840 r8192 d12736 u32768
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttyS0,115200n8 rootwait=1 rootfstype=nfs root=/dev/nfs rw nfsroot=192.168.10.250:/home/rajesh/work/ks2-rootfs,v3,
tcp,rsize=4096,wsize=4096 ip=192.168.10.109
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)

however the kernel sends dhcp request.

[  301.548052] net eth5: adding rx vlan id: 0
[  301.552099] IP-Config: Failed to open gretap0
[  301.570628] Sending DHCP requests .[  302.545106] DHCP/BOOTP: Ignoring delayed packet
.[  307.662988] DHCP/BOOTP: Ignoring delayed packet
.[  314.794849] DHCP/BOOTP: Ignoring delayed packet
..[  342.251981] DHCP/BOOTP: Ignoring delayed packet
.[  369.836078] DHCP/BOOTP: Ignoring delayed packet
 timed out!

this happens in a loop, and the FS is never loaded.

How can I load kernel with static IP?

thanks

JN