Enabling SD Interface on P1023 Reference Design Board

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

Enabling SD Interface on P1023 Reference Design Board

Enabling SD Interface on P1023 Reference Design Board

To enable SD interface in SPI boot on p1023RDB: 1. Perform the following updates in u-boot a) Modify pmuxcr to enable SD bus in case of SPI boot b) Update the corresponding static mux implementation in u-boot 2. Perform the following updates in Linux a) Disable IFC from device tree and kernel defconfig

The patch details to enable SD interface are given below. A zip file, AN4336SW.zip, containing the patches for u-boot and Linux accompanies this application note. The file can be downloaded from [1].

U-Boot

  •   Extract the u-boot code from the QorIQ SDK 1.0.1 iso
  •   Apply the patch, u-boot-p1023rdb-enabling-sd-in-spi-boot.patch
  •   Compile the u-boot using "make" command for SPI Flash
   make ARCH=powerpc   CROSS_COMPILE=/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/bin/powerpc-linux-gnu- p1023RDB_SPIFLASH
  •   Use the boot_format utility to generate the spiimage. For more information, see SDK manual.
  •   Update the SPI Flash with the above built spiimage

Linux

  • Extract the Linux source code from QorIQ SDK 1.0.1 iso
  • Apply the patch, linux-p1023rdb-enabling-sd-in-spi-boot.patch
  • Compile Linux using make command
 #make ARCH=powerpc  CROSS_COMPILE=/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/bin/powerpc-linux-gnuarch/  powerpc/configs/qoriq_sdk_nonsmp_defconfig  #make ARCH=powerpc  CROSS_COMPILE=/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/bin/powerpc-linux-gnu-
  • Compile the dts
 ./sripts/dtc/dtc -f -I dts -O dtb -R 8 -S 0x3000  arc/powerpc/boot/dts/p1023rdb.dts.dts > p1023rdb.dtb.dtb
  • With the updated SPI bootloader, Linux uImage and p1023rdb.dtb, the user must be able to enable SD interface on p1023RDB.


NOTE

  • The above-mentioned changes must be done only when the user specifically requires the SD interface using SPI boot.
  • For all other boot methods, these patches must not be used.




