Archive talk:Install Ubuntu and XBMC on Asus EeeBox PC EB1501: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
>Kreischweide
m (Karellen moved page HOW-TO talk:Install Ubuntu and XBMC on Asus EeeBox PC EB1501 to Archive talk:Install Ubuntu and XBMC on Asus EeeBox PC EB1501 without leaving a redirect: Outdated. Hardware from April 2010)
 
(28 intermediate revisions by 10 users not shown)
Line 1: Line 1:
== EB1501 German Edition ==
== EB1501 German / Asian Edition ==
System: Linux HTPC 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 16:20:31 UTC 2009 i686 GNU/Linux
System: Linux HTPC 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 16:20:31 UTC 2009 i686 GNU/Linux
Remote (see battery slots): RC1974502/00
=== No MCE USB IR Receiver ===
=== No MCE USB IR Receiver ===
There seem to be some specifics with this version of the eeeBox. There was no any MCE USB IR Receiver packaged, instead there was a notice that states:
There seem to be some specifics with this version of the eeeBox. There was no any MCE USB IR Receiver packaged, instead there was a notice that states:
Line 6: Line 8:
"The EeeBox PC has a built-in IR receiver designed for the remote control. When you install the EeeBox PC to the back of the monitor and thus block the IR receiver, the remote control may be less sensitive. The USB IR receiver is not included in the product package."
"The EeeBox PC has a built-in IR receiver designed for the remote control. When you install the EeeBox PC to the back of the monitor and thus block the IR receiver, the remote control may be less sensitive. The USB IR receiver is not included in the product package."


Also if call
=== Notes to get build-in IR receiver to work with the remote control ===
  xbmc:$ cat /proc/bus/input/devices
 
1) rebuild the ITE modules
sudo apt-get install lirc lirc-modules-source module-assistant
  sudo dpkg-reconfigure lirc-modules-source
 
2) edit the following lines in /etc/lirc/hardware.conf


these are the only lines available with no USB devices attached:
REMOTE_MODULES="lirc_dev lirc_it87"
REMOTE_DEVICE="/dev/lirc0"
REMOTE_LIRCD_CONF="mceusb/lircd.conf.mceusb"
REMOTE_LIRCD_ARGS="--output=/dev/lircd"


  I: Bus=0019 Vendor=0000 Product=0001 Version=0000
  LOAD_MODULES="true"
N: Name="Power Button"
P: Phys=LNXPWRBN/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
U: Uniq=
H: Handlers=kbd event0
B: EV=3
B: KEY=100000 0 0 0
   
   
  I: Bus=0019 Vendor=0000 Product=0001 Version=0000
  START_LIRCD="true"
N: Name="Power Button"
 
P: Phys=PNP0C0C/button/input0
3) create /etc/modprobe.d/lirc.conf and add the three lines
S: Sysfs=/devices/LNXSYSTM:00/device:00/PNP0C0C:00/input/input1
  alias char-major-61 lirc_dev
U: Uniq=
  options lirc_it87 irq=05 io=0x2f8
  H: Handlers=kbd event1
  install lirc_it87 echo activate > /sys/devices/pnp0/00:09/resources ; modprobe --ignore-install lirc_it87 $CMDLINE_OPTS
  B: EV=3
 
B: KEY=100000 0 0 0
4) you may need to copy the LIRC over to the XBMC directory
   
  cp /usr/share/xbmc/system/Lircmap.xml ~/.xbmc/userdata
I: Bus=0017 Vendor=0001 Product=0001 Version=0100
N: Name="Macintosh mouse button emulation"
P: Phys=
S: Sysfs=/devices/virtual/input/input2
U: Uniq=
H: Handlers=mouse0 event2
B: EV=7
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=3
I: Bus=0001 Vendor=10ec Product=0662 Version=0001
  N: Name="HDA Digital PCBeep"
P: Phys=card0/codec#0/beep0
S: Sysfs=/devices/pci0000:00/0000:00:08.0/input/input5
U: Uniq=
H: Handlers=kbd event5
B: EV=40001
B: SND=6


If i start Windows and look through the device manager, this is the only unknown component, having the following information:
=== Enabling the Play DVD Button on the Remote Control ===


  PCI\VEN_10DE&DEV_0AAD&SUBSYS_83E91043&REV_B2\3&267a616a&0&18
1) The original Lircmap.xml and remote.xml does not cater for the DVD button. To rectify that, add an additional entry in ~/.xbmc/userdata/Lircmap.xml under the <remote device="mceusb"> section
ACPI\ITE8713
  <obc1>DVD</obc1>


Right now i have no clue how to enable the onboard IR receiver on Ubuntu (in Windows i got it working). The remote control is the same.
2) In the remote.xml file (for my case, this is located at /home/xbmc/.xbmc/userdata/keymaps), add the following outside the <remote> </remote> group
    <universalremote>
      <obc1>PlayDVD</obc1>
    </universalremote>
3) A CD or DVD can now be played with using the DVD button (located just above number 3)
4) Other keys can be remapped according to individual preferences


=== Startup error ===
=== Startup error ===
Line 65: Line 55:
  sudo update-grub
  sudo update-grub


== Wifi / Wireless setup with WPA2 ==
I had a hassle enabling WPA2 access, connections breaking up every 10-60s for multple minutes, so i kept a note on the steps how to get it working anyway.
The given wireless adapter on the EB1501 is
Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) (rev 01)
according to
lspci -v | grep Network
Disabling the blacklisted atheros module as mentioned [http://forum.xbmc.org/showthread.php?t=66153 here]
sudo vi /etc/modprobe.d/blacklist-ath_pci.conf
Commenting the following line out
ath_pci blacklist
Install all tools:
sudo apt-get install wpasupplicant linux-backports-modules-karmic linux-backports-modules-wireless-karmic-generic
the following steps are based on the guide found [http://art.ubuntuforums.org/showthread.php?p=1884950 here]. Then we generate our psk-key we need later by executing
wpa_passphrase <your_essid> <your_ascii_key>
In the result we need to copy value found under the "psk" key. Next we edit
sudo vi /etc/network/interfaces
and add the following lines to the bottom
auto wlan0
iface wlan0 inet dhcp
wpa-driver wext
wpa-ssid <your_essid>
wpa-ap-scan 1
wpa-proto RSN
wpa-pairwise CCMP
wpa-group CCMP
wpa-key-mgmt WPA-PSK
wpa-psk <psk_key_from_wpa_passphrase>
we could also disable the following line to disable automatic startup of the ethernet interface
auto eth0
then restart the whole networking stuff with
/etc/init.d/networking restart
then everything went fine, a dhcp ip was given and so on. Maybe there is an easier way but im not that into linux :)
== Wireless Setup Alternative ==
My EeeBox with Atheros 9285 PCI adaptor had issues sustaining both non-secured and secure wireless connections.  It would randomly disconnect and would ''always'' freeze when transfering large files or sustained throughput at anything over 500Kbps.  Installing the backports (described above) did not work for me and others have had varying success with them; could be due to issues with N access points.
However, I did get everything working perfectly by using the latest Linux Wireless drivers available here - [http://linuxwireless.org/en/users/Download http://linuxwireless.org/en/users/Download]
''Note - that you must first install the Ubuntubuild environment and tools if not already present:''
xbmc:$ sudo apt-get install build-essential
''Note - I first tried the backports and then installed these drivers, but that didn't work.  I only found success after rebuilding Ubuntu (using the minimal server package in the main article) and then installing only these wireless drivers, your milage may vary...''
Follow the steps for [http://linuxwireless.org/en/users/Download#Directly_downloading_the_tarball downloading and extracting] the latest driver package.  Then use the following commands (repeated in detail on the web page, but this is all you need):
1) Select just the Atheros driver components to build:
xbmc:$ ./scripts/driver-select ath9k
2) Build the driver
xbmc:$ make
3) Install the driver
xbmc:$ sudo make install


=== Guide conflicts ===
4) Reboot to enable the driver
The following item could not be executed
  xbmc:$ sudo reboot
  xbmc@HTPC:~$ sudo nvidia-xconfig -s --no-logo --force-generate --output-xconfig=/etc/X11/xorg.conf
The following error message came up
pkg-config: not found
had to install it first with
sudo apt-get install pkg-config
Maybe i misread something in the guide?


And the line
FYI, the wireless drivers in Ubuntu Lucid Lynx beta worked for me out of the box, but I couldn't get XBMC working due to nVidia driver issues, so best wait until 10.04 is released and this guide updated.
vi /etc/default/console-setup
is missing the precending "sudo" right?

Latest revision as of 21:26, 17 June 2020

EB1501 German / Asian Edition

System: Linux HTPC 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 16:20:31 UTC 2009 i686 GNU/Linux Remote (see battery slots): RC1974502/00

No MCE USB IR Receiver

There seem to be some specifics with this version of the eeeBox. There was no any MCE USB IR Receiver packaged, instead there was a notice that states:

"The EeeBox PC has a built-in IR receiver designed for the remote control. When you install the EeeBox PC to the back of the monitor and thus block the IR receiver, the remote control may be less sensitive. The USB IR receiver is not included in the product package."

Notes to get build-in IR receiver to work with the remote control

1) rebuild the ITE modules

