Android 2.1 on Nokia N900 Now and Dual Boot

    image
    This time I will write about how to install Android 2.1 on the Nokia N900 in Dual Boot

    Requirements


    Android RootFS
    Modified Maemo kernel for DualBoot
    Linux on a computer (For a Windows user, you can install VirtualBox and any linux distribution such as Ubuntu )
    Maemo-flasher
    MicroSD card (minimum 1Gb)
    n900 rootsh package

    Kernel firmware


    First, we need to flash a kernel that allows you to load both Android and Maemo.
    To do this, turn off the phone, hold down the letter U on the keyboard and insert the usb cable.
    The phone should be transferred to the so-called flash-mode.
    To do this, copy the kernel zImage-0.0.3-a to the folder with flasher'om and execute the command
    ./flasher-3.5 --set-rd-flags=no-ext-wd,no-lifeguard-reset --enable-rd-mode -f -k zImage-0.0.3-a -R

    Flashcard preparation


    Now we need to split our flash drive, for this we need to open the console (we will break the flash drive in the console because it is definitely in any distribution, if you want to work with the graphical interface you can use the gparted program).
    To find out under what name the computer recognized the flash card, we type:
    dmesg
    In the end, we get approximately the following lines:

    This means that our flash drive is defined as the device / dev / mmcblk0.
    Next, the process of breaking the flash drive begins. With these actions, we broke our flash drive into two sections, one 128MB in size, the other took up all the remaining space. Now you need to format partitions for the necessary file systems. The first section is formatted in vfat. This is done by a team or
    sudo fdisk /dev/mmcblk0
    o
    n
    p
    1
    <нажать enter>
    +128M
    t
    c
    n
    p
    2
    <нажать enter>
    <нажать enter>
    w



    sudo mkdosfs /dev/mmcblk0p1sudo mkfs.vfat /dev/mmcblk0p1
    p1 - ​​means that we format the first partition, if your device is defined as sda, then most likely the first partition will be sda1.
    We format the second section like this:
    sudo mke2fs -j /dev/mmcblk0p1 -m0
    Now we need to unpack RootFS from the android to the second section of our flash drive. On this, our actions with the computer are finished, insert the USB flash drive into the phone.
    mkdir nokia
    sudo mount /dev/mmcblk0p2 nokia/
    cd nokia/
    sudo tar xjvvpf ../Downloads/NITDroid-0.0.3-1-Eclair-WiFi.tbz2
    cd ..
    sudo umount /dev/mmcblk0p2



    Install and configure Boot Menu


    For Dual Boot, we need nano packages (for editing files, you can use mcedit) and bootmenu-n900 itself (for double boot).

    Programs can be installed both from the application manager and from the console. To install from the console, go to xterm and type: Now configure bootmenu (it is assumed that you are already in the console with root privileges): And enter into the file: Click ctlr + o, ctrl + x - this will save our changes to the file and close the editor. To boot into Android, we need to turn off the phone, extend the keyboard and turn it on again. When loading, bootmenu will appear in which it will be possible to choose which OS is loaded, when turned off, Maemo will be loaded with the keyboard locked.
    sudo gainroot
    apt-get install nano
    apt-get install bootmenu-n900


    cd /etc/bootmenu.d/
    nano android.ext.item


    ITEM_NAME="Android (external SD, partition 2)"
    ITEM_ID="android2"
    ITEM_DEVICE="${EXT_CARD}p2"
    ITEM_MODULES="mbcache jbd ext3 fat vfat"
    ITEM_FSTYPE="ext3"
    ITEM_FSOPTIONS="noatime"






    In my opinion, in R&D mode, there is one useless function, it’s a blinking keyboard to disable it, just edit the file / etc / pmconfig on the phone, for this we execute the following commands in xTrem'e:
    sudo gainroot
    nano /etc/pmconfig
    И меняем строчку "sleep_ind 1" на "sleep_ind 0".

    Состояние проекта


    Работает:
    * Звук
    * Сенсорный ввод
    * Ввод с клавиатуры
    * WiFi
    * Внутренняя флеш-память

    Не работает:
    * Зарядка
    * GSM
    * Микрофон
    * FM-радио и FM-передатчик
    * Камера

    На мой взгляд проект сильно продвинулся с тех пор как я писал о нем, появилась полноценная поддержка WiFi, браузер работает достаточно шустро, удалось поиграть во встроенную змейку.

    Полезные ссылки


    Мануал на английском
    NITDroid Wiki(анг.)
    Обсуждение разработка(анг.)

    Also popular now: