Re: Windows CE on freerunner

2008-08-28 Thread Hugo Mills
On Thu, Aug 28, 2008 at 04:55:49PM +0100, Michael wrote:
> On 22/08/08 04:19:10, Vikas Saurabh wrote:
> > Awesome details.
> > 
> > I would definitely give it a try. Not intereseted in font blitting, 
> > so
> > would
> > stick to the morse code idea :).
> > Would send out the details (and wiki them).
> You should try looking up some old ZX Spectrum assembly routines, 
> because back in those days you had to write everything to the screen 
> yourself and it should be similar to the hardware nowadays.

   I wouldn't use the Spectrum as a model -- it had a really weird
non-linear frame buffer layout. In fact, none of the 8-bit micros'
code would be much help, as they typically had <1 byte per pixel,
rather than the more common 1-4 bytes per pixel of modern displays.
IIRC, the Amiga also had strange display hardware, so I'd rule that
one out as a model as well. :)

   Hugo.

-- 
=== Hugo Mills: [EMAIL PROTECTED] carfax.org.uk | darksatanic.net | lug.org.uk 
===
  PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
--- How do you become King?  You stand in the marketplace and ---
  announce you're going to tax everyone. If you get out  
   alive, you're King.   


signature.asc
Description: Digital signature
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Windows CE on freerunner

2008-08-28 Thread Michael
On 22/08/08 04:19:10, Vikas Saurabh wrote:
> Awesome details.
> 
> I would definitely give it a try. Not intereseted in font blitting, 
> so
> would
> stick to the morse code idea :).
> Would send out the details (and wiki them).
You should try looking up some old ZX Spectrum assembly routines, 
because back in those days you had to write everything to the screen 
yourself and it should be similar to the hardware nowadays.

Michael.



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


Re: Emergency call at boot time functionality (was Re: Windows CE on freerunner)

2008-08-23 Thread Fabian Henze
Am Samstag, 23. August 2008 19:04:18 schrieb Gilles Casse:
> It time is very critical, it seems better to let the phone continuously on.
>
> Otherwise is this scenario acceptable (automatic call after 3 minutes):
> the phone is off, the user still holds the power on button while the
> kernel is starting (say during 5 seconds or more), when the OS is
> operationnal, an automatic message is sent (with info on the user,
> possibly gps coordinates, etc...).

This is problematic, if the power button is pressed while the phone is in the 
pocket.

Maybe it would be possible to boot the kernel, gsm and X, then display a 
button for emergency calls while the rest (bluetooth, wifi and user interface 
stuff) is starting up. If the user presses the emergency call button the 
bootprocess stops/pauses and a menu like this shows up:
911
999
112
Continue booting


Fabian

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


Re: Emergency call at boot time functionality (was Re: Windows CE on freerunner)

2008-08-23 Thread Gilles Casse
Hello,

It time is very critical, it seems better to let the phone continuously on.

Otherwise is this scenario acceptable (automatic call after 3 minutes):
the phone is off, the user still holds the power on button while the 
kernel is starting (say during 5 seconds or more), when the OS is 
operationnal, an automatic message is sent (with info on the user, 
possibly gps coordinates, etc...).

Gilles


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


Re: Emergency call at boot time functionality (was Re: Windows CE on freerunner)

2008-08-23 Thread Yogiz
> the point i was making is that when people are in stressful
> situations they panic; even something as simple as selecting a
> different option at boot-time becomes difficult.
> 
> the point about the screen lock was an example to illustrate my main 
> point. there are many more i could have chosen, but picked one
> related to mobile phones

No, You can't generalize like that. I'm a paramedic, I know when things
are bad enough I should make the call and I don't have second doubts
about it. When the situation arises and my Freerunner is for some
reason turned off, it's not the panic element that stands before me and
a connection to the EMT dispatcher but the time that I need to make my
phone usable for said call. The choice should be there for those that
have a use for those 20 extra seconds when it's needed. It could be an
add-on and not included in the main distros, I don't care. I'm just
saying that there are people who know, how to make best use out of this
kind of solution.

