Talk:Linux on Apple TV

From AwkwardTV
Jump to: navigation, search

kad77:

Let's discuss the direction of the Linux page; how it should be organized and updated, etc.

Many bits of interesting info have been removed, because they aren't directly relevant to using gimli's loader method.


Christian:

My ATV is set up w/ gentoo. Alsa is installed, but the volume is extremely low, almost no sound at all. I tried compiling ALSA as part of the kernel or modules, I tried loading the ALSA modules w/ the four or five options for the ALC882 given at the alsa-project.org website - nothing.

If anyone has succeeded w/ sound on our little box - please tell everyone how, maybe post your kernel .config? Thanks...

Patch From Mythic-Beasts.com

--- linux-2.6.20.6/sound/pci/hda/patch_realtek.c.orig	2007-04-26 13:28:30.000000000 +0100
+++ linux-2.6.20.6/sound/pci/hda/patch_realtek.c	2007-04-26 13:48:35.000000000 +0100
@@ -4584,7 +4584,10 @@
 
 	codec->spec = spec;
 
-	board_config = snd_hda_check_board_config(codec, alc882_cfg_tbl);
+	/*XXX: Hack for Apple TV - breaks other things */
+	board_config = ALC882_3ST_DIG;
+	/*board_config = snd_hda_check_board_config(codec, alc882_cfg_tbl);*/
+	/*XXX: End hack */
 
 	if (board_config < 0 || board_config >= ALC882_MODEL_LAST) {
 		printk(KERN_INFO "hda_codec: Unknown model for ALC882, "

davilla:

For 2.6.20.6 kernel, the easier way (no patching required) it to add to /etc/modprobe.d/alsa-base

options snd-hda-intel model=3stack-dig

If you are running the most recent alsa release, it has ALC885 additions (for the MacPro) so use

options snd-hda-intel model=macpro

Analog sound output is still weak but much better. The ALC885 pin def needs some work.

A patch for analog audio has been created, see the forum (http://forum.awkwardtv.org/viewtopic.php?f=23&t=167&hilit=&start=70)


Gnomeza 03:20, 17 October 2007 (CEST) :

The section on IR support still mentions patching the kernel module. This should be replaced with the HIDDEV method.

My installation notes using Debian etch.

They're *very* rough logs I'm making as I go along. I'm cross-compiling packages (like lirc-0.8.2) for AppleTV on an amd64 host.

HDMI sound

My appleTV is connected via HDMI to the TV. No sound is going via HDMI, and other avenues are not possible at the moment... I tried decyphering /proc/asound/Intel/codec#0 to patch patch_realtek.c but without success.

Detail: the RCA seems to be disabled by the presence of the HDMI cable... :-(

  • Yep, no audio on HDMI. But I'm currently using HDMI video and RCA audio. Did you apply the RCA patch? And also check the ALSA volume levels? And set your TV to use analog audio instead of HDMI audio? -- Gnomeza 01:55, 25 October 2007 (CEST)

Additional info:

  • When I boot the appletv with HDMI connected, I get NO sound via RCA.
  • When I boot the appletv with HDMI disconnected, I get sound via RCA.
  • When I boot the appletv with HDMI disconnected, I get sound via RCA. When I connect HDMI afterwards, I get no video output, but sound. When starting X, I get video output, but sound stops working.

Anybody any ideas on this? I'm using debian unstable with vanilla 2.6.22.1 kernel plus linux-2.6.22.1-appletv-combo patch. -- the_sven 11:40, 19 December 2007 (CEST)

You can get HDMI audio working, see solution [1]. Ace 15:30, 24 November 2008 (CET)

Fixed hardware: Why no downloadable image?

Guys, this is fixed hardware... instead of every single person who wants to try this having to compile everything themselves, why not upload an .img they could dd to the drive? Or better yet, to a USB stick?

No one is going to do anything different on a base image.

problems when making kernel

localhost linux-2.6.20.6 # make all && make modules_install 
scripts/kconfig/conf -s arch/x86_64/Kconfig 
CHK     include/linux/version.h 
CHK     include/linux/utsrelease.h 
CC      arch/x86_64/kernel/asm-offsets.s 
arch/x86_64/kernel/asm-offsets.c:1: error: code model 'kernel' not supported in the 32 bit mode 
arch/x86_64/kernel/asm-offsets.c:1: sorry, unimplemented: 64-bit mode not compiled in 
make[1]: *** [arch/x86_64/kernel/asm-offsets.s] Error 1 
make: *** [prepare0] Error 2 

the system i am chrooting into the appletv HD is an amd64. i think it has to do with difference in my current system and the chrooting environment with regards to 32 vs 64 bit but i cannot figure out how to solve problem.