maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   [Development - see post #1] Fremantle in a chroot (Run N900 applications on the N9) (https://talk.maemo.org/showthread.php?t=84987)

qwazix 2012-06-19 21:43

[Development - see post #1] Fremantle in a chroot (Run N900 applications on the N9)
 
I was just successful in running Wordpress from maemo-extras on the N950 using a chroot Maemo 5 PR1.3 rootfs image. As I am not allowed to post the image here I will post instructions shortly, but for now you have a teaser video.

DISCLAIMER: I don't know what works, maybe the first app that came to my mind (WordPress) luckily worked and nothing else does. Also the virtual keyboard doesn't work so for the N9 you'll need a bluetooth keyboard.

http://www.youtube.com/watch?v=ZIlD7NsO1QI&feature=plcp

More applications do work partially (e.g. gnumeric) but I have to run hildon desktop first. Anyone got any idea how to run hildon-desktop in xephyr? I checked how it is being done in scratchbox but there are a lot of sb-only functions in that script file.

EDIT: Tutorial on post #14

Status
Due to the chroot using the Harmattan dbus, and the fact that Maemo relies heavily on dbus to work I think it's futile to try to make hildon-desktop work from within the chroot. Another fact is that after trying to initialize hildon-desktop through scratchbox's init script, weird things happen to the N950 like loss of vibration, and weird lighting patterns on the hwkb. Thus I stopped work on the chroot and shifted to making hildon-desktop work natively in harmattan. This would allow us to run a native h-d in Xephyr and run applications from within the chroot on the h-d outside. In the future, we could possibly create an inverse MeeCoLay, without need for a chroot and thus without need for open mode. Another possible experiment would be to change the default window manager of harmattan from mcompositor to hildon-desktop.

Now I have trouble compiling clutter, see post #61

Post history:

EDIT2: Current status is described at post #17. Please read and comment if you know something about the blocker issue at post #19

Help needed

by using a modified af-sb-init.sh script from scratchbox I have managed to get hildon desktop to flash on screen before it dies with
Code:

ERROR:PipDate.c:569:pip_date_to_string_format: assertion failed: (pip_date_is_valid((date))
Attempt to remove filter function 0xcca8 user data (nil), but no such filter has been added

This happens, either directly, or in xephyr. Please share your knowledge if you happen to understand what is happening.

It would be even better if we didn't have to start the whole hildon desktop but only the notification/menu bar. The actual problem is that apps now run without a menu


Thanks to matan, this problem is now solved, and matchbox-window-manager starts successfully (I can see desktop widgets, and applications with the menu bar).
We still cannot start hildon-desktop however, and I suppose that the problem lies with dbus (probably session) bus. The question is this Does the chroot use the parent OS dbus or does it start it's own? Please note that hildon desktop does not throw any errors, it just displays a black screen. Screenshots will be posted soon @post #55.

Another, unrelated, question is how to get rid of the bottom toolbar in harmattan windows.



List of relevant threads, wikis etc for reference

misiak 2012-06-19 22:02

Re: Fremantle in a chroot (Run N900 applications on the N9)
 
Sorry for stupid comment, but this is first thing that came to my mind :D http://cdn.memegenerator.net/instanc...x/22258558.jpg
It's great idea to try to run that :) You inspired me to try running Diablo inside Fremantle (just for fun ;) )

qwazix 2012-06-19 22:10

Re: Fremantle in a chroot (Run N900 applications on the N9)
 
ROTFL!

10chars

MINKIN2 2012-06-19 22:26

Re: Fremantle in a chroot (Run N900 applications on the N9)
 
Ohhhh, this is awesome work.

I know it's not going to happen but one can dream of running MicroB on the n9. :D

Kabouik 2012-06-19 23:00

Re: Fremantle in a chroot (Run N900 applications on the N9)
 
Quote:

Originally Posted by MINKIN2 (Post 1224404)
Ohhhh, this is awesome work.

I know it's not going to happen but one can dream of running MicroB on the n9. :D

Tell me this is gonna happen, I'm begging you. By the way, there are so many other third-party Maemo apps that would be awsome on the N9.

sifo 2012-06-19 23:03

Re: Fremantle in a chroot (Run N900 applications on the N9)
 
@qwazix
nice job i like it even i dont have N9 :)

michaelmhk 2012-06-19 23:20

Re: Fremantle in a chroot (Run N900 applications on the N9)
 
For virtual keyboard, there is xmind by javispedro

wook_sf 2012-06-20 00:09

Re: Fremantle in a chroot (Run N900 applications on the N9)
 
no, this is something i really LIKE
when we can get full tut? haaa? and where to get rootfs?:D
damn, this's great :D

apache 2012-06-20 06:51

Re: Fremantle in a chroot (Run N900 applications on the N9)
 
@ qwazix Give us the tutorials cant wait to get into the awesomeness :-D

geneven 2012-06-20 07:05

Re: Fremantle in a chroot (Run N900 applications on the N9)
 
There are so many N900 programs I would like to run on the N9...

HtheB 2012-06-20 07:16

Re: Fremantle in a chroot (Run N900 applications on the N9)
 
http://rlv.zcache.com/awesome_smiley...7env3c_400.jpg

cvp 2012-06-20 08:03

Re: Fremantle in a chroot (Run N900 applications on the N9)
 
NICE work :) How To + DL links please :D

HtheB 2012-06-20 18:09

Re: Fremantle in a chroot (Run N900 applications on the N9)
 
No tutorial yet?

(cant wait to test some maemo5 apps :) )

