Flashing Modem Firmware
To force flash the phone modem in WebOS you need to use PmModemUpdater.
Why you might need to Flash Modem Firmware
Flashing modem firmware comes in handy if your phone is stuck in phone offline mode and will not connect to a cell signal due to modem firmware corruption. Generally caused by phone being powered down in the middle of "Full Erase" or WebOS Doctor. The phone modem firmware version becomes unknown preventing WebOS Doctor to automatically flash it during operation. To check if your phone modem is unknown type ##radio# (##72346#) in phone app and it should give you your modem firmware version otherwise say unknown.
Your modem firmware might be unknown if you are receiving the following error on a phone that is stuck in First Use without activation.
The error will loop First Use card with this message:
Your phone is experiencing an error that cannot be resolved.
Visit www.palm.com for help."
What You Need First
Before you Force Flash your modem's firmware because your it is stuck offline, you should try turning airplane mode on and off, reseting the phone, running WebOS Doctor, and any other safer/easier idea you may have. As flashing modem firmware can potentially harm your modem. As this is the message that appears when you run the PmModemUpdater command Warning!
Warning! Please make sure you have a healthy battery or using a power supply before you do your update Warning! You can potentially trashed your modem firmware if system lost the power in the middle of updating firmware Warning! To Stop it now, ctrl+c
In all cases you will need Linux accessto you phone's shell; you can use novacom, novaterm, or ssh but do not use WebOS Quick Install command line for this. If your phone is stuck on first use run Meta-Doctor to bypass activation and enable developer mode so you can gain Linux access.
How To Do It
<Note these steps are written for an original Sprint Palm Pre you need to adapt for your device>
Step 1 -
First you need to download the WebOS Doctor  version that you need. DO NOT USE ANY OTHER DOCTOR THAT IS NOT DESIGNED FOR YOUR PHONE.
Step 2 -
a. You need to extract the jar file using your favorite archiver program WinRar works fine for windows usres.
b. Resource directory includes the file webOS.tar you will need to extract this as well.
c. Within webOS.tar you will find two other .tar files you need to transfer castlecdmafw.tar
(Alternativly castleumtsfw.tar for GSM or whatever castle***fw.tar that applys to you) to your phone's media root
directory (connect phone as USB Drive and transfer it to main area not in a folder) d. Eject phone to leave USB drive mode
Step 3 -
Make sure you have plenty of battery and your phone is plugged in to either a computer, wall or touchstone to ensure you will not lose power during flashing.
Step 4 -
You will need to place the castle***fw.tar file that we extracted in step 2 to your phone's /tmp directory to do this use the following command: (this is when you start using your Linux access to phone)
<Note: Replace castle***fw.tar with the file name that applies to you>
mv /media/internal/castleumtsfw.tar /tmp
Step 5 -
This is when you run the flashing process and remember this may damage your phone's modem if you lose power or flash the wrong FW.
If you are SSHing in please make sure your connection is solid however I would suggest using Novacom or Novaterm via USB (requires WebOS SDK to be installed) <Note: Replace castle***fw.tar with the file name that applies to you>