maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Alternatives (https://talk.maemo.org/forumdisplay.php?f=36)
-   -   Fedora 12 on Nokia N900 (https://talk.maemo.org/showthread.php?t=38987)

jebba 2010-01-01 19:11

Fedora 12 on Nokia N900
 
I have Fedora 12 up and running on my Nokia N900.

It's only in console mode at the moment, but it boots up. :)

I will write up a mini HOWTO and put it here:

http://wiki.maemo.org/User:Jebba/Fedora

bdogg64 2010-01-02 04:01

Re: Fedora 12 on Nokia N900
 
Please get Android working next or Ubuntu! Anyway, keep cranking out the good work.

Bratag 2010-01-02 04:26

Re: Fedora 12 on Nokia N900
 
Cool - thanks for the walkthrough. :)

qole 2010-01-02 05:29

Re: Fedora 12 on Nokia N900
 
Thanks for this!

"Easy Debian" will also work quite well for the chroot portion of setting up a Fedora rootfs...

Have they fixed the bug in Yum that makes it fail on ARM processors?

I tried previous Fedora versions, but they had ported so few apps to their repos that I gave up...

jebba 2010-01-02 14:18

Re: Fedora 12 on Nokia N900
 
Quote:

Originally Posted by qole (Post 449557)
Have they fixed the bug in Yum that makes it fail on ARM processors?

I'm not aware of any ARM yum bug. I was able to use it fine.

Quote:

I tried previous Fedora versions, but they had ported so few apps to their repos that I gave up...
I was able to install all of X and XFCE. The repo seems to be a decent size now.

Of course, you can't recharge the battery and the keymap is pretty broken in the console (just letters, more or less), but this is also true of Mer.

lohiaprateek 2010-01-04 19:46

Re: Fedora 12 on Nokia N900
 
i noticed on your guide for mer..that you are using ext3 partition scheme..isnt it advisable for solid media to use ext2 and journalising the data is not needed on mmc as read times are really fast in bursts..ext3 will slow down the performance?

jebba 2010-01-06 04:28

Re: Fedora 12 on Nokia N900
 
Quote:

Originally Posted by lohiaprateek (Post 452972)
i noticed on your guide for mer..that you are using ext3 partition scheme..isnt it advisable for solid media to use ext2 and journalising the data is not needed on mmc as read times are really fast in bursts..ext3 will slow down the performance?

You could be right. I don't have a good answer to that. I do know that fscking would be faster with ext3 (if i'm not mistaken) and I seem to fsck it a lot. ;)

x61 2010-01-06 04:44

Re: Fedora 12 on Nokia N900
 
Hope you can still receive phone calls...

b-man 2010-01-06 13:47

Re: Fedora 12 on Nokia N900
 
Excellent work :)

btw i'll be starting a new ubuntu project for the N900 once i get my device, which should happen hopefully within the next week and a half ;)

SimonGie 2010-06-29 21:58

Re: Fedora 12 on Nokia N900
 
Would you mind updating your wiki for the new FW and kernels?
I tried this this evening but came unstuck.

MohammadAG 2010-06-29 22:18

Re: Fedora 12 on Nokia N900
 
I'll make a kernel-framebuffer package and maintain it in the repos soon, should be useful for everyone who wants to boot another OS (which kicks into a console with no X), as well as debugging purposes on maemo (well, not full debugging, but if the device fails to boot you should know why) :)

jebba 2010-06-29 23:23

Re: Fedora 12 on Nokia N900
 
Quote:

Originally Posted by SimonGie (Post 734662)
Would you mind updating your wiki for the new FW and kernels?
I tried this this evening but came unstuck.

Sorry, I've stopped working on Maemo/Meego.

j.s 2010-06-30 01:25

Re: Fedora 12 on Nokia N900
 
Quote:

Originally Posted by jebba (Post 734752)
Sorry, I've stopped working on Maemo/Meego.