qwazix 2012-06-20 18:31

Re: Fremantle in a chroot (Run N900 applications on the N9)
 
Tutorial Time :)

First things first.


1. The N900 rootfs is not redistributable, so the only thing I can do is write how to obtain it (if you have a N900).
2. You need a linux box for this procedure, either virtual or real. It is possible that those steps that require linux could be done on a N900 with kernel-power but this is not certain
3. These are early stages, I've got many problems to solve, hopefully with some help from the community this project can be made usable day to day
4. Requires open mode, I don't know if inception can be used alternatively


How to get fremantle image.

Create a working directory N900root

Go here http://tablets-dev.nokia.com/nokia_N900.php, enter your IMEI and download
RX-51_2009SE_20.2010.36-2_PR_COMBINED_MR0_ARM.bin (latest global N900 firmware)
michaelmhk says that if you haven't got a N900 you can download the firmware from NaviFirm
Go here http://tablets-dev.nokia.com/maemo-d...-downloads.php and download maemo_flasher-3.5_2.5.2.2.tar.gz, or maemo_flasher-3.5_2.5.2.2_i386.deb if you have 32bit ubuntu/debian.

Install the flasher or extract the binary from the tar.gz in your working directory

Unpack the .bin file you just downloaded
Code:

flasher-3.5 -u -F RX-51_2009SE_20.2010.36-2_PR_COMBINED_MR0_ARM.bin
if you installed or otherwise
Code:

./flasher-3.5 -u -F RX-51_2009SE_20.2010.36-2_PR_COMBINED_MR0_ARM.bin
You'll end up with a bunch of files in the working directory

Using a root prompt (sudo su) execute the following commands to mount the rootfs file to your system. Some commands are there just for checking if you've done well (cat and ls commands should produce similar output). You may need to create /mnt/n900 directory
Code:

# modprobe mtdblock

# modprobe ubi

# modprobe nandsim first_id_byte=0x20 second_id_byte=0xaa third_id_byte=0x00 fourth_id_byte=0x15

# cat /proc/mtd
dev:    size  erasesize  name
mtd0: 10000000 00020000 "NAND simulator partition 0"

# ls -la /dev/mtd*
brw-r--r-- 1 root root 31, 0 2009-12-01 18:50 /dev/mtd0
brw-rw---- 1 root disk 31, 0 2009-12-01 19:06 /dev/mtdblock0

# dd if=rootfs.jffs2 of=/dev/mtdblock0 bs=2048
74688+0 records in
74688+0 records out
152961024 bytes (153 MB) copied, 5.87334 s, 26.0 MB/s

