Editing Mer/Documentation/Installation

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
-
{{Mer}}
 
-
 
This article sums up the different ways to install Mer on different types of computers (VMWare, chroot, on device, etc.). Please feel free to add/edit. The original information is taken from [[Mer/Releases/0.9]].
This article sums up the different ways to install Mer on different types of computers (VMWare, chroot, on device, etc.). Please feel free to add/edit. The original information is taken from [[Mer/Releases/0.9]].
Line 51: Line 49:
<pre>
<pre>
-
Xephyr :2 -host-cursor -screen 800x480x16 -dpi 96 -ac -kb 2>/dev/null 1>&2 &
+
Xephyr :2 -host-cursor -screen 800x480x16 -dpi 96 -ac -extension Composite 2>/dev/null 1>&2 &
sudo mount --bind /tmp/.X11-unix tmp/.X11-unix
sudo mount --bind /tmp/.X11-unix tmp/.X11-unix
sudo mount --bind /dev/pts dev/pts
sudo mount --bind /dev/pts dev/pts
Line 230: Line 228:
echo 1 >/proc/sys/net/ipv4/ip_forward
echo 1 >/proc/sys/net/ipv4/ip_forward
</pre>
</pre>
-
 
-
== Touch Book (Experimental) ==
 
-
 
-
'''Until there's a Touch Book image, use SmartQ5 image.'''
 
-
 
-
First, make sure your SD card's geometry is 63 / 255 . Otherwise the Touch Book won't recognice it. To set the correct geometry, put the SD in your host-computers card-reader and open up a terminal. Type:
 
-
<pre>
 
-
bash:$ sudo fdisk /dev/<yoursdcard>
 
-
 
-
Command (m for help): [x]
 
-
 
-
Expert command (m for help): [s]
 
-
Number of sectors : [63]
 
-
 
-
Expert command (m for help): [h]
 
-
Number of heads : [255]
 
-
 
-
Expert command (m for help): [w]
 
-
</pre>
 
-
 
-
'''Formatting the SD card:'''
 
-
 
-
* The first partition needs to be formatted as FAT32 ''and have the boot flag''. 30Mb size is fine.
 
-
* Format the second partition as ext3, at least 512Mb size.
 
-
* If you want, you can also create one more partition for swap.
 
-
 
-
This is easy to do with linux host-computer.
 
-
GParted is easy to use graphical Partition Editor.
 
-
 
-
'''Installation'''
 
-
 
-
Download Mer image and unpack it in the second partition.
 
-
 
-
Copy a few files from AI OS for better hardware support:
 
-
 
-
/lib/firmware
 
-
 
-
/lib/modules
 
-
 
-
/etc/Wireless
 
-
 
-
/etc/fstab
 
