(2014-08-19 20:09)tohtoris Wrote: Hi jwillis84,
I would be interest to try out pxe booting a Lenovo Yoga 2 pro with asix based Lenovo usb dongle.
I tried building you ipxe branch on a 64bit Ubuntu 14.04 but ran in to a problem.
Code:
git clone -b usb-net-drivers https://github.com/johntwillis/ipxe
cd ipxe/src/
make bin/ipxe.iso #### same result with make bin/asix.iso
....
.....
[BUILD] bin/tg3_phy.o
[BUILD] bin/asix.o
drivers/net/usb/asix.c: In function ‘asix_get_phy_addr’:
drivers/net/usb/asix.c:151:2: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
DBG("asix_get_phy_addr() returning 0x%04x\n", *((uint16_t *)buf));
^
drivers/net/usb/asix.c: In function ‘asix_poll’:
drivers/net/usb/asix.c:281:20: error: variable ‘packet’ set but not used [-Werror=unused-but-set-variable]
uint8_t *buffer, *packet;
^
drivers/net/usb/asix.c: In function ‘asix_88178_probe’:
drivers/net/usb/asix.c:410:6: error: variable ‘gpio0’ set but not used [-Werror=unused-but-set-variable]
int gpio0 = 0;
^
cc1: all warnings being treated as errors
make: *** [bin/asix.o] Virhe 1
antti@vonwright:~/devel/ipxe/src$
Would you happen to have any idea what could be wrong?
I used CentOS 5.9 and the gcc compiler available for that version of Linux, and did not receive the errors your seeing. I believe its a matter of differing gcc defaults for warning messages between CentOS and Ubuntu.
The default compile options for the ipxe project treat warnings as errors, and that is halting the build.
I am away from my home on business this week, but I will look into fixing these for Ubuntu when I return.
Thanks for reporting the errors and thanks for the detail on the version and edition of Linux in which you encountered the errors.