OK, also quick grep in kernel code and we can see that -8 and -13 are the same as exec syscall error numbers:
#define ENOEXEC 8 /* Exec format error */ #define EACCES 13 /* Permission denied */ not 100% sure what those mean, but worth looking into as well. On Sat, Apr 25, 2020 at 7:13 PM Ciro Santilli <ciro.santi...@gmail.com> wrote: > > No worries. I would mount the image on host and ensure that the init > you think is there is actually there, and that it seems to be right > filetype (ISA is ARM, is executable, etc.). And ensure that you are > pointing to it with init= kernel CLI parameter. If you don't > understand from that, GDB step debug the kernel at that point and then > it will be easy to see which inits the kernel is trying and why it > skips yours. > > On Sat, Apr 25, 2020 at 5:46 PM Taiyu Zhou <645505...@qq.com> wrote: > > > > Hi Ciro. > > I tried to build my own vmlinux( linux4.3 ),and follow > > http://www.lowepower.com/jason/setting-up-gem5-full-system.html to make my > > own ubuntu-16 disk image.I think the ubuntu-16 disk image is too large, > > because it will use 100% of my memory and crash my os finally when booting. > > So I try to use disk image "aarch64-ubuntu-trusty-headless.img.bz2”. But > > when use m5term to connect it will reports that > > > > Starting init: /sbin/init exists but couldn’t execute it (error -8) > > Starting init: /etc/init exists but couldn’t execute it (error -13) > > Starting init: /bin/sh exists but couldn’t execute it (error -8) > > Kernel panic -not syncing: No working init found. > > > > Have you seen this error before? > > Thank you for your patience reply. _______________________________________________ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s