TFTP issue

Hi,

I am using Linux 4.4.62 kernel and u-boot-2017.05-rc2 source code.

I am trying to do TFTP boot with nfs mounting.My U-boot commands executing the TFTP boot logs properly.But when i am trying to boot from uEnv.txt below i am getting this logs…

ubuntu@ubuntu-MS-7A15:~$ sudo minicom
[sudo] password for ubuntu:

Welcome to minicom 2.7.1

OPTIONS: I18n
Compiled on Aug 13 2017, 15:25:34.
Port /dev/ttyUSB0, 09:19:44

Press CTRL-A Z for help on special keys

U-Boot SPL 2017.05-rc2 (Aug 30 2019 - 11:30:01)
Trying to boot from MMC1
*** Warning - bad CRC, using default environment

reading u-boot.img
reading u-boot.img

U-Boot 2017.05-rc2 (Aug 30 2019 - 11:30:01 +0530)

CPU : AM335X-GP rev 2.1
I2C: ready
DRAM: 512 MiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
*** Warning - bad CRC, using default environment

not set. Validating first E-fuse MAC
Net: cpsw, usb_ether
Press SPACE to abort autoboot in 2 seconds
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
reading boot.scr
** Unable to read file boot.scr **
reading uEnv.txt
473 bytes read in 4 ms (115.2 KiB/s)
Loaded env from uEnv.txt
Importing environment from mmc0 …
" (type: i)lags type check failure for “ipaddr” <= "192.168.7.3
" into hash tableinsert "ipaddr=192.168.7.3
" (type: i)lags type check failure for “serverip” <= "192.168.7.4
" into hash tableinsert "serverip=192.168.7.4
Running uenvcmd …
Booting from network …
link up on port 0, speed 100, full duplex
*** ERROR: serverip' not set link up on port 0, speed 100, full duplex *** ERROR: serverip’ not set
Wrong Image Format for bootm command
ERROR: can’t get kernel image!
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1…
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
** File not found /boot/zImage **
switch to partitions #0, OK
mmc1(part 0) is current device
Scanning mmc 1:1…
switch to partitions #0, OK
mmc1(part 0) is current device
SD/MMC found on device 1
** Invalid partition 2 **

Error: “bootcmd_nand0” not defined

starting USB…
USB0: Port not available.
link up on port 0, speed 100, full duplex
BOOTP broadcast 1
data abort
pc : [<9ff8742e>] lr : [<00001c40>]
reloc pc : [<8083542e>] lr : []
sp : 9df318e0 ip : 00000000 fp : 9ffece48
r10: 9ffec990 r9 : 9df31ed8 r8 : 0000000e
r7 : 9ffeecd4 r6 : 9ffeecdc r5 : 00000000 r4 : 9ffece8e
r3 : 00060101 r2 : 00000008 r1 : 9ffece4e r0 : 0000000e
Flags: nzCv IRQs off FIQs on Mode SVC_32
Resetting CPU …

resetting …

Kindly help.

Thank you.

uEnv.txt (455 Bytes)

Hi,

From which device are you trying to boot u-boot.
Is it emmc or the sdhc card??

From your console output:

reading uEnv.txt
473 bytes read in 4 ms (115.2 KiB/s)
Loaded env from uEnv.txt
Importing environment from mmc0 …
" (type: i)lags type check failure for “ipaddr” <= "192.168.7.3

Your settings seemed to be getting overwritten by other settings (could be in the other bootable device).

You could probably try the following:

1.Stop the u-boot boot process at the count down .
2.At the u-boot shell, create new or update env variables with your desired values.
3.Save these environment variables.
4.Restart the board.
5.Linux could be loaded through NFS boot.

Regards,

Adarsh.

Hi,

I changed the uEnv.txt file. It is working now.

Thank you