[molecules/beagleboard-xm] add molecules for the BeagleBoard xM

This commit is contained in:
Fabio Erculiani 2012-01-31 20:44:47 +01:00
parent ea86e42014
commit ce63bf4082
6 changed files with 147 additions and 38 deletions

View File

@ -0,0 +1,70 @@
Hi, welcome to Sabayon for the BeagleBoard xM.
First of all, you may want to install the image into a new SDHC card.
Make sure to have enough space for it, for example, if you downloaded
the 4GB version, make sure you're using a 4GB SDHC stick.
Other requirements:
-------------------
- a Linux distro to copy the image to the SDHC
- a SDHC reader
- a root shell on the Linux distro
How to burn the image:
----------------------
Insert the SDHC memory into your reader (make sure that the LOCK
switch is turned off). After a few seconds, type:
# dmesg | tail -n 10
In the last kernel message lines you will be able to read the
actual device name, might be something like "sdc" or in general
"sdX" where X is just a letter.
Make sure to see the same device name inside /dev directory.
Once you got the name, just dump the image into that, in this
example, we assume that the device is /dev/sdc and the image
name is "Sabayon_Linux_8_armv7a_BeagleBoard_xM_4GB.img".
Do this as root!
# xzcat Sabayon_Linux_8_armv7a_BeagleBoard_xM_4GB.img > /dev/sdd
Once it is done, check for any error using:
# dmesg | tail -n 10
And if it's all good, type:
# sync; sync; sync
To make sure everything has been flushed to the device.
At this point, extract your SDHC and place it into the BeagleBoard xM.
You're set!
How to change keyboard mapping:
-------------------------------
Our images come with "keyboard-setup", a shell too that lets you easily
do this, just type:
# keyboard-setup "<your keyboard layout code>" all
Then reboot!
How to change language:
-----------------------
Open /etc/locale.gen and add your locale (you can find a full list
at: /usr/share/i18n/SUPPORTED).
Make sure to add UTF-8 locales, this is what we support.
Once you've added your line, just type:
# language-setup "<your locale, without the .UTF-8 part>" system
Then reboot!

View File

@ -1,9 +1,27 @@
# List of packages to add on the BeagleBoard xM
packages_to_add:
@lxde,
app-misc/sabayonlive-tools,
app-misc/sabayon-skel,
app-admin/syslog-ng,
lxde-base/lxdm,
gnome-extra/nm-applet-gtk2,
net-fs/nfs-utils,
net-misc/networkmanager,
net-misc/ntp,
sys-apps/keyboard-configuration-helpers,
sys-apps/language-configuration-helpers,
sys-kernel/linux-beagle,
x11-base/xorg-server,
x11-drivers/xf86-video-omapfb
x11-drivers/xf86-input-evdev,
x11-drivers/xf86-video-omapfb,
x11-terms/xterm,
x11-terms/eterm,
x11-themes/equinox-themes,
x11-themes/gtk-engines:2,
x11-themes/sabayon-artwork-core,
x11-wm/fluxbox,
www-client/midori
# List of packages to remove from the BeagleBoard xM image
packages_to_remove:

View File

@ -1,24 +0,0 @@
%import /sabayon/molecules/arm-base.common
%import /sabayon/molecules/beagleboard-xm.common
# Release desc (the actual release description)
release_desc: armv7a BeagleBoard xM
# Release Version (used to generate release_file)
release_version: 8
# Specify image file name (image file name will be automatically
# produced otherwise)
image_name: Sabayon_Linux_8_armv7a_BeagleBoard_xM_16GB.img
# Specify the image file size in Megabytes. This is mandatory.
# To avoid runtime failure, make sure the image is large enough to fit your
# chroot data.
image_mb: 16000
# Path to boot partition data (MLO, u-boot.img etc)
source_boot_directory: /sabayon/boot/arm/beagleboard-xm
# External script that will generate the image file.
# The same can be copied onto a MMC by using dd
image_generator_script: /sabayon/scripts/beagleboard_xm_image_generator_script.sh

View File

@ -14,7 +14,7 @@ image_name: Sabayon_Linux_8_armv7a_BeagleBoard_xM_4GB.img
# Specify the image file size in Megabytes. This is mandatory.
# To avoid runtime failure, make sure the image is large enough to fit your
# chroot data.
image_mb: 3800
image_mb: 3900
# Path to boot partition data (MLO, u-boot.img etc)
source_boot_directory: /sabayon/boot/arm/beagleboard-xm

View File

@ -9,12 +9,12 @@ release_version: 8
# Specify image file name (image file name will be automatically
# produced otherwise)
image_name: Sabayon_Linux_8_armv7a_BeagleBoard_xM_4GB.img
image_name: Sabayon_Linux_8_armv7a_BeagleBoard_xM_8GB.img
# Specify the image file size in Megabytes. This is mandatory.
# To avoid runtime failure, make sure the image is large enough to fit your
# chroot data.
image_mb: 7800
image_mb: 7900
# Path to boot partition data (MLO, u-boot.img etc)
source_boot_directory: /sabayon/boot/arm/beagleboard-xm

View File

@ -6,19 +6,64 @@
env-update
. /etc/profile
setup_displaymanager() {
# determine what is the login manager
if [ -n "$(equo match --installed gnome-base/gdm -qv)" ]; then
sed -i 's/DISPLAYMANAGER=".*"/DISPLAYMANAGER="gdm"/g' /etc/conf.d/xdm
elif [ -n "$(equo match --installed lxde-base/lxdm -qv)" ]; then
sed -i 's/DISPLAYMANAGER=".*"/DISPLAYMANAGER="lxdm"/g' /etc/conf.d/xdm
elif [ -n "$(equo match --installed kde-base/kdm -qv)" ]; then
sed -i 's/DISPLAYMANAGER=".*"/DISPLAYMANAGER="kdm"/g' /etc/conf.d/xdm
else
sed -i 's/DISPLAYMANAGER=".*"/DISPLAYMANAGER="xdm"/g' /etc/conf.d/xdm
fi
}
setup_boot() {
# enable sshd by default
rc-update add sshd default
# enable logger by default
rc-update add syslog-ng boot
# enable dbus, of course, and also NetworkManager
rc-update add dbus boot
rc-update add NetworkManager default
rc-update del net.eth0 default
# start X.Org by default
rc-update add xdm default
# select the first available kernel
eselect uimage set 1
# setup root password to... root!
echo root:root | chpasswd
# cleaning up deps
rc-update --update
}
setup_users() {
# setup root password to... root!
echo root:root | chpasswd
# setup normal user "sabayon"
(
if [ ! -x "/sbin/sabayon-functions.sh" ]; then
echo "no /sbin/sabayon-functions.sh found"
exit 1
fi
. /sbin/sabayon-functions.sh
sabayon_setup_live_user "sabayon" || exit 1
# setup "sabayon" password to... sabayon!
echo "sabayon:sabayon" | chpasswd
)
}
setup_serial() {
# setup serial login
echo "s0:12345:respawn:/sbin/agetty 115200 ttyO2 vt100" >> /etc/inittab
}
setup_displaymanager
setup_users
setup_boot
setup_serial
exit 0