I see it as an installable ipk package containing a kernel image as well
as a (modified) gsm daemon + everything else essential to the call
that would probably go on a separate partition. There would be
instructions to make to the boot manager and we'd have exactly what we
need.

Yogiz

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


Re: Emergency call at boot time functionality (was Re: Windows CE on freerunner)

2008-08-23 Thread Lothar Behrens


Am 23.08.2008 um 11:15 schrieb robin paulson:


I have talked about boot options. At this time there is no locking
screen. Simply there should be a button to bypass the normal boot by
pressing and go into an emergency mode.

This way only 8 seconds may be remaining until a emergency call  
would be

possible. Not 2 minutes.

The unlock screen may have a top left area and a top right area.  
Right

would be normal unlock and left maybe emergency call.

You must have a lock, since otherwise you may accidantly issue an
emergency call.



the point i was making is that when people are in stressful situations
they panic; even something as simple as selecting a different option  
at

boot-time becomes difficult.

the point about the screen lock was an example to illustrate my main
point. there are many more i could have chosen, but picked one related
to mobile phones



The boot menu should in this case be ONLY an emergency button. Shown for
about 3 seconds or the like, it could be pressed to bypass the normal  
boot sequence.


If the button is not pressed the normal boot will occur.

The uboot menu should not be used, because you have to press also the  
AUX button.

This is unusual for the normal user thus they forgot about it.

I have just pressed at the aux button from screen locked state. Is  
there a way to replace
the usual 'buttons' by one 'Take Emergency call' or better an icon for  
it.


The small dismiss button should stay at the mottom to go back into  
screen lock.


This could then well documented.

Also the power button could be used in paralell for the same issue.  
There is only a need to

detect, that the phone was in screen lock mode.

Lothar

--
Lothar Behrens  |Rapid Prototyping ...
Heinrich-Scheufelen-Platz 2 |XSLT Codegeneration
73252 Lenningen |www.lollisoft.de






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


Re: Emergency call at boot time functionality (was Re: Windows CE on freerunner)

2008-08-23 Thread Lothar Behrens
Am Samstag, den 23.08.2008, 10:42 +0200 schrieb Federico Lorenzi:
> On Sat, Aug 23, 2008 at 10:29 AM, Clemens Kirchgatterer
> <[EMAIL PROTECTED]> wrote:

> IIRC GSM audio can be routed directly through without using the CPU.
> Also if you had to program an emergency number before hand, you
> wouldn't need the display.
> 

I think, too, it should be possible to create a mini OS only for
emergency calls. The number to be called could be passed as a poot
parameter, thus the boot configuration may be modified by a setup
application.

A mini OS: Maybe any open OS that is fast booting (freeDOS ???)
Configuring in a DOS partition would also be possible from Linux I
think.

Is this possible ?

Lothar

> ___
> 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: Emergency call at boot time functionality (was Re: Windows CE on freerunner)

2008-08-23 Thread robin paulson
Lothar Behrens wrote:
>> problem is, you're relying on people thinking clearly, being able to 
>> make good logical decisions and correctly choosing the environment to 
>> boot into on startup. unfortunately, this is the last thing most people 
>> can do in the sort of high-stress situation which typically demands an 
>> emergency call.
>>
>> if you study some mobiles, they are able to make emergency calls without 
>> unlocking the screen, because manufacturers realise people can't even 
>> manage that simple task when they panic, even something they may do 20 
>> times a day
>>
>> [1] http://en.wikipedia.org/wiki/Splashtop
>>
> 
> I have talked about boot options. At this time there is no locking
> screen. Simply there should be a button to bypass the normal boot by
> pressing and go into an emergency mode.
> 
> This way only 8 seconds may be remaining until a emergency call would be
> possible. Not 2 minutes.
> 
> The unlock screen may have a top left area and a top right area. Right
> would be normal unlock and left maybe emergency call.
> 
> You must have a lock, since otherwise you may accidantly issue an
> emergency call.


the point i was making is that when people are in stressful situations 
they panic; even something as simple as selecting a different option at 
boot-time becomes difficult.

the point about the screen lock was an example to illustrate my main 
point. there are many more i could have chosen, but picked one related 
to mobile phones

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


Re: Emergency call at boot time functionality (was Re: Windows CE on freerunner)

2008-08-23 Thread Federico Lorenzi
On Sat, Aug 23, 2008 at 10:29 AM, Clemens Kirchgatterer
<[EMAIL PROTECTED]> wrote:
> Yogiz <[EMAIL PROTECTED]> wrote:
>
>> Everybody has their preferences. I'd really like to see a second small
>> bootable image for just emergency calls so there would be no wait.
>> There's no point in forcing that kind of thing down others' throat but
>> that could be an optional image. If the lock is easy, I have no
>> problem taking it off and dialing 112 in a hurry. I'm more worried
>> about having to wait for my small linux computer to fully boot up
>> while someone is bleeding to death in my arms.
>
> you will need a rather full blown linux image in any case. for making a
> call you need several hardware components (audio, gsm, display, maybe
> gps) up and running so you depend on the kernel drivers AND even some
> higher level userspace apps anyway. better to optimize the initial
> bootup time to a minimum.

IIRC GSM audio can be routed directly through without using the CPU.
Also if you had to program an emergency number before hand, you
wouldn't need the display.

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


Re: Emergency call at boot time functionality (was Re: Windows CE on freerunner)

2008-08-23 Thread Clemens Kirchgatterer
Yogiz <[EMAIL PROTECTED]> wrote:

> Everybody has their preferences. I'd really like to see a second small
> bootable image for just emergency calls so there would be no wait.
> There's no point in forcing that kind of thing down others' throat but
> that could be an optional image. If the lock is easy, I have no
> problem taking it off and dialing 112 in a hurry. I'm more worried
> about having to wait for my small linux computer to fully boot up
> while someone is bleeding to death in my arms.

you will need a rather full blown linux image in any case. for making a
call you need several hardware components (audio, gsm, display, maybe
gps) up and running so you depend on the kernel drivers AND even some
higher level userspace apps anyway. better to optimize the initial
bootup time to a minimum.

my 2 cents 
clemens

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


Re: Emergency call at boot time functionality (was Re: Windows CE on freerunner)

2008-08-22 Thread Yogiz
On Fri, 22 Aug 2008 20:56:35 -0400
"Chris Wright" <[EMAIL PROTECTED]> wrote:

> 2008/8/22 Lothar Behrens <[EMAIL PROTECTED]>:
> > You must have a lock, since otherwise you may accidantly issue an
> > emergency call.
> >
> > Lothar
> 
> With my current phone, you can make emergency calls on it, even if the
> phone is locked. It happened to me once. I got a call a few minutes
> later from the call center asking if everything was okay. I'd rather
> not repeat that.
> 
> Locks that do not allow emergency calls are good. Especially
> considering that you need to take various other steps to place an
> emergency call with the Freerunner (go to an application menu, choose
> an icon, dial).

Everybody has their preferences. I'd really like to see a second small
bootable image for just emergency calls so there would be no wait.
There's no point in forcing that kind of thing down others' throat but
that could be an optional image. If the lock is easy, I have no problem
taking it off and dialing 112 in a hurry. I'm more worried about having
to wait for my small linux computer to fully boot up while someone is
bleeding to death in my arms.

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


Re: Emergency call at boot time functionality (was Re: Windows CE on freerunner)

2008-08-22 Thread Chris Wright
2008/8/22 Lothar Behrens <[EMAIL PROTECTED]>:
> You must have a lock, since otherwise you may accidantly issue an
> emergency call.
>
> Lothar

With my current phone, you can make emergency calls on it, even if the
phone is locked. It happened to me once. I got a call a few minutes
later from the call center asking if everything was okay. I'd rather
not repeat that.

