This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM335X SDK8.0 SD Card can't support Hotplug

Dear everyone:

          Study SDK8.0 on TI AM335x Starter Kit Board, I found SDK8.0  SD Card can't support Hotplug, but SDK6.0 can support!

          Stduy SDK8.0, I found could probe the SD Card remove, but insert SD Card, print information have error

         The error information:

 root@am335x-evm:~# [ 5465.984174] mmc0: card 1234 removed
[ 5466.061996] EXT4-fs error (device mmcblk0p2): ext4_find_entry:1302: inode #8142: comm udevd: reading directory lblock 0
[ 5466.078826] EXT4-fs error (device mmcblk0p2): ext4_find_entry:1302: inode #2: comm udevd: reading directory lblock 0
[ 5466.090903] EXT4-fs error (device mmcblk0p2): ext4_find_entry:1302: inode #120721: comm udevd: reading directory lblock 0

Feb 12 12:20:18 am335x-evm daemon.err udevd[858]: failed to create queue file: No such file or directory
Feb 12 12:20:18 am335x-evm user.crit kernel: [ 5524.055487] EXT4-fs error (device mmcblk0p2): ext4_read_inode_bitmap:174: comm udevd: Cannot read inode bitmap - block_group = 15, inode_bitmap = 491521
Feb 12 12:20:18 am335x-evm daemon.err udevd[858]: failed to create queue file: No such file or directory
Feb 12 12:20:18 am335x-evm daemon.err udevd[858]: failed to create queue file: No such file or directory
Feb 12 12:20:18 am335x-evm user.crit kernel: [ 5524.078411] EXT4-fs error (device mmcblk0p2): ext4_read_inode_bitmap:174: comm udevd: Cannot read inode bitmap - block_group = 16, inode_bitmap = 524289

  • I will forward this to the SW team.

  • Hi,

    Sorry, can you give some more details:
    1) Do you just remove the sd card from the board (while SDK8.0 linux is running) or do you make any modifications to the kernel sources?
    2). If you've done any modifications in the kernel sources, can you please share what changes have you made in your code, so that I can reproduce the error on my side?

    Best Regards,
    Yordan
  • Hi,
    1. I study SDK8.0 on TI AM335x Starter Kit Board, I can't modify the source code
    2. I only use the SDK8.0 pre-image to study on Starter Kit Board
  • Hi,

    I performed the following steps:

     1. boot my starter kit with SDK8.0

     2. remove sdcard from the board, as a result I get:

    root@am335x-evm:~# [  116.888565] mmc0: card 1234 removed                                                                    

    [  116.895089] Aborting journal on device mmcblk0p2-8.                                                                        

    [  116.911087] JBD2: Error -5 detected when updating journal superblock for mmcblk0p2-8.                                      

    [  116.999715] EXT4-fs error (device mmcblk0p2): ext4_find_entry:1302: inode #217390: comm udevd: reading directory lblock 0  

    [  117.029487] EXT4-fs error (device mmcblk0p2): ext4_find_entry:1302: inode #177057: comm udevd: reading directory lblock 0  

    [  117.049368] EXT4-fs error (device mmcblk0p2): ext4_find_entry:1302: inode #160961: comm udevd: reading directory lblock 0  

    [  117.079348] EXT4-fs error (device mmcblk0p2): ext4_find_entry:1302: inode #177057: comm udevd: reading directory lblock 0  

     3. insert the card, the result on console is the following:

    Debug output is attached:

    root@am335x-evm:~# [  201.867211] mmc0: host does not support reading read-only switch. assuming write-enable.                
    Feb 12 03:27:05 am335x-evm user.warn kernel: [  201.867211] mmc0: host does not [  201.879069] mmc0: new high speed SDHC card4
    support reading read-only switch. assuming write-enable.                                                                      
    Feb 12 03:27:05 am335x-evm user.info kernel: [  201.87[  201.894664] mmcblk0: mmc0:1234 SA04G 3.63 GiB                        
    9069] mmc0: new high speed SDHC card at address 1234                                                                          
    Feb 12 03:27:05 am335x-evm daemon.err udevd[857]: failed to create queue file: No such file or directory                      
    [  201.914019]  mmcblk0: p1 p2                                                                                                
    Feb 12 03:27:05 am335x-evm user.info kernel: [  201.894664] mmcblk0: mmc0:1234 SA04G 3.63 GiB                                 
    Feb 12 03:27:05 am335x-evm daemon.err udevd[857]: failed to crea[  201.931301] EXT4-fs error (device mmcblk0p2): ext4_read_in1
    te queue file: No such file or directory                                                                                      
    Feb 12 03:27:05 am335x-evm daemon.err udevd[857]: failed to create queue file: No such file or directory                      
    Feb 12 03:27:05 am335x-evm daemon.err udevd[857]: failed to create queue file: No such file [  201.965677] EXT4-fs error (dev9
    or directory                                                                                                                  
    Feb 12 03:27:05 am335x-evm user.info kernel: [  201.914019]  mmcblk0: p1 p2                                                   
    Feb 12 03:27:05 am335x-evm daemon.err[  201.991935] EXT4-fs error (device mmcblk0p2): ext4_read_inode_bitmap:174: comm udevd:7
     udevd[857]: failed to create queue file: No suc[  202.010189] EXT4-fs error (device mmcblk0p2): ext4_read_inode_bitmap:174: 5
    h file or directory                                                                                                           
    Feb 12 03:27:05 am335x-evm [  202.028659] EXT4-fs error (device mmcblk0p2): ext4_read_inode_bitmap:174: comm udevd: Cannot re3
    user.crit kernel: [  201.931301] EXT4-fs error ([  202.047056] EXT4-fs error (device mmcblk0p2): ext4_read_inode_bitmap:174: 0
    device mmcblk0p2): ext4_read_inode_bitmap:174: c[  202.065981] EXT4-fs error (device mmcblk0p2): ext4_read_inode_bitmap:174: 9
    omm udevd: Cannot read inode bitmap - block_group = 20, inode_bitmap = 655361                                                 
    Feb 12 03:27:05 am335x-evm daemon[  202.089779] EXT4-fs error (device mmcblk0p2): ext4_read_inode_bitmap:174: comm udevd: Can6
    .err udevd[857]: failed to create queue file: No such file or directory                                                       
    Feb 12 03:27:05 am335x-evm daemon.err udevd[857]: failed to create queue file: No such file or directory                      
    Feb 12 03:27:05 am335x-evm user.crit kernel: [  201.965677] E[  202.124182] EXT4-fs error (device mmcblk0p2): ext4_read_inode5
    XT4-fs error (device mmcblk0p2): ext4_read_inode_bitmap:174: comm udevd: Cannot read inode bitmap - block_group = 21, inode_b9
    Feb 12 03:27:05 am335x-evm user.crit kernel: [  201.991935] EXT4-fs error (device mmcblk0p2): ext4_read_inode_bitmap:174: com0
    d: Cannot read inode bitmap - block_group = 22, inode_bitmap = 720897                                                         
    Feb 12 03:27:05 am335x-evm user.crit kernel: [  202.010189] EXT4-fs error (device mmcblk0p2): ext4_read_inode_bitmap:174: com5
    Feb 12 03:27:05 am335x-evm user.crit kernel: [  202.028659] EXT4-fs error (device mmcblk0p2): ext4_read_inode_bitmap:174: com3
    Feb 12 03:27:05 am335x-evm user.crit kernel: [  202.047056] EXT4-fs error (device mmcblk0p2): ext4_read_inode_bitmap:174: com0
    Feb 12 03:27:05 am335x-evm user.crit kernel: [  202.065981] EXT4-fs error (device mmcblk0p2): ext4_read_inode_bitmap:174: com9
    Feb 12 03:27:05 am335x-evm user.crit kernel: [  202.089779] EXT4-fs error (device mmcblk0p2): ext4_read_inode_bitmap:174: com6
    Feb 12 03:27:05 am335x-evm user.crit kernel: [  202.124182] EXT4-fs error (device mmcblk0p2): ext4_read_inode_bitmap:174: com5
    Feb 12 03:27:05 am335x-evm user.crit kernel: [  202.162153] EXT4-fs error (device mmcblk0p2): ext4_read_inode_bitmap:174: com0
    Feb 12 03:27:05 am335x-evm daemon.err udevd[1524]: unable to create temporary db file '/var/run/udev/data/b179:8.tmp': No sucy
    Feb 12 03:27:05 am335x-evm daemon.err udevd[857]: failed to create queue file: No such file or directory                      
    Feb 12 03:27:05 am335x-evm daemon.err udevd[1524]: unable to create temporary db file '/var/run/udev/data/b179:9.tmp': No sucy
    Feb 12 03:27:05 am335x-evm daemon.err udevd[857]: failed to create queue file: No such file or directory                      
    Feb 12 03:27:05 am335x-evm daemon.err udevd[1526]: unable to create temporary db file '/var/run/udev/data/b179:10.tmp': No suy
    Feb 12 03:27:05 am335x-evm daemon.err udevd[857]: failed to create queue file: No such file or directory                      
    
    

    However these errors are expected, because all the temp files that hold the configurations of your running board are saved in the rootfs, which is on the sd card. If you boot from sd card you cannot remove & insert it while your board is running and expect your linux to work properly.

    If I misunderstood your issue (performed the wrong steps to reproduce the problem), please let me know.

    Best Regards,

    Yordan