Hi Ben,
Thanks for doing this. I looked at the videos and you can do everything, you just need to actually sudo to root since some of the files are owned by root. If you do sudo su root you can go into any directory in the mounted disk image. Thanks, Ali On 02.11.2012 11:46, Payne, Benjamin wrote: > With Ali's help, I was able to get qemu to mount an .img file for gem5. > > I've posted videos to > http://gem5.org/Frequently_Asked_Questions#How_do_I_add_files_to_a_disk_image.3F [1] > for both using just mount and using qemu+mount+chroot. > > -----Original Message----- > From: [email protected] [mailto:[email protected]] On Behalf Of Payne, Benjamin > Sent: Wednesday, October 31, 2012 5:00 PM > To: [email protected]; gem5 users mailing list > Subject: Re: [gem5-users] video documentation > > I tried your suggestion of running the .img with qemu and ARM, but wasn't successful. Could you be more specific with which commands I should run? > > Here's what I tried: > > sudo apt-get install qemu-user-static qemu qemu-user qemu-system wget http://www.m5sim.org/dist/current/arm/arm-system-2011-08.tar.bz2 [2] > tar jxf arm-system-2011-08.tar.bz2 > > # when I go to run that img with qemu, I need to specify the kernel. > qemu-system-arm disks/linux-arm-ael.img -kernel binaries/vmlinux.arm.smp.fb.2.6.38.8 > # Unfortunately, I get " Segmentation fault (core dumped)" > # Also, specifying memory and CPU didn't help qemu-system-arm -m 1G -cpu arm926 disks/linux-arm-ael.img -kernel binaries/vmlinux.arm.smp.fb.2.6.38.8 > # I still get " Segmentation fault (core dumped)" > > Thanks, > > Ben > > PS: I added notes that video quality can be set to 1080 > > From: [email protected] [mailto:[email protected]] On Behalf Of Ali Saidi > Sent: Wednesday, October 31, 2012 1:38 PM > To: gem5 users mailing list > Subject: Re: [gem5-users] video documentation > > Hi Ben, > > These are great! Thanks for taking the time to create them. Could you find an appropriate place on the wiki and add the videos to the pages? One of the other things that comes up rather frequently is how to put new benchmarks on the disk image. You mention some ideas of how to do this in the video (although I'm not sure how wget or scp would work from within the simulator since there isn't a working way to attach the simulator to an external network, although you can attached two simulated systems together). If you looking for more ideas for other tutorial videos that one that illustrated how to add files to the disk image would be great. A little known but very useful fact is if you have the qemu-user-static package installed on ubuntu you can actually chroot to a mounted disk image and manipulate it pretty much the same way would would on a real system (apt-get packages, compile code, etc). A video on doing that would be wonderful. Thanks again, Ali > > On 31.10.2012 13:19, Payne, Benjamin wrote: > Hello, > > I've posted two videos on gem5 for beginers, > "gem5 installation: build ARM gem5.opt" > https://www.youtube.com/watch?v=SW63HJ0nW90 [3] > and > "gem5 full system simulation arm ubuntu" > https://www.youtube.com/watch?v=gd_DtxQD5kc [4] > > Both are 1080, so they are watchable in full screen mode. > > Please let me know if you have comments or suggestions. > > What other tutorials would be useful? > > Kindly, > > Ben Payne > http://mst.edu/~bhpxc9/ [5] > Suite 450, Room S452 > 5520 Research Park Drive > Catonsville, MD 21228-4870 > Laboratory for Physical Sciences > http://www.lps.umd.edu/ [6] > office: 443-654-7890 > cell: 608-308-2413 > > _______________________________________________ > gem5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users [7] > > _______________________________________________ > gem5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users [7] > _______________________________________________ > gem5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users [7] Links: ------ [1] http://gem5.org/Frequently_Asked_Questions#How_do_I_add_files_to_a_disk_image.3F [2] http://www.m5sim.org/dist/current/arm/arm-system-2011-08.tar.bz2 [3] https://www.youtube.com/watch?v=SW63HJ0nW90 [4] https://www.youtube.com/watch?v=gd_DtxQD5kc [5] http://mst.edu/~bhpxc9/ [6] http://www.lps.umd.edu/ [7] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