Locks that do not allow emergency calls are good. Especially
considering that you need to take various other steps to place an
emergency call with the Freerunner (go to an application menu, choose
an icon, dial).

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


Re: Windows CE on freerunner

2008-08-22 Thread Stroller

On 22 Aug 2008, at 09:56, Kalle Happonen wrote:
> Jeff Sadowski wrote:
>
> 
>
>>  the whole reason to buy a
>> freerunner is the fact that they support linux.
> 
>
> Isn't the whole reason to buy a freerunner, that you are free to do
> whatever you like with it? :) (the name could give a hint...)

You snipped somewhat selectively there. Sure, you're free to install  
BSD on the Freerunner, too, but installing WindowsCE just removes  
freedoms again, so why bother?

Stroller.
  

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


Re: Windows CE on freerunner

2008-08-22 Thread Alex Osborne
On 22/08/2008, at 1:19 PM, Vikas Saurabh wrote:

> I would definitely give it a try. Not intereseted in font blitting,  
> so would stick to the morse code idea :).
> Would send out the details (and wiki them).

Here you go, I wrote an extremely simple example program:

http://wiki.openmoko.org/wiki/Bare_metal

I don't have a physical device yet, so I've only tested this in qemu,  
but I can't see any obvious reason why it shouldn't work on the real  
thing.  You should be able to upload it with u-boot in USB console  
mode using kermit.  There should also be a way to flash it on in  
place of a kernel image or put it on a SD card, but I'm not familiar  
enough with u-boot to know how to do it.  Anyway, for testing it's  
probably much easier just to send it via USB each time, rather than  
mucking around reflashing or putting SD cards in and out.

You might need to adjust the for loop, as I set it based on the speed  
of qemu on my PC, it'll probably be completely different speed  
running on the device.  You might like to extend it to flash "hello  
world" in morse code, or use an LED or the vibrator instead.  You  
could get really fancy and have it "read" morse code from someone  
tapping the AUX button and make simple morse-code shell or some  
such. ;-)

If you try it on a real device, please add instructions on how you  
did it to the wiki page.

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


Re: Emergency call at boot time functionality (was Re: Windows CE on freerunner)

2008-08-22 Thread Lothar Behrens
Am Freitag, den 22.08.2008, 21:48 +1200 schrieb robin paulson:
> Lothar Behrens wrote:
> > besides of WindowsCE and I don't like it on my phone for dayly use, I 
> > like to ask another question:
> > 
> > There were some comments when booting Linux it take about 2-3 minutes. 
> > And the commentary was
> > 'How to take an emergency call ?'
> > 
> > Would such a specialized uImage.bin able to manage such an emergency call ?
> > 
> > If so, why not developing such a secondary image and change the power on 
> > screen by adding an emergency
> > button and let the user the change to do so ?
> > 
> > I think, this is very important.
> 
> 
> it's a nice idea, something like the splashtop[1] BIOS used in asus 
> motherboards?
> 
> problem is, you're relying on people thinking clearly, being able to 
> make good logical decisions and correctly choosing the environment to 
> boot into on startup. unfortunately, this is the last thing most people 
> can do in the sort of high-stress situation which typically demands an 
> emergency call.
> 
> if you study some mobiles, they are able to make emergency calls without 
> unlocking the screen, because manufacturers realise people can't even 
> manage that simple task when they panic, even something they may do 20 
> times a day
> 
> [1] http://en.wikipedia.org/wiki/Splashtop
> 

I have talked about boot options. At this time there is no locking
screen. Simply there should be a button to bypass the normal boot by
pressing and go into an emergency mode.

This way only 8 seconds may be remaining until a emergency call would be
possible. Not 2 minutes.

The unlock screen may have a top left area and a top right area. Right
would be normal unlock and left maybe emergency call.

You must have a lock, since otherwise you may accidantly issue an
emergency call.

Lothar

