运行
petalinux-devtool modify u-boot-xlnx
会把uboot源码放在
components/yocto/workspace/sources
目录下
老版本用命令
petalinux-build -c u-boot -x modify
https://www.cnblogs.com/hankfu/p/16058337.html
随着petalinux版本不一样,目录可能会有差异
源码位于工程目录的((petalinux-config -c u-boot)
比如有的版本是在
components/plnx_workspace/sources/u-boot-xlnx
官方下载链接
https://github.com/Xilinx/u-boot-xlnx
2.1.1 uboot> sf probe 0 0 0
SF: Detected N25Q128 with page size 256, total 16 MiB
16384 KiB N25Q128 at 0:0 is now current device
// Detect QSPI Flash parameters
// To make QSPI clock run faster, higher speed can be set to second parameter,
// e.g. setting QSPI clock to 20MHz
// sf probe 0 20000000 0
2.1.2 uboot> sf erase 0 0x200000
// Erase 2MB from QSPI offset 0x0
// Note: If erase size is less than QSPI Flash page size, u-boot reports erase error
2.1.3 uboot> sf read 0x08000000 0 100
// Read QSPI Flash from 0x0 to DDR 0x08000000 with 100 bytes
// you can use any location in DDR as destination. make sure it doesnt overwrite u-boot
// code/data area. u-boot is at 0x04000000.
2.1.4 uboot> md 08000000
08000000: ffffffff ffffffff ffffffff ffffffff ................
// Display content in memory 0x08000000.


1411

被折叠的 条评论
为什么被折叠?



