Re: iMac G5 Status?

2005-06-04 Thread Paul Brossier
On Fri, Jun 03, 2005 at 02:57:19PM +0200, Andreas Jochens wrote:
 On 05-Jun-02 23:03, Paul Brossier wrote:
  I have also tried to install a pppc64 chroot as explained in
  http://debian-ppc64.alioth.debian.org/READ_ME , but:
  
  sudo debootstrap --arch ppc64 \
   --exclude=gcc-3.3-base,libstdc++5,libdb3 \
   --include=gcc-4.0-base,libstdc++6 \
   sarge ppc64.chroot http://debian-ppc64.alioth.debian.org/gcc4
  [...]
  I: Validating aptitude
  I: Retrieving aptitude
  W: 
  http://debian-ppc64.alioth.debian.org/gcc4/pool/main/a/aptitude/aptitude_0.2.15.9-2.0.0.1.gcc4_ppc64.deb
   was corrupt
  E: Couldn't download aptitude
 
 Please use sid - sarge is not working yet.
 
  when using sid instead, i just get:
  E: Couldn't download gcc-4.0-base
  
  i have debootstrap 0.2.45-0.2 installed. any idea?
 
 The problem with 'gcc-4.0-base' has been fixed. 
 The debootstrap command for ppc64/sid should work now.

it does work fine. one thing though, when i use my local apt-cacher, i
get corrupted archives on Arch:all packages; the version in my cache
doesn't seem to match yours. on trying to fetch debconf, debootstrap
says:

W: 
http://myhost/apt-cacher/debian-ppc64.alioth.debian.org/gcc4/pool/main/d/debconf/debconf_1.4.50_all.deb
 was corrupt
E: Couldn't download debconf

thanks, paul


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: iMac G5 Status?

2005-06-04 Thread Sven Luther
On Sat, Jun 04, 2005 at 10:28:38PM +0100, Paul Brossier wrote:
 sorry, just for precision, does that mean, the power4 flavour is
 deprecated in newer kernels in favour of the pseries? i quite liked the
 idea of being able to install a full 32 bits system on a G5.

If you really want a 32bit system, you would need to install the following as
64bit still :

  64bit kernel, biarch glibc, 64bit libncurse and procps.

The rest of it can all be 32bit userland, as far as i understand at least.
If you build a static 64bit procps, you can also go away with only the 64bit
kernel and it.

The truth is that 32bit kernel support on ppc64 processors is going to go away
rather sooner than later, and is less well maintained by upstream even now,
and usually breaks often and needs to be hand-fixed.

Friendly,

Sven Luther


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: iMac G5 Status?

2005-06-03 Thread Andreas Jochens
On 05-Jun-02 23:03, Paul Brossier wrote:
 I have also tried to install a pppc64 chroot as explained in
 http://debian-ppc64.alioth.debian.org/READ_ME , but:
 
 sudo debootstrap --arch ppc64 \
  --exclude=gcc-3.3-base,libstdc++5,libdb3 \
  --include=gcc-4.0-base,libstdc++6 \
  sarge ppc64.chroot http://debian-ppc64.alioth.debian.org/gcc4
 [...]
 I: Validating aptitude
 I: Retrieving aptitude
 W: 
 http://debian-ppc64.alioth.debian.org/gcc4/pool/main/a/aptitude/aptitude_0.2.15.9-2.0.0.1.gcc4_ppc64.deb
  was corrupt
 E: Couldn't download aptitude

Please use sid - sarge is not working yet.

 when using sid instead, i just get:
 E: Couldn't download gcc-4.0-base
 
 i have debootstrap 0.2.45-0.2 installed. any idea?

The problem with 'gcc-4.0-base' has been fixed. 
The debootstrap command for ppc64/sid should work now.

Thanks for reporting this issue.

Regards
Andrea Jochens


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: iMac G5 Status?

2005-06-02 Thread Colin Leroy
On Thu, 02 Jun 2005 11:56:57 +1000
Benjamin Herrenschmidt [EMAIL PROTECTED] wrote:

  o [iMac G5] Fan controls?
 
 I'm in the middle of implementing that. For now, you get fans full
 speed all the time.

