Thanks Ali. Now I have used config_arm_2.6.38_mp_fb to get a kernel build
2.6.38.

I can run my build in simulator with m5term monitoring the process. But the
system got stuck after 5 seconds. Here is the last portion of the trace:

[    0.000000] [<c002e8ac>] (__dabt_svc+0x4c/0x60) from [<c02397bc>]
(pcpu_dump_alloc_info+0x2c/0x298)
[    0.000000] [<c02397bc>] (pcpu_dump_alloc_info+0x2c/0x298) from
[<c001152c>] (pcpu_setup_first_chunk+0x48c/0x7b0)
[    0.000000] [<c001152c>] (pcpu_setup_first_chunk+0x48c/0x7b0) from
[<c0011ec4>] (pcpu_embed_first_chunk+0x674/0x734)
[    0.000000] [<c0011ec4>] (pcpu_embed_first_chunk+0x674/0x734) from
[<c0011fb0>] (setup_per_cpu_areas+0x2c/0xb4)
[    0.000000] [<c0011fb0>] (setup_per_cpu_areas+0x2c/0xb4) from
[<c00088d4>] (start_kernel+0xec/0x294)
[    0.000000] [<c00088d4>] (start_kernel+0xec/0x294) from [<00008034>]
(0x8034)
[    0.000000] Code: e8b30003 e0222862 e58d200c e1d330b0 (e5870000)
[    0.000000] Unhandled fault: alignment exception (0x801) at 0xc02e84e6
[    0.000000] Internal error: : 801 [#10] SMP
[    0.000000] last sysfs file:
[    0.000000] Modules linked in:
[    0.000000] CPU: 0    Tainted: G      D      (2.6.38-gem5 #1)

Any idea on the alignment exception? Here is my gcc version:

arm-linux-gnueabi-gcc -v
...
gcc version 4.7.2 (Ubuntu/Linaro 4.7.2-1ubuntu1) .

The command I used to compile Linux is simple:  make ARCH=arm
CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- vmlinux -j4

Thanks for help.

Best,
Chen



On Fri, Jan 11, 2013 at 8:48 AM, Ali Saidi <sa...@umich.edu> wrote:

> **
>
> Hi Chen,
>
> You probably should start with one of the kernel config files available on
> the website on the download page. Otherwise, you'll need to use some debug
> flags to see what code is executing and where it is getting stuck in the
> boot process.
>
>
>
> Ali
>
>
>
> On 10.01.2013 16:31, Chen Tian wrote:
>
>
> Hi Ali,
>
> Thanks for the reply.
>
> I have tried both 3.7 and 2.6 with those checks commented out. The
> simulator does not complain any more. However, I cannot see anything. Here
> is a trace:
>
>  ./build/ARM/gem5.opt ./configs/example/fs.py
> warning: No header file specified for SimObject: Switch
> gem5 Simulator System.  http://gem5.org
> gem5 is copyrighted software; use the --copyright option for details.
>
> gem5 compiled Jan 10 2013 13:07:30
> gem5 started Jan 10 2013 13:09:52
> gem5 executing on tianc-testBox
> command line: ./build/ARM/gem5.opt ./configs/example/fs.py
> Global frequency set at 1000000000000 ticks per second
> info: kernel located at:
> /home/tianc/Research/simulator/gem5/OS_images/tian-arm-system/binaries/vmlinux
> Listening for system connection on port 5900
> Listening for system connection on port 3456
> 0: system.remote_gdb.listener: listening for remote gdb #0 on port 7000
> info: Using bootloader at address 0x80000000
> **** REAL SIMULATION ****
> info: Entering event queue @ 0.  Starting simulation...
> 868881167500: system.terminal: attach terminal 0
> ^Chack: be nice to actually delete the event here
> Exiting @ tick 875688929000 because user interrupt received
>
>
>  ls -lt m5out/
> total 76
> -rw-r--r-- 1 tianc tianc 31444 Jan 10 13:24 stats.txt
> -rw-r--r-- 1 tianc tianc     0 Jan 10 13:09 system.framebuffer.bmp
> -rw-r--r-- 1 tianc tianc     0 Jan 10 13:09 system.terminal
> -rw-r--r-- 1 tianc tianc 31402 Jan 10 13:09 config.json
> -rw-r--r-- 1 tianc tianc 11965 Jan 10 13:09 config.ini
>
> I tried to use m5term as you can see, but did not get anything. Clearly,
> the linux does not boot or at least not boot to allow me to log in. I
> wonder if I did something wrong here. Linux kernel is compiled with
> 64-bit arm-linux-gnueabi-gcc on a 64-bit untuntu.
>
> Any suggestions?
>
> Thanks.
>
> Best,
> Chen
>
>
>
>
> >Hi Chen,
>
> >The source code to boot.arm is in system/arm/bootloader
> >it's a very simple bootloader that just puts enough stuff in registers
> >for the kernel to start. I haven' tried Linux 3.7, but we trap udelay so
> >that we can skip the function in the simulator and just account for the
> >time rather than simulating a busy loop. You can safely comment out that
> >code, os try to determine what the symbol has changed to in 3.7.
>
> >Ali
>
>
> >On 09.01.2013 18:18, Chen Tian wrote:
>
> >> Hello,
> >>
> >> As a new GEM5user, I am trying to boot kernel 3.7 for ARM on GEM5.
> >I put my
> kernel binary, GEM5's boot.arm binary into path/to/my/os/binaries, and
> disk files extracted from arm-system-2011-08.tar.bz2 into
> path/to/my/os/disks. Then set $M5_PATH= path/to/my/os.
> >
> > To run it,
> I issued "./build/ARM/gem5.opt configs/example/fs.py".
> >
> > However, I
> got this "
> >
> > panic: couldn't find kernel symbol 'udelay'
> > @ cycle
> 410124
> > [LinuxArmSystem:build/ARM/arch/arm/linux/system.cc, line 78]
>
> > Memory Usage: 410124 KBytes
> > Program aborted at cycle 0
> > Aborted
>
> > "
> >
> > Can somebody help me found out why?
> >
> > Also, what is
> boot.arm for? Is there any source code for this binary?
> >
> > Thanks.
> >
>
> > Chen
> >
> > _______________________________________________
> >
> gem5-users mailing list
> > gem5-users@gem5.org
> >
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users [1]
>
> _______________________________________________
> gem5-users mailing 
> listgem5-users@gem5.orghttp://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

Reply via email to