Re: [qtmoko] using qtmoko as an USB Mass storage device

2010-05-16 Thread Al Johnson
On Saturday 15 May 2010, Tomas Nackaerts wrote:
 Hello all,
 
 I want to use my freerunner as a USB Mass storage device. I tried to follow
 the instructions on
 http://wiki.openmoko.org/wiki/Using_the_Neo_as_an_USB_Mass_storage_device.
  But it seems there are no g_ether and g_file_storage modules present on
  QtMoko v22. Maybe they are built inside the kernel?

If there's no g_ether module then it will be built in, and g_file_storage may 
be. If so you can use the bind and unbind /sys files for the drivers instead 
of loading and unloading them. I don't remember exactly where they live, but 
it's probably something like:
echo g_ether  /sys/bus/usb/drivers/g_ether/unbind
echo g_file_storage  /sys/bus/usb/drivers/g_file_storage/bind
There is similar mechanism for setting the parameters, but I don't remember 
the details. Look for suitably names files in the g_file_storage directory.

 I also  found in the Devtools menu two scripts: 'USB device mode' and 'USB
 host mode', but i dont know what their exact use is.

Device mode is when the moko behaves as a usb device like an ethernet adapter 
or a flash drive. Host mode is when the neo behaves as a usb host so you can 
plug in and use devices 

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: qi-bootmenu-0.1 for GTA02

2010-05-16 Thread Jens Seidel
On Sat, May 15, 2010 at 11:20:03PM +0200, Torfinn Ingolfsen wrote:
 On Sat, May 15, 2010 at 4:24 PM, Dave Ball openm...@underhand.org wrote:
  This is the case if you have installed Marc's patched Qi.
 
 Which is this one , yes?
 http://www.brain-dump.org/projects/qi-bootmenu/qi-s3c2442-bootmenu-0.1.udfu
 
  If your freerunner is booting from SD card by default, and only
  displaying the bootmenu when pressing AUX while booting, then you're
  still using standard qi rather than the patched version.
 
 But how can it be, when I have installed the above qi?
 I even downloaded and installed it again, just to make sure.
 Still, the AUX press is needed.

I can confirm this. I also use the patched Qi and have to press AUX.
Nevertheless it doesn't matter when I press AUX, it's not so complicated as
when one tries to skip the first boot partition :-)

Questions:
 flash partitions are not scanned? Why?
 Is it possible to use better names (Debian or maybe 1. partition SD
  card) in the boot menu instead of /dev/mtd...

Remarks:
 http://www.brain-dump.org/projects/qi-bootmenu/#faq
 After downloading the kernel and bootloader they can be flashed to your
  device like any other distribution with dfu-util.
 is confusing. qi-bootmenu is *no* real distribution but just a kernel image
 (with embedded initrd). Reading this sentence I was not sure whether I need
 to create a new partition somewhere for the boot loader.

 The initscripts of qi-bootmenu-system are checking /proc/cmdline for a
  variable called qi-bootmenu-args and pass it to qi-bootmenu upon it's
  execution. This can be used to tweak the behaviour of the boot menu
  application via first stage bootloader arguments. Currently the flash
  partition /dev/mtdblock6 is ignored using this method.

 Mhm, how can I set a kernel command line for a kernel started from
 /dev/mtdblock6? I also do not understand the last sentence, probably
 it mentions the trouble I'm seeing.

  http://repo.or.cz/w/qi-bootmenu-system.git/blob/HEAD:/flash-kernel.sh
  tries to flash uImage-$MACHINE.bin but
  http://www.brain-dump.org/projects/qi-bootmenu/#download
  provides uImage-GTA02-bootmenu-0.1.bin.

I will continue testing this bootloader. I like it already but missing flash
support is not nice.

Jens

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


andy-tracking and gdrm-2.6.32

2010-05-16 Thread mobi phil
Hello Thomas (Hello List)

I am a bit confused with the kernel branches... I assume that
om-gta02-2.6.32 is the 2.6.32 kernel version one people are
experimenting in distros... However I was reading references to the
drm/kms changes in those distros, but your kms/drm changes do not seem
to be merged into om-gt02.6.32.

I am working on gdrm-2.6.32, but the only problem is that bluetooth is
not working at all.. Did you ever use bluototh on gdrm-2.6.32, or did
anybody else do so?


rgrds,
mobi phil

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [gta02-core] Openmoko Beagle Hybrid

2010-05-16 Thread Atilla Filiz
On Fri, May 14, 2010 at 5:36 PM, Dr. H. Nikolaus Schaller
h...@computer.orgwrote:



  However, you may also want to consider making the parts directly,
  without going via a cast. This is much more expensive for larger
  quantities, but if you only need a handful of cases anyway, it
  should be more efficient.

 The alternative would be 3D-Printing. There are now some quite good
 machines that can produce in ABS. Unfortunately these machines are
 rather expensive and operators want to have fast amortization. This
 raises cost of small quantities of cases like the freerunner well
 beyond 100 USD.

Have you contacted any hackerspaces? Check this non-exhaustive list
http://harkopen.com/hackerspaces

-- 
-
Atilla Filiz
Eindhoven University of Technology
Embedded Systems, Master's Programme

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Openmoko Beagle Hybrid

2010-05-16 Thread Shawn Rutledge
On Tue, May 11, 2010 at 12:56 AM, Dr. H. Nikolaus Schaller
h...@computer.org wrote:
 has fixed dimensions) and we can't afford to build plastic injection
 moulds (if someone has an idea how to reduce cost this is very
 welcome). So the easiest solution was to combine what we have: a given
 Beagleboard and the Freerunner case.

Personally I don't see what the big deal is with mold-making.  Anybody
could start a business doing that if it's so lucrative: get a Harbor
Freight or other cheap milling machine and some blocks of aluminum,
and develop the skill to do sufficiently accurate machining.  (I have
tried a little milling but my skill level definitely needs a lot of
improvement; maybe it will if I ever get around to doing enough of
it.)  Of course CNC would be nice, but again, what's the big deal...3
steppers or servo motors and a controller...  As someone else
mentioned the Chinese obviously aren't having too much trouble with
mold-making.

It's also within the realm of possibility to make your own injection
molding machine.  There is a book (Gingery) about how to do that, but
there is nothing too exotic in that book either... it's just a heated
cylinder and piston arrangement with a lever to apply the pressure.
Hot plastic comes squirting out, and you have your mold clamped in
place to receive it.

Alternatives include building a RepRap, making the plastic parts
directly, and putting up with rough, inaccurate results; buying a
better rapid prototyping machine (FDM type or laser sintering or the
type that builds up parts from thin laminates); or directly
CNC-milling the cases (you could even use wood then).  As a DIY/hacker
type thing rather than commercial, it might fly.  Maybe try to get a
story in Make Magazine because there seems to be a trendy new crowd of
DIY/hacker types nowadays, who weren't around a couple years ago.

Or get it made at one of the rapid-prototyping shops.  For every type
of RP technology there are multiple shops doing on-demand prototypes.

In any event, the case design could be posted on

http://www.thingiverse.com/

and maybe someone who has a RepRap or similar can try to make a prototype.

There was a design contest going on but I guess the time has passed:

http://blog.makezine.com/archive/2010/04/makerbot_giveaway.html

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [qtmoko] using qtmoko as an USB Mass storage device

2010-05-16 Thread Radek Polak
On Saturday 15 May 2010 17:20:02 Tomas Nackaerts wrote:

 I want to use my freerunner as a USB Mass storage device. I tried to follow
 the instructions on
 http://wiki.openmoko.org/wiki/Using_the_Neo_as_an_USB_Mass_storage_device.

The problem is kernel config for QtMoko. You can build only one gadged driver 
in kernel and the one is in QtMoko USB ethernet.

The solution is to have USB ethernet and USB storage as modules. But it has 
also one downside for me as developer: you need working /lib/modules on the 
phone and which makes swapping different kernels very very difficult.

I would consider compiling etherent and mass storage as modules, but i cant 
see any real reason why anyone would need to use mass storage. It's possible 
to mount freerunner's filesystem with sshfs which is very easy to do. You can 
also setup NFS. The SD card can be formated and paritioned on freerunner.

If somebody brings up good reason why USB mass storage is needed i will make 
it possible as default in QtMoko.

Btw you can even now recompile kernel with mass storage support :)

Regards

Radek

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: QtMoko v22

2010-05-16 Thread Radek Polak
On Saturday 15 May 2010 17:47:47 mobi phil wrote:

 but still do not know if it is based on andy tracking.

All 2.6.29 kernels in QtMoko are based on andy-tracking. They are built with 
nodebug config and wifi patch from here:


 whatever kernel it is.. does it have the Thomas Whites Kms stuff merged?
 
 On Sat, May 15, 2010 at 1:54 PM, Torfinn Ingolfsen tin...@gmail.com wrote:
  On Sat, May 15, 2010 at 1:31 PM, mobi phil m...@mobiphil.com wrote:
  the uImage-v22.bin is 2.6.29 isn't it?
  
  Yes, QtMoko V22 has this kernel:
   neo:~# uname -a
  Linux neo 2.6.29-rc3-v21 #10 Tue Apr 6 22:54:31 CEST 2010 armv4tl
  GNU/Linux
  
  was not following for a while the list... could anybody tell me where
  I could find a 2.6.32.bin?
  
  QtMoko V23 (testing) has this kernel:
   neo:~# uname -a
  Linux neo 2.6.32v20 #16 Tue May 4 21:11:16 CEST 2010 armv4tl GNU/Linux
  
  HTH
  --
  Regards,
  Torfinn Ingolfsen
  
  ___
  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: [qt-moko] QX config being ignored

