[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: LuaJIT on webOS HP TouchPad (arm7l linux)
- From: Tim Caswell <tim@...>
- Date: Wed, 30 Nov 2011 11:23:46 -0600
As far as build tools on the device, I just installed optware
available through preware and then did ipkg-opt install gcc and
friends. I do have the latest PalmPDK.
Also when I was building on the device, I remember Mike having to add
some build flag that's related to revision
e80478c44b7e4bf32a509c480edb39bd39ede51b. I can't remember specifics
though. It's in this list somewhere.
On Wed, Nov 30, 2011 at 9:52 AM, Dimiter "malkia" Stanev
<malkia@gmail.com> wrote:
> I was compiling on my OSX.
>
> Maybe -isysroot must be changed with --sysroot?
> Or maybe you don't have the latest PalmPDK?
>
> If I have time I'll try it today on Linux.
>
> Btw, I'm actually interrested in compiling (also git, bintools, gcc) and
> having them installed on my touchPad :) Anything prebuilt out there?
>
> Thanks!
>
> On 11/30/11 5:58 AM, Tim Caswell wrote:
>>
>> Nice work. Though it doesn't work for me. I'm on 64 bit Ubuntu 11.10
>> and I get the following error:
>>
>> gcc -m32 -O2 -fomit-frame-pointer -Wall
>> -DLUAJIT_TARGET=LUAJIT_ARCH_arm -c -o buildvm_fold.o buildvm_fold.c
>> In file included from buildvm_asm.c:6:0:
>> buildvm.h:9:23: fatal error: sys/types.h: No such file or directory
>> compilation terminated.
>>
>>
>> I've always built luajit on my touchpad, but I'd like to be able to
>> cross-compile it also.
>>
>> On Wed, Nov 30, 2011 at 1:28 AM, Dimiter "malkia" Stanev
>> <malkia@gmail.com> wrote:
>>>
>>> I've got a deal on $149 HP webOS TouchPad,
>>> and bought it right away.
>>>
>>> And tested luajit on it (scimark).
>>> It's linux with custom ui, but the PDK (Palm PDK) offers SDL, OpenGLES2,
>>> etc. Very cool indeed.
>>>
>>> Here is how I built it:
>>>
>>> #!/bin/bash
>>> set -e
>>> ROOT=../../../luajit
>>> PDK=/opt/PalmPDK
>>> PDKGCC=$PDK/arm-gcc
>>> make -C $ROOT/src cleaner
>>> make -C $ROOT/src -j amalg TARGET_SONAME=libluajit.so BUILDMODE=dynamic
>>> TARGET_DYNXLDOPTS=-Wl,-rpath,'$$\ORIGIN' Q= HOST_CC="gcc -m32"
>>> CROSS=$PDKGCC/bin/arm-none-linux-gnueabi- TARGET=arm
>>> TARGET_FLAGS="--sysroot
>>> $PDKGCC/sysroot" TARGET_SYS=Linux
>>> mv $ROOT/src/luajit ../../bin/webOS
>>> mv $ROOT/src/libluajit.so ../../bin/webOS
>>>
>>> afer it:
>>>
>>> novacom put file:///media/internal/scimark.lua<
>>> ~/p/ufo/samples/bench/scimark.lua
>>>
>>> same copy process (novacom put) for libluajit.so and luajit, then just
>>> novaterm, and cd media/internal
>>>
>>> root@touchPad:/media/internal# cat /proc/version
>>> Linux version 2.6.35-palm-tenderloin (reviewdaemon@buildoe-43) (gcc
>>> version
>>> 4.3.3 (Sourcery G++ 4.3-234) ) #1 SMP PREEMPT 129.3.10
>>>
>>> root@touchPad:/# uname -a
>>> Linux touchPad 2.6.35-palm-tenderloin #1 SMP PREEMPT 129.3.10 armv7l
>>> GNU/Linux
>>>
>>> root@touchPad:/# cat /proc/cpuinfo
>>> Processor : ARMv7 Processor rev 2 (v7l)
>>> processor : 0
>>> BogoMIPS : 13.52
>>>
>>> Features : swp half thumb fastmult vfp edsp neon vfpv3
>>> CPU implementer : 0x51
>>> CPU architecture: 7
>>> CPU variant : 0x0
>>> CPU part : 0x02d
>>> CPU revision : 2
>>>
>>> Hardware : TENDERLOIN
>>> Revision : 0000
>>> Serial : 0000000000000000
>>>
>>> root@touchPad:/media/internal# ./luajit scimark.lua
>>> Lua SciMark 2010-12-10 based on SciMark 2.0a. Copyright (C) 2006-2010
>>> Mike
>>> Pall.
>>>
>>> FFT 4.80 [1024]
>>> SOR 17.40 [100]
>>> MC 9.87
>>> SPARSE 10.04 [1000, 5000]
>>> LU 14.41 [100]
>>>
>>> SciMark 11.30 [small problem sizes]
>>>
>>>
>>>
>>> root@touchPad:/media/internal# ./luajit -joff scimark.lua
>>> Lua SciMark 2010-12-10 based on SciMark 2.0a. Copyright (C) 2006-2010
>>> Mike
>>> Pall.
>>>
>>> FFT 3.18 [1024]
>>> SOR 8.43 [100]
>>> MC 2.16
>>> SPARSE 5.39 [1000, 5000]
>>> LU 6.58 [100]
>>>
>>> SciMark 5.15 [small problem sizes]
>>>
>>>
>>> This is with latest LuaJIT I have:
>>>
>>> malkia ~/p/luajit $ git log -1
>>> commit d1569a5d6888ecc43c44822afca19461e96af623
>>> Author: Mike Pall<mike>
>>> Date: Sun Nov 27 12:35:35 2011 +0100
>>>
>>> Fix docs. The code base doesn't work on Windows 98 anymore.
>>>
>>> On 5/11/11 10:33 AM, Dimiter "malkia" Stanev wrote:
>>>>
>>>> Some results on Efika MX smartbook (I'm very happy!):
>>>>
>>>> Note: LuaJIT is running with (-joff, e.g. JIT off on this architecture
>>>> right now). But even without it, the results are impressive!
>>>>
>>>> I would also test it on the Efika MX smarttop (very small cute device,
>>>> but I expect the same results).
>>>>
>>>> This is running on Ubuntu 11.04 (just upgraded it from Ubuntu 10.10).
>>>>
>>>> malkia@genesi:~/p/luajit$ git log -1
>>>> commit b79cdba3a06cbabb772535b5bce18d6460135845
>>>> Author: Mike Pall<mike>
>>>> Date: Tue May 10 16:55:23 2011 +0200
>>>>
>>>> Tuning loop unrolling heuristics again.
>>>> malkia@genesi:~/p/luajit$ cat /proc/cpuinfo
>>>> Processor : ARMv7 Processor rev 5 (v7l)
>>>> BogoMIPS : 799.53
>>>> Features : swp half thumb fastmult vfp edsp thumbee neon vfpv3
>>>> CPU implementer : 0x41
>>>> CPU architecture: 7
>>>> CPU variant : 0x2
>>>> CPU part : 0xc08
>>>> CPU revision : 5
>>>>
>>>> Hardware : Genesi Efika MX (Smartbook)
>>>> Revision : 51030
>>>> Serial : 0000000000000000
>>>> malkia@genesi:~/p/luajit$ lua ../scimark.lua
>>>> Lua SciMark 2010-12-10 based on SciMark 2.0a. Copyright (C) 2006-2010
>>>> Mike Pall.
>>>>
>>>> FFT 1.36 [1024]
>>>> SOR 2.82 [100]
>>>> MC 0.90
>>>> SPARSE 1.58 [1000, 5000]
>>>> LU 1.89 [100]
>>>>
>>>> SciMark 1.71 [small problem sizes]
>>>> malkia@genesi:~/p/luajit$ src/luajit ../scimark.lua
>>>> Lua SciMark 2010-12-10 based on SciMark 2.0a. Copyright (C) 2006-2010
>>>> Mike Pall.
>>>>
>>>> FFT 2.14 [1024]
>>>> SOR 6.49 [100]
>>>> MC 1.72
>>>> SPARSE 4.70 [1000, 5000]
>>>> LU 5.39 [100]
>>>>
>>>> SciMark 4.09 [small problem sizes]
>>>> malkia@genesi:~/p/luajit$
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>
>
>