maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Alternatives (https://talk.maemo.org/forumdisplay.php?f=36)
-   -   Palm WebOS on N900 (https://talk.maemo.org/showthread.php?t=44150)

N900L 2011-08-28 18:17

Re: Palm WebOS on N900
 
plz javispedro post a tutorial for noobs on how to install webos os on n900
or make an emulator for webos apps
and games that arent working with preenv
it could make life mcuh easier

asim786 2011-08-29 02:15

Re: Palm WebOS on N900
 
Quote:

Originally Posted by N900L (Post 1078105)
plz javispedro post a tutorial for noobs on how to install webos os on n900
or make an emulator for webos apps
and games that arent working with preenv
it could make life mcuh easier

There are 38 games that use preenv that work on the N900, not a bad amount tbh

N900L 2011-08-29 02:40

Re: Palm WebOS on N900
 
80 + games are running on the n900
amd if webos apps could run itll be much better

N900L 2011-08-29 02:41

Re: Palm WebOS on N900
 
80+ games are currently working
and if webos apps could run on the n900 itll be even better

it needs an emulator like preenv.

i dont understand this but from that what ive heard.
all webos apps or most of them run via browser.( the browser shows the application or opens it)
thats why its called webos?
am i right?

HellFlyer 2011-08-29 04:36

Re: Palm WebOS on N900
 
Quote:

Originally Posted by N900L (Post 1078237)
80+ games are currently working
and if webos apps could run on the n900 itll be even better

it needs an emulator like preenv.

i dont understand this but from that what ive heard.
all webos apps or most of them run via browser.( the browser shows the application or opens it)
thats why its called webos?
am i right?

Lol that was the dumbest thing I've ever heard about OS :D

So Google called their OS Android because tiny robots work inside the system and they can mimic humans? :D

Its just a silly name which replaced PalmOS. WebOS is based on Linux kernel and runs apps just like any other OS

N900L 2011-08-29 04:38

Re: Palm WebOS on N900
 
Does it mean the web browser doesnt open the apps in webos?

HellFlyer 2011-08-29 04:41

Re: Palm WebOS on N900
 
Quote:

Originally Posted by N900L (Post 1078252)
Does it mean the web browser doesnt open the apps in webos?

Yup :) In fact if WebOS was popular I'm pretty sure most apps from N900 would run on it.


If only Nokia bought Palm , it would have been so much better

Boemien 2011-08-29 09:30

Re: Palm WebOS on N900
 
so to be back to the subject, we really need an easy step by step tutorial for noobs like me!!!

likeavinash 2011-09-04 05:21

Re: Palm WebOS on N900
 
i want ios on n900 !
is it possible?

trisha02 2011-09-04 05:57

Re: Palm WebOS on N900
 
plzzz make an emulator that could run webos games that are not working with preenv like BIA 2 and modern combat

nicolai 2011-12-10 15:53

Re: Palm WebOS on N900
 
Quote:

Originally Posted by javispedro (Post 1073806)
All of the stuff I developed to run it has been available since long ago in my Gitorious repo, at https://gitorious.org/preenv/libx11fb. Nobody asked what was that for ;)

You will need to build this library, make a ext3 partition, put 1.4.5 on it, put a copy of libx11fb.so in / inside that partition; outside the chroot, run x11fbd -w 320 -h 480, inside the chroot, run the following script:
Code:

export LD_PRELOAD=/libx11fb.so

rm -f /var/run/dbus/pid
dbus-daemon --system --fork
dbus-daemon --session --fork

sleep 1

hidd &
java-serviceboot start &
luna-prefs-service &
BrowserServer &
PmNetConfigManager &
nappmgr &
fileindexer &
extractfs -f /var/luna/data/extractfs &

sleep 3

LunaSysService &
LunaSysMgr &

Boot takes around 80 seconds.



Note that I did this in virtually four days and nearly a year ago. I did it because after that webos on HTC fake news story from XDADevs I wanted to have something to be able to laugh in their faces, but after demoing it on Dublin Meego summit and running it for a while I mostly forgot about the entire thing (and actually never did the laugh in their faces part :P ;) ).

Maybe on the N950 with MT and faster graphics it has more sense.

Hi javispedro,
can you make a more detail description on how to do the
chroot.
I get many errors on starting the webos processes
(like "can not bind to socket")
And are all files within the webos doctor file?
The /var/luna/data/extractfs for example does not exists
in my webos.tar
nicolai

ivgalvez 2011-12-10 15:57

Re: Palm WebOS on N900
 
Glad to see someone more trying to get it up and running.

mariosx 2011-12-10 16:40

Re: Palm WebOS on N900
 
Maybe now with webOS going open source, we will have interesting staff for porting webOS to n900 ?

hadjistyllis 2011-12-10 17:33

Re: Palm WebOS on N900
 
Maybe source staff will help preenv to get improve!!! (MAYBE)

speculatrix 2011-12-12 11:18

Re: Palm WebOS on N900
 
I too am very interested to see what useful goodies can be picked out of WebOS.

vakkov 2012-01-14 10:32

Re: Palm WebOS on N900
 
I successfully built the library and I am trying to make a chroot similar to the easy debian one

Boemien 2012-01-14 11:43

Re: Palm WebOS on N900
 
Quote:

Originally Posted by vakkov (Post 1150458)
I successfully built the library and I am trying to make a chroot similar to the easy debian one

Thanks! Make us updated about the progress.

vakkov 2012-01-14 20:11

Re: Palm WebOS on N900
 
http://www.4shared.com/zip/DlGwE9Gh/...-libx11fb.html

here are the git sources and the files from their compilation - dont have time to continue now - if there are any people willing to try them ...

Boemien 2012-01-14 21:50

Re: Palm WebOS on N900
 
Quote:

Originally Posted by vakkov (Post 1150623)
http://www.4shared.com/zip/DlGwE9Gh/...-libx11fb.html

here are the git sources and the files from their compilation - dont have time to continue now - if there are any people willing to try them ...

I have no clue regarding compilation.... :o

vakkov 2012-01-18 21:31

Re: Palm WebOS on N900
 
i copied x11fbd to /home and chmod 755 it. But when I try to execute it it gives syntax error at line 1 - "(" unexpected. The same executable runs fine in ubuntu.

EDIT: Maybe it's not compiled for Arm but for x86 ...

gregoranderson 2012-01-20 16:38

Re: Palm WebOS on N900
 
Quote:

Originally Posted by vakkov (Post 1152516)
i copied x11fbd to /home and chmod 755 it. But when I try to execute it it gives syntax error at line 1 - "(" unexpected. The same executable runs fine in ubuntu.

EDIT: Maybe it's not compiled for Arm but for x86 ...

Looks like it.

Code:

gregor@gregor:~/Downloads/preenv-libx11fb$ file x11fbd
x11fbd: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, not stripped
gregor@gregor:~/Downloads/preenv-libx11fb$


vakkov 2012-01-20 18:24

Re: Palm WebOS on N900
 
mine is the same and runs ok on ubuntu but does not on n900

marmistrz 2012-01-20 19:15

Re: Palm WebOS on N900
 
Suggestion: would it be possible to port App Catalog to preenv?

speculatrix 2012-01-20 23:14

Re: Palm WebOS on N900
 
it could be that /bin/sh is dash or ash and not true sh?

marmistrz 2012-02-01 15:30

Re: Palm WebOS on N900
 
Does anybody know a way to run hybrid apps (type = "web", the ones with index.html) via preenv?
If we managed to run hybrid apps, we'd be able to port app catalog and then lots of apps

cddiede 2012-02-01 15:39

Re: Palm WebOS on N900
 
Quote:

Originally Posted by marmistrz (Post 1158988)
Does anybody know a way to run hybrid apps (type = "web", the ones with index.html) via preenv?
If we managed to run hybrid apps, we'd be able to port app catalog and then lots of apps

You can't. preenv just adds libraries and environment variables so the N900 can run binaries written for WebOS under their Native Development Kit (NDK).

This only works because the WebOS devices and the N900 share almost identical hardware and both use a POSIX compliant file system for binary execution.

In short: dumb luck.

What you call "Hybrid apps", are actually WebOS Mojo apps written under the WebOS Software Development Kit (SDK). Apps written under this are heavily dependant on WebOS only libraries and operating system structure that can not be replicated from within Maemo5.

So far, it seems that the newer Enyo built WebOS apps, seen on the HP Touchpad and Pre3, are built fundamentally similar to the older Mojo apps and are therefore also impracticable for running under Maemo5.

marmistrz 2012-02-01 15:47

Re: Palm WebOS on N900
 
Hmmmm... There are images of webos. I could try copying, symlinking etc.

But I don't know what will be needed.
I tried all the stuff in /usr/palm (/usr/palm -> /home/user/palm/usr/palm)
and /usr/lib/luna (/usr/lib/luna -> /home/user/palm/usr/lib/luna)

But microb still doesn't manage to run this.
What more should I copy?

don_falcone 2012-02-01 15:49

Re: Palm WebOS on N900
 
WebOS devices = all those Palm Pre's. Not the TouchPad.

marmistrz 2012-02-01 16:00

Re: Palm WebOS on N900
 
Yeaaah... There are so-called webos doctor images:
http://www.webos-internals.org/wiki/...octor_Versions
http://palm.cdnetworks.net/rom/veer/...p160unaatt.jar

I tried to copy the files from Pre Sprint version 1.4.5

cddiede 2012-02-01 16:03

Re: Palm WebOS on N900
 
Quote:

Originally Posted by marmistrz (Post 1158996)
Hmmmm... There are images of webos. I could try copying, symlinking etc.

But I don't know what will be needed.
I tried all the stuff in /usr/palm (/usr/palm -> /home/user/palm/usr/palm)
and /usr/lib/luna (/usr/lib/luna -> /home/user/palm/usr/lib/luna)

But microb still doesn't manage to run this.
What more should I copy?

If I may use a vernacular, I believe you to be urinating uphill using this approach.

Seriously, you'd have to copy 90% of the operating system libraries and binaries as well as manually re-created the WebOS user execution environment and daemons before you could start to run Mojo web apps like this.

Before you start thinking that this is acceptable, remember that you would be overwriting most of your Maemo 5 installation and killing most of your Maemo daemons in the process.

marmistrz 2012-02-01 16:18

Re: Palm WebOS on N900
 
Hmmm..... I can just add this what isn't in maemo yet...
I can play a bit ;)

And if I mess something up, I can always reflash

Are there some essential libs that Mojo apps won't run without for sure?
How are run the hybrid apps in WebOS? What's the procedure?

cddiede 2012-02-01 16:57

Re: Palm WebOS on N900
 
Quote:

Originally Posted by marmistrz (Post 1159012)
Hmmm..... I can just add this what isn't in maemo yet...
I can play a bit ;)

And if I mess something up, I can always reflash

Are there some essential libs that Mojo apps won't run without for sure?
How are run the hybrid apps in WebOS? What's the procedure?

Really good questions. Maybe a good place to ask would be over at the WebOS internals forums?

marmistrz 2012-02-01 18:48

Re: Palm WebOS on N900
 
Alright, I'll ask there 2moro

ivgalvez 2012-02-01 19:38

Re: Palm WebOS on N900
 
marmistrz, why don't you try to replicate Javispedro approach by chrooting the WebOS image?

marmistrz 2012-02-02 16:27

Re: Palm WebOS on N900
 
I'll try it...
But I'll try finding a direct-preenv way - just not to wait these 80 secs :)

EDIT: http://forums.webosnation.com/webos-...brid-apps.html. Posted here, but up to now, no reply. If somebody knows the answer, I encourage to post it :) UPDATE: finally an answer on this forum

EDIT2: Maybe there would be some way to run the webos emulator verbosely?

don_falcone 2012-02-07 15:42

Re: Palm WebOS on N900
 
Wasn't that you who found the source code to Symbian too?

marmistrz 2012-02-07 16:04

Re: Palm WebOS on N900
 
Nope. I was trying to do something but I didn't manage to do it.

Getting back 2 the topic:
I installed Palm SDK. The App Catalog wasn't there, but I was able to find its ipk. Here's what the App Catalog logs:
Code:

following logs for application com.palm.app.findapps on device "emulator" {b84a5eb698c46a694a59d5aa68c4b53324159ef2} tcp 39584
[20120207-16:57:09.284351] info: =========> Calling palmInitFramework506, /usr/palm/frameworks/mojo/mojo.js:142
[20120207-16:57:10.452409] error: Uncaught ReferenceError: AppLists is not defined, allscriptscompressed.js:1
[20120207-16:57:12.003958] error: Weave.Utilities.AppCategoriesHelper._fetchCategoriesFromServer failed!
[20120207-16:57:12.004168] error: Errors.displayError errorCode failure, args undefined, defaultError undefined, defaultMessage undefined
[20120207-16:57:12.004237] error: Errors._displayErrorPage failure
[20120207-16:57:12.137263] error: **** error in obtaining token {"errorText": "Token could not be fetched", "errorCode": "NO_TOKEN", "exception": "[object Object]", "returnValue": false}
[20120207-16:57:12.137485] error: **** error in obtaining token {"errorText": "Token could not be fetched", "errorCode": "NO_TOKEN", "exception": "[object Object]", "returnValue": false}
[20120207-16:57:12.847705] error: ERROR failure
[20120207-16:57:12.862760] error: An exception occurred in the 'error' scene's setup() method.
[20120207-16:57:12.863157] error: Error: Cannot read property 'style' of null, line undefined, file undefined
[20120207-16:57:13.011937] error: Uncaught TypeError: Cannot read property 'mcc' of undefined, allscriptscompressed.js:1
[20120207-16:57:13.023971] error: Errors.displayError errorCode failure, args undefined, defaultError undefined, defaultMessage undefined
[20120207-16:57:13.025815] error: Errors._displayErrorPage failure
[20120207-16:57:13.039693] error: ERROR failure
[20120207-16:57:13.053063] error: An exception occurred in the 'error' scene's setup() method.
[20120207-16:57:13.053779] error: Error: Cannot read property 'style' of null, line undefined, file undefined

