如何在U-boot中打印内存变量?

时间:2018-08-07 14:23:26

标签: linux u-boot

我的U-boot环境中包含以下几行:

ram_crc=10e00000
check_rd=if itest.l *$ram_crc == $crc_rd; then bootm $kernel; else run fail_h; fi

比较有效。但是我该如何回显内存地址10e00000的内容?

我尝试在故障处理程序中打印:

set fail_h echo $ram_crc

但是当我打印环境时,我可以看到它已经用内存地址替换了变量:

fail_h=echo 10e00000

我如何打印内存地址的内容?

谢谢!

1 个答案:

答案 0 :(得分:3)

要打印'内存地址10e00000 的内容”,请尝试:

    <script if="inlineJs">;(function() { window.hydra = {}; hydra.state = 
JSON.parse(decodeURI("%7B%22cache%22:%7B%22Co.context.configCtx%22:%7B%22webId%22:%22gmps-salvadore%22,%22locale%22:%22en_US%22,%22version%22:%22LIVE%22,%22page%22:%22HomePage%22,%22secureSiteId%22:%22b382ca78958d10048eda00145edef68b%22%7D,%22features%22:%7B%22directivePerfSwitch%22:true,%22enable.directive.localisation%22:true,%22enable.directive.thumbnailGallery%22:true,%22enable.new.newstaticmap%22:false,%22disable.forms.webId%22:false,%22use.hydra.popup.title.override.via.url%22:true,%22enable.directive.geoloc.enableHighAccuracy%22:true,%22use.hydra.theme.service%22:true,%22disable.ajax.options.contentType%22:false,%22dealerLocator.map.use.markerClustering%22:true,%22hydra.open.login.popup.on.cs.click%22:false,%22hydra.consumerlogin.use.secure.cookie%22:true,%22use.hydra.directive.vertical.thumbnailGallery.onpopup%22:true,%22hydra.encrypt.data.to.login.service%22:true,%22disable.dealerlocator.fix.loading%22:false,%22use.hydra.date.formatting%22:true,%22use.hydra.optimized.style.directive.updates%22:false,%22hydra.click.pmp.button.on.myaccount.page%22:true,%22use.hydra.fix.invalid.combination.of.filters%22:true,%22disable.vsr.view.from.preference%22:false%7D%7D,%22store%22:%7B%22properties%22:%7B%22routePrefix%22:%22/hydra-graph%22%7D%7D%7D")); }());</script>

或使用变量:

 md 10e00000 1

其中1是转储的所需长度。