LS1028ARDB I2C eeprom: how to load the RCW and the bootloaders

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

LS1028ARDB I2C eeprom: how to load the RCW and the bootloaders

5,694 Views
imuguruza
Contributor III

Hi, I would like to know how can I load in the I2C eeprom the RCW and the BLs in order to boot the board from this source.

I have found this thread: https://community.nxp.com/t5/QorIQ/LS1028-RCW-generation-to-boot-from-I2C-EEPROM-to-NOR-Flash/m-p/14..., but I got stucked too.

I would like to know which version of the BL2 I need to load, bl2_emmc, bl2_sd,... but in my Yocto compilation bl2_i2c does not appear.

Do I need to change something in order to generate this? Or it is not necessary?

Thanks,

imuguruza

0 Kudos
Reply
9 Replies

4,905 Views
imuguruza
Contributor III

Hi again,

It has been time since I have tried this but it does not work.

I have been checking the I2C signals in the connector J26. When I boot up the board, I only see one I2C command. This command is a write request to the 0x50 address. It has no ACK from the EEPROM:

i2c_eeprom.png

 

This means the I2C multiplexor is not well configured and it is not connecting to its bus 0, where the EEPROM is attached...

I believe the CPLD should configure this device in order to enable the path from the LS to the EEPROM.

 

Is there any workaround to make it work? Is this a known issue?

Thanks,

imuguruza

0 Kudos
Reply

5,651 Views
imuguruza
Contributor III

Hi,

Thanks for your support.

It looks like when I execute:

=> i2c write 0xa0000000 0x50 0x400.2 0x13431

The processor gets hung up, so I am not sure if the bl2 binary is properly flahsed in the eeprom...

I have written the size in hex format in the i2c write command. Once it looks it has finished, I have changed the boot switch but nothing was printed in the serial session...

 

I have another question, is it required to reflash the fip? In my case, I would liketo use the nand as place to store the uboot/kernel/rtfs.

 

Thanks,

imuguruza

0 Kudos
Reply

5,585 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please try images in i2c_ls1028a.zip attached in https://community.nxp.com/t5/QorIQ/LS1028-RCW-generation-to-boot-from-I2C-EEPROM-to-NOR-Flash/m-p/14...

=> tftp 0xa0000000 rcw_1500_gpu600.bin

=> i2c write 0xa0000000 0x50 0.2 10c

=> tftp 0xa0000000 bl2.bin

=> i2c write 0xa0000000 0x50 0x400.2 9431

Please flash fip image at 0x100000 on the NAND flash.

0 Kudos
Reply

5,518 Views
imuguruza
Contributor III

Hi @yipingwang 

 

In the process of writing the bl2.bin, the board get freezed, and I believe that is not being loaded properly...
Here a capture:

error.PNG

Checkig the LS1028ARDB schematics, I think the pin sw_cfg_wp should be to '0' to allow eeprom writing:

 

switch.PNG

I have set that too, but the writing process freezes and after, once I change to boot option to eeprom, I don't see any printed character.

Any idea what could be wrong?

Regards,

imuguruza

0 Kudos
Reply

5,354 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please check whether you could write RCW image to i2c eeprom.

=> tftp 0xa0000000 nxa22585/ls1028ardb/rcw_1500_gpu600.bin
=> i2c write 0xa0000000 0x50 0.2 0x10c

=>reset

=> i2c read 0x50 0.2 0x10c 0xc0000000
=> md 0xc0000000
c0000000: aa55aa55 80100000 3c004010 00000030 U.U......@.<0...
c0000010: 00000000 00000000 00000000 018f0000 ................
c0000020: 0030c000 00000000 020031a0 00002580 ..0......1...%..
c0000030: 00000000 00003296 00000000 00000010 .....2..........
c0000040: 00000000 00000000 00000000 00000000 ................
c0000050: 00000000 00000000 00000000 00000000 ................
c0000060: 00000000 00000000 00000000 00000000 ................
c0000070: 200e705a 00000000 bb580000 00000000 Zp. ......X.....
c0000080: 00000000 00000000 458ca4b5 334008bc ...........E..@3
c0000090: 00000001 33400154 47474747 33400158 ....T.@3GGGGX.@3
c00000a0: 47474747 334008bc 00000000 335008bc GGGG..@3......P3
c00000b0: 00000001 33500154 47474747 335008bc ....T.P3GGGG..P3
c00000c0: 00000000 33400890 00800401 33500890 ......@3......P3
c00000d0: 00800401 33400098 00000000 33500098 ......@3......P3
c00000e0: 00000000 31e00900 00000004 31e00400 .......1.......1
c00000f0: 1800d000 8000000a 00000400 1800d000 ................
=>

0 Kudos
Reply

5,448 Views
imuguruza
Contributor III

ping @yipingwang 

0 Kudos
Reply

5,630 Views
imuguruza
Contributor III

ping @yipingwang , any idea what's going on?

Regards,

imuguruza

0 Kudos
Reply

5,670 Views
yipingwang
NXP TechSupport
NXP TechSupport

Here are the updated steps:

$ bitbake rcw -c cleansstate

$ bitbake rcw -c patch

Go to RCW source code folder, build_ls1028ardb/tmp/work/ls1028ardb-fsl-linux/rcw/git-r0/git/ls1028ardb/R_SQPP_0x85bb/, add the following commands at the end in rcw_1500_gpu600.rcw file
.pbi
write 0x01e00400,0x1800d000
blockcopy 0xa,0x400,0x1800d000,0x9435
.end

CCSR write command:
setting boot location pointer to 0x1800d000 in Boot location pointer low-order address (BOOTLOCPTRL) register present in DCFG.
block copy command:
blockcopy 0x0a,0x400,0x00100000,0x9400
Source : I2C EEPROM = 0xa
Source address: 0x400
Destination address: OCRAM (0x100000)
Block size : size of BL2 binary in bytes

 

$ bitbak rcw

$ bitbake atf -c cleansstate

$ bitbake atf

Get atf images bl2_flexspi_nor.pbl and fip_uboot.bin in build_ls1028ardb/tmp/deploy/images/ls1028ardb/atf/.

Programming EEPROM using I2C on U-Boot on LS1028ARDB
=> i2c probe
Valid chip addresses: 00 50 52 53 57 66 67 77 7C
=> i2c write 0xa0000000 0x50 0.2 0x11c
=> i2c read 0x50 0.2 0x114 0xc0000000
=> i2c write 0xa0000000 0x50 0x400.2 <size of bl2.bin>

0 Kudos
Reply

1,290 Views
gjohnsona2e
Contributor I

I know this is an old thread, but I am having a similar problem to this ticket.  I followed the steps to program the rcw and bl2 bins to eeprom using u-boot from a bootable SD card, and verified the data is present in the EEPROM.  When I reconfigure the switches to boot from EEPROM, and capture the i2c traffic on j26 i see:

gjohnsona2e_0-1754945606921.png

It appears that the EEPROM is not responding.

