add support for ox820 devices
This commit is contained in:
83
boot/arm/medion_stg212/README.txt
Normal file
83
boot/arm/medion_stg212/README.txt
Normal file
@@ -0,0 +1,83 @@
|
||||
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!
|
||||
|
||||
|
||||
You want to know more?
|
||||
----------------------
|
||||
Just go to http://www.sabayon.org and to http://wiki.sabayon.org
|
||||
and search for "BeagleBoard".
|
||||
We're full of guides.
|
||||
|
||||
|
||||
Contact
|
||||
-------
|
||||
Just mail us at website@sabayon.org if you need any help or register
|
||||
to our mailing list at http://lists.sabayon.org/cgi-bin/mailman/listinfo/devel
|
||||
47
boot/arm/usb_key_func
Executable file
47
boot/arm/usb_key_func
Executable file
@@ -0,0 +1,47 @@
|
||||
# usb key funct taken from Medion live and adapted for buffalo
|
||||
# modified by Mario Fetka (geos_one) <mario.fetka@gmail.com>
|
||||
|
||||
Exe_USB_KEY()
|
||||
{
|
||||
# Check model name
|
||||
export MODEL_NAME="@@NASKERNELNAME@@"
|
||||
|
||||
# Scan USB disk for HW test.
|
||||
any_usb=`ls /sys/block/ | grep sd`
|
||||
echo "${any_usb}"
|
||||
if [ -n "${any_usb}" ]; then
|
||||
#/bin/mkdir /mnt/parnerkey
|
||||
for usb in ${any_usb}
|
||||
do
|
||||
echo "checking ${usb}"
|
||||
#Get the number of question marks
|
||||
qmark_num=`fdisk -l /dev/${usb} | grep "^"/dev/${usb} | grep -c "?"`
|
||||
partition_num=`fdisk -l /dev/${usb} | grep "^"/dev/${usb}`
|
||||
if [ "${qmark_num}" == "4" ] || [ "${partition_num}" == "" ]; then
|
||||
mnt_point=/dev/${usb}
|
||||
echo "Trying to mount ${mnt_point}"
|
||||
mount -o iocharset=utf8,shortname=mixed,ro ${mnt_point} /mnt/parnerkey
|
||||
else
|
||||
mnt_point=`fdisk -l /dev/${usb} | grep "^"/dev/${usb} | awk '{print $1}' | sed -n '1p'`
|
||||
echo "Trying to mount ${mnt_point}"
|
||||
mount -o iocharset=utf8,shortname=mixed,ro ${mnt_point} /mnt/parnerkey
|
||||
fi
|
||||
|
||||
mount_SUC=`cat /proc/mounts | grep /mnt/parnerkey`
|
||||
if [ "${mount_SUC}" != "" ]; then
|
||||
if [ -e /mnt/parnerkey/${MODEL_NAME}_check_file ]; then
|
||||
#/mnt/parnerkey/usb_key_func.sh
|
||||
script_path=`cat /mnt/parnerkey/${MODEL_NAME}_check_file | sed -n '1p'`
|
||||
${script_path}
|
||||
if [ $? == 0 ]; then
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
umount /mnt/parnerkey
|
||||
else
|
||||
echo "Fail to mount ${mnt_point}"
|
||||
fi
|
||||
done
|
||||
#rmdir /mnt/parnerkey
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user