This command is used make a filesystem available for access with
the filesystem access commands. Three things need to be defined to do
this. First, the name of the device on which the filesystem is stored
needs to be given to the
-d option. Secondly,
the type of filesystem it is needs to be given to the
-t option. Finally, the pathname by which the
new filesystem will be accessed needs to be supplied. Following a
successful mount, the root of the filesystem will be accessible
at the mountpoint.
RedBoot must have been built with the required filesystem support enabled in its eCos configuration in order to be able to access filesystems of the necessary type. On the majority of platforms, no filesystems are included in RedBoot at all due to the extra memory footprint overhead for RedBoot this would otherwise incur.
The following example mounts a JFFS2 partition identified by the FIS partition name "jffs2test" at location /flash :
RedBoot> fs info Filesystems available: ramfs jffs2 fatfs Devices available: /dev/flash/ /dev/mmcsd0/ Mounted filesystems: Device Filesystem Mounted on <undefined> ramfs / RedBoot> fs mount -d /dev/flash/fis/jffs2test -t jffs2 /flash RedBoot> fs info Filesystems available: ramfs jffs2 fatfs Devices available: /dev/flash/ /dev/mmcsd0/ Mounted filesystems: Device Filesystem Mounted on <undefined> ramfs / /dev/flash/fis/jffs2test jffs2 /flash RedBoot>
Consult the documentation within the generic Flash driver package on Flash I/O devices for further information on configuration and usage of /dev/flash/ devices for use with JFFS2.
Further examples of mount commands are:
Mount a JFFS2 partition located at offset 0x40000 in the first flash device, of length 2Mbytes, at location /jffs2 :
RedBoot> fs mount -d /dev/flash/0/0x40000,0x200000 -t jffs2 /jffs2
Mount a FAT partition located on the first partition of an SD card at location / :
RedBoot> fs mount -d /dev/mmcsd0/1 -t fatfs /
Mount a ROMfs partition located at address 0x48000000 in flash at location /romfs :
RedBoot> fs mount -d 0x48000000 -t romfs /romfs
Note that ROMfs uses absolute addresses as the device name, and not /dev/flash/ Flash I/O devices.