AnsweredAssumed Answered

Busybox error

Question asked by masasi on Apr 28, 2015
Latest reply on Nov 1, 2016 by Marvin Zhao

Hi,

I am booting my P1012 microprocessor using Freescale SDK 1.6 but kernel hangs when trying to read /linuxrc file with the following error:

 

Freeing unused kernel memory: 248K (c0861000 - c089f000)
Failed to execute /init (error -8)
Bad trap at PC: 101063d0, SR: 2d000, vector=2020
linuxrc[1]: unhandled signal 5 at 00000000 nip 101063d0 lr 101066b0 code 0
Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000005

CPU: 0 PID: 1 Comm: linuxrc Not tainted 3.18.10 #294
Call Trace:
[ef03fd60] [c06d0cc4] panic+0xcc/0x1fc (unreliable)
[ef03fdc0] [c003258c] complete_and_exit+0x0/0x28
[ef03fe10] [c003260c] do_group_exit+0x44/0x98
[ef03fe20] [c003b73c] get_signal+0x138/0x478
[ef03fe70] [c00061e0] do_signal+0x34/0x190
[ef03ff30] [c000640c] do_notify_resume+0x5c/0x74
[ef03ff40] [c000c74c] do_user_signal+0x74/0xc4
--- interrupt: 2020 at 0x101063d0
    LR = 0x101066b0
Rebooting in 180 seconds..

 

I have used rootfs provided by SDK 1.6 at build_p1021rdb_release/tmp/deploy/images/p1021rdb/fsl-image-minimal-p1021rdb-20150428080427.rootfs.cpio.gz, then I have decompressed fsl-image-minimal-p1021rdb-20150428080427.rootfs and created a ramfs file system (My bootargs are console=ttyS0,115200 root=/dev/ram rw init=/linuxrc rootfstype=ramfs) and rootfs :

 

drwxrwxrwx 17 root  root  4096 Apr 28 15:10 .

drwxrwxrwx  2 root  root  4096 Apr 28 14:40 bin

drwxrwxrwx  2 root  root  4096 Jan 23 12:38 boot

drwxrwxrwx  2 root  root  4096 Jan 23 12:38 dev

drwxrwxrwx 18 root  root  4096 Apr 28 14:40 etc

drwxrwsrwx  3 root  root  4096 Apr 28 14:40 home

-rwxrwxrwx  1 root  root     0 Apr 28 10:05 init

drwxrwxrwx  4 root  root  4096 Apr 28 14:40 lib

lrwxrwxrwx  1 root  root    12 Apr 28 14:40 linuxrc -> /bin/busybox

drwxrwxrwx  2 root  root  4096 Jan 23 12:38 media

drwxrwxrwx  2 root  root  4096 Jan 23 12:38 mnt

drwxrwxrwx  2 root  root  4096 Jan 23 12:38 proc

drwxrwxrwx  2 root  root  4096 Jan 23 12:38 run

drwxrwxrwx  2 root  root  4096 Apr 28 14:40 sbin

drwxrwxrwx  2 root  root  4096 Jan 23 12:38 sys

drwxrwxrwx  2 root  root  4096 Jan 23 12:38 tmp

drwxrwxrwx  9 root  root  4096 Apr 28 14:40 usr

drwxrwxrwx  7 root  root  4096 Apr 28 14:40 var

 

I have tried to recompile busybox as described in QorIQ-SDK-1.6-IC-RevB.pdf page 1769 but I always get the same error message. Shall I use a different rootfs from fsl-image-minimal-p1021rdb-20150428080427.rootfs.cpio.gz?

 

Thanks in advance,

 

Regards,

Maria

Outcomes