[gem5-users] Re: How to use GUEST BINARIES in fs?

2020-04-25 Thread Taiyu Zhou via gem5-users
Hi Ciro.
I think that problem may be cause by  incompatible. I use Mac to run parralles 
virtual machine and it is Intel core. I try to mount 
aarch64-ubuntu-trusty-headless.img on mnt and try to run /sbin/init.
It will report that

bash: ./sbin/init: cannot execute binary file: Exec format error


My virtual machine OS kernel is linux 4.15.0-96.
If it is the incompatible problem,I think I need to remake disk image. But How 
could I make a lightweight disk image? The util/gem5img.py tool is not works in 
my OS because the sfdisk it uses is old version which uses some invalid option.
___
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


[gem5-users] Re: Mailing List problems experienced this afternoon. Now resolved

2020-04-25 Thread Bobby Bruce via gem5-users
Dear all,

We’ve had reports of spam on this mailing list. I thought I’d fixed this issue, 
but it seems like they were still getting through. To solve this for good, the 
mailing lists have been updated so only members of the list can post. As 
always, anyone can sign up to be a member of the list, so I would hope this 
isn’t too much of a hurdle. Anyone trying to send an email to the list who is 
not a member will receive an email explaining that they need to subscribe first.

We also had an incident of someone being unable to send an email to the list 
due to reaching the (rather low) max email size limit. This limit has been 
increased so reasonably sized attachments (screenshots, etc) can be sent.
 
Our new mailing list provider has informed me that some people may not have 
received all the mail sent on the list over the past few days due to our list 
triggering some spam filters. I believe, at the time of writing, most of these 
filters have been lifted. I’ve been told these filters are based on a 
heuristics that were likely triggered due to the sudden influx of spam sent 
when the mailing lists were first reopened on the new service. Therefore, any 
remaining filters should be lifted after they recognize the vast majority of 
our traffic is legitimate. So, if you know of people not receiving emails, the 
advice I have been given is to wait.

As always, thank you all for your patience. It turns out email is still a 
surprisingly difficult technology to work with :).

Kind regards,
Bobby

--
Dr. Bobby R. Bruce
Room 2235,
Kemper Hall, UC Davis
Davis,
CA, 95616

web: https://www.bobbybruce.net

> On Apr 23, 2020, at 7:25 PM, Bobby Bruce  wrote:
> 
> Dear all,
> 
> This afternoon we found out our mailing list was not sending emails to 
> everyone who had subscribed to them. It seems this primarily affected those 
> with Microsoft-based email addresses (outlook et al.). I've been told some 
> filters were activated due to the high volume of email from our lists. After 
> some back and forth with our new provider, I have been told this issue is now 
> resolved. If you've asked a question on gem5-users/gem5-dev and have yet to 
> hear a response, I'd advise waiting a little bit (say, until tomorrow) and 
> perhaps asking again. I am unsure if the backlog of mail sent out during this 
> time will eventually be delivered, so I'd say it's best to wait and see. I'd 
> also advise list members to check their Spam folder for any mail that may 
> have been misclassified during this time.
> 
> We've also had reports of real spam being sent to the lists. I apologize for 
> this, I believe this was due to a misconfiguration on our mailman server 
> which has since been fixed. If anyone notices any additional spam emails from 
> now on, please email me and I'll tighten up the rules on the mailing list to 
> prevent them.
> 
> I apologize to everyone for this. It really shouldn't have happened and 
> caught us a bit off guard. I hope the mailing list services are back to a 
> usable state. Please let me know directly about any additional problems, big 
> or small, you encounter when using these lists.
> 
> Kind regards,
> Bobby
> --
> Dr. Bobby R. Bruce
> Room 2235,
> Kemper Hall, UC Davis
> Davis,
> CA, 95616
> 
> web: https://www.bobbybruce.net 

___
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

[gem5-users] Re: How to use GUEST BINARIES in fs?

2020-04-25 Thread Ciro Santilli via gem5-users
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  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

[gem5-users] Re: How to use GUEST BINARIES in fs?

2020-04-25 Thread Ciro Santilli via gem5-users
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

[gem5-users] Re: How to use GUEST BINARIES in fs?

2020-04-25 Thread Taiyu Zhou via gem5-users
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

[gem5-users] Re: How to use GUEST BINARIES in fs?

2020-04-25 Thread Ciro Santilli via gem5-users
You could download from:
http://www.gem5.org/documentation/general_docs/fullsystem/guest_binaries
section "Latest Linux Disk Images (recommended)"

Personally I normally use Buildroot:
https://github.com/cirosantilli/linux-kernel-module-cheat/tree/d0aac8d6f90477db394945127b621df7023a3a24#gem5-buildroot-setup-getting-started


On Sat, Apr 25, 2020 at 4:15 PM Taiyu Zhou <645505...@qq.com> wrote:
>
> Hi Ciro.
> Thanks for you help.
> I’ve set the M5_PATH and tried to use full path but it still not work for me. 
> It's really strange.
> And by the way, how you create a disk image. I follow the tutorial in 
> http://www.lowepower.com/jason/creating-disk-images-for-gem5.html. To create 
> a blank disk image by “ util/gem5img.py init ubuntu-14.04.img 4096 “.But it 
> can’t work because the sfdisk command.
>
> "
> %> /sbin/sfdisk --no-reread -D -C 8322 -H 16 -S 63 /dev/loop17
> /sbin/sfdisk: invalid option -- ‘D'
> “
> Thanks a lot.
___
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

[gem5-users] Re: How to use GUEST BINARIES in fs?

