Porting MIDP2.0 to arm xscale ARCH

Hi,
I have ported cldc 1.1 to arm xscale ARCH. Now i am trying to port MIDP2.0 to the same ARCH. I am getting struck while linking "midp"... Below is the error message from make....
no need to recompile .java files
Linking ... bin/midp
/opt/Olai/arm-xscale-linux-gnueabi/gcc-4.1.2-glibc-2.5-kernel-2.6.18/lib/gcc/arm-xscale-linux-gnueabi/4.1.2/../../../../arm-xscale-linux-gnueabi/bin/ld: ssl_obj/bnlib.o: Relocations in generic ELF (EM: 3)
/opt/Olai/arm-xscale-linux-gnueabi/gcc-4.1.2-glibc-2.5-kernel-2.6.18/lib/gcc/arm-xscale-linux-gnueabi/4.1.2/../../../../arm-xscale-linux-gnueabi/bin/ld: ssl_obj/bnlib.o: Relocations in generic ELF (EM: 3)
ssl_obj/bnlib.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
imake: *** [bin/midp] Error 1
It seems object files in ssl_obj directory is for intel i386... Does anyone know how to solve this problem???
regards
hrs

hi,
i am also try to port cldc1.1 and midp2.0 to arm + linux this days. i have successfully cross-compile the kvm1.1. but it fails to run a java program with floating-point operations. it quits without any prompt as soon as the java program goes to a floating-point operation.
it would be very nice of you to share some of your successful experience with me. looking forward to your e-mail. thank you very much.

