Re: [gem5-users] How to attach second image to full system emulation.

2020-02-13 Thread iagosilvestrehp
Thank you, yes this did indeed solve the problem. I was not aware a second image file is now officially supported by the tool without further modificationsOn Feb 13, 2020 11:55 AM, Ciro Santilli  wrote:Hi Iago,

I have managed to get it working recently without any patches as
explained at:
https://stackoverflow.com/questions/50862906/how-to-attach-multiple-disk-images-in-a-simulation-with-gem5-fs-py/60210181#60210181

If that doesn't solve the problem for you, let me know.

On 2/7/20 2:38 PM, Iago . wrote:
> I've been trying to reproduce some tests i've done last year but with
> some of the latest updates to the tool the way to append a second image
> to the FSConfig.py script has changed, i've been trying to just change this:
>
> def makeCowDisks(disk_paths):
>  disks = []
>  for disk_path in disk_paths:
>  disk = CowIdeDisk(driveID='master')
>  disk.childImage(disk_path);
>  disks.append(disk)
>  return disks
>
> changing the childimage line to :
> disk.childImage('/home/iago/fs/disks/workloads.img');
> But ive been getting kernel panics on my simulation.
> Thanks in advance
>
>
> ___
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>
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-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] Kernel Panic in FS ARM simulation

2020-02-07 Thread iagosilvestrehp
Thanks for the help and I found my error, I didnt know multiple image files were now supported so I was wrongly altering the fsconfig script.Now the simulation is sucessfully booting the operating system.On Feb 7, 2020 2:22 PM, Giacomo Travaglini  wrote:
Your log says: "No working init found"

Are you sure you have a valid init script/executable in your disk image?


Giacomo








From: Iago . 
Sent: 07 February 2020 13:28
To: Giacomo Travaglini ; gem5-users@gem5.org 
Subject: RE: [gem5-users] Kernel Panic in FS ARM simulation
 




Thank you, this did fix the root device error but now the error being given is the following:




[    0.700742] Freeing unused kernel memory: 384K

[    0.700787] Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.

[    0.700799] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.14.0+ #1

[    0.700806] Hardware name: V2P-AARCH64 (DT)

[    0.700812] Call trace:

[    0.700820] [] dump_backtrace+0x0/0x380

[    0.700829] [] show_stack+0x14/0x20

[    0.700838] [] dump_stack+0x8c/0xb0

[    0.700846] [] panic+0x118/0x26c

[    0.700855] [] kernel_init+0xec/0x100

[    0.700864] [] ret_from_fork+0x10/0x18

[    0.700872] SMP: stopping secondary CPUs

[    0.700879] Kernel Offset: disabled

[    0.700885] CPU features: 0x002492

[    0.700891] Memory Limit: 1024 MB

[    0.700902] ---[ end Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.





De: gem5-users  em nome de Giacomo Travaglini 
Enviado: sexta-feira, 7 de fevereiro de 2020 08:34
Para: gem5-users@gem5.org 
Assunto: Re: [gem5-users] Kernel Panic in FS ARM simulation
 




This is the key:




[    0.704992] VFS: Cannot open root device "sda1" or unknown-block(8,1): error -6


[    0.705000] Please append a correct "root=" boot option; here are the available partitions:


[    0.705010] 0800         4194304 sda


[    0.705013]  driver: sd




Just run simulation with the --root=/dev/sda option and let me know if it works




Giacomo




From: gem5-users  on behalf of Iago . 
Sent: 07 February 2020 06:34
To: gem5-users@gem5.org 
Subject: [gem5-users] Kernel Panic in FS ARM simulation
 




I've been trying to make some simulations with the files available at m5 website called  aarch-system-20180409.tar.xz and been getting the following
 error during full system emulation, the kernel and disk images used are as follow:

--disk-image=linaro-minimal-aarch64.img
 --kernel=vmlinux.vexpress_gem5_v1_64 --machine-type=VExpress_GEM5_V1 --dtb=armv8_gem5_v1_4cpu.dtb





And the error ive been getting is 

[    0.704992] VFS: Cannot open root device "sda1" or unknown-block(8,1): error -6

[    0.705000] Please append a correct "root=" boot option; here are the available partitions:

[    0.705010] 0800         4194304 sda 

[    0.705013]  driver: sd

[    0.705024] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,1)

[    0.705033] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.14.0+ #1

[    0.705040] Hardware name: V2P-AARCH64 (DT)

[    0.705046] Call trace:

[    0.705054] [] dump_backtrace+0x0/0x380

[    0.705063] [] show_stack+0x14/0x20

[    0.705072] [] dump_stack+0x8c/0xb0

[    0.705080] [] panic+0x118/0x26c

[    0.705090] [] mount_block_root+0x184/0x25c

[    0.705099] [] mount_root+0x11c/0x134

[    0.705108] [] prepare_namespace+0x13c/0x184

[    0.705118] [] kernel_init_freeable+0x1b0/0x1d0

[    0.705127] [] kernel_init+0x10/0x100

[    0.705136] [] ret_from_fork+0x10/0x18

[    0.705144] SMP: stopping secondary CPUs

[    0.705151] Kernel Offset: disabled

[    0.705157] CPU features: 0x002492

[    0.705164] Memory Limit: 1024 MB

[    0.705174] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,1)




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. 

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-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users