This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

failed when insmod dm646x_pci_boot.ko

Hi all,

I am currently working with a DM6467T EVM  and dvsdk v3_10, and I want to boot dm6467T EVM over PCI bus from a PC (intel processor, 

running SUSE 10.1).here is a problem:

On host ,I run "insmod dm646x_pci_boot.ko", but failed!

here is the output:

kami-suse:/opt/pci/PCI_kami # insmod dm646x_pci_boot.ko 

insmod: error inserting 'dm646x_pci_boot.ko': -1 Operation not permitted

 

(dmesg:)

dm646x_pci_boot: module not supported by Novell, setting U taint flag.

DM646x PCI Boot: Major number 254 assigned

PCIDRV - Added device to the sys file system

PCI: dm646x_pci_dev not found

DM646x device not found in the PCI tree

 

I know the location where the driver is stopped from the output above, It's "pci_get_device", this func return null.

After rebooting the host linux without cutting off of the host , I rerun "insmod dm646x_pci_boot.ko" again, succeeded this time

 

I also find this conclusion, As long as I cut off the power supply and then power up the pc again,  I failed when running insmod,  After rebooting, I succeed.

  • On another PC host (also Intel processor, running SUSE 10.1),  but with different motherboard type, I didn't see the phenomena.

  • Jack,

    Does in your setup the reboot of PC also reset DM6467T EVM (most likely it wont), if it doesn't, it probably means that the PC enumeration finishes before DM6467T PCI is initialized and hence it is not detected during first boot but detected on reboot (only PC is booted but DM6467T PCI is up).

    The driver won't load if the device is not found.

    I think if your kernel on PC has support for PCI rescan (echo  1 > /sys/bus/pci/rescan) the DM6467T may be detected even w/o PC reboot -  have you tried this?

       Hemant