htree_dirblock_to_tree:1027: inode #2: block 8481: comm ls: bad entry in directory

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

htree_dirblock_to_tree:1027: inode #2: block 8481: comm ls: bad entry in directory

824 Views
wang12zhe
Contributor III

HW:IMX8QXP EVK

I want to update IMX8QXP rootfs by swupdate software.

There are 4 partitions:

brw-rw---- 1 root disk 179, 97 Mar 24 10:25 /dev/mmcblk1p1       //Image and dtb is here
brw-rw---- 1 root disk 179, 98 Mar 24 10:25 /dev/mmcblk1p2       //rootfs is here
brw-rw---- 1 root disk 179, 99 Mar 24 10:25 /dev/mmcblk1p3      //Image and dtb is here
brw-rw---- 1 root disk 179, 100 Mar 24 10:53 /dev/mmcblk1p4   // rootfs is here

Step1: create rootfs.ext4.gz:

dd if=/dev/zero of=rootfs.ext4 bs=1M count=4096
mkfs.ext4 rootfs.ext4
mkdir mnt
sudo  mount -o loop rootfs.ext4 /mnt
sudo cp rootfs/* mnt/ -rf
sudo umount mnt
gzip rootfs.ext4
 
Step2: create *.swu which used by swupdate
 
After update the rootfs by swupdate find the error :

 

Connected to SWUpdate via /tmp/swupdateprog
[INFO ] : SWUPDATE started : Software Update started !
[INFO ] : SWUPDATE running : Installation in progress
[INFO ] : SWUPDATE successful ! SWUPDATE successful !
[INFO ] : No SWUPDATE running : Waiting for requests...


root@imx8qxpmek:~# ls /run/media/mmcblk1p4
[ 1706.414694] EXT4-fs error (device mmcblk1p4): htree_dirblock_to_tree:1027: inode #2: block 8481: comm ls: bad entry in directory: rec_len is smaller than minimal - offset=0, inode=0, rec_len=0, name_len=0, size=4096

 

Any one can help me about this? Thanks very much

 

 

Tags (1)
0 Kudos
Reply
1 Reply

786 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport
0 Kudos
Reply