LS1043ARDB Fman on SD-CARD

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

LS1043ARDB Fman on SD-CARD

Jump to solution
1,245 Views
olegkholupov
Contributor I

I have successfully build core image and made bootable SD-card, but can't get access to eth devices.

If I understand correctly from ls1043a manual:

1. first 2056 sectors of SD card must be remained for u-boot image. After "dd if=u-boot-with-spl-pbl.bin of=/dev/sdb seek=8 bs=512" u-boot will be written to sd-card.

2. After writing u-boot, I need to write "fsl_fman_ucode_t2080_r1.0_106_4_15.bin" to sd-card to get access to eth, but I don't know which offset should I use to write this microcode.

Without fman-code, I get the following output during boot:

U-Boot SPL 2015.01QorIQ-SDK-V1.7+g503273b (Nov 29 2016 - 17:06:27)
Initializing DDR....


U-Boot 2015.01QorIQ-SDK-V1.7+g503273b (Nov 29 2016 - 17:06:27)

Clock Configuration:
CPU0(A53):1500 MHz CPU1(A53):1500 MHz CPU2(A53):1500 MHz
CPU3(A53):1500 MHz
Bus: 400 MHz DDR: 1600 MT/s FMAN: 500 MHz
Reset Configuration Word (RCW):
00000000: 0810000f 0c000000 00000000 00000000
00000010: 14550002 80004012 60040000 61002000
00000020: 00000000 00000000 00000000 00038800
00000030: 00000000 00001100 00000096 00000001
Board: LS1043ARDB, boot from SD
CPLD: V1.4
PCBA: V2.0
SERDES Reference Clocks:
SD1_CLK1 = 156.25MHZ, SD1_CLK2 = 100.00MHZ
I2C: ready
DRAM: Detected UDIMM Fixed DDR on board
2 GiB (DDR4, 32-bit, CL=11, ECC off)
Using SERDES1 Protocol: 5205 (0x1455)
fman_port_enet_if:71: port(FM1_DTSEC3) is OK
fman_port_enet_if:77: port(FM1_DTSEC4) is OK
Flash: 128 MiB
NAND: 512 MiB
MMC: FSL_SDHC: 0
EEPROM: NXID v1
PCIe1: disabled
PCIe2: Root Complex no link, regs @ 0x3500000
PCIe3: Root Complex no link, regs @ 0x3600000
In: serial
Out: serial
Err: serial
Net: Fman1: Data at 0000000060300000 is not a firmware
No ethernet found.

u-boot variables

baudrate=115200
bootargs=root=/dev/mmcblk0p1 rw earlycon=uart8250,0x21c0500,115200 console=ttyS0,115200
bootcmd=ext2load mmc 0 a0000000 kernel.itb && bootm a0000000
bootdelay=15
console=ttyAMA0,38400n8
eth1addr=00:04:9F:03:DA:A3
eth2addr=00:04:9F:03:DA:A4
eth3addr=00:04:9F:03:DA:A5
eth4addr=00:04:9F:03:DA:A6
eth5addr=00:04:9F:03:DA:A7
eth6addr=00:04:9F:03:DA:A8
ethaddr=00:04:9F:03:DA:A2
ethprime=eth0
fdt_high=0xffffffffffffffff
hwconfig=fsl_ddr:bank_intlv=auto
initrd_high=0xffffffffffffffff
kernel_addr=0x100000
kernel_load=0x807f0000
kernel_size=0x1000000
kernel_start=0x61200000
loadaddr=0x80100000
ramdisk_addr=0x800000
ramdisk_size=0x2000000
stderr=serial
stdin=serial
stdout=serial

The board boots OK, but Ethernet is not accessible.

 

How should I write "fsl_fman_ucode_t2080_r1.0_106_4_15.bin" on SD-card to get access to Ethernet?

 

Thank you in advance!

Labels (1)
0 Kudos
1 Solution
691 Views
olegkholupov
Contributor I

1. write fman microcode to SD-card root

2. boot from SD-card

3. write fman microcode to NOR flash

=> ext2ls mmc 0 
=> ext2load mmc 0 83000000 fsl_fman_ucode_t2080_r1.1_108_4_5.bin 
=> protect off 60300000 +$filesize 
=> erase 60300000 +$filesize 
=> cp.b 83000000 60300000 $filesize 
=> protect on 60300000 +$filesize
=> ext2ls mmc 0 
=> ext2load mmc 0 83000000 fsl_fman_ucode_t2080_r1.1_108_4_5.bin 
=> protect off 64300000 +$filesize 
=> erase 64300000 +$filesize 
=> cp.b 83000000 64300000 $filesize 
=> protect on 64300000 +$filesize

View solution in original post

0 Kudos
1 Reply
692 Views
olegkholupov
Contributor I

1. write fman microcode to SD-card root

2. boot from SD-card

3. write fman microcode to NOR flash

=> ext2ls mmc 0 
=> ext2load mmc 0 83000000 fsl_fman_ucode_t2080_r1.1_108_4_5.bin 
=> protect off 60300000 +$filesize 
=> erase 60300000 +$filesize 
=> cp.b 83000000 60300000 $filesize 
=> protect on 60300000 +$filesize
=> ext2ls mmc 0 
=> ext2load mmc 0 83000000 fsl_fman_ucode_t2080_r1.1_108_4_5.bin 
=> protect off 64300000 +$filesize 
=> erase 64300000 +$filesize 
=> cp.b 83000000 64300000 $filesize 
=> protect on 64300000 +$filesize
0 Kudos