Wind River Support Network

HomeDefectsLIN8-12081
Fixed

LIN8-12081 : fw_setenv fails on XMU with Micron flash

Created: Feb 10, 2020    Updated: Apr 25, 2020
Resolved Date: Apr 20, 2020
Found In Version: 8.0.0.24
Fix Version: 8.0.0.33
Severity: Severe
Applicable for: Wind River Linux 8
Component/s: BSP

Description

working on XMU03 prototype with Micron flash, Xilinx Zynq 
 We had a situation where fw_setenv command fails with:

End of range reached, aborting 
 Flash write failed, retrying (1/2)... 
 End of range reached, aborting 
 Flash write failed, retrying (2/2)... 
 End of range reached, aborting 
 Error: can't write fw_env to flash

This can be temporary fixed by editing fw_env.config file:

/dev/uboot-env1 0x0 0x80000 0x20000 
 /dev/uboot-env2 0x0 0x80000 0x20000

and changing 0x20000 to 0x80000. After that fw_setenv works. But after restart this file will revert to 0x20000.

There's a patch on u-boot: 
 0041-Add-command-that-patches-the-ramdisk-with-environmen.patch 
 that does this change. It will take 0x20000 from erase size on mtd partition, and will write it in fw_env.config file


 root@xmu03:~# /usr/sbin/flashcp -v /tmp/CXP9025195_1-R40G.xlf /dev/mtd10 
 Erasing block: 167/167 (100%) 
 Writing kb: 21360/21360 (100%) 
 Verifying kb: 0/21360 (0%) flashcp: verification mismatch at 0x0

xmu03-uboot> tftp 0x1000000 /micronFlash/CXP9025195_1-R40G.xlf 
 Using asx0 device 
 TFTP from server 172.19.124.21; our IP address is 172.19.124.189 
 Filename '/micronFlash/CXP9025195_1-R40G.xlf'. 
 Load address: 0x1000000 
 Loading: #################################################################
 # 
 ## 
 ### 
 #### 
 ##### 
 ###### 
 ####### 
 ######## 
 ######### 
 ########## 
 ########### 
 ############ 
 ############# 
 ############## 
 ############### 
 ################ 
 ################# 
 ################## 
 ################### 
 #################### 
 ##################### 
 ###################### 
 ####################### 
 ######################## 
 ######################### 
 ########################## 
 ########################### 
 ############################ 
 ############################# 
 ############################## 
 ############################### 
 ################################ 
 ################################# 
 ################################## 
 ################################### 
 #################################### 
 ##################################### 
 ###################################### 
 ####################################### 
 ######################################## 
 ######################################### 
 ########################################## 
 ########################################### 
 ############################################ 
 ############################################# 
 ############################################## 
 ############################################### 
 ################################################ 
 ################################################# 
 ################################################## 
 ################################################### 
 #################################################### 
 ##################################################### 
 ###################################################### 
 ####################################################### 
 ######################################################## 
 ######################################################### 
 ########################################################## 
 ########################################################### 
 ############################################################ 
 ############################################################ 3.6 MiB/s 
 done 
 Bytes transferred = 21872706 (14dc042 hex) 
 xmu03-uboot> sf update 0x1000000 0x6000000 0x14dc042 
 21872706 bytes written, 0 bytes skipped in 2.745s, speed 10936353 B/s

 
Live chat
Online