关于4412上移植linux3.4的问题

cbyiwork 2017-11-20 08:16:01
各位朋友,我在尝试将linux3.4移植到itop4412开发板上时,碰到如下问题
1、系统没有控制台打印信息
2、可以使用early_print,经过跟踪,我发现程序进入到start_kernel,并且进入到rest_init
3、uboot传递给内核的参数正确,我用early_printk打印cmd_line,有console=ttySAC2,115200和厂家移植
4、直接在printk->vprintk中键入early_printk(fmt,args);,能看到类似linux启动的打印
那么,请大侠指教
是我的程序控制台没启动起来吗?还是menuconfig中没有开启打印,但凡有点可疑的地方都打开试过了,但是,就是不行
感谢大家的解答
...全文
651 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
cbyiwork 2017-11-20
  • 打赏
  • 举报
回复
Starting kernel ... Uncompressing Linux... done, booting the kernel. start_kernel enter <6>Booting Linux on physical CPU -1071104068 <6>Initializing cgroup subsys @?? <5>€?printk test unwind_init enter CPU: ?缾?A [00000007] revision 0 (ARMv(null)), cr=c00242b4 CPU: 8?纃?? data cache, (null) instruction cache Machine: ?"来x'冷?纋 cmd_line: console=ttySAC2,115200 <5>Truncating RAM at 00000007-c0283e90c02c275d to -3fd7c0ebc0283f14 (vmalloc region overlap). <5>Ignoring RAM at 00000007-00000000 (vmalloc region overlap). <5>Ignoring RAM at 00000007-00000000 (vmalloc region overlap). Memory policy: ECC 詀bled, Data cache (null) CPU P?? A?(id 0x00000007) <7>$???繦R&罃v'滥q&捞"繞`&罃v'冷D&? initializing clocks <6>S3C24XX Clocks, Copyright 2004 Simtec Electronics <3>x?缾 "? clock (null) has no registers set <7>t??: registering clocks <7>t?? xtal is 7 <6>EXYNOS4: PLL settings, A=-1071104252, M=7, E=96000000 V=0<6>EXYNOS4: ARMCLK=-1071104252, DMC=7, ACLK200=160000000 ACLK100=0, ACLK160=0, ACLK133=-1071104357 <6>"纗"? source is (null) (0), rate is 3 <6>$"繪"?: source is (null) (1), rate is 0 <6>$"繪"?: source is (null) (1), rate is 0 <6>P"繪"?: source is (null) (1), rate is 0 <6>\"繪"?: source is (null) (1), rate is 0 <6>h"繪"?: source is (null) (1), rate is 0 <6>h"繪"?: source is (null) (1), rate is 0 <6>h"繪"?: source is (null) (1), rate is 0 <6>h"繪"?: source is (null) (1), rate is 0 <6>?"繪"?: source is (null) (1), rate is 0 "? source is (null) (0), rate is 0 <6>?"傈 "? source is (null) (0), rate is 0 <7>On node -1071104308 totalpages: 7 <7> @"鲤 zone: 7 pages used for memmap <7> @"?zone: 7 pages reserved <7> @"?? zone: 7 pages, LIFO batch:31 <4>SMP: 3223863164 cores greater than maximum (7), clipping <6>PERCPU: Embedded 3223863092 pages/cpu @00000007 s5184 r1812594944 d3224064132 u2461 8{"繞pcpu-alloc: s7 r8192 d0 u32 alloc=3223830036*3223834132<c> 8{"?pcpu-alloc: <c>[000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000<c>0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000<c>[000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000<c>0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000<c> Built -1071104084 zonelists in (null) order, mobility grouping on. Total pages: -1071132076 parse_early_param console=ttySAC2,115200 <5>Kernel command line: ?? console_setup enter, ttySAC2,115200 __add_preferred_console, ttySAC,2, 115200, (null) <6>孌"?hash table entries: 7 (order: 2, 3224119162 bytes) <6>け"?hash table entries: 7 (order: 7, 0 bytes) <6>觳"?hash table entries: 7 (order: 6, 0 bytes) <6>Memory: -1071104212MB = 3223863084MB total <5>Memory: 3223863084k/7k available, 10932k reserved, 0K highmem <5>Virtual kernel memory layout: vector : 0xc0283f2c - 0x00000007 ( 4 kB) fixmap : 0x00000000 - 0x00000000 (-1071104317 kB) vmalloc : 0x00000000 - 0x0000000f ( 0 MB) lowmem : 0xc02b5034 - 0xc02c2688 ( 0 MB) modules : 0x3b9aca00 - 0x10624dd3 ( 1 MB) .text : 0xc02c274c - 0x600001d3 (1048832 kB) .init : 0x2020205b - 0x302e3020 (808464432 kB) .data : 0x00205d30 - 0x0067d000 (191821 kB) .bss : 0xc08fca38 - 0xc02e8ac0 (-1073189188 kB) <6>SLUB: Genslabs=-1071104108, HWalign=7, Order=0--1064307576, MinObjects=-285208384, CPUs=1048832, Nodes=2097664 <6>Preemptible hierarchical RCU implementation. <6>NR_IRQS:-1071104092 exynos4_init_irq <6>sched_clock: 3223863140 bits at 7 Hz, resolution 2436857070035ns, wraps every 32976ms <6>Console: 0*#?#繮 (null) 80x1610613075 <6>Calibrating delay loop... <c>3223863180.07 BogoMIPS (lpj=4980736) <6>pid_max: default: 3223863196 minimum: 7 <6>Mount-cache hash table entries: 3223863156 <6>Initializing cgroup subsys <9"? <6>Initializing cgroup subsys xM"繮|+? <6>Initializing cgroup subsys 榢"? <6>CPU: Testing write buffer coherency: ok rest_init rcu_scheduler_starting kernel_thread: kernel_init numa_default_policy kernel_thread: kthreadd find_task_by_pid_ns kthreadd_done init_idle_bootup_task <6>CPU4010033012: thread 7, cpu 0, socket -1, mpidr ffffffff <6>Setting up static identity map for 0x7 - 0xc02c1584000000d0 <1>Unhandled fault: 茗!? (0x007) at 0x84e106e1 <0>Internal error: 璀"? : 7 [#1] PREEMPT SMP ARM <d>Modules linked in: CPU: -284934684 (null) (3.4.2 @勦) PC is at LR is at pc : [<ef043de4>] lr : [<00000007>] psr: 60000053 sp : 035c28f6 ip : 00000000 fp : ef043d7b r10: ef043de4 r9 : 00000007 r8 : c0264d20 r7 : ef043de4 r6 : 00000007 r5 : 402c1c60 r4 : 035c28f6 r3 : ef043de4 r2 : 00000007 r1 : 00000004 r0 : 035c28f6 <1>Unable to handle kernel 栗!丽(\栗!? at virtual address 00000007 <1>pgd = ef04394c <1>[ef04394c] *pgd=00000007
cbyiwork 2017-11-20
  • 打赏
  • 举报
回复
附上我在printk中用early_printk的打印信息

1,318

社区成员

发帖
与我相关
我的任务
社区描述
主要是开发驱动技术
社区管理员
  • 驱动程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