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.

Kernel panic when pull out or insert the sd card

Other Parts Discussed in Thread: OMAP3530

Processor:   OMAP3530
TI Android DevKit Version: 2.2 the newest release
Platform:   K7 (produced by timll tech, Shenzhen, China)
Steps to reproduce the problem:

 running the TI Android DevKit,
 pull out a MicroSD card after inserted it repeatedly,
 then the kernel panic like below,
 can somebody tell me why, where is the problem?

Thanks a lot.

 

 

mmc0: new high speed SD card at address 1234
mmcblk0: mmc0:1234 SA02G 1.90 GiB
 mmcblk0: p1
mmc0: card 1234 removed
init/1: potentially unexpected fatal signal 11.


Pid: 1, comm:                 init
CPU: 0    Not tainted  (2.6.32 #1)
PC is at 0xd676
LR is at 0xea6b
pc : [<0000d676>]    lr : [<0000ea6b>]    psr: 00000010
sp : be9c9658  ip : ffffffff  fp : 00000000
r10: 00000000  r9 : 00000000  r8 : 00000000
r7 : be9c96d4  r6 : 00000000  r5 : 00000004  r4 : 0001cf99
r3 : 0000002f  r2 : 00000000  r1 : 00000002  r0 : f01568a5
Flags: nzcv  IRQs on  FIQs on  Mode USER_32  ISA ARM  Segment user
Control: 10c5387d  Table: 8fb90019  DAC: 00000015

R0: 0xf0156825:
6824  ******** ******** ******** ******** ******** ******** ******** ********
6844  ******** ******** ******** ******** ******** ******** ******** ********
6864  ******** ******** ******** ******** ******** ******** ******** ********
6884  ******** ******** ******** ******** ******** ******** ******** ********
68a4  ******** ******** ******** ******** ******** ******** ******** ********
68c4  ******** ******** ******** ******** ******** ******** ******** ********
68e4  ******** ******** ******** ******** ******** ******** ******** ********
6904  ******** ******** ******** ******** ******** ******** ******** ********
6924  ******** ******** ******** ******** ******** ******** ******** ********
Kernel panic - not syncing: Attempted to kill init!

 

  • Have you flashed Android rootfs onto the NAND or is it on the same MMC/SD card which you are plugging/un-plugging?

     

    Regards,

    Amit Pundir

  • Hi Amit

    Thanks for you reply.

    The Android rootfs flashed onto Nand.

    part of startup log list:

    Uncompressing Linux.......................................................................................................................................................... done, booting the kernel.
    Linux version 2.6.32 (yanglsh@TIOP) (gcc version 4.4.0 (GCC) ) #1 Mon Feb 21 16:08:28 CST 2011
    CPU: ARMv7 Processor [411fc083] revision 3 (ARMv7), cr=10c53c7f
    CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
    Machine: OMAP3 Beagle Board
    Ignoring unrecognised tag 0x54410008
    Memory policy: ECC disabled, Data cache writeback
    OMAP3430/3530 ES3.1 (l2cache iva sgx neon isp )
    SRAM: Mapped pa 0x40200000 to va 0xfe400000 size: 0x100000
    Reserving 4194304 bytes SDRAM for VRAM
    Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
    Kernel command line: console=ttyS2,115200n8 ubi.mtd=4 root=ubi0:rootfs rootfstype=ubifs init=/init androidboot.console=ttyS2 print-fatal-signals=1

     

    Regards,

    Linsheng

  • In the TI Android DevKit, the 3rd partition of the SD card is mounted for data storage.

    Do you get the same errors if you unmount the card in android instead of just pulling out the card?

  • Hi Vishveshwar

     

    Thank you for you sugesstion

    I haven't get the errors if I unmount the card in android before unpluging the card.

    but I want no kernel panic while unpluging the card without umounting it,

    can you give me some advice?

     

    Regards,

    Linsheng yang

     

  • We will try this at our end and get back to you

  • Hi Linsheng Yang,

    Kindly make sure that the following assumption in your kernel configuration is not set. By default this assumption is set to true in Android Devkit prebuilt images and source configurations.

    Device Drivers  --->
              MMC/SD/SDIO card support  --->
                        [ ] Assume MMC/SD cards are non-removable (DANGEROUS)

    This will let you unplug the card without giving a kernel panic. Though you may get quiet a lot of I/O  error for the same.

    Regards,
    Amit Pundir