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)

ear0wax 2010-11-05 19:46

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

Originally Posted by nicola.mfb (Post 864582)
I suppose it *may* work as I was able to boot a native debian system with bootmenu and the stock kernel in the past.

Well Im still having Issues get the touchscreen working with the Power40 kernel in 9.10, with the stock omap one mouse works fine but with Power40 the mouse is inverted.

My only concern is keeping over-clocking in Maemo and Ubuntu. Does anyone know of a P1.3 overclock enabled kernel?

ivyking 2010-11-05 19:47

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

Originally Posted by lunat (Post 864591)
debian is differrent arch then ubuntu. debian is the same arch as maemo -> does work with any maemo kernel.

ubuntu is a different arch -> you need a kernel for that arch. the kernel must support the abi. some support both.

[you couldn't chroot because of that]

I would say that post is totally wrong .

ubuntu is based on debian , just like maemo is .
and I have used the same kernel to boot both OS with no problems .

[Edit] I was wrong , ubuntu goes different ways than debian on arm arch.

I wrote my post that way as I was able to boot both debian and ubuntu using the pr1.2 kernel after copying modules and firmware to their respective folders .

juandp77 2010-11-05 19:47

Re: [WIP] Ubuntu 9.10 on the N900
 
Didi you use omap3 or omap4 iso image?

ivyking 2010-11-05 19:51

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

Originally Posted by juandp77 (Post 864596)
Didi you use omap3 or omap4 iso image?

omap 3 image should be used , chroot problem may result of using wrong image .

ear0wax 2010-11-05 19:55

Re: [WIP] Ubuntu 9.10 on the N900
 
Ok Im gonna ditch my power40 kernel and bootmenu for uboot and pr1.3 kernel, and Im downloading ubuntu-netbook-10.10-preinstalled-netbook-armel+omap.img.gz Ill let everyone know if I can chroot

lunat 2010-11-05 19:55

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

Originally Posted by ivyking (Post 864595)
I would say that post is totally wrong .

ubuntu is based on debian , just like maemo is .
and I have used the same kernel to boot both OS with no problems .

which kernel. if you did i suppose it had support for both arches. like i said thats possible.

and concerning the abi ubunt and debian go different ways.
otherwise you may give your explanation to why chroot doesn't work for some.

nicola.mfb 2010-11-05 19:58

Re: [WIP] Ubuntu 9.10 on the N900
 
Intruction to patch u-boot are on:

http://al.robotfuzz.com/~al/maemo/u-boot/

Basically you have to git clone git://git.denx.de/u-boot.git, revert to bd2313078114c4b44c4a5ce149af43bcb7fc8854 commit, apply patches, and further modify include/configs/nokia_rx51.h.

Here is how appears mine:

Code:

#define CONFIG_EXTRA_ENV_SETTINGS \
        "usbtty=cdc_acm\0" \
        "stdin=vga\0stdout=vga\0stderr=vga\0" \
        "setcon=setenv stdin ${con};" \
                "setenv stdout ${con};" \
                "setenv stderr ${con}\0" \
        "sercon=setenv con serial; run setcon\0" \
        "usbcon=setenv con usbtty; run setcon\0" \
        "vgacon=setenv con vga; run setcon\0" \
        "loadaddr=0x82000000\0" \
        "meegoargs=setenv bootargs\0" \
        "loadbootscript=fatload mmc 0:3 ${loadaddr} boot.scr\0" \
        "bootscript=echo Running bootscript from mmc ...; " \
                "source ${loadaddr}\0" \
        "loaduimage=fatload mmc 0:3 ${loadaddr} uImage\0" \
        "mmcboot=echo Booting from mmc ...; " \
                "run meegoargs; " \
                "bootm ${loadaddr}\0" \
        "noloboot=echo Booting NOLO supplied kernel ...; " \
                "setenv atags ${nolo_atagaddr};" \
                "bootm ${nolo_kernaddr}\0" \
        "debian=echo Booting debian ...; "\
                "mmc init; " \
                "fatload mmc 0:3 ${loadaddr} uImage; " \
                "setenv bootargs root=/dev/mmcblk0p5 rootwait; " \
                "bootm ${loadaddr}\0" \
        "meego=echo Booting meego ...; "\
                "mmc init; " \
                "fatload mmc 0:3 ${loadaddr} uImage; " \
                "setenv bootargs root=/dev/mmcblk0p1 rootwait; " \
                "bootm ${loadaddr}"

#define CONFIG_PREBOOT \
        "echo Extra commands:;" \
        "echo run sercon - Use serial port for control.;" \
        "echo run usbcon - Use usbtty for control.;" \
        "echo run vgacon - Use framebuffer/keyboard.;" \
        "echo run mmcboot - Boot from SD card slot.;" \
        "echo run noloboot - Boot kernel loaded by NOLO."

#define CONFIG_BOOTCOMMAND "run noloboot"

I used a zImage from fiasco PR 1.3 image to have a flashable combined.bin, but it should work with power kernel too.

As you see the important part is that the default boot command is "run noloboot", so Maemo is the default. You see two script definition meego=... and debian=... (I have still to rename that to ubuntu) that load the kernel from the third partition and changes kernel parameters to boot the right OS.

So when I want to boot meego or ubuntu I reboot, interrupt autoboot and just type "run meego" or "run debian".

My SD layout is:

p1 -> meego
p2 -> swap
p3 -> vfat for kernels
p4 -> extended
p5 -> ubuntu
p6 -> further testing.

p.s. there are/will be other solutions that do not need an u-boot rebuilding, I just used the fast one without checking further.

lunat 2010-11-05 20:14

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

Originally Posted by nicola.mfb (Post 864612)
I

one question if you boot from the sd what device node does it get?
i see the devices swapped. /dev/mmc0 is the external sd.
do you see the same?

lunat 2010-11-05 20:25

Re: [WIP] Ubuntu 9.10 on the N900
 
for the one who said i was totally wrong
go(guess thats official enough if you don't believe me):
https://wiki.ubuntu.com/ARM
and read
----
How does this differ from Debian's armel port?

The primary difference is the ISA and instruction set targeted in Ubuntu, rendering nearly all packages incompatible at a binary level. As with the rest of Ubuntu, typically the source packages are identical, so most of the remaining differences are the same as differences generally between Debian and Ubuntu.
---
br

ear0wax 2010-11-05 20:29

Re: [WIP] Ubuntu 9.10 on the N900
 
can anyone send me the meego /lib/module and /lib/firmware? Im on the irc channel. #NITubuntu

nicola.mfb 2010-11-05 20:54

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

Originally Posted by lunat (Post 864606)
which kernel. if you did i suppose it had support for both arches. like i said thats possible.

and concerning the abi ubunt and debian go different ways.
otherwise you may give your explanation to why chroot doesn't work for some.

Right, packages are built with different instruction sets.

And anyway as chroot fails and bootmenu uses a root pivoting/changing, it cannot work.

nicola.mfb 2010-11-05 21:14

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

Originally Posted by lunat (Post 864627)
one question if you boot from the sd what device node does it get?
i see the devices swapped. /dev/mmc0 is the external sd.
do you see the same?

Yes! but I think that both kernels see them in the same manner, cannot confirm and check now, please verify with cat /proc/partitions under freemantle.

juandp77 2010-11-05 21:43

Re: [WIP] Ubuntu 9.10 on the N900
 
Does anyone has tryed with multiboot??

LucianoBraga 2010-11-05 21:44

Re: [WIP] Ubuntu 9.10 on the N900
 
Ok, I will try again tomorrow...

EDIT: Forget it. It is so much for my head. :(

skykooler 2010-11-05 22:29

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

Originally Posted by MaddogG (Post 864108)
Try with this.

That is a dead link.

ear0wax 2010-11-05 22:39

Re: [WIP] Ubuntu 9.10 on the N900
 
Which meego image did you pull those modules and firmware from? theres the restricted meego-handset-armv7l-n900-final-mod-1.1.0.0.20101101.3-mmcblk0p.raw and the open meego-handset-armv7l-n900-1.1-mmcblk0p.raw

nicola.mfb 2010-11-05 23:19

Re: [WIP] Ubuntu 9.10 on the N900
 
IIRC http://repo.meego.com/MeeGo/releases...t-armv7l-n900/

lunat 2010-11-06 01:01

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

Originally Posted by nicola.mfb (Post 864817)

i know i am bad but another question:
do you know to which degree the meego stuff may be used. i mean take it, change it and pass it on, use it in other contexts(like ubuntu). simple: which licence?

reason: some time ago they said they no longer distinguish between free and nonfree. nice if everything would be free. but looking at their page i found an oposite statement that certain stuff is closed and only nokia staff and subcontractors have acces to it. now i am not sure what is free and what is burried software(i call it burried because it's dead as it may not be used outside its crypt)

stalker 2010-11-06 09:51

Re: [WIP] Ubuntu 9.10 on the N900
 
guys need help on creating new user account...

i tried this command useradd -m stalker

how do i input my password???

another newbie question,

i repartition my N900 flash... i shrink my 27gb MyDocs partition into 13.9gb and add 7 extended partitions with 2gb space per extended partitions... my extended partions mmcblk0p5 to mmcblk0p7 works fine and i can mount it... But partitions from mmcblk0p8 to mmcblk0p11 dont work or i cant mount ... Is there a limit or maximum number of extended partitions?

lunat 2010-11-06 09:59

Re: [WIP] Ubuntu 9.10 on the N900
 
please! this /completely/ OT!
short answer a) "passwd <user>" b) yes there is a limit(to be clear: you didn't hit it).

Quote:

Originally Posted by stalker (Post 865057)
guys need help on creating new user account...

i tried this command useradd -m stalker

how do i input my password???

another newbie question,

i repartition my N900 flash... i shrink my 27gb MyDocs partition into 13.9gb and add 7 extended partitions with 2gb space per extended partitions... my extended partions mmcblk0p5 to mmcblk0p7 works fine and i can mount it... But partitions from mmcblk0p8 to mmcblk0p11 dont work or i cant mount ... Is there a limit or maximum number of extended partitions?


stalker 2010-11-06 10:15

Re: [WIP] Ubuntu 9.10 on the N900
 
sorry for that OT btw thanks for your reply... , what is the maximum number of extended partition??? i hope someone will made a detailed tutorial or easy patch on mouse/keyboard problem on ubuntu maverick.. i managed to boot ubuntu maverick but stuck on mouse/keyboard issues...

giannoug 2010-11-06 11:09

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

Originally Posted by stalker (Post 865068)
sorry for that OT btw thanks for your reply... , what is the maximum number of extended partition??? i hope someone will made a detailed tutorial or easy patch on mouse/keyboard problem on ubuntu maverick.. i managed to boot ubuntu maverick but stuck on mouse/keyboard issues...

Did you boot with uboot? Can you share some tips because I'm also interested in trying Ubuntu 10.10?

Take a look at this post for the touchscreen.
http://talk.maemo.org/showpost.php?p...8&postcount=84

lunat 2010-11-06 11:34

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

Originally Posted by giannoug (Post 865086)
Did you boot with uboot? Can you share some tips because I'm also interested in trying Ubuntu 10.10?

Take a look at this post for the touchscreen.
http://talk.maemo.org/showpost.php?p...8&postcount=84

to boot into it is quite simple if you use the uboot. with the "out of the box thing" you have now at hands from the devel repository its no problem at all, you only add a recent kernelwith the tsc patch(tell uboot where it is) and the modules to the partition.
and boot it(tell uboot which partition to boot). nicola pointed out meego kernel works out of the box. so take that if you want to test. easy as could be.

works for me for quite a while(rsyncing my stuff to part and booting).

but don't expect it to work like in "using it" though: it's a phone so first of all i want to make calls and receive calls.... maybe try ofono thats what the meego folks use.

br

MaddogG 2010-11-06 12:30

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

Originally Posted by skykooler (Post 864786)
That is a dead link.

Doh! Sorry... :(

[EDIT]
This should work:
http://mohammadag.xceleo.org/public/...les/tsc2005.ko

artron 2010-11-06 19:44

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

Originally Posted by nicola.mfb (Post 864556)
Hoping I'll remember all steps, anyway I unpacked the omap ubuntu 10.10 image to a partition of my external SD card, copied /lib/modules, /lib/firmware and /etc/X11/xorg.conf.d/* (to have TS calibrated) from meego 1.1 (installed on another partition of the same SD card).

As was not able to chroot to the new partition with the stock PR 1.3 kernel due to exec format error I booted meego and chrooted from it without problems.

Then I created an user and added it to sudoers, put g_nokia in /etc/modules, added a network configuration for usb0 and apt-get installed openssh-server.

Finally rebooted in ubuntu with the meego kernel, note: no need to disable watchdog!

p.s. I have a customized u-boot to have triple boot.

i don't want format my MicroSD,so i will not use "dd" or windiskimage to write the ubuntu 10.10 on my MicroSD.

can you tell me what partition kinds for Ubuntu 10.10 on MicroSD N900? EXT4 or EXT3 ?

lunat 2010-11-06 20:23

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

Originally Posted by artron (Post 865397)
i don't want format my MicroSD,so i will not use "dd" or windiskimage to write the ubuntu 10.10 on my MicroSD.

can you tell me what partition kinds for Ubuntu 10.10 on MicroSD N900? EXT4 or EXT3 ?

---
sfdisk -l ubuntuimage.
---
looks like that:
...
ubuntu-netbook-10.10-preinstalled-netbook-armel+omap.img1 * 0+ 8 9- 72261 c W95 FAT32 (LBA)
ubuntu-netbook-10.10-preinstalled-netbook-armel+omap.img2 9 253 245 1967962+ 83 Linux
...

ear0wax 2010-11-06 22:26

Re: [WIP] Ubuntu 9.10 on the N900
 
Power40 Pr 1.3 + uboot Matan made it.

Hopefully it will allow overclocking in 10.10

I have no time to test I'm leaving for work right now.

lunat 2010-11-07 05:53

Re: [WIP] Ubuntu 9.10 on the N900
 
folks please come down. what we have is a little step in direction of running ubuntu.

we can start a kernel(and for that matter overclock the kernel) but this is not ubuntu but that kernel running. it was a huge step that nicola found out that you can boot ubuntu with a (stock) meego kernel. that is pretty cool.
this shows we are not far from having ubuntu running. still this is /not/ ubuntu running. ubuntu running means that that the battery applet shows the battery status(works to some degree ) and it starts charging when the battery is empty(imo doesn't work). the way you know it from a laptop. ubuntu working means that with an incomming phonecall the phone rings and you can use the phone. and so on. and ubuntu running means that this works with the packages from ubuntu.
powerkernel doesn't help. it needs all the closed stuff from maemo and dosn't work together with the free stuff in ubuntu.

so who was able to make a call with ubuntu?
please don't stop now, we are close. very close.

as usual an edit: don't get the thing about the powerkernel wrong. powerkernel is fine. but affaik optimized for maemo and not ubuntu. but if you get the ubuntu stuff(all!) running with that kernel: great.

lunat 2010-11-07 07:07

Re: [WIP] Ubuntu 9.10 on the N900
 
another hint for those experimenting with ubuntu:

you don't need an extra sd for that! uboot is capable of doing netboots. but that afaik doesn't work with the uboot from the repos. you may try however(uboot in general is capable of this !).

there is a different approach that also works. that is nfsmount. instead of using the sd as the rootpartition you mount the nfs via kernel nfs support. and chroot and pivotroot into that nfsshare. that way you boot into a directory on you pc, laptop whatever. but you have to setup a connection first. wlan is woking so no big deal, you only need everything necessary for that in the initrd.

with that testing gets realy comfortable. you edit all the files on your pc and immidiately see the effect on the phone. no further sd, no wearing off of sd's, cross compiling on the pc ...
hth

the usual edit: you can boot into nfs without initrd. the initrd is only necessary to setup the wlan.

artron 2010-11-07 08:32

Re: [WIP] Ubuntu 9.10 on the N900
 
its ubuntu 10.10 run on PR 1.3 ?

lunat 2010-11-07 08:49

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

Originally Posted by artron (Post 865780)
its ubuntu 10.10 run on PR 1.3 ?

no! pr1.3 is closed maemo stuff and ubuntu != maemo.
you can however with a /capable kernel/ copy the whole pr1.3 stuff and everything else from maemo to the ubuntu and boot that. that works .but that actually is replacing ubuntu with maemo so that it is no longer ubuntu but maemo with some parts from ubuntu. further you cannot make it available for the public as it is cruftware.

and as a sidenode: while running different binaryformats is possible it is not totally stable so might break sometimes.

EDIT: in more understandable: it is illegal for ubuntu to use pr 1.3 so you can't use it. nokia forbids it. plain and simplified.

ear0wax 2010-11-07 09:19

Re: [WIP] Ubuntu 9.10 on the N900
 
I really dont think ofono is gonna be to a big problem, its in the ubuntu mobile ppa

lunat 2010-11-07 09:29

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

Originally Posted by ear0wax (Post 865802)
I really dont think ofono is gonna be to a big problem, its in the ubuntu mobile ppa

hope so. up to now i get it detecting n900. listmodems tells me it is there. but i cannot enable it.... also tried it with the lates git ofono stuff. if i know more i let you know!

and there is the other isi stack but see for yourself:
https://elektranox.org/n900/libisi/index.html


edit: if somone gets ofono running, the next problem is pulseaudio and telepathy and see what is usable and what is cruft...

another edit: i still charge the phone with a modified version of joergs script is there a better way?

lunat 2010-11-08 14:39

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

Originally Posted by ear0wax (Post 865802)
I really dont think ofono is gonna be to a big problem, its in the ubuntu mobile ppa

drivers needed to make a call, correct me if i missed something:
----
#modem
phonet
cdc-phonet
cmt
cmt-speech
---
+ a hack from meego pulling up the lines. think it is all free stuff.
*smiles*

mido.fayad 2010-11-08 16:10

Re: [WIP] Ubuntu 9.10 on the N900
 
oh my god :) :)
finally got it working
and it's so so so fast on my 8 giga class 6 memory card
thanks to nicola :) :)

LucianoBraga 2010-11-08 17:19

Re: [WIP] Ubuntu 9.10 on the N900
 
I need an tutorial...Oh God...

seanik07 2010-11-08 17:33

Re: [WIP] Ubuntu 9.10 on the N900
 
Yes, please sb make tutorial for 10.10 because it's really hard to find out step by step procedure of getting it to work just by skimming previous posts ( keyboard + touchscreen + etc. ).

mido.fayad : try installing on eMMc. I have just installed nitdroid on extra primary partiton on eMMc, and it's running faster than installed on class 10 sdhc.

mido.fayad 2010-11-08 17:46

Re: [WIP] Ubuntu 9.10 on the N900
 
i already run nitdroid on emmc and i know it's better and i will try to run it also

lunat 2010-11-08 23:51

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

Originally Posted by LucianoBraga (Post 867135)
I need an tutorial...Oh God...

sure.. once i am done.
this is work in progress. all at your own risk. you may, but it's unlikely, destroy your phone if you do something wrong. and you may void your warranty if you do sth wrong. so all at your own risk and responsibility. also no warranty that everything works by copy and pasting. i wrote it solely in the hope to help if you are stuck. don't blame me: you've been warned.

one more hint: take care if you are editing on your pc. pathnames in the following are relativ to the mountpoint or the volume in win machines. you have to prepend YOUR path to the mountpoint. don't edit the files on your pc but only those on the sd!
another hint: if you are using a windows pc for this you need (obviously)something capable of reading ext2(actually it is an ext3 but ext3 /is/ ext2 with some additional files, so ext2 is sufficient)

take the ubuntu image(armel+omap.img.gz).
http://cdimage.ubuntu.com/ubuntu-net...10.10/release/
put it on a sd just the way they explain it on the ubuntu page.
https://wiki.ubuntu.com/ARM/OMAPMaverickInstall

HOLDON: unmount everything if it is mounted and try a fsck on the second partition.
eg.
Code:

fsck /dev/mmcblk1p2
either it is imidately done and says everything is fine.

important or it gives you crap of a destroyed superblock or partitiontable or something alike: that means your sd and the image don't fit together(no problem of n900 but a problem of rawimages and sds of differrent sizes etc). unfortunately that will stop the bootprocess later as well as the kernel runs fsck on the disk.
in that case: accept the offer of fsck and abort the check! mount the partition 2 , make a backup of it, partition and format the sd anew and play the backup back.[backup e.g. with rsync -Hax source target ] (anyways good for you can increase the size of the partition)


how you acces the sd doesn't matter. have the 2nd partition mounted,
eg. if you are on the phone:

Code:

mkdir -p /mnt/ubu
mount /dev/mmcblk1p2 /mnt/ubu

OR if you put in the sd in on a pc and have it in a filemanager/explorer you are good as well.

take a kernel from meego and an image. you have to mount the image somehow and grab the modules from there. do it the way they explain it on their page(but don't use the old image there, see below) :
http://wiki.meego.com/ARM/N900/Install/chroot
the important part is:


Code:


mkdir -p /mnt/meego
losetup /dev/loop0 ${MEEGO_IMAGE} -o  <OFFSET>
 mount /dev/loop0 /mnt/meego

OR on the pc:

Code:

mkdir -p /mnt/meego
mount -o loop,offset= <OFFSET> ${MEEGO_IMAGE} /mnt/meego

OR your way of mounting images on windows..

you get the offset via sfdisk -lu
the startnumber it tells you needs to be multiplied with the blocksize and this is the offset.
Code:

losetup /dev/loop0  ${MEEGO_IMAGE}
 sfdisk -lu /dev/loop0

look up the start of the partition. it's the 1rst number in the line with part.type "linux" or 83 Hex and multiply it with the blocksize, should be 512(it tells you in the head!)
Code:

  losetup -d /dev/loop0
wait: don't use that ooold image in the chroot howto but a new one! see for instance:
http://wiki.meego.com/ARM/N900/Install/MMC#Linux
now mount that with the offset of the real image you have( the image i tried had an offset of 512 ).

put the modules from the meego /lib/modules/ to /lib/modules/ on the sd.(the whole directory so that you get a new subdirectory with the kernels version as its name - just drag and drop and you are good). we only grab the kerneldrivers off the image.
eg.
Code:

cp -a /mnt/meego/lib/modules/* /mnt/ubu/lib/modules/
OR your way of copying files in windows
btw firmware is also in /lib/firmware

after that you can unmount the image. don't need it any further.
e.g.
Code:

umount /mnt/meego
rm /mnt/meego

you can save you the trouble with the meego image if you compile your kernel yourself :P
now back to our ubuntu sd:
go to /etc modules(any /simple/ editor that can handle unix lineendings):
add /at least/ the following modules to it(copy and paste). might need to add some others. and uncomment some.[is on my TODO] )
Code:

#----
#modem
phonet
cdc-phonet
cmt
cmt-speech
#keyboard
gpio_keys
twl4030_keypad
matrix_keypad
#touchscreen
tsc2005
#light_meter
tsl2563
#acelerometer
lis3lv02d_i2c
lis3lv02d

#screen
#ACX565AKM (compiled in needs spi master)
#audio compiled in
#TLV320AIC3 compiled in audio, bug: can't be compiled as mod
twl4030-vibra
#leds
ledslp5523
#wlan
cfg80211
mac80211
wl1251_spi
wl1251
#bluetooth

#battery meter
bq27x00_battery
#power
power_supply
#twl4030support (compiled in)
#charger
isp1704_charger
#usb gadget
g_nokia

#multifunction
#TWL4030 (co)
#+TWL5030 MADC (audio-digital)
#MMC #all (compiled in: bootdevice on mmc)

now you edit /etc/X11/xorg.conf and put in:
Code:

Section "InputClass"
        Identifier "tslib touchscreen"
        Driver "tslib"
        MatchIsTouchscreen "yes"
EndSection

Section "InputClass"
        Identifier      "Touchscreen"
        MatchProduct    "TSC2005 touchscreen"
        Option          "Calibration" "225 3931 3740 231"
        Option          "SendCoreEvents" "yes"
        Driver          "evdev"
EndSection

Section "InputClass"
        Identifier      "Keyboard"
        MatchProduct    "TWL4030 Keypad|gpio-keys"
        Option          "XkbModel" "nokiarx51"
        Option          "XkbLayout" "us"
        Option          "XkbOptions" "grp:ctrl_shift_toggle"
        Driver          "evdev"
EndSection

for the usb net add to /etc/network/interfaces:

Code:

auto lo
iface lo inet loopback

auto usb0
allow-hotplug usb0
iface usb0 inet static
    address 192.168.3.101
    netmask 255.255.255.0
    gateway 192.168.3.100

noauto phonet0  wlan0 wmaster0

adjust the internetadress such, that the gateway is the ip of the usb interface of your pc and choose any free ip as address in the same network(that is: everything but the last number should be equal).
go to /etc/resolv.conf and put a dns server address in(create the file).
Code:

nameserver 192.168.10.1
use a /real/ nameserver address.
turn your pc into a gateway. for linux you can do it eg (you may want to have it more sophisticated):
Code:

iptables -A  FORWARD -j ACCEPT
iptables -tnat -A  POSTROUTING -o eth0 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward

now add a 3rd vfat partition. put the kernel on it(just the way you would do it if you were installing meego).
Code:

mkimage  -A arm -O linux -T kernel -C none -a 80008000 -e 80008000 -n zImage -d zImage uImage
mkdir -p /mnt/kern
mount /dev/mmcblck1p3 /mnt/kern
cp uImage /mnt/kern

grab the uboot from extras devel and install it.

either
a) make sure that you have the correct root= attribute in the boot.scr. it should be /dev/mmcblk0p2. and have a rootwait (or rootdelay=) attribute. and so on... look at the bootparams meego has, it should be what you want. [nb: it might be that your kernel uses a fixed bootparam string in that case go for option b ]
put a script in a file say bootscript.txt(from top of my head):
Code:

kernaddr=0x80300000
setenv bootargs root=/dev/mmcblk0p2 rootwait ..
fatload mmc 1:3 ${kernaddr} uImage
bootm ${kernaddr}

and roll it and put it on the vfat
Code:

mkimage -A arm -O linux -T script -n bootscript -C none -d bootscript.txt boot.scr
cp boot.scr /mnt/kern

OR
b) make a backup of the sd. reformat it and put the stuff back on the partition that gets booted(and have the kernel on a 3rd vfat).
if you reformat you may want to increase the size of the partition. ubuntu recommends at least 3-4GB.
unmount everything.

maybe you need this if you don't see the configuration on first boot:

Code:

touch /var/lib/oem-config/run
boot.

if the keyboard is not working. connect via usb and ssh with the phone
[workaround if you don't know how to do it. take the sd +battery out. but wait some time so that the (log)files are really written on the sd and you don't end up with a corrupted sd.
boot into maemo OR look at the sd on your pc. mount it the way you did it before ]
have a look at the /etc/xorg.conf at the MatchProduct strings. they unfortunately vary sometimes slightly depending on the patches used.
compare it with the similar strings in the X logs.( /var/log/Xorg.0.log )
take the similar string you find in the log and replace the string in the xorg.conf with that exact string(the bar in the keyboard product is an "or". so this are two strings separated by the bar -> it catches two drivers. if you have one of them working you are good. don't need both, either works).
finally restart gdm or reboot.

if you want to use the phone install ofono.
Code:

apt-get update
apt-get upgrade
apt-get install ofono
....

so far. maybe i look later for spelling mistakes and the like in this post.... maybe not...

juandp77 2010-11-09 05:44

Re: [WIP] Ubuntu 9.10 on the N900
 
I follow your steps but i can get to boot it, can you please explain the last part about the kernel and how to configurate u-boot


All times are GMT. The time now is 22:01.

vBulletin® Version 3.8.8