NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Available options for managing mfi(4) with NetBSD 6.0? (Linux MegaCli)



On 11/08/12 16:36, Manuel Bouyer wrote:
> You have to create /dev/mfi0 as well:
> crw-------  1 root  wheel  205, 0 Sep 13 21:39 /dev/mfi0
> 
> and don't mounr /emul/linux/proc, but just create a fake
> /emul/linux/proc/devices containing:
> Character devices:
> 205 megaraid_sas_ioctl
> 
> I think nothing more is needed

I unmounted proc and /emul/linux/proc/devices now looks like:

Character devices:
205 megaraid_sas_ioctl


mfi0 was created with: /usr/pkg/emul/linux/bin/mknod -m 600 mfi0 c 205 0

/emul/linux/proc/dev listing:

cr--------   1 root  wheel  - 205, 0 Nov  8 17:05 megaraid_sas_ioctl_node
crw-------   1 root  wheel  - 205, 0 Nov  8 17:07 mfi0


(the ioctl_node file appears when I run MegaCli64)


But still, no adapters detected:

# ./MegaCli64 -AdpAllInfo -aALL

Exit Code: 0x00


ktrace has this to add:

  6829   6829 MegaCli64 GIO   fd 3 read 42 bytes
       "Character devices:\n205 megaraid_sas_ioctl\n"
  6829   6829 MegaCli64 RET   read 42/0x2a
  6829   6829 MegaCli64 CALL  close(3)
  6829   6829 MegaCli64 RET   close 0
  6829   6829 MegaCli64 CALL  munmap(0x7f7ff7ff4000,0x4000)
  6829   6829 MegaCli64 RET   munmap 0
  6829   6829 MegaCli64 CALL  access(0x60bafc,4)
  6829   6829 MegaCli64 NAMI  "/emul/linux/dev/megaraid_sas_ioctl_node"
  6829   6829 MegaCli64 RET   access 0
  6829   6829 MegaCli64 CALL  stat64(0x60bafc,0x7f7ffffff040)
  6829   6829 MegaCli64 NAMI  "/emul/linux/dev/megaraid_sas_ioctl_node"
  6829   6829 MegaCli64 RET   stat64 0
  6829   6829 MegaCli64 CALL  open(0x60bafc,0,0xcd)
  6829   6829 MegaCli64 NAMI  "/emul/linux/dev/megaraid_sas_ioctl_node"
  6829   6829 MegaCli64 RET   open -1 errno -6 Device not configured


Home | Main Index | Thread Index | Old Index