Old regression with MTD devices disappearing from a Kurobox HD/HG

Scott Wood scottwood at freescale.com
Fri Apr 17 10:03:00 AEST 2015


On Thu, 2015-04-16 at 21:01 -0300, Rogério Brito wrote:
> Dear Scott.
> 
> On Apr 16 2015, Scott Wood wrote:
> > On Thu, 2015-04-16 at 19:55 -0300, Rogério Brito wrote:
> > > Is there any "proper" way for me to discover what device name the kernel
> > > uses? I have tried the following command lines without success:
> > > 
> > > 1 - mtdparts=myflash:4096k(allflash),3072k(firmimg),448k at 3072k(bootcode),64k at 3520k(status),512k at 3584k(conf)
> > > 2 - mtdparts=physmap-flash:3072k(firmimg),448k at 3072k(bootcode),64k at 3520k(status),512k at 3584k(conf)
> > > 3 - mtdparts=cfi_cmdset_0002:3072k(firmimg),448k at 3072k(bootcode),64k at 3520k(status),512k at 3584k(conf)
> > 
> > Look in sysfs.
> 
> The output that I get from sysfs is:
> 
>     # ls -l /sys/block/mtdblock0
>     lrwxrwxrwx 1 root root 0 Apr 16 20:42 /sys/block/mtdblock0 -> ../devices/platform/physmap-flash.0/mtd/mtd0/mtdblock0
>     # cat /sys/devices/platform/physmap-flash.0/uevent
>     DRIVER=physmap-flash
>     MODALIAS=platform:physmap-flash
>     # cat /sys/devices/platform/physmap-flash.0/driver_override
>     (null)
> 
> So, it is saying that the driver is physmap-flash, right?

It looks like the device name is "physmap-flash.0".  You're partitioning
the device, not the driver.

-Scott




More information about the Linuxppc-dev mailing list