mini2440编译2.6.39.4内核


mini2440编译2.6.39.4内核
  1. [root@localhost linux-2.6.39.4]# cat /proc/version   
  2. Linux version 2.6.40.3-0.fc15.i686.PAE (mockbuild@x86-16.phx2.Fedoraproject.org) (gcc version 4.6.0 20110603 (Red Hat 4.6.0-10) (GCC) ) #1 SMP Tue Aug 16 04:17:30 UTC 2011  
  3. //the host version is 2.6.40.3,fedora 15   
  4. //the kernel vision used to compiled is 2.6.39.4    
  5. [root@localhost linux-2.6.39.4]# arm-linux-gcc -v  
  6. Using built-in specs.  
  7. Target: arm-none-linux-gnueabi  
  8. Configured with: /scratch/julian/lite-respin/linux/src/gcc-4.3/configure --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=arm-none-linux-gnueabi --enable-threads --disable-libmudflap --disable-libssp --disable-libstdcxx-pch --with-gnu-as --with-gnu-ld --enable-languages=c,c++ --enable-shared --enable-symvers=gnu --enable-__cxa_atexit --with-pkgversion='Sourcery G++ Lite 2008q3-72' --with-bugurl=https://support.codesourcery.com/GNUToolchain/ --disable-nls --prefix=/opt/codesourcery --with-sysroot=/opt/codesourcery/arm-none-linux-gnueabi/libc --with-build-sysroot=/scratch/julian/lite-respin/linux/install/arm-none-linux-gnueabi/libc --with-gmp=/scratch/julian/lite-respin/linux/obj/host-libs-2008q3-72-arm-none-linux-gnueabi-i686-pc-linux-gnu/usr --with-mpfr=/scratch/julian/lite-respin/linux/obj/host-libs-2008q3-72-arm-none-linux-gnueabi-i686-pc-linux-gnu/usr --disable-libgomp --enable-poison-system-directories --with-build-time-tools=/scratch/julian/lite-respin/linux/install/arm-none-linux-gnueabi/bin --with-build-time-tools=/scratch/julian/lite-respin/linux/install/arm-none-linux-gnueabi/bin   
  9. Thread model: posix  
  10. gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72)   
  11.   
  12. [root@localhost linux-2.6.39.4]# make mrproper  
  13. //clean all   
  14. [root@localhost linux-2.6.39.4]# make mini2440_defconfig ARCH=arm  
  15. //ARCH=arm用于指定用arch/arm/configs/mini2440_defconfig生成.config   
  16. [root@localhost linux-2.6.39.4]# make menuconfig ARCH=arm  
  17. /*如需要,配置一下内核 
  18. 由于Makefile中ARCH默认不是arm而是x86,CROSS_COMPILE默认也不是arm-linux- 
  19. 或者在Makefile中改一下ARCH为arm,或者在make命令中显示指定ARCH 
  20. 这样弹出来的menu中才是arm系列的cpu 
  21. 即在system type里会出现ARM sesytem type,然后再进入子菜单选cpu的具体型号 
  22. */  
  23. [root@localhost linux-2.6.39.4]# make zImage ARCH=arm CROSS_COMPILE=arm-linux-  
  24. //编译  
编译成功,下到mini2440里面却启动不了系统
  1. Copy linux kernel from 0x00060000 to 0x30008000, size = 0x00500000 ... done  
  2. zImage magic = 0x016f2818  
  3. Setup linux parameters at 0x30000100  
  4. linux command line is: "noinitrd root=/dev/mtdblock3 init=/linuxrc console=ttySAC0"  
  5. MACH_TYPE = 1999  
  6. NOW, Booting Linux......  
  7. Uncompressing Linux... done, booting the kernel.  
停在这里了
搜索源代码的Uncompressing,在documentation\ia64\Serial.txt里找到以下解决办法
  1. TROUBLESHOOTING SERIAL CONSOLE PROBLEMS  
  2.     No kernel output after elilo prints "Uncompressing Linux... done":  
  3.     - You specified "console=ttyS0" but Linux changed the device to which ttyS0 refers.  Configure exactly one EFI console  
  4.       device[3] and remove the "console=" option.  
  5.     - The EFI console path contains both a VGA device and a UART. EFI and elilo use both, but Linux defaults to VGA.  Remove  
  6.       the VGA device from the EFI console path[3].  
  7.     - Multiple UARTs selected as EFI console devices.  EFI and elilo use all selected devices, but Linux uses only one.  
  8.       Make sure only one UART is selected in the EFI console  
  9.       path[3].  
  10.     - You're connected to an HP MP port[2] but have a non-MP UART selected as EFI console device.  EFI uses the MP as a  
  11.       console device even when it isn't explicitly selected.  
  12.       Either move the console cable to the non-MP UART, or change  
  13.       the EFI console path[3] to the MP UART.  
  14.     Long pause (60+ seconds) between "Uncompressing Linux... done" and start of kernel output:  
  15.     - No early console because you used "console=ttyS<n>".  Remove the "console=" option if your firmware supplies an HCDP.  
  16.     - If you don't have an HCDP, the kernel doesn't know where your console lives until the driver discovers serial  
  17.       devices.  Use "console=uart, io,0x3f8" (or appropriate  

相关内容