Hi, I have successfully compiled the linux kernel version 2.6.27.6 using the instructions at http://www.m5sim.org/wiki/index.php/Compiling_a_Linux_Kernel
To cross-compile I used gcc-4.3.2, glibc-2.6.1 (NPTL,x86/64) found here: http://www.m5sim.org/dist/current/alphaev67-unknown-linux-gnu.tar.bz2 I have uploaded the binary at http://inf-server.inf.uth.gr/~getziadz/vmlinux-2.6.27.6-alpha The kernel is patched with the linux-patches from http://repo.m5sim.org/linux-patches (downloaded 2010-12-17 ) I hope that helps. George Tziantzioulis On Mon, Jan 17, 2011 at 10:51 PM, Ali Saidi <[email protected]> wrote: > Hi, > > Unfortunately, most of these issues seem like issues outside of M5, so it's > pretty hard for us to help. You can go to the cross tools NG website and > find a version of the cross compiler that works ( > http://ymorin.is-a-geek.org/projects/crosstool) for alpha. It seems like > GCC 4.4.2 will work. It's likely that this wersion of GCC is new enough to > successfully compile the linux kernel you mentioned below, but the 3.4.X > version of gcc may be too old. > > Good luck, > Ali > > On Jan 6, 2011, at 4:04 PM, Takaaki Hanada wrote: > > Hello, > > Please help me to make Linux kernel (vmlinux) 2.6.22 or above. > I want to use M5 with Full System(FS) mode for OoO Multi-Core processor > simulation. Now, I use M5-stable, and my target architecture is Alpha. > In addition, I need Linux kernel version 2.6.22 or above for FS mode > simulation. > > So, I tried to cross-compile Linux kernel 2.6.22 and 2.6.27 by > reference to M5-Documentation 'Using linux-dist to Create Disk Images > and Kernels for M5 > > http://www.m5sim.org/wiki/index.php/Using_linux-dist_to_Create_Disk_Images_and_Kernels_for_M5'. > But, I failed making > cross-compile methods as described in M5-Documentation. > I find out previous discussions like my encountered cross-compile > failures in m5-users ML. Though, I couldn't achieve solutions. > > Could you please help me to cross-compile Linux 2.6.22 or above? In the > bottom of this mail, I described the I tried Linux cross-compile ways. > On the other hand, If you succeeded making cross-compile Linux 2.6.22 > or above, Could you tell me cross-compile environment and configurations? > I'd be glad to try with the configurations. > > (If m5-team will permit, Please upload Linux 2.6.22 or 2.6.27 the same > as already uploaded Linux 2.6.13 in 'Full System Files' at > 'Download M5 http://www.m5sim.org/wiki/index.php/Download') > > > Thanks in advance for your help. > > > --* I tried cross-compile ways *-- > > ** cross-compile 'Linux 2.6.22' ** > 1. Kernel update and patch with Mercurial Queue => FAILED > :Error in 'hg qpush -a': > Unable to read m5/e1000_disable_tso_2.6.22.diff > errors during apply, please fix and refresh m5/ns83820_align_2.6.13.diff > > ** cross-compile 'Linux 2.6.27' ** > 1. Kernel update and patch with Mercurial Queue => OK > 2. Prepare the cross-compiler(target tool-chain 'gcc-3.4.3-glibc-2.3.5') > -- make cross-compiler with 'crosstool-0.43' => OK > -- make cross-compiler with 'crosstool-ng-1.8.2' => FAILED > :Error in 'ct-ng build': (I'll ask crosstool-ML about crosstool build > Error.) > > 3. Cross-compile Linux kernel => FAILED > :Error in 'make ARCH=alpha CROSS_COMPILE=... vmlinux': > linux-2.6/arch/alpha/include/asm/bug.h:13: error: impossible constraint in > `asm' > > --******************************-- > > -- > Takaaki Hanada (E-Mail: [email protected]) > > _______________________________________________ > m5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/m5-users > > > > _______________________________________________ > m5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/m5-users >
_______________________________________________ m5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
