U-boot Nand booting has no Fman Ucode, how to upload FMan on NAND flash ?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

U-boot Nand booting has no Fman Ucode, how to upload FMan on NAND flash ?

Jump to solution
1,799 Views
yusufalti333
Contributor IV

Dear NXP,

With the below commands;

tftp 100000 u-boot-nand-2018.09+fslgit-r0.bin
nand info
nand erase 0 e67c9
nand write 100000 0 $filesize

I wrote ~921 KB U-boot NAND image to NAND flash. Then changed switches to perform nand booting. It seems it also requires Fman Ucode to enable ethernet interfaces. I tried to write Fman Ucode at the end of e67c9 but it's giving me this error:

Using FM1@DTSEC4 device
TFTP from server 192.168.10.50; our IP address is 192.168.10.99
Filename 'fsl_fman_ucode_t1040_r1.1_106_4_18.bin'.
Load address: 0x100000
Loading: ###
         1.6 MiB/s
done
Bytes transferred = 32604 (7f5c hex)
=> nand erase e67d0 7f5c
NAND erase: device 0 offset 0xe67d0, size 0x7f5c
Attempt to erase non block-aligned data
ERROR
=> nand erase e67d0 7f5c
NAND erase: device 0 offset 0xe67d0, size 0x7f5c
Attempt to erase non block-aligned data
ERROR
=> nand write 100000 e67d0 $filesize
NAND write: device 0 offset 0xe67d0, size 0x7f5c
Attempt to write non page-aligned data
 0 bytes written: ERROR

Here is the U-boot log when NAND flash is on boot:


U-Boot 2018.09+fsl+g80b2d2b (Jan 29 2020 - 13:02:16 +0000)
CPU0:  T1042E, Version: 1.1, (0x85280211)
Core:  e5500, Version: 2.1, (0x80241021)
Clock Configuration:
       CPU0:1400 MHz, CPU1:1400 MHz, CPU2:1400 MHz, CPU3:1400 MHz,
       CCB:600  MHz,
       DDR:800  MHz (1600 MT/s data rate) (Asynchronous), IFC:300  MHz
       QE:300  MHz
       FMAN1: 600 MHz
       QMAN:  300 MHz
       PME:   300 MHz
L1:    D-cache 32 KiB enabled
       I-cache 32 KiB enabled
Reset Configuration Word (RCW):
       00000000: 0c18000e 0e000000 00000000 00000000
       00000010: 86000002 40000002 ec027000 01000000
       00000020: 00000000 00000000 00000000 00030810
       00000030: 00000000 0342500f 00000000 00000000
Board: T1042D4RDB
Board rev: 0x01 CPLD ver: 0x05, vBank: 4
I2C:   ready
SPI:   ready
DRAM:  Detected UDIMM 18ASF1G72AZ-2G6B1
6 GiB left unmapped
2 GiB (DDR4, 64-bit, CL=11, ECC on)
Flash: 256 MiB
L2:    256 KiB enabled
Corenet Platform Cache: 256 KiB enabled
Using SERDES1 Protocol: 134 (0x86)
SEC0: RNG instantiated
NAND:  1024 MiB
MMC:   FSL_SDHC: 0
Loading Environment from NAND... *** Warning - bad CRC, using default environment
PCIe1: Root Complex, no link, regs @ 0xfe240000
PCIe1: Bus 00 - 00
PCIe2: Root Complex, no link, regs @ 0xfe250000
PCIe2: Bus 01 - 01
PCIe3: Root Complex, no link, regs @ 0xfe260000
PCIe3: Bus 02 - 02
PCIe4: Root Complex, no link, regs @ 0xfe270000
PCIe4: Bus 03 - 03
DIU: Switching to monitor DVI @ 1024x768
In:    serial
Out:   serial
Err:   serial
SERDES Reference : 0x86
Net:   Initializing Fman
Fman1: Data at 7fdf6f78 is not a firmware
No ethernet found.
Hit any key to stop autoboot:  0
Labels (1)
0 Kudos
1 Solution
1,670 Views
ufedor
NXP Employee
NXP Employee

Refer to the QorIQ SDK V2.0-1703 Documentation:

eSPI/SD/NAND boot 

section "Procedure for NAND flash:", "For T2080RDB, T104xD4RDB(NAND block size is 512KB):":

2.1) write fman ucode to NAND from offset 0x180000.
=>nand info
=>tftp 100000 fsl_fman_ucode_xx.bin
=>nand erase 180000 80000
=>nand write 100000 180000 $filesize

View solution in original post

0 Kudos
1 Reply
1,671 Views
ufedor
NXP Employee
NXP Employee

Refer to the QorIQ SDK V2.0-1703 Documentation:

eSPI/SD/NAND boot 

section "Procedure for NAND flash:", "For T2080RDB, T104xD4RDB(NAND block size is 512KB):":

2.1) write fman ucode to NAND from offset 0x180000.
=>nand info
=>tftp 100000 fsl_fman_ucode_xx.bin
=>nand erase 180000 80000
=>nand write 100000 180000 $filesize

0 Kudos