Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing problem in the configuration of network interfaces for release of Fedora 21 (file "nf10iface.c"). #2

Open
rjacauna opened this issue Mar 1, 2015 · 0 comments

Comments

@rjacauna
Copy link

rjacauna commented Mar 1, 2015

If you are having difficulty installing the NetFPGA board as a system device, simply add the parameter as follows:

// Set up the network device ...
for (i = 0; i <4; i ++) {
    netdev = card-> ndev [i] = alloc_netdev (sizeof (struct nf10_ndev_priv)
                                          devname, nf10iface_init);
    if (NULL == netdev) {
        printk (KERN_ERR "nf10:. Could not allocate ethernet device \ n");
        ret = -ENOMEM;
        goto err_out_free_dev;
    }

To

// Set up the network device ...
for (i = 0; i <4; i ++) {
    netdev = card-> ndev [i] = alloc_netdev (sizeof (struct nf10_ndev_priv)
                                          devname, NET_NAME_UNKNOWN, nf10iface_init);
    if (NULL == netdev) {
        printk (KERN_ERR "nf10:. Could not allocate ethernet device \ n");
        ret = -ENOMEM;
        goto err_out_free_dev;
    }

This is probably because the kernel 04 arguments expected, but only 03 are provided. Thus, the error does not happen, allowing the following steps are performed "surprises".
Good job!

@rjacauna rjacauna changed the title Fixing problem in the configuration of network interfaces for release of Fedora 21 (file "nf10iface.c". Fixing problem in the configuration of network interfaces for release of Fedora 21 (file "nf10iface.c"). Mar 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant