Enabling SD Interface on P1023 Reference Design Board

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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.




标签 (1)
%3CLINGO-SUB%20id%3D%22lingo-sub-1112380%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9C%A8%20P1023%20%E5%8F%82%E8%80%83%E8%AE%BE%E8%AE%A1%E6%9D%BF%E4%B8%8A%E5%90%AF%E7%94%A8%20SD%20%E6%8E%A5%E5%8F%A3%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1112380%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3Dutf-8%22%20%2F%26gt%3B%0A%3CP%3E%E8%A6%81%E5%9C%A8%20p1023RDB%20%E4%B8%8A%E7%9A%84%20SPI%20%E5%90%AF%E5%8A%A8%E4%B8%AD%E5%90%AF%E7%94%A8%20SD%20%E6%8E%A5%E5%8F%A3%EF%BC%9A%201.%20%E5%9C%A8%20u-boot%20%E4%B8%AD%E6%89%A7%E8%A1%8C%E4%BB%A5%E4%B8%8B%E6%9B%B4%E6%96%B0%20a)%20%E4%BF%AE%E6%94%B9%20pmuxcr%20%E4%BB%A5%E5%9C%A8%20SPI%20%E5%90%AF%E5%8A%A8%E6%97%B6%E5%90%AF%E7%94%A8%20SD%20%E6%80%BB%E7%BA%BF%20b)%20%E5%9C%A8%20u-boot%20%E4%B8%AD%E6%9B%B4%E6%96%B0%E7%9B%B8%E5%BA%94%E7%9A%84%E9%9D%99%E6%80%81%E5%A4%9A%E8%B7%AF%E5%A4%8D%E7%94%A8%E5%99%A8%E5%AE%9E%E7%8E%B0%202.%20%E5%9C%A8%20Linux%20%E4%B8%AD%E6%89%A7%E8%A1%8C%E4%BB%A5%E4%B8%8B%E6%9B%B4%E6%96%B0%20a)%20%E4%BB%8E%E8%AE%BE%E5%A4%87%E6%A0%91%E5%92%8C%E5%86%85%E6%A0%B8%20defconfig%20%E4%B8%AD%E7%A6%81%E7%94%A8%20IFC%3C%2FP%3E%3CP%3E%E5%90%AF%E7%94%A8%20SD%20%E6%8E%A5%E5%8F%A3%E7%9A%84%E8%A1%A5%E4%B8%81%E8%AF%A6%E7%BB%86%E4%BF%A1%E6%81%AF%E5%A6%82%E4%B8%8B%E3%80%82%E4%B8%80%E4%B8%AA%20zip%20%E6%96%87%E4%BB%B6%EF%BC%8CAN4336SW.zip%EF%BC%8C%E5%8C%85%E5%90%AB%20u-boot%20%E5%92%8C%20Linux%20%E8%A1%A5%E4%B8%81%E7%9A%84%E9%9A%8F%E9%99%84%E5%BA%94%E7%94%A8%E8%AF%B4%E6%98%8E%E3%80%82%E8%AF%A5%E6%96%87%E4%BB%B6%E5%8F%AF%E4%BB%A5%E4%BB%8E%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%20%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%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%5D%3C%2FA%3E%E4%B8%8B%E8%BD%BD%E3%80%82%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-2005283061%22%3E%3CSPAN%20class%3D%22mw-headline%22%3EU-Boot%20%3C%2FSPAN%3E%3C%2FH3%3E%3CUL%3E%3CLI%3E%E4%BB%8E%20QorIQ%20SDK%201.0.1%20iso%20%E4%B8%AD%E6%8F%90%E5%8F%96%20u-boot%20%E4%BB%A3%E7%A0%81%3C%2FLI%3E%3CLI%3E%E5%BA%94%E7%94%A8%E8%A1%A5%E4%B8%81%20u-boot-p1023rdb-enabling-sd-in-spi-boot.patch%3C%2FLI%3E%3CLI%3E%E4%BD%BF%E7%94%A8%E2%80%9Cmake%E2%80%9D%E5%91%BD%E4%BB%A4%E4%B8%BA%20SPI%20Flash%20%E7%BC%96%E8%AF%91%20u-boot%3C%2FLI%3E%3C%2FUL%3E%3CPRE%20translate%3D%22no%22%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%E4%BD%BF%E7%94%A8%20boot_format%20%E5%AE%9E%E7%94%A8%E7%A8%8B%E5%BA%8F%E7%94%9F%E6%88%90%20spiimage%E3%80%82%E6%9B%B4%E5%A4%9A%E4%BF%A1%E6%81%AF%E8%AF%B7%E5%8F%82%E8%A7%81%20SDK%20%E6%89%8B%E5%86%8C%E3%80%82%3C%2FLI%3E%3CLI%3E%E4%BD%BF%E7%94%A8%E4%B8%8A%E9%9D%A2%E6%9E%84%E5%BB%BA%E7%9A%84spiimage%E6%9B%B4%E6%96%B0SPI%20Flash%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-197828598%22%3E%3CSPAN%20class%3D%22mw-headline%22%3ELinux%20%3C%2FSPAN%3E%3C%2FH3%3E%3CUL%3E%3CLI%3E%E4%BB%8E%20QorIQ%20SDK%201.0.1%20iso%20%E4%B8%AD%E6%8F%90%E5%8F%96%20Linux%20%E6%BA%90%E4%BB%A3%E7%A0%81%3C%2FLI%3E%3CLI%3E%E5%BA%94%E7%94%A8%E8%A1%A5%E4%B8%81%20linux-p1023rdb-enabling-sd-in-spi-boot.patch%3C%2FLI%3E%3CLI%3E%E4%BD%BF%E7%94%A8%20make%20%E5%91%BD%E4%BB%A4%E7%BC%96%E8%AF%91%20Linux%3C%2FLI%3E%3C%2FUL%3E%3CPRE%20translate%3D%22no%22%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%3E%E7%BC%96%E8%AF%91dts%3C%2FLI%3E%3C%2FUL%3E%3CPRE%20translate%3D%22no%22%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%20%E4%BD%BF%E7%94%A8%E6%9B%B4%E6%96%B0%E7%9A%84%20SPI%20%E5%BC%95%E5%AF%BC%E5%8A%A0%E8%BD%BD%E7%A8%8B%E5%BA%8F%E3%80%81Linux%20uImage%20%E5%92%8C%20p1023rdb.dtb%EF%BC%8C%E7%94%A8%E6%88%B7%E5%BF%85%E9%A1%BB%E8%83%BD%E5%A4%9F%E5%9C%A8%20p1023RDB%20%E4%B8%8A%E5%90%AF%E7%94%A8%20SD%20%E6%8E%A5%E5%8F%A3%E3%80%82%20%3C%2FLI%3E%3C%2FUL%3E%3CH4%20id%3D%22toc-hId--34357202%22%20id%3D%22toc-hId--34357202%22%20id%3D%22toc-hId-888390072%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--919064391%22%3E%3CSPAN%20class%3D%22editsection%22%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22mw-headline%22%3E%E7%AC%94%E8%AE%B0%3C%2FSPAN%3E%3C%2FH4%3E%3CUL%3E%3CLI%3E%20%E4%BB%85%E5%BD%93%E7%94%A8%E6%88%B7%E7%89%B9%E5%88%AB%E8%A6%81%E6%B1%82%E4%BD%BF%E7%94%A8%20SPI%20%E5%90%AF%E5%8A%A8%E7%9A%84%20SD%20%E6%8E%A5%E5%8F%A3%E6%97%B6%E6%89%8D%E5%BF%85%E9%A1%BB%E8%BF%9B%E8%A1%8C%E4%B8%8A%E8%BF%B0%E6%9B%B4%E6%94%B9%E3%80%82%20%3C%2FLI%3E%3CLI%3E%20%E5%AF%B9%E4%BA%8E%E6%89%80%E6%9C%89%E5%85%B6%E4%BB%96%E5%90%AF%E5%8A%A8%E6%96%B9%E6%B3%95%EF%BC%8C%E4%B8%8D%E5%BE%97%E4%BD%BF%E7%94%A8%E8%BF%99%E4%BA%9B%E8%A1%A5%E4%B8%81%E3%80%82%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%E8%AE%BE%E5%A4%87%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
无评分
版本历史
最后更新:
‎09-10-2020 02:17 AM
更新人: