嵌入式爱好者

查看: 901|回复: 3

[Linux] ok_mx6x_c_v1.3 imx6q 2g移植4.9.11问题

[复制链接]

1

主题

1

帖子

15

积分

i.MX6Q通行证

扫一扫,手机访问本帖
发表于 2019-10-16 09:23:54 | 显示全部楼层 |阅读模式
用这个“OKMX6Q-C、OKMX6DL-C_Qt5.6+Linux4.1.15用户资料(工业级商业级共用)_20181023\Linux\工具\mfgtools-linux4.1.15\mfgtools”
烧了4.1.15的,是没有问题的;
现在要用4.9.11的内核,从http://git.freescale.com/git/cgit.cgi/imx/linux-imx.git/下载了4.9.11的源码:linux-imx-freescale_4.9.11_427eb8371fd5e9bceec18ca8838ac6eb1e51ad3a.tar.gz,
用make imx_v7_default编译出zImage,

执行make dtbs生成设备树,将新生成的zImage和imx6q-sabresd.dtb 拷贝到OKMX6Q-C、OKMX6DL-C_Qt5.6+Linux4.1.15用户资料(工业级商业级共用)_20181023\Linux\工具\mfgtools-linux4.1.15\mfgtools\Profiles\Linux\OS Firmware\files\okmx6-c下,替换原有的zImage及imx6q-c-sabresd.dtb,烧写成功。
起来后的打印如下:

U-Boot 2016.03-00009-gc131a48 (Dec 03 2018 - 16:34:00 +0800)

CPU:   Freescale i.MX6Q rev1.5 996 MHz (running at 792 MHz)
CPU:   Extended Commercial temperature grade (-20C to 105C) at 42C
Reset cause: POR
Board: MX6-SabreSD
I2C:   ready
DRAM:  2 GiB
PMIC:  PFUZE100 ID=0x10
MMC:   FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
*** Warning - bad CRC, using default environment

Display: SEIKO-WVGA (800x480)
reading logo.bmp
1152054 bytes read in 47 ms (23.4 MiB/s)
In:    serial
Out:   serial
Err:   serial
switch to partitions #0, OK
mmc2(part 0) is current device
Net:   FEC [PRIME]
Error: FEC address not set.

Normal Boot
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc2(part 0) is current device
reading boot.scr
** Unable to read file boot.scr **
reading zImage
7251672 bytes read in 197 ms (35.1 MiB/s)
Booting from mmc ...
reading imx6q-c-sabresd.dtb
50548 bytes read in 19 ms (2.5 MiB/s)
Kernel image @ 0x12000000 [ 0x000000 - 0x6ea6d8 ]
## Flattened Device Tree blob at 18000000
   Booting using the fdt blob at 0x18000000
   Using Device Tree in place at 18000000, end 1800f573
switch to ldo_bypass mode!

Starting kernel ...

Booting Linux on physical CPU 0x0
Linux version 4.9.11 (root@ubuntu) (gcc version 5.3.0 (GCC) ) #1 SMP PREEMPT Tue Oct 15 15:08:28 CST 2019
CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
OF: fdt:Machine model: Freescale i.MX6 Quad SABRE Smart Device Board
Reserved memory: created CMA memory pool at 0x6c000000, size 320 MiB
OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
Memory policy: Data cache writealloc
percpu: Embedded 14 pages/cpu @daefa000 s25868 r8192 d23284 u57344
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 520704
Kernel command line: console=ttymxc0,115200 video=mxcfb0:dev=lcd,CLAA-WVGA,if=RGB24,bpp=16,int_clk video=mxcfb1:dev=hdmi,1920x1080M@60,if=RGB24,bpp=16 ldb=sin0 root=/dev/mmcblk3p2 rootwait rw
PID hash table entries: 4096 (order: 2, 16384 bytes)
Dentry cache hash table entries: 262144 (order: 8, 1048576 bytes)
Inode-cache hash table entries: 131072 (order: 7, 524288 bytes)
Memory: 1735064K/2097152K available (9216K kernel code, 545K rwdata, 3208K rodata, 1024K init, 473K bss, 34408K reserved, 327680K cma-reserved, 262144K highmem)
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
    lowmem  : 0x80000000 - 0xf0000000   (1792 MB)
    pkmap   : 0x7fe00000 - 0x80000000   (   2 MB)
    modules : 0x7f000000 - 0x7fe00000   (  14 MB)
      .text : 0x80008000 - 0x80a00000   (10208 kB)
      .init : 0x80e00000 - 0x80f00000   (1024 kB)
      .data : 0x80f00000 - 0x80f88620   ( 546 kB)
       .bss : 0x80f8a000 - 0x81000420   ( 474 kB)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
Preemptible hierarchical RCU implementation.
        Build-time adjustment of leaf fanout to 32.
NR_IRQS:16 nr_irqs:16 16
L2C-310 errata 752271 769419 enabled
L2C-310 enabling early BRESP for Cortex-A9
L2C-310 full line of zeros enabled for Cortex-A9
L2C-310 ID prefetch enabled, offset 16 lines
L2C-310 dynamic clock gating enabled, standby mode enabled
L2C-310 cache controller enabled, 16 ways, 1024 kB
L2C-310: CACHE_ID 0x410000c7, AUX_CTRL 0x76470001
Switching to timer-based delay loop, resolution 333ns
sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 715827882841ns
clocksource: mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 637086815595 ns
Console: colour dummy device 80x30
Calibrating delay loop (skipped), value calculated using timer frequency.. 6.00 BogoMIPS (lpj=30000)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 4096 (order: 2, 16384 bytes)
Mountpoint-cache hash table entries: 4096 (order: 2, 16384 bytes)
CPU: Testing write buffer coherency: ok
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0x10100000 - 0x10100058
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
Brought up 4 CPUs
SMP: Total of 4 processors activated (24.00 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
cpuidle: using governor menu
CPU identified as i.MX6Q, silicon rev 1.5
vddarm: bypassed regulator has no supply!
vddarm: failed to get the current voltage(-517)
vddsoc: bypassed regulator has no supply!
vddsoc: failed to get the current voltage(-517)
hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
hw-breakpoint: maximum watchpoint size is 4 bytes.
imx6q-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
imx-gpc 20dc000.gpc: pu regulator not ready, retry
mxs-dma 110000.dma-apbh: initialized
SCSI subsystem initialized
usbcore: registered new inte**ce driver usbfs
usbcore: registered new inte**ce driver hub
usbcore: registered new device driver usb
2000000.aips-bus:usbphy_nop1 supply vcc not found, using dummy regulator
2000000.aips-bus:usbphy_nop2 supply vcc not found, using dummy regulator
i2c i2c-0: IMX I2C adapter registered
i2c i2c-0: can't use DMA, using PIO instead.
i2c i2c-1: IMX I2C adapter registered
i2c i2c-1: can't use DMA, using PIO instead.
i2c i2c-2: IMX I2C adapter registered
i2c i2c-2: can't use DMA, using PIO instead.
Linux video capture inte**ce: v2.00
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
PTP clock support registered
imx-ipuv3 2400000.ipu: IPU DMFC NORMAL mode: 1(0~1), 5B(4,5), 5F(6,7)
imx-ipuv3 2800000.ipu: IPU DMFC NORMAL mode: 1(0~1), 5B(4,5), 5F(6,7)
mxc_mipi_csi2 21dc000.mipi_csi: i.MX MIPI CSI2 driver probed
mxc_mipi_csi2 21dc000.mipi_csi: i.MX MIPI CSI2 dphy version is 0x3130302a
MIPI CSI2 driver module loaded
imx rpmsg driver is registered.
Advanced Linux Sound Architecture Driver Initialized.
Bluetooth: Core ver 2.22
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: L2CAP socket layer initialized
Bluetooth: SCO socket layer initialized
clocksource: Switched to clocksource mxc_timer1
VFS: Disk quotas dquot_6.6.0
VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
NET: Registered protocol family 2
TCP established hash table entries: 16384 (order: 4, 65536 bytes)
TCP bind hash table entries: 16384 (order: 5, 131072 bytes)
TCP: Hash tables configured (established 16384 bind 16384)
UDP hash table entries: 1024 (order: 3, 32768 bytes)
UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
Bus freq driver module loaded
futex hash table entries: 1024 (order: 4, 65536 bytes)
workingset: timestamp_bits=30 max_order=19 bucket_order=0
NFS: Registering the id_resolver key type
Key type id_resolver registered
Key type id_legacy registered
jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
fuse init (API version 7.26)
bounce: pool size: 64 pages
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
imx-weim 21b8000.weim: Driver registered.
backlight supply power not found, using dummy regulator
mxc_mipi_dsi 21e0000.mipi: i.MX MIPI DSI driver probed
mxc_sdc_fb fb@0: registered mxc display driver lcd
Console: switching to colour frame buffer device 100x30
mxc_hdmi 20e0000.hdmi_video: Detected HDMI controller 0x13:0xa:0xa0:0xc1
fbcvt: 1920x1080@60: CVT Name - 2.073M9
mxc_sdc_fb fb@1: registered mxc display driver hdmi
mxc_sdc_fb fb@1: ipu0-di0 already in use
mxc_sdc_fb: probe of fb@1 failed with error -16
mxc_sdc_fb fb@2: registered mxc display driver lcd
mxc_sdc_fb fb@2: ipu0-di0 already in use
mxc_sdc_fb: probe of fb@2 failed with error -16
mxc_sdc_fb fb@3: registered mxc display driver ldb
imx-sdma 20ec000.sdma: no iram assigned, using external mem
imx-sdma 20ec000.sdma: loaded firmware 3.3
pfuze100-regulator 1-0008: Full layer: 2, Metal layer: 1
pfuze100-regulator 1-0008: FAB: 0, FIN: 0
pfuze100-regulator 1-0008: pfuze100 found.
vddpu: supplied by SW1C
usb_otg_vbus: supplied by SWBST
usb_h1_vbus: supplied by SWBST
2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 28, base_baud = 5000000) is a IMX
console [ttymxc0] enabled
imx sema4 driver is registered.
[drm] Initialized
[drm] Initialized vivante 1.0.0 20120216 on minor 0
brd: module loaded
loop: module loaded
ahci-imx 2200000.sata: fsl,transmit-level-mV not specified, using 00000024
ahci-imx 2200000.sata: fsl,transmit-boost-mdB not specified, using 00000480
ahci-imx 2200000.sata: fsl,transmit-atten-16ths not specified, using 00002000
ahci-imx 2200000.sata: fsl,receive-eq-mdB not specified, using 05000000
ahci-imx 2200000.sata: SSS flag set, parallel bus scan disabled
ahci-imx 2200000.sata: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform mode
ahci-imx 2200000.sata: flags: ncq sntf stag pm led clo only pmp pio slum part ccc apst
scsi host0: ahci-imx
ata1: SATA max UDMA/133 mmio [mem 0x02200000-0x02203fff] port 0x100 irq 83
m25p80 spi0.0: unrecognized JEDEC id bytes: 00, 00, 00
spi_imx 2008000.ecspi: probed
libphy: Fixed MDIO Bus: probed
CAN device driver inte**ce
2188000.ethernet supply phy not found, using dummy regulator
pps pps0: new PPS source ptp0
fec 2188000.ethernet (unnamed net_device) (uninitialized): Invalid MAC address: 00:00:00:00:00:00
fec 2188000.ethernet (unnamed net_device) (uninitialized): Using random MAC address: 86:e5:fe:60:ea:3e
libphy: fec_enet_mii_bus: probed
fec 2188000.ethernet eth0: registered PHC device 0
usbcore: registered new inte**ce driver kaweth
pegasus: v0.9.3 (2013/04/25), Pegasus/Pegasus II USB Ethernet driver
usbcore: registered new inte**ce driver pegasus
usbcore: registered new inte**ce driver rtl8150
usbcore: registered new inte**ce driver r8152
usbcore: registered new inte**ce driver asix
usbcore: registered new inte**ce driver ax88179_178a
usbcore: registered new inte**ce driver cdc_ether
usbcore: registered new inte**ce driver net1080
usbcore: registered new inte**ce driver cdc_subset
usbcore: registered new inte**ce driver zaurus
usbcore: registered new inte**ce driver cdc_ncm
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-mxc: Freescale On-Chip EHCI Host driver
usbcore: registered new inte**ce driver usb-storage
usbcore: registered new inte**ce driver usb_ehset_test
2184800.usbmisc supply vbus-wakeup not found, using dummy regulator
ci_hdrc ci_hdrc.1: EHCI Host Controller
ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 1
ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
mousedev: PS/2 mouse device common for all mice
egalax_ts 1-0004: Failed to switch to I2C inte**ce
egalax_ts 2-0004: Failed to switch to I2C inte**ce
input: max11801_ts as /devices/soc0/soc/2100000.aips-bus/21a4000.i2c/i2c-1/1-0048/input/input2
snvs_rtc 20cc000.snvs:snvs-rtc-lp: rtc core: registered 20cc000.snvs:snvs-r as rtc0
i2c /dev entries driver
IR NEC protocol handler initialized
IR RC5(x/sz) protocol handler initialized
IR RC6 protocol handler initialized
IR JVC protocol handler initialized
IR Sony protocol handler initialized
IR SANYO protocol handler initialized
IR Sharp protocol handler initialized
IR MCE Keyboard/mouse protocol handler initialized
IR XMP protocol handler initialized
mxc_v4l2_output v4l2_out: V4L2 device registered as video16
mxc_v4l2_output v4l2_out: V4L2 device registered as video17
mxc_v4l2_output v4l2_out: V4L2 device registered as video18
mxc_v4l2_output v4l2_out: V4L2 device registered as video19
max11801_ts 1-0048: FIFO_RD_AUX_MSB read failed (-6)
max11801_ts 1-0048: FIFO_RD_AUX_MSB read failed (-6)
max11801_ts 1-0048: FIFO_RD_AUX_MSB read failed (-6)
ata1: SATA link down (SStatus 0 SControl 300)
ahci-imx 2200000.sata: no device found, disabling link.
ahci-imx 2200000.sata: pass ahci_imx..hotplug=1 to enable hotplug
max11801_ts 1-0048: FIFO_RD_AUX_MSB read failed (-6)
mag3110 2-000e: check mag3110 chip ID
mag3110 2-000e: read chip ID 0xfffffffa is not equal to 0xc4!
mag3110: probe of 2-000e failed with error -22
mma8451 0-001c: read chip ID 0x1 is not equal to 0x1a or 0x2a!
mma8451: probe of 0-001c failed with error -22
imx2-wdt 20c0000.wdog: timeout 60 sec (nowayout=0)
Bluetooth: HCI UART driver ver 2.3
Bluetooth: HCI UART protocol H4 registered
Bluetooth: HCI UART protocol BCSP registered
Bluetooth: HCI UART protocol ATH3K registered
usbcore: registered new inte**ce driver bcm203x
usbcore: registered new inte**ce driver btusb
usbcore: registered new inte**ce driver ath3k
sdhci: Secure Digital Host Controller Inte**ce driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
sdhci-esdhc-imx 2194000.usdhc: Got CD GPIO
sdhci-esdhc-imx 2194000.usdhc: Got WP GPIO
mmc1: SDHCI controller on 2194000.usdhc [2194000.usdhc] using ADMA


