Hi Jan, On 11/05/2016 09:00, Stefano Babic wrote:On the second run of swupdate the new /dev/mtd9 appears as "not attached" and so ubi_attach("/dev/mtd9") will be called ... with the corresponding kernel reaction. That's why I thought the patch has its point: it does not make sense to scan a ubi volume to contain other ubi volumes, does it?Yes, but that means that /dev/mtd9 is *not* a MTD device as it should be. swupdate scans volumes just on MTD devices and not on volumes.Have you enabled MTD_UBI_GLUEBI in your kernel ? That could explain the behavior.
Yes, MTD_UBI_GLUEBI ist set to "y" (for no special reason, will
deactivate it).
Referring to your previous mail:
Yes, I can see /dev/mtd9 in /proc/mtd:
root@tan800:~# cat /proc/mtd
dev: size erasesize name
mtd0: 00100000 00001000 "40000000.sram"
mtd1: 00140000 00020000 "uboot"
mtd2: 00020000 00020000 "uboot_env"
mtd3: 00020000 00020000 "uboot_env_redundant"
mtd4: 00c80000 00020000 "updater"
mtd5: 00200000 00020000 "dummy0"
mtd6: 00200000 00020000 "dummy1"
mtd7: 00200000 00020000 "nv_data"
mtd8: 10000000 00020000 "betrieb"
mtd9: 0f002000 0001f000 "betrieb"
root@tan800:~# mtdinfo --version
mtdinfo 1.5.1
root@tan800:~# mtdinfo /dev/mtd9
mtd9
Name: betrieb
Type: ubi
Eraseblock size: 126976 bytes, 124.0 KiB
Amount of eraseblocks: 1982 (251666432 bytes, 240.0 MiB)
Minimum input/output unit size: 2048 bytes
Sub-page size: 2048 bytes
Character device major/minor: 90:18
Bad blocks are allowed: false
Device is writable: true
root@tan800:~# ls -l /dev/mtd[8-9]
crw------- 1 root root 90, 16 May 11 09:26 /dev/mtd8
crw------- 1 root root 90, 18 May 11 09:26 /dev/mtd9
Best regards,
Jan
-- _____________________________________________________________ Jan Leupold Dr.-Ing. Entwicklung Tel.: +49 8444 9204-32 Fax: +49 8444 9204-50 leu...@rsi-elektrotechnik.de
R-S-I Elektrotechnik GmbH & Co. KG Woelkestrasse 11 D-85301 Schweitenkirchen