Similar Messages

  • Anybody porting midp2.0 on windows mobile?

    I want to develop a mobile program use j2me, and use the java's Write Once, Run Anywhere.
    so i want to port cldc1.1 and midp2.0 on windows mobile first.
    i compile cldc1.1 on windows xp, anybody had the porting on windows moible the cldc1.0 with kni support ? i hope you can help me.thanks

    if i need to use my kvm, porting from sun j2me RA1.1.
    and the phone not support j2me,so i want to use my kvm and the midp2.0 jar to run my program.
    how to ?

  • [J2ME PORTING]: Porting MIDP to S3c2410(ARM) Error

    Hi,
    I try to porting MIDP to S3c2410, compiling get through.
    A error occur when linking the objs.
    I don't know how to deal with that, pls help me!
    compiling and linking message as follow:
    ... obj/audiornd.o
    ... obj/cache.o
    ... obj/class.o
    ... obj/collector.o
    ./../../../../kvm/kvm/VmCommon/src/collector.c: In function `compactTheHeap':
    ./../../../../kvm/kvm/VmCommon/src/collector.c:1573: warning: unused variable `i'
    ... obj/commandState.o
    ... obj/commProtocol_md.o
    ... obj/commProtocol.o
    ... obj/configuration.o
    ... obj/conv.o
    ... obj/crc32.o
    ... obj/datagramProtocol_md.o
    ... obj/datagramProtocol.o
    ... obj/defaultLCDUI.o
    ./../../../src/share/native/defaultLCDUI.c: In function `Java_javax_microedition_lcdui_Graphics_drawImage':
    ./../../../src/share/native/defaultLCDUI.c:1703: warning: value computed is not used
    ./../../../src/share/native/defaultLCDUI.c: In function `Java_javax_microedition_lcdui_Graphics_drawRGB':
    ./../../../src/share/native/defaultLCDUI.c:1795: warning: value computed is not used
    ./../../../src/share/native/defaultLCDUI.c: In function `Java_javax_microedition_lcdui_Graphics_drawRegion':
    ./../../../src/share/native/defaultLCDUI.c:1888: warning: value computed is not used
    ... obj/eucjp.o
    ... obj/events.o
    ... obj/execute.o
    ./../../../../kvm/kvm/VmCommon/src/execute.c: In function `SlowInterpret':
    ./../../../../kvm/kvm/VmCommon/src/execute.c:235: warning: label `handleArrayStoreException' defined but not used
    ./../../../../kvm/kvm/VmCommon/src/execute.c:230: warning: label `handleArithmeticException' defined but not used
    ./../../../../kvm/kvm/VmCommon/src/execute.c:169: warning: label `branchPoint' defined but not used
    ... obj/exitInternal.o
    ... obj/fields.o
    ... obj/frame.o
    ... obj/garbage.o
    ... obj/genConv.o
    ... obj/global.o
    ... obj/graphics.o
    ... obj/hashtable.o
    ... obj/imageDecode.o
    ... obj/images.o
    ... obj/inflate.o
    ... obj/interpret.o
    ... obj/jar.o
    ... obj/JarReader.o
    ... obj/kni.o
    ... obj/lcWinJa.o
    ... obj/lcWin.o
    ... obj/loaderFile.o
    ... obj/loader.o
    ... obj/localeMethod.o
    ... obj/locale.o
    ./../../../src/solaris/native/i18n/locale.c: In function `getLocaleInfo':
    ./../../../src/solaris/native/i18n/locale.c:337: warning: assignment makes pointer from integer without a cast
    ./../../../src/solaris/native/i18n/locale.c:340: warning: assignment makes pointer from integer without a cast
    ./../../../src/solaris/native/i18n/locale.c:352: warning: assignment makes pointer from integer without a cast
    ./../../../src/solaris/native/i18n/locale.c:357: warning: assignment makes pointer from integer without a cast
    ./../../../src/solaris/native/i18n/locale.c:361: warning: assignment makes pointer from integer without a cast
    ./../../../src/solaris/native/i18n/locale.c:435: warning: assignment makes pointer from integer without a cast
    ... obj/log.o
    ... obj/main.o
    ... obj/menus.o
    ... obj/midlet_md.o
    ... obj/midlet.o
    ... obj/midpEvents.o
    ... obj/midpServices.o
    ... obj/midpStartup.o
    ... obj/mmaevt.o
    ... obj/mmatone.o
    ./../../../src/solaris/native/mmatone.c: In function `tonegen':
    ./../../../src/solaris/native/mmatone.c:135: warning: unused variable `tmp'
    ... obj/nativeCore.o
    ... obj/nativeFunctionTable.o
    ... obj/nativeGUI.o
    ./../../../src/solaris/native/nativeGUI.c: In function `GetAndStoreNextKVMEvent':
    ./../../../src/solaris/native/nativeGUI.c:2016: warning: unused variable `i'
    ... obj/native.o
    ... obj/phonesim.o
    ... obj/pngDecode.o
    ... obj/pool.o
    ... obj/popup.o
    ... obj/profiling.o
    ... obj/property.o
    ... obj/pushregistry.o
    ./../../../src/share/native/pushregistry.c: In function `pushfindfd':
    ./../../../src/share/native/pushregistry.c:600: warning: assignment makes pointer from integer without a cast
    ... obj/pvibrate.o
    ... obj/RandomAccessStream.o
    ... obj/ResourceInputStream.o
    ... obj/ROMjavaUnix.o
    ... obj/runtime_md.o
    ... obj/screenGrabber.o
    ... obj/screengrab.o
    ... obj/sjis.o
    ... obj/socketProtocol_md.o
    ... obj/socketProtocol.o
    ... obj/stackmap.o
    ... obj/StartJVM.o
    ./../../../../kvm/kvm/VmCommon/src/StartJVM.c: In function `KVM_Start':
    ./../../../../kvm/kvm/VmCommon/src/StartJVM.c:103: warning: variable `mainClass' might be clobbered by `longjmp' or `vfork'
    ./../../../../kvm/kvm/VmCommon/src/StartJVM.c:100: warning: argument `argv' might be clobbered by `longjmp' or `vfork'
    ... obj/staticGraphics.o
    ... obj/storageFile.o
    ... obj/storage.o
    ... obj/SystemOutputStream.o
    ... obj/text.o
    ... obj/thread.o
    ... obj/verifier.o
    ./../../../../kvm/kvm/VmCommon/src/verifier.c: In function `Vfy_verifyMethodOrAbort':
    ./../../../../kvm/kvm/VmCommon/src/verifier.c:1549: warning: initialization makes integer from pointer without a cast
    ./../../../../kvm/kvm/VmCommon/src/verifier.c:1750: warning: initialization makes integer from pointer without a cast
    ... obj/verifierUtil.o
    ... obj/vibrate.o
    ... obj/waveout.o
    ./../../../src/solaris/native/waveout.c: In function `audioCommon':
    ./../../../src/solaris/native/waveout.c:530: warning: unused variable `ad'
    Linking ... bin/midp
    collect2: ld terminated with signal 11 [???], core dumped
    make: *** [bin/midp] Error 1
    pls help! thank in advance!!
    Simon Wang

    thow
    Welcome to the forum. Please don't post in old threads that are long dead. When you have a question, please start a topic of your own. Feel free to provide a link to an old thread if relevant.
    I'm locking this thread now. It's more than 4 months old.
    db

  • PlugBox Linux - Arch variant for ARM plugbox

    Today's woot was a $20 Seagate DockStar.
    Basically, its a little usb hub with a 1.2ghz ARM Marvell Sheeva cpu, 128mb ram, gigabit connection, and very very low power consumption (like a SheevaPlug or TonitoPlug with half the ram). Curiosity got the best of me and some googling turned up PlugBox Linux; and ARM based Arch variant!
    http://www.plugapps.com/index.php5?titl … gBox_Linux
    After some research, I caved and bought the DockStar. If everything goes as planned, this little thing is going to consolidate 2 outdated servers into one tight little Arch system!
    Anyone have any experience with this?
    I plan to drop a 300gb external usb drive on this and use it for Samba sharing, uShare video streaming to my Xbox360, and as an rTorrent slave.
    Side Note:
    It seems a few months ago Office Depot was selling these things for $1 (not a typo, one dollar)!

    sand_man wrote:
    Labello wrote:i would use transmission as bittorrent client. has got a nicer webinterface. might not be as lightweight but also has more features :-)
    I went back to rtorrent after using transmission briefly. I had problems with transmission retaining settings after service restarts. It was a major inconvenience since the downloads were going to the default transmission home
    This was under FreeBSD btw. Sorry for the slightly off-topic
    Major inconvenience!
    Sorry, I had to do that...
    Last edited by Roline (2010-07-07 10:29:26)

  • Porting to ARM LM3S811, Elemental IO PWM issues

    Hi all,
    Ok, so very quickly I resume what I have done:
    - The LM3S811: http://www.luminarymicro.com/products/ekk-lm3s811_evaluation_kit.html
    - I used the LM3Sxxxx Generic template to create one for
    the LM3S811 as instructed in the porting guide for other ARM controllers using
    Labview for ARM module, the simple guide.
    - I got to compile a test application and run it
    successfully on my new target.
    - I then used the Elemental I/O wizard to create the
    necessary files based again on the LM3S8962 in the generic folder of LM3Sxxxx.
    Both boards share almost all the same IOs, I only changed the PWM 0 and 1 to
    use port D instead of B, PWMs 2 to 5 share the same ports, so I didn t changed
    them.
    - I tested some of the AIOs the GPIOs, and I even got the
    OLED display driver from luminary to work.
    Now, if I use PWM 2 to 5 they work fine, but if I use 0
    or 1, my application will freeze as soon as the Elemental IO node is called in
    my program when running on the target.
    Am I missing something?
    Thx
    Lukasz
    Solved!
    Go to Solution.

    Close LV                                                                     
    1. Copy LM3Sxxxx folder and rename the folder to CAN_LUM_Board_LM3811 (Or whatever you wish your target to be called).
        a.    This folder is in: C:\Program Files\National Instruments\LabVIEW 2009\Targets\Keil\Embedded\RealView\Generic
    2. Modify TgtSupp.ini
        a.    Change the target name to CAN_LM3S811 (whatever you want)
        b.    Change the description to Luminary Micro CAN_LM3S811 (whatever you want)
            [Target]
            name = CAN_LM3S811
            description = Luminary Micro CAN_LM3S811
            eiodirectory = eio
        To add the new target to your project
        a.    Open LV and add target by right-clicking on your project name and New Targets and Devices menu.
        b.    Select the option "Other".  You will get a new dialog so you can select the target you just added above.
    3. To target small memory microcontrollers you must use the microRTX operating system(LabVIEW ARM uses the full RTX OS as default).  You will also need to edit a function in the code generation of LabVIEW. This is a global edit, so it also changes all targets.  I found that LabVIEW ARM product seems to still work fine with this global edit on the LM3S8962. In the file headless.c comment out the function exit (0) as shown in line 93.
            C:\Program Files\National Instruments\LabVIEW 2009\CCodeGen\libsrc\os\common
    4. The way LV ARM works is that it takes the target template in the folder at: C:\Program Files\National Instruments\LabVIEW 2009\Targets\Keil\Embedded\RealView\Generic\CAN_LUM_Board_LM3S811 and copies it to the folder where you define your LV project and VI’s.  LV ARM and the KIEL tools then edit these new files for your end application.  As such, we need to edit the template file in the main LV folder so it uses the microcontroller you wish selected.  Open the file LabVIEW.Uv2 in the folder C:\Program Files\National Instruments\LabVIEW 2009\Targets\Keil\Embedded\RealView\Generic\CAN_LUM_Board_LM3S811\Template\Pro ject with the KEIL IDE tools
        a.    Select the LM3S811 Microcontroller.
        b.    Xtal= 6Mhz
        c.    Enable micolib to reduce memory needs for such a small part.
        d.    In Debug and Ytilities, change to Use "Luminary Eval Board"
    5. Change Heap size to: "Heap    EQU     0x00000200" in "Startup.s" (Not sure but if not using debugging it can be set to zero)
    6. Edit "LM3S_Pins.c" line34 to : "#define PART_LM3S811" and "ARM_Serial.c" line 24 to : "#define PART_LM3S811"
    In LV
    1. Import eio's from the \generic\LM3sxxxx\eio\LM3S8962
        a. Change PWM 0 and 1 to use port D instead of B
    2. Disable debugging, not enough RAM for it.
    Thx to gregc
    Have fun!

  • Problem with Labview and an ARM Cortex

    Good morning,
    I am currently trying to use Labview with a board from ST Microelectronics (MCBSTM32) with an ARM Cortex Processor.
    I use the SDK and have followed the tutorials.
    But, when I try to launch the program (the simple loop as write in the tutorial n°2 : http://zone.ni.com/devzone/cda/tut/p/id/7029 ), Keil gives me an error via Labview:
    "Argument 'DARMSTM' not permitted for option 'device'."
    It seems that Keil does not allow an ARM Cortex from ST as the device.
    Moreover, after having this problem, I am unable to use a Keil project ,even a project which worked before, without Labview. I need to restart the computer.
    I also try to launch the Keil project generated by Labview, without using Labview, and it works. But as soon as I use Labview, I have the error.
    Did anyone already have this error or know how to solve it
    Thank you for your answer and sorry for my bad english.
    Regards,
    Raphaël VAISSIERE

    Hi Raphi,
    So let me make sure I understand,
    The project created in LabVIEW errors out with the message "Argument 'DARMSTM' not permitted for option 'device" 
    If you open the same project in Keil uVision, it runs fine
    Here are my questions:
    1. So how does the code run when run through Keil? does it deploy and run fine?
    2. Did you follow the porting procedure completely?
    Your target STM32F103RB  is techincally supported by Keil but you need to port the RTX kernel to it. This paragraph explains it:
    To determine if your target already supports the RTX Real-Time Kernel, browse to the \Keil\ARM\Startup directory, then browse to the folder that corresponds to the manufacturer of your ARM microcontroller. If there is an RTX_Conf*.c file for your target, then the RTX Real-Time Kernel has already been ported for your ARM device. If no such file exists, skip to chapter 4 for more information on the RTX Real-Time Kernel and a guide for porting RTX to your ARM microcontroller. 
    You also need to port the Real-Time agent to it.
    I just want to make sure that you have followed the guidelines. If you have and are still having problems, we will continue to explore this.
    Thanks,
    National Instruments
    LabVIEW Embedded Product Support Engineer

  • PL guide me.Linux Vagabond needs resting place.Is Arch the righ one ?

    Hi Folks
    Can you Pl tell me if I have come to the right place.
    I have been wandering , all over in  the so many "LINUX Art Galleries" , essentially  looking at so many 'paintings'  but have'nt found my 'Monalisa'
    Basically here is what I want as Bottomline :
    <> AMD64 Distro
    <> light distro . Easy to use and configure or at least with good doc so I can figure something out . < 2g total HDD Space.
    I have a Qosmio wigth C2D 4G ram. So speed and ram are not a problem
    <> I can install the latest version of the atheros AR9281 WLAN Driver with 802.11N support .So far I am frustrated there also , I can only get some 1-2 mbps on Ubuntu c.f. Draft N speeds on Windows
    <> Best Skye sound support . I have realtek Hi Def Codecs in windows
    <> Support for NFTS partition in RW mode ( that is good Jaunty has it built in )
    <> Support for Chicony USB 2.0 Built in Web Camera
    <> Torrent and P2P's installable easily
    <> Some light weight word and pdf programs
    <> Light weight Image and Scanning Program
    <> Support for HP Printing
    Previously I had Ubuntu now that is totally caput.
    Here is what happened....
    Initially I could not Sudo . It says I am not in the subdoers file. When I tried it fix that ....I cant login, it gives a bunch of crappy messages chown klog:klog not found etc. I went the recover way and dropped to root and tried some stuff - no avail
    I got all this wonderful presents , when I updated packages. It all started with my terminal fonts not showing up properly - they'd look 'L ike Th is or pro bab ly Wo rse' . So I started yet another operation trying to figure that out .....and then on..no more sudo....no more login....and Damned.......
    This is like those windows update experiences or worse still cos there is no system restore point concept.
    Thats all and I have been just running around and catching my own tail trying to figure this out.
    When Jaunty was up and running , my Skype worked for Just first 2 mins. Then on there was NO SOUND. I cant hear and I am not heard. Whenever at all I heard something, I could easily be mistake for a fisherman howling in some sailors language and believe me that has broken many a potential good relationships.
    So just put that all in Plain English.Folks am open to something that is AMD64 Linux and not Ubuntu ( or non Buntu/ Debian ) also
    Thats all and I have been just running around and catching my own tail trying to figure this out.
    When Jaunty was up and running , my Skype worked for Just first 2 mins. Then on there was NO SOUND. I cant hear and I am not heard. Whenever at all I heard something, I could easily be mistaken for a fisherman howling in some sailors language and beleive me that has broken many a potential good relationships.
    So just put that all in Plain English.Folks am open to something that is AMD64 Linux and not Ubuntu ( or non Buntu/ Debian ) also . Any insight there would help me.
    Can these problems be fixed in Arch Linux.
    Some specific Q's are
    <> Can I somehow PORT and USE Debian Packages in Arch . How do I do this ..?
    <> When  you download Skye for Linux there is no 64 Bit AMD version but they have got specific ones for Mandiva, Buntus etc.
    WHICH version fits ArchLinux ?
    <> How has the user exp been with Skype on Arch Linux
    <> When I tried to install Arch , I dropped to a vanilla root prompt. Now do I have the BUILD the OS all by myself , or once I install it , it will install the core packages for the GUI , Office, Networking etc
    Please gimme some approach .
    Thanks
    Sam
    Thanks
    Sam

    sieger007 wrote:
    Can these problems be fixed in Arch Linux.
    Thanks
    Sam
    Short answer:
    Yes.
    Clarification:
    It can be fixed whatever distro you use, as well.
    Long answer:
    Without trying to be presumptive of your use-patterns and system-admin habits, I'd venture to say you take a more problem-solving approach to your system, basically "this is not working, how do I fix it". While this is to the point, when  using Linux in general (and especially so for Arch), you're going to have to do more than that, and insert a 'why' somewhere. For example, just skimming through your list of issues, I can clearly see Pulseaudio-related stuff, but since you do not mention Pulse specifically, I'm pretty sure your efforts to solve that have not gotten to the root cause. So, while these 'problems' CAN be fixed when you use Arch, they won't if you don't fix them, or at least understand them so you don't get those problems in the first place. A popular line round here is "Arch is what you make it", and that's very true, even from a maintainability point of view.
    Lastly, with your list of 'bottomline', I'd really suggest not using AMD64. The extra 1 GB of RAM you get is not worth the hassle of running a multi-lib/chroot system which adds a layer of complexity. Your usage as mentioned also will not get close to touching 4 GB RAM anyway. Of course, if you take that approach further, I'd actually recommend Ubuntu as being easier to use, once you get past the 'I HAVE to get the latest alpha koala' syndrome. Or even Windows XP with free software.

  • Arch systemd and bus error

    Bus error.
    I have a problem which only occurs in Arch Linux.
    It's about an open source process control system.
    There are no problem with Debian, Ubuntu and Gentoo (x86 and ARM)
    In Arch Linux I get a bus error.
    I know it has to do with accessing memory.
    The problems occurs in both x86 and the ARM versions.
    My question is what is the difference between the way systemd handles the bus in ArchLinux and the other distros?
    I know it is impossible to answer but maybe is there somebody who can point me to a direction .....
    Best regards,
    Marc

    Hi Karol,
    Thanks for your quick respons.
    /home/pwrp/pwr/rls/os_linux/hw_x86/exp/exe/wb_open_db.sh: line 61:   673 Bus error  (core dumped) wb -q "$username" "$password" $database
    systemd-coredumpctl dump -o dump1
    BFD: Warning: /home/pwrp/dump1 is truncated: expected core file size >= 161722368, found: 25165824.
    [New LWP 464]
    Cannot access memory at address 0xb6f328f4
    Cannot access memory at address 0xb6f328f0
    (gdb) bt
    #0 0x005c941c in dbs_Map (
    sts=<error reading variable: Cannot access memory at address 0xbe90ada4>,
    filename=<error reading variable: Cannot access memory at address 0xbe90ada0>) at ../../co_dbs.c:516
    Cannot access memory at address 0xbe90b054
    (gdb)
    In file co_dbs.c:516
    vep->vp = (dbs_sVolume*)(vep->base + vep->sect[dbs_eSect_volume].offset);
    Proview, the process control system, this issue is about, uses while loading classes.
    When I leave some classes out and use a more basic system I can get it running.
    But, again, there is no problem with Ubuntu (x86), Debian (x86 and ARM) and Gentoo (x86 and ARM)......
    The reason I am intersted in solving this problem is the blazing speed from Arch Linux on the Raspberry.
    ArchLinux is blowing Debian and even Gentoo (hard-float versions) completely away on the Pi.
    Regards,
    Marc
    Last edited by maba (2013-06-17 10:30:07)

  • Create a cross compiler for arm

    I am struggling with building a cross toolchain, essentially it boils down to building these packages (in thegiven order):
    binutils gcc-base newlib gcc
    When done I am trying to compile a dummy cpp algorithm (euler gcd/ggT search) with no includes.
    What the cross toolchain spits at me is the following:
    $ arm-unknown-eabi-gcc -march=armv5te ./euklidisch_ggt.c -o ./euklidisch_ggt.bin.armv5te
    /usr/bin/arm-unknown-eabi-ld: skipping incompatible /usr/lib/gcc/arm-unknown-eabi/4.5.2/../../../../arm-unknown-eabi/lib/libc.a when searching for -lc
    /usr/bin/arm-unknown-eabi-ld: skipping incompatible /usr/arm-unknown-eabi/lib/libc.a when searching for -lc
    /usr/bin/arm-unknown-eabi-ld: cannot find -lc
    collect2: ld returned 1 exit status
    I wrote a little script to build it (as I got pretty much fed up doing it all by hund, round #7 just failed again)
    Note: it is semi-automated, you will still be requested to give your passwd to agree with install and blah
    Note: use it with arg "cleanup" to get rid of old installed packages (run as root)
    Note: use it to compile as user
    #!/bin/bash
    BUILDERUSER=buildmonkey
    PREFIX="/usr"
    TARGET="arm-unknown-eabi"
    PKGBUILDDIR="/home/${BUILDERUSER}/PKGBUILD"
    PKGS="binutils gcc-base newlib gcc"
    export PREFIX
    export TARGET
    export BUILDERUSER
    export PKGS
    export PKGBUILDDIR
    function cleanup
    for j in ${PKGS}
    do
    export j
    echo "Removing package ${TARGET}-${j}"
    su -c'pacman -R ${TARGET}-${j}'
    done
    function compile_and_install
    cd ${PKGBUILDDIR}
    echo ""
    echo ""
    echo "Compileing ${TARGET}-${1} ... "
    echo ""
    echo ""
    cd ./${TARGET}-${1}
    rm ./${TARGET}-${1}*
    makepkg -f || return 1
    su -c 'pacman -U ./${TARGET}-${1}*'
    echo ""
    if [ "${1}" == "cleanup" ]; then
    echo "cleanup requested...."
    cleanup
    exit 0
    fi
    if [ "$(id -u)" == "0" ]; then
    echo "This script must not be run as root!!" 1>&2
    exit 1
    fi
    echo ""
    if [ -d "${PKGBUILDDIR}" ]; then
    echo "PKGBUILD directory is ${PKGBUILDDIR}"
    else
    echo "PKGBUILD directory ${PKGBUILDDIR} is missing!!"
    exit 1
    fi
    echo "PKGs are ${PKGS}"
    echo ""
    for i in ${PKGS}
    do
    compile_and_install ${i}
    done
    exit 0
    The packagebuilds are as following (hacked away versions of the ones existing in AUR, which give me linker errors)
    binutils
    pkgname=arm-unknown-eabi-binutils
    pkgver=2.21
    pkgrel=1
    pkgdesc="A set of programs to assemble and manipulate binary and object files"
    arch=(i686 x86_64)
    license=(GPL)
    options=(!libtool)
    url="http://sources.redhat.com/binutils"
    depends=('glibc' 'zlib')
    source=(ftp://ftp.gnu.org/gnu/binutils/binutils-${pkgver}.tar.bz2)
    md5sums=('c84c5acc9d266f1a7044b51c85a823f5')
    build() {
    cd $srcdir/binutils-${pkgver}
    [ $NOEXTRACT -eq 1 ] || ./configure\
    --prefix=${PREFIX} \
    --program-prefix=${TARGET}- \
    --enable-shared \
    --disable-multilib \
    --with-lib-path=${PREFIX}/lib/binutils/{TARGET} \
    --disable-nls \
    --target=${TARGET} \
    --build=${CHOST} \
    --host=${CHOST}
    # mkdir -p $pkgdir/${PREFIX}/lib/binutils
    sed -i 's|know (S_GET_VALUE (frag->tc_frag_data.last_map) < S_GET_VALUE (symbolP));|{know (S_GET_VALUE (frag->tc_frag_data.last_map) < S_GET_VALUE (symbolP));}|' gas/config/tc-arm.c || return 1
    make configure-host
    make tooldir=$pkgdir/${PREFIX}
    make prefix=$pkgdir/${PREFIX} tooldir=$pkgdir/${PREFIX} install
    mkdir -p $pkgdir/${PREFIX}/lib/binutils/${TARGET}
    cp -v include/libiberty.h $pkgdir/${PREFIX}/lib/binutils/${TARGET}
    rm -f $pkgdir/${PREFIX}/man/man1/{dlltool,nlmconv,windres}*
    rm -f $pkgdir/usr/bin/ar
    rm -f $pkgdir/usr/bin/as
    rm -f $pkgdir/usr/bin/ld
    rm -f $pkgdir/usr/bin/nm
    rm -f $pkgdir/usr/bin/objdump
    rm -f $pkgdir/usr/bin/ranlib
    rm -f $pkgdir/usr/bin/strip
    rm -f $pkgdir/usr/bin/objcopy
    rm -f $pkgdir/usr/lib/libiberty.a
    rm -rf $pkgdir/usr/share
    rm -rf $pkgdir/usr/lib/ldscripts
    gcc-base
    pkgname=arm-unknown-eabi-gcc-base
    pkgver=4.5.2
    pkgrel=1
    pkgdesc="The GNU Compiler Collection"
    arch=(i686 x86_64)
    license=('GPL' 'LGPL')
    url="http://gcc.gnu.org"
    depends=('arm-unknown-eabi-binutils' 'libmpc' 'libelf' 'cloog-ppl')
    options=(!libtool !emptydirs zipman docs !strip)
    source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-core-${pkgver}.tar.bz2)
    md5sums=('aa9e36bec080452372bfba793428ee82')
    build() {
    cd $srcdir/gcc-$pkgver
    export CFLAGS="-O2 -pipe"
    export CXXFLAGS="-O2 -pipe"
    [ $NOEXTRACT -eq 1 ] || rm -rf build
    mkdir build
    cd build
    [ $NOEXTRACT -eq 1 ] || ../configure --prefix=${PREFIX} \
    --target=${TARGET} \
    --host=$CHOST \
    --build=$CHOST \
    --enable-shared \
    --disable-nls \
    --enable-languages=c \
    --enable-multilib \
    --with-local-prefix=${PREFIX}/lib/${TARGET} \
    --with-as=${PREFIX}/bin/${TARGET}-as \
    --with-ld=${PREFIX}/bin/${TARGET}-ld \
    --enable-softfloat \
    --with-float=soft \
    --with-newlib
    make all-gcc all-target-libgcc
    make DESTDIR=$pkgdir install-gcc install-target-libgcc
    rm -f $pkgdir/usr/share/man/man7/fsf-funding.7*
    rm -f $pkgdir/usr/share/man/man7/gfdl.7*
    rm -f $pkgdir/usr/share/man/man7/gpl.7*
    rm -rf $pkgdir/usr/share/info
    cp -r $pkgdir/usr/libexec/* $pkgdir/usr/lib/
    rm -rf $pkgdir/usr/libexec
    # strip it manually
    strip $pkgdir/usr/bin/* 2>/dev/null || true
    find $pkgdir/usr/lib -type f -exec arm-none-eabi-strip {} \; 2>/dev/null || true
    newlib
    pkgname=arm-unknown-eabi-newlib
    pkgver=1.19.0
    pkgrel=1
    pkgdesc="Newlib is a C library intended for use on embedded systems."
    arch=('i686' 'x86_64')
    groups=('devel')
    url="http://sourceware.org/newlib/"
    license=('GPL')
    depends=('arm-unknown-eabi-binutils' 'arm-unknown-eabi-gcc-base')
    source=(ftp://sources.redhat.com/pub/newlib/newlib-${pkgver}.tar.gz)
    md5sums=('0966e19f03217db9e9076894b47e6601')
    build() {
    cd ${srcdir}
    rm -rf build
    mkdir build
    cd build
    export CFLAGS="-O2"
    ../newlib-${pkgver}/configure \
    --target=${TARGET} \
    --prefix=${PREFIX} \
    --enable-interwork \
    --enable-multilib \
    --with-gnu-as \
    --with-gnu-ld \
    --with-float=soft \
    --disable-nls || return 1
    make || return 1
    make -j1 DESTDIR=${pkgdir} install || return 1
    rm -rf ${pkgdir}/usr/share/info
    return 0
    gcc:
    pkgname=arm-unknown-eabi-gcc
    pkgver=4.5.2
    pkgrel=1
    pkgdesc="The GNU Compiler Collection - Cross compiler for ARM target"
    arch=(i686 x86_64)
    license=('GPL' 'LGPL')
    url="http://gcc.gnu.org"
    #an installed libc/newlib is needed for libstdc++ compile
    depends=('arm-unknown-eabi-binutils>=2.18' 'cloog-ppl>=0.15.3' 'arm-unknown-eabi-newlib>=1.18.0')
    # cross-arm-none-eabi-gcc is an superset of cross-arm-none-eabi-gcc-base
    conflicts=('arm-unknown-eabi-gcc-base')
    provides=("arm-unknown-eabi-gcc-base=${pkgver}")
    options=(!libtool !emptydirs !strip zipman docs)
    source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-${pkgver}.tar.bz2)
    md5sums=('d6559145853fbaaa0fd7556ed93bce9a')
    build() {
    cd ${srcdir}/gcc-$pkgver
    export CFLAGS="-O2 -pipe"
    export CXXFLAGS="-O2 -pipe"
    rm -rf build
    mkdir build
    cd build
    ../configure \
    --prefix=${PREFIX} \
    --target=${TARGET} \
    --build=${CHOST} \
    --host=${CHOST} \
    --disable-nls \
    --enable-multilib \
    --enable-languages=c,c++ \
    --enable-__cxa_atexit \
    --enable-interwork \
    --with-local-prefix=${PREFIX}/lib/${TARGET} \
    --with-as=${PREFIX}/bin/${TARGET}-as \
    --with-ld=${PREFIX}/bin/${TARGET}-ld \
    --with-newlib \
    --with-float=soft
    make all-gcc all-target-libgcc all-target-libstdc++-v3 || return 1
    make DESTDIR=${pkgdir} install-gcc install-target-libgcc install-target-libstdc++-v3 || return 1
    rm -f $pkgdir/usr/share/man/man7/fsf-funding.7*
    rm -f $pkgdir/usr/share/man/man7/gfdl.7*
    rm -f $pkgdir/usr/share/man/man7/gpl.7*
    rm -rf $pkgdir/usr/share/info
    rm -rf $pkgdir/usr/share/gcc-4.5.2
    cp -r $pkgdir/usr/libexec/* $pkgdir/usr/lib/ && \
    rm -rf $pkgdir/usr/libexec
    I already read linux from scratch howto for building cross compilers, though partly it contradicts with AUR comments especially in regard to --with-sysroot and --with-build-sysroot
    If someone can please shed some light on this, the gcc doc is not very helpfull
    Note: I know that a bare metal arm elf cross compiler exisis in the archlinux repository but that is not sufficient as I need different targets with some special options (where can I get the PKGBUILD from packages within the ABS?)

    Current targets are armv7vfpv3 and armv5te softfloat, this compiler(s) (afaik softfloat and hardfloat can not be put into one compiler, correct me if I am wrong) will be used as basis for kernel compileing for these architectures plus the basic packages (afaik called bootstrapping).
    And I knew it was not really newby stuff, but .. well .. after searching like 5 mins for an appropriate subforum I gave up and posted it just here, sorry
    The point is this is the basis for a lot of core packages and I just want to do it right (and atm it ain't working at all )
    Last edited by drahnr (2011-04-05 22:36:11)

  • Serial Communication using Labview with Tiva C launchpad ARM cortex M4

    I am able  to comunicate perfectly  between labview and launchpad at 9600 baudrate..When i trying to communicate with bauadrate of 115200 labview gives error "specifed state of attribute is not valid"
    I tried to communicate with serial monitor comes with arduino and its well work with it at 115200 baudrate...
    Awaiting for your replay!!!

    piZviZ wrote:
    Only data rate working is 9600  between labview and launchpad(arm cortex m4).Where all data rates work between Arduino serial port monitor and launchpad(arm cortex m4).
    Since the only thing that changed is the Launchpad, then that must be the issue.  Are you sure this device can handle more than just the 9600 baud rate?  Are you sure you are even setting the baud rate on this device?

  • Porting HotSpot?

    I am looking for information on porting HotSpot to the ARM/Linux platform. Currently, the Blackdown project has a VM for the ARM platform but no JIT whatsoever. Performance is a critial part of the project I am working on, and the interpreted mode execution is just too slow, to the point that simple UI behaviors are quite sluggish.
    This is an embedded system with a 640x480 color LCD display and a 300MHz ARM processor. We should be able to get adequate performance out of it, but without a JIT, we are probably going to have to scrap everything and switch to C++. Hardware modifications such as a Java coprocessor or accelerator are out of the question this late in the development process.
    So we are looking for help, and may be able do, or support others in doing, a port of HotSpot to ARM/Linux. Two questions:
    1. Is this feasible? I assume HotSpot can plug into the Blackdown JDK, because I know the Blackdown JDK 1.3.1 for i386/Linux uses HotSpot by default now.
    2. How much work would this take? Or are there other JITs out there that would be easier to port?
    I read on Sun's HotSpot white paper that HotSpot is basically table-driven, and if it is as simple as entering data on a new processor architecture, it seems like a relatively easy task.
    Thanks for any ideas, I am really searching for anything that can help us out.
    Cheers,
    Colin

    Hi,
    Since yesterday iam searching for this kind of task. But i did not found any answer.But after reading extensively about embedded systems(ARM etc etc) with java, i found java is too young to embedded systems.I heard, HP has made another JVM for embedded systems, which is superior than SUN JVM. But i dont know how much that will help you.
    But I sincerly suggest go with C/C++ which is proven for embedded systems.Please dont rely on SUN until they come up with few sucess stories of their JVM on ARM.
    If you found any thing please let me share it.
    Regards,
    uppala

  • Help!!!  Problem about CDC porting

    Hi all:
    I'm porting CDC to a ARM based target board, the development environment is:
    gcc 3.4.5; uClibc; uclinux 2.4.27
    now the problem is:
    I compiled the cvm executable file using static link, but when the
    cvm run, it failed because it called "dlopen" routine in its' call path and the routine always returned NULL.
    Is it necessary for the cvm to be linked dynamiclly to run correctly? It's difficult to use dynamic link in embeded environment.
    Any information or advice is very appreciated!

    besides, i found that:
    this works:
    "AND a.block LIKE '%' + 'a' + '%'"
    but these don't work:
    "AND a.block LIKE '%' + 'a' + '' + '%'"
    or
    "AND a.block LIKE '' + '%' + 'cp' + '%'"
    or
    "AND a.block LIKE '%' + 'cp' + '%' + ''"
    it seems '' is the casue of error... so strange, anyone has idea?
    micheal

  • Recommendations needed for PDA

    Hi,
    I wish to evaluate xMAM for Utilities 7.0 SR1. In that I specifically want to look at
    1. GIS/GPS integration.
    2. Push messages.
    3. RFID capabilities.
    Based on my understanding I have realised that I need a device which has
    1. Windows Mobile 5.0 (Arcpad which is required for GIS is not supported on Windows Mobile 6.0)
    2. GPS receiver
    3. Minimum 64MB RAM (128 MB is desirable).
    4. ARM/XScales/Samsung S3C processor.
    5. Minimum 2GB flash memory.
    I had shortlisted on the following series of devices
    1. HP iPAQ hw6940/hw6945 Mobile Messenger
    2. The Hp iPAQ rx5900
    Please help me with the recommended devices/comments on the devices I mentioned above.
    Helpful answers shall be rewarded.
    Thanks in advance,
    Nakul Rajurkar

    EDIT : Windows Mobile 6 officially supported by SAP (Link):
    I feel that the HTC Advantage (Athena)- (Also Known as T-Mobile Ameo) or the HTC TYTN II (Kaiser) - (Also Known as T- Mobile MDA Vario III, AT&T Tilt) should fit the bill. Though SAP does not officially support Windows Mobile 6 or 6.1, the architecture is an improvement of Windows Mobile 5 and most of the apps coded for Windows Mobile 5, work in Windows mobile 6. I give below the details of the two devices. HTC by the way is the ODM (Original Device Manufacturer) for many of the best PDAs till date - some models of HP, i-mate, O2, T- Mobile, AT&T/Cingular were made by HTC.
    HTC Advantage X7501
    Highlights
    Microsoft® Windows Mobile® 6 Professional with Direct Push Technology
    624 MHz CPU
    Built-in 8GB hard drive with miniSD™ expansion slot
    Laptop-style experience with a huge 5-inch touch screen display and detachable QWERTY keyboard
    Always “on”, connect to your office, watch videos or listen to music anywhere
    Built-in GPS
    Tri-band UMTS/HSDPA and quad-band GSM/GPRS/EDGE
    Bluetooth® and Wi-Fi®
    3 megapixel camera with auto focus and flash
    HTC VueFLO™ for easy navigation
    TV Out lets you output screen contents to an external viewing device
    Hardware:
    Intel® PXA270 624 MHz with ATi™ Graphic Chip W2284
    Microsoft® Windows Mobile® 5.0 Pocket PC Phone Edition
    ROM: 256 MB;RAM: 128 MB SDRAM
    133.5 mm (L) x 98 mm (W) x 16 mm (T)
    Thickness with keyboard: 20 mm
    359g (with battery)
    5Inch 480x640 resolution,65536 Colors transmissive TFT-LCD with backlight LEDs, touch-sensitive screen
    HSDPA/UMTS (2100 MHz for Europe, 850/1900 MHz for USA)&#65307;Quad-band GSM/GPRS/EDGE: 850, 900, 1800, 1900 MHz(The device will operate on frequencies available from the cellular network)
    5-way Navigation Control
    HTC VueFLO motion sensor assisted browsing experience
    Dual usage QWERTY keyboard for text input and display protection
    Bluetooth® 2.0,Wi-Fi®: IEEE 802.11 b/g
    HTC ExtUSB™(11-pin mini-USB and audio jack in one)
    HTC proprietary 16-pin combined port (USB 1.1 host/VGA and TV Out)
    Main camera: 3 mega-pixel camera with autofocus and flash light
    Second camera: VGA CMOS imaging sensor
    Audio Built-in/Dual, Hands-free (microphone and speaker)
    Headphone: AMR/AAC/WAV/WMA/MP3 codec
    Battery Rechargeable Lithium-ion battery ,Capacity: 2200 mAh Standby time: Up to 300 hours (for GSM/UMTS)
    Talk time (Screen off):Up to 5.5 hours for GSM;Up to 4.5 hours for UMTS;Expansion Slot *miniSD™ (Hot swap and SDHC compatible)
    AC Adapter Voltage range/frequency: 100 - 240V AC, 50/60 Hz;DC output: 5V and 1A
    HTC TYTN II
    Specs and Tech Info
    Qualcomm MSM 7200, 400MHz
    Windows Mobile 6 Professional
    ROM: 256MB (accessible 145.24MB), RAM: 128MB
    Dimension: 112mm (L) X 59mm (W) X 19mm (T)
    Weight: 190g with battery
    Display: 2.8", 240 X 320 QVGA TFT-LCD display with adjustable angle and backlight
    Network: Tri-band HSDPA/UMTS (850, 1900, 2100 MHz), Quad-band GSM/GPRS/EDGE
    Device Control: Finger scrolling and panning, 5-way navigation control, 3-way Jog Wheel
    Keyboard: Slide-out lit QWERTY keyboard
    Keyboard Layout Pictures
    Connectivity: Bluetooth 2.0, WiFi 802.11b/g, HTC ExtUSB
    GPS: Built-in GPS and connector for external antennas, A-GPS supported
    Camera: 3MP CMOS color camera with auto focus on the back, front VGA CMOS color camera (for video calls. No front Camera on AT&T Tilt.)
    Audio: Built-in mono microphone and speaker
    Audio Output: Proprietary jack
    Battery: 1350mAh rechargeable Li-polymer battery, shape: KAIS160 (35H00088-00M)
    Expansion Slot: MicroSD(SD2.0 compatible, MicroSDHC compatible up to 8gb tested)
    AC Adapter: 100-250V AC, 5V and 1A DC
    Best Regards,
    Veera
    Edited by: Veeraraagavan R on Mar 15, 2008 7:24 AM

  • SSH Not Connecting - Times Out

    Hi everyone. I'm back on Arch after a few year hiatus.
    I'm trying to SSH into my ARM based Arch linux install.
    SSHing from the local network works fine. No problems.
    When I try to SSH from outside the network, it doesn't connect and times out.
    I've created port.conf under /etc/systemd/system/sshd.socket.d/ which reads
    [Socket]
    # Disable default port
    ListenStream=
    # Set new port
    ListenStream=2222
    I have systemd.socket service running as confirmed by systemctl
    I have port forwarded port 2222 TCP\UDP on my modem to the computer's IP on the network.
    Running
    sudo tcpdump -lnn -i eth0 port 2222
    reads a lot of information. Specifically, I've tracked down the IP address that I'm trying to connect from and it reads:
    21:53:37.234872 IP 172.56.16.239.25065 > 192.168.1.195.2222: Flags [S], seq 1661893998, win 65535, options [mss 1400,nop,wscale 4,nop,nop,TS val 25806051 ecr 0,sackOK,eol], length 0
    Would anybody have an idea what the problem could be here?

    leberyo wrote:
    It's giving:
    23:22:41.322847 IP 192.168.1.195.2876 > 172.56.16.239.30117: Flags [S.], seq 2567835032, ack 1441387547, win 28960, options [mss 1460,sackOK,TS val 10693 ecr 27470940,nop,wscale 7], length 0
    ok, that is the SYN-ACK, next must be the ACK from source 172.56.16.239
    if your your outside IP-address has always 172.56.16.239, you can use
    tcpdump -i eth0 host 172.56.16.239
    to have the full traffic for this IP-address
    The curious thing is that it responds from a different IP; 192.168.1.195. Is that normal? The server is actually on 192.168.1.193. That's the address I'm using to ssh;
    ssh -p **** *@192.168.1.193
    To avoid confusion, I just changed the ssh port to 2876 which is why it's responding with that port instead of the original 2222 that I put in when I started this thread.
    No that is NOT normal, there must be an address translation somewhere; maybe the routing device between your client (172.56.16.239) and your server; this could be the problem; that the address translation is not statefull; intended to mean your client gets answers (SYN-ACK) with server ip  192.168.1.195 as source, which it just drops. Then you would see in the server-tcpdump, only repeated SYN->SYN-ACKs
    Could you also tcpdump on your client side ?
    EDIT: Is there a reason for using sshd.socket and not sshd.service ? I've no experiences with this socket ... - maybe I'm wrong with my suggestions
    Last edited by midixinga (2014-08-19 11:08:04)

  • Blank screen after grub

    Nvidia GT610 through HDMI
    I know this issue is one of the more popular ones (at least for me); however, after several hours of research, there is not much to go off of and nearly no information pertaining to this card.
    A while back, I posted an issue about a garbled screen when booting into a live enviornment and really got no where; however, I was able to work around it by using the VGA port on my motherboard and get Arch and ssh installed.
    With the closed source drivers installed, I was able to get something other than a garbled screen.  That something, unfortunately, is just a blank screen.  There isn't even an xorg log file in /var/log.
    nomodeset produces the same results.
    Any sort of lead at this point is appreciated.
    Thank you
    Last edited by linuxuser21 (2014-12-16 02:54:28)

    I have same problem: black screen after grub. This started happening after installing 'nvidia' package. My graphics card is gtx 570. I am logging in by typing username and password, then using startx blindfolded. After that i get to see desktop.
    my problem was fixed adding nomodeset parameter
    Last edited by sahtimonni (2014-12-21 11:06:26)

Maybe you are looking for

  • Can't get rid of blank iCal Alarm window

    Several days ago my MacBook pro running 10.5.8 mysteriously reset its calendar to 2000. When I reset it in Preferences/Date and Time everything was fine with the exception of an ICal blank message pane/window that keeps appearing after every sleep an

  • Erased Hard Drive and operating system accidentally via disk utility? Here's what to do

    I thought I had messed up majorly today when I attempted to erase and re-install an operating system on my friends macbook pro. I used another computer and targeted his computer so his hard drive would show up on my desktop. I then used disk utility

  • Query Pld Output

    Hello Experts, I have done a query pld in which item code , description, is repeating. How to restrict this? My Current out put is Itemcode    Item Desc      Qty   Rate       Batch No.  Batch Qty 001            ABC                 10  15000         

  • 2007 CD2 mini - monitor & TV out?

    Can a CD2 mini drive both a monitor and RCA video out without having to plug things in and out every time? It doesn't matter if it mirrors or spans I am just wondering if I pick one up to replace a G4 tower that can do exactly this that a Mini would

  • Authorization of movement types

    Dear All, I want to restrict users for Movement type, Material type wise. As per requirement ROH materials will pass through the 103,105 (quality check cycle) during procurement. For HIBE material quality check (103,105) is not required. GRN will be