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


All times are GMT. The time now is 21:54.

vBulletin® Version 3.8.8