This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#12496 - RaaA WebOS
Attached to Project:
Rockbox
Opened by Jason Yu (captainkewl) - Friday, 30 December 2011, 06:20 GMT+2
Opened by Jason Yu (captainkewl) - Friday, 30 December 2011, 06:20 GMT+2
|
DetailsRockbox WebOS app.
Built on r31467, 32/64-bit Ubuntu 11.10, running on a 32GB Touchpad Directions (only tested on the above): * Install WebOS PDK: https://developer.palm.com/content/resources/develop/sdk_pdk_download.html * Install platform-native libsdl-dev if you haven't already. Only needed to pass configuration check as the PDK doesn't properly install staging sdl-config for some reason. * Apply patch (patch -p0 < filename.patch) * cd webos * ../tools/configure, select WebOS target (206) * make && make install && sh ./buildpkg.sh Notes: * This is one big hack -- I fudged just about everything in /firmware (how the target system works is still not altogether clear to me) and piggybacked a lot of this off of the SDL target. Mostly in the interest of getting it to run without adding ifdefs all over the place. Obviously we'll want to be more methodical and thorough about exactly which changes need to go where moving forward. * The Touchpad's SDL video implementation appears to adjust orientation and scale output to fit within 1024x768 as best as possible. This means that a 800x480 build will appear in landscape mode, letterboxed, while a 320x480 will appear in portrait mode, pillarboxed. The device itself automatically orients to landscape -- meaning, if you're in a portrait resolution and then you exit, everything will initially be sideways -- but that doesn't affect input. Scaling routines are noticeably slow. * I tried building this as a hybrid Enyo/PDK (window mgr friendly) app but had some problems with the native part failing to execute at SDL_Init. So for now no backgrounding or notification bar. * Make scripts use the ARM compilers installed with the PDK. I'm wondering though if this is superfluous given that the Rockbox toolchain also supports ARM7. I did try exposing some of the ARM-specific assembly but the compilation failed with the PDK compiler. 800x480 build: http://www.jasonyu.net/webos/org.rockbox.raap_0.0.1_all.ipk |
This task depends upon
Works fine when the app is launched through the console though. Permissions???
However, I don't think we want to have the WebOS port using sdl. You can use the SDL port instead. Your work isn't much different from running the SDL port as is, the differences boil down to packaging.
For the toolchain: You can try the new "arm-app" toolchain that rockboxdev.sh can build. Perhaps that one works.
Changed to Hybrid app, new app ID. Beginning work on integration with WebOS, particularly notification dashboard. Still need to figure out backgrounding.
Dimensions in Hyrbid mode are defined in app.js -- by default they're 320x480. You'll want to modify this if you build at a different res as this scales video only.
Uses OpenGL ES to render surface to texture on plane -- I believe hardware rendering in 3d is faster than software 2d.
FWIW, the it reaches 60fps (as expected) in the android port.
CC firmware/asm/arm/memset16.S
/home/yzflcyq/PMP-Firmware-s-Rockbox-X/firmware/asm/arm/memset16.S: Assembler messages:
/home/yzflcyq/PMP-Firmware-s-Rockbox-X/firmware/asm/arm/memset16.S:62: Error: bad instruction `ldrpc cond=eq'
make: *** [/home/yzflcyq/PMP-Firmware-s-Rockbox-X/webos/firmware/asm/arm/memset16.o] 错误 1
we can make this an official port.