I'm sorry to hear that and very grateful for all that you did when you were. Thank you very much!

SimonGie 2010-07-12 10:28

Re: Fedora 12 on Nokia N900
 
Quote:

Originally Posted by MohammadAG (Post 734687)
I'll make a kernel-framebuffer package and maintain it in the repos soon, should be useful for everyone who wants to boot another OS (which kicks into a console with no X), as well as debugging purposes on maemo (well, not full debugging, but if the device fails to boot you should know why) :)

Any updates on this?

SimonGie 2010-07-21 09:47

Re: Fedora 12 on Nokia N900
 
I managed to get everything installed ok. And I can chroot in, but I cannot get it to boot from the SD card.

My I have an entry called fedora.ext.item in the bootmenu.d folder that looks like this.
Code:

ITEM_NAME="Fedora 12 (external SD, partition 4)"
ITEM_ID="fedora"
ITEM_DEVICE="mmcblk1p4"    #I have tried {EXT_CARD}p4
ITEM_MODULES="mbcache jbd ext3"
ITEM_FSTYPE="ext3"
ITEM_FSOPTIONS="noatime,rw"

When I try to boot, it gets as far as saying "mounting /dev/mmcblk1p4 /mnt/new_root" but then kicks out saying no such file or directory.

My memory card is a 4 gig, partitioned as such.
p1 100Mb Vfat
p2 512Mb swap
p3 1000Mb ext3
p4 rest of space for fedora

I see somewhere that you should run a refresh_bootmenu.d after adding items in bootmenu.d directory, but I it doesn't do anything as I dont have this file to run....so I'm thinking this may be outdated.

All I have done so far is copy over the rootfs, modules and firmware...I just cant get past the booting.

Any ideas?

MohammadAG 2010-07-21 11:08

Re: Fedora 12 on Nokia N900
 
http://mohammadag.xceleo.org/public/...s/framebuffer/ for kernels.

When dual booting the nodes are swapped, mmcblk1 is the internal eMMC, you should use mmcblk0p4.

SimonGie 2010-07-21 12:00

Re: Fedora 12 on Nokia N900
 
Bow to the master, thanks man!

SimonGie 2010-07-21 12:06

Re: Fedora 12 on Nokia N900
 
I've been using your kernel, but couldnt get the dualboot going. Changing to mmcblk0p4 worked a treat.

SimonGie 2010-07-21 22:51

Re: Fedora 12 on Nokia N900
 
I cant seem to get x up and running. Do I need to have XFCE installed? Or can I just start up the basic X terminal?

Also, I am running this on a 1Gb memory card as my 4gb is giving I/O errors. So basically I have it installed on 1 partition with no swap partition. Here is my X log, sorry for the long post.

Code:

_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/fedora-arm:0
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6

X.Org X Server 1.7.1
Release Date: 2009-10-23
X Protocol Version 11, Revision 0
Build Operating System:  2.6.32-rc3-00337-gbd38193-dirty
Current Operating System: Linux fedora-arm 2.6.28-omap1 #1 PREEMPT Sat Jul 3 20:18:20 EDT 2010 armv7l
Kernel command line: init=/sbin/preinit ubi.mtd=rootfs root=ubi0:rootfs rootfstype=ubifs rootflags=bulk_read,no_chk_data_crc rw console=ttyMTD,log console=tty0 snd-soc-rx51.hp_lim=42 snd-soc-tlv320aic3x.hp_dac_lim=6
Build Date: 06 November 2009  01:56:56PM
Build ID: xorg-x11-server 1.7.1-7.fc12
Current version of pixman: 0.16.2
        Before reporting problems, check http://bodhi.fedoraproject.org/
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Wed Dec 31 19:05:13 1969
(II) Loader magic: 0x1a4018
(II) Module ABI versions:
        X.Org ANSI C Emulation: 0.4
        X.Org Video Driver: 6.0
        X.Org XInput driver : 7.0
        X.Org Server Extension : 2.0
