webOS Nation Forums >  webOS Developers >  webOS Development > OK ROM comes
OK ROM comes
  Closed Thread
 
Thread Tools Display Modes
Old 06/10/2009, 03:37 AM   #301 (permalink)
Member
 
Posts: 34
oh damn... this comment is too good not to post:

// On the offchance that the user hits the 'minimize'
// before we finished capture ... slimy ******* users.

Mr. Rik Sagar has a potty mouth...
scm6079 is offline  
Thanked by -wireless-, fourply
Old 06/10/2009, 03:39 AM   #302 (permalink)
Member
 
Posts: 264
Glarg!!! I so wanna get into this thing, but do not have a Mac (or a Hackintosh!)...
rposa is offline  
Old 06/10/2009, 03:49 AM   #303 (permalink)
Member
 
Posts: 1
Quote:
Originally Posted by SippieCup View Post
it seems that this is based off debian code too... just an fyi.. people probably already know this.
Actually not because of /etc/busybox =)
fajm is offline  
Old 06/10/2009, 03:49 AM   #304 (permalink)
Member
 
Posts: 354
Is anyone familiar with ipkg? I wonder where it pulls the locations from. If it was like apt on debian and we could just edit a sources file and add a custom sources that would be awesome for installing custom software and additional user-made packages without using the app catalog.

People who have done Zaurus hacking would probably be pretty familiar with a lot of this.

Oh and check out the contents of /var/usr/palm/applications/net.likeme/doc/command-history-likeme-mobile-match-staging.txt

Good thing they password protected their svn repository cause the URL and username are in that file. Probably should have deleted that before making the package.
joshewah is offline  
Old 06/10/2009, 03:50 AM   #305 (permalink)
Member
 
Posts: 44
Quote:
Originally Posted by rposa View Post
Glarg!!! I so wanna get into this thing, but do not have a Mac (or a Hackintosh!)...
Why don't you extract the jar/tar and look around?
ydaraishy is offline  
Old 06/10/2009, 03:57 AM   #306 (permalink)
Member
 
Posts: 264
Quote:
Originally Posted by ydaraishy View Post
Why don't you extract the jar/tar and look around?
I have and am looking around at it .. I wanna make some CHANGES, work on an idea I have for an app

Can't do that in the static image...
rposa is offline  
Old 06/10/2009, 03:57 AM   #307 (permalink)
Member
 
Posts: 354
shortcovers is using some kind of obfuscation script:
ObfuscateJS Javascript Obfuscator 0.3.6
Latest updates on: ObfuscateJS - A Free Javascript Obfuscator

I bet more devs will start doing that, or use online services that require a login to access data so they have more control.
joshewah is offline  
Old 06/10/2009, 03:59 AM   #308 (permalink)
Member
 
Posts: 6
Here is a bit of lol worthy reading.
Also if you want more less vulgar reading, do a search on the FIXME's instead of the TODO's. Lots of the FIXME's end up being HACK's haha.
Code:
/**
 * @private
 * Describe Graphwalker
 *
 * Treats an object as a 'graph' and breaks down its properties into nodes.
 *
 * Implemented using a bastardized Euler-tour-style tree traversal. Every node is 'entered'
 * and 'exited' once with the left value corresponding to entering, and right value to exiting.
 * A node is entered before and exited after its children have entered/exited. This allows
 * the graph structure to be stored in a flattened form.
 *
 * Supports self-loops/backpointers, and cycles by replacing them with a dud reference node
 * using the original's left reference number.
 *
 * Yay for seemingly useless academic algorithms.
 *
 */
Code:
// Deduce the correct document from the element's owner.  this is needed for 
	// lightweight stage bull**** in Mojo
Code:
\// Extra functions for renderMode = x...  Can't put these in the obecjt to extend, it ****s up when one clals "Obejct.extned"
Cheers

Last edited by -wireless-; 06/10/2009 at 04:13 AM. Reason: more lols
-wireless- is offline  
Old 06/10/2009, 04:00 AM   #309 (permalink)
Member
 
Posts: 354
I wonder if modifying any of these would change the volume of the speaker:
Code:
root@castle:/var/gadget# cat /etc/audio/phone_back_speaker.txt
# Modified: 090225 by Ron Horowitz
# Revised volume steps
# modified: 090206 by Ron Horowitz
# comments: Tx gain changes for QC EEC
begin phone_back_speaker
# enable RXR2, VRX, TXL2
# Changeed VRXPGA, RXR1
    setreg 0x02 0x94
    setreg 0x04 0x01
    setreg 0x05 0x11
    setreg 0x06 0x00
    setreg 0x07 0x08
    setreg 0x08 0x00
# mix VRX with RXR2
    setreg 0x09 0x20
