Do you have a question? Post it now! No Registration Necessary
Subject
- Posted on
- herhighness
August 13, 2007, 2:46 pm

We are trying to run our embedded software from the compact flash.
I have a basic stripped version of linux (blosh), which loads up upon
power up, and then loads up the our kernel and our root file system
with our applications
so the blosh resides in first and second partion and actual kernel and
rfs/apps reside in partition 3 and 4 on compact flash.
we need to upgrade the firmware over the network. for this to work,
blosh receives updates over the network, and repartition the original
partitions [partition 3 and 4]. and get the kernel and rfs over the
network and installs them onto those partition.
but we are having difficulties in executing this. as blosh/kernel/RFS,
everything is run from same physical deivce, It does not let us do any
of this [repartitions, or rewriting, or mounting] as it complains that
the device is busy.
Is there a way around this.
I have a basic stripped version of linux (blosh), which loads up upon
power up, and then loads up the our kernel and our root file system
with our applications
so the blosh resides in first and second partion and actual kernel and
rfs/apps reside in partition 3 and 4 on compact flash.
we need to upgrade the firmware over the network. for this to work,
blosh receives updates over the network, and repartition the original
partitions [partition 3 and 4]. and get the kernel and rfs over the
network and installs them onto those partition.
but we are having difficulties in executing this. as blosh/kernel/RFS,
everything is run from same physical deivce, It does not let us do any
of this [repartitions, or rewriting, or mounting] as it complains that
the device is busy.
Is there a way around this.

Re: partitioning a flash drive when running from it

I think the following should work, but someone else should confirm, as im
not sure it's possible to do the chroot and unmount thing. Anyway, create a
ramdisk, copy the needed tools and libraries to it, chroot, unmount the
flash device. and do the upgrade.
--
Lasse Jensen [fafler at g mail dot com]
Linux, the choice of a GNU generation.
Lasse Jensen [fafler at g mail dot com]
Linux, the choice of a GNU generation.
Site Timeline
- » Looking for Embedded Linux Platform Specialist
- — Next thread in » Embedded Linux
-
- » VxWorks conversion
- — Previous thread in » Embedded Linux
-
- » Crosscompiling for ARM: reloc type R_ARM_ABS32 is not supported for PIC - ...
- — Newest thread in » Embedded Linux
-
- » Miernik energii potrzebny, taki domowy
- — The site's Newest Thread. Posted in » Electronics (Polish)
-
- » ESR "больших" конденсаторов
- — The site's Last Updated Thread. Posted in » Electronic Circuits (Russian)
-