> ___
> 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: Emergency call at boot time functionality (was Re: Windows CE on freerunner)

2008-08-22 Thread robin paulson
Lothar Behrens wrote:
> besides of WindowsCE and I don't like it on my phone for dayly use, I 
> like to ask another question:
> 
> There were some comments when booting Linux it take about 2-3 minutes. 
> And the commentary was
> 'How to take an emergency call ?'
> 
> Would such a specialized uImage.bin able to manage such an emergency call ?
> 
> If so, why not developing such a secondary image and change the power on 
> screen by adding an emergency
> button and let the user the change to do so ?
> 
> I think, this is very important.


it's a nice idea, something like the splashtop[1] BIOS used in asus 
motherboards?

problem is, you're relying on people thinking clearly, being able to 
make good logical decisions and correctly choosing the environment to 
boot into on startup. unfortunately, this is the last thing most people 
can do in the sort of high-stress situation which typically demands an 
emergency call.

if you study some mobiles, they are able to make emergency calls without 
unlocking the screen, because manufacturers realise people can't even 
manage that simple task when they panic, even something they may do 20 
times a day

[1] http://en.wikipedia.org/wiki/Splashtop

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


Re: Windows CE on freerunner

2008-08-22 Thread Kalle Happonen
Jeff Sadowski wrote:



>  the whole reason to buy a
> freerunner is the fact that they support linux.


Isn't the whole reason to buy a freerunner, that you are free to do 
whatever you like with it? :) (the name could give a hint...)

Kalle Happonen

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


Emergency call at boot time functionality (was Re: Windows CE on freerunner)

2008-08-22 Thread Lothar Behrens


Am 22.08.2008 um 03:20 schrieb Vikas Saurabh:

Totally agreed but it would still be fun have my own hello world  
program running. Can I have a HelloWorld named as uImage.bin and  
which can be loaded by uboot.

Wait I would try that out myselfshould be interesting :)


Hi,

besides of WindowsCE and I don't like it on my phone for dayly use, I  
like to ask another question:


There were some comments when booting Linux it take about 2-3 minutes.  
And the commentary was

'How to take an emergency call ?'

Would such a specialized uImage.bin able to manage such an emergency  
call ?


If so, why not developing such a secondary image and change the power  
on screen by adding an emergency

button and let the user the change to do so ?

I think, this is very important.

Lothar

--
Lothar Behrens  |Rapid Prototyping ...
Heinrich-Scheufelen-Platz 2 |XSLT Codegeneration
73252 Lenningen |www.lollisoft.de






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


Re: Windows CE on freerunner

2008-08-22 Thread Cédric DUFOUIL
On Fri, Aug 22, 2008 at 5:19 AM, Vikas Saurabh <[EMAIL PROTECTED]>wrote:

> Awesome details.
>
> I would definitely give it a try. Not intereseted in font blitting, so
> would stick to the morse code idea :).
> Would send out the details (and wiki them).
>
> --Vikas
>

I totally agree with you ! Very  Awesome details. Thanks a lot Alex.


I'm not sure I could do such a thing, but I'm definitely interested to see
how to do it. (Just for my personnal training)
Please take us aware of what you will do.
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Windows CE on freerunner

2008-08-21 Thread Vikas Saurabh
Awesome details.

I would definitely give it a try. Not intereseted in font blitting, so would
stick to the morse code idea :).
Would send out the details (and wiki them).

--Vikas

On Fri, Aug 22, 2008 at 7:57 AM, Alex Osborne <[EMAIL PROTECTED]> wrote:

> On 22/08/2008, at 11:41 AM, Vikas Saurabh wrote:
>
> > Why can't I fool the bootloader to think that I am a kernel. I
> > always thought boot loaders just load the kernel image, pass it
> > some parameters and start executing them.
>
> Indeed, that's exactly what it does.  It loads the kernel image into
> RAM, puts some parameters and a pointer to the ATAGS (which include
> stuff the kernel command-line) into registers and jumps to the start
> of the image.  See here for details:
>
> http://www.arm.linux.org.uk/developer/booting.php
>
> >
> > I had done this helloworld kind of thing with grub during
> > college...but then maybe grub is advanced. What puzzles me is how
> > exactly?
>
> Note that the Freerunner doesn't have a BIOS.  When you did it on x86
> you probably used the BIOS' printing routines.  If you want to do it
> on the FR you'll have to do your own font blitting etc.  If you have
> a debug board you could print it to a serial port.  You can then also
> use JTAG to debug your code and figure out what is going on.  If you
> don't have the debug board, I guess you could easily enough blink out
> hello world in morse code through an LED or by turning on and off the
> backlight or something.
>
> It might also be useful to play with it in qemu, just pass in your
> binary with the -kernel option, you can connect gdb to it and step
> through line by line (see the qemu documentation for how to do this).
>
> As to how to actually do it, it's a bit of a pain.  You'll probably
> need to write a little ARM assembler stub entry point to setup a
> stack and call your C code.  Although you might be able to just reuse
> u-boots stack, I guess.  Then you'll need to compile your code with -
> nostdlib and link it in a way that ensures your assembler code is at
> the start of the image, you might need to investigate custom linker
> scripts for this, I can't remember.  You can then use something like
> "objcopy -O binary mycode.elf mycode.bin" to pull the raw code out of
> the elf file the linker generated, so that you can give it to u-boot.
>
> Remember also that you won't have any standard library, so you'll
> have to write every function you want to use yourself (or use
> something like the OSKit C library) and if you code has a bug it's
> just going to hang or reset the CPU, unless you define your own error
> handling code.
>
> So yes, certainly doable and a good learning experience but it's not
> exactly straightforward.
>
> ___
> 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: Windows CE on freerunner

2008-08-21 Thread Alex Osborne
On 22/08/2008, at 11:41 AM, Vikas Saurabh wrote:

> Why can't I fool the bootloader to think that I am a kernel. I  
> always thought boot loaders just load the kernel image, pass it  
> some parameters and start executing them.

Indeed, that's exactly what it does.  It loads the kernel image into  
RAM, puts some parameters and a pointer to the ATAGS (which include  
stuff the kernel command-line) into registers and jumps to the start  
of the image.  See here for details:

http://www.arm.linux.org.uk/developer/booting.php

>
> I had done this helloworld kind of thing with grub during  
> college...but then maybe grub is advanced. What puzzles me is how  
> exactly?

Note that the Freerunner doesn't have a BIOS.  When you did it on x86  
you probably used the BIOS' printing routines.  If you want to do it  
on the FR you'll have to do your own font blitting etc.  If you have  
a debug board you could print it to a serial port.  You can then also  
use JTAG to debug your code and figure out what is going on.  If you  
don't have the debug board, I guess you could easily enough blink out  
hello world in morse code through an LED or by turning on and off the  
backlight or something.

It might also be useful to play with it in qemu, just pass in your  
binary with the -kernel option, you can connect gdb to it and step  
through line by line (see the qemu documentation for how to do this).

As to how to actually do it, it's a bit of a pain.  You'll probably  
need to write a little ARM assembler stub entry point to setup a  
stack and call your C code.  Although you might be able to just reuse  
u-boots stack, I guess.  Then you'll need to compile your code with - 
nostdlib and link it in a way that ensures your assembler code is at  
the start of the image, you might need to investigate custom linker  
scripts for this, I can't remember.  You can then use something like  
"objcopy -O binary mycode.elf mycode.bin" to pull the raw code out of  
the elf file the linker generated, so that you can give it to u-boot.

Remember also that you won't have any standard library, so you'll  
have to write every function you want to use yourself (or use  
something like the OSKit C library) and if you code has a bug it's  
just going to hang or reset the CPU, unless you define your own error  
handling code.

So yes, certainly doable and a good learning experience but it's not  
exactly straightforward.

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


RE: Windows CE on freerunner

2008-08-21 Thread Lin Mac

You can if your image must include implementation of the low level print 
function that write characters to hardware register.
not a statically linked linux userspace helloworld program.

Best Regards,
Mac Lin

Date: Fri, 22 Aug 2008 07:11:15 +0530
From: [EMAIL PROTECTED]
To: community@lists.openmoko.org
Subject: Re: Windows CE on freerunner

Why can't I fool the bootloader to think that I am a kernel. I always thought 
boot loaders just load the kernel image, pass it some parameters and start 
executing them.

I had done this helloworld kind of thing with grub during college...but then 
maybe grub is advanced. What puzzles me is how exactly?


On Fri, Aug 22, 2008 at 6:58 AM, Jeff Sadowski <[EMAIL PROTECTED]> wrote:

you would need to replace uboot its ugly



_
5 GB 超大容量 、創新便捷、安全防護垃圾郵件和病毒 — 立即升級 Windows Live Hotmail
http://mail.live.com ___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Windows CE on freerunner

2008-08-21 Thread Vikas Saurabh
Ohh...I guess you mean that it would not be possible to load windows kernel
and tell it about the partition info etc so that it can continue booting.

I think that is fine. I would be more than happy to have my program start up
by uboot. Windows was just an example that my friend had set up.

Thanks a lot.

--Vikas

On Fri, Aug 22, 2008 at 7:20 AM, Jeff Sadowski <[EMAIL PROTECTED]>wrote:

> you can with a normal OS windows has its own bootloader
>
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Windows CE on freerunner

2008-08-21 Thread Jeff Sadowski
you can with a normal OS windows has its own bootloader

On Thu, Aug 21, 2008 at 7:41 PM, Vikas Saurabh <[EMAIL PROTECTED]> wrote:
> Why can't I fool the bootloader to think that I am a kernel. I always
> thought boot loaders just load the kernel image, pass it some parameters and
> start executing them.
>
> I had done this helloworld kind of thing with grub during college...but then
> maybe grub is advanced. What puzzles me is how exactly?
>
> On Fri, Aug 22, 2008 at 6:58 AM, Jeff Sadowski <[EMAIL PROTECTED]>
> wrote:
>>
>> you would need to replace uboot its ugly
>
>
> ___
> 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: Windows CE on freerunner

2008-08-21 Thread Vikas Saurabh
Why can't I fool the bootloader to think that I am a kernel. I always
thought boot loaders just load the kernel image, pass it some parameters and
start executing them.

I had done this helloworld kind of thing with grub during college...but then
maybe grub is advanced. What puzzles me is how exactly?

On Fri, Aug 22, 2008 at 6:58 AM, Jeff Sadowski <[EMAIL PROTECTED]>wrote:

> you would need to replace uboot its ugly
>
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Windows CE on freerunner

2008-08-21 Thread Jeff Sadowski
you would need to replace uboot its ugly

On Thu, Aug 21, 2008 at 7:20 PM, Vikas Saurabh <[EMAIL PROTECTED]> wrote:
> Totally agreed but it would still be fun have my own hello world program
> running. Can I have a HelloWorld named as uImage.bin and which can be loaded
> by uboot.
> Wait I would try that out myselfshould be interesting :)
>
> --Vikas
> PS: On a lighter note, I cant run away from that friend, he sits right
> beside my cube in my office :)
>
> On Fri, Aug 22, 2008 at 6:02 AM, David Samblas
> <[EMAIL PROTECTED]> wrote:
>>
>> Your friend is the evil temptating you doing nasty things, don't listen
>> him , run away as far as you can,
>> El vie, 22-08-2008 a las 05:51 +0530, Vikas Saurabh escribió:
>> > Hi All,
>> >
>> > I really don't want to use windows on my moko. Its rather to  prove a
>> > point to a friend of mine. So, can we install windows (if we somehow
>> > get the flash image of the OS)?
>> >
>> > Or more simply asked can I configure uBoot to launch a "Hello World"
>> > program that I compile completely statically?
>> >
>> > --Vikas
>> >
>> > PS: I guess there would be problems with the driver etc. But I that
>> > should be OKas long as I can have the booting up part..
>> >
>> > ___
>> > 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
>
>
> ___
> 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: Windows CE on freerunner

2008-08-21 Thread Jeff Sadowski
Yes you could it would be the same as putting windows ce on a gumstix.
When I first read this I was thinking I had to set someone straight.
You probably already know this but I will say it anyways.
You can buy a phone with windows ce on it already and it would be
cheaper and could do all the same things that you would be able to do
with windows ce on the free runner the whole reason to buy a
freerunner is the fact that they support linux. With linux and a good
programmer you can do things you could never have dreamed of under
windows because of licensing stipulations. and there just isn't the
driver support for windows ce on the arm processor.

On Thu, Aug 21, 2008 at 6:32 PM, David Samblas
<[EMAIL PROTECTED]> wrote:
> Your friend is the evil temptating you doing nasty things, don't listen
> him , run away as far as you can,
> El vie, 22-08-2008 a las 05:51 +0530, Vikas Saurabh escribió:
>> Hi All,
>>
>> I really don't want to use windows on my moko. Its rather to  prove a
>> point to a friend of mine. So, can we install windows (if we somehow
>> get the flash image of the OS)?
>>
>> Or more simply asked can I configure uBoot to launch a "Hello World"
>> program that I compile completely statically?
>>
>> --Vikas
>>
>> PS: I guess there would be problems with the driver etc. But I that
>> should be OKas long as I can have the booting up part..
>>
>> ___
>> 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
>

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


Re: Windows CE on freerunner

2008-08-21 Thread Vikas Saurabh
Totally agreed but it would still be fun have my own hello world program
running. Can I have a HelloWorld named as uImage.bin and which can be loaded
by uboot.
Wait I would try that out myselfshould be interesting :)

--Vikas
PS: On a lighter note, I cant run away from that friend, he sits right
beside my cube in my office :)

On Fri, Aug 22, 2008 at 6:02 AM, David Samblas <
[EMAIL PROTECTED]> wrote:

> Your friend is the evil temptating you doing nasty things, don't listen
> him , run away as far as you can,
> El vie, 22-08-2008 a las 05:51 +0530, Vikas Saurabh escribió:
> > Hi All,
> >
> > I really don't want to use windows on my moko. Its rather to  prove a
> > point to a friend of mine. So, can we install windows (if we somehow
> > get the flash image of the OS)?
> >
> > Or more simply asked can I configure uBoot to launch a "Hello World"
> > program that I compile completely statically?
> >
> > --Vikas
> >
> > PS: I guess there would be problems with the driver etc. But I that
> > should be OKas long as I can have the booting up part..
> >
> > ___
> > 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
>
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Windows CE on freerunner

2008-08-21 Thread David Samblas
Your friend is the evil temptating you doing nasty things, don't listen
him , run away as far as you can, 
El vie, 22-08-2008 a las 05:51 +0530, Vikas Saurabh escribió:
> Hi All,
> 
> I really don't want to use windows on my moko. Its rather to  prove a
> point to a friend of mine. So, can we install windows (if we somehow
> get the flash image of the OS)?
> 
> Or more simply asked can I configure uBoot to launch a "Hello World"
> program that I compile completely statically?
> 
> --Vikas
> 
> PS: I guess there would be problems with the driver etc. But I that
> should be OKas long as I can have the booting up part..
> 
> ___
> 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


Windows CE on freerunner

2008-08-21 Thread Vikas Saurabh
Hi All,

I really don't want to use windows on my moko. Its rather to  prove a point
to a friend of mine. So, can we install windows (if we somehow get the flash
image of the OS)?

Or more simply asked can I configure uBoot to launch a "Hello World" program
that I compile completely statically?

--Vikas

PS: I guess there would be problems with the driver etc. But I that should
be OKas long as I can have the booting up part..
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community