== SmartQ ==
== SmartQ ==
Line 278: Line 234:
You'll need an SD card with a FAT32 as the first partition and more than 140MB free.
You'll need an SD card with a FAT32 as the first partition and more than 140MB free.
-
Download the correct firmware image and rootfs image from the Released Images table.  Copy both of them to the root of the FAT32 partition on the SD card.
+
Download the correct 'firmware image' from the Released Images table and copy it to the root of the FAT32 partition on the SD card.
-
Rename the firmware image to either 'SmartQ5' or 'SmartQ7' according to your device.
+
Rename it SmartQ5 or SmartQ7 according to your device.
-
You may also want to download some additional software to our SD card for after Mer is installed.<br>
+
You may also want to :
-
To use Wifi, you'll need the Marvell Wifi Firmware blobs
+
* Download the [http://www.daimi.au.dk/~cvm/kernel-smartq5-modules_2.6.24.7-smartq5-050509_all.deb SmartQ5] or [http://download.opensuse.org/repositories/Maemo://Mer:/Devel:/HW:/SmartQ:/Devel/MerDevel_Ubuntu_9.04/all/kernel-smartq7-modules_2.6.24.7-smartq7-20090729_all.deb SmartQ7] WPA2-fixed driver to your SD card.
-
* Browse [http://www.marvell.com/support.html here] and select in the drivers colum for os "Fedora 2.6" and click search. After that, get a zip file called starting whit SD-8686
+
* Browse [http://www.marvell.com/drivers/driverDisplay.do?driverId=203 here to agree the download license] and get a zip file
* Extract the downloaded zip file, then extract SD-8686-FEDORA26FC6-SYSKT-GPL-9.70.3.p24-26409.P45.tar within it. Extract the FwImage folder to your PC.
* Extract the downloaded zip file, then extract SD-8686-FEDORA26FC6-SYSKT-GPL-9.70.3.p24-26409.P45.tar within it. Extract the FwImage folder to your PC.
* Inside there are two files, helper_sd.bin and sd8686.bin. Rename helper_sd.bin to sd8686_helper.bin and copy to your SD card
* Inside there are two files, helper_sd.bin and sd8686.bin. Rename helper_sd.bin to sd8686_helper.bin and copy to your SD card
-
The commands to extract and copy it might look like this:
 
  cd /tmp
  cd /tmp
  unzip SD-8686-LINUX26-SYSKT-9.70.3.p24-26409.P45-GPL.zip
  unzip SD-8686-LINUX26-SYSKT-9.70.3.p24-26409.P45-GPL.zip
Line 294: Line 249:
  cp FwImage/helper_sd.bin /path_to_SD_CARD/sd8686_helper.bin
  cp FwImage/helper_sd.bin /path_to_SD_CARD/sd8686_helper.bin
  cp FwImage/sd8686.bin /path_to_SD_CARD/sd8686.bin
  cp FwImage/sd8686.bin /path_to_SD_CARD/sd8686.bin
-
 
-
 
-
Wifi WPA2 fix
 
-
* Download the [http://www.daimi.au.dk/~cvm/kernel-smartq5-modules_2.6.24.7-smartq5-050509_all.deb SmartQ5] or [http://download.opensuse.org/repositories/Maemo://Mer:/Devel:/HW:/SmartQ:/Devel/MerDevel_Ubuntu_9.04/all/kernel-smartq7-modules_2.6.24.7-smartq7-20090729_all.deb SmartQ7] WPA2-fixed driver to your SD card.
 
Now unmount the SD card and eject it.
Now unmount the SD card and eject it.
Line 304: Line 255:
===SmartQ5===
===SmartQ5===
-
Press and hold the + button and insert the charger.
+
Press and hold the + key and insert the charger.
-
The device will begin to boot; the LED will be green/yellow.
+
The device will begin to boot; the LED will be yellow.
-
A series of chinese characters will appear ending with '...' if all is going well.  Once you see them, you can release the + button.  Next there will be
+
-
a progress bar.  Once it completes, the device will automatically reboot.
+
===SmartQ7===
===SmartQ7===
Press and hold the 'menu' key (bottom key on front) and insert the charger.
Press and hold the 'menu' key (bottom key on front) and insert the charger.
-
The device will begin to boot; the LED will be a different colour - green/yellow. You can release the menu key. Some chinese symbols appear and then a progress bar ticks (slowly) up to 100%.  Once it completes, the device will automatically reboot.
+
The device will begin to boot; the LED will be a different colour - green/yellow. You can release the menu key. Some chinese symbols appear and then a progress bar ticks (slowly) up to 100%.
===both===
===both===
-
After this a calibration screen will appear and shortly after you are in Mer.
+
After this a calibration screen appears and shortly after you are in Mer.
-
If you have connected it to a computer via USB, it will be accessible over USB networking on IP 192.168.2.15 ([http://wiki.maemo.org/USB_networking#Host_USB_Network_Configuration see instructions here]) with a SSH server, login root, password rootme  
+
It will be accessible over USB networking on IP 192.168.2.15 ([http://wiki.maemo.org/USB_networking#Host_USB_Network_Configuration see instructions here]) with a SSH server, login root, password rootme  
It will not show a splash screen, but it will after darkness then make the screen white, and eventually, show the Mer background and first boot wizard.
It will not show a splash screen, but it will after darkness then make the screen white, and eventually, show the Mer background and first boot wizard.
-
=== To mount your SD card ===
+
=== To get WPA2 wireless networking to work===
-
In Mer on SmartQ, open X-Terminal and type (tab-completion is your friend):
+
Install the .deb you copied to your SD card and then (from https://wiki.ubuntu.com/Marvell8686Firmware), install the Marvell firmware.
 +
 
 +
So, in Mer on SmartQ, open X-Terminal and type (nb tab-completion is your friend):
<pre>
<pre>
$  sudo mount -t vfat /dev/mmcblk1p1 /media
$  sudo mount -t vfat /dev/mmcblk1p1 /media
-
</pre>
+
(password is the one you used when installing)
-
When prompted for a password, enter the one you set when you first started.
+
-
Note that the above device name has one lower-case L character and then two number one characters (these can look quite similar in some fonts).
+
-
 
+
-
=== To get wireless networking (including WPA2) to work===
+
-
 
+
-
In order to get wireless networking to work, you are going to have to install the Marvell firmware you copied onto your SD card, and to get WPA2 working, you'll also need to install the .deb.  The first step is to mount your SD card (see the section just above this, if you haven't already mounted it).
+
-
 
+
-
So, in Mer on SmartQ, open X-Terminal and type (tab-completion is your friend):
+
-
<pre>
+
$ sudo cp /media/sd8686.bin /lib/firmware/
$ sudo cp /media/sd8686.bin /lib/firmware/
-
(if prompted, the password is the one you set when you first started)
 
$ sudo cp /media/sd8686_helper.bin /lib/firmware/
$ sudo cp /media/sd8686_helper.bin /lib/firmware/
-
</pre>
+
$ sudo dpkg -i kernel-smartq5-modules_2.6.24.7-smartq5-050509_all.deb
-
And then either, for the SmartQ5 [Note: The following step may not be necessary as the 0.16-5 firmware automatically installs the most current file from the SD card during bootup. The confirmation message is "wifi firmware installation successful". Verified on Q5.]
+
$ sudo umount /media
-
<pre>
+
-
$ sudo dpkg -i /media/kernel-smartq5-modules_2.6.24.7-smartq5-*_all.deb
+
-
</pre>
+
-
or for the SmartQ7 [Note: The following step may not be necessary as the 0.16-5 firmware automatically installs the most current file from the SD card during bootup. The confirmation message is "wifi firmware installation successful". Verified on Q7.]
+
-
<pre>
+
-
$ sudo dpkg -i /media/kernel-smartq7-modules_2.6.24.7-smartq7-*_all.deb
+
-
</pre>
+
-
 
+
-
Now that you've enabled networking, you should close the gaping security hole which is part of the default configuration by changing the root password from its default, which is "rootme".
+
-
<pre>
+
-
$ sudo passwd
+
-
Password:  (enter your user password)
+
-
Enter new UNIX password:  (enter any hard to guess password you want)
+
-
Retype new UNIX password:  (same one again)
+
-
</pre>
+
-
 
+
-
Next you should reboot.
+
-
<pre>
+
-
$ sudo /sbin/reboot
+
-
</pre>
+
-
 
+
-
Once it reboots, you should be able to see wireless networks on the menu and select them.
+
-
 
+
-
=== Booting from SD card ===
+
-
(this was taken from [http://alone-in-the-light.zenvoid.org/2009/06/boot-smartq-5-from-sd-card.html zenvoid's blog])
+
-
 
+
-
In order to boot from the SD card, it is simply a matter of creating a partition on the SD card large enough to hold the mer distribution, but leaving enough unpartitioned space at the end of the card for the bootloader to sit.
+
-
 
+
-
* Download install-smartq-qi.sh, qi-smartq-20090612.bin from http://zenvoid.org/software/qi-smartq
+
-
 
+
-
* Create at least one ext2/ext3 Partition your SD card (and optionally a swap partition), but always '''remember to reserve 1 MiB of free, unpartitioned space at the end of the SD card'''. To be precise, at least the last 2048 blocks (512 bytes each) must be reserved.
+
-
* Untar (tar --numeric-owner -zxvf) the rootfs for your device onto the partition you created on your SD card (make sure it isn't mounted with any no* options, e.g. nodev, noexec, ..)
+
-
* Rename or copy the kernel file (/boot/zImage<something>)  to /boot/linux-SMDK6410.bin
+
-
* Run
+
-
<pre>
+
-
./install-smartq-qi.sh /dev/SD_CARD_DEVICE qi-smartq-20090612.bin
+
-
</pre>
+
-
 
+
-
To boot from the SD card, keep the "move"/fullscreen button (Q5) or right-hand-most button on the top which looks like a target symbol (Q7) pressed and then press the "power" button.
+
-
 
+
-
Q5 Boot stages:
+
-
* Red LED: First stage - bootloader is loading itself into memory.
+
-
* Yellow LED: Second stage - bootloader running, trying to locate and loading a kernel image.
+
-
* Green LED: Linux kernel loaded and running.
+
-
* Blinking yellow LED: A critical error while reading from the SD card.
+
-
* Blinking green LED: No kernel found.
+
-
 
+
-
Q7 Boot:
+
-
 
+
-
Keep in mind that the LEDs colours are reversed on the Q7, i.e. a green LED on the Q5 is a red one on the Q7 (the list above is for the Q5)
+
-
 
+
-
There is no battery check at the moment.
+
-
 
+
-
 
+
-
 
+
-
 
+
-
==== Alternate SD booting method using the OF bootloader ====
+
-
(as desribed on the Smartqmid forum:
+
-
http://www.smartqmid.com/phpBB3/viewtopic.php?f=2&t=150)
+
-
 
+
-
'''works only with OF installed on the device'''
+
-
 
+
-
in short:
+
-
*the first partition must be fat32 and the other primary partitions must be ext3
+
-
*on the first (fat) partition must be a folder named boot, that contains a menu.lst file and the kernel image (zimage)
+
-
*the menu.lst should be formated like this:
+
-
<pre>
+
-
title sdcard # name of the entry
+
-
kernel /boot/zimage # kernel image location
+
-
param root=/dev/mmcblk1p2 rootwait # location of the root fs, this is
+
-
                                  # the second primary partition on SD
+
-
                                  # the internal memory is mmcblk0,
+
-
                                  # first internal partition = mmcblk0p1
+
-
 
+
</pre>
</pre>
-
With all this in place, the device shows a simple boot menu when turned on wit the SD card inside, you can select the entry with +,- buttons on the left and booting is triggered with middle button on the upper left.
+
5. Reboot.
-
Theoretically you can multiboot up to 5 different systems (internal + on the fat partition + three ext3 partitions, '''not tested''').
+
[[Category:Mer]]

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)

Templates used on this page: