The PS3 supports a version of Linux, running on a Power PC architecture. Currently, there are 2 PS3s, one with a 20 Gb drive and one with a 60 Gb drive. There are no drivers currently for the internal wireless on the 60 Gb version of the drive. Consequently, there is a lot of interest in getting a USB wireless driver working for this architecture (ppc64 Cell).
Recently I managed to compile a version of the PS3 kernel that supports wireless (the default kernel doesn't) and using that kernel tried to compile the r83 version of the zd1211 driver. The output of the compile is listed below: /lib/modules/2.6.16-w/build /usr/src/zd1211-driver-r83 -I/usr/src/zd1211-driver-r83/src/include -fomit-frame-pointer -O2 -Wall -Wstrict-prototypes -pipe -DZDCONF_WE_STAT_SUPPORT=1 -DHOST_IF_USB -DAMAC -DGCCK -DOFDM -DHOSTAPD_SUPPORT -DUSE_EP4_SET_REG -DDOWNLOADFIRMWARE -DfTX_GAIN_OFDM=0 -DfNEW_CODE_MAP=1 -DfWRITE_WORD_REG=1 -DfREAD_MUL_REG=1 -DENHANCE_RX=1 -DZD1211 src/zd1205.o src/zdasocsvc.o src/zdauthreq.o src/zdauthrsp.o src/zdmmrx.o src/zdshared.o src/zdhci.o src/zdglobal.o src/zdencrypt.o src/zdpmfilter.o src/zdpsmon.o src/zdsynch.o src/zdbuf.o src/zd1205_proc.o src/zdhw.o src/zddebug.o src/zdtkipseed.o src/zdmic.o src/zdusb.o src/zd1211.o make -C /lib/modules/2.6.16-w/build SUBDIRS=/usr/src/zd1211-driver-r83 modules make[1]: Entering directory `/usr/src/linux-20061208' CC [M] /usr/src/zd1211-driver-r83/src/zd1205.o In file included from include/asm/paca.h:22, from include/asm/spinlock.h:23, from include/linux/spinlock.h:87, from include/linux/capability.h:45, from include/linux/sched.h:7, from include/asm/uaccess.h:7, from include/net/checksum.h:25, from /usr/src/zd1211-driver-r83/src/zd1205.c:35: include/asm/mmu.h: In function 窶鷲pte_encode_r窶・ include/asm/mmu.h:200: warning: integer constant is too large for 窶・nsigned long窶・type include/asm/mmu.h: In function 窶鷲pt_hash窶・ include/asm/mmu.h:215: warning: integer constant is too large for 窶・nsigned long窶・type include/asm/mmu.h: In function 窶・sid_scramble窶・ include/asm/mmu.h:384: warning: right shift count >= width of type include/asm/mmu.h:384: warning: left shift count >= width of type include/asm/mmu.h:385: warning: right shift count >= width of type include/asm/mmu.h:385: warning: left shift count >= width of type include/asm/mmu.h: In function 窶枠et_kernel_vsid窶・ include/asm/mmu.h:392: error: 窶牢ID_SHIFT窶・undeclared (first use in this function) include/asm/mmu.h:392: error: (Each undeclared identifier is reported only once include/asm/mmu.h:392: error: for each function it appears in.) include/asm/mmu.h: In function 窶枠et_vsid窶・ include/asm/mmu.h:399: error: 窶牢ID_SHIFT窶・undeclared (first use in this function) In file included from include/asm/spinlock.h:25, from include/linux/spinlock.h:87, from include/linux/capability.h:45, from include/linux/sched.h:7, from include/asm/uaccess.h:7, from include/net/checksum.h:25, from /usr/src/zd1211-driver-r83/src/zd1205.c:35: include/asm/iseries/hv_call.h: In function 窶路vCall_setVirtualDecr窶・ include/asm/iseries/hv_call.h:85: warning: integer constant is too large for 窶・nsigned long窶・type include/asm/iseries/hv_call.h: In function 窶路vCall_yieldProcessor窶・ include/asm/iseries/hv_call.h:90: warning: integer constant is too large for 窶・nsigned long窶・type include/asm/iseries/hv_call.h: In function 窶路vCall_setEnabledInterrupts窶・ include/asm/iseries/hv_call.h:95: warning: integer constant is too large for 窶・nsigned long窶・type include/asm/iseries/hv_call.h: In function 窶路vCall_setLogBufferFormatAndCodepage窶・ include/asm/iseries/hv_call.h:101: warning: integer constant is too large for 窶・nsigned long窶・type include/asm/iseries/hv_call.h: In function 窶路vCall_sendIPI窶・ include/asm/iseries/hv_call.h:108: warning: integer constant is too large for 窶・nsigned long窶・type In file included from include/net/checksum.h:25, from /usr/src/zd1211-driver-r83/src/zd1205.c:35: include/asm/uaccess.h: In function 窶歪opy_from_user窶・ include/asm/uaccess.h:307: warning: integer constant is too large for 窶・nsigned long窶・type include/asm/uaccess.h:307: warning: integer constant is too large for 窶・nsigned long窶・type include/asm/uaccess.h:308: warning: integer constant is too large for 窶・nsigned long窶・type include/asm/uaccess.h:308: warning: integer constant is too large for 窶・nsigned long窶・type include/asm/uaccess.h: In function 窶歪opy_to_user窶・ include/asm/uaccess.h:322: warning: integer constant is too large for 窶・nsigned long窶・type include/asm/uaccess.h:322: warning: integer constant is too large for 窶・nsigned long窶・type include/asm/uaccess.h:323: warning: integer constant is too large for 窶・nsigned long窶・type include/asm/uaccess.h:323: warning: integer constant is too large for 窶・nsigned long窶・type include/asm/uaccess.h: In function 窶歪lear_user窶・ include/asm/uaccess.h:417: warning: integer constant is too large for 窶・nsigned long窶・type include/asm/uaccess.h:417: warning: integer constant is too large for 窶・nsigned long窶・type include/asm/uaccess.h:418: warning: integer constant is too large for 窶・nsigned long窶・type include/asm/uaccess.h:418: warning: integer constant is too large for 窶・nsigned long窶・type In file included from include/linux/mm.h:16, from include/linux/skbuff.h:26, from include/linux/tcp.h:163, from /usr/src/zd1211-driver-r83/src/zd1205.c:36: include/linux/fs.h: At top level: include/linux/fs.h:743: warning: 窶・truct flock64窶・declared inside parameter list include/linux/fs.h:743: warning: its scope is only this definition or declaration, which is probably not what you want include/linux/fs.h:745: warning: 窶・truct flock64窶・declared inside parameter list In file included from include/linux/mm.h:38, from include/linux/skbuff.h:26, from include/linux/tcp.h:163, from /usr/src/zd1211-driver-r83/src/zd1205.c:36: include/asm/pgtable.h:43:50: warning: "SID_SHIFT" is not defined include/asm/pgtable.h:44:2: error: #error TASK_SIZE_USER64 exceeds user VSID range In file included from include/linux/mm.h:38, from include/linux/skbuff.h:26, from include/linux/tcp.h:163, from /usr/src/zd1211-driver-r83/src/zd1205.c:36: include/asm/pgtable.h: In function 窶惑ind_linux_pte窶・ include/asm/pgtable.h:519: warning: right shift count >= width of type In file included from include/linux/skbuff.h:26, from include/linux/tcp.h:163, from /usr/src/zd1211-driver-r83/src/zd1205.c:36: include/linux/mm.h:452:2: error: #error SECTIONS_WIDTH+NODES_WIDTH+ZONES_WIDTH > FLAGS_RESERVED In file included from include/linux/skbuff.h:26, from include/linux/tcp.h:163, from /usr/src/zd1211-driver-r83/src/zd1205.c:36: include/linux/mm.h: In function 窶詫owmem_page_address窶・ include/linux/mm.h:517: warning: integer constant is too large for 窶・nsigned long窶・type include/linux/mm.h:517: warning: cast to pointer from integer of different size In file included from include/linux/dmapool.h:14, from include/linux/pci.h:522, from /usr/src/zd1211-driver-r83/src/zd1205.h:10, from /usr/src/zd1211-driver-r83/src/zd1205.c:42: include/asm/io.h: In function 窶・irt_to_phys窶・ include/asm/io.h:302: warning: integer constant is too large for 窶・nsigned long窶・type include/asm/io.h: In function 窶湾hys_to_virt窶・ include/asm/io.h:319: warning: integer constant is too large for 窶・nsigned long窶・type include/asm/io.h:319: warning: cast to pointer from integer of different size In file included from /usr/src/zd1211-driver-r83/src/zd1205.c:42: /usr/src/zd1211-driver-r83/src/zd1205.h: At top level: /usr/src/zd1211-driver-r83/src/zd1205.h:1332: warning: type qualifiers ignored on function return type /usr/src/zd1211-driver-r83/src/zd1205.h:1279: warning: 窶・d_readl窶・declared inline after being called /usr/src/zd1211-driver-r83/src/zd1205.h:1279: warning: previous declaration of 窶・d_readl窶・was here /usr/src/zd1211-driver-r83/src/zd1205.c: In function 窶・d1205_validate_frame窶・ /usr/src/zd1211-driver-r83/src/zd1205.c:2809: warning: unused variable 窶詫en1窶・ /usr/src/zd1211-driver-r83/src/zd1205.c: In function 窶・d1205_translate_scan窶・ /usr/src/zd1211-driver-r83/src/zd1205.c:7183: warning: format 窶・d窶・expects type 窶亙nt窶・ but argument 4 has type 窶篭32窶・ /usr/src/zd1211-driver-r83/src/zd1205.c:7183: warning: unknown conversion type character 窶・窶・in format /usr/src/zd1211-driver-r83/src/zd1205.c:7183: warning: spurious trailing 窶・窶・in format /usr/src/zd1211-driver-r83/src/zd1205.c: In function 窶・d1205_list_bss窶・ /usr/src/zd1211-driver-r83/src/zd1205.c:7388: warning: format 窶・2d窶・expects type 窶亙nt窶・ but argument 2 has type 窶篭32窶・ /usr/src/zd1211-driver-r83/src/zd1205.c:7388: warning: spurious trailing 窶・窶・in format /usr/src/zd1211-driver-r83/src/zd1205.c: At top level: /usr/src/zd1211-driver-r83/src/zd1205.c:7527: warning: type qualifiers ignored on function return type /usr/src/zd1211-driver-r83/src/zd1205.c:7608: warning: type qualifiers ignored on function return type /usr/src/zd1211-driver-r83/src/zd1205.c:7697: warning: type qualifiers ignored on function return type /usr/src/zd1211-driver-r83/src/zd1205.c:7713: warning: type qualifiers ignored on function return type /usr/src/zd1211-driver-r83/src/zd1205.c: In function 窶・dcb_setup_next_send窶・ /usr/src/zd1211-driver-r83/src/zd1205.c:9151: warning: initialization makes integer from pointer without a cast /usr/src/zd1211-driver-r83/src/zd1205.c:9151: warning: passing argument 1 of 窶論_fswab32窶・makes integer from pointer without a cast /usr/src/zd1211-driver-r83/src/zd1205.c:9195: warning: initialization makes integer from pointer without a cast /usr/src/zd1211-driver-r83/src/zd1205.c:9195: warning: passing argument 1 of 窶論_fswab32窶・makes integer from pointer without a cast /usr/src/zd1211-driver-r83/src/zd1205.c:9230: warning: initialization makes integer from pointer without a cast /usr/src/zd1211-driver-r83/src/zd1205.c:9230: warning: passing argument 1 of 窶論_fswab32窶・makes integer from pointer without a cast /usr/src/zd1211-driver-r83/src/zd1205.c:9259: warning: initialization makes integer from pointer without a cast /usr/src/zd1211-driver-r83/src/zd1205.c:9259: warning: passing argument 1 of 窶論_fswab32窶・makes integer from pointer without a cast /usr/src/zd1211-driver-r83/src/zd1205.c: In function 窶呂alculateQuality窶・ /usr/src/zd1211-driver-r83/src/zd1205.c:10074: warning: unused variable 窶腕xOffset窶・ make[2]: *** [/usr/src/zd1211-driver-r83/src/zd1205.o] Error 1 make[1]: *** [_module_/usr/src/zd1211-driver-r83] Error 2 make[1]: Leaving directory `/usr/src/linux-20061208' make: *** [all] Error 2 I'll note that the error message in the mmu.h section talking about SID SHIFT can be eliminated by adding the CFLAG --> __powerpc64__, but it doesn't solve all the problems with this compile. I can't help but think that something isn't getting initialized properly, because of the huge number of warnings about shifts being too large for the types being shifted. In any event, I'm no expert and I'm asking those that might know better what to try next. Thank you, David Myers. -- View this message in context: http://www.nabble.com/Attempted-zd1211-compilation-%28vendor%29-on-PS3-tf3077445.html#a8549688 Sent from the zd1211-devs mailing list archive at Nabble.com. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Zd1211-devs mailing list - http://zd1211.ath.cx/ Unsubscribe: https://lists.sourceforge.net/lists/listinfo/zd1211-devs