# ubiattach /dev/ubi_ctrl -m 0
UBI device number 0, total 2048 LEBs (264241152 bytes, 252.0 MiB), available 0 LEBs (0 bytes), LEB size 129024 bytes (126.0 KiB)

# ls -la /dev/ubi*
crw-rw---- 1 root root 252,  0 2009-12-01 19:06 /dev/ubi0
crw-rw---- 1 root root 252,  1 2009-12-01 19:06 /dev/ubi0_0
crw-rw---- 1 root root  10, 58 2009-12-01 19:05 /dev/ubi_ctrl
# mount -t ubifs ubi0_0 /mnt/n900/

# ls -la /mnt/n900 | head
total 4
drwxr-xr-x 22 root root 1504 2009-10-30 14:36 .
drwxr-xr-x  9 root root 4096 2009-10-25 20:02 ..
drwxr-xr-x  2 root root 3920 2009-10-30 14:31 bin
drwxr-xr-x  2 root root  232 2009-10-30 14:48 boot
drwxr-xr-x  2 root root  160 2009-10-30 14:28 cdrom
drwxr-xr-x  3 root root 3808 2009-10-30 14:37 dev
drwxr-xr-x  2 root root  160 2009-10-30 14:28 .dev
drwxr-xr-x 72 root root 7488 2009-10-30 14:48 etc
drwxr-xr-x  2 root root  160 2009-10-30 14:28 floppy

#

These instructions are courtesy of x86 from this post http://talk.maemo.org/showthread.php?p=403015

Now you have a maemo rootfs mounted on /mnt/n900. Let's create an image of that node. This website has a very nice explanation of what's happening http://www.debuntu.org/how-to-create...rtition-s-file
We need to execute (change the working dir and the size to one of your liking, bigger than 800mb)
Code:

dd if=/dev/zero of=/path/to/N900root/rootfs.img bs=1M count=1024
mkfs.ext2 /path/to/N900root/rootfs.img
mkdir /tmp/maemoroot
mount -o loop /path/to/N900root/rootfs.img /tmp/maemoroot

Now we can copy all files from the one image to the other
Code:

