UBI Tools - problem with multiple ubi devices.

John Smith john at arrows.demon.co.uk
Tue Feb 27 16:12:31 EST 2007


In
GIT:      users/haver/mtd-utils.git
File:     ubi-utils/src/libubi.c
Function: get_ubi_info

The code counts the number of UBI volumes by looking for files called

  /sys/class/ubi0, /sys/class/ubi1, ...

but the files are actually

  /sys/class/ubi/ubi0, ...

The count starts from 1 (probably also wrong), so is usable if there is a
single UBI device. But if there is more than one UBI device, tools like
ubimkvol fail.

John







More information about the linux-mtd mailing list