(--) using VT number 7

Primary device is not PCI
(==) Using default built-in configuration (12 lines)
(==) --- Start of built-in configuration ---
        Section "Device"
                Identifier        "Builtin Default fbdev Device 0"
                Driver        "fbdev"
        EndSection
        Section "Screen"
                Identifier        "Builtin Default fbdev Screen 0"
                Device        "Builtin Default fbdev Device 0"
        EndSection
        Section "ServerLayout"
                Identifier        "Builtin Default Layout"
                Screen        "Builtin Default fbdev Screen 0"
        EndSection
(==) --- End of built-in configuration ---
(==) ServerLayout "Builtin Default Layout"
(**) |-->Screen "Builtin Default fbdev Screen 0" (0)
(**) |  |-->Monitor "<default monitor>"
(**) |  |-->Device "Builtin Default fbdev Device 0"
(==) No monitor specified for screen "Builtin Default fbdev Screen 0".
        Using a default monitor configuration.
(==) Automatically adding devices
(==) Automatically enabling devices
(==) FontPath set to:
        catalogue:/etc/X11/fontpath.d,
        built-ins
(==) ModulePath set to "/usr/lib/xorg/modules"
(II) Cannot locate a core pointer device.
(II) Cannot locate a core keyboard device.
(II) The server relies on HAL to provide the list of input devices.
        If no devices become available, reconfigure HAL or disable AllowEmptyInput.