# TXL2=0dB
    setreg 0x0c 0x00
    setreg 0x0e 0x01
    setreg 0x0f 0x61
# RXR1=0dB
    setreg 0x12 0x3F
# VRXPGA=+6dB
    setreg 0x14 0x2b
    setreg 0x15 0x00
# VRX2ARXPGA=0dB
    setreg 0x16 0x19
    setreg 0x17 0x04
# RXR1=+12dB
    setreg 0x1c 0x03
    setreg 0x1e 0x00
    setreg 0x21 0x00
    setreg 0x25 0x00
    setreg 0x26 0x00
    setreg 0x2a 0x20
    setreg 0x2a 0x30
# h-bridge input = RXR2
    setreg 0x2a 0x3e
    setreg 0x3f 0x00
# mix SDRR2 and SDRL2 into R2
    setreg 0x43 0x10
# ANAMIC_GAIN=+6dB
    setreg 0x48 0x01
end
begin phone_back_speaker_mute
    setreg 0x05 0x00
end
begin phone_back_speaker_unmute
    setreg 0x05 0x11
end
begin phone_back_speaker_volume_0
# FS-22dB
    setreg 0x14 0x15
end
begin phone_back_speaker_volume_1
# FS-20dB
    setreg 0x14 0x17
end
begin phone_back_speaker_volume_2
# FS-18dB
    setreg 0x14 0x19
end
begin phone_back_speaker_volume_3
# FS-16dB
    setreg 0x14 0x1b
end
begin phone_back_speaker_volume_4
# FS-14dB
    setreg 0x14 0x1d
end
begin phone_back_speaker_volume_5
# FS-12dB
    setreg 0x14 0x1f
end
begin phone_back_speaker_volume_6
# FS-9dB
    setreg 0x14 0x22
end
begin phone_back_speaker_volume_7
# FS -6dB
    setreg 0x14 0x25
end
begin phone_back_speaker_volume_8
# FS -3dB
    setreg 0x14 0x28
end
begin phone_back_speaker_volume_9
# 0dB (full scale, or "FS")
    setreg 0x14 0x2b
end
joshewah is offline  
Old 06/10/2009, 04:02 AM   #310 (permalink)
Member
 
Posts: 56
not to trump the previous wiki created, but I ended up creating a dedicated wiki site for WebOS if anyone is interested. I'll do my best to keep it updated. If anyone is interested in helping admin, and moderate I'd be happy to get the help. site is at http://www.WebOSwiki.com but .net, .org and .info all work.
Exstatica is offline  
Old 06/10/2009, 04:06 AM   #311 (permalink)
Banned
 
Posts: 753
Quote:
Originally Posted by joshewah View Post
shortcovers is using some kind of obfuscation script:
ObfuscateJS Javascript Obfuscator 0.3.6
Latest updates on: ObfuscateJS - A Free Javascript Obfuscator

I bet more devs will start doing that, or use online services that require a login to access data so they have more control.
I can certainly see app developers for the Catalog doing that.
dignitary is offline  
Old 06/10/2009, 04:20 AM   #312 (permalink)
Member
 
Posts: 34
Well - I need to get to sleep so I can wake up and code at my real job in the morning. Wait ... it is morning. Oh, well. I did find some more on the camera flash for those interested. There is a daemon for the camera named camd that runs when the camera application is started. It is linked to the hardware via the linux i2c subsystems. The device can be queried for the current status as so:

root@castle:/sys/class/i2c-adapter/i2c-2/2-0033# cat torch_current
0mA* 50mA 75mA 100mA 150mA 200mA 250/400mA 250/500mA

root@castle:/sys/class/i2c-adapter/i2c-2/2-0033# cat flash_current
150mA 200mA 300mA 400mA 500mA* 700mA 900mA 1200mA

There is a "file" called mode that recognizes the command "shutdown" - and power is terminated by echoing a 0 into the avin file.

root@castle:/sys/class/i2c-adapter/i2c-2/2-0033# echo -n shutdown > mode

Anyways... always fun... I can't wait to see what else gets done by a programmer defined "morning."

_Scott
scm6079 is offline  
Thanked By: fourply
Old 06/10/2009, 04:47 AM   #313 (permalink)
Member
 
Posts: 43
Some info on the Java Virtual Machine that is being used on the Pre.

It's Apache Harmony they are using. See harmony.apache.org. It supports version 1.5 of Java SE.

The virtual machine is being called OasisVM by Palm: "usage: OasisVM [options] [classfile [args]]"

Can anyone run the foolowing command to get some more version info:

Code:
java -version
or

Code:
/usr/lib/jvm/java-1.5-palm/bin/java -version
schraal is offline  
Old 06/10/2009, 04:53 AM   #314 (permalink)
Member
 
Posts: 43
So a third WebOS device is coming? Saw the name zepfloyd coming by already, but found it in a different file (diskmode.sh), together with the castle (pre) and pixie (eos):

Code:
#!/bin/sh

# castle
SYSDIR=/sys/devices/platform/musb_hdrc.0/gadget/gadget-lun0
if [ ! -d $SYSDIR ]; then
    SYSDIR=/sys/devices/platform/msm_hsusb/gadget/gadget-lun0
    # pixie
    if [ ! -d $SYSDIR ]; then
        # zepfloyd
	    SYSDIR=/sys/devices/platform/omap_udc/gadget/gadget-lun0
	    if [ ! -d $SYSDIR ]; then
		    echo "Error: gadget-lun0 directory not found"
            exit 1
	    fi
    fi
fi

...snipped...
schraal is offline  
Old 06/10/2009, 05:15 AM   #315 (permalink)
Member
 
Posts: 6
Quote:
Originally Posted by schraal View Post
So a third WebOS device is coming? Saw the name zepfloyd coming by already, but found it in a different file (diskmode.sh), together with the castle (pre) and pixie (eos):
Aha, so that is what jeffgus found earlier in the novacomd, a new device

Quote:
Originally Posted by jeffgus View Post
Found this in the novacomd:

Code:
zepfloyd-bootie
zepfloyd-linux
Cheers
-wireless- is offline  
Thanked By: mer1
Old 06/10/2009, 05:25 AM   #316 (permalink)
Member
 
Posts: 43
Quote:
Originally Posted by -wireless- View Post
Aha, so that is what jeffgus found earlier in the novacomd, a new device
Yep and it's going to have WIFI. A grep for zepfloyd gave me 3 hits:

Code:
passthrud
diskmode.sh
wifidriver
When opening wifidriver, you'll see the castle and the zepfloyd named in the first couple of lines. The pixie is not there, but we already knew it would not have WIFI... It all fits perfectly. :-)
schraal is offline  
Thanked By: mer1
Old 06/10/2009, 05:32 AM   #317 (permalink)
Member
 
Posts: 29
Just read all 16 pages of this thread in one sitting and I want to congratulate everyone on all their hard work. You all deserve a huge round of applause.

-Stefan
DevilsRejection is offline  
Thanked By: mer1
Old 06/10/2009, 05:39 AM   #318 (permalink)
Developer
 
rwhitby's Avatar
 
Posts: 10,568
Quote:
Originally Posted by joshewah View Post
Is anyone familiar with ipkg? I wonder where it pulls the locations from. If it was like apt on debian and we could just edit a sources file and add a custom sources that would be awesome for installing custom software and additional user-made packages without using the app catalog.
Have a read of the #webos-internals logs in http://logs.nslu2-linux.org/livelogs...-internals.txt and you will see from Jun 10 05:34:11 to Jun 10 05:42:56 where I talk bpadalino through installation of the Optware ipkg feed, so he can now ipkg install over 1400 different packages from http://ipkg.nslu2-linux.org/feeds/op.../cross/stable/ ...

We're working on doing a loopback mount from the big vfat partition before writing up a procedure for this - we don't want people filling up / by running ipkg install emacs22 ...

Anyone with a rooted Pre who wants to help, just join #webos-internals on Freenode and let yourself be known :-)

-- Rod

Last edited by rwhitby; 06/10/2009 at 05:48 AM.
rwhitby is online now  
Thanked by hertzi, joshewah, mer1
Old 06/10/2009, 05:43 AM   #319 (permalink)
Member
 
Posts: 6
Found some info about the itunes:
Code:
nova-cust-image-castle.rootfs\usr\share\storaged
SysInfoExtended couldn't possibly be all the code to sync to itunes could it?

Cheers
-wireless- is offline  
Old 06/10/2009, 05:51 AM   #320 (permalink)
Member
 
Posts: 354
Quote:
Originally Posted by rwhitby View Post
Have a read of the #webos-internals logs in http://logs.nslu2-linux.org/livelogs...-internals.txt and you will see from Jun 10 05:34:11 to Jun 10 05:42:56 where I talk bpadalino through installation of the Optware ipkg feed, so he can now ipkg install over 1400 different packages from Index of /feeds/optware/cs08q1armel/cross/stable ...

We're working on doing a loopback mount from the big vfat partition before writing up a procedure for this - we don't want people filling up / by running ipkg install emacs22 ...

-- Rod
Oh man, once we get a terminal application this is going to be sweet. Might even be cool to have a single package which installs a terminal app and sets up the extra stuff needed to install packages. Or maybe even a GUI package manager. So many cool things on the horizon for this phone. I was excited about it when I got it, but now that we have full OS access its even more awesome.
joshewah is offline  
Closed Thread

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0