Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Developing on the N900 itself ?

    Reply
    Page 6 of 13 | Prev |   4     5   6   7     8   | Next | Last
    qole | # 51 | 2010-05-19, 23:51 | Report

    Ok, here's how to get the image I uploaded working in a basic sort of way.

    From a root terminal:
    Code:
    qmount /home/user/MyDocs/maemo-sdk-v1_2.img.ext2 /floppy
    mkdir /floppy/dev
    mkdir /floppy/dev/pts
    mkdir /floppy/dev/shm
    mkdir /floppy/dev
    mkdir /floppy/var/run/dbus
    mkdir /floppy/var/lib/dbus
    mkdir /floppy/var/run/pulse
    cp /bin/busybox /floppy/bin
    CHROOT=/floppy synchroot
    qumount /floppy
    Now try to qchroot into it.

    I had to hack these two files to get the binaries to install (just remove all the bits where it tries to start the daemons):
    /var/lib/dpkg/info/hal.postinst
    /var/lib/dpkg/info/alarmd.postinst

    I also had to do an ln -s command inside the chroot:
    Code:
    ln -s /bin/busybox /bin/su
    EDIT: Just discovered that busybox is missing from the original SDK, I had to copy it in...

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by qole; 2010-05-20 at 00:22.
    The Following 4 Users Say Thank You to qole For This Useful Post:
    clasificado, humble, MohammadAG, Tigerite

     
    Tigerite | # 52 | 2010-05-20, 09:33 | Report

    That seems to have worked, thanks!! I did get an odd couple of messages after the synchroot step, but they don't look to be anything major, just hosts and xkb?

    Code:
    Nokia-N900-02-8:/home/user/MyDocs/sdk# CHROOT=/floppy synchroot
    synching the chroot...
    mv: cannot rename '/floppy/etc/hosts': No such file or directory
    mv: cannot rename '/floppy/usr/share/X11/xkb': No such file or directory
    I also can't seem to find those two postinst files within the chroot.. I'll try to install the binaries without that step and see how I get on.

    EDIT: I fixed the rename issues by slightly modifying the original commands to be:

    Code:
    qmount /home/user/MyDocs/maemo-sdk-v1_2.img.ext2 /floppy
    mkdir /floppy/dev
    mkdir /floppy/dev/pts
    mkdir /floppy/dev/shm
    mkdir /floppy/usr/share/X11/xkb
    mkdir /floppy/var/run/dbus
    mkdir /floppy/var/lib/dbus
    mkdir /floppy/var/run/pulse
    cp /bin/busybox /floppy/bin
    cp /etc/hosts /floppy/etc/hosts
    CHROOT=/floppy synchroot
    qumount /floppy

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by Tigerite; 2010-05-20 at 09:41.
    The Following 2 Users Say Thank You to Tigerite For This Useful Post:
    daperl, qole

     
    Greippi | # 53 | 2010-05-20, 09:47 | Report

    I just use Easy Debian if I ever need to compile something. And everything seems to work fine.

    Even though the only notable thing I have done this way is just yet another 99 bottles of beer program.

    Or does anyone think it's a 'wrong' way?

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to Greippi For This Useful Post:
    qole

     
    Tigerite | # 54 | 2010-05-20, 13:04 | Report

    Ok, I think I got all the binaries downloaded and installed.. I had to also copy /etc/ld.so.conf into /floppy/etc/ld.so.conf and then hack the alarmd.postinst file as qole detailed. I didn't have to bother with hal.postinst though?

    I also get this every time, not sure if it matters or not:

    Code:
    Failed to fetch http://repository.maemo.org/pool/maemo5.0/nokia-binaries/********************************/nokia-binaries/o/opengles-sgx-img/opengles-sgx-img-common-dev_0.20091104.30+0m5_armel.deb  Size mismatch

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to Tigerite For This Useful Post:
    daperl, qole

     
    qole | # 55 | 2010-05-20, 16:27 | Report

    Originally Posted by Tigerite View Post
    I also get this every time, not sure if it matters or not:

    Code:
    Failed to fetch http://repository.maemo.org/pool/maemo5.0/nokia-binaries/.../nokia-binaries/o/opengles-sgx-img/opengles-sgx-img-common-dev_0.20091104.30+0m5_armel.deb  Size mismatch
    Yes, I just started getting that last night, too. Something has changed in the repositories.... Maybe a sign that PR 1.2 is coming?

    I hacked around that by downloading the package (using wget in Maemo) and then installing it using
    Code:
    dpkg -i opengles-sgx-img-common-dev_0.20091104.30+0m5_armel.deb
    (after first installing the dependencies, of course).

    If you are getting that error, you aren't finished downloading the binaries. Not by a long shot...

    I also think its cute the way the N900 reboots halfway through the install and you have to restart the install with a "dpkg --configure -a"

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to qole For This Useful Post:
    Tigerite

     
    MohammadAG | # 56 | 2010-05-20, 16:35 | Report

    Originally Posted by qole View Post
    Yes, I just started getting that last night, too. Something has changed in the repositories.... Maybe a sign that PR 1.2 is coming?
    Saw PyQt 4.7 in the cauldron list so

    Thanks for the image, I'll check it out today.
    As for the .deb you're not the only ones, saw a couple more people ask about it (Got the working deb if anyone wants it)

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Tigerite | # 57 | 2010-05-20, 20:28 | Report

    Originally Posted by qole View Post
    Yes, I just started getting that last night, too. Something has changed in the repositories.... Maybe a sign that PR 1.2 is coming?

    I hacked around that by downloading the package (using wget in Maemo) and then installing it using
    Code:
    dpkg -i opengles-sgx-img-common-dev_0.20091104.30+0m5_armel.deb
    (after first installing the dependencies, of course).

    If you are getting that error, you aren't finished downloading the binaries. Not by a long shot...

    I also think its cute the way the N900 reboots halfway through the install and you have to restart the install with a "dpkg --configure -a"
    Ah.. I downloaded over 600 files though and the installation took absolutely ages, over 4 hours, and yes there was a restart halfway through too (which I missed at first - only noticed it when my PuTTy session died!) I used the --fix-missing option to get around the opengles.. I'll probably have to start over from scratch now, right? Agh, why isn't there an easier way to download the binaries than mucking about with a long hex token in sources.list!

    Thanks for all your help so far - it's been invaluable..

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Tigerite | # 58 | 2010-05-20, 20:29 | Report

    Originally Posted by MohammadAG View Post
    Saw PyQt 4.7 in the cauldron list so

    Thanks for the image, I'll check it out today.
    As for the .deb you're not the only ones, saw a couple more people ask about it (Got the working deb if anyone wants it)
    I'd love the working deb if possible, please..

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Tigerite | # 59 | 2010-05-21, 06:45 | Report

    I built it all again from scratch overnight, and didn't get the error from opengles-sgx-img-common-dev_0.20091104.30+0m5_armel.deb so they must have fixed it (I didn't use --fix-missing this time). Woke up with the phone having rebooted itself, which was expected, and had to hack alarmd.postinst again but then dpkg --configure -a finished the job. Now I'm in the same quandary as qole, should I upload the final image including Nokia binaries somewhere? It's crazy that we all have to spend so many hours downloading and installing (by far the bit that takes longest) them just to use the SDK, when all that's required to access them is to type in a 5-digit number and then copy/paste a token code. Meh.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to Tigerite For This Useful Post:
    qole

     
    qole | # 60 | 2010-05-26, 18:41 | Report

    This post suggests that we only need to create an executable script called /usr/sbin/policy-rc.d with only one command in it:
    Code:
    exit 101
    That should stop apt from trying to stop, start, or restart daemons when installing them in the chroot. That will probably keep the phone from rebooting, and will get rid of the need to hack the .postinst scripts.

    But I agree that 4+ hours of installing the binaries and apps packages is a big job, and I wish I could post the finished image on my site...

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 3 Users Say Thank You to qole For This Useful Post:
    daperl, MohammadAG, Tigerite

     
    Page 6 of 13 | Prev |   4     5   6   7     8   | Next | Last
vBulletin® Version 3.8.8
Normal Logout