移植android4.0内核时,Starting kernel ...没反应问题解决方法

1.问题

用友善自带supperboot引导自己初步编译的4.0内核(android-3.4)时,Starting kernel ...没反应


2.解决方法

引用http://blog.sina.com.cn/s/blog_6340cd9c010106pu.html,具体细节:

查看源代码根目录/.config文件——

首先找到

#
# Boot options
#
# CONFIG_S3C_BOOT_ERROR_RESET is not set
CONFIG_S3C_BOOT_UART_FORCE_FIFO=y
CONFIG_S3C_LOWLEVEL_UART_PORT=1 / /默认用来调试的串口(这里设置为串口1)
CONFIG_SAMSUNG_CLKSRC=y
CONFIG_SAMSUNG_IRQ_VIC_TIMER=y

再找到

# CONFIG_DEBUG_RODATA is not set
CONFIG_DEBUG_LL=y
CONFIG_DEBUG_S3C_UART0=y  / / 串口0被设置为调试输出口
# CONFIG_DEBUG_S3C_UART1 is not set
# CONFIG_DEBUG_S3C_UART2 is not set
# CONFIG_DEBUG_LL_UART_NONE is not set
# CONFIG_DEBUG_ICEDCC is not set
# CONFIG_DEBUG_SEMIHOSTING is not set

找到问题为串口选择错误,修改方法:make menuconfig: System Type--->(0)S3C UART to use for low-level messages(即修CONFIG_S3C_LOWLEVEL_UART_PORT=0),便可看到激动人心的内核启动打印信息:

Board type: 2
Load Kernel...
Uncompressing Linux... done, booting the kernel.
<6>Booting Linux on physical CPU 0
<5>Linux version 3.4.5-g8e2dfe1-dirty (root@powerking-Lenovo) (gcc version 4.5.1 (ctng-1.8.1-FA) ) #8 PREEMPT Thu Jan 10 09:39:01 CST 2013
CPU: ARMv7 Processor [412fc082] revision 2 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: MINI210
Memory policy: ECC disabled, Data cache writeback
CPU S5PV210/S5PC110 (id 0x43110220)


3.完


你可能感兴趣的:(移植android4.0内核时,Starting kernel ...没反应问题解决方法)