2010-05-16 Thread Radek Polak
On Friday 14 May 2010 23:34:25 Tiago Bortoletto Vaz wrote:

 * kbd=false launches an empty keyboard area
 * rotate=true doesn't work

I implemented rotating with accelerometers. Try to flip the freerunner and it 
should call xrandr -o N where N is number according to current rotation.

It worked last time i tried, but i have white screens quite often.

 My system has the v22 /opt tree. I've tried above with both fbdev and glamo
 setup in xorg.conf.
 
 neo:~# uname -a
 Linux neo 2.6.29-rc3-v21 #10 Tue Apr 6 22:54:31 CEST 2010 armv4tl GNU/Linux
 
 neo:~# dpkg -l xserver-xorg* |grep ii
 ii  xserver-xorg1:7.5+5  the X.Org
 X server ii  xserver-xorg-core   2:1.7.6.901-3   
 Xorg X server - core server ii  xserver-xorg-input-all  1:7.5+5   
   the X.Org X server -- input driver metapacka ii 
 xserver-xorg-input-evdev1:2.3.2-4X.Org X
 server -- evdev input driver ii  xserver-xorg-input-synaptics1.2.2-2  
Synaptics TouchPad driver for X.Org server ii 
 xserver-xorg-input-wacom0.10.5+20100416-1X.Org X
 server -- Wacom input driver ii  xserver-xorg-video-fbdev1:0.4.2-2
X.Org X server -- fbdev display driver ii 
 xserver-xorg-video-glamo0.0.0+20091108.git9918e082-2 X.Org X
 server -- SMedia Glamo display drive

I havent made the rotation working with full X server. So cant help very much 
here.

 Btw, it would be great if I could bring a chroot from my full Debian system
 in /media/card to QX. Can you think an elegant way to perform this?

Write a script that chroots there and place a .desktop file for it in 
/usr/share/applications. QX should find it and it should appear in the 
favourites menu. I think it should be possible to work that way.

Regards

Radek

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: QtMoko v22

2010-05-16 Thread Radek Polak
On Saturday 15 May 2010 17:47:47 mobi phil wrote:

 but still do not know if it is based on andy tracking.

All 2.6.29 kernels in QtMoko are based on andy-tracking. They are built with 
nodebug config and wifi patch from here:

http://github.com/radekp/qtmoko/tree/master/devices/neo/linux_kernel/

 whatever kernel it is.. does it have the Thomas Whites Kms stuff merged?

no - andy-tracking does not have kms stuff. All 2.6.32 kernels were until now 
also without kms - they are built from om-gta02-2.6.32. At that time KMS 
branch had some problem, which were fixed. Last time i tried KMS branch it 
worked fine. So maybe next 2.6.32 based release will be with kms.

Regards

Radek

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Openmoko Beagle Hybrid

2010-05-16 Thread Dr. H. Nikolaus Schaller
The problem is not technology or DIY capabilities, but cost.

What we want to have is a nice case achievable for everybody, not only  
the enthusiast who wants to spend time and money for experimenting  
with DIY hardware or commercial FDM.

So the question is how much does a SW developer want to pay to get HW  
+ Case? Let's say 50 EUR per plastic case.

FDM is at least 200 EUR (that is what we got as a quotation from the  
rapid-prototyping shops for a simple part and not the whole case). Or  
700 EUR for a Cupcake. Or 5k for a protomold made thing. Or 10-20k EUR  
for a 3D printer. A full freerunner case consists of 6 plastic parts  
(incl. 2 buttons).

The other side is expectation of quality/robustness. I have been told  
by experts who own a RepRap/CupCake that the precision is not good  
enough to reproduce a Freerunner case (wall thickness 0.5mm).


