Hi Samuel,

Thanks for reporting this.
There is an init file, it is in the root directory: /init.gem5.
You can manually select that by using the --kernel-init option in 
fs_bigLITTLE.py

I will amend the distributed disk image providing a symlink to /init.gem5 in 
/sbin/init for consistency
With our previous disk images

Kind Regards

Giacomo

> -----Original Message-----
> From: Samuel Thomas via gem5-dev <gem5-dev@gem5.org>
> Sent: 11 December 2020 15:42
> To: gem5-dev@gem5.org
> Cc: Samuel Thomas <samuel_tho...@brown.edu>
> Subject: [gem5-dev] Kernel ``init'' in Ubuntu 18.04 for ARM
>
> Hi all,
>
> I'm building and running gem5 using the guest binary Ubuntu 18.04 image for
> ARM64 linked from the gem5 guest binaries page
> (https://www.gem5.org/documentation/general_docs/fullsystem/guest_binari
> es). However, when running the system in full system for ARM bigLITTLE
>
> ```
> gem5-workspace/gem5/build/ARM/base-gem5.opt gem5-
> workspace/gem5/configs/example/arm/fs_bigLITTLE.py --kernel gem5-
> workspace/gem5/dist/binaries/vmlinux.arm64 --cpu-type atomic --dtb gem5-
> workspace/gem5/system/arm/dt/armv8_gem5_v1_big_little_2_2.dtb --disk
> gem5-workspace/gem5/dist/disks/ubuntu-18.04-arm64-docker.img --
> bootscript gem5-workspace/gem5/bootscripts/test.rcS
> ```
>
> I get the following error
>
> ```
> [    3.915428] Kernel panic - not syncing: Requested init /sbin/init failed 
> (error -
> 2).
> [    3.915434] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.18.0+ #1
> [    3.915439] Hardware name: V2P-AARCH64 (DT)
> [    3.915442] Call trace:
> [    3.915447]  dump_backtrace+0x0/0x1c0
> [    3.915453]  show_stack+0x14/0x20
> [    3.915458]  dump_stack+0x8c/0xac
> [    3.915462]  panic+0x130/0x288
> [    3.915467]  kernel_init+0xa8/0x108
> [    3.915472]  ret_from_fork+0x10/0x18
> [    3.915477] Kernel Offset: disabled
> [    3.915481] CPU features: 0x21c06492
> [    3.915485] Memory Limit: 2048 MB
> [    3.915492] ---[ end Kernel panic - not syncing: Requested init /sbin/init 
> failed
> (error -2). ]---
> ```
>
> And a kernel panic in the host terminal process.
>
> I mounted the Ubuntu 18.04 disk image into a temporary directory to examine
> the contents of the /sbin/ directory to confirm that there wasn't an init file
> there (which there was not).
>
> My next step was to look at the /sbin/ directory of an Ubuntu 18.04 virtual
> machine to see if perhaps there was a different kernel init file being used
> under this version of Ubuntu (I also have the "aarch64-ubuntu-trusty-
> headless.img" downloaded from gem5 guest binaries, and there is a file
> /sbin/init in that image) so that I could just change where gem5 looks for 
> this
> binary, but - based on the VM - it seems as though this file structure hasn't
> changed.
>
> Is this an issue with gem5's released version of Ubuntu 18.04 for ARM? And if
> so, is there either (a) an alternative image file for Ubuntu 18.04 for ARM 
> with
> the appropriate kernel initialization files or (b) a place where those files 
> exist
> where I can install them onto the current Ubuntu 18.04 image?
>
> Thank you for your help!
>
> Sam
> _______________________________________________
> gem5-dev mailing list -- gem5-dev@gem5.org To unsubscribe send an email to
> gem5-dev-
> le...@gem5.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium. Thank you.
_______________________________________________
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to