All of lore.kernel.org
 help / color / mirror / Atom feed
* Changing ethernet port speed
@ 2022-12-01 17:27 Hamid Amirrad
  2022-12-04  6:21 ` Bruce Ferrell
  2022-12-04 23:45 ` Zev Weiss
  0 siblings, 2 replies; 11+ messages in thread
From: Hamid Amirrad @ 2022-12-01 17:27 UTC (permalink / raw)
  To: openbmc

[-- Attachment #1: Type: text/plain, Size: 776 bytes --]

Hi,

I am trying to change the Ethernet port speed from 10Mbps to 1Gbps, but I
can't find a way to do that. Can you please point me in the right direction?

Thanks,
Hamid


ast# version
U-Boot 2016.07 (Jun 10 2020 - 10:12:49 +0000)
arm-openbmc-linux-gnueabi-gcc (GCC) 11.2.0
GNU ld (GNU Binutils) 2.37.20210721

ast# printenv
SN=8513060012
baudrate=115200
bootargs=console=ttyS4,115200n8 root=/dev/ram rw
bootcmd=bootm 20080000
bootdelay=2
ethact=FTGMAC100#0
ethaddr=00:02:C5:38:1D:DF
ethaddr1=00:02:C5:38:1D:E0
ipaddr=172.16.141.104
spi_dma=yes
stderr=serial
stdin=serial
stdout=serial
verify=yes

ast# ping 172.16.141.1
FTGMAC100#0: link up, *10Mbps half-duplex*
Using FTGMAC100#0 device

ARP Retry count exceeded; starting again
ping failed; host 172.16.141.1 is not alive

[-- Attachment #2: Type: text/html, Size: 1065 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Changing ethernet port speed
  2022-12-01 17:27 Changing ethernet port speed Hamid Amirrad
@ 2022-12-04  6:21 ` Bruce Ferrell
  2022-12-04  8:18   ` [Phishing Risk] [External] " Zhang Jian
  2022-12-04 23:45 ` Zev Weiss
  1 sibling, 1 reply; 11+ messages in thread
From: Bruce Ferrell @ 2022-12-04  6:21 UTC (permalink / raw)
  To: openbmc

[-- Attachment #1: Type: text/plain, Size: 943 bytes --]


Normally, those parms should be modified with ipmitool


On 12/1/22 9:27 AM, Hamid Amirrad wrote:
> Hi,
>
> I am trying to change the Ethernet port speed from 10Mbps to 1Gbps, 
> but I can't find a way to do that. Can you please point me in the 
> right direction?
>
> Thanks,
> Hamid
>
>
> ast# version
> U-Boot 2016.07 (Jun 10 2020 - 10:12:49 +0000)
> arm-openbmc-linux-gnueabi-gcc (GCC) 11.2.0
> GNU ld (GNU Binutils) 2.37.20210721
>
> ast# printenv
> SN=8513060012
> baudrate=115200
> bootargs=console=ttyS4,115200n8 root=/dev/ram rw
> bootcmd=bootm 20080000
> bootdelay=2
> ethact=FTGMAC100#0
> ethaddr=00:02:C5:38:1D:DF
> ethaddr1=00:02:C5:38:1D:E0
> ipaddr=172.16.141.104
> spi_dma=yes
> stderr=serial
> stdin=serial
> stdout=serial
> verify=yes
>
> ast# ping 172.16.141.1
> FTGMAC100#0: link up, *10Mbps half-duplex*
> Using FTGMAC100#0 device
>
> ARP Retry count exceeded; starting again
> ping failed; host 172.16.141.1 is not alive

[-- Attachment #2: Type: text/html, Size: 2100 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Phishing Risk] [External] Re: Changing ethernet port speed
  2022-12-04  6:21 ` Bruce Ferrell
@ 2022-12-04  8:18   ` Zhang Jian
  0 siblings, 0 replies; 11+ messages in thread
From: Zhang Jian @ 2022-12-04  8:18 UTC (permalink / raw)
  To: Bruce Ferrell; +Cc: openbmc

Hi Bruce;

Where are you want to set the duplex and speed?

For linux, I use ethtool. See:
https://phoenixnap.com/kb/ethtool-command-change-speed-duplex-ethernet-card-linux
For u-boot, I think you need use `mdio` to change the register of
`phy`.(I'm not sure if any better way.).

On Sun, Dec 4, 2022 at 3:10 PM Bruce Ferrell <bferrell@baywinds.org> wrote:
>
>
> Normally, those parms should be modified with ipmitool
>
>
> On 12/1/22 9:27 AM, Hamid Amirrad wrote:
>
> Hi,
>
> I am trying to change the Ethernet port speed from 10Mbps to 1Gbps, but I can't find a way to do that. Can you please point me in the right direction?
>
> Thanks,
> Hamid
>
>
> ast# version
> U-Boot 2016.07 (Jun 10 2020 - 10:12:49 +0000)
> arm-openbmc-linux-gnueabi-gcc (GCC) 11.2.0
> GNU ld (GNU Binutils) 2.37.20210721
>
> ast# printenv
> SN=8513060012
> baudrate=115200
> bootargs=console=ttyS4,115200n8 root=/dev/ram rw
> bootcmd=bootm 20080000
> bootdelay=2
> ethact=FTGMAC100#0
> ethaddr=00:02:C5:38:1D:DF
> ethaddr1=00:02:C5:38:1D:E0
> ipaddr=172.16.141.104
> spi_dma=yes
> stderr=serial
> stdin=serial
> stdout=serial
> verify=yes
>
> ast# ping 172.16.141.1
> FTGMAC100#0: link up, 10Mbps half-duplex
> Using FTGMAC100#0 device
>
> ARP Retry count exceeded; starting again
> ping failed; host 172.16.141.1 is not alive

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Changing ethernet port speed
  2022-12-01 17:27 Changing ethernet port speed Hamid Amirrad
  2022-12-04  6:21 ` Bruce Ferrell
@ 2022-12-04 23:45 ` Zev Weiss
  2022-12-06 19:27   ` Hamid Amirrad
  1 sibling, 1 reply; 11+ messages in thread
From: Zev Weiss @ 2022-12-04 23:45 UTC (permalink / raw)
  To: Hamid Amirrad; +Cc: openbmc

On Thu, Dec 01, 2022 at 09:27:44AM PST, Hamid Amirrad wrote:
>Hi,
>
>I am trying to change the Ethernet port speed from 10Mbps to 1Gbps, but I
>can't find a way to do that. Can you please point me in the right direction?
>
>Thanks,
>Hamid
>
>
>ast# version
>U-Boot 2016.07 (Jun 10 2020 - 10:12:49 +0000)
>arm-openbmc-linux-gnueabi-gcc (GCC) 11.2.0
>GNU ld (GNU Binutils) 2.37.20210721
>
>ast# printenv
>SN=8513060012
>baudrate=115200
>bootargs=console=ttyS4,115200n8 root=/dev/ram rw
>bootcmd=bootm 20080000
>bootdelay=2
>ethact=FTGMAC100#0
>ethaddr=00:02:C5:38:1D:DF
>ethaddr1=00:02:C5:38:1D:E0
>ipaddr=172.16.141.104
>spi_dma=yes
>stderr=serial
>stdin=serial
>stdout=serial
>verify=yes
>
>ast# ping 172.16.141.1
>FTGMAC100#0: link up, *10Mbps half-duplex*
>Using FTGMAC100#0 device
>
>ARP Retry count exceeded; starting again
>ping failed; host 172.16.141.1 is not alive

Given what's pasted here, it looks like it's u-boot where you're seeing
the problem -- does Linux successfully autonegotiate a higher speed?

Also, is this a Broadcom phy by any chance?  I've got a platform with a
Broadcom BMC54616S phy on which Linux autonegotiates a 1Gbps link just
fine, but u-boot would only negotiate slower speeds (I don't remember
offhand if it was 10Mbps or 100Mbps).  I've got a hackish patch I'm
running internally that gets 1Gbps aneg working in u-boot, but at the
cost of breaking 10/100Mbps aneg (and I haven't gotten around to digging
in and fixing that and sending it upstream).


Zev

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Changing ethernet port speed
  2022-12-04 23:45 ` Zev Weiss
@ 2022-12-06 19:27   ` Hamid Amirrad
  2022-12-06 21:39     ` Zev Weiss
  0 siblings, 1 reply; 11+ messages in thread
From: Hamid Amirrad @ 2022-12-06 19:27 UTC (permalink / raw)
  To: Zev Weiss; +Cc: openbmc

[-- Attachment #1: Type: text/plain, Size: 2751 bytes --]

Hi,

I see that the u-boot has been recently upgraded to 2019.04.
I created the image as follows:
1. Checked out the code
2. . setup evb-ast2500
3. time bitbake obmc-phosphor-image

Then I copied the created image (bmc-image)
from /trunk/build/evb-ast2500/tmp/deploy/images/evb-ast2500/obmc-phosphor-image-evb-ast2500-20221122160306.static.mtd.all.tar
to my LC having BMC module. I used ./socflash.sh to upgrade the BMC image
to one just created. After upgrade is done, I still see the old u-boot
version (below). Is this something else I need to do for the u-boot to be
at revision 2019?

ast# version

U-Boot 2016.07 (Jun 10 2020 - 10:12:49 +0000)
arm-openbmc-linux-gnueabi-gcc (GCC) 11.2.0
GNU ld (GNU Binutils) 2.37.20210721

I am using BMC simulator on another server and on that the u-boot revision
is fine (below). Not sure why u-boot is not at 2019 when I compile the code
directly.
ast# version
U-Boot 2019.04 (Nov 10 2022 - 00:12:58 +0000)

arm-openbmc-linux-gnueabi-gcc (GCC) 12.2.0
GNU ld (GNU Binutils) 2.39.0.20220819

Any help would be greatly appreciated.

Thanks,
Hamid

On Sun, Dec 4, 2022 at 6:45 PM Zev Weiss <zweiss@equinix.com> wrote:

> On Thu, Dec 01, 2022 at 09:27:44AM PST, Hamid Amirrad wrote:
> >Hi,
> >
> >I am trying to change the Ethernet port speed from 10Mbps to 1Gbps, but I
> >can't find a way to do that. Can you please point me in the right
> direction?
> >
> >Thanks,
> >Hamid
> >
> >
> >ast# version
> >U-Boot 2016.07 (Jun 10 2020 - 10:12:49 +0000)
> >arm-openbmc-linux-gnueabi-gcc (GCC) 11.2.0
> >GNU ld (GNU Binutils) 2.37.20210721
> >
> >ast# printenv
> >SN=8513060012
> >baudrate=115200
> >bootargs=console=ttyS4,115200n8 root=/dev/ram rw
> >bootcmd=bootm 20080000
> >bootdelay=2
> >ethact=FTGMAC100#0
> >ethaddr=00:02:C5:38:1D:DF
> >ethaddr1=00:02:C5:38:1D:E0
> >ipaddr=172.16.141.104
> >spi_dma=yes
> >stderr=serial
> >stdin=serial
> >stdout=serial
> >verify=yes
> >
> >ast# ping 172.16.141.1
> >FTGMAC100#0: link up, *10Mbps half-duplex*
> >Using FTGMAC100#0 device
> >
> >ARP Retry count exceeded; starting again
> >ping failed; host 172.16.141.1 is not alive
>
> Given what's pasted here, it looks like it's u-boot where you're seeing
> the problem -- does Linux successfully autonegotiate a higher speed?
>
> Also, is this a Broadcom phy by any chance?  I've got a platform with a
> Broadcom BMC54616S phy on which Linux autonegotiates a 1Gbps link just
> fine, but u-boot would only negotiate slower speeds (I don't remember
> offhand if it was 10Mbps or 100Mbps).  I've got a hackish patch I'm
> running internally that gets 1Gbps aneg working in u-boot, but at the
> cost of breaking 10/100Mbps aneg (and I haven't gotten around to digging
> in and fixing that and sending it upstream).
>
>
> Zev
>

[-- Attachment #2: Type: text/html, Size: 3569 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Changing ethernet port speed
  2022-12-06 19:27   ` Hamid Amirrad
@ 2022-12-06 21:39     ` Zev Weiss
  2022-12-07 17:53       ` Hamid Amirrad
  0 siblings, 1 reply; 11+ messages in thread
From: Zev Weiss @ 2022-12-06 21:39 UTC (permalink / raw)
  To: Hamid Amirrad; +Cc: openbmc

On Tue, Dec 06, 2022 at 11:27:47AM PST, Hamid Amirrad wrote:
>Hi,
>
>I see that the u-boot has been recently upgraded to 2019.04.
>I created the image as follows:
>1. Checked out the code
>2. . setup evb-ast2500
>3. time bitbake obmc-phosphor-image
>
>Then I copied the created image (bmc-image)
>from /trunk/build/evb-ast2500/tmp/deploy/images/evb-ast2500/obmc-phosphor-image-evb-ast2500-20221122160306.static.mtd.all.tar
>to my LC having BMC module. I used ./socflash.sh to upgrade the BMC image
>to one just created. After upgrade is done, I still see the old u-boot
>version (below). Is this something else I need to do for the u-boot to be
>at revision 2019?
>
>ast# version
>
>U-Boot 2016.07 (Jun 10 2020 - 10:12:49 +0000)
>arm-openbmc-linux-gnueabi-gcc (GCC) 11.2.0
>GNU ld (GNU Binutils) 2.37.20210721
>
>I am using BMC simulator on another server and on that the u-boot revision
>is fine (below). Not sure why u-boot is not at 2019 when I compile the code
>directly.
>ast# version
>U-Boot 2019.04 (Nov 10 2022 - 00:12:58 +0000)
>
>arm-openbmc-linux-gnueabi-gcc (GCC) 12.2.0
>GNU ld (GNU Binutils) 2.39.0.20220819
>
>Any help would be greatly appreciated.
>
>Thanks,
>Hamid
>

What OpenBMC commit are you building from?  It looks like evb-ast2500
got updated to the newer u-boot branch in February:
https://github.com/openbmc/openbmc/commit/7d75b9b68370374db00e9c99b5406ebb6b18512f

If the same image is showing the expected u-boot version in a simulator
(qemu?), then it sounds like maybe your installation procedure isn't
doing what you intended it to.  I don't know what the 'socflash.sh' you
referred to above is; if you can boot into a reasonably healthy OpenBMC
environment, I'd suggest using the normal firmware-update mechanism.  If
the existing firmware is something else or isn't working enough to boot
normally you might need to resort to a hardware flash programmer or
something (or if you can get your u-boot networking working at all, even
at a slow speed, you could TFTP in an OpenBMC kernel/initrd, boot into
that, and use flashcp to write the full OpenBMC image).


Zev

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Changing ethernet port speed
  2022-12-06 21:39     ` Zev Weiss
@ 2022-12-07 17:53       ` Hamid Amirrad
  2022-12-07 19:47         ` Hamid Amirrad
  0 siblings, 1 reply; 11+ messages in thread
From: Hamid Amirrad @ 2022-12-07 17:53 UTC (permalink / raw)
  To: Zev Weiss; +Cc: openbmc

[-- Attachment #1: Type: text/plain, Size: 3320 bytes --]

Hi Zev,

I am checking out the code from: https://github.com/openbmc/openbmc
Revision I am building from is 15231.

sockflash.sh output is below for upgrading:

./socflash.sh image-bmc image-bmc
ASPEED SOC Flash Utility v.1.22.08
Warning:
SoCflash utility is only for engineers to update the firmware in lab,
it is not a commercialized software product,
ASPEED has not done compatibility/reliability stress test for SoCflash.
Please do not use this utility for any mass production purpose.
Press y to continue if you are agree ....
y
Find ASPEED Device 1a03:2000 on 7:0.0
MMIO Virtual Address: abb9000
Relocate IO Base: b000
Found ASPEED Device 1a03:2500 rev. 41
Static Memory Controller Information:
CS0 Flash Type is SPI
CS1 Flash Type is SPI
CS2 Flash Type is SPI
CS3 Flash Type is NOR
CS4 Flash Type is NOR
Boot CS is 0
Option Information:
CS: 0
Flash Type: SPI
[Warning] Don't AC OFF or Reboot System During BMC Firmware Update!!
Find Flash Chip #1: 64MB SPI Flash
Backup Flash Chip O.K.
Update Flash Chip #1 O.K.
Update Flash Chip O.K.

On Tue, Dec 6, 2022 at 4:39 PM Zev Weiss <zweiss@equinix.com> wrote:

> On Tue, Dec 06, 2022 at 11:27:47AM PST, Hamid Amirrad wrote:
> >Hi,
> >
> >I see that the u-boot has been recently upgraded to 2019.04.
> >I created the image as follows:
> >1. Checked out the code
> >2. . setup evb-ast2500
> >3. time bitbake obmc-phosphor-image
> >
> >Then I copied the created image (bmc-image)
> >from
> /trunk/build/evb-ast2500/tmp/deploy/images/evb-ast2500/obmc-phosphor-image-evb-ast2500-20221122160306.static.mtd.all.tar
> >to my LC having BMC module. I used ./socflash.sh to upgrade the BMC image
> >to one just created. After upgrade is done, I still see the old u-boot
> >version (below). Is this something else I need to do for the u-boot to be
> >at revision 2019?
> >
> >ast# version
> >
> >U-Boot 2016.07 (Jun 10 2020 - 10:12:49 +0000)
> >arm-openbmc-linux-gnueabi-gcc (GCC) 11.2.0
> >GNU ld (GNU Binutils) 2.37.20210721
> >
> >I am using BMC simulator on another server and on that the u-boot revision
> >is fine (below). Not sure why u-boot is not at 2019 when I compile the
> code
> >directly.
> >ast# version
> >U-Boot 2019.04 (Nov 10 2022 - 00:12:58 +0000)
> >
> >arm-openbmc-linux-gnueabi-gcc (GCC) 12.2.0
> >GNU ld (GNU Binutils) 2.39.0.20220819
> >
> >Any help would be greatly appreciated.
> >
> >Thanks,
> >Hamid
> >
>
> What OpenBMC commit are you building from?  It looks like evb-ast2500
> got updated to the newer u-boot branch in February:
>
> https://github.com/openbmc/openbmc/commit/7d75b9b68370374db00e9c99b5406ebb6b18512f
>
> If the same image is showing the expected u-boot version in a simulator
> (qemu?), then it sounds like maybe your installation procedure isn't
> doing what you intended it to.  I don't know what the 'socflash.sh' you
> referred to above is; if you can boot into a reasonably healthy OpenBMC
> environment, I'd suggest using the normal firmware-update mechanism.  If
> the existing firmware is something else or isn't working enough to boot
> normally you might need to resort to a hardware flash programmer or
> something (or if you can get your u-boot networking working at all, even
> at a slow speed, you could TFTP in an OpenBMC kernel/initrd, boot into
> that, and use flashcp to write the full OpenBMC image).
>
>
> Zev
>

[-- Attachment #2: Type: text/html, Size: 4241 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Changing ethernet port speed
  2022-12-07 17:53       ` Hamid Amirrad
@ 2022-12-07 19:47         ` Hamid Amirrad
  2022-12-08 14:46           ` Hamid Amirrad
  0 siblings, 1 reply; 11+ messages in thread
From: Hamid Amirrad @ 2022-12-07 19:47 UTC (permalink / raw)
  To: Zev Weiss; +Cc: openbmc

[-- Attachment #1: Type: text/plain, Size: 3742 bytes --]

Hi Zev,

I might have installed it correctly this time (still have to confirm).
However, I get the following, cant find any details about username
password. where can I find it?
evb-ast2500 login:

Thanks,
Hamid

On Wed, Dec 7, 2022 at 12:53 PM Hamid Amirrad <amirradh@gmail.com> wrote:

> Hi Zev,
>
> I am checking out the code from: https://github.com/openbmc/openbmc
> Revision I am building from is 15231.
>
> sockflash.sh output is below for upgrading:
>
> ./socflash.sh image-bmc image-bmc
> ASPEED SOC Flash Utility v.1.22.08
> Warning:
> SoCflash utility is only for engineers to update the firmware in lab,
> it is not a commercialized software product,
> ASPEED has not done compatibility/reliability stress test for SoCflash.
> Please do not use this utility for any mass production purpose.
> Press y to continue if you are agree ....
> y
> Find ASPEED Device 1a03:2000 on 7:0.0
> MMIO Virtual Address: abb9000
> Relocate IO Base: b000
> Found ASPEED Device 1a03:2500 rev. 41
> Static Memory Controller Information:
> CS0 Flash Type is SPI
> CS1 Flash Type is SPI
> CS2 Flash Type is SPI
> CS3 Flash Type is NOR
> CS4 Flash Type is NOR
> Boot CS is 0
> Option Information:
> CS: 0
> Flash Type: SPI
> [Warning] Don't AC OFF or Reboot System During BMC Firmware Update!!
> Find Flash Chip #1: 64MB SPI Flash
> Backup Flash Chip O.K.
> Update Flash Chip #1 O.K.
> Update Flash Chip O.K.
>
> On Tue, Dec 6, 2022 at 4:39 PM Zev Weiss <zweiss@equinix.com> wrote:
>
>> On Tue, Dec 06, 2022 at 11:27:47AM PST, Hamid Amirrad wrote:
>> >Hi,
>> >
>> >I see that the u-boot has been recently upgraded to 2019.04.
>> >I created the image as follows:
>> >1. Checked out the code
>> >2. . setup evb-ast2500
>> >3. time bitbake obmc-phosphor-image
>> >
>> >Then I copied the created image (bmc-image)
>> >from
>> /trunk/build/evb-ast2500/tmp/deploy/images/evb-ast2500/obmc-phosphor-image-evb-ast2500-20221122160306.static.mtd.all.tar
>> >to my LC having BMC module. I used ./socflash.sh to upgrade the BMC image
>> >to one just created. After upgrade is done, I still see the old u-boot
>> >version (below). Is this something else I need to do for the u-boot to be
>> >at revision 2019?
>> >
>> >ast# version
>> >
>> >U-Boot 2016.07 (Jun 10 2020 - 10:12:49 +0000)
>> >arm-openbmc-linux-gnueabi-gcc (GCC) 11.2.0
>> >GNU ld (GNU Binutils) 2.37.20210721
>> >
>> >I am using BMC simulator on another server and on that the u-boot
>> revision
>> >is fine (below). Not sure why u-boot is not at 2019 when I compile the
>> code
>> >directly.
>> >ast# version
>> >U-Boot 2019.04 (Nov 10 2022 - 00:12:58 +0000)
>> >
>> >arm-openbmc-linux-gnueabi-gcc (GCC) 12.2.0
>> >GNU ld (GNU Binutils) 2.39.0.20220819
>> >
>> >Any help would be greatly appreciated.
>> >
>> >Thanks,
>> >Hamid
>> >
>>
>> What OpenBMC commit are you building from?  It looks like evb-ast2500
>> got updated to the newer u-boot branch in February:
>>
>> https://github.com/openbmc/openbmc/commit/7d75b9b68370374db00e9c99b5406ebb6b18512f
>>
>> If the same image is showing the expected u-boot version in a simulator
>> (qemu?), then it sounds like maybe your installation procedure isn't
>> doing what you intended it to.  I don't know what the 'socflash.sh' you
>> referred to above is; if you can boot into a reasonably healthy OpenBMC
>> environment, I'd suggest using the normal firmware-update mechanism.  If
>> the existing firmware is something else or isn't working enough to boot
>> normally you might need to resort to a hardware flash programmer or
>> something (or if you can get your u-boot networking working at all, even
>> at a slow speed, you could TFTP in an OpenBMC kernel/initrd, boot into
>> that, and use flashcp to write the full OpenBMC image).
>>
>>
>> Zev
>>
>

[-- Attachment #2: Type: text/html, Size: 4912 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Changing ethernet port speed
  2022-12-07 19:47         ` Hamid Amirrad
@ 2022-12-08 14:46           ` Hamid Amirrad
  2022-12-09  6:59             ` Zev Weiss
  0 siblings, 1 reply; 11+ messages in thread
From: Hamid Amirrad @ 2022-12-08 14:46 UTC (permalink / raw)
  To: Zev Weiss; +Cc: openbmc

[-- Attachment #1: Type: text/plain, Size: 4590 bytes --]

Hi Zeb,

I found a default username/password (root:0penBmc). I can log in to my
newly installed image. The only thing that confuses me is that on the qemu
simulator, I have the following interface
ast#

When I type (?), it shows me all the available commands such as (version,
setenv, printenv, etc). Also no password is required to login.

With the new image that I compiled from the github and installed on my BMC
Module, I have the following interface:
root@evb-ast2500:~#

When I type (?), it doesn't work and I have a whole different available
commands (mostly from linux). Also need password to login.

Is this expected?

Thanks alot,
Hamid

On Wed, Dec 7, 2022 at 2:47 PM Hamid Amirrad <amirradh@gmail.com> wrote:

> Hi Zev,
>
> I might have installed it correctly this time (still have to confirm).
> However, I get the following, cant find any details about username
> password. where can I find it?
> evb-ast2500 login:
>
> Thanks,
> Hamid
>
> On Wed, Dec 7, 2022 at 12:53 PM Hamid Amirrad <amirradh@gmail.com> wrote:
>
>> Hi Zev,
>>
>> I am checking out the code from: https://github.com/openbmc/openbmc
>> Revision I am building from is 15231.
>>
>> sockflash.sh output is below for upgrading:
>>
>> ./socflash.sh image-bmc image-bmc
>> ASPEED SOC Flash Utility v.1.22.08
>> Warning:
>> SoCflash utility is only for engineers to update the firmware in lab,
>> it is not a commercialized software product,
>> ASPEED has not done compatibility/reliability stress test for SoCflash.
>> Please do not use this utility for any mass production purpose.
>> Press y to continue if you are agree ....
>> y
>> Find ASPEED Device 1a03:2000 on 7:0.0
>> MMIO Virtual Address: abb9000
>> Relocate IO Base: b000
>> Found ASPEED Device 1a03:2500 rev. 41
>> Static Memory Controller Information:
>> CS0 Flash Type is SPI
>> CS1 Flash Type is SPI
>> CS2 Flash Type is SPI
>> CS3 Flash Type is NOR
>> CS4 Flash Type is NOR
>> Boot CS is 0
>> Option Information:
>> CS: 0
>> Flash Type: SPI
>> [Warning] Don't AC OFF or Reboot System During BMC Firmware Update!!
>> Find Flash Chip #1: 64MB SPI Flash
>> Backup Flash Chip O.K.
>> Update Flash Chip #1 O.K.
>> Update Flash Chip O.K.
>>
>> On Tue, Dec 6, 2022 at 4:39 PM Zev Weiss <zweiss@equinix.com> wrote:
>>
>>> On Tue, Dec 06, 2022 at 11:27:47AM PST, Hamid Amirrad wrote:
>>> >Hi,
>>> >
>>> >I see that the u-boot has been recently upgraded to 2019.04.
>>> >I created the image as follows:
>>> >1. Checked out the code
>>> >2. . setup evb-ast2500
>>> >3. time bitbake obmc-phosphor-image
>>> >
>>> >Then I copied the created image (bmc-image)
>>> >from
>>> /trunk/build/evb-ast2500/tmp/deploy/images/evb-ast2500/obmc-phosphor-image-evb-ast2500-20221122160306.static.mtd.all.tar
>>> >to my LC having BMC module. I used ./socflash.sh to upgrade the BMC
>>> image
>>> >to one just created. After upgrade is done, I still see the old u-boot
>>> >version (below). Is this something else I need to do for the u-boot to
>>> be
>>> >at revision 2019?
>>> >
>>> >ast# version
>>> >
>>> >U-Boot 2016.07 (Jun 10 2020 - 10:12:49 +0000)
>>> >arm-openbmc-linux-gnueabi-gcc (GCC) 11.2.0
>>> >GNU ld (GNU Binutils) 2.37.20210721
>>> >
>>> >I am using BMC simulator on another server and on that the u-boot
>>> revision
>>> >is fine (below). Not sure why u-boot is not at 2019 when I compile the
>>> code
>>> >directly.
>>> >ast# version
>>> >U-Boot 2019.04 (Nov 10 2022 - 00:12:58 +0000)
>>> >
>>> >arm-openbmc-linux-gnueabi-gcc (GCC) 12.2.0
>>> >GNU ld (GNU Binutils) 2.39.0.20220819
>>> >
>>> >Any help would be greatly appreciated.
>>> >
>>> >Thanks,
>>> >Hamid
>>> >
>>>
>>> What OpenBMC commit are you building from?  It looks like evb-ast2500
>>> got updated to the newer u-boot branch in February:
>>>
>>> https://github.com/openbmc/openbmc/commit/7d75b9b68370374db00e9c99b5406ebb6b18512f
>>>
>>> If the same image is showing the expected u-boot version in a simulator
>>> (qemu?), then it sounds like maybe your installation procedure isn't
>>> doing what you intended it to.  I don't know what the 'socflash.sh' you
>>> referred to above is; if you can boot into a reasonably healthy OpenBMC
>>> environment, I'd suggest using the normal firmware-update mechanism.  If
>>> the existing firmware is something else or isn't working enough to boot
>>> normally you might need to resort to a hardware flash programmer or
>>> something (or if you can get your u-boot networking working at all, even
>>> at a slow speed, you could TFTP in an OpenBMC kernel/initrd, boot into
>>> that, and use flashcp to write the full OpenBMC image).
>>>
>>>
>>> Zev
>>>
>>

[-- Attachment #2: Type: text/html, Size: 6118 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Changing ethernet port speed
  2022-12-08 14:46           ` Hamid Amirrad
@ 2022-12-09  6:59             ` Zev Weiss
  2022-12-13 17:48               ` Hamid Amirrad
  0 siblings, 1 reply; 11+ messages in thread
From: Zev Weiss @ 2022-12-09  6:59 UTC (permalink / raw)
  To: Hamid Amirrad; +Cc: openbmc

On Thu, Dec 08, 2022 at 06:46:18AM PST, Hamid Amirrad wrote:
>Hi Zeb,
>
>I found a default username/password (root:0penBmc). I can log in to my
>newly installed image. The only thing that confuses me is that on the qemu
>simulator, I have the following interface
>ast#
>

That looks like a u-boot prompt, which would imply that it didn't boot
properly.  Do you see any messages in the output before that prompt,
perhaps something about failing to find or load an image to boot?

>When I type (?), it shows me all the available commands such as (version,
>setenv, printenv, etc). Also no password is required to login.
>
>With the new image that I compiled from the github and installed on my BMC
>Module, I have the following interface:
>root@evb-ast2500:~#
>
>When I type (?), it doesn't work and I have a whole different available
>commands (mostly from linux). Also need password to login.
>

And that looks like a more fully booted bmc.

>Is this expected?
>

For a normally-running system, yes.  I'm not sure offhand what might be
causing your apparent boot failure in qemu though.


Zev

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Changing ethernet port speed
  2022-12-09  6:59             ` Zev Weiss
@ 2022-12-13 17:48               ` Hamid Amirrad
  0 siblings, 0 replies; 11+ messages in thread
From: Hamid Amirrad @ 2022-12-13 17:48 UTC (permalink / raw)
  To: Zev Weiss; +Cc: openbmc

[-- Attachment #1: Type: text/plain, Size: 1904 bytes --]

Thanks Zev. I think I have it running now.

One last question I have. Is there a way for me to include utilities in the
image (such as ethtool, dpkg, etc) without having to connect the module to
the internet and installing them that way?
Does OpenBMC image come with those utilities?

below is my image details:

root@evb-ast2500:~# cat /etc/os-release
ID=openbmc-phosphor
NAME="Phosphor OpenBMC (Phosphor OpenBMC Project Reference Distro)"
VERSION="None"
VERSION_ID=none
VERSION_CODENAME="${DISTRO_CODENAME}"
PRETTY_NAME="Phosphor OpenBMC (Phosphor OpenBMC Project Reference Distro)
None"
BUILD_ID="20221206174257"
OPENBMC_TARGET_MACHINE="evb-ast2500"
EXTENDED_VERSION="None"

On Fri, Dec 9, 2022 at 1:59 AM Zev Weiss <zweiss@equinix.com> wrote:

> On Thu, Dec 08, 2022 at 06:46:18AM PST, Hamid Amirrad wrote:
> >Hi Zeb,
> >
> >I found a default username/password (root:0penBmc). I can log in to my
> >newly installed image. The only thing that confuses me is that on the qemu
> >simulator, I have the following interface
> >ast#
> >
>
> That looks like a u-boot prompt, which would imply that it didn't boot
> properly.  Do you see any messages in the output before that prompt,
> perhaps something about failing to find or load an image to boot?
>
> >When I type (?), it shows me all the available commands such as (version,
> >setenv, printenv, etc). Also no password is required to login.
> >
> >With the new image that I compiled from the github and installed on my BMC
> >Module, I have the following interface:
> >root@evb-ast2500:~#
> >
> >When I type (?), it doesn't work and I have a whole different available
> >commands (mostly from linux). Also need password to login.
> >
>
> And that looks like a more fully booted bmc.
>
> >Is this expected?
> >
>
> For a normally-running system, yes.  I'm not sure offhand what might be
> causing your apparent boot failure in qemu though.
>
>
> Zev
>

[-- Attachment #2: Type: text/html, Size: 7545 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2022-12-15  7:20 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-01 17:27 Changing ethernet port speed Hamid Amirrad
2022-12-04  6:21 ` Bruce Ferrell
2022-12-04  8:18   ` [Phishing Risk] [External] " Zhang Jian
2022-12-04 23:45 ` Zev Weiss
2022-12-06 19:27   ` Hamid Amirrad
2022-12-06 21:39     ` Zev Weiss
2022-12-07 17:53       ` Hamid Amirrad
2022-12-07 19:47         ` Hamid Amirrad
2022-12-08 14:46           ` Hamid Amirrad
2022-12-09  6:59             ` Zev Weiss
2022-12-13 17:48               ` Hamid Amirrad

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.