[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Problem compiling SMU driver [was: Cross compiling linux-2.6.12-rc1 G4 -> G5]



Hello Xavier,

in the /usr/src/linux-2.6.xx/ directory
> do :
> cp arch/ppc64/configs/g5_defconfig .config
> after this :
> make oldconfig
> and then a make xconfig
> or make gconfig
> check if you have all your usual options in the config and after this :
> make-kpkg kernel_image
> should do it...

I've just done it, and I get the same error as previously: namely

-- <snip> --
drivers/macintosh/smu.c:45:21: asm/smu.h: No such file or directory
drivers/macintosh/smu.c:47:26: asm/abs_addr.h: No such file or directory
.. <more warnings/> ..
drivers/macintosh/smu.c:310: error: `smu_cmdbuf_abs' undeclared (first use in this function)
drivers/macintosh/smu.c:310: error: (Each undeclared identifier is reported only once
drivers/macintosh/smu.c:310: error: for each function it appears in.)
drivers/macintosh/smu.c:326: warning: implicit declaration of function `abs_to_virt'
make[3]: *** [drivers/macintosh/smu.o] Error 1
make[2]: *** [drivers/macintosh] Error 2
make[1]: *** [drivers] Error 2
-- <snip/> --

I guess this is because I'm compiling linux-2.6.12-rc1 with
CONFIG_PMAC_SMU enabled. SMU replaces the PMU (Power Management Unit) in
newer single-CPU PMacs G5 (and iMac G5 BTW), so I guess I need it (or
have you been able to do without it?). The corresponding patch was
written by BenH. I'll try to move blindly some files from asm-ppc64 to
asm-ppc to see if I can unblock the make process (this might make no
sense, so if anybody (Ben?) thinks so, please shout!).

Thanks!

Francois

> On Tue, 2005-04-05 at 13:51, grave wrote:
> > I've got a Powermac G5, so I'm definitely interested in the source
> > you've used. I'll go for a ppc32 kernel first. Getting Debian on my G5
> > will already be a huge achievement!
> 
> go to kernel.org and get the latest kernel (it seems to be 2.6.11.6  
> now) you can also patch it if you want 2.6.12, it's up to you...
> 
> in the /usr/src/linux-2.6.xx/ directory
> do :
> cp arch/ppc64/configs/g5_defconfig .config
> after this :
> make oldconfig
> and then a make xconfig
> or make gconfig
> check if you have all your usual options in the config and after this :
> make-kpkg kernel_image
> should do it...
> 
> xavier



Reply to: