maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Ubuntu (https://talk.maemo.org/forumdisplay.php?f=55)
-   -   [WIP] Ubuntu 9.10 on the N900 (https://talk.maemo.org/showthread.php?t=58083)

Dousan 2010-07-11 13:12

Re: [WIP] Ubuntu 9.10 on the N900
 
Quote:

Originally Posted by tobyax (Post 748133)
I wanted to know if there is a guide to install ubuntu on the N900?

Nope not yet, as of nothing to install, MuhammadAG isn't finished with the dev as far as i know... ;)

tobyax 2010-07-11 13:18

Re: [WIP] Ubuntu 9.10 on the N900
 
ok, thankyou dousan

MohammadAG 2010-07-11 23:16

Re: [WIP] Ubuntu 9.10 on the N900
 
903M ubuntuhighlycompressed.lzma
ubuntuhighlycompressed.lzma 2% 23MB 76.1KB/s 3:17:13 ETA

Upload in progress, I might unpack it and repack it as a tar.bz2 on the server so Windows users can extract it, the mouse pointer is broken, need help with kernel hackers to fix tsc2005.c :)

zaoltryence 2010-07-12 14:17

Re: [WIP] Ubuntu 9.10 on the N900
 
Quote:

Originally Posted by MohammadAG (Post 748554)
903M ubuntuhighlycompressed.lzma
ubuntuhighlycompressed.lzma 2% 23MB 76.1KB/s 3:17:13 ETA

Upload in progress, I might unpack it and repack it as a tar.bz2 on the server so Windows users can extract it, the mouse pointer is broken, need help with kernel hackers to fix tsc2005.c :)

hows the progress? nice work man :)

vitamina 2010-07-12 14:34

Re: [WIP] Ubuntu 9.10 on the N900
 
any news ?

MohammadAG 2010-07-15 10:00

Re: [WIP] Ubuntu 9.10 on the N900
 
Upload done, writing instructions.

Sorry about the delay, the first upload stopped at 70% and got corrupt so I had to restart the upload.

windows7 2010-07-15 10:13

Re: [WIP] Ubuntu 9.10 on the N900
 
http://www.youtube.com/watch?v=vMwlchuqsXo

MohammadAG 2010-07-15 10:17

Re: [WIP] Ubuntu 9.10 on the N900
 
Quote:

Originally Posted by windows7 (Post 752592)

Mer was dumped in favor of MeeGo.

afbcamaro 2010-07-15 11:20

Re: [WIP] Ubuntu 9.10 on the N900
 
This is going to be fun. Cant wait!

AlMehdi 2010-07-15 11:26

Re: [WIP] Ubuntu 9.10 on the N900
 
Where will you put the instructions? Here or on a wiki?

MohammadAG 2010-07-15 11:35

Re: [WIP] Ubuntu 9.10 on the N900
 
http://mohammadag.xceleo.org/public/...rootfs.tar.bz2
MD5Sum: a76ada218fac7d014115f38d7dfb14b3

(First of all, thanks to xnt14 for allowing me to host the file and giving me a subdomain - I've moved my files to http://mohammadag.xceleo.org/public/ so you can find everything from me there, again, thanks)

Mouse working! See this Note: as I said above, the mouse pointer is broken, this does NOT seem to be a calibration but a kernel module one, or a broken X/xorg configuration file, the pointer works fine in Fedora 12 and Mer, so I'm assuming this is a cannonical modified X problem, need assistance on this as Ubuntu is be very unusable with a broken pointer.
How unusable is unusable? The pointer is flipped, so up is down, the top part of the screen moves the pointer to the bottom side, and the far ends of the screen cannot be tapped without pressure on the bottom side of the screen, again, I need help from someone who knows C to fix this.

Quick instructions, I'm not really into sfdisk so the instructions are based on gparted, if anyone feels the instructions could be better then please feel free to post what you want :)

1. Connect the N900 to a PC running linux (Live CDs/Virtual machines will suffice).
2. Use gparted to partition the N900's MicroSD card, the image is 2.3GBs uncompressed, so you'll need at least 2.5GBs to run Ubuntu (3GBs if you want extra space for /home or apps).
3. Unpack the tar.bz2 into the root of the partition, an easy way to do this would be to use file-roller, the defualt archive manager in Ubuntu.
4. Disconnect the N900 from your PC.
5. Open terminal, type ls /dev/mmcblk1* to see the partitions on your MicroSD.
Assuming your partition is /dev/mmcblk1p2..
Code:

mkdir -p /mnt/ubuntu && mount /dev/mmcblk1p2 /mnt/ubuntu
Code:

cp -r /lib/modules/* /mnt/ubuntu/lib/modules/
cp /lib/firmware/* /mnt/ubuntu/lib/firmware/
chroot /mnt/ubuntu /bin/bash
useradd -m <replace with your username here> (e.g useradd -m mohammad)
# fill in details as you wish.
visudo
# Edit the file and add your username to sudoers using visudo
# Example (replace my username with yours)
# # User privilege specification
# root        ALL=(ALL) ALL
# mohammad    ALL=(ALL) ALL

Code:

cp /usr/share/applications/gnome-terminal.desktop /home/mohammad/Desktop/
Code:

exit
6. Install bootmenu-n900 and add a bootmenu entry in /etc/bootmenu.d
Code:

vi /etc/bootmenu.d/ubuntu.ext.item
# Press I to enter input mode.
# Replace partition numbers with the ones on your device.

Code:

ITEM_NAME="Ubuntu 9.10 Karmic (external SD, partition 2)"
ITEM_ID="ubuntu"
ITEM_DEVICE="${EXT_CARD}p2"
ITEM_MODULES="mbcache jbd ext3"
ITEM_FSTYPE="ext3"
ITEM_FSOPTIONS="noatime,rw"

Shutdown the N900, hold the U key to go into flashing mode then
Code:

flasher-3.5 --enable-rd-mode --set-rd-flags=no-omap-wd,no-lifeguard-reset,no-ext-wd
The need for R&D mode will be fixed soon, I didn't save how I did last time so I'll need to figure it out again.

Reboot, and pick Ubuntu in the bootmenu and gnome desktop should start.

Edit: oh and to get BT working (thanks giannoug)
Code:

echo "00:11:22:33:44:55" > /sys/devices/platform/hci_h4p/bdaddr; modprobe -r hci_h4p; modprobe hci_h4p

giannoug 2010-07-15 12:27

Re: [WIP] Ubuntu 9.10 on the N900
 
Nice :)

I don't want to mess with watchdog killing (again), so I think I'll wait for you to fix the watchdog kicker :) Take a look at the watchdog package from the main repos, it does the work ;)

aligatro 2010-07-15 12:45

Re: [WIP] Ubuntu 9.10 on the N900
 
Thanks for the link. Downloading it right now. Speed is great, but I think you should torrent it. I will be able to seed for 24/7 but my upload speed kinda sucks.

MohammadAG 2010-07-15 12:48

Re: [WIP] Ubuntu 9.10 on the N900
 
Quote:

Originally Posted by giannoug (Post 752729)
Nice :)

I don't want to mess with watchdog killing (again), so I think I'll wait for you to fix the watchdog kicker :) Take a look at the watchdog package from the main repos, it does the work ;)

The package already has the watchdog package installed, I forgot to save the config files to make it work though :)
Priority's for the touchscreen atm though

juandp77 2010-07-15 13:30

Re: [WIP] Ubuntu 9.10 on the N900
 
Hi first of all let me tell you NICE WORK, and second, i't is posible to utilize the bootmenu used for boot nitdroid?

aligatro 2010-07-15 14:23

Re: [WIP] Ubuntu 9.10 on the N900
 
Not sure if this will fix the problem, but it's possible to add x and y inversion to the xorg.conf


http://manpages.ubuntu.com/manpages/...ousedrv.4.html



Quote:

Option "FlipXY" "boolean"
Enable/disable swapping the X and Y axes. This transformation
is applied after the InvX, InvY and AngleOffset transformations.
Default: off.

Option "InvX" "boolean"
Invert the X axis. Default: off.

Option "InvY" "boolean"
Invert the Y axis. Default: off.


MohammadAG 2010-07-15 14:27

Re: [WIP] Ubuntu 9.10 on the N900
 
Quote:

Originally Posted by juandp77 (Post 752804)
Hi first of all let me tell you NICE WORK, and second, i't is posible to utilize the bootmenu used for boot nitdroid?

multiboot? yeah, just tested it and it works, same instructions above but use instead of /etc/bootmenu.d use /etc/multiboot.d

aligatro 2010-07-15 14:46

Re: [WIP] Ubuntu 9.10 on the N900
 
Why do I have a feeling that I am on his ignore list? Did anyone try to invert pointer from xorg.conf? Did it fix the problem ? I can't check it myself right now because I forgot to take my microusb cable.

MohammadAG 2010-07-15 14:52

Re: [WIP] Ubuntu 9.10 on the N900
 
Quote:

Originally Posted by aligatro (Post 752870)
Why do I have a feeling that I am on his ignore list? Did anyone try to invert pointer from xorg.conf? Did it fix the problem ? I can't check it myself right now because I forgot to take my microusb cable.

Thanked you, but internet sucks so much here it didn't go through before I closed the tab.
I already added it to xorg.conf, but it didn't do anything to the pointer, googled around and I think I found a solution, but I was experimenting with something else and ubuntu isn't booting up anymore :p

MohammadAG 2010-07-15 16:18

Re: [WIP] Ubuntu 9.10 on the N900
 
Code:

root@Nokia-N900:~# cat /etc/X11/xorg.conf
Section "Monitor"
    Identifier "Configured Monitor"
EndSection

Section "Screen"
    Identifier "Default Screen"
    Device "Configured Video Device"
EndSection

Section "Device"
    Identifier "Configured Video Device"
    Driver "omapfb"
    Option "fb" "/dev/fb0"
    Option "InvY" "True"
EndSection

Code:

root@Nokia-N900:~# cat /usr/share/hal/fdi/policy/10osvendor/10-x11-input.fdi
<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
    <device>
        <!-- RX-51 -->
        <match key="info.capabilities" contains="input.touchpad">
            <merge key="input.x11_driver" type="string">evdev</merge>
            <merge key="input.x11_options.Calibration" type="string">172 3880 3780 235</merge>
            <merge key="input.x11_options.InvY" type="string">True</merge>
        </match>

Tried InvY, it doesn't seem to be working, any ideas?
Also that calibration thingy is bugging me

giannoug 2010-07-15 16:21

Re: [WIP] Ubuntu 9.10 on the N900
 
Quote:

Originally Posted by MohammadAG (Post 752745)
The package already has the watchdog package installed, I forgot to save the config files to make it work though :)
Priority's for the touchscreen atm though

Here!
https://elektranox.org/website/debian_on_n900.html

Jebba had a better aproach though. He modified the init.d files to make the second watchdog kicker start. Both work ;)

aligatro 2010-07-15 16:22

Re: [WIP] Ubuntu 9.10 on the N900
 
Quote:

Originally Posted by MohammadAG (Post 752976)
Code:

root@Nokia-N900:~# cat /etc/X11/xorg.conf
Section "Monitor"
    Identifier "Configured Monitor"
EndSection

Section "Screen"
    Identifier "Default Screen"
    Device "Configured Video Device"
EndSection

Section "Device"
    Identifier "Configured Video Device"
    Driver "omapfb"
    Option "fb" "/dev/fb0"
    Option "InvY" "True"
EndSection

Code:

root@Nokia-N900:~# cat /usr/share/hal/fdi/policy/10osvendor/10-x11-input.fdi
<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
    <device>
        <!-- RX-51 -->
        <match key="info.capabilities" contains="input.touchpad">
            <merge key="input.x11_driver" type="string">evdev</merge>
            <merge key="input.x11_options.Calibration" type="string">172 3880 3780 235</merge>
            <merge key="input.x11_options.InvY" type="string">True</merge>
        </match>

Tried InvY, it doesn't seem to be working, any ideas?
Also that calibration thingy is bugging me

Try to create a section for the inputdevice.
Something like this

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "InvY" "True"
EndSection

MohammadAG 2010-07-15 17:34

Re: [WIP] Ubuntu 9.10 on the N900
 
Still pretty much the same.

bonkel 2010-07-15 17:55

Re: [WIP] Ubuntu 9.10 on the N900
 
hmm have had the same problem on my tablet pc...
the device was "stylus" not mouse...
dont know if it help a little bit

AlMehdi 2010-07-16 12:12

Re: [WIP] Ubuntu 9.10 on the N900
 
Wouldn't it be possible to use the same packages as in Easy Debian? Or would that corrupt everything? I know Easy Debian runs LXDE through Xephyr in chroot. So it might not be possible to do the same. Qole might have some ideas about this though.

I am not sure if this two links can help. You have probably already seen them. http://releases.ubuntu.com/10.04/ (It have an armel MX-51 image). And https://wiki.ubuntu.com/ARM/LucidReleaseNotes.

Awesome work though MohammedAG. I'll try this as soon as i get my microSD card.

MohammadAG 2010-07-16 15:41

Re: [WIP] Ubuntu 9.10 on the N900
 
Enabled thumb2 support in the kernel, will test lucid later today hopefully.

Oh and if you want
Code:

nano /etc/rc.local # sudo if doing it inside ubuntu
# Add this line before exit 0, this is one line only:
echo "00:11:22:33:44:55" > /sys/devices/platform/hci_h4p/bdaddr; modprobe -r hci_h4p; modprobe hci_h4p
# CTRL + O to save, CTRL + X to exit

so BT will work on start up

aligatro 2010-07-16 17:16

Re: [WIP] Ubuntu 9.10 on the N900
 
MohammadAG,

I think you should remove files inside /usr/src and /var/apt
They take up a lot of space, (600 MBs uncompressed If i remember correctly). This can probably reduce archive size by about 100-200 MB.

MohammadAG 2010-07-16 17:54

Re: [WIP] Ubuntu 9.10 on the N900
 
Quote:

Originally Posted by aligatro (Post 754083)
MohammadAG,

I think you should remove files inside /usr/src and /var/apt
They take up a lot of space, (600 MBs uncompressed If i remember correctly). This can probably reduce archive size by about 100-200 MB.

Yeah I noticed that I forgot them while extracting it, next version hopefully.
Need to fix the mouse or switch to 10.04 and see it works there.

mankir 2010-07-16 18:03

Re: [WIP] Ubuntu 9.10 on the N900
 
Have you tried to upgrade? I failed in upgrading qole's karmic image, but mouse is working well in Xfce4 in Easy Debian/Chroot. Can you tell us, which rootfs you used and which modifications you made to make it bootable? I also tried to use a rootfs from the Netbook/Arm Lucid, but couldn't chroot in it.

giannoug 2010-07-16 20:56

Re: [WIP] Ubuntu 9.10 on the N900
 
Quote:

Originally Posted by MohammadAG (Post 754124)
Yeah I noticed that I forgot them while extracting it, next version hopefully.
Need to fix the mouse or switch to 10.04 and see it works there.

Also removing man pages and useless locales may help a bit.

aligatro 2010-07-16 21:06

Re: [WIP] Ubuntu 9.10 on the N900
 
Quote:

Originally Posted by giannoug (Post 754298)
Also removing man pages and useless locales may help a bit.

Text doesn't take up much space and those could be useful sometimes. (when you don't have an internet access) But reading text on the phone is a little bit pain in the *****.

smoku 2010-07-16 21:12

Re: [WIP] Ubuntu 9.10 on the N900
 
Quote:

Originally Posted by giannoug (Post 754298)
Also removing man pages and useless locales may help a bit.

Define "useless locales". :rolleyes:

giannoug 2010-07-16 21:18

Re: [WIP] Ubuntu 9.10 on the N900
 
Quote:

Originally Posted by smoku (Post 754319)
Define "useless locales". :rolleyes:

Greek when you use English :p

MohammadAG 2010-07-16 21:19

Re: [WIP] Ubuntu 9.10 on the N900
 
Quote:

Originally Posted by giannoug (Post 754298)
Also removing man pages and useless locales may help a bit.

I won't go with Nokia/Maemo's way (/usr/sbin/docpurge), sorry.
Same goes for locales

aligatro 2010-07-16 21:22

Re: [WIP] Ubuntu 9.10 on the N900
 
how about removing games, iso burning(brasero), office, "ubuntu one" and other stuff that is not needed/can't be used/ or used rarely.

giannoug 2010-07-16 21:22

Re: [WIP] Ubuntu 9.10 on the N900
 
Quote:

Originally Posted by MohammadAG (Post 754330)
I won't go with Nokia/Maemo's way (/usr/sbin/docpurge), sorry.
Same goes for locales

No need to be sorry, I'm just throwing ideas. Your project, your rules :rolleyes:

I always have Internet access, that's why I would remove them.

smoku 2010-07-16 21:33

Re: [WIP] Ubuntu 9.10 on the N900
 
Quote:

Originally Posted by aligatro (Post 754333)
how about removing games, iso burning(brasero), office, "ubuntu one" and other stuff that is not needed/can't be used/ or used rarely.

Oh yes. Ubuntu One. There's nothing so fun as erlang virtual machine sitting in background. :D

MohammadAG 2010-07-16 21:44

Re: [WIP] Ubuntu 9.10 on the N900
 
I really haven't looked into those, touchscreen is a priority now, as for all those, they were installed with ubuntu-desktop.

aligatro 2010-07-16 21:47

Re: [WIP] Ubuntu 9.10 on the N900
 
Quote:

Originally Posted by smoku (Post 754350)
Oh yes. Ubuntu One. There's nothing so fun as erlang virtual machine sitting in background. :D

Virtual machine ? Oo I thought it's used for filesharing/storing.

smoku 2010-07-16 22:10

Re: [WIP] Ubuntu 9.10 on the N900
 
Ubuntu One uses CouchDB for storage and CouchDB is implemented using Erlang.


All times are GMT. The time now is 12:09.

vBulletin® Version 3.8.8