You should be able to get a new working kernel with PCIe support for AArch64
like the following, however you’ll need all the patches that Andreas just
mentioned in an email to gem5-dev as committed next week.
wget
"http://www.linux-arm.org/git?p=linux-aarch64-gem5.git;a=snapshot;h=400390889828685d432d38406cbd9c7afceeaa15;sf=tgz"
-O linux-aarch64-gem5.tgz
tar zxvf linux-aarch64-gem5.tgz
cd linux-aarch64-gem5-4003908
make ARCH=arm64 CROSS_COMPILE=aarch64-none-elf- gem5_defconfig
make ARCH=arm64 CROSS_COMPILE=aarch64-none-elf- -j4
Thanks,
Ali
From: Ali Saidi via gem5-users <gem5-users@gem5.org<mailto:gem5-users@gem5.org>>
Reply-To: Ali Saidi <sa...@umich.edu<mailto:sa...@umich.edu>>, gem5 users
mailing list <gem5-users@gem5.org<mailto:gem5-users@gem5.org>>
Date: Saturday, August 23, 2014 at 2:21 PM
To: Ivan Stalev <ids...@psu.edu<mailto:ids...@psu.edu>>, gem5 users mailing
list <gem5-users@gem5.org<mailto:gem5-users@gem5.org>>
Subject: Re: [gem5-users] ARMv8 Client-Server configuration
You’re not going to have any support for PCIe device with that kernel. We’re
working on the last bit of debugging and polishing around a kernel that will
support it — I intended to have it out 2 weeks ago, but we’re still diligently
working and it should be out in the next couple of days.
Ali
On Aug 20, 2014, at 10:36 AM, Ivan Stalev
<ids...@psu.edu<mailto:ids...@psu.edu>> wrote:
Edit: I was using my own compiled kernel. I am now using the default kernel,
vmlinux-3.14-aarch64-vexpress-emm64, and it appears not to crash. I will go
ahead and test it out.
On Wed, Aug 20, 2014 at 11:19 AM, Ivan Stalev
<ids...@psu.edu<mailto:ids...@psu.edu>> wrote:
Hi Andreas,
No problem, I figured it wasn't the 80 char README file patch :)
I applied the 7 patches you posted this morning, but now when I run in dual
mode, gem5 crashes with this:
panic: M5 panic instruction called at pc=0xffffffc00008a024.
@ tick 58408160
[execute:build/ARM/arch/arm/generated/exec-ns.cc.inc, line 241403]
The GDB backtrace from gem5.debug suggests that execution is somehow killed
from a manually inserted breakpoint.
This is also after I had to hardcode the DTB file name for the drivesys in
/src/arch/arm/linux/system.cc<http://system.cc> since it was not picking it up
from the command line...
warn: Kernel supports device tree, but no DTB file specified
fatal: Expected a single ATAG memory entry but got 3
@ tick 58402784
[initState:build/ARM/arch/arm/linux/system.cc<http://system.cc>, line 202]
Can you share how you tested the client-server configuration?
Thank you,
Ivan
On Wed, Aug 20, 2014 at 4:45 AM, Andreas Hansson
<andreas.hans...@arm.com<mailto:andreas.hans...@arm.com>> wrote:
Hi Ivan,
Just following up on this one. I posted the patches yesterday morning, but
forgot to “Publish” then. Sorry about the misunderstanding. They are all there
now.
Andreas
From: Andreas Hansson via gem5-users
<gem5-users@gem5.org<mailto:gem5-users@gem5.org>>
Reply-To: Andreas Hansson
<andreas.hans...@arm.com<mailto:andreas.hans...@arm.com>>, gem5 users mailing
list <gem5-users@gem5.org<mailto:gem5-users@gem5.org>>
Date: Tuesday, 19 August 2014 18:48
To: Ivan Stalev <ids...@psu.edu<mailto:ids...@psu.edu>>, gem5 users mailing
list <gem5-users@gem5.org<mailto:gem5-users@gem5.org>>, Ali Saidi
<sa...@umich.edu<mailto:sa...@umich.edu>>
Subject: Re: [gem5-users] ARMv8 Client-Server configuration
Hi Ivan,
The patches are on the review board as of this morning (UK time).
Comments are welcome as always.
Andreas
From: Ivan Stalev via gem5-users
<gem5-users@gem5.org<mailto:gem5-users@gem5.org>>
Reply-To: Ivan Stalev <ids...@psu.edu<mailto:ids...@psu.edu>>, gem5 users
mailing list <gem5-users@gem5.org<mailto:gem5-users@gem5.org>>
Date: Tuesday, 19 August 2014 18:44
To: Ali Saidi <sa...@umich.edu<mailto:sa...@umich.edu>>
Cc: gem5 users mailing list <gem5-users@gem5.org<mailto:gem5-users@gem5.org>>
Subject: Re: [gem5-users] ARMv8 Client-Server configuration
Hi Ali,
Have you had the chance to look at the issue or have some suggestions as to
which source files to look at?
Thanks,
Ivan
On Fri, Aug 8, 2014 at 8:34 PM, Ali Saidi
<sa...@umich.edu<mailto:sa...@umich.edu>> wrote:
Hi Ivan,
The kernel that you’re using and the currently gem5 don’t support pci devices
with arm64. I hope to remedy this within a week.
Thanks,
Ali
On Aug 6, 2014, at 3:42 PM, Ivan Stalev via gem5-users
<gem5-users@gem5.org<mailto:gem5-users@gem5.org>> wrote:
> Hi everyone,
>
> I am trying to run a client-server setup using arm64. I am using the (latest)
> linaro kernel (3.16) and disk image suggested on the GEM5 downloads page.
> Simply building the kernel with defconfig (as recommended in the README) does
> not seem to setup the ethernet drivers. Running "ifconfig -a" only yields the
> loopback device/interface.
>
> I then opened up the .config (generated by defconfig) using menuconfig and
> enabled all the settings related to ethernet and re-built the kernel. After
> booting, "ifconfig -a" results in this:
>
> bond0 Link encap:Ethernet HWaddr CA:FB:D0:02:D0:7E
> BROADCAST MASTER MULTICAST MTU:1500 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
>
> dummy0 Link encap:Ethernet HWaddr 02:58:3E:AF:F3:41
> BROADCAST NOARP MTU:1500 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
>
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> UP LOOPBACK RUNNING MTU:65536 Metric:1
> RX packets:8 errors:0 dropped:0 overruns:0 frame:0
> TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:784 (784.0 B) TX bytes:784 (784.0 B)
>
> I tried running the sample client-server rcS scripts and tried both dummy0
> and bond0, but pings did not go through. From others' posts and sample rcS
> scripts, it seems that GEM5 expects eth0.
>
> Does anyone know if client-server is supported for arm64 in GEM5, and if so,
> how to get them to communicate? I am using the latest GEM5 revision (10240).
>
> Thanks!
>
> _______________________________________________
> gem5-users mailing list
> gem5-users@gem5.org<mailto: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.
ARM Limited, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered
in England & Wales, Company No: 2557590
ARM Holdings plc, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ,
Registered in England & Wales, Company No: 2548782
-- 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.
ARM Limited, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered
in England & Wales, Company No: 2557590
ARM Holdings plc, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ,
Registered in England & Wales, Company No: 2548782
-- 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.
ARM Limited, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered
in England & Wales, Company No: 2557590
ARM Holdings plc, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ,
Registered in England & Wales, Company No: 2548782
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users