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 284: Line 240:
You may also want to download some additional software to our SD card for after Mer is installed.<br>
You may also want to download some additional software to our SD card for after Mer is installed.<br>
To use Wifi, you'll need the Marvell Wifi Firmware blobs
To use Wifi, you'll need the Marvell Wifi Firmware blobs
-
* 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
Line 338: Line 294:
$ sudo cp /media/sd8686_helper.bin /lib/firmware/
$ sudo cp /media/sd8686_helper.bin /lib/firmware/
</pre>
</pre>
-
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.]
+
And then either, for the SmartQ5
<pre>
<pre>
$ sudo dpkg -i /media/kernel-smartq5-modules_2.6.24.7-smartq5-*_all.deb
$ sudo dpkg -i /media/kernel-smartq5-modules_2.6.24.7-smartq5-*_all.deb
</pre>
</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.]
+
or for the SmartQ7
<pre>
<pre>
$ sudo dpkg -i /media/kernel-smartq7-modules_2.6.24.7-smartq7-*_all.deb
$ 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>
</pre>
Line 365: Line 313:
(this was taken from [http://alone-in-the-light.zenvoid.org/2009/06/boot-smartq-5-from-sd-card.html zenvoid's blog])
(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.
+
I made a modified Qi bootloader for the SmartQ 5 MID that can boot from the external SD card, as a convenient way of developing or testing OS, or for system rescue purposes in case of internal flash corruption.
-
* Download install-smartq-qi.sh, qi-smartq-20090612.bin from http://zenvoid.org/software/qi-smartq
+
This is the bootloader operation:
 +
* Search for a valid ext2/ext3 partition in the SD card (4 primary partitions).
 +
* If the file /boot/noboot-SDMK6410 exists, it will skip that partition and try the next one. Useful for disabling partitions temporary.
 +
* Load and run the kernel image from file /boot/linux-SMDK6410.bin (if it exists). It should be in uImage or zImage format.
 +
* The optional file /boot/append-SMDK6410 can be used to specify additional kernel arguments.
 +
 
 +
The SmartQ Qi bootloader is written to the end of the SD card. Create partitions to suit your preferences, make at least one ext2/ext3 partition to install the root filesystem 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 latest 1042 blocks (512 bytes each) must be reserved.
 +
 
 +
 
 +
A precompiled bootloader (Q5/Q7) and a kernel (Q5 only), installation script and source code are here:
 +
 
 +
http://zenvoid.org/software/qi-smartq
 +
 
 +
 
 +
Look at the script install-smartq-qi.sh in order to make a bootable SD card:
-
* 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>
<pre>
-
./install-smartq-qi.sh /dev/SD_CARD_DEVICE qi-smartq-20090612.bin
+
./install-smartq-qi.sh /dev/SD_CARD_DEVICE qi-smartq-20090603.bin
</pre>
</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.
+
To boot from the SD card, keep the "move" (also known as fullscreen) button pressed and then press the "power" button.
-
Q5 Boot stages:
 
* Red LED: First stage - bootloader is loading itself into memory.
* Red LED: First stage - bootloader is loading itself into memory.
* Yellow LED: Second stage - bootloader running, trying to locate and loading a kernel image.
* Yellow LED: Second stage - bootloader running, trying to locate and loading a kernel image.
Line 386: Line 343:
* Blinking green LED: No kernel found.
* Blinking green LED: No kernel found.
-
Q7 Boot:
+
Keep in mind that the LEDs are switched on the Q7, i.e. the green LED on the Q5 is the red one on the Q7 (the list above is for the Q5)
-
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, look for the next release, I'm working in that.
-
 
+
-
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>
+
-
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.
+
Don't forget to put a rootfs on your SD card and the kernel in /boot/linux-SMDK6410.bin !
-
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: