[m5-dev] Configuration file for building Linux x86

2010-06-16 Thread Joel Hestness
Hi,
  This might be a question for Gabe:
  Steve Reinhardt pointed me to a Linux binary that I have been able to boot
with X86_FS.  I have built a couple different binaries from the Linux
source, including the M5 specific patches, but it appears that M5 hangs when
trying to boot them.  I am wondering if there are any critical options that
I need to look for in the .config file, or if anyone has a .config
specifically for building X86_FS kernel binaries.
  Also, any tips for debugging M5 Linux boot?
  Thank you,
  Joel

-- 
 Joel Hestness
 PhD Student, Computer Architecture
 Dept. of Computer Science, University of Texas - Austin
 http://www.cs.utexas.edu/~hestness
___
m5-dev mailing list
m5-dev@m5sim.org
http://m5sim.org/mailman/listinfo/m5-dev


Re: [m5-dev] Configuration file for building Linux x86

2010-06-16 Thread Gabriel Michael Black
You shouldn't really need any special .config options, although use  
more adventurous settings at your own risk. Where is it hanging? Is  
there any output at all? What I usually did when this happened was to  
wait until I thought it was hung, kill it so that it printed what tick  
it stopped at, and then run it again with tracing turned on at that  
tick. Be careful, once it hits that tick you can fill up your  
harddrive pretty quickly if you've wandered away. Hopefully you'll be  
able to tell what function it's in, what it's waiting on, if it's  
still executing instructions, if it ran off into junk memory, etc.  
Also some parts of boot just take a long time, but since you've  
already booted something I'm guessing you know what to expect. When I  
have a chance and if I can find it, I'll send out the .config I used  
to make one of my kernels.


Gabe

Quoting Joel Hestness hestn...@cs.utexas.edu:


Hi,
  This might be a question for Gabe:
  Steve Reinhardt pointed me to a Linux binary that I have been able to boot
with X86_FS.  I have built a couple different binaries from the Linux
source, including the M5 specific patches, but it appears that M5 hangs when
trying to boot them.  I am wondering if there are any critical options that
I need to look for in the .config file, or if anyone has a .config
specifically for building X86_FS kernel binaries.
  Also, any tips for debugging M5 Linux boot?
  Thank you,
  Joel

--
 Joel Hestness
 PhD Student, Computer Architecture
 Dept. of Computer Science, University of Texas - Austin
 http://www.cs.utexas.edu/~hestness




___
m5-dev mailing list
m5-dev@m5sim.org
http://m5sim.org/mailman/listinfo/m5-dev


Re: [m5-dev] Configuration file for building Linux x86

2010-06-16 Thread Gabe Black
Here's one for a 2.6.22.9 SMP kernel. I have other ones that are more
recent, but they may not have SMP support turned on. I can give you
those as well if you'd like.

Gabe

Gabriel Michael Black wrote:
 You shouldn't really need any special .config options, although use
 more adventurous settings at your own risk. Where is it hanging? Is
 there any output at all? What I usually did when this happened was to
 wait until I thought it was hung, kill it so that it printed what tick
 it stopped at, and then run it again with tracing turned on at that
 tick. Be careful, once it hits that tick you can fill up your
 harddrive pretty quickly if you've wandered away. Hopefully you'll be
 able to tell what function it's in, what it's waiting on, if it's
 still executing instructions, if it ran off into junk memory, etc.
 Also some parts of boot just take a long time, but since you've
 already booted something I'm guessing you know what to expect. When I
 have a chance and if I can find it, I'll send out the .config I used
 to make one of my kernels.

 Gabe

 Quoting Joel Hestness hestn...@cs.utexas.edu:

 Hi,
   This might be a question for Gabe:
   Steve Reinhardt pointed me to a Linux binary that I have been able
 to boot
 with X86_FS.  I have built a couple different binaries from the Linux
 source, including the M5 specific patches, but it appears that M5
 hangs when
 trying to boot them.  I am wondering if there are any critical
 options that
 I need to look for in the .config file, or if anyone has a .config
 specifically for building X86_FS kernel binaries.
   Also, any tips for debugging M5 Linux boot?
   Thank you,
   Joel

 -- 
  Joel Hestness
  PhD Student, Computer Architecture
  Dept. of Computer Science, University of Texas - Austin
  http://www.cs.utexas.edu/~hestness



 ___
 m5-dev mailing list
 m5-dev@m5sim.org
 http://m5sim.org/mailman/listinfo/m5-dev

#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.22.9
# Fri Feb 27 22:08:02 2009
#
CONFIG_X86_64=y
CONFIG_64BIT=y
CONFIG_X86=y
CONFIG_GENERIC_TIME=y
CONFIG_GENERIC_TIME_VSYSCALL=y
CONFIG_ZONE_DMA32=y
CONFIG_LOCKDEP_SUPPORT=y
CONFIG_STACKTRACE_SUPPORT=y
CONFIG_SEMAPHORE_SLEEPERS=y
CONFIG_MMU=y
CONFIG_ZONE_DMA=y
CONFIG_RWSEM_GENERIC_SPINLOCK=y
CONFIG_GENERIC_HWEIGHT=y
CONFIG_GENERIC_CALIBRATE_DELAY=y
CONFIG_X86_CMPXCHG=y
CONFIG_EARLY_PRINTK=y
CONFIG_GENERIC_ISA_DMA=y
CONFIG_GENERIC_IOMAP=y
CONFIG_ARCH_MAY_HAVE_PC_FDC=y
CONFIG_ARCH_POPULATES_NODE_MAP=y
CONFIG_DMI=y
CONFIG_AUDIT_ARCH=y
CONFIG_GENERIC_BUG=y
# CONFIG_ARCH_HAS_ILOG2_U32 is not set
# CONFIG_ARCH_HAS_ILOG2_U64 is not set
CONFIG_DEFCONFIG_LIST=/lib/modules/$UNAME_RELEASE/.config

#
# Code maturity level options
#
CONFIG_EXPERIMENTAL=y
CONFIG_LOCK_KERNEL=y
CONFIG_INIT_ENV_ARG_LIMIT=32

#
# General setup
#
CONFIG_LOCALVERSION=
CONFIG_LOCALVERSION_AUTO=y
CONFIG_SWAP=y
CONFIG_SYSVIPC=y
# CONFIG_IPC_NS is not set
CONFIG_SYSVIPC_SYSCTL=y
CONFIG_POSIX_MQUEUE=y
# CONFIG_BSD_PROCESS_ACCT is not set
# CONFIG_TASKSTATS is not set
# CONFIG_UTS_NS is not set
# CONFIG_AUDIT is not set
CONFIG_IKCONFIG=y
CONFIG_IKCONFIG_PROC=y
CONFIG_LOG_BUF_SHIFT=18
# CONFIG_CPUSETS is not set
CONFIG_SYSFS_DEPRECATED=y
# CONFIG_RELAY is not set
CONFIG_BLK_DEV_INITRD=y
CONFIG_INITRAMFS_SOURCE=
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
CONFIG_SYSCTL=y
# CONFIG_EMBEDDED is not set
CONFIG_UID16=y
CONFIG_SYSCTL_SYSCALL=y
CONFIG_KALLSYMS=y
CONFIG_KALLSYMS_ALL=y
# CONFIG_KALLSYMS_EXTRA_PASS is not set
CONFIG_HOTPLUG=y
CONFIG_PRINTK=y
CONFIG_BUG=y
CONFIG_ELF_CORE=y
CONFIG_BASE_FULL=y
CONFIG_FUTEX=y
CONFIG_ANON_INODES=y
CONFIG_EPOLL=y
CONFIG_SIGNALFD=y
CONFIG_EVENTFD=y
CONFIG_SHMEM=y
CONFIG_VM_EVENT_COUNTERS=y
CONFIG_SLAB=y
# CONFIG_SLUB is not set
# CONFIG_SLOB is not set
CONFIG_RT_MUTEXES=y
# CONFIG_TINY_SHMEM is not set
CONFIG_BASE_SMALL=0

#
# Loadable module support
#
CONFIG_MODULES=y
CONFIG_MODULE_UNLOAD=y
CONFIG_MODULE_FORCE_UNLOAD=y
# CONFIG_MODVERSIONS is not set
# CONFIG_MODULE_SRCVERSION_ALL is not set
# CONFIG_KMOD is not set
CONFIG_STOP_MACHINE=y

#
# Block layer
#
CONFIG_BLOCK=y
# CONFIG_BLK_DEV_IO_TRACE is not set

#
# IO Schedulers
#
CONFIG_IOSCHED_NOOP=y
# CONFIG_IOSCHED_AS is not set
CONFIG_IOSCHED_DEADLINE=y
CONFIG_IOSCHED_CFQ=y
# CONFIG_DEFAULT_AS is not set
# CONFIG_DEFAULT_DEADLINE is not set
CONFIG_DEFAULT_CFQ=y
# CONFIG_DEFAULT_NOOP is not set
CONFIG_DEFAULT_IOSCHED=cfq

#
# Processor type and features
#
CONFIG_X86_PC=y
# CONFIG_X86_VSMP is not set
# CONFIG_MK8 is not set
# CONFIG_MPSC is not set
# CONFIG_MCORE2 is not set
CONFIG_GENERIC_CPU=y
CONFIG_X86_L1_CACHE_BYTES=128
CONFIG_X86_L1_CACHE_SHIFT=7
CONFIG_X86_INTERNODE_CACHE_BYTES=128
CONFIG_X86_TSC=y
CONFIG_X86_GOOD_APIC=y
# CONFIG_MICROCODE is not set
CONFIG_X86_MSR=y
CONFIG_X86_CPUID=y
CONFIG_X86_HT=y
CONFIG_X86_IO_APIC=y
CONFIG_X86_LOCAL_APIC=y
CONFIG_MTRR=y
CONFIG_SMP=y
# CONFIG_SCHED_SMT is not set
CONFIG_SCHED_MC=y
# CONFIG_PREEMPT_NONE is not set
CONFIG_PREEMPT_VOLUNTARY=y
#