Am 17.05.2010 um 06:03 schrieb Shawn Rutledge:

 On Tue, May 11, 2010 at 12:56 AM, Dr. H. Nikolaus Schaller
 h...@computer.org wrote:
 has fixed dimensions) and we can't afford to build plastic injection
 moulds (if someone has an idea how to reduce cost this is very
 welcome). So the easiest solution was to combine what we have: a  
 given
 Beagleboard and the Freerunner case.

 Personally I don't see what the big deal is with mold-making.  Anybody
 could start a business doing that if it's so lucrative: get a Harbor
 Freight or other cheap milling machine and some blocks of aluminum,
 and develop the skill to do sufficiently accurate machining.  (I have
 tried a little milling but my skill level definitely needs a lot of
 improvement; maybe it will if I ever get around to doing enough of
 it.)  Of course CNC would be nice, but again, what's the big deal...3
 steppers or servo motors and a controller...  As someone else
 mentioned the Chinese obviously aren't having too much trouble with
 mold-making.


 It's also within the realm of possibility to make your own injection
 molding machine.  There is a book (Gingery) about how to do that, but
 there is nothing too exotic in that book either... it's just a heated
 cylinder and piston arrangement with a lever to apply the pressure.
 Hot plastic comes squirting out, and you have your mold clamped in
 place to receive it.

 Alternatives include building a RepRap, making the plastic parts
 directly, and putting up with rough, inaccurate results; buying a
 better rapid prototyping machine (FDM type or laser sintering or the
 type that builds up parts from thin laminates); or directly
 CNC-milling the cases (you could even use wood then).  As a DIY/hacker
 type thing rather than commercial, it might fly.  Maybe try to get a
 story in Make Magazine because there seems to be a trendy new crowd of
 DIY/hacker types nowadays, who weren't around a couple years ago.

 Or get it made at one of the rapid-prototyping shops.  For every type
 of RP technology there are multiple shops doing on-demand prototypes.

 In any event, the case design could be posted on

 http://www.thingiverse.com/

 and maybe someone who has a RepRap or similar can try to make a  
 prototype.

 There was a design contest going on but I guess the time has passed:

 http://blog.makezine.com/archive/2010/04/makerbot_giveaway.html

 ___
 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: Openmoko Beagle Hybrid

2010-05-16 Thread Dr . H . Nikolaus Schaller
The problem is not technology or DIY capabilities, but cost.

What we want to have is a nice case achievable for everybody, not only  
the enthusiast who wants to spend time and money for experimenting  
with DIY hardware or commercial FDM.

So the question is how much does a SW developer want to pay to get HW  
+ Case? Let's say 50 EUR per plastic case.

FDM is at least 200 EUR (that is what we got as a quotation from the  
rapid-prototyping shops for a simple part and not the whole case). Or  
700 EUR for a Cupcake. Or 5k for a protomold made thing. Or 10-20k EUR  
for a 3D printer. A full freerunner case consists of 6 plastic parts  
(incl. 2 buttons).

The other side is expectation of quality/robustness. I have been told  
by experts who own a RepRap/CupCake that the precision is not good  
enough to reproduce a Freerunner case (wall thickness 0.5mm).

So if we find a method that allows to make 10 units from a budget of  
500 EUR or 100 units from a total budget of 5000 EUR I am happy!


Am 17.05.2010 um 06:03 schrieb Shawn Rutledge:

 On Tue, May 11, 2010 at 12:56 AM, Dr. H. Nikolaus Schaller
 h...@computer.org wrote:
 has fixed dimensions) and we can't afford to build plastic injection
 moulds (if someone has an idea how to reduce cost this is very
 welcome). So the easiest solution was to combine what we have: a  
 given
 Beagleboard and the Freerunner case.

 Personally I don't see what the big deal is with mold-making.  Anybody
 could start a business doing that if it's so lucrative: get a Harbor
 Freight or other cheap milling machine and some blocks of aluminum,
 and develop the skill to do sufficiently accurate machining.  (I have
 tried a little milling but my skill level definitely needs a lot of
 improvement; maybe it will if I ever get around to doing enough of
 it.)  Of course CNC would be nice, but again, what's the big deal...3
 steppers or servo motors and a controller...  As someone else
 mentioned the Chinese obviously aren't having too much trouble with
 mold-making.


 It's also within the realm of possibility to make your own injection
 molding machine.  There is a book (Gingery) about how to do that, but
 there is nothing too exotic in that book either... it's just a heated
 cylinder and piston arrangement with a lever to apply the pressure.
 Hot plastic comes squirting out, and you have your mold clamped in
 place to receive it.

 Alternatives include building a RepRap, making the plastic parts
 directly, and putting up with rough, inaccurate results; buying a
 better rapid prototyping machine (FDM type or laser sintering or the
 type that builds up parts from thin laminates); or directly
 CNC-milling the cases (you could even use wood then).  As a DIY/hacker
 type thing rather than commercial, it might fly.  Maybe try to get a
 story in Make Magazine because there seems to be a trendy new crowd of
 DIY/hacker types nowadays, who weren't around a couple years ago.

 Or get it made at one of the rapid-prototyping shops.  For every type
 of RP technology there are multiple shops doing on-demand prototypes.

 In any event, the case design could be posted on

 http://www.thingiverse.com/

 and maybe someone who has a RepRap or similar can try to make a  
 prototype.

 There was a design contest going on but I guess the time has passed:

 http://blog.makezine.com/archive/2010/04/makerbot_giveaway.html

 ___
 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