Regardless of which BSP you're working with, the procedure requires that you:
- Start the flash filesystem driver.
- Erase the entire flash.
- Format the partition.
- Slay the flash filesystem driver.
- Restart the flash filesystem driver.
For example, this is what you might have to do for a board than can be booted from DMON or flash:
- To boot from DMON, enter the following command to start the flash
filesystem driver:
devf-generic -s0xe8000000,32M &
- To boot from flash, enter the following command to start the
flash system driver:
devf-generic -s0x0,32M
You should now see an fs0p0 entry under
/dev.
- To prepare the area for the partition, you must erase
the entire flash.
Enter the following command:
flashctl -p/dev/fs0 -ev
- To format the partition, enter the following
command:
flashctl -p/dev/fs0p0 -f
- Now slay the flash filesystem driver:
slay devf-generic
- Finally, restart the driver:
devf-generic &
You should now see the following entries:
Entry |
Description |
/dev/fs0p0 |
OS image (32 MB) |
/dev/fs0p1 |
Flash filesystem partition (32 MB) |