On 07/15/2013 03:25 AM, Yao Xingtao wrote: > Hi: > I'm very interesting in it, but I don't know how to create a eTSEC > device, I did a test as below: > > for(i = 0; i < nb_nics; i++) { > NICInfo *nd = &nd_table[i]; > if (!nd->model) { > nd->model = g_strdup("eTSEC"); > } > if(strcmp(nd->model, "eTSEC") == 0) { > etsec_create(ETSEC0_REGS_OFFSET, ccsr_addr_space, nd, > mpic[0x1d], mpic[0x1e], mpic[0x22]); > } > } > > When I start the qemu, an error exists" qemu-system-ppc: Unsupported NIC > model: eTSEC" . > Could you tell me how to create a eTSEC device? >
Maybe because your machine has a pci_nic_init_nofail() call. eTSEC is not a PCI NIC... Regards, -- Fabien Chouteau