2020-04-25 Thread Taiyu Zhou via gem5-users
Hi Ciro.
Thanks for you help.
I’ve set the M5_PATH and tried to use full path but it still not work for me. 
It's really strange.
And by the way, how you create a disk image. I follow the tutorial in 
http://www.lowepower.com/jason/creating-disk-images-for-gem5.html 
. To create 
a blank disk image by “ util/gem5img.py init ubuntu-14.04.img 4096 “.But it 
can’t work because the sfdisk command.

"
%> /sbin/sfdisk --no-reread -D -C 8322 -H 16 -S 63 /dev/loop17
/sbin/sfdisk: invalid option -- ‘D'
“
Thanks a lot.___
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

[gem5-users] How to add registers in SE mode?

2020-04-25 Thread svk V via gem5-users
Hello
  Is it possible to add custom registers as part of the SE mode?
If yes, can you give some pointers regarding the same

Thanking you
Sai
___
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

[gem5-users] Re: How to use GUEST BINARIES in fs?

2020-04-25 Thread Ciro Santilli via gem5-users
Can you also try to use the full path to vmlinux.arm64 instead of just
basename? I suspect it is currently searching for it on M5_PATH
(because not slashes in the path) and finding some broken image there.
Better still, get rid of M5_PATH altogether if possible.

My full non minimized CLI with gem5 b1623cb2087873f64197e503ab8894b5e4d4c7b4 is:

M5_OVERRIDE_PY_SOURCE=true \
  
/home/ciro/bak/git/linux-kernel-module-cheat/out/gem5/master3/build/ARM/gem5.opt
\
  --debug-file trace.txt \
  --listener-mode on \
  --outdir 
/home/ciro/bak/git/linux-kernel-module-cheat/out/run/gem5/aarch64/0/m5out
\
  
/home/ciro/bak/git/linux-kernel-module-cheat/data/gem5/master3/configs/example/fs.py
\
  --kernel /mnt/hd/gem5-images/aarch-system-201901106/binaries/vmlinux.arm64 \
  --num-cpus 1 \
  --script 
/home/ciro/bak/git/linux-kernel-module-cheat/out/run/gem5/aarch64/0/readfile
\
  --disk-image 
/home/ciro/bak/git/linux-kernel-module-cheat/out/buildroot/build/default/aarch64/images/rootfs.ext2
\
  --machine-type VExpress_GEM5_V1 \
  --command-line 'earlyprintk=pl011,0x1c09 lpj=19988480 rw
loglevel=8 mem=256MB root=/dev/sda console_msg_format=syslog nokaslr
norandmaps panic=-1 printk.devkmsg=on printk.time=y rw console=ttyAMA0
- lkmc_home=/lkmc' \
  --param 'system.workload.panic_on_panic = True' \
  --bootloader 
/home/ciro/bak/git/linux-kernel-module-cheat/out/gem5/master3/system/binaries/boot.arm64
\
  --mem-size 256MB \
;

On Sat, Apr 25, 2020 at 1:49 PM Taiyu Zhou via gem5-users
 wrote:
>
> Hi Ciro.
> Thanks for you reply.Could you show me the script  you run on 
> vmlinux.arm64 and your config?
> Because I think I don’t run on right command.
> I run
> "./build/X86/gem5.opt configs/example/fs.py --kernel=vmlinux.arm64 
> --disk-image=aarch64-ubuntu-trusty-headless.img" gem5 reports that
> fatal: could not load kernel symbols
>
> But when I run
> “./build/X86/gem5.opt configs/example/fs.py --kernel=boot.arm64 
> --disk-image=aarch64-ubuntu-trusty-headless.img"
>
> It works ,but not a system. I use m5term connect to it .It just show a line
> " m5 slave terminal: Terminal 0 "
> ___
> 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
___
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

[gem5-users] Re: How to use GUEST BINARIES in fs?

2020-04-25 Thread Taiyu Zhou via gem5-users
Hi Ciro.
Thanks for you reply.Could you show me the script  you run on 
vmlinux.arm64 and your config? 
Because I think I don’t run on right command.
I run 
"./build/X86/gem5.opt configs/example/fs.py --kernel=vmlinux.arm64 
--disk-image=aarch64-ubuntu-trusty-headless.img" gem5 reports that 
fatal: could not load kernel symbols

But when I run 
“./build/X86/gem5.opt configs/example/fs.py --kernel=boot.arm64 
--disk-image=aarch64-ubuntu-trusty-headless.img"

It works ,but not a system. I use m5term connect to it .It just show a line 
" m5 slave terminal: Terminal 0 "
___
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

[gem5-users] Re: How to use GUEST BINARIES in fs?

2020-04-25 Thread Ciro Santilli via gem5-users
I don't know exactly what is going on, but I've tested
aarch-system-201901106/binaries/vmlinux.arm64 in fs.py and it worked
fine.

So the exact same script works with the old kernel but not new one?
Are you sure that the kernel exists at that path? Also try to GDB/PDB
debug it a bit.

On Sat, Apr 25, 2020 at 5:51 AM Taiyu Zhou via gem5-users
 wrote:
>
> Hi guys!
> I am trying to run gem5 in fs mode and I follow this tutorial 
> http://learning.gem5.org/book/part5/fs_config.html. But the kernel in this 
> tutorial is too old ( 2.6.22.9). So I try to download the newer ones in 
> http://www.gem5.org/documentation/general_docs/fullsystem/guest_binaries. I 
> think it just simply change the config file to point to the newer image and 
> kernel.
>
> self.kernel = 'aarch-system-201901106/binaries/vmlinux.arm64'
>
> self.setDiskImage('disks/aarch64-ubuntu-trusty-headless.img')
>
>
> But It can’t work.Gem5 reports that
>
>  fatal: could not load kernel symbols
>
> ___
> 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
___
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