This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Mount 2 jffs2 partitions on 1 flash device
- From: Deroo Stijn <S dot Deroo at TELEVIC dot com>
- To: "ecos-discuss at sources dot redhat dot com" <ecos-discuss at sources dot redhat dot com>
- Date: Tue, 28 Apr 2009 10:32:46 +0200
- Subject: [ECOS] Mount 2 jffs2 partitions on 1 flash device
Hi,
I have two partitions on one flash device, and I try to mount both at the same time:
mount("/dev/flash1", "/", "jffs2")
mount("/dev/flash2", "/fs2", "jffs2")
The first partition is mounted without problems, but the second one isn't mounted at all because the entry "/dev/flash2" is not in the 'DEVTAB' table although I configured the flash2 as follows:
...
cdl_component CYGPKG_IO_FLASH_BLOCK_DEVICE_2 {
user_value 1
};
cdl_option CYGDAT_IO_FLASH_BLOCK_DEVICE_NAME_2 {
# user_value "\"/dev/flash2\""
# Default value: "\"/dev/flash2\""
};
#
cdl_interface CYGINT_IO_FLASH_BLOCK_CFG_2 {
# Implemented by CYGNUM_IO_FLASH_BLOCK_CFG_STATIC_2, active, enabled
# Implemented by CYGNUM_IO_FLASH_BLOCK_CFG_STATIC_ABSOLUTE_2, active, disabled
# Implemented by CYGNUM_IO_FLASH_BLOCK_CFG_FIS_2, active, disabled
# This value cannot be modified here.
# Flavor: data
# Current_value: 1
# Requires: 1 == CYGINT_IO_FLASH_BLOCK_CFG_2
# CYGINT_IO_FLASH_BLOCK_CFG_2 == 1
# --> 1
# The following properties are affected by this value
# interface CYGINT_IO_FLASH_BLOCK_CFG_2
# Requires: 1 == CYGINT_IO_FLASH_BLOCK_CFG_2
};
cdl_component CYGNUM_IO_FLASH_BLOCK_CFG_STATIC_2 {
# Flavor: bool
user_value 1
# value_source user
# Default value: 1
};
cdl_option CYGNUM_IO_FLASH_BLOCK_OFFSET_2 {
# Flavor: data
user_value 0x660000
# value_source user
# Default value: 0xFFFFFFFF
# Requires: 0xFFFFFFFF != CYGNUM_IO_FLASH_BLOCK_OFFSET_2
# CYGNUM_IO_FLASH_BLOCK_OFFSET_2 == 0x660000
# --> 1
# The following properties are affected by this value
# option CYGNUM_IO_FLASH_BLOCK_OFFSET_2
# Requires: 0xFFFFFFFF != CYGNUM_IO_FLASH_BLOCK_OFFSET_2
# option CYGNUM_IO_FLASH_BLOCK_LENGTH_2
# Requires: 0 != CYGNUM_IO_FLASH_BLOCK_OFFSET_2
};
cdl_option CYGNUM_IO_FLASH_BLOCK_LENGTH_2 {
# Flavor: data
user_value 0x400000
# value_source user
# Default value: 0
# Requires: 0 != CYGNUM_IO_FLASH_BLOCK_OFFSET_2
# CYGNUM_IO_FLASH_BLOCK_OFFSET_2 == 0x660000
# --> 1
};
...
Does someone know how to mount two partitions on one flash device?
Kind regards,
Stijn.
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss