![]() |
Re: Fremantle in a chroot (Run N900 applications on the N9)
|
Re: Fremantle in a chroot (Run N900 applications on the N9)
NICE work :) How To + DL links please :D
|
Re: Fremantle in a chroot (Run N900 applications on the N9)
No tutorial yet?
(cant wait to test some maemo5 apps :) ) |
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 Code:
./flasher-3.5 -u -F RX-51_2009SE_20.2010.36-2_PR_COMBINED_MR0_ARM.bin 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 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 Code:
cp /mnt/n900/* /tmp/maemoroot/ Code:
umount /tmp/maemoroot 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 Code:
passwd user Code:
### Automatically added by update-sudoers start ### You should be ready to go, launch a user terminal and Code:
sudo qchroot MyDocs/rootfs.img /.debian Code:
BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash) Code:
apt-get update 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 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 |
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:
Any way to backup all settings (and apps) from an incepted N9, then reflash it into open mode, and restore everything? :o |
Re: Fremantle in a chroot (Run N900 applications on the N9)
Quote:
I'll test it now and show the results. (ubiattach didn't work on my ubuntu 8.0 :p installing newest ubuntu now) |
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 Code:
export DISPLAY=:2 |
Re: Fremantle in a chroot (Run N900 applications on the N9)
Quote:
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" |
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)) |
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... |
All times are GMT. The time now is 20:13. |
vBulletin® Version 3.8.8