Wind River Support Network

HomeDefectsLIN7-3829
Fixed

LIN7-3829 : CLONE - WRliunx4.3 upgrade to RCPL 29, fdisk list nor flash as /dev/mtdblock0

Created: May 18, 2015    Updated: Sep 8, 2018
Resolved Date: Sep 17, 2015
Previous ID: LIN4-32617
Found In Version: 7.0
Fix Version: 7.0.0.10
Severity: Standard
Applicable for: Wind River Linux 7
Component/s: BSP

Description

Customer use WRlinux4.3, they upgrade to the latest RCPL 29 from RCPL 25.
They found that the fdisk -l command output is different after upgrade to RCPL 29.

On customer's board, a SPI nor flash is present for boot. With RCPL 25, they use fdisk -l, the /dev/mtdblock0 for the flash device will not listed.
But with RCPL 29 kernel, the fdisk -l will list the /dev/mtdblock0, and print
"Disk /dev/mtdblock0 doesn't contain a valid partition table"  to serial console.

This make customer's application in trouble, they parse the fdisk output for their application feature.
From customer's analysis, they think it's related to the change in the drivers/mtd/mtd_blkdevs.c , the blktrans_getgeo return value is different.
According to the strace output with RCPL 25 and RCPL 29, they fount fdisk call HDIO_GETGEO ioctl method, with RCPL 25 , it return -ENOTTY,
with RCPL 29, it return 0.

The change is from the patch mtd-blktrans-Hotplug-fixes.patch, seems Liu Jian integrated it. The patch is attached.

Customer want us to confirm if the return value is correct, and if the fdisk -l command output can keep the same as RCPL 25.

The customer's project is urgent, so please help to check with this issue as soon as possible.

Other Downloads


Live chat
Online