what's that token?
more important: can we provide the token other way?

we can ssh to the emulator and this way copy the files. So the only problem is the app catalog not running

don_falcone 2012-02-08 07:50

Re: Palm WebOS on N900
 
Quote:

Originally Posted by marmistrz (Post 1159521)
EDIT: http://forums.webosnation.com/webos-...brid-apps.html. Posted here, but up to now, no reply. If somebody knows the answer, I encourage to post it :) UPDATE: finally an answer on this forum

Good luck with those.

marmistrz 2012-02-11 10:25

Re: Palm WebOS on N900
 
Hmmm... Does anybody know how would I launch a mojo app from command line on Palm (pure command line, such as in N900)?

Update: I modified a bit the index.html, here's what firefox tells
Code:

[11:46:25.601] file:///media/DANE/proj/palm/gen2/usr/palm/applications/com.palm.app.findapps/index.html
[11:46:25.649] file:///media/DANE/proj/palm/gen2/usr/palm/frameworks/mojo/mojo.js
[11:46:25.666] file:///media/DANE/proj/palm/gen2/usr/lib/luna/luna-network/stylesheets/system-notification.css
[11:46:25.670] file:///media/DANE/proj/palm/gen2/usr/palm/applications/com.palm.app.findapps/stylesheets/appcatalog.css
[11:46:25.687] Error in parsing value for 'background'.  Declaration dropped. @ file:///media/DANE/proj/palm/gen2/usr/palm/applications/com.palm.app.findapps/stylesheets/appcatalog.css:76
[11:46:25.694] Error in parsing value for 'min-height'.  Declaration dropped. @ file:///media/DANE/proj/palm/gen2/usr/palm/applications/com.palm.app.findapps/stylesheets/appcatalog.css:346
[11:46:25.698] Error in parsing value for 'background-position'.  Declaration dropped. @ file:///media/DANE/proj/palm/gen2/usr/palm/applications/com.palm.app.findapps/stylesheets/appcatalog.css:459
[11:46:25.705] Unknown property 'box-sizing'.  Declaration dropped. @ file:///media/DANE/proj/palm/gen2/usr/palm/applications/com.palm.app.findapps/stylesheets/appcatalog.css:1214

The content of index.html is:
Code:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

<head>
        <!-- Timing
        <script type="text/javascript">
                var timer = new Date();
                var total = new Date();
        </script>
        -->
       
        <meta name="viewport" content="height=device-height">
        <script src="../../frameworks/mojo/mojo.js" x-mojo-version="1" xx-mojo-submission='trunk' type="text/javascript"></script>
        <!-- Some library code clones this out of here into the dashboard window ... sigh -->
        <link href="../../../lib/luna/luna-network/stylesheets/system-notification.css" rel="stylesheet" type="text/css" />
        <link href="stylesheets/appcatalog.css" rel="stylesheet" type="text/css" />
       
        <!-- Timing
        <script type="text/javascript">
                var curr = new Date();
                console.log("@@@@@@@@@@@@@@@@@@@ FW load diff: " + (curr.getTime() - timer.getTime()));
                console.log("@@@@@@@@@@@@@@@@@@@ FW load total: " + (curr.getTime() - total.getTime()));
                timer = new Date();
        </script>
        -->
</head>

<body>
</body>

</html>


marmistrz 2012-02-11 15:36

Re: Palm WebOS on N900
 
1 Attachment(s)
Here are the "fixed" appcatalog.css and index.html.
"fixed" means that firefox doesn't throw errors but this has one downside: the app catalog doesn't seem to launch.

Does anybody know where the problem lies?

App Catalog extracted from ipk (/usr/palm/ipkgs/) from webos doctor 2.2.4 http://palm.cdnetworks.net/rom/manta...224mantawr.jar


All times are GMT. The time now is 04:56.

vBulletin® Version 3.8.8