TI中文支持网
TI专业的中文技术问题搜集分享网站

L138内核linux3.3.0运行不起来

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
## Booting 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号不对、串口号不对的问题。不知是何原因,还请高手指点, 不胜感激!!!

Kevin Le82:

你的linux系统是自己移植还是下载的,我目前使用tmdsexpl138开发板,可以给我一份吗?

wenrui zhai:

请问omapl138 linux内核在哪儿下载

 

李大闲:

回复 eagle lee:

呵呵呵呵

赞(0)
未经允许不得转载:TI中文支持网 » L138内核linux3.3.0运行不起来
分享到: 更多 (0)