Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move UART setup outside DRAM init #2

Closed

Conversation

nkskjames
Copy link

Signed-off-by: Norman James nkskjames@gmail.com

@nkskjames nkskjames force-pushed the uart_fix branch 2 times, most recently from 9a3cf8c to 9f709df Compare February 22, 2016 02:00
When a BMC reboot occurs an SOC reset is performed.
An SOC reset does not reset the DRAM.  The uboot platform
code initialized UART in dram init section.  So an SOC
reset was causing the UART to not be initialized on reboot.
This moves the UART setup code before dram init stage.
This change should be integrated if SOC reset method is used
to reboot BMC otherwise you won't see a u-boot console.

Signed-off-by: Norman James <nkskjames@gmail.com>
@shenki
Copy link
Member

shenki commented Feb 23, 2016

Merged in 4b44678

@shenki shenki closed this Feb 23, 2016
eddiejames pushed a commit to eddiejames/u-boot that referenced this pull request Jul 10, 2020
now MAC#1 and MAC#2 can execute ping command successfully.
eddiejames pushed a commit to eddiejames/u-boot that referenced this pull request Jul 10, 2020
dkodihal pushed a commit to NVIDIA/u-boot that referenced this pull request May 7, 2024
…ement

Test log:
U-Boot 2019.04 (Sep 16 2021 - 10:36:57 +0000)

SOC: AST2600-A3
RST: WDT1 SOC
PCI RST: openbmc#1 openbmc#2
eSPI Mode: SIO:Enable : SuperIO-2e
Eth: MAC0: RGMII, MAC1: RGMII, MAC2: RGMII, MAC3: RGMII
Model: AST2600 EVB: E4830
DRAM:  already initialized, 1008 MiB (capacity:1024 MiB, VGA:16 MiB), ECC off
MMC:

sdhci_slot0@100: 1, sdhci_slot1@200: 2, emmc_slot0@100: 0
Loading Environment from SPI Flash... SF: Detected n25q512ax3 with page size 256 Bytes, erase size 4 KiB, total 64 MiB
OK
In:    serial@1e784000
Out:   serial@1e784000
Err:   serial@1e784000
Model: AST2600 EVB: E4830
Net:   No MDIO found.

Warning: ftgmac@1e670000 (eth2) using random MAC address - ee:9e:a9:78:b4:61
eth2: ftgmac@1e670000
Hit any key to stop autoboot:  0
ast#
ast# printenv
baudrate=115200
bootargs=console=ttyS4,115200n8 root=/dev/ram rw
bootcmd=bootm 20100000
bootdelay=2
bootfile=all.bin
fdtcontroladdr=bcf83b38
gatewayip=10.32.204.1
ipaddr=10.32.204.193
netmask=255.255.255.0
serverip=10.32.204.52
stderr=serial@1e784000
stdin=serial@1e784000
stdout=serial@1e784000
verify=yes

Environment size: 308/65532 bytes
ast# ping 10.32.204.52
ftgmac@1e670000: link up, 100 Mbps full-duplex mac:ee:9e:a9:78:b4:61
Using ftgmac@1e670000 device
host 10.32.204.52 is alive
dkodihal added a commit to NVIDIA/u-boot that referenced this pull request May 7, 2024
U-boot: E4830 related changes 100Mbps configuration for Ethernet & PCIe and USB enablement

U-boot changes to address Ethernet SW bring up on E4830 board and Initializing PCIe & USB core.
 
Test log:
U-Boot 2019.04 (Sep 16 2021 - 10:36:57 +0000)

SOC: AST2600-A3
RST: WDT1 SOC
PCI RST: openbmc#1 openbmc#2
eSPI Mode: SIO:Enable : SuperIO-2e
Eth: MAC0: RGMII, MAC1: RGMII, MAC2: RGMII, MAC3: RGMII
Model: AST2600 EVB: E4830
DRAM:  already initialized, 1008 MiB (capacity:1024 MiB, VGA:16 MiB), ECC off
MMC:

sdhci_slot0@100: 1, sdhci_slot1@200: 2, emmc_slot0@100: 0
Loading Environment from SPI Flash... SF: Detected n25q512ax3 with page size 256 Bytes, erase size 4 KiB, total 64 MiB
OK
In:    serial@1e784000
Out:   serial@1e784000
Err:   serial@1e784000
Model: AST2600 EVB: E4830
Net:   No MDIO found.

Warning: ftgmac@1e670000 (eth2) using random MAC address - ee:9e:a9:78:b4:61
eth2: ftgmac@1e670000
Hit any key to stop autoboot:  0
ast#
ast# printenv
baudrate=115200
bootargs=console=ttyS4,115200n8 root=/dev/ram rw
bootcmd=bootm 20100000
bootdelay=2
bootfile=all.bin
fdtcontroladdr=bcf83b38
gatewayip=10.32.204.1
ipaddr=10.32.204.193
netmask=255.255.255.0
serverip=10.32.204.52
stderr=serial@1e784000
stdin=serial@1e784000
stdout=serial@1e784000
verify=yes

Environment size: 308/65532 bytes
ast# ping 10.32.204.52
ftgmac@1e670000: link up, 100 Mbps full-duplex mac:ee:9e:a9:78:b4:61
Using ftgmac@1e670000 device
host 10.32.204.52 is alive

See merge request dgx/bmc/u-boot!1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants