Re: loadcepc for linux



hm, our bootloader needs to know about CAN because we need a WINCE
Update over CAN possibility.
But as you said it's not that easy to jump from linux to ce, i know
that, but yeah, i thought maybe there's already a application which is
capable to do this.
I'll try it with the WinCE and the file replacing method.
Thanks for your feedback!
best regards
Mario Rogen


On Apr 10, 6:15 pm, "Paul G. Tobey [eMVP]" <p space tobey no spam AT
no instrument no spam DOT com> wrote:
I don't follow. Why does the bootloader need to know about CAN, etc.?
Wouldn't you just have a Windows CE driver for those things and, when the
driver is initialized wouldn't it initialize the hardware? If you really
want to work in two different OSes, I guess you can probably do it, but
you'll need to be sure to leave the processor in the right state before
jumping to Windows CE. I'm not at all convinced that that's going to be a
cakewalk in Linux.

I think I explained already how I'd go about it. You have a nk.bin file on
some storage device in the system (that's where the bootloader is loading it
from!). It's just a file, once Windows CE is running, so you can delete it,
replace it, do whatever you want to it.

Paul T.

<m...@xxxxxx> wrote in message

news:1176186408.808084.20600@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

i know that the nk.bin is not an executable and i also know that it's
not possible to run wince and linux at the same time, I don't need my
linux after starting winCE.

the problem is that we use the compulab module and they don't provide
source code for their bootloader, because of this we need to write a
complete new bootloader with CAN drivers, USB driver, SD driver etc..
and i think its easier to boot a linux and run all these things with
existing tools.

If it's possible to do field updates out of CE we can do that. But i
don't know how. Can you please explain howto update the Image out of
winCE?

best regards
Mario Rogen

On Apr 6, 5:39 pm, "Paul G. Tobey [eMVP]" <p space tobey no spam AT no
instrument no spam DOT com> wrote:
nk.bin is not an 'executable' in the sense that some EXE file is. It's a
file that tells you what bytes need to be in what locations in the
address
space of the processor in order for the OS to run, and what location is
that
'entry point' of that image. *IF* the nk.bin is set up to run from RAM,
you
could do what loadcepc does from DOS: reads the nk.bin file, copies the
various segments of data to the right places in RAM, and then jumps to
the
right place, but Windows CE is not designed to run from within the
context
of another operating system, so it's going to take over the MMU
operations,
etc.

I don't understand why you need Linux in order to do field updates of the
OS? Why not just write a bootloader that resides in ROM at a suitable
location to launch on startup. That would, in turn, find the nk.bin on
some
persistent storage and load it into the right locations in RAM and jump
to
it. If you need to update the nk.bin, you can do that however you want;
it's just a file in the Windows CE filesystem.

Paul T.

<m...@xxxxxx> wrote in message

news:1175847470.658831.288220@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Hi!
I've written this before in comp.arch.embedded, but nobody answered.

I'm currently working on a project with the compulab cm x270.
I want to boot a Linux OS and afterwards start a NK.bin from the
filesystem. We need that feature because we want to implement field
upgrades from USB, SD, CAN, LAN, etc..
I know that there is a app called loadcepc from microsoft, this
program is exactly what we need but without all the features like
ethernet, parallel port and serial download, i just want to run the
nk.bin from a mounted flash.
Do you know if there is such a application available?

Best regards
Mario Rogen


.



Relevant Pages

  • Re: loadcepc for linux
    ... Why does the bootloader need to know about CAN, ... Wouldn't you just have a Windows CE driver for those things and, ... cakewalk in Linux. ...
    (microsoft.public.windowsce.embedded)
  • Re: loadcepc for linux
    ... But as you said it's not that easy to jump from linux to ce, ... Wouldn't you just have a Windows CE driver for those things and, ... some storage device in the system (that's where the bootloader is loading ...
    (microsoft.public.windowsce.embedded)
  • Re: loadcepc for linux
    ... get the source for your current bootloader, ... But as you said it's not that easy to jump from linux to ce, ... Wouldn't you just have a Windows CE driver for those things and, ... driver is initialized wouldn't it initialize the hardware? ...
    (microsoft.public.windowsce.embedded)
  • Re: Reading and Writing to the NandFlash from WinCE OS
    ... the bootloader but I do not know how to do it in the WinCE OS. ... To access the flash you may use the same low-level functions you used ... inside your driver. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: How to import winCE 5.0 bootloader to winCE6.0
    ... convert to winCE 6.0 bootloader. ... I am trying to port Wince 5.0 BSP to Wince 6.0 on PXA320 Development ... I have used Wince 5.0 bootloader to download Wince 6.0 NK image. ... Desktop losing ACK, block number = 349, Ack again ...
    (microsoft.public.windowsce.platbuilder)

Loading