AnsweredAssumed Answered

ramfs init error :Failed to execute /init (error -13)

Question asked by ma shaofeng on Jul 12, 2020
Latest reply on Jul 12, 2020 by igorpadykov

dear expert :

 

    we switch out imx8qxp chip from b0 to c0 , now the normal system ok and rndis can work , i also test udc in normal system;

 

    now we run ramfs to run some command on utp , but it always show :

Freeing unused kernel memory: 1280K
[    3.261675] Failed to execute /init (error -13)
sh: cannot set terminal process group (-1): Inappropriate ioctl for device
sh: no job control in this shell

 

 we use c0  ramfs fsl-image-mfgtool-initramfs-imx_mfgtools.cpio.gz.u-boot 

 

i check the ramfs sys i found the 

 

sh-4.4# ls -l
total 1028
drwxr-xr-x  2 root root    2060 Dec 21  2019 bin
drwxr-xr-x  2 root root      40 Nov  6  2019 boot
drwxr-xr-x  2 root root      60 Nov  6  2019 dev
drwxr-xr-x 12 root root     860 Dec 21  2019 etc
-rw-r--r--  1 root root 1048576 Dec 21  2019 fat
drwxr-xr-x  3 root root      60 Dec 21  2019 home
-rw-r--r--  1 root root       0 Dec 21  2019 init        it's have no exec permission and it's size is 0
drwxr-xr-x  4 root root    1500 Nov  6  2019 lib
-rwxr-xr-x  1 root root    3251 Dec 21  2019 linuxrc

 

why this issue occurred;

 

it's urgent for out product , please  help to analyze;

 

thanks

Outcomes