Labels (1)
%3CLINGO-SUB%20id%3D%22lingo-sub-1112380%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EEnabling%20SD%20Interface%20on%20P1023%20Reference%20Design%20Board%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1112380%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ETo%20enable%20SD%20interface%20in%20SPI%20boot%20on%20p1023RDB%3A%201.%20Perform%20the%20following%20updates%20in%20u-boot%20a)%20Modify%20pmuxcr%20to%20enable%20SD%20bus%20in%20case%20of%20SPI%20boot%20b)%20Update%20the%20corresponding%20static%20mux%20implementation%20in%20u-boot%202.%20Perform%20the%20following%20updates%20in%20Linux%20a)%20Disable%20IFC%20from%20device%20tree%20and%20kernel%20defconfig%3C%2FP%3E%3CP%3EThe%20patch%20details%20to%20enable%20SD%20interface%20are%20given%20below.%20A%20zip%20file%2C%20AN4336SW.zip%2C%20containing%20the%20patches%20for%20u-boot%20and%20Linux%20accompanies%20this%20application%20note.%20The%20file%20can%20be%20downloaded%20from%20%3CA%20class%3D%22external%20autonumber%22%20href%3D%22http%3A%2F%2Fwww.freescale.com%2F%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3E%5B%3C%2FA%3E%3CA%20href%3D%22http%3A%2F%2Fwww.freescale.com%2F%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3E%3CSPAN%20class%3D%22external%20autonumber%22%3E1%3C%2FSPAN%3E%3C%2FA%3E%3CA%20class%3D%22external%20autonumber%22%20href%3D%22http%3A%2F%2Fwww.freescale.com%2F%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3E%5D%3C%2FA%3E.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CH3%20id%3D%22toc-hId-1082535787%22%20id%3D%22toc-hId-1082535787%22%20id%3D%22toc-hId-1998674392%22%3E%3CSPAN%20class%3D%22mw-headline%22%3EU-Boot%20%3C%2FSPAN%3E%3C%2FH3%3E%3CUL%3E%3CLI%3E%26nbsp%3B%20Extract%20the%20u-boot%20code%20from%20the%20QorIQ%20SDK%201.0.1%20iso%3C%2FLI%3E%3CLI%3E%26nbsp%3B%20Apply%20the%20patch%2C%20u-boot-p1023rdb-enabling-sd-in-spi-boot.patch%3C%2FLI%3E%3CLI%3E%26nbsp%3B%20Compile%20the%20u-boot%20using%20%22make%22%20command%20for%20SPI%20Flash%3C%2FLI%3E%3C%2FUL%3E%3CPRE%3E%26nbsp%3B%26nbsp%3B%20make%20ARCH%3Dpowerpc%20%26nbsp%3B%20CROSS_COMPILE%3D%2Fopt%2Ffreescale%2Fusr%2Flocal%2Fgcc-4.5.55-eglibc-2.11.55%2Fpowerpc-linux-gnu%2Fbin%2Fpowerpc-linux-gnu-%20p1023RDB_SPIFLASH%3C%2FPRE%3E%3CUL%3E%3CLI%3E%26nbsp%3B%20Use%20the%20boot_format%20utility%20to%20generate%20the%20spiimage.%20For%20more%20information%2C%20see%20SDK%20manual.%3C%2FLI%3E%3CLI%3E%26nbsp%3B%20Update%20the%20SPI%20Flash%20with%20the%20above%20built%20spiimage%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%3C%2FP%3E%3CH3%20id%3D%22toc-hId--724918676%22%20id%3D%22toc-hId--724918676%22%20id%3D%22toc-hId-191219929%22%3E%3CSPAN%20class%3D%22mw-headline%22%3ELinux%20%3C%2FSPAN%3E%3C%2FH3%3E%3CUL%3E%3CLI%3EExtract%20the%20Linux%20source%20code%20from%20QorIQ%20SDK%201.0.1%20iso%3C%2FLI%3E%3CLI%3EApply%20the%20patch%2C%20linux-p1023rdb-enabling-sd-in-spi-boot.patch%3C%2FLI%3E%3CLI%3ECompile%20Linux%20using%20make%20command%3C%2FLI%3E%3C%2FUL%3E%3CPRE%3E%20%23make%20ARCH%3Dpowerpc%26nbsp%3B%20CROSS_COMPILE%3D%2Fopt%2Ffreescale%2Fusr%2Flocal%2Fgcc-4.5.55-eglibc-2.11.55%2Fpowerpc-linux-gnu%2Fbin%2Fpowerpc-linux-gnuarch%2F%26nbsp%3B%20powerpc%2Fconfigs%2Fqoriq_sdk_nonsmp_defconfig%26nbsp%3B%20%23make%20ARCH%3Dpowerpc%26nbsp%3B%20CROSS_COMPILE%3D%2Fopt%2Ffreescale%2Fusr%2Flocal%2Fgcc-4.5.55-eglibc-2.11.55%2Fpowerpc-linux-gnu%2Fbin%2Fpowerpc-linux-gnu-%3C%2FPRE%3E%3CUL%3E%3CLI%3ECompile%20the%20dts%3C%2FLI%3E%3C%2FUL%3E%3CPRE%3E%20.%2Fsripts%2Fdtc%2Fdtc%20-f%20-I%20dts%20-O%20dtb%20-R%208%20-S%200x3000%26nbsp%3B%20arc%2Fpowerpc%2Fboot%2Fdts%2Fp1023rdb.dts.dts%20%26gt%3B%20p1023rdb.dtb.dtb%3C%2FPRE%3E%3CUL%3E%3CLI%3E%20With%20the%20updated%20SPI%20bootloader%2C%20Linux%20uImage%20and%20p1023rdb.dtb%2C%20the%20user%20must%20be%20able%20to%20enable%20SD%20interface%20on%20p1023RDB.%20%3C%2FLI%3E%3C%2FUL%3E%3CH4%20id%3D%22toc-hId--34357202%22%20id%3D%22toc-hId--34357202%22%20id%3D%22toc-hId-881781403%22%3E%3CSPAN%20class%3D%22editsection%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FH4%3E%3CH4%20id%3D%22toc-hId--1841811665%22%20id%3D%22toc-hId--1841811665%22%20id%3D%22toc-hId--925673060%22%3E%3CSPAN%20class%3D%22editsection%22%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22mw-headline%22%3ENOTE%20%3C%2FSPAN%3E%3C%2FH4%3E%3CUL%3E%3CLI%3E%20The%20above-mentioned%20changes%20must%20be%20done%20only%20when%20the%20user%20specifically%20requires%20the%20SD%20interface%20using%20SPI%20boot.%20%3C%2FLI%3E%3CLI%3E%20For%20all%20other%20boot%20methods%2C%20these%20patches%20must%20not%20be%20used.%20%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%3CSPAN%20class%3D%22mce_paste_marker%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22mce_paste_marker%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22mce_paste_marker%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1112380%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EQorIQ%20P1%20Devices%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
No ratings
Version history
Last update:
‎09-10-2020 02:17 AM
Updated by: