- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I have problem after reboot of my system (reboot in linux console or press HPSrst button on AXE5-Eagle devboard), or if I fit fpgacore.rbf from u-boot twice, than boot from emmc stuck on:
Hit any key to stop autoboot: 0
2568192 bytes read in 124 ms (19.8 MiB/s)
...FPGA reconfiguration OK!
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr.uimg
2751 bytes read in 13 ms (206.1 KiB/s)
## Executing script at 81000000
crc32+ Trying to boot Linux from device mmc0
Found kernel in mmc0
First time (power-on or after press nconfig button on devboard AXE5-Eagle) it boots ok - succesfully continues to OS with:
crc32+ Trying to boot Linux from device mmc0
Found kernel in mmc0
5428330 bytes read in 245 ms (21.1 MiB/s)
## Loading kernel from FIT Image at 82000000 ...
Using 'board-0' configuration
Verifying Hash Integrity ... OK
Trying 'kernel' kernel subimage
...
Can somebody help me to overcome this problem?
Thanks.
Martin
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have debug it deeper...
this is u-boot script, where it stucks - I have added some echo "" debug lines...
echo "Found kernel in mmc0";
mmc rescan;
echo "rescan";
mw.l 10d13224 14;
mw.l 10d13228 14;
mw.l 10d1323c 14;
mw.l 10d13234 14;
mw.l 10d13248 14;
mw.l 10d1324C 14;
echo "mw.l 10d1324C 14";
mw.l 0x10D11028 0x01027fb0 1;
mw.l 0x10c03304 0x410 1;
mw.l 0x10c03300 0x00000410;
mw.l 0x10c03300 0x00000000;
mw.l 0x10c03300 0x00000410;
echo "mw.l 0x10c03300 0x00000410";
bridge enable;
echo "bridge enable";
mw.l 0x028000070 0x00000000;
echo "mw.l 0x28000070 0x00000000";
mw.l 0x28000070 0x00000001;
echo "mw.l 0x28000070 0x00000001";
fatload mmc 0:1 ${loadaddr} ${bootfile};
setenv bootargs "bootargs console=ttyS0,115200 root=${mmcroot} rw rootwait";
bootm ${loadaddr};
echo "mw.l 0x28000070 0x00000000";
is not displayed, so 'mw.l 0x28000070 0x00000000' command does not work - only if I fit fpga twice or if reboot...
Unfortunatelly I don't know, what exactly this write to memeory does...
I have tried to disable bridges before next fpga fit, disable bridges before enabling them, but problem persists.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So the simplest example
AXE5_EAGLE # run fitfpga
2568192 bytes read in 125 ms (19.6 MiB/s)
...FPGA reconfiguration OK!
AXE5_EAGLE # md.l 0x028000070 1
28000070: 00000000 ....
AXE5_EAGLE # run fitfpga
2568192 bytes read in 124 ms (19.8 MiB/s)
...FPGA reconfiguration OK!
AXE5_EAGLE # md.l 0x028000070 1
<here it freezes>
fitfpga is defined as:
fitfpga=load mmc 0:1 $loadaddr d/design.core.rbf ; dcache flush ; fpga load 0 $loadaddr $filesize ; bridge enable;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
at 0x02800070 should be FPGA register - USB switch reset register.
So it seems that LWH2F bridge not work, if fpga.core is fitted twice.
Other addresses from LWH2F bridge address pool does not work too (also stucks uboot).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
at 0x02800070 should be FPGA register - USB switch reset register.
So it seems that LWH2F bridge not work, if fpga.core is fitted twice.
Other addresses from LWH2F bridge address pool does not work too (also stucks uboot).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
Sorry for the late response.
Please give me some time to try and reproduce the issue on our dev kit here.
Regards
Jingyang, Teh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
Could you try adding a bridge disable to the fitfpga command?
fitfpga=load mmc 0:1 $loadaddr d/design.core.rbf ; dcache flush ; bridge disable ; fpga load 0 $loadaddr $filesize ; bridge enable;
Regards
Jingyang, Teh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have already tried disable bridges before run fitfpga command, now I have tried it also as you write in fitfpga command after dcache flush, but problem persists.
Thank you,
Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
Thanks for confirming.
I also tested out on my end too and found that it is a valid issue.
Please wait while our team find a solution for this issue.
At the meantime please do not reconfigure the FPGA twice before booting.
Regards
Jingyang, Teh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you,
for now - is possible to somehow reset the board from running linux, as nconfig button was asserted (to safely load fpga.core in uboot)?
For software development I can try to detect in uboot, that fpga is configured and not configure it again. But I want to be able to remotely change fpga.core.rbf, without touching board. Now I can replace fpga.core.rbf and after pushing nconfig button or power down/up the board, linux boots normally. But after reboot from linux, boot stucks in u-boot as described.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
For now there is a workaround you need to change the boot command.
In the boot command, instead of "bridge enable" could you change it to "bridge enable 0x3b".
Instead of enabling all the bridge we skip enabling the F2H bridge.
Regards
Jingyang, Teh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you,
I have changed fitfpga command to load mmc 0:1 $loadaddr d/design.core.rbf ; dcache flush ; bridge disable ; fpga load 0 $loadaddr $filesize ; bridge enable 0x3b;
but problem persists. I tried also command with removed bridge disable.
I have found that also fpga design has problems every second FPGA.core fit - we have design, where FPGA should blink with LEDs, if I fit fpga first time, LEDs are blinking, second time LEDs are not blinking, third time are blinking...
If I fit fpga three times, u-boot will not stuck, but linux system will not boot (stucks) with errors below, in this case NCONFIG button on the board (which I am used to reset thhe board) is not working and I have to proceed power-down, power-up procedure.
[ 3.632132] Waiting for root device /dev/mmcblk0p2...
[ 13.795720] sdhci-cdns 10808000.mmc0: deferred probe timeout, ignoring dependency
[ 13.795726] Stratix10 SoC FPGA manager soc@0:firmware:svc:fpga-mgr: couldn't get service channel (fpga)
[ 13.812530] stratix10-svc soc@0:firmware:svc: deferred probe timeout, ignoring dependency
[ 13.822748] dw_axi_dmac_platform 10db0000.dma-controller: deferred probe timeout, ignoring dependency
[ 13.832289] dw_axi_dmac_platform 10db0000.dma-controller: DesignWare AXI DMA Controller, 4 channels
[ 13.841392] dw_axi_dmac_platform 10dc0000.dma-controller: deferred probe timeout, ignoring dependency
[ 13.843441] mmc0: SDHCI controller on 10808000.mmc0 [10808000.mmc0] using ADMA 64-bit
[ 13.850715] dw_axi_dmac_platform 10dc0000.dma-controller: DesignWare AXI DMA Controller, 4 channels
[ 13.867445] socfpga-dwmac 10830000.ethernet: deferred probe timeout, ignoring dependency
[ 13.875792] socfpga-dwmac 10830000.ethernet: IRQ eth_wake_irq not found
[ 13.882378] socfpga-dwmac 10830000.ethernet: IRQ eth_lpi not found
[ 13.882929] mmc0: ADMA error: 0x02000000
[ 13.888580] socfpga-dwmac 10830000.ethernet: RX VLAN HW Stripping
[ 13.892428] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
[ 13.898579] socfpga-dwmac 10830000.ethernet: SMTG Hub Cross Timestamp supported
[ 13.904894] mmc0: sdhci: Sys addr: 0x00000000 | Version: 0x00000005
[ 13.918572] mmc0: sdhci: Blk size: 0x00007008 | Blk cnt: 0x00000001
[ 13.924982] mmc0: sdhci: Argument: 0x00000000 | Trn mode: 0x00000013
[ 13.931392] mmc0: sdhci: Present: 0x01f702f6 | Host ctl: 0x00000011
[ 13.937801] mmc0: sdhci: Power: 0x0000000f | Blk gap: 0x00000000
[ 13.944213] mmc0: sdhci: Wake-up: 0x00000000 | Clock: 0x0000fa07
[ 13.950623] mmc0: sdhci: Timeout: 0x0000000a | Int stat: 0x00000001
[ 13.957032] mmc0: sdhci: Int enab: 0x03ff008b | Sig enab: 0x03ff008b
[ 13.963441] mmc0: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000001
[ 13.969850] mmc0: sdhci: Caps: 0x1d2a32b2 | Caps_1: 0x88000077
[ 13.976259] mmc0: sdhci: Cmd: 0x0000333a | Max curr: 0x00202020
[ 13.982669] mmc0: sdhci: Resp[0]: 0x00000920 | Resp[1]: 0x00eebf7f
[ 13.989078] mmc0: sdhci: Resp[2]: 0x325b5900 | Resp[3]: 0x00400e00
[ 13.995487] mmc0: sdhci: Host ctl2: 0x00003000
[ 13.999910] mmc0: sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x0000000082f08200
[ 14.007010] mmc0: sdhci: ============================================
[ 14.013419] mmc0: sdhci: 82f08200: DMA 0x00000000ae034000, LEN 0x0008, Attr=0x21
[ 14.020782] mmc0: sdhci: 82f08210: DMA 0x0000000000000000, LEN 0x0000, Attr=0x03
[ 14.028224] mmc0: error -5 whilst initialising SD card
[ 14.028263] socfpga-dwmac 10830000.ethernet: User ID: 0x76, Synopsys ID: 0x31
[ 14.040459] socfpga-dwmac 10830000.ethernet: XGMAC2
[ 14.045403] socfpga-dwmac 10830000.ethernet: DMA HW capability register supported
[ 14.052850] socfpga-dwmac 10830000.ethernet: RX Checksum Offload Engine supported
[ 14.060296] socfpga-dwmac 10830000.ethernet: COE Type 1
[ 14.065495] socfpga-dwmac 10830000.ethernet: TX Checksum insertion supported
[ 14.072509] socfpga-dwmac 10830000.ethernet: TSO supported
[ 14.077967] socfpga-dwmac 10830000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[ 14.085933] socfpga-dwmac 10830000.ethernet: Enabled L3L4 Flow TC (entries=16)
[ 14.089711] mmc0: ADMA error: 0x02000000
[ 14.093120] socfpga-dwmac 10830000.ethernet: Enabled RFS Flow TC (entries=10)
[ 14.097018] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
[ 14.104120] socfpga-dwmac 10830000.ethernet: TSO feature enabled
[ 14.110523] mmc0: sdhci: Sys addr: 0x00000000 | Version: 0x00000005
[ 14.116501] socfpga-dwmac 10830000.ethernet: SPH feature enabled
[ 14.122903] mmc0: sdhci: Blk size: 0x00007008 | Blk cnt: 0x00000001
[ 14.128880] socfpga-dwmac 10830000.ethernet: Using 40/40 bits DMA host/device width
[ 14.135282] mmc0: sdhci: Argument: 0x00000000 | Trn mode: 0x00000013
[ 14.146045] dwc3 11000000.usb: deferred probe timeout, ignoring dependency
[ 14.149307] mmc0: sdhci: Present: 0x01f702f6 | Host ctl: 0x00000011
[ 14.149313] mmc0: sdhci: Power: 0x0000000f | Blk gap: 0x00000000
[ 14.168965] mmc0: sdhci: Wake-up: 0x00000000 | Clock: 0x00004e47
[ 14.175375] mmc0: sdhci: Timeout: 0x0000000a | Int stat: 0x00000001
[ 14.177681] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[ 14.181785] mmc0: sdhci: Int enab: 0x03ff008b | Sig enab: 0x03ff008b
[ 14.181792] mmc0: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000001
[ 14.187270] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[ 14.193655] mmc0: sdhci: Caps: 0x1d2a32b2 | Caps_1: 0x88000077
[ 14.200219] xhci-hcd xhci-hcd.0.auto: hcc params 0x0110ffcc hci version 0x110 quirks 0x0000008000000010
[ 14.207680] mmc0: sdhci: Cmd: 0x0000333a | Max curr: 0x00202020
[ 14.207684] mmc0: sdhci: Resp[0]: 0x00000920 | Resp[1]: 0x00eebf7f
[ 14.214113] xhci-hcd xhci-hcd.0.auto: irq 58, io mem 0x11000000
[ 14.223432] mmc0: sdhci: Resp[2]: 0x325b5900 | Resp[3]: 0x00400e00
[ 14.229858] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[ 14.236244] mmc0: sdhci: Host ctl2: 0x00003000
[ 14.242136] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[ 14.248539] mmc0: sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x0000000082f08200
[ 14.254007] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.1 Enhanced SuperSpeed
[ 14.258413] mmc0: sdhci: ============================================
[ 14.258417] mmc0: sdhci: 82f08200: DMA 0x00000000ae034800, LEN 0x0008, Attr=0x21
[ 14.266811] hub 1-0:1.0: USB hub found
[ 14.273128] mmc0: sdhci: 82f08210: DMA 0x0000000000000000, LEN 0x0000, Attr=0x03
[ 14.280451] hub 1-0:1.0: 1 port detected
[ 14.286824] mmc0: Got data interrupt 0x00100000 even though no data operation was in progress.
[ 14.294435] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 14.297898] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
[ 14.297902] mmc0: sdhci: Sys addr: 0x00000000 | Version: 0x00000005
[ 14.305463] hub 2-0:1.0: USB hub found
[ 14.309157] mmc0: sdhci: Blk size: 0x00007008 | Blk cnt: 0x00000001
[ 14.317745] hub 2-0:1.0: 1 port detected
[ 14.325771] mmc0: sdhci: Argument: 0x00000000 | Trn mode: 0x00000013
[ 14.332513] soc64-hwmon soc@0:firmware:svc:hwmon: Initialized 4 temperature and 6 voltage channels
[ 14.338584] mmc0: sdhci: Present: 0x01f700f0 | Host ctl: 0x00000011
[ 14.342424] soc64-hwmon soc@0:firmware:svc:hwmon: couldn't get service channel rsu
[ 14.348719] mmc0: sdhci: Power: 0x0000000f | Blk gap: 0x00000000
[ 14.352827] Stratix10 SoC FPGA manager soc@0:firmware:svc:fpga-mgr: couldn't get service channel (fpga)
[ 14.359025] mmc0: sdhci: Wake-up: 0x00000000 | Clock: 0x00004e47
[ 14.359030] mmc0: sdhci: Timeout: 0x0000000a | Int stat: 0x00000000
[ 14.368017] platform soc@0:firmware:svc:hwmon: deferred probe pending
[ 14.374346] mmc0: sdhci: Int enab: 0x03ff008b | Sig enab: 0x03ff008b
[ 14.374352] mmc0: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000000
[ 14.381883] platform soc@0:firmware:svc:fpga-mgr: deferred probe pending
[ 14.388284] mmc0: sdhci: Caps: 0x1d2a32b2 | Caps_1: 0x88000077
[ 14.397629] platform soc@0:base_fpga_region: deferred probe pending
[ 14.404033] mmc0: sdhci: Cmd: 0x0000333a | Max curr: 0x00202020
[ 14.455362] mmc0: sdhci: Resp[0]: 0x00000920 | Resp[1]: 0x00eebf7f
[ 14.461771] mmc0: sdhci: Resp[2]: 0x325b5900 | Resp[3]: 0x00400e00
[ 14.468181] mmc0: sdhci: Host ctl2: 0x00003000
[ 14.472603] mmc0: sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x0000000082f08200
[ 14.479704] mmc0: sdhci: ============================================
[ 14.486183] mmc0: error -5 whilst initialising SD card
[ 14.552363] mmc0: ADMA error: 0x02000000
[ 14.556273] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
[ 14.562682] mmc0: sdhci: Sys addr: 0x00000000 | Version: 0x00000005
[ 14.569092] mmc0: sdhci: Blk size: 0x00007008 | Blk cnt: 0x00000001
[ 14.575502] mmc0: sdhci: Argument: 0x00000000 | Trn mode: 0x00000013
[ 14.581912] mmc0: sdhci: Present: 0x01f702f6 | Host ctl: 0x00000011
[ 14.588322] mmc0: sdhci: Power: 0x0000000f | Blk gap: 0x00000000
[ 14.594731] mmc0: sdhci: Wake-up: 0x00000000 | Clock: 0x0000f447
[ 14.601141] mmc0: sdhci: Timeout: 0x0000000a | Int stat: 0x00000001
[ 14.607550] mmc0: sdhci: Int enab: 0x03ff008b | Sig enab: 0x03ff008b
[ 14.613959] mmc0: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000001
[ 14.620368] mmc0: sdhci: Caps: 0x1d2a32b2 | Caps_1: 0x88000077
[ 14.626778] mmc0: sdhci: Cmd: 0x0000333a | Max curr: 0x00202020
[ 14.633187] mmc0: sdhci: Resp[0]: 0x00000920 | Resp[1]: 0x00eebf7f
[ 14.639597] mmc0: sdhci: Resp[2]: 0x325b5900 | Resp[3]: 0x00400e00
[ 14.646006] mmc0: sdhci: Host ctl2: 0x00003000
[ 14.650428] mmc0: sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x0000000082f08200
[ 14.657529] mmc0: sdhci: ============================================
[ 14.663938] mmc0: sdhci: 82f08200: DMA 0x00000000ae035000, LEN 0x0008, Attr=0x21
[ 14.671301] mmc0: sdhci: 82f08210: DMA 0x0000000000000000, LEN 0x0000, Attr=0x03
[ 14.678694] mmc0: error -5 whilst initialising SD card
[ 14.754281] mmc0: ADMA error: 0x02000000
[ 14.758187] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
[ 14.764596] mmc0: sdhci: Sys addr: 0x00000000 | Version: 0x00000005
[ 14.771005] mmc0: sdhci: Blk size: 0x00007008 | Blk cnt: 0x00000001
[ 14.777415] mmc0: sdhci: Argument: 0x00000000 | Trn mode: 0x00000013
[ 14.783825] mmc0: sdhci: Present: 0x01f702f6 | Host ctl: 0x00000011
[ 14.790235] mmc0: sdhci: Power: 0x0000000f | Blk gap: 0x00000000
[ 14.796645] mmc0: sdhci: Wake-up: 0x00000000 | Clock: 0x0000e8c7
[ 14.803054] mmc0: sdhci: Timeout: 0x0000000a | Int stat: 0x00000001
[ 14.809464] mmc0: sdhci: Int enab: 0x03ff008b | Sig enab: 0x03ff008b
[ 14.815874] mmc0: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000001
[ 14.822283] mmc0: sdhci: Caps: 0x1d2a32b2 | Caps_1: 0x88000077
[ 14.828693] mmc0: sdhci: Cmd: 0x0000333a | Max curr: 0x00202020
[ 14.835102] mmc0: sdhci: Resp[0]: 0x00000920 | Resp[1]: 0x00eebf7f
[ 14.841512] mmc0: sdhci: Resp[2]: 0x325b5900 | Resp[3]: 0x00400e00
[ 14.847921] mmc0: sdhci: Host ctl2: 0x00003000
[ 14.852343] mmc0: sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x0000000082f08200
[ 14.859444] mmc0: sdhci: ============================================
[ 14.865853] mmc0: sdhci: 82f08200: DMA 0x00000000ae035800, LEN 0x0008, Attr=0x21
[ 14.873216] mmc0: sdhci: 82f08210: DMA 0x0000000000000000, LEN 0x0000, Attr=0x03
[ 14.880614] mmc0: error -5 whilst initialising SD card
We are booting jic.rpd(FSBL) from QSPI NOR flash and the rest (SSBL,core.rbf, linux) from SD card now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you,
I have changed fitfpga command to load mmc 0:1 $loadaddr d/design.core.rbf ; dcache flush ; bridge disable ; fpga load 0 $loadaddr $filesize ; bridge enable 0x3b;
but problem persists. I tried also command with removed bridge disable.
I have found that also fpga design has problems every second FPGA.core fit - we have design, where FPGA should blink with LEDs, if I fit fpga first time, LEDs are blinking, second time LEDs are not blinking, third time are blinking...
If I fit fpga three times, u-boot will not stuck, but linux system will not boot (stucks) with errors below, in this case NCONFIG button on the board (which I am used to reset thhe board) is not working and I have to proceed power-down, power-up procedure.
[ 3.632132] Waiting for root device /dev/mmcblk0p2...
[ 13.795720] sdhci-cdns 10808000.mmc0: deferred probe timeout, ignoring dependency
[ 13.795726] Stratix10 SoC FPGA manager soc@0:firmware:svc:fpga-mgr: couldn't get service channel (fpga)
[ 13.812530] stratix10-svc soc@0:firmware:svc: deferred probe timeout, ignoring dependency
[ 13.822748] dw_axi_dmac_platform 10db0000.dma-controller: deferred probe timeout, ignoring dependency
[ 13.832289] dw_axi_dmac_platform 10db0000.dma-controller: DesignWare AXI DMA Controller, 4 channels
[ 13.841392] dw_axi_dmac_platform 10dc0000.dma-controller: deferred probe timeout, ignoring dependency
[ 13.843441] mmc0: SDHCI controller on 10808000.mmc0 [10808000.mmc0] using ADMA 64-bit
[ 13.850715] dw_axi_dmac_platform 10dc0000.dma-controller: DesignWare AXI DMA Controller, 4 channels
[ 13.867445] socfpga-dwmac 10830000.ethernet: deferred probe timeout, ignoring dependency
[ 13.875792] socfpga-dwmac 10830000.ethernet: IRQ eth_wake_irq not found
[ 13.882378] socfpga-dwmac 10830000.ethernet: IRQ eth_lpi not found
[ 13.882929] mmc0: ADMA error: 0x02000000
[ 13.888580] socfpga-dwmac 10830000.ethernet: RX VLAN HW Stripping
[ 13.892428] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
[ 13.898579] socfpga-dwmac 10830000.ethernet: SMTG Hub Cross Timestamp supported
[ 13.904894] mmc0: sdhci: Sys addr: 0x00000000 | Version: 0x00000005
[ 13.918572] mmc0: sdhci: Blk size: 0x00007008 | Blk cnt: 0x00000001
[ 13.924982] mmc0: sdhci: Argument: 0x00000000 | Trn mode: 0x00000013
[ 13.931392] mmc0: sdhci: Present: 0x01f702f6 | Host ctl: 0x00000011
[ 13.937801] mmc0: sdhci: Power: 0x0000000f | Blk gap: 0x00000000
[ 13.944213] mmc0: sdhci: Wake-up: 0x00000000 | Clock: 0x0000fa07
[ 13.950623] mmc0: sdhci: Timeout: 0x0000000a | Int stat: 0x00000001
[ 13.957032] mmc0: sdhci: Int enab: 0x03ff008b | Sig enab: 0x03ff008b
[ 13.963441] mmc0: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000001
[ 13.969850] mmc0: sdhci: Caps: 0x1d2a32b2 | Caps_1: 0x88000077
[ 13.976259] mmc0: sdhci: Cmd: 0x0000333a | Max curr: 0x00202020
[ 13.982669] mmc0: sdhci: Resp[0]: 0x00000920 | Resp[1]: 0x00eebf7f
[ 13.989078] mmc0: sdhci: Resp[2]: 0x325b5900 | Resp[3]: 0x00400e00
[ 13.995487] mmc0: sdhci: Host ctl2: 0x00003000
[ 13.999910] mmc0: sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x0000000082f08200
[ 14.007010] mmc0: sdhci: ============================================
[ 14.013419] mmc0: sdhci: 82f08200: DMA 0x00000000ae034000, LEN 0x0008, Attr=0x21
[ 14.020782] mmc0: sdhci: 82f08210: DMA 0x0000000000000000, LEN 0x0000, Attr=0x03
[ 14.028224] mmc0: error -5 whilst initialising SD card
[ 14.028263] socfpga-dwmac 10830000.ethernet: User ID: 0x76, Synopsys ID: 0x31
[ 14.040459] socfpga-dwmac 10830000.ethernet: XGMAC2
[ 14.045403] socfpga-dwmac 10830000.ethernet: DMA HW capability register supported
[ 14.052850] socfpga-dwmac 10830000.ethernet: RX Checksum Offload Engine supported
[ 14.060296] socfpga-dwmac 10830000.ethernet: COE Type 1
[ 14.065495] socfpga-dwmac 10830000.ethernet: TX Checksum insertion supported
[ 14.072509] socfpga-dwmac 10830000.ethernet: TSO supported
[ 14.077967] socfpga-dwmac 10830000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[ 14.085933] socfpga-dwmac 10830000.ethernet: Enabled L3L4 Flow TC (entries=16)
[ 14.089711] mmc0: ADMA error: 0x02000000
[ 14.093120] socfpga-dwmac 10830000.ethernet: Enabled RFS Flow TC (entries=10)
[ 14.097018] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
[ 14.104120] socfpga-dwmac 10830000.ethernet: TSO feature enabled
[ 14.110523] mmc0: sdhci: Sys addr: 0x00000000 | Version: 0x00000005
[ 14.116501] socfpga-dwmac 10830000.ethernet: SPH feature enabled
[ 14.122903] mmc0: sdhci: Blk size: 0x00007008 | Blk cnt: 0x00000001
[ 14.128880] socfpga-dwmac 10830000.ethernet: Using 40/40 bits DMA host/device width
[ 14.135282] mmc0: sdhci: Argument: 0x00000000 | Trn mode: 0x00000013
[ 14.146045] dwc3 11000000.usb: deferred probe timeout, ignoring dependency
[ 14.149307] mmc0: sdhci: Present: 0x01f702f6 | Host ctl: 0x00000011
[ 14.149313] mmc0: sdhci: Power: 0x0000000f | Blk gap: 0x00000000
[ 14.168965] mmc0: sdhci: Wake-up: 0x00000000 | Clock: 0x00004e47
[ 14.175375] mmc0: sdhci: Timeout: 0x0000000a | Int stat: 0x00000001
[ 14.177681] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[ 14.181785] mmc0: sdhci: Int enab: 0x03ff008b | Sig enab: 0x03ff008b
[ 14.181792] mmc0: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000001
[ 14.187270] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[ 14.193655] mmc0: sdhci: Caps: 0x1d2a32b2 | Caps_1: 0x88000077
[ 14.200219] xhci-hcd xhci-hcd.0.auto: hcc params 0x0110ffcc hci version 0x110 quirks 0x0000008000000010
[ 14.207680] mmc0: sdhci: Cmd: 0x0000333a | Max curr: 0x00202020
[ 14.207684] mmc0: sdhci: Resp[0]: 0x00000920 | Resp[1]: 0x00eebf7f
[ 14.214113] xhci-hcd xhci-hcd.0.auto: irq 58, io mem 0x11000000
[ 14.223432] mmc0: sdhci: Resp[2]: 0x325b5900 | Resp[3]: 0x00400e00
[ 14.229858] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[ 14.236244] mmc0: sdhci: Host ctl2: 0x00003000
[ 14.242136] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[ 14.248539] mmc0: sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x0000000082f08200
[ 14.254007] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.1 Enhanced SuperSpeed
[ 14.258413] mmc0: sdhci: ============================================
[ 14.258417] mmc0: sdhci: 82f08200: DMA 0x00000000ae034800, LEN 0x0008, Attr=0x21
[ 14.266811] hub 1-0:1.0: USB hub found
[ 14.273128] mmc0: sdhci: 82f08210: DMA 0x0000000000000000, LEN 0x0000, Attr=0x03
[ 14.280451] hub 1-0:1.0: 1 port detected
[ 14.286824] mmc0: Got data interrupt 0x00100000 even though no data operation was in progress.
[ 14.294435] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 14.297898] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
[ 14.297902] mmc0: sdhci: Sys addr: 0x00000000 | Version: 0x00000005
[ 14.305463] hub 2-0:1.0: USB hub found
[ 14.309157] mmc0: sdhci: Blk size: 0x00007008 | Blk cnt: 0x00000001
[ 14.317745] hub 2-0:1.0: 1 port detected
[ 14.325771] mmc0: sdhci: Argument: 0x00000000 | Trn mode: 0x00000013
[ 14.332513] soc64-hwmon soc@0:firmware:svc:hwmon: Initialized 4 temperature and 6 voltage channels
[ 14.338584] mmc0: sdhci: Present: 0x01f700f0 | Host ctl: 0x00000011
[ 14.342424] soc64-hwmon soc@0:firmware:svc:hwmon: couldn't get service channel rsu
[ 14.348719] mmc0: sdhci: Power: 0x0000000f | Blk gap: 0x00000000
[ 14.352827] Stratix10 SoC FPGA manager soc@0:firmware:svc:fpga-mgr: couldn't get service channel (fpga)
[ 14.359025] mmc0: sdhci: Wake-up: 0x00000000 | Clock: 0x00004e47
[ 14.359030] mmc0: sdhci: Timeout: 0x0000000a | Int stat: 0x00000000
[ 14.368017] platform soc@0:firmware:svc:hwmon: deferred probe pending
[ 14.374346] mmc0: sdhci: Int enab: 0x03ff008b | Sig enab: 0x03ff008b
[ 14.374352] mmc0: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000000
[ 14.381883] platform soc@0:firmware:svc:fpga-mgr: deferred probe pending
[ 14.388284] mmc0: sdhci: Caps: 0x1d2a32b2 | Caps_1: 0x88000077
[ 14.397629] platform soc@0:base_fpga_region: deferred probe pending
[ 14.404033] mmc0: sdhci: Cmd: 0x0000333a | Max curr: 0x00202020
[ 14.455362] mmc0: sdhci: Resp[0]: 0x00000920 | Resp[1]: 0x00eebf7f
[ 14.461771] mmc0: sdhci: Resp[2]: 0x325b5900 | Resp[3]: 0x00400e00
[ 14.468181] mmc0: sdhci: Host ctl2: 0x00003000
[ 14.472603] mmc0: sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x0000000082f08200
[ 14.479704] mmc0: sdhci: ============================================
[ 14.486183] mmc0: error -5 whilst initialising SD card
[ 14.552363] mmc0: ADMA error: 0x02000000
[ 14.556273] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
[ 14.562682] mmc0: sdhci: Sys addr: 0x00000000 | Version: 0x00000005
[ 14.569092] mmc0: sdhci: Blk size: 0x00007008 | Blk cnt: 0x00000001
[ 14.575502] mmc0: sdhci: Argument: 0x00000000 | Trn mode: 0x00000013
[ 14.581912] mmc0: sdhci: Present: 0x01f702f6 | Host ctl: 0x00000011
[ 14.588322] mmc0: sdhci: Power: 0x0000000f | Blk gap: 0x00000000
[ 14.594731] mmc0: sdhci: Wake-up: 0x00000000 | Clock: 0x0000f447
[ 14.601141] mmc0: sdhci: Timeout: 0x0000000a | Int stat: 0x00000001
[ 14.607550] mmc0: sdhci: Int enab: 0x03ff008b | Sig enab: 0x03ff008b
[ 14.613959] mmc0: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000001
[ 14.620368] mmc0: sdhci: Caps: 0x1d2a32b2 | Caps_1: 0x88000077
[ 14.626778] mmc0: sdhci: Cmd: 0x0000333a | Max curr: 0x00202020
[ 14.633187] mmc0: sdhci: Resp[0]: 0x00000920 | Resp[1]: 0x00eebf7f
[ 14.639597] mmc0: sdhci: Resp[2]: 0x325b5900 | Resp[3]: 0x00400e00
[ 14.646006] mmc0: sdhci: Host ctl2: 0x00003000
[ 14.650428] mmc0: sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x0000000082f08200
[ 14.657529] mmc0: sdhci: ============================================
[ 14.663938] mmc0: sdhci: 82f08200: DMA 0x00000000ae035000, LEN 0x0008, Attr=0x21
[ 14.671301] mmc0: sdhci: 82f08210: DMA 0x0000000000000000, LEN 0x0000, Attr=0x03
[ 14.678694] mmc0: error -5 whilst initialising SD card
[ 14.754281] mmc0: ADMA error: 0x02000000
[ 14.758187] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
[ 14.764596] mmc0: sdhci: Sys addr: 0x00000000 | Version: 0x00000005
[ 14.771005] mmc0: sdhci: Blk size: 0x00007008 | Blk cnt: 0x00000001
[ 14.777415] mmc0: sdhci: Argument: 0x00000000 | Trn mode: 0x00000013
[ 14.783825] mmc0: sdhci: Present: 0x01f702f6 | Host ctl: 0x00000011
[ 14.790235] mmc0: sdhci: Power: 0x0000000f | Blk gap: 0x00000000
[ 14.796645] mmc0: sdhci: Wake-up: 0x00000000 | Clock: 0x0000e8c7
[ 14.803054] mmc0: sdhci: Timeout: 0x0000000a | Int stat: 0x00000001
[ 14.809464] mmc0: sdhci: Int enab: 0x03ff008b | Sig enab: 0x03ff008b
[ 14.815874] mmc0: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000001
[ 14.822283] mmc0: sdhci: Caps: 0x1d2a32b2 | Caps_1: 0x88000077
[ 14.828693] mmc0: sdhci: Cmd: 0x0000333a | Max curr: 0x00202020
[ 14.835102] mmc0: sdhci: Resp[0]: 0x00000920 | Resp[1]: 0x00eebf7f
[ 14.841512] mmc0: sdhci: Resp[2]: 0x325b5900 | Resp[3]: 0x00400e00
[ 14.847921] mmc0: sdhci: Host ctl2: 0x00003000
[ 14.852343] mmc0: sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x0000000082f08200
[ 14.859444] mmc0: sdhci: ============================================
[ 14.865853] mmc0: sdhci: 82f08200: DMA 0x00000000ae035800, LEN 0x0008, Attr=0x21
[ 14.873216] mmc0: sdhci: 82f08210: DMA 0x0000000000000000, LEN 0x0000, Attr=0x03
[ 14.880614] mmc0: error -5 whilst initialising SD card
We are booting jic.rpd(FSBL) from QSPI NOR flash and the rest (SSBL,core.rbf, linux) from SD card now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Unfortunatelly it does not work. I have changed fitfpga command to:
fitfpga=load mmc 0:1 $loadaddr d/design.core.rbf ; dcache flush ; bridge disable ; fpga load 0 $loadaddr $filesize ; bridge enable 0x3b;
but behavior is same (i have tried also not disable bridges before fpga load).
I figured out that also FPGA design or gpio outputs have some problem. FPGA blinks with the leds, if I fit core.rbf twice, LEDs are not blinking, if I fit three times, LEDs are blinking (four times sometimes not blinking).
If I fit FPGA three times (so LEDs are blinking), uboot now also stuck, before there was also situation, that uboot did not stuck, but boot was not succesfull, there was some problem with emmc (irq?) during linux system boot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
Sorry for the late reply. I was OOO.
On top of the previous suggestion could you disable the System MMU in the Quartus Project?
Regards
Jingyang, Teh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks,
"Enable system MMU" is presently disabled (and was disabled).
I have also tried to configure fpga_core.rbf from linux via overlay.dts and same problem occured if I tried to configure it multiple times. Sometimes I can not configure fpga_core.rbf form linux with some error - please see RECONGFIG_COMPLETED timeout
Regards,
Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
It seems like you would need to disable the F2H bridge in the Quartus Design too.
This is the current workaround and there is not fix currently as it is a silicon issue.
Regards
Jingyang, Teh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
we set FPGA to HPS subordinate to "Unused" in HPS Platform designer and behavior was same (that particular design was able to programm from linux as well as from u-boot).
We disabled interrupts and removed (unconnected) F2H components from connection matrix then and problem persists (this particular design can be programmed only from u-boot - please see AGILEX5 - HPS-first - timeout waiting for RECONFIG_COMPLETED ). If I reprogramm core.rbf more times, tipically second time LEDs driven from FPGA are not blinking, third reprogramm are blinking etc. I tried to boot to linux once with this core.rbf when leds was blinking and everything worked (it was maybe 5x reprogrammed core.rbf). But other time it hung when my linux application tried to use HPS2FPGA bridge (maybe after 3x times of reprogramm).
I have modified u-boot script and linux dtb to use hps2fpga bridge only in linux runtime, so I can boot to linux without programmed core.rbf.
Can we do something more? I am using Quartus 24.3.1 Build102 01/14/2025 with no patches.
Regards,
Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
Could you share your changes to the uboot to disable the F2H bridge?
Yeah it is one way to workaround this issue.
The issue is with the F2H and SMMU, it is either you disable the smmu which other device uses it too or disable the usage of F2H.
Currently, there is n fix for this issue.
Regards
Jingyang, Teh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
my changes in u-boot are:
1) environement (printenv snippet)
bootcmd_mmc0=bridge enable 0x3b; devnum=0; run mmc_boot
fitfpga=load mmc 0:1 $loadaddr d/design.core.rbf ; dcache flush ; bridge disable ; fpga load 0 $loadaddr $filesize ; bridge enable 0x3b;
2) in uboot. txt in u-boot script generation from previous
if test ${target} = "mmc0"; then
if test -e ${devtype} ${devnum}:${distro_bootpart} /${bootfile}; then
echo "Found kernel in mmc0";
mmc rescan;
mw.l 10d13224 14;
mw.l 10d13228 14;
mw.l 10d1323c 14;
mw.l 10d13234 14;
mw.l 10d13248 14;
mw.l 10d1324C 14;
mw.l 0x10D11028 0x01027fb0 1;
mw.l 0x10c03304 0x410 1;
mw.l 0x10c03300 0x00000410;
mw.l 0x10c03300 0x00000000;
mw.l 0x10c03300 0x00000410;
bridge enable;
mw.l 0x028000070 0x00000000;
mw.l 0x28000070 0x00000001;
fatload mmc 0:1 ${loadaddr} ${bootfile};
setenv bootargs "bootargs console=ttyS0,115200 root=${mmcroot} rw rootwait mem=768M";
bootm ${loadaddr};
exit;
fi
fi
to
if test ${target} = "mmc0"; then
mw.l 10d13224 14;
mw.l 10d13228 14;
mw.l 10d1323c 14;
mw.l 10d13234 14;
mw.l 10d13248 14;
mw.l 10d1324C 14;
mw.l 0x10D11028 0x01027fb0 1;
mw.l 0x10c03304 0x410 1;
mw.l 0x10c03300 0x00000410;
mw.l 0x10c03300 0x00000000;
mw.l 0x10c03300 0x00000410;
else
echo "mmc0 not found!"
fi
to allow programm core.rbf after - in linux via devicetree overlay.
Behavior of programm core.rbf multiple times is same if I run "run fitfpga" in u-boot multiple times or if I programm it in linux via device-tree overlay (first time it always works, second time usually even FPGA logic is not working, third time sometimes FPGA logic is working, but HPS2FPGA bridge usage usually hangs HPS).
I tried to disable F2H in bridge enable command in u-boot and also in GHRD design (we don't need it), but it did not help to solve this problem. Please could you check our design project, if it is disabled correctly in our design?
Is possible to reset the board remotely (by some command), like I touch NCONFIG button or switch power, to avoid this problem?
If I reboot board form linux now, FPGA fabric remains programmed and second programming triggers the problem. I have to manually push the NCONFIG button then to succesfully reboot the board.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
Thanks for sharing your changes.
Unfortunately once stuck, the only method is to power cycle or do a reset.
I have took a look at your project and it is okay. The F2H bridge is disabled.
It is weird that the workaround is not working for you.
Give me sometime while I discuss this with our team.
Could you also share the new logs with F2H disabled? Which point does the boot stuck?
Regards
Jingyang, Teh

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page