1
22.7 Legacy Series / emmc timeout / unuseable on cyberoam / aewin appliance
« on: January 10, 2023, 10:31:48 pm »
I'm trying to run opnsense 22.7 on an cyberoam appliance. Every hardware part seems to be supported, except that i'm experiencing problems with it's onboard emmc module.
To be specific, this part from the bootlog is where things seem to go wrong:
sdhci_pci0-slot0: Controller timeout
sdhci_pci0-slot0: ============== REGISTER DUMP ==============
sdhci_pci0-slot0: Sys addr: 0x00000000 | Version: 0x00001001
sdhci_pci0-slot0: Blk size: 0x00000004 | Blk cnt: 0x00000001
sdhci_pci0-slot0: Argument: 0x00000000 | Trn mode: 0x00000002
sdhci_pci0-slot0: Present: 0x01ff0106 | Host ctl: 0x00000003
sdhci_pci0-slot0: Power: 0x0000000f | Blk gap: 0x00000000
sdhci_pci0-slot0: Wake-up: 0x00000000 | Clock: 0x00004007
sdhci_pci0-slot0: Timeout: 0x0000000d | Int stat: 0x00000000
sdhci_pci0-slot0: Int enab: 0x01ff00fb | Sig enab: 0x01ff00fa
sdhci_pci0-slot0: AC12 err: 0x00000000 | Host ctl2:0x00000000
sdhci_pci0-slot0: Caps: 0x21a632b2 | Caps2: 0x00000570
sdhci_pci0-slot0: Max curr: 0x00c80064 | ADMA err: 0x00000000
sdhci_pci0-slot0: ADMA addr:0x00000000 | Slot int: 0x000000ff
sdhci_pci0-slot0: ===========================================
sdhci_pci0-slot0: Controller timeout
sdhci_pci0-slot0: ============== REGISTER DUMP ==============
sdhci_pci0-slot0: Sys addr: 0x00000000 | Version: 0x00001001
sdhci_pci0-slot0: Blk size: 0x00000004 | Blk cnt: 0x00000001
sdhci_pci0-slot0: Argument: 0x00000000 | Trn mode: 0x00000012
sdhci_pci0-slot0: Present: 0x01ff0206 | Host ctl: 0x00000003
sdhci_pci0-slot0: Power: 0x0000000f | Blk gap: 0x00000000
sdhci_pci0-slot0: Wake-up: 0x00000000 | Clock: 0x00004007
sdhci_pci0-slot0: Timeout: 0x0000000d | Int stat: 0x00000001
sdhci_pci0-slot0: Int enab: 0x01ff00fb | Sig enab: 0x01ff00fa
sdhci_pci0-slot0: AC12 err: 0x00000000 | Host ctl2:0x00000000
sdhci_pci0-slot0: Caps: 0x21a632b2 | Caps2: 0x00000570
sdhci_pci0-slot0: Max curr: 0x00c80064 | ADMA err: 0x00000000
sdhci_pci0-slot0: ADMA addr:0x00000000 | Slot int: 0x000000ff
sdhci_pci0-slot0: ===========================================
The scb-6901 appliance supports both uefi and legacy booting. Strangely enough, while booting in pure uefi mode (with csm disabled) the emmc device disappears.
So what i've tried so far:
Booting opnsense 22.7 vga image from usb in uefi mode with csm (legacy) module disabled
Booting opnsense 22.7 serial image from usb in csm (legacy) mode
Read this topic that suggests emmc support should be there.
Read this topic and tried putting "hw.sdhci.enable_msi=0" in the loader.conf file . Even that didnt make much of a difference (one would expect the emmc device to be disabled?)
Putting the "sd host controller version" (thats what the uefi/bios calls the emmc device/controller) in "2.0"mode. And after that, putting it in "3.0" mode.
Changed the sd device in the uefi from adma to pio mode. Made no difference.
So now i've tried as much as anything i could think of. Does anyone have a clue how to get the emmc device not timing out?
To be specific, this part from the bootlog is where things seem to go wrong:
sdhci_pci0-slot0: Controller timeout
sdhci_pci0-slot0: ============== REGISTER DUMP ==============
sdhci_pci0-slot0: Sys addr: 0x00000000 | Version: 0x00001001
sdhci_pci0-slot0: Blk size: 0x00000004 | Blk cnt: 0x00000001
sdhci_pci0-slot0: Argument: 0x00000000 | Trn mode: 0x00000002
sdhci_pci0-slot0: Present: 0x01ff0106 | Host ctl: 0x00000003
sdhci_pci0-slot0: Power: 0x0000000f | Blk gap: 0x00000000
sdhci_pci0-slot0: Wake-up: 0x00000000 | Clock: 0x00004007
sdhci_pci0-slot0: Timeout: 0x0000000d | Int stat: 0x00000000
sdhci_pci0-slot0: Int enab: 0x01ff00fb | Sig enab: 0x01ff00fa
sdhci_pci0-slot0: AC12 err: 0x00000000 | Host ctl2:0x00000000
sdhci_pci0-slot0: Caps: 0x21a632b2 | Caps2: 0x00000570
sdhci_pci0-slot0: Max curr: 0x00c80064 | ADMA err: 0x00000000
sdhci_pci0-slot0: ADMA addr:0x00000000 | Slot int: 0x000000ff
sdhci_pci0-slot0: ===========================================
sdhci_pci0-slot0: Controller timeout
sdhci_pci0-slot0: ============== REGISTER DUMP ==============
sdhci_pci0-slot0: Sys addr: 0x00000000 | Version: 0x00001001
sdhci_pci0-slot0: Blk size: 0x00000004 | Blk cnt: 0x00000001
sdhci_pci0-slot0: Argument: 0x00000000 | Trn mode: 0x00000012
sdhci_pci0-slot0: Present: 0x01ff0206 | Host ctl: 0x00000003
sdhci_pci0-slot0: Power: 0x0000000f | Blk gap: 0x00000000
sdhci_pci0-slot0: Wake-up: 0x00000000 | Clock: 0x00004007
sdhci_pci0-slot0: Timeout: 0x0000000d | Int stat: 0x00000001
sdhci_pci0-slot0: Int enab: 0x01ff00fb | Sig enab: 0x01ff00fa
sdhci_pci0-slot0: AC12 err: 0x00000000 | Host ctl2:0x00000000
sdhci_pci0-slot0: Caps: 0x21a632b2 | Caps2: 0x00000570
sdhci_pci0-slot0: Max curr: 0x00c80064 | ADMA err: 0x00000000
sdhci_pci0-slot0: ADMA addr:0x00000000 | Slot int: 0x000000ff
sdhci_pci0-slot0: ===========================================
The scb-6901 appliance supports both uefi and legacy booting. Strangely enough, while booting in pure uefi mode (with csm disabled) the emmc device disappears.
So what i've tried so far:
Booting opnsense 22.7 vga image from usb in uefi mode with csm (legacy) module disabled
Booting opnsense 22.7 serial image from usb in csm (legacy) mode
Read this topic that suggests emmc support should be there.
Read this topic and tried putting "hw.sdhci.enable_msi=0" in the loader.conf file . Even that didnt make much of a difference (one would expect the emmc device to be disabled?)
Putting the "sd host controller version" (thats what the uefi/bios calls the emmc device/controller) in "2.0"mode. And after that, putting it in "3.0" mode.
Changed the sd device in the uefi from adma to pio mode. Made no difference.
So now i've tried as much as anything i could think of. Does anyone have a clue how to get the emmc device not timing out?