(II) LoadModule: "extmod"
(II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
(II) Module extmod: vendor="X.Org Foundation"
        compiled for 1.7.1, module version = 1.0.0
        Module class: X.Org Server Extension
        ABI class: X.Org Server Extension, version 2.0
(II) Loading extension SELinux
(II) Loading extension MIT-SCREEN-SAVER
(II) Loading extension XFree86-VidModeExtension
(II) Loading extension XFree86-DGA
(II) Loading extension DPMS
(II) Loading extension XVideo
(II) Loading extension XVideo-MotionCompensation
(II) Loading extension X-Resource
(II) LoadModule: "dbe"
(II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
(II) Module dbe: vendor="X.Org Foundation"
        compiled for 1.7.1, module version = 1.0.0
        Module class: X.Org Server Extension
        ABI class: X.Org Server Extension, version 2.0
(II) Loading extension DOUBLE-BUFFER
(II) LoadModule: "glx"
(II) Loading /usr/lib/xorg/modules/extensions/libglx.so
(II) Module glx: vendor="X.Org Foundation"
        compiled for 1.7.1, module version = 1.0.0
        ABI class: X.Org Server Extension, version 2.0
(==) AIGLX enabled
(II) Loading extension GLX
(II) LoadModule: "record"
(II) Loading /usr/lib/xorg/modules/extensions/librecord.so
(II) Module record: vendor="X.Org Foundation"
        compiled for 1.7.1, module version = 1.13.0
        Module class: X.Org Server Extension
        ABI class: X.Org Server Extension, version 2.0
(II) Loading extension RECORD
(II) LoadModule: "dri"
(II) Loading /usr/lib/xorg/modules/extensions/libdri.so
(II) Module dri: vendor="X.Org Foundation"
        compiled for 1.7.1, module version = 1.0.0
        ABI class: X.Org Server Extension, version 2.0
(II) Loading extension XFree86-DRI
(II) LoadModule: "dri2"
(II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
(II) Module dri2: vendor="X.Org Foundation"
        compiled for 1.7.1, module version = 1.1.0
        ABI class: X.Org Server Extension, version 2.0
(II) Loading extension DRI2
(II) LoadModule: "fbdev"
(II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
(II) Module fbdev: vendor="X.Org Foundation"
        compiled for 1.7.0, module version = 0.4.1
        ABI class: X.Org Video Driver, version 6.0
(II) FBDEV: driver for framebuffer: fbdev
(WW) Falling back to old probe method for fbdev
(II) Loading sub module "fbdevhw"
(II) LoadModule: "fbdevhw"
(II) Loading /usr/lib/xorg/modules/linux/libfbdevhw.so
(II) Module fbdevhw: vendor="X.Org Foundation"
        compiled for 1.7.1, module version = 0.0.2
        ABI class: X.Org Video Driver, version 6.0
(II) FBDEV(0): using default device
(WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
(II) Running in FRAMEBUFFER Mode
(II) FBDEV(0): Creating default Display subsection in Screen section
        "Builtin Default fbdev Screen 0" for depth/fbbpp 16/16
(==) FBDEV(0): Depth 16, (==) framebuffer bpp 16
(==) FBDEV(0): RGB weight 565
(==) FBDEV(0): Default visual is TrueColor
(==) FBDEV(0): Using gamma correction (1.0, 1.0, 1.0)
(II) FBDEV(0): hardware: omapfb (video memory: 848kB)
(II) FBDEV(0): checking modes against framebuffer device...
(II) FBDEV(0): checking modes against monitor...
(--) FBDEV(0): Virtual size is 800x480 (pitch 800)
(**) FBDEV(0):  Built-in mode "current": 24.0 MHz, 28.0 kHz, 57.2 Hz
(II) FBDEV(0): Modeline "current"x0.0  24.00  800 824 828 856  480 484 487 490 -hsync -vsync -csync (28.0 kHz)
(==) FBDEV(0): DPI set to (96, 96)
(II) Loading sub module "fb"
(II) LoadModule: "fb"
(II) Loading /usr/lib/xorg/modules/libfb.so
(II) Module fb: vendor="X.Org Foundation"
        compiled for 1.7.1, module version = 1.0.0
        ABI class: X.Org ANSI C Emulation, version 0.4
(**) FBDEV(0): using shadow framebuffer
(II) Loading sub module "shadow"
(II) LoadModule: "shadow"
(II) Loading /usr/lib/xorg/modules/libshadow.so
(II) Module shadow: vendor="X.Org Foundation"
        compiled for 1.7.1, module version = 1.1.0
        ABI class: X.Org ANSI C Emulation, version 0.4
(==) FBDEV(0): Backing store disabled
(==) FBDEV(0): DPMS enabled
(==) RandR enabled
(II) Initializing built-in extension Generic Event Extension
(II) Initializing built-in extension SHAPE
(II) Initializing built-in extension MIT-SHM
(II) Initializing built-in extension XInputExtension
(II) Initializing built-in extension XTEST
(II) Initializing built-in extension BIG-REQUESTS
(II) Initializing built-in extension SYNC
(II) Initializing built-in extension XKEYBOARD
(II) Initializing built-in extension XC-MISC
(II) Initializing built-in extension XINERAMA
(II) Initializing built-in extension XFIXES
(II) Initializing built-in extension RENDER
(II) Initializing built-in extension RANDR
(II) Initializing built-in extension COMPOSITE
(II) Initializing built-in extension DAMAGE
SELinux: Disabled on system, not enabling in X server
record: RECORD extension enabled at configure time.
record: This extension is known to be broken, disabling extension now..
record: http://bugs.freedesktop.org/show_bug.cgi?id=20500
(II) AIGLX: Screen 0 is not DRI2 capable
(II) AIGLX: Screen 0 is not DRI capable
(II) AIGLX: Loaded and initialized /usr/lib/dri/swrast_dri.so
(II) GLX: Initialized DRISWRAST GL provider for screen 0
(II) config/hal: Adding input device omap_twl4030keypad
(II) LoadModule: "evdev"
(II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
(II) Module evdev: vendor="X.Org Foundation"
        compiled for 1.7.0, module version = 2.3.0
        Module class: X.Org XInput Driver
        ABI class: X.Org XInput driver, version 7.0
(**) omap_twl4030keypad: always reports core events
(**) omap_twl4030keypad: Device: "/dev/input/event1"
(II) omap_twl4030keypad: Found keys
(II) omap_twl4030keypad: Configuring as keyboard
(II) XINPUT: Adding extended input device "omap_twl4030keypad" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "evdev"
(**) Option "xkb_layout" "us"
(**) Option "xkb_options" "terminate:ctrl_alt_bksp"
(II) config/hal: Adding input device triton2-pwrbutton
(**) triton2-pwrbutton: always reports core events
(**) triton2-pwrbutton: Device: "/dev/input/event0"
(II) triton2-pwrbutton: Found keys
(II) triton2-pwrbutton: Configuring as keyboard
(II) XINPUT: Adding extended input device "triton2-pwrbutton" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "evdev"
(**) Option "xkb_layout" "us"
(II) omap_twl4030keypad: Close
(II) UnloadModule: "evdev"
(II) triton2-pwrbutton: Close
(II) UnloadModule: "evdev"

Backtrace:
0: /usr/bin/X (xorg_backtrace+0x2c) [0x65454]
1: /usr/bin/X (0x8000+0x59334) [0x61334]
2: /lib/libc.so.6 (__default_rt_sa_restorer_v2+0x0) [0x40462140]
3: /usr/bin/X (DamageUnregister+0x6c) [0xd1ba4]
4: /usr/lib/xorg/modules/libshadow.so (shadowRemove+0x3c) [0x4086ff9c]
5: /usr/lib/xorg/modules/libshadow.so (0x4086f000+0x13d4) [0x408703d4]
6: /usr/bin/X (0x8000+0x6ce2c) [0x74e2c]
7: /usr/bin/X (0x8000+0x13aa8c) [0x142a8c]
8: /usr/bin/X (0x8000+0x4d0d4) [0x550d4]
9: /usr/bin/X (0x8000+0x1669a4) [0x16e9a4]
10: /usr/bin/X (0x8000+0x10e438) [0x116438]
11: /usr/bin/X (0x8000+0x627a8) [0x6a7a8]
12: /usr/lib/xorg/modules/drivers/fbdev_drv.so (0x40833000+0x2660) [0x40835660]
13: /usr/bin/X (0x8000+0xb7700) [0xbf700]
14: /usr/bin/X (0x8000+0x1062e4) [0x10e2e4]
15: /usr/bin/X (0x8000+0x10fe0c) [0x117e0c]
16: /usr/bin/X (0x8000+0xa6bd4) [0xaebd4]
17: /usr/bin/X (0x8000+0xc3780) [0xcb780]
18: /usr/bin/X (0x8000+0xa3130) [0xab130]
19: /usr/lib/xorg/modules/extensions/libglx.so (0x407aa000+0x38780) [0x407e2780]
20: /usr/bin/X (0x8000+0x1bae0) [0x23ae0]
21: /lib/libc.so.6 (__libc_start_main+0x118) [0x4044a4e0]
Segmentation fault at address 0x48

Fatal server error:
Caught signal 11 (Segmentation fault). Server aborting


Please consult the The X.Org Foundation support
        at http://bodhi.fedoraproject.org/
 for help.
Please also check the log file at "/var/log/Xorg.0.log" for additional information.

_


SimonGie 2010-07-26 21:57

Re: Fedora 12 on Nokia N900
 
Ok, I have it all up and running :) X works beautifully, I can't believe how well it actually runs.

Thanks Mohammad, your kernel works perfectly!

MastaG 2010-08-10 23:05

Re: Fedora 12 on Nokia N900
 
Ok I've got Fedora 12 to work with multiboot and it's indeed alot faster than I expected.
I've installed the kernel packages from MohammedAG at: http://mohammadag.xceleo.org/public/...s/framebuffer/
And I'm using his: http://mohammadag.xceleo.org/public/...e-fb-omap1.bin as /boot/multiboot/vmlinuz-2.6.28-framebuffer1 :)

However I've got a few problems.
First of all the sound doesn't work, there is no documentation on that.
Second problem is that the mac-address changes on each boot, deleting the 70-persistant-net-rules is not really an option since my dhcp server will still assign a different ip-address. I would like to make the mac address to stay the same.
And the last problem is that I can't find the n900-support script for the battery.
Quote:

cp -p /mnt/mer/etc/init.d/n900-support /etc/init.d/
# edit n900-support, adding this line:
# chkconfig: - 58 74
chkconfig --level 35 n900-support on
Any ideas?

kingoddball 2010-08-10 23:45

Re: Fedora 12 on Nokia N900
 
How do you do the CHroot part? I am having the same trouble with Fedora and Ubuntu. I can not get past the chroot (/bin/bash sections).

SimonGie 2010-08-11 05:50

Re: Fedora 12 on Nokia N900
 
Masta, I never did get around the MAC address changing at each boot, but I just installed Network Manager so that I ddnt have to run a script to get the Wlan up and running.

King, you need to mount the partition fist, the chroot into it.

Like so:
Code:

mount /dev/mmcblk1px /media/mmcx
chroot /media/mmcx /bin/bash


MastaG 2010-08-11 20:27

Re: Fedora 12 on Nokia N900
 
for some reason multiboot seems unstable...
I cant get it to boot anymore for some reason :(
I've installed everything in this order:
Code:

kernel-framebuffer_2.6.28-20101501+0m5-framebuffer1_armel.deb
kernel-framebuffer-modules_2.6.28-20101501+0m5-framebuffer1_armel.deb
kernel-framebuffer-flasher_2.6.28-20101501+0m5-framebuffer1_armel.deb
multiboot-extras_0.1_armel.deb
multiboot_0.2.5_armel.deb

I've placed "zImage-fb-omap1.bin" from http://mohammadag.xceleo.org/public/maemo/kernels/ as /boot/multiboot/vmlinuz-2.6.28-framebuffer1

And there two items in /etc/multiboot.d:
Fedora-2.6.28.item
Code:

ITEM_NAME="Fedora 12"
ITEM_KERNEL="2.6.28-framebuffer1"
ITEM_MODULES="mbcache jbd ext3"
ITEM_DEVICE="${EXT_CARD}p3"
ITEM_FSTYPE="ext3"
ITEM_FSOPTIONS="noatime,rw"

and

Maemo-2.6.28-omap1.item
Code:

ITEM_NAME="Maemo 2.6.28-omap1"
ITEM_KERNEL=2.6.28-omap1
ITEM_MODULES=ext3

Only maemo works and for some reason it boots in framebuffer mode and only when there is no charger connected.

I've tried to issue the flasher commands:
Code:

flasher-3.5 --set-rd-flags=no-ext-wd
flasher-3.5 --set-rd-flags=no-omap-wd
flasher-3.5 --enable-rd-mode

But it doesn't help.

When I try to boot Fedora 12 it gets stuck or reboot.

SimonGie 2010-08-12 06:53

Re: Fedora 12 on Nokia N900
 
I did this. Reflash the phone with pr1.2 to start anew.
Use maemo flasher to flash the framebuffer kernel. don't install any modules, it works fine without.
in other word, use the framebuffer kernel for maemo and fedora.
install fedora.
install multiboot.
create fedora.item
check that you can boot both.
when you boot normal maemo it should boot the framebuffer kernel.
install maemo power, but dont flash the kernel, just install the kernels and modules.
create an item file to point to this kernel.
make sure the power kernel image and framebuffer image is in /boot/multiboot and that the names match to those is the item files.
check that you can boot all 3
install NITDroid

mankir 2011-07-27 22:53

Re: Fedora 12 on Nokia N900
 
Anybody tried Fedora 13: http://scotland.proximity.on.ca/fedo...-06-29.tar.bz2
In http://fedoraproject.org/wiki/Archit...rdFP_Bootstrap they write, that thumb2 is disabled by default. So any application should be useable in easy chroot?


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

vBulletin® Version 3.8.8