完全内核移植–kernel3.15.3

  1. 目标平台 明远智睿 EK314   CPU I.MAX6Q
  2. 内核版本 3.15.3
  3. 编译器 arm-none-linux-gnueabi-gcc-4.8.3

 

1。下载纯净内核

2。配置Makefile

3。拷贝cp  imx_v6_v7_defconfig  .config

4。# make menuconfig  退出保存

5。#make zImage   进行第一次编译,看能否通过

6。修改配置

Boot options —>

-*- Flattened Device Tree support

(noinitrd console=ttymxc0,115200) Default kernel command string

7。烧写启动

Starting kernel …

Booting Linux on physical CPU 0x0
Linux version 3.14.52 (root@lornyin-Inspiron-N4050) (gcc version 4.8.3 20140320 (prerelease) (Sourcery CodeBench Lite 2014.05-29) ) #9 SMP Sat Oct 7 20:49:14 CST 2017
CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine model: MYZR i.MX6 Evaluation Kit (MY-IMX6-EK314-6Q)
Memory policy: Data cache writealloc
PERCPU: Embedded 7 pages/cpu @bf7be000 s8128 r8192 d12352 u32768
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260096
Kernel command line: console=ttymxc0,115200 cma=320M root=/dev/mmcblk3p2 rootwait rw
PID hash table entries: 4096 (order: 2, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 1025880K/1048576K available (5571K kernel code, 311K rwdata, 1776K rodata, 267K init, 5490K bss, 22696K reserved, 0K highmem)
Virtual kernel memory layout:

。。。。。。。。

mmc1: BKOPS_EN bit is not set
snvs_rtc 20cc034.snvs-rtc-lp: setting system clock to 1970-01-01 00:00:00 UTC (0)
imx-drm imx-drm: No connectors reported connected with modes
mmc1: new high speed DDR MMC card at address 0001
mmcblk0: mmc1:0001 SEM04G 3.68 GiB
mmcblk0boot0: mmc1:0001 SEM04G partition 1 2.00 MiB
mmcblk0boot1: mmc1:0001 SEM04G partition 2 2.00 MiB
mmcblk0rpmb: mmc1:0001 SEM04G partition 3 2.00 MiB
mmcblk0: p1 p2
mmcblk0boot1: unknown partition table
mmcblk0boot0: unknown partition table
ata1: SATA link down (SStatus 0 SControl 300)
[drm] Cannot find any crtc or sizes – going 1024×768
Console: switching to colour frame buffer device 128×48
imx-drm imx-drm: fb0: frame buffer device
imx-drm imx-drm: registered panic notifier
Waiting for root device /dev/mmcblk3p2…

 

卡死在这里,换上正常内核,启动对比启动信息,发现mmc节点应该是mmcblk0,而这里在Waiting for root device /dev/mmcblk3p2…

修改uboot参数

=> setenv mmcroot /dev/mmcblk0p2 rootwait rw

=> save

=> reset

成功启动

 

8。裁剪 (按个人需求)

1、去掉多余板卡支持

2、去掉声卡支持

3、去掉 Wireless LAN

4、去掉Multimedia support  —>

Remote Controller support

Remote Controller devices

Remote controller decoders

V4L platform devices —-

Cameras/video grabbers support

 

2017-11-09

待续~~~~~~~~~~~~~~~

 

superyin