On Thu, Sep 15, 2011 at 3:06 PM, Ali Saidi <sa...@umich.edu> wrote: > You'll need to create a disk image as outlined in: > > http://gem5.org/Disk_images > > and put the android filesystem on it. You should make sure that android is > in the name of the disk image so gem5 appends the correct kernel command > line.
So I tried what you said. For the disk: I compiled Android from source, dropped all the relevant files from different Android file systems into one big ext2 file system mounted at '/'. As for the kernel: I followed the instructions here to compile the kernel : http://www.linux-arm.org/LinuxKernel/LinuxAndroidPlatform as you told me. I notice I need to rename the disk image to ael-arm.ext2 and the kernel to vmlinux.arm for fs.py to load the kernel and disk image correctly. After doing so, and changing the M5_PATH to point to the appropriate files, I am still unable to boot it in Full System. Here is what happens: 1. I first run ARM_FS using the kernel I built from http://www.linux-arm.org/LinuxKernel/LinuxAndroidPlatform ( specifically I use the uImage file that the build generates) . The file system is generated by compiling Android from source and aggregating files. It says vmlinux.arm could not be loaded. I am not sure, but probably the kernel image is not expected to be a uImage ( which is created from the Linux kernel build) but rather something else ? Alternatively, is a separate bootloader file required ? 2. So I tried copying the ARM_FS full system files from http://www.m5sim.org/dist/current/arm/arm-system-2011-08.tar.bz2 and tried running that ( after renaming the kernel file in 'binaries' to vmlinux.arm and the disk image in 'disks' to ael-arm.ext2). It now fails with : fatal: system.membus has two ports with same range: system.bridge-portB system.diskmem-port0 @ cycle 0 [recvStatusChange:build/ARM_FS/mem/bus.cc, line 551] Memory Usage: 7391584 KBytes 3. I also tried the Android file system I created with the kernel taken from the gem5 site. That fails as well. Any help on this would be great. Anirudh > > Ali > > > > You should be able to pass the kernel and disk image to gem5 and it should > owkr. > On Thu, 15 Sep 2011 10:29:11 -0400, Anirudh Sivaraman <sk.anir...@gmail.com> > wrote: >> >> Hi >> >> I followed the steps given at : >> http://www.linux-arm.org/LinuxKernel/LinuxAndroidPlatform to build the >> Android platform and the kernel images for ARM. I have all the >> relevant files for the Android platform on my system now. However, I >> am not sure how to put all of these into one disk image for GEM5 >> simulation. Would I need to separately add a bootloader file as well >> to the disk image ? The instructions here : >> http://gem5.org/Ubuntu_Disk_Image_for_ARM_Full_System seem specific to >> running Ubuntu on ARM, and I am not sure if these extend to Android >> directly. >> >> Anirudh >> _______________________________________________ >> gem5-users mailing list >> gem5-users@gem5.org >> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users > > _______________________________________________ > gem5-users mailing list > gem5-users@gem5.org > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users > _______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users