sudo apt-get install lirc lirc-modules-source module-assistant
sudo dpkg-reconfigure lirc-modules-source

2) edit the following lines in /etc/lirc/hardware.conf

REMOTE_MODULES="lirc_dev lirc_it87"
REMOTE_DEVICE="/dev/lirc0"
REMOTE_LIRCD_CONF="mceusb/lircd.conf.mceusb"
REMOTE_LIRCD_ARGS="--output=/dev/lircd"
LOAD_MODULES="true"

START_LIRCD="true"

3) create /etc/modprobe.d/lirc.conf and add the three lines

alias char-major-61 lirc_dev
options lirc_it87 irq=05 io=0x2f8
install lirc_it87 echo activate > /sys/devices/pnp0/00:09/resources ; modprobe --ignore-install lirc_it87 $CMDLINE_OPTS

4) you may need to copy the LIRC over to the XBMC directory

cp /usr/share/xbmc/system/Lircmap.xml ~/.xbmc/userdata

Enabling the Play DVD Button on the Remote Control

1) The original Lircmap.xml and remote.xml does not cater for the DVD button. To rectify that, add an additional entry in ~/.xbmc/userdata/Lircmap.xml under the <remote device="mceusb"> section

 <obc1>DVD</obc1>

2) In the remote.xml file (for my case, this is located at /home/xbmc/.xbmc/userdata/keymaps), add the following outside the <remote> </remote> group

   <universalremote>
      <obc1>PlayDVD</obc1>
   </universalremote>

3) A CD or DVD can now be played with using the DVD button (located just above number 3) 4) Other keys can be remapped according to individual preferences

Startup error

On startup i got the following error message:

nforce2_smbus [...] conflichts with ACPI [...]

I got it fixed by

sudo vi /etc/default/grub

and editing the GRUB_CMDLINE_LINUX according to this bugreport

GRUB_CMDLINE_LINUX="acpi_enforce_resources=lax"

and update the grub again with

sudo update-grub

Wifi / Wireless setup with WPA2

I had a hassle enabling WPA2 access, connections breaking up every 10-60s for multple minutes, so i kept a note on the steps how to get it working anyway.

The given wireless adapter on the EB1501 is

Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) (rev 01)

according to

lspci -v | grep Network 

Disabling the blacklisted atheros module as mentioned here

sudo vi /etc/modprobe.d/blacklist-ath_pci.conf

Commenting the following line out

ath_pci blacklist

Install all tools:

sudo apt-get install wpasupplicant linux-backports-modules-karmic linux-backports-modules-wireless-karmic-generic

the following steps are based on the guide found here. Then we generate our psk-key we need later by executing

wpa_passphrase <your_essid> <your_ascii_key>

In the result we need to copy value found under the "psk" key. Next we edit

sudo vi /etc/network/interfaces

and add the following lines to the bottom

auto wlan0
iface wlan0 inet dhcp
wpa-driver wext
wpa-ssid <your_essid>
wpa-ap-scan 1
wpa-proto RSN
wpa-pairwise CCMP
wpa-group CCMP
wpa-key-mgmt WPA-PSK
wpa-psk <psk_key_from_wpa_passphrase>

we could also disable the following line to disable automatic startup of the ethernet interface

auto eth0

then restart the whole networking stuff with

/etc/init.d/networking restart

then everything went fine, a dhcp ip was given and so on. Maybe there is an easier way but im not that into linux :)

Wireless Setup Alternative

My EeeBox with Atheros 9285 PCI adaptor had issues sustaining both non-secured and secure wireless connections. It would randomly disconnect and would always freeze when transfering large files or sustained throughput at anything over 500Kbps. Installing the backports (described above) did not work for me and others have had varying success with them; could be due to issues with N access points.

However, I did get everything working perfectly by using the latest Linux Wireless drivers available here - http://linuxwireless.org/en/users/Download

Note - that you must first install the Ubuntubuild environment and tools if not already present:

xbmc:$ sudo apt-get install build-essential

Note - I first tried the backports and then installed these drivers, but that didn't work. I only found success after rebuilding Ubuntu (using the minimal server package in the main article) and then installing only these wireless drivers, your milage may vary...

Follow the steps for downloading and extracting the latest driver package. Then use the following commands (repeated in detail on the web page, but this is all you need):

1) Select just the Atheros driver components to build:

xbmc:$ ./scripts/driver-select ath9k

2) Build the driver

xbmc:$ make

3) Install the driver

xbmc:$ sudo make install

4) Reboot to enable the driver

xbmc:$ sudo reboot

FYI, the wireless drivers in Ubuntu Lucid Lynx beta worked for me out of the box, but I couldn't get XBMC working due to nVidia driver issues, so best wait until 10.04 is released and this guide updated.