Re: How to forward FreeRunner's audio ?
I did it in other direction (freerunner as network headphones) and pulseaudio performance were excellent, only thing you need is to select right mixer, one without floating point calculations. Other direction worked well too i think. Only problem i faced after upgrade - it stopped working due to some arm segfault, don't know may be this already fixed. Gennady В Пнд, 20/06/2011 в 12:03 +0200, Dr. Michael Lauer пишет: > Pulseaudio could indeed do what you're after, however > we had to remove pulseaudio from the SHR distribution > due to its abysmal performance on armv4. > > :M: > > ___ > Openmoko community mailing list > community@lists.openmoko.org > http://lists.openmoko.org/mailman/listinfo/community ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [opkg] "Cannot install package package.tar.gz"
On Fri, 24 Jun 2011 17:11:56 +0200, Thomas Zimmermann wrote: >A opkg package is ar package not a tar.gz. So just package it the right way >and it should work. Thanks Thomas, that did it: root:/var/tmp> ./opkg-cl install package.opk Installing opkg-hello (0.0.1) to root... The name of this script is "/tmp/opkg-4Oa1dd/opkg-hello-MjJMjr/preinst". Configuring opkg-hello. The name of this script is "//usr/lib/opkg/info/opkg-hello.postinst". root:/var/tmp> ls -al /bin/hello -rwxr-xr-x1 root root 4968 Jun 24 2011 /bin/hello root:/var/tmp> hello Hello World So the two following documents... http://inportb.com/2010/10/19/making-an-opkg-package/ www.oesf.org/index.php?title=Pdaxrom:_Create_An_Ipk_Howto ... include two errors: 1. After compiling control.tar.gz and data.tar.gz, a package is not created either with tar" or "ar", or "tar" followed by "ar", but simply with "ar -r mypackage.opk control.tar.gz data.tar.gz debian-binary" 2. Control files must not be located in ./CONTROL/ but rather at the root; Otherwise, "opkg-cl install" triggers "pkg_init_from_file: Malformed package file package.opk" This won't work either: "tar czvf control.tar.gz CONTROL/*". Maybe "tar" offers an option to leave out the path leading to the files. Bottom line: control.tar.gz must NOT include paths. Thanks for the help. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [QtMoko] Package creation
On Friday 24 June 2011 12:31:08 Giacomo 'giotti' Mariani wrote: > Hello everybody, > I've recently managed to build my first, useless, package for > QtMoko [1] in .qpk format [2]. > The problem is that I'm not able to install it :-( > How can I transform it in a deb one (or install it as it is)? Hi, it's quite easy, just copy "debian" folder from some existing package, e.g. https://github.com/radekp/qgcide/tree/master/debian and adapt it to your project. Then just do dpkg-buildpackage If you were using cross compiler it will have wrong architecture (x86), but you can use dpkg with force flag on FR to install it. If you want to have correct ARM build you need qtmoko sources compiled on ARM - i am doing it in qemu. I can do this for you when your app is ready, if you dont want to bother with qemu installation. Regards Radek ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: qi: use "\r\n" in serial console?
Harald Koenig writes: >* [-]onlcr > translate newline to carriage return-newline Yep. > that's why a single \n results on \r\n on a real terminal, Indeed. > so yes, \r\n *is* the correct output at the "more physical" layer... So, does the Qi patch look sane? ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: qi: use "\r\n" in serial console?
On Jun 24, Timo Juhani Lindfors wrote: > so clearly Qi and Linux are sending different line endings. > > Can somebody else with a debug board confirm? in your linux console, run "stty -a" and in this output look for "onlcr" or "-onlcr" ! for my (non-openmoko) linux this gives stty -a | grep onlcr opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0 ^ where the man page explains * [-]onlcr translate newline to carriage return-newline that's why a single \n results on \r\n on a real terminal, this is standard unix termial behaviour for the last decades. and it's standard unix that you can change this settings -- just try stty -onlcr so yes, \r\n *is* the correct output at the "more physical" layer... have fun, Harald -- "I hope to die ___ _ before I *have* to use Microsoft Word.", 0--,|/OOO\ Donald E. Knuth, 02-Oct-2001 in Tuebingen.<_/ / /OOO\ \ \/OOO\ \ O|// \/\/\/\/\/\/\/\/\/ Harald Koenig // / \\ \ koe...@tat.physik.uni-tuebingen.de ^ ^ ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [opkg] "Cannot install package package.tar.gz"
Am Freitag, 24. Juni 2011, 15:41:38 schrieb Gilles Ganault: > Hello > > I've never built packages before (Debian or opkg). I used the > following short article, but it doesn't work: > > http://inportb.com/2010/10/19/making-an-opkg-package/ > > When I try to install the package on a Linux appliance: > = > var/tmp> ./opkg-cl install package.tar.gz > Unknown package 'package.tar.gz'. > Collected errors: > * opkg_install_cmd: Cannot install package package.tar.gz. > = A opkg package is ar package not a tar.gz. So just package it the right way and it should work. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [opkg] "Cannot install package package.tar.gz"
On Fri, 24 Jun 2011 15:41:38 +0200, Gilles Ganault wrote: >= >var/tmp> ./opkg-cl install package.tar.gz >Unknown package 'package.tar.gz'. >Collected errors: > * opkg_install_cmd: Cannot install package package.tar.gz. >= I don't know if it means anything but searching the trunk... http://code.google.com/p/opkg/source/browse/ ... the only occurence of "Unknown package" is found in in trunk/libopkg/opkg_install.c: = new = pkg_hash_fetch_best_installation_candidate_by_name(pkg_name); if (new == NULL) { opkg_msg(NOTICE, "Unknown package '%s'.\n", pkg_name); return -1; } = Could it be that opkg packages require some kind of hashing (eg. MD5) not mentionned in the tutorial? ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
[opkg] "Cannot install package package.tar.gz"
Hello I've never built packages before (Debian or opkg). I used the following short article, but it doesn't work: http://inportb.com/2010/10/19/making-an-opkg-package/ When I try to install the package on a Linux appliance: = var/tmp> ./opkg-cl install package.tar.gz Unknown package 'package.tar.gz'. Collected errors: * opkg_install_cmd: Cannot install package package.tar.gz. = Here's what I did: = /usr/src/mypackage# tree . +-- bin ¦ +-- hello ¦ +-- hello.c +-- control +-- debian-binary +-- postinst +-- postrm +-- preinst +-- prerm = /usr/src/mypackage# cat control Package: mypackage Version: 0.0.1 Description: Sample OPKG package Maintainer: John Doe Architecture: all /usr/src/mypackage# cat preinst #!/bin/sh echo "The name of this script is \"$0\"." /usr/src/mypackage# cat postinst #!/bin/sh echo "The name of this script is \"$0\"." /usr/src/mypackage# cat prerm #!/bin/sh echo "The name of this script is \"$0\"." /usr/src/mypackage# cat postrm #!/bin/sh echo "The name of this script is \"$0\"." /usr/src/mypackage# cat debian-binary 2.0 = /usr/src/mypackage# tar czvf control.tar.gz control pre* post* /usr/src/mypackage# tar czvf data.tar.gz bin/hello /usr/src/mypackage# tar czvf package.tar.gz control.tar.gz data.tar.gz /usr/src/mypackage# mv package.tar.gz /var/www = FWIW, I used "hexadump" to check that lines end with LF (0a). Does someone have a hint about what could be wrong? Thanks for any help. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
[QtMoko] Package creation
Hello everybody, I've recently managed to build my first, useless, package for QtMoko [1] in .qpk format [2]. The problem is that I'm not able to install it :-( How can I transform it in a deb one (or install it as it is)? Thanks Giacomo [1] qtcapra, a Vittorio Sgarbi emulator. [2] http://sourceforge.net/apps/mediawiki/qtmoko/index.php?title=Application_development#Step_2_-_port_to_QtMoko -- ## giacomo 'giotti' mariani gpg --keyserver pool.sks-keyservers.net --recv-key 0x99bfa859 O< ASCII ribbon campaign: stop HTML mail www.asciiribbon.org ## ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: qi: use "\r\n" in serial console?
Fox Mulder writes: > I don't know picocom but Linux normally uses \n while windows uses \r\n. > So if qi only use \n it is corrrect for linux. In files on the disk yes. But I'm talking about serial communiatications here. If I boot with Qi I see Qi Bootloader s3c2442 wallwart debian_20100105-1~unrelease0 2011-06-06T08:29:17+ Copyright (C) 2008 Openmoko, Inc. Detected: Freerunner / GTA02, A6 PCB Battery condition reasonable Trying kernel: SD Card EXT2 P1 Kernel Card Type: SD 2.0 SDHC / Mfr: 0x02, OEM "TM" / SA08G", rev 0.6 / s/n: 576236754 / date: 12/2010 SDHC size: 7592 MiB Partition: 1 start +52 512-byte blocks, size 16 MiB EXT2 open: boot/noboot-GTA02 Open failed EXT2 open: boot/append-GTA02 OK EXT2 open: boot/uImage-GTA02.bin OK Found: "Debian FreeRunner Kernel" Size: 2148 KiB EXT2 open: boot/uImage-GTA02.bin OK Cmdline: loglevel=4 console=tty0 console=ttySAC2,115200 init=/sbin/init ro mtdparts=physmap-flash:-(nor);neo1973-nand:0x0004(qi),0x0004(depr-ub-env),0x0080(kernel),0x000a(depr),0x0004(identity-ext2),0x0f6a(rootfs) g_ether.dev_addr=00:1F:11:01:62:8A g_ether.host_addr=00:1F:11:01:62:8B root=/dev/mmcblk0p1 rootdelay=1 rootdelay=8 panic=20 mem=127M root=/dev/mmcblk0p2 loglevel=8 rootfstype=ext3 Starting ---> Uncompressing Linux... done, booting the kernel. [0.00] Linux version 2.6.34-20101212.git049b71de (root@neo) (gcc version 4.6.1 20110611 (prerelease) (Debian 4.6.0-13) ) #1 Fri Jun 17 00:09:05 UTC 2011 [0.00] CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177 [0.00] CPU: VIVT data cache, VIVT instruction cache [0.00] Machine: GTA02 [0.00] Memory policy: ECC disabled, Data cache writeback [0.00] On node 0 totalpages: 32512 [0.00] free_area_init_node: node 0, pgdat c0432c00, node_mem_map c0487000 [0.00] Normal zone: 254 pages used for memmap [0.00] Normal zone: 0 pages reserved [0.00] Normal zone: 32258 pages, LIFO batch:7 [0.00] CPU S3C2442B (id 0x32440aab) [0.00] S3C24XX Clocks, Copyright 2004 Simtec Electronics [0.00] S3C244X: core 400.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz [0.00] CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on so clearly Qi and Linux are sending different line endings. Can somebody else with a debug board confirm? -Timo ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community