cp /mnt/n900/* /tmp/maemoroot/
After this command finishes unmount the ext2 image
Code:

umount /tmp/maemoroot
and copy rootfs.img to your N9/50 mass storage (MyDocs)
Now we have to use qole's scripts to get the chroot up and running (http://talk.maemo.org/showthread.php?t=82114)

Download the scripts http://qole.org/files/harmattan/HarmChom.tgz as well as coderus' sudo http://talk.maemo.org/attachment.php...9&d=1332087322 and install sudo.

Code:

AEGIS_FIXED_ORIGIN=com.nokia.maemo dpkg -i sudo_1.6.8p12-4osso28\+0m6_armel.deb
You have to change user password by doing
Code:

passwd user
while root or edit your /etc/sudoers file to look like this

Code:

### Automatically added by update-sudoers start ###
Defaults env_check+="HOME DISPLAY"
Defaults env_keep+="HOME DISPLAY"
Defaults env_reset
user ALL = (ALL) NOPASSWD: ALL
developer ALL = (ALL) ALL
### Automatically added by update-sudoers end ###

Then open the tgz and copy the files in /src/bin except sudo to your device's /bin folder via ssh. Do not copy /etc/ folder, it will mess with your ssh configuration and it is not needed since you just installed sudo. Also do create a /.debian folder in the root of your device.

You should be ready to go, launch a user terminal and
Code:

sudo qchroot MyDocs/rootfs.img /.debian
Now you should be greeted by a maemo 5 busybox
Code:

BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
You can install WordPress and run it
Code:

apt-get update
apt-get install wordpress
run-standalone.sh WordPress


Experiments

You can also install gnumeric and run it, but it misses the menu bar, and it doesn't run with a maemo5 theme. It segfaults if you try to run-standalone it.
If you do
Code:

/etc/rc1.d/K20hildon-desktop start #and maybe something else, I tried various rc files
run-standalone.sh gnumeric

it runs with maemo theme but still without a menu. We also need to get rid of harmattan's bottom toolbar.

I suppose we need a fully running hildon-desktop to see the menu, but we are missing xephyr. One solution is to use xephyr from another chroot running debian.

Another thought that if is true it would allow this project to take off is this:

What do we need to run hildon applications in harmattan? Of course drivers, firmware and other blobs are not needed, neither the stock fremantle applications. Hildon-desktop is open and most of the other libs. So theoretically we could create a stripped fremantle image that could be redistributable. Please anybody who can help with this task speak up.

Thanks to all testers for the corrections

Kabouik 2012-06-20 18:54

Re: Fremantle in a chroot (Run N900 applications on the N9)
 
http://forum-images.hardware.fr/images/perso/wark0.gif

http://forum-images.hardware.fr/imag...so/dr_doak.gif




[Edit]
Quote:

4. Requires open mode, I don't know if inception can be used alternatively
http://forum-images.hardware.fr/imag...joemoomoot.gif

Any way to backup all settings (and apps) from an incepted N9, then reflash it into open mode, and restore everything? :o

HtheB 2012-06-20 19:39

Re: Fremantle in a chroot (Run N900 applications on the N9)
 
Quote:

Originally Posted by Kabouik (Post 1224775)
Any way to backup all settings (and apps) from an incepted N9, then reflash it into open mode, and restore everything? :o

as far as i know, using inception method should be fine.
I'll test it now and show the results.

(ubiattach didn't work on my ubuntu 8.0 :p installing newest ubuntu now)

qwazix 2012-06-20 20:49

Re: Fremantle in a chroot (Run N900 applications on the N9)
 
1 Attachment(s)
Thanks! I played a little bit more with this trying to get hildon-desktop to run in Xephyr without success. I managed though to get applications to run in Xephyr, and I also managed to start most of the Maemo services, so maybe more applications can work now (although mypaint which previously segfaulted now does not find it's python dependencies, which is not a good sign)

I managed to start services using a script from scratchbox modified a little for use on-device, but it stops halfway, with some dbus errors about com.nokia.clockd

I am attaching the script for reference

EDIT: I forgot to document how I ran Xephyr.

I followed qole's instructions to run harmchom (debian chroot) and after chrooting to debian I ran
Code:

Xephyr :2 -br -screen 800x480x16 -fullscreen -dpi 96
This launches an empty Xephyr window. Then on fremantle chroot
Code:

export DISPLAY=:2

misiak 2012-06-20 21:11

Re: Fremantle in a chroot (Run N900 applications on the N9)
 
Quote:

Originally Posted by qwazix (Post 1224857)
I followed qole's instructions to run harmchom (debian chroot) and after chrooting to debian I ran
Code:

Xephyr :2 -br -screen 800x480x16 -fullscreen -dpi 96
This launches an empty Xephyr window. Then on fremantle chroot
Code:

export DISPLAY=:2

Have you tried other parameters' configurations noted in http://wiki.maemo.org/Documentation/...own_the_SDK_UI ?

About your com.nokia.clockd errors, quick search came up with: https://garage.maemo.org/pipermail/e...st/000864.html - although there are com.nokia.clockd related errors, hildon-desktop starts there (as far as i understand). By the way, see how they run it:
Code:

cd "/" && /bin/sh -c "DISPLAY=\"10.10.206.15:2\" af-sb-init.sh start"
- what happens if you run Xephyr on your desktop linux and try to connect from Fremantle chroot to it? I would check it myself, but I don't have neither N950, nor even N9 :(

qwazix 2012-06-20 21:37

Re: Fremantle in a chroot (Run N900 applications on the N9)
 
Doesn't seem to work with other parameters either. When I tried on the desktop, it does the same thing as on the device, but as I could watch the Xephyr window while the system was starting, I realized that hildon-desktop flashed on-screen before dying. The message just before it dies reads as:

Code:

ERROR:PipDate.c:569:pip_date_to_string_format: assertion failed: (pip_date_is_valid((date))
Attempt to remove filter function 0xcca8 user data (nil), but no such filter has been added

Going to check what that error could mean

HtheB 2012-06-20 21:47

Re: Fremantle in a chroot (Run N900 applications on the N9)
 
It asks me for a password when I try to run
sudo qchroot MyDocs/rootfs.img /.debian

rootme isn't working. what is the default password? :p

edit:
using opensh should also work :)

Edit 2:
Couldn't get it to run, output:
Code:

Mounting...
using image file: MyDocs/rootfs.img
fs type is img
Don't know img: Using ext2 file system
Using ext2 file system
/bin/qmount: line 203: modprobe: not found
mounting MyDocs/rootfs.img on loop
Mount failure! MyDocs/rootfs.img failed to mount on loop0 mount: mounting /dev/loop1on /.debian failed: No such file or directory
Cancelling chroot...


qwazix 2012-06-20 22:08

Re: Fremantle in a chroot (Run N900 applications on the N9)
 
Default password is rootme

If you don't want to get the fs warning rename your file to rootfs.img.ext2 and that will go away but anyway it shouldn't be a problem.

The modprobe not found smells like it tries to modprobe as user. Doublecheck that you run qchroot as root or with sudo.

HtheB 2012-06-20 22:11

Re: Fremantle in a chroot (Run N900 applications on the N9)
 
Quote:

Originally Posted by qwazix (Post 1224888)
Default password is rootme

If you don't want to get the fs warning rename your file to rootfs.img.ext2 and that will go away but anyway it shouldn't be a problem.

The modprobe not found smells like it tries to modprobe as user. Doublecheck that you run qchroot as root or with sudo.

rootme isnt working, shows "Sorry, try again."

qwazix 2012-06-20 22:14

Re: Fremantle in a chroot (Run N900 applications on the N9)
 
Sure you haven't changed it? Default password for devel-su is definitely rootme.

HtheB 2012-06-20 22:17

Re: Fremantle in a chroot (Run N900 applications on the N9)
 
Quote:

Originally Posted by qwazix (Post 1224891)
Sure you haven't changed it? Default password for devel-su is definately rootme.

Yes, I never changed it, my device is in Open Mode, so I also have no device password :p

if I go into regular devel-su, the "rootme" password just works fine. but when I try to run sudo with user mode, the same password doesnt work

qwazix 2012-06-20 22:22

Re: Fremantle in a chroot (Run N900 applications on the N9)
 
Ok now I got it. Sudo shouldn't ask for password though. Check that you have the real sudo (coderus' .deb) and not the fake sudo of qole (if you accidentally replaced /bin/sudo from qole's archive that might be a problem)

EDIT: I can confirm the same error when using devel-su instead of sudo. Try reinstalling sudo from the .deb

HtheB 2012-06-20 22:26

Re: Fremantle in a chroot (Run N900 applications on the N9)
 
Quote:

Originally Posted by qwazix (Post 1224895)
Ok now I got it. Sudo shouldn't ask for password though. Check that you have the real sudo (coderus' .deb) and not the fake sudo of qole (if you accidentally replaced /bin/sudo from qole's archive that might be a problem)

EDIT: I can confirm the same error when using devel-su instead of sudo. Try reinstalling sudo from the .deb

I just used the original link that you provided....
Maybe you gave the wrong link?

qwazix 2012-06-20 22:37

Re: Fremantle in a chroot (Run N900 applications on the N9)
 
No there is no other sudo for harmattan around. The link is http://talk.maemo.org/attachment.php...9&d=1332087322

and after installation it never asked for password apparently it did and I mechanically added NOPASSWD to get rid of it

My /etc/sudoers file looks like this
Code:

### Automatically added by update-sudoers start ###
Defaults env_check+="HOME DISPLAY"
Defaults env_keep+="HOME DISPLAY"
Defaults env_reset
user ALL = (ALL) NOPASSWD: ALL
developer ALL = (ALL) ALL
### Automatically added by update-sudoers end ###


HtheB 2012-06-20 22:40

Re: Fremantle in a chroot (Run N900 applications on the N9)
 
Quote:

Originally Posted by qwazix (Post 1224904)
No there is no other sudo for harmattan around. The link is http://talk.maemo.org/attachment.php...9&d=1332087322

and after installation it never asked for password

My /etc/sudoers file looks like this
Code:

### Automatically added by update-sudoers start ###
Defaults env_check+="HOME DISPLAY"
Defaults env_keep+="HOME DISPLAY"
Defaults env_reset
user ALL = (ALL) NOPASSWD: ALL
developer ALL = (ALL) ALL
### Automatically added by update-sudoers end ###


Hmmm, that's strange, mine looks like this:

Code:

### Automatically added by update-sudoers start ###
Defaults env_check+="HOME DISPLAY"
Defaults env_keep+="HOME DISPLAY"
Defaults env_reset
user ALL = (ALL) ALL
developer ALL = (ALL) ALL
### Automatically added by update-sudoers end ###

Let me try editing that file

Edit:
yes, editing that file did the job!
Although now I've got the same problem like before:
Code:

~ $ sudo qchroot MyDocs/rootfs.img /.debian
Mounting...
using image file: MyDocs/rootfs.img
fs type is img
Don't know img: Using ext2 file system
Using ext2 file system
FATAL: Error inserting ext2 (/lib/modules/2.6.32.48-dfl61-20115101/ext2.ko): Device or resource busy
mounting MyDocs/rootfs.img on loop
Mount failure! MyDocs/rootfs.img failed to mount on loop0 mount: mounting /dev/loop1on /.debian failed: No such file or directory
Cancelling chroot...


qwazix 2012-06-20 22:45

Re: Fremantle in a chroot (Run N900 applications on the N9)
 
That NOPASSWD: should get rid of the password prompt.

I remember now adding a NOPASSWD somewhere but I did a gazillion changes in various conf files since yesterday (at work we just set up a new ubuntu LAMP server) and couldn't pinpoint it. Must be this one. Check it out and i'll add it to the tutorial.

qwazix 2012-06-20 22:47

Re: Fremantle in a chroot (Run N900 applications on the N9)
 
This one seems like something a reboot will solve

HtheB 2012-06-20 22:53

Re: Fremantle in a chroot (Run N900 applications on the N9)
 
Quote:

Originally Posted by qwazix (Post 1224913)
This one seems like something a reboot will solve

No it didn't still the same output... :(
Edit:
I created a directory .debian on the root.
Do I have to symlink to somewhere?

if so, how and where to?

qwazix 2012-06-20 22:57

Re: Fremantle in a chroot (Run N900 applications on the N9)
 
No there is no need to symlink anything, the script just mounts the image to that directory. Try
Code:

sudo modprobe ext2
does it produce the same error? mine exits successfully (no output)

This is my qchroot output
Code:

~ $ sudo qchroot MyDocs/m5root.img /.fremantle/
..stripping trailing slash...
Mounting...
using image file: MyDocs/m5root.img
fs type is img
Don't know img: Using ext2 file system
Using ext2 file system
mounting MyDocs/m5root.img on loop
...MyDocs/m5root.img mounted on loop0
.
..
...
....
/bin/qchroot: line 148: blkid: not found
/bin/qchroot: line 159: blkid: not found
Everything set up, running chroot...


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

[root@chroot: /]


HtheB 2012-06-20 23:00

Re: Fremantle in a chroot (Run N900 applications on the N9)
 
Quote:

Originally Posted by qwazix (Post 1224923)
No there is no need to symlink anything, the script just mounts the image to that directory. Try
Code:

sudo modprobe ext2
does it produce the same error? mine exits successfully (no output)

Same error indeed.

But since I've created the .debian directory in the root, this is the output:
Code:

~ $ sudo qchroot MyDocs/rootfs.img /.debian
Mounting...
using image file: MyDocs/rootfs.img
fs type is img
Don't know img: Using ext2 file system
Using ext2 file system
FATAL: Error inserting ext2 (/lib/modules/2.6.32.48-dfl61-20115101/ext2.ko): Device or resource busy
mounting MyDocs/rootfs.img on loop
...MyDocs/rootfs.img mounted on loop0
.
..
...
....
mount: mounting /home/user on /.debian/home/user failed: No such file or directory
mount: mounting /home/user/MyDocs on /.debian/home/user/MyDocs failed: No such file or directory
mount: mounting /var/run/pulse on /.debian/var/run/pulse failed: No such file or directory
/bin/qchroot: line 145: blkid: not found
/bin/qchroot: line 156: blkid: not found
Everything set up, running chroot...


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

[root@chroot: /]


qwazix 2012-06-20 23:02

Re: Fremantle in a chroot (Run N900 applications on the N9)
 
It's passed 2AM here, I've got to go. Goodnight and good luck for now, I'll check back the thread tomorrow.

EDIT: It seems you are in, albeit with some errors... try installing something in the chroot (nano?)

HtheB 2012-06-20 23:08

Re: Fremantle in a chroot (Run N900 applications on the N9)
 
Quote:

Originally Posted by qwazix (Post 1224926)
It's passed 2AM here, I've got to go. Goodnight and good luck for now, I'll check back the thread tomorrow.

EDIT: It seems you are in, albeit with some errors... try installing something in the chroot (nano?)

Good night :)

Just 1 last question just before you leave: Did you set up the maemo repos? Because mine doesnt pick WordPress :p

qwazix 2012-06-20 23:12

Re: Fremantle in a chroot (Run N900 applications on the N9)
 
No, extras should be enabled by default in PR1.3 I just ran

apt-get update
apt-get install wordpress

(all lowercase for apt-get, CamelCase for running the binary -- WordPress)

HtheB 2012-06-20 23:16

Re: Fremantle in a chroot (Run N900 applications on the N9)
 
Quote:

Originally Posted by qwazix (Post 1224931)
No, extras should be enabled by default in PR1.3 I just ran

apt-get update
apt-get install wordpress

(all lowercase for apt-get, CamelCase for running the binary -- WordPress)

ofcourse, the repos should be updated first :o
Seems like it's getting late here aswell (-1hour from your side)

how ever, nano (maemo5) works! :)

misiak 2012-06-20 23:23

Re: Fremantle in a chroot (Run N900 applications on the N9)
 
Quote:

Originally Posted by qwazix (Post 1224875)
Doesn't seem to work with other parameters either. When I tried on the desktop, it does the same thing as on the device, but as I could watch the Xephyr window while the system was starting, I realized that hildon-desktop flashed on-screen before dying. The message just before it dies reads as:

Code:

ERROR:PipDate.c:569:pip_date_to_string_format: assertion failed: (pip_date_is_valid((date))
Attempt to remove filter function 0xcca8 user data (nil), but no such filter has been added

Going to check what that error could mean

Google returns only this thread on tmo in the results for "pip_date_to_string_format" and "pip_date_is_valid"... But it looks like someting relaed with date. Maybe it's also related with clockd errors? Have you tried copying:
- /usr/bin/clockd
- /etc/init.d/clockd
- /etc/clockd/*
- /etc/osso-af-init/*
from N900 to N9 and seeing what could happen? :P please note that /etc/init.d/clockd may need some tuning - it uses dsmetool which in Fremntle is present as /usr/sbin/dsmetool, afaik it is also present in Harmattan, but I don't know whether path is the same. I found some info about how to read clockd values from dbus: http://www.developer.nokia.com/Commu...ANGED-using-Qt and possible cause for clockd errors: https://bugs.maemo.org/show_bug.cgi?id=4573 I hope it can help you somehow.

edit: for reading clockd messages from dbus, in case you want to know exact message service/path/interface, here is official documentation: http://maemo.org/api_refs/5.0/5.0-fi...ibtime_8h.html

edit 2: if it still complains about date format... what if you try to remove clock and clock applet before running desktop? ;)

www.rzr.online.fr 2012-06-21 07:19

Re: Fremantle in a chroot (Run N900 applications on the N9)
 
is there a way to create a rootfs from nokia's firmwares ?

qwazix 2012-06-21 07:53

Re: Fremantle in a chroot (Run N900 applications on the N9)
 
@RzrSee post #14

@Misiak thanks for the tips. I'll give it a try probably this evening.


All times are GMT. The time now is 20:13.

vBulletin® Version 3.8.8