Petalinux快速入门向导 (7) 第六章.u-boot常见问题

  1. u-boot源码下载

运行

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. u-boot常用命令

2.1 QSPI Flash

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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值