<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Andrew, Sorry for the inconvenience.</div><div><br></div><div>For flashing the kernel image, I used the command</div><div><br></div><div>$ <i>pflash -e -a 0 -f -p fitImage.bin<br></i></div><div><i><br></i></div><div>and for flashing root file system</div><div><i><br></i></div><div><i>$ <i>pflash -e -a <i>8388608</i> -f -p obmc.rootfs.cpio.lzma.u-boot</i></i></div><div><i><i><br></i></i></div><div><i><i> </i></i>After power-off I used the command<i><i> <i>bootm 0x30000000 0x30800000</i> </i></i>in u-boot prompt.</div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Feb 20, 2019 at 4:52 AM Andrew Jeffery <<a href="mailto:andrew@aj.id.au">andrew@aj.id.au</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, 19 Feb 2019, at 14:53, AKASH G J wrote:<br>
> I flashed OpenBMC image to system flash using pflash. After power-off, <br>
> I tried to boot the BMC (Aspeed AST-2500) from the system flash. For <br>
> that I used the command *bootm <system flash address>* in u-boot <br>
> prompt. That gives error "no image found".<br>
<br>
Akash, I can't help you any further if you do not give me the exact commands<br>
you are using to flash the system and verify your claims. For instance, there's<br>
no reason to abstract `<system flash address>` here and it's value is actually<br>
crucial to understanding what you are trying to do.<br>
<br>
Please, literally copy and paste the output of your console into your response.<br>
Please do not edit it, do not type it out by hand, do not invent or abstract the<br>
commands that you're executing. Without that I'm going to leave it for<br>
someone else to help.<br>
<br>
That said, bootm expects a kernel image in memory, not the address of the<br>
system flash. As far as I'm aware, if you're providing anything other than the<br>
kernel address it won't work. If you want to just start executing instructions<br>
at some random address, the `go` command is what you need:<br>
<br>
```<br>
root@witherspoon:~# reboot -ff<br>
Rebooting.[42291.288011] reboot: Restarting system<br>
<br>
<br>
<br>
U-Boot 2016.07 (Feb 19 2019 - 10:48:12 +0000)<br>
<br>
       Watchdog enabled<br>
DRAM:  496 MiB<br>
Flash: 32 MiB<br>
In:    serial<br>
Out:   serial<br>
Err:   serial<br>
Net:   aspeednic#0<br>
Hit any key to stop autoboot:  0<br>
ast#<br>
ast# help go<br>
go - start application at address 'addr'<br>
<br>
Usage:<br>
go addr [arg ...]<br>
    - start application at address 'addr'<br>
      passing 'arg' as arguments<br>
ast# go 0<br>
## Starting application at 0x00000000 ...<br>
<br>
<br>
U-Boot 2016.07 (Feb 19 2019 - 10:48:12 +0000)<br>
<br>
       Watchdog enabled<br>
DRAM:  496 MiB<br>
Flash: 32 MiB<br>
In:    serial<br>
Out:   serial<br>
Err:   serial<br>
Net:   aspeednic#0<br>
Hit any key to stop autoboot:  0<br>
ast#<br>
```<br>
<br>
<br>
Andrew<br>
<br>
> <br>
> On Tue, Feb 19, 2019 at 5:33 AM Andrew Jeffery <<a href="mailto:andrew@aj.id.au" target="_blank">andrew@aj.id.au</a>> wrote:<br>
> > <br>
> >  <br>
> >  On Mon, 18 Feb 2019, at 15:04, AKASH G J wrote:<br>
> >  > I wrote a bootable version of OpenBMC Linux image in system SPI flash. <br>
> >  > <br>
> >  > I tried to boot it before power-off, it was successfully booted. Then I <br>
> >  > tried to boot the same, that time it was unsuccessful.<br>
> >  <br>
> >  But you just said you flashed an OpenBMC image to the system flash. <br>
> >  That's never going to work. You need the host firmware on the host<br>
> >  flash to successfully boot the host, and OpenBMC is not the host<br>
> >  firmware.<br>
> >  <br>
> >  Am I understanding you correctly?<br>
> >  <br>
> >  > <br>
> >  > Do I need to make any change in the Linux device tree for resolving this issue?<br>
> >  > <br>
> >  > On Mon, Feb 18, 2019 at 8:15 AM Andrew Jeffery <<a href="mailto:andrew@aj.id.au" target="_blank">andrew@aj.id.au</a>> wrote:<br>
> >  > > <br>
> >  > > <br>
> >  > > On Fri, 15 Feb 2019, at 16:03, AKASH G J wrote:<br>
> >  > > > I just powered off the entire board. After that the data is not present in<br>
> >  > > > the SPI1 flash. But before power-off it was there.<br>
> >  > > <br>
> >  > > How were you verifying the data was there before the poweroff?<br>
> >  > > <br>
> >  > > > <br>
> >  > > > We are using OpenBMC Linux version 4.18.7 and pflash v6.1<br>
> >  > > <br>
> >  > > Thanks for the versions. Should be handy as we dig deeper.<br>
> >  > > <br>
> >  ><br>
> >  <br>
><br>
</blockquote></div>