Can you help me figure out how to make this work as it's claimed to work?

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1516012%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ELS1028ARDB%20I2C%20eeprom%3A%20how%20to%20load%20the%20RCW%20and%20the%20bootloaders%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1516012%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%20I%20would%20like%20to%20know%20how%20can%20I%20load%20in%20the%20I2C%20eeprom%20the%20RCW%20and%20the%20BLs%20in%20order%20to%20boot%20the%20board%20from%20this%20source.%3C%2FP%3E%3CP%3EI%20have%20found%20this%20thread%3A%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FQorIQ%2FLS1028-RCW-generation-to-boot-from-I2C-EEPROM-to-NOR-Flash%2Fm-p%2F1455702%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Ft5%2FQorIQ%2FLS1028-RCW-generation-to-boot-from-I2C-EEPROM-to-NOR-Flash%2Fm-p%2F1455702%3C%2FA%3E%2C%20but%20I%20got%20stucked%20too.%3C%2FP%3E%3CP%3EI%20would%20like%20to%20know%20which%20version%20of%20the%20BL2%20I%20need%20to%20load%2C%20bl2_emmc%2C%20bl2_sd%2C...%20but%20in%20my%20Yocto%20compilation%20bl2_i2c%20does%20not%20appear.%3C%2FP%3E%3CP%3EDo%20I%20need%20to%20change%20something%20in%20order%20to%20generate%20this%3F%20Or%20it%20is%20not%20necessary%3F%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3Eimuguruza%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2150320%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20LS1028ARDB%20I2C%20eeprom%3A%20how%20to%20load%20the%20RCW%20and%20the%20bootloaders%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2150320%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20know%20this%20is%20an%20old%20thread%2C%20but%20I%20am%20having%20a%20similar%20problem%20to%20this%20ticket.%26nbsp%3B%20I%20followed%20the%20steps%20to%20program%20the%20rcw%20and%20bl2%20bins%20to%20eeprom%20using%20u-boot%20from%20a%20bootable%20SD%20card%2C%20and%20verified%20the%20data%20is%20present%20in%20the%20EEPROM.%26nbsp%3B%20When%20I%20reconfigure%20the%20switches%20to%20boot%20from%20EEPROM%2C%20and%20capture%20the%20i2c%20traffic%20on%20j26%20i%20see%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22gjohnsona2e_0-1754945606921.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22gjohnsona2e_0-1754945606921.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F351851iABD9E60BCA151A9E%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22gjohnsona2e_0-1754945606921.png%22%20alt%3D%22gjohnsona2e_0-1754945606921.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EIt%20appears%20that%20the%20EEPROM%20is%20not%20responding.%3C%2FP%3E%3CP%3ECan%20you%20help%20me%20figure%20out%20how%20to%20make%20this%20work%20as%20it's%20claimed%20to%20work%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1635330%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20LS1028ARDB%20I2C%20eeprom%3A%20how%20to%20load%20the%20RCW%20and%20the%20bootloaders%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1635330%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20again%2C%3C%2FP%3E%3CP%3EIt%20has%20been%20time%20since%20I%20have%20tried%20this%20but%20it%20does%20not%20work.%3C%2FP%3E%3CP%3EI%20have%20been%20checking%20the%20I2C%20signals%20in%20the%20connector%20J26.%20When%20I%20boot%20up%20the%20board%2C%20I%20only%20see%20one%20I2C%20command.%20This%20command%20is%20a%20write%20request%20to%20the%200x50%20address.%20It%20has%20no%20ACK%20from%20the%20EEPROM%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22i2c_eeprom.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22i2c_eeprom.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F219624i7FBAE3AE1132842C%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22i2c_eeprom.png%22%20alt%3D%22i2c_eeprom.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EThis%20means%20the%20I2C%20multiplexor%20is%20not%20well%20configured%20and%20it%20is%20not%20connecting%20to%20its%20bus%200%2C%20where%20the%20EEPROM%20is%20attached...%3C%2FP%3E%3CP%3EI%20believe%20the%20CPLD%20should%20configure%20this%20device%20in%20order%20to%20enable%20the%20path%20from%20the%20LS%20to%20the%20EEPROM.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EIs%20there%20any%20workaround%20to%20make%20it%20work%3F%20Is%20this%20a%20known%20issue%3F%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3Eimuguruza%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1534667%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20LS1028ARDB%20I2C%20eeprom%3A%20how%20to%20load%20the%20RCW%20and%20the%20bootloaders%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1534667%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EPlease%20check%20whether%20you%20could%20write%20RCW%20image%20to%20i2c%20eeprom.%3C%2FP%3E%0A%3CP%3E%3D%26gt%3B%20tftp%200xa0000000%20nxa22585%2Fls1028ardb%2Frcw_1500_gpu600.bin%3CBR%20%2F%3E%3D%26gt%3B%20i2c%20write%200xa0000000%200x50%200.2%200x10c%3C%2FP%3E%0A%3CP%3E%3D%26gt%3Breset%3C%2FP%3E%0A%3CP%3E%3D%26gt%3B%20i2c%20read%200x50%200.2%200x10c%200xc0000000%3CBR%20%2F%3E%3D%26gt%3B%20md%200xc0000000%3CBR%20%2F%3Ec0000000%3A%20aa55aa55%2080100000%203c004010%2000000030%20U.U......%40.%26lt%3B0...%3CBR%20%2F%3Ec0000010%3A%2000000000%2000000000%2000000000%20018f0000%20................%3CBR%20%2F%3Ec0000020%3A%200030c000%2000000000%20020031a0%2000002580%20..0......1...%25..%3CBR%20%2F%3Ec0000030%3A%2000000000%2000003296%2000000000%2000000010%20.....2..........%3CBR%20%2F%3Ec0000040%3A%2000000000%2000000000%2000000000%2000000000%20................%3CBR%20%2F%3Ec0000050%3A%2000000000%2000000000%2000000000%2000000000%20................%3CBR%20%2F%3Ec0000060%3A%2000000000%2000000000%2000000000%2000000000%20................%3CBR%20%2F%3Ec0000070%3A%20200e705a%2000000000%20bb580000%2000000000%20Zp.%20......X.....%3CBR%20%2F%3Ec0000080%3A%2000000000%2000000000%20458ca4b5%20334008bc%20...........E..%403%3CBR%20%2F%3Ec0000090%3A%2000000001%2033400154%2047474747%2033400158%20....T.%403GGGGX.%403%3CBR%20%2F%3Ec00000a0%3A%2047474747%20334008bc%2000000000%20335008bc%20GGGG..%403......P3%3CBR%20%2F%3Ec00000b0%3A%2000000001%2033500154%2047474747%20335008bc%20....T.P3GGGG..P3%3CBR%20%2F%3Ec00000c0%3A%2000000000%2033400890%2000800401%2033500890%20......%403......P3%3CBR%20%2F%3Ec00000d0%3A%2000800401%2033400098%2000000000%2033500098%20......%403......P3%3CBR%20%2F%3Ec00000e0%3A%2000000000%2031e00900%2000000004%2031e00400%20.......1.......1%3CBR%20%2F%3Ec00000f0%3A%201800d000%208000000a%2000000400%201800d000%20................%3CBR%20%2F%3E%3D%26gt%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1531534%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20LS1028ARDB%20I2C%20eeprom%3A%20how%20to%20load%20the%20RCW%20and%20the%20bootloaders%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1531534%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Eping%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F52411%22%20target%3D%22_blank%22%3E%40yipingwang%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1527944%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20LS1028ARDB%20I2C%20eeprom%3A%20how%20to%20load%20the%20RCW%20and%20the%20bootloaders%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1527944%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F52411%22%20target%3D%22_blank%22%3E%40yipingwang%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EIn%20the%20process%20of%20writing%20the%20bl2.bin%2C%20the%20board%20get%20freezed%2C%20and%20I%20believe%20that%20is%20not%20being%20loaded%20properly...%3CBR%20%2F%3EHere%20a%20capture%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22error.PNG%22%20style%3D%22width%3A%20573px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22error.PNG%22%20style%3D%22width%3A%20573px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F194880i41964D29FBB578BF%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22error.PNG%22%20alt%3D%22error.PNG%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3ECheckig%20the%20LS1028ARDB%20schematics%2C%20I%20think%20the%20pin%20sw_cfg_wp%20should%20be%20to%20'0'%20to%20allow%20eeprom%20writing%3A%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22switch.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22switch.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F194881iE810F16580F72020%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22switch.PNG%22%20alt%3D%22switch.PNG%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EI%20have%20set%20that%20too%2C%20but%20the%20writing%20process%20freezes%20and%20after%2C%20once%20I%20change%20to%20boot%20option%20to%20eeprom%2C%20I%20don't%20see%20any%20printed%20character.%3C%2FP%3E%3CP%3EAny%20idea%20what%20could%20be%20wrong%3F%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3Eimuguruza%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1524138%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20LS1028ARDB%20I2C%20eeprom%3A%20how%20to%20load%20the%20RCW%20and%20the%20bootloaders%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1524138%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EPlease%20try%20images%20in%26nbsp%3B%3CSPAN%3Ei2c_ls1028a.zip%20attached%20in%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FQorIQ%2FLS1028-RCW-generation-to-boot-from-I2C-EEPROM-to-NOR-Flash%2Fm-p%2F1455702%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Ft5%2FQorIQ%2FLS1028-RCW-generation-to-boot-from-I2C-EEPROM-to-NOR-Flash%2Fm-p%2F1455702%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%3D%26gt%3B%20tftp%200xa0000000%20rcw_1500_gpu600.bin%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%3D%26gt%3B%20i2c%20write%200xa0000000%200x50%200.2%2010c%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%3D%26gt%3B%20tftp%200xa0000000%20bl2.bin%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%3D%26gt%3B%20i2c%20write%200xa0000000%200x50%200x400.2%209431%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EPlease%20flash%20fip%20image%20at%200x100000%20on%20the%20NAND%20flash.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1522646%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20LS1028ARDB%20I2C%20eeprom%3A%20how%20to%20load%20the%20RCW%20and%20the%20bootloaders%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1522646%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Eping%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F52411%22%20target%3D%22_blank%22%3E%40yipingwang%3C%2FA%3E%20%2C%20any%20idea%20what's%20going%20on%3F%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3Eimuguruza%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1520420%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20LS1028ARDB%20I2C%20eeprom%3A%20how%20to%20load%20the%20RCW%20and%20the%20bootloaders%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1520420%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EThanks%20for%20your%20support.%3C%2FP%3E%3CP%3EIt%20looks%20like%20when%20I%20execute%3A%3C%2FP%3E%3CP%3E%3D%26gt%3B%20i2c%20write%200xa0000000%200x50%200x400.2%200x13431%3C%2FP%3E%3CP%3EThe%20processor%20gets%20hung%20up%2C%20so%20I%20am%20not%20sure%20if%20the%20bl2%20binary%20is%20properly%20flahsed%20in%20the%20eeprom...%3C%2FP%3E%3CP%3EI%20have%20written%20the%20size%20in%20hex%20format%20in%20the%20i2c%20write%20command.%20Once%20it%20looks%20it%20has%20finished%2C%20I%20have%20changed%20the%20boot%20switch%20but%20nothing%20was%20printed%20in%20the%20serial%20session...%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EI%20have%20another%20question%2C%20is%20it%20required%20to%20reflash%20the%20fip%3F%20In%20my%20case%2C%20I%20would%20liketo%20use%20the%20nand%20as%20place%20to%20store%20the%20uboot%2Fkernel%2Frtfs.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3Eimuguruza%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1519741%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20LS1028ARDB%20I2C%20eeprom%3A%20how%20to%20load%20the%20RCW%20and%20the%20bootloaders%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1519741%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%3EHere%20are%20the%20updated%20steps%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%24%20bitbake%20rcw%20-c%20cleansstate%3C%2FP%3E%0A%3CP%3E%24%20bitbake%20rcw%20-c%20patch%3C%2FP%3E%0A%3CP%3EGo%20to%20RCW%20source%20code%20folder%2C%26nbsp%3Bbuild_ls1028ardb%2Ftmp%2Fwork%2Fls1028ardb-fsl-linux%2Frcw%2Fgit-r0%2Fgit%2Fls1028ardb%2FR_SQPP_0x85bb%2F%2C%20a%3CSPAN%3Edd%20the%20following%20commands%20at%20the%20end%20in%20rcw_1500_gpu600.rcw%20file%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E.pbi%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3Ewrite%200x01e00400%2C0x1800d000%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3Eblockcopy%200xa%2C0x400%2C0x1800d000%2C0x9435%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E.end%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%3ECCSR%20write%20command%3A%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3Esetting%20boot%20location%20pointer%20to%200x1800d000%20in%20Boot%20location%20pointer%20low-order%20address%20(BOOTLOCPTRL)%20register%20present%20in%20DCFG.%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3Eblock%20copy%20command%3A%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3Eblockcopy%200x0a%2C0x400%2C0x00100000%2C0x9400%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3ESource%20%3A%20I2C%20EEPROM%20%3D%200xa%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3ESource%20address%3A%200x400%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3EDestination%20address%3A%20OCRAM%20(0x100000)%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3EBlock%20size%20%3A%20size%20of%20BL2%20binary%20in%20bytes%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%24%20bitbak%20rcw%3C%2FP%3E%0A%3CP%3E%24%20bitbake%20atf%20-c%20cleansstate%3C%2FP%3E%0A%3CP%3E%24%20bitbake%20atf%3C%2FP%3E%0A%3CP%3EGet%20atf%20images%26nbsp%3Bbl2_flexspi_nor.pbl%20and%20fip_uboot.bin%20in%26nbsp%3Bbuild_ls1028ardb%2Ftmp%2Fdeploy%2Fimages%2Fls1028ardb%2Fatf%2F.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%3EProgramming%20EEPROM%20using%20I2C%20on%20U-Boot%20on%20LS1028ARDB%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%3D%26gt%3B%20i2c%20probe%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3EValid%20chip%20addresses%3A%2000%2050%2052%2053%2057%2066%2067%2077%207C%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%3D%26gt%3B%20i2c%20write%200xa0000000%200x50%200.2%200x11c%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%3D%26gt%3B%20i2c%20read%200x50%200.2%200x114%200xc0000000%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%3D%26gt%3B%20i2c%20write%200xa0000000%200x50%200x400.2%20%3CSIZE%20of%3D%22%22%20bl2.bin%3D%22%22%3E%3C%2FSIZE%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E