U-Boot > boot
Loading from NAND 256MiB 3,3V 8-bit, offset 0x300000
Image Name: Linux-3.3.0
Image Type:
ARM Linux Kernel Image (uncompressed)
Data Size: 2772992 Bytes = 2.6 MB
Load Address: c0008000
Entry Point: c0008000
## Boo
ting kernel from Legacy Image at c0700000 ...
Image Name: Linux-3.3.0
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2772992 Bytes = 2.6 MB
Load Address: c0008000
Entry Point: c0008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
如上所述,内核停在这里不动静了。
后来在menuconfig 打开“Kernel low-level debugging functions”。并在相应的位置添加了一些打印信息(必须调用汇编里的printascii函数才能打印出来,printk打印不出来)。启动信息如下:
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
HuanYi-----lockdep_init OK!!
HuanYi-----smp_setup_processor_id OK!!
HuanYi-----debug_objects_early_init OK!!
HuanYi-----boot_init_stack_canary OK!!
HuanYi-----cgroup_init_early OK!!
HuanYi-----local_irq_disable OK!!
HuanYi-----tick_init OK!!
HuanYi-----boot_cpu_init OK!!
HuanYi-----page_address_init OK!!
HuanYi-----setup_processor OK!!
HuanYi-----setup_machine OK!!
HuanYi-----parse_early_param OK!!
HuanYi-----sanity_check_meminfo OK!!
HuanYi-----arm_memblock_init OK!!
HuanYi-----memblock_set_current_limit OK!!
HuanYi-----build_mem_type_table OK!!
HuanYi-----prepare_page_table OK!!
HuanYi-----map_lowmem OK!!
HuanYi-----arch/arm/mm/mmu.c devicemaps_init Enter!!
HuanYi----create_mapping_3 OK!!
HuanYi----create_mapping_5 OK!!
HuanYi-----/arch/arm/include/ars/Tlbflush.h local_flush_tlb_all Enter!!
HuanYi-----TLB_WB OK!!
HuanYi-----TLB_V4_D_FULL | TLB_V6_D_FULL OK!!
HuanYi-----TLB_V4_I_FULL | TLB_V6_I_FULL OK!!
HuanYi-----TLB_V7_UIS_FULL END!!
HuanYi-----local_flush_tlb_all Return!!
`IžãoœooÍcoÉbpŒ“nàA“n“÷oàoïón€ìlclˆlh`ˆ“OàñnœonÍboÍcoýcà1sNØócà1“obìñopp’oÄ“ncà1sOc6ƒnÁânÜ“O|`ãcèÆœóopƒoœ8’o|`óypcn’'oœnoÍcoÍcoADZ`ló
Í““Ælblˆlh`ˆ“oàñnœooÍcoÍcoA
出现一些乱码后就不动了。
进一步跟踪,发现在/arch/arm/mmu.c里devicemaps_init(0这个函数里的:mdesc->map_io(); 有问题,把这个注释掉就不会有乱码,但内核仍然启动不了;把这个加上去就有乱码了,内核也仍然运行不起来。
我找了两天了,基本排除ID号不对、串口号不对的问题。不知是何原因,还请高手指点, 不胜感激!!!