这样就下不去了,因为新下的内核没有imx6q-c-sabresd.dtb这个设备树,才选择了imx6q-sabresd.dtb,是不是设备树设置得不对的原因?
麻烦专家们帮下忙,怎么调整设备树可以好使,
目标是将4.9.11跑起来,先做到支持网络,usb功能,别的功能暂不管的程度。
先谢谢了


回复

使用道具 举报

0

主题

3

帖子

12

积分

i.MX6Q通行证

发表于 2019-10-17 11:16:00 | 显示全部楼层
@neibao  我和你有类似的需求,但是我是刚准备开会环境,我用的另外设备是需要 4.9.11的linux内核需求,现在我是纠结我的ubuntu用12.04的还是直接用16.04的, 能给我点建议吗、
点评回复 支持 反对

使用道具 举报

2

主题

3661

帖子

3387

积分

发表于 2019-10-21 09:36:09 | 显示全部楼层
我们官方没有支持该版本的内核,也没有该版本的移植方法,我这里有一个其他平台的移植方法,您参考一下吧
https://blog.csdn.net/liebao_han/article/details/79436819
技术支持电话:0312-3119192
技术支持邮箱:Android@forlinx.com
点评回复 支持 反对

使用道具 举报

0

主题

6

帖子

23

积分

发表于 2019-10-22 15:41:42 | 显示全部楼层
我和你有类似的需求,重庆时时彩 但是我是刚准备开会环境,我用的另外设备是需要 4.9.11的linux内核需求,重庆欢乐生肖 现在我是纠结我的ubuntu用12.04的北京pk10 还是直接用16.04的, 能给我点建议吗!
点评回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|小黑屋|飞凌嵌入式 ( 冀ICP备12004394号-1

GMT+8, 2019-11-22 23:38

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表