About fan control in latest Macs, the Mini seems to have a Max6642 chip
with specs available at http://pdfserv.maxim-ic.com/en/ds/MAX6642.pdf

And according to this pdf, implementing fan control in the mac mini is
a matter of copy-pasting therm_adt746x and changing only bits.

-- 
Colin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: iMac G5 Status?

2005-06-02 Thread Paul Brossier
On Thu, Jun 02, 2005 at 11:56:57AM +1000, Benjamin Herrenschmidt wrote:
 On Thu, 2005-06-02 at 00:15 +1200, Joel Van Velden wrote:
  Hi everyone.
  
  I have an iMac G5 (first revision) and am trying to install debian on 
  it, but first i am wondering what is supported:
 
 I got one recently and started doing some serious work on the missing
 pieces. However, I've been a bit delayed by other more important work
 things, but it's still high on my todolist.

i have just tried a daily sarge businesscard on a powerbook g5. the installer
works just fine using the install-power4 option. I could also resize the hpfs
partition using parted (from the command line, and after having disabled the
journaling in osx). 2.6.8-power4-smp and 2.6.11-power4-smp both work fine too.

i am now trying to compile 2.6.12-rc5 using a config derived from debian's
2.6.11-power4, adding support for  smu, suspend, and cpufreq support, but i get
a few errors, and a few questions too.

first of all, how do i compile a ppc64, and what do i need to boot/use it? i
have PPC_PMA64 and PPC64BRIDGE set, but include/asm points to
include/asm-ppc64.

  o Analogue sound output?
 
 Not yet.

Ben, did you not say the -rc4 will have analog work on some desktop G5 in a
previous thread?

  o Dynamic CPU clock scaling?
 
 Will be there soon too. Probably along with Fan control.

according to the warning in arch/ppc/platforms/pmac_cpufreq.c, using cpufreq on
smp kernel is not a good idea. what is the status of this?  (btw, the
___save_processor_state call should be replaced by save_processor_state)

and what about altivec support? is there no such thing anymore?

  What is the best/easiest way to actually install debian on an imac?
  Should i be using the newfangled debian-installer release candidates, or 
  something else?
 
 I suppose you want somebody to build you a 64 bits kernel with proper
 SMU support and boot that with the debian install initrd...

When CONFIG_PMAC_SMU is set, i get 

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
drivers/macintosh/smu.c: In function `smu_cmd_done':
drivers/macintosh/smu.c:121: warning: implicit declaration of function `udelay'
drivers/macintosh/smu.c: In function `smu_do_cmd':
drivers/macintosh/smu.c:140: warning: implicit declaration of function 
`flush_inval_dcache_range'
drivers/macintosh/smu.c: In function `smu_init':
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'

ater deactivating CONFIG_PMAC_SMU, i get:
 
drivers/built-in.o(.pmac.text+0x37fc): In function `pmac_suspend_devices':
: undefined reference to `pmac_tweak_clock_spreading'
drivers/built-in.o(.pmac.text+0x39b8): In function `pmac_wakeup_devices':
: undefined reference to `pmac_tweak_clock_spreading'

which i still get after deactiving SWSUSPEND and USB SUSPEND

thanks, paul


signature.asc
Description: Digital signature


Re: iMac G5 Status?

2005-06-02 Thread Benjamin Herrenschmidt
On Thu, 2005-06-02 at 08:46 +0200, Colin Leroy wrote:
 On Thu, 02 Jun 2005 11:56:57 +1000
 Benjamin Herrenschmidt [EMAIL PROTECTED] wrote:
 
   o [iMac G5] Fan controls?
  
  I'm in the middle of implementing that. For now, you get fans full
  speed all the time.
 
 About fan control in latest Macs, the Mini seems to have a Max6642 chip
 with specs available at http://pdfserv.maxim-ic.com/en/ds/MAX6642.pdf
 
 And according to this pdf, implementing fan control in the mac mini is
 a matter of copy-pasting therm_adt746x and changing only bits.

Except that not :)

irc, some stuff is attached to the PMU for which the i2c bus is not
exposed by the kernel, and the fan seem to be attached to the PMU as
well, at least according to the device-tree again...

Ben.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: iMac G5 Status?

2005-06-02 Thread Benjamin Herrenschmidt

 i have just tried a daily sarge businesscard on a powerbook g5. the installer
 works just fine using the install-power4 option. I could also resize the hpfs
 partition using parted (from the command line, and after having disabled the
 journaling in osx). 2.6.8-power4-smp and 2.6.11-power4-smp both work fine too.
 
 i am now trying to compile 2.6.12-rc5 using a config derived from debian's
 2.6.11-power4, adding support for  smu, suspend, and cpufreq support, but i 
 get
 a few errors, and a few questions too.

Are you living on a different space/time continuum ? :)

First, there is no such thing as a powerbook g5 yet ...

Then, if it's a g5 machine, no kernel supports suspend and cpufreq yet
neither.

Finally, the SMU support upstream is very basic, I rewrote the driver
but haven't merged the new one yet.

 first of all, how do i compile a ppc64, and what do i need to boot/use it? i
 have PPC_PMA64 and PPC64BRIDGE set, but include/asm points to
 include/asm-ppc64.

You need a biarch (32  64 bits) toolchain and make ARCH=ppc64

   o Analogue sound output?
  
  Not yet.
 
 Ben, did you not say the -rc4 will have analog work on some desktop G5 in a
 previous thread?

Yes, on some deskop G5s, but not on the iMac yet, it's a different chip.

   o Dynamic CPU clock scaling?
  
  Will be there soon too. Probably along with Fan control.
 
 according to the warning in arch/ppc/platforms/pmac_cpufreq.c, using cpufreq 
 on
 smp kernel is not a good idea. what is the status of this?  (btw, the
 ___save_processor_state call should be replaced by save_processor_state)
 
 and what about altivec support? is there no such thing anymore?

None of that code in arch/ppc/* is suitable for ppc64 machines anyway,
you are mixing 32 and 64 bits kernel here. The cpufreq code isn't
working on any SMP machine at the moment anyways due to the way it
recalibrates the jiffies.

Altivec is supported on both 32 and 64 bits kernels.

   What is the best/easiest way to actually install debian on an imac?
   Should i be using the newfangled debian-installer release candidates, or 
   something else?
  
  I suppose you want somebody to build you a 64 bits kernel with proper
  SMU support and boot that with the debian install initrd...
 
 When CONFIG_PMAC_SMU is set, i get 

This option is not supported on 32 bits kernel, it's a Kconfig mistake
that it lets you turn it on.

 ater deactivating CONFIG_PMAC_SMU, i get:
  
 drivers/built-in.o(.pmac.text+0x37fc): In function `pmac_suspend_devices':
 : undefined reference to `pmac_tweak_clock_spreading'
 drivers/built-in.o(.pmac.text+0x39b8): In function `pmac_wakeup_devices':
 : undefined reference to `pmac_tweak_clock_spreading'
 
 which i still get after deactiving SWSUSPEND and USB SUSPEND

Just don't try to build 32 bits kernels for G5, this isn't supported
anymore and I will remove the option soon

Ben.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: iMac G5 Status?

2005-06-02 Thread Benjamin Herrenschmidt
On Thu, 2005-06-02 at 23:03 +0100, Paul Brossier wrote:
 On Thu, Jun 02, 2005 at 04:12:08PM +0100, Paul Brossier wrote:
   first of all, how do i compile a ppc64, and what do i need to boot/use 
   it? i
 
 erm, after a bit of RTFMing and reading earlier threads in this list, i
 start getting it. i have tried the multiarch kernel package from Sven.
 (http://people.debian.org/~luther/ppc64/) it works nicely, except the
 fan goes really full speed, much higher than using the 2.6.11-power4.

What machine is this precisely ? (What does cat /proc/device-tree/model
says ?) Maybe you didn't build the fan control ? You should use a
g5_defconfig, it contains all you need.

 I have also tried to install a pppc64 chroot as explained in
 http://debian-ppc64.alioth.debian.org/READ_ME , but:
 
 sudo debootstrap --arch ppc64 \
  --exclude=gcc-3.3-base,libstdc++5,libdb3 \
  --include=gcc-4.0-base,libstdc++6 \
  sarge ppc64.chroot http://debian-ppc64.alioth.debian.org/gcc4
 [...]
 I: Validating aptitude
 I: Retrieving aptitude
 W: 
 http://debian-ppc64.alioth.debian.org/gcc4/pool/main/a/aptitude/aptitude_0.2.15.9-2.0.0.1.gcc4_ppc64.deb
  was corrupt
 E: Couldn't download aptitude
 
 when using sid instead, i just get:
 E: Couldn't download gcc-4.0-base
 
 i have debootstrap 0.2.45-0.2 installed. any idea?
 
 thanks, paul
 
 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: iMac G5 Status?

2005-06-02 Thread Paul Brossier
On Fri, Jun 03, 2005 at 08:40:11AM +1000, Benjamin Herrenschmidt wrote:
  erm, after a bit of RTFMing and reading earlier threads in this list, i
  start getting it. i have tried the multiarch kernel package from Sven.
  (http://people.debian.org/~luther/ppc64/) it works nicely, except the
  fan goes really full speed, much higher than using the 2.6.11-power4.
 
 What machine is this precisely ? (What does cat /proc/device-tree/model
 says ?) Maybe you didn't build the fan control ? You should use a
 g5_defconfig, it contains all you need.

/proc/device-tree/model says PowerMac7,2

well, at least CONFIG_ADB and CONFIG_THERM_PM72 aren't set in
/boot/config-2.6.11-pseries, i guess that would help.

thanks, paul


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: iMac G5 Status?

2005-06-02 Thread Benjamin Herrenschmidt
On Fri, 2005-06-03 at 00:02 +0100, Paul Brossier wrote:
 On Fri, Jun 03, 2005 at 08:40:11AM +1000, Benjamin Herrenschmidt wrote:
   erm, after a bit of RTFMing and reading earlier threads in this list, i
   start getting it. i have tried the multiarch kernel package from Sven.
   (http://people.debian.org/~luther/ppc64/) it works nicely, except the
   fan goes really full speed, much higher than using the 2.6.11-power4.
  
  What machine is this precisely ? (What does cat /proc/device-tree/model
  says ?) Maybe you didn't build the fan control ? You should use a
  g5_defconfig, it contains all you need.
 
 /proc/device-tree/model says PowerMac7,2

Or, that one should be well supported.

 well, at least CONFIG_ADB and CONFIG_THERM_PM72 aren't set in
 /boot/config-2.6.11-pseries, i guess that would help.

CONFIG_ADB isn't useful but CONFIG_THERM_PM72 is

Ben.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



iMac G5 Status?

2005-06-01 Thread Joel Van Velden

Hi everyone.

I have an iMac G5 (first revision) and am trying to install debian on 
it, but first i am wondering what is supported:


o Analogue sound output?
o Network card?
o Fan controls?
o Dynamic CPU clock scaling?

What is the best/easiest way to actually install debian on an imac?
Should i be using the newfangled debian-installer release candidates, or 
something else?


Many thanks,
Joel


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: iMac G5 Status?

2005-06-01 Thread Benjamin Herrenschmidt
On Thu, 2005-06-02 at 00:15 +1200, Joel Van Velden wrote:
 Hi everyone.
 
 I have an iMac G5 (first revision) and am trying to install debian on 
 it, but first i am wondering what is supported:

I got one recently and started doing some serious work on the missing
pieces. However, I've been a bit delayed by other more important work
things, but it's still high on my todolist.

 o Analogue sound output?

Not yet.

 o Network card?

Works.

 o Fan controls?

I'm in the middle of implementing that. For now, you get fans full speed
all the time.

 o Dynamic CPU clock scaling?

Will be there soon too. Probably along with Fan control.

 What is the best/easiest way to actually install debian on an imac?
 Should i be using the newfangled debian-installer release candidates, or 
 something else?

I suppose you want somebody to build you a 64 bits kernel with proper
SMU support and boot that with the debian install initrd...

Ben.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]