When an image is built using Yocto (for more details about how to build an image, check the Yocto training home: https://community.nxp.com/docs/DOC-94849) the kernel is automatically built and the kernel image is located at /fsl-community-bsp/build/tmp/deploy/images/<your_target>/uImage
If you want to build only the kernel, the following command can be used:
$ bitbake linux-imx
To call the kernel menuconfig, run the command:
$ bitbake -c menuconfig linux-imx
A new terminal window will open with the kernel menuconfig. Make changes if needed, exit the configmenu and copy the .config generated file to defconfig as following:
$ cp tmp/work/imx6qsabresd-poky-linux-gnueabi/linux-imx/3.0.35-r33.10/git/.config
../sources/meta-fsl-arm/recipes-kernel/linux/linux-imx-3.0.35/mx6/defconfig
Note that the kernel version, in this case "3.0.35-r33.10" may change.
With the new defconfig saved on the correct folder (step 2), it's time to clear all previous kernel and build it again:
$ bitbake -c cleansstate linux-imx
$ bitbake <your_image> or $ bitbake linux-imx
The uImage will be under tmp/deploy/image
Choose what kernel you will build. Usually, the NXP kernel or mainline (kernel.org) kernel:
For NXP kernel (more details on https://source.codeaurora.org/external/imx/linux-imx/ ) use:
$ git clone https://source.codeaurora.org/external/imx/linux-imx
For Mainline kernel (more details on https://www.kernel.org/ ) use:
$ git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
Once downloaded, check the available branches by using:
$ git branch -a
master
remotes/origin/HEAD -> origin/master
remotes/origin/imx_4.9.123_imx8mm_ga
remotes/origin/imx_4.9.51_imx8_beta1
remotes/origin/imx_4.9.51_imx8_beta2
remotes/origin/imx_4.9.51_imx8m_beta
remotes/origin/imx_4.9.51_imx8m_ga
remotes/origin/imx_4.9.88_2.0.0_ga
remotes/origin/imx_4.9.88_imx8mm_alpha
remotes/origin/imx_4.9.88_imx8qxp_beta2
remotes/origin/master
Make a local branch, based on a branch you choose from the list:
$ git checkout -b local_branch origin/imx_4.9.88_2.0.0_ga
*NOTES: On command above my local branch name is "local_branch". You can choose this name as you prefer
The chosen branch was origin/imx_4.9.88_2.0.0_ga. You can choose another one, always starting by origin/.......
If you're using the Yocto SDK (Check the Yocto training at NXP community: https://community.nxp.com/docs/DOC-94849 ), just execute the script to export the needed environment variables, e.g.:
$ source /opt/poky/1.6+snapshot/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi
$ unset LDFLAGS
If you're using another toolchain, the common environment variables to set are the following:
$ export PATH=$PATH:/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/
$ export TOOLCHAIN=/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/
$ export CROSS_COMPILE=arm-none-linux-gnueabi-$ export ARCH=arm
IMPORTANT: Change the variables above according your installed toolchain.
Install the GCC toolchain for 64 bits:
sudo apt-get install gcc-aarch64-linux-gnu
Export the environment variables:
$ export ARCH=arm64
$ export CROSS_COMPILE=/usr/bin/aarch64-linux-gnu-
Install the GCC toolchain for 32 bits:
sudo apt-get install gcc-arm-linux-gnueabi
Export the environment variables:
export ARCH=arm
export CROSS_COMPILE=/usr/bin/arm-linux-gnueabi-
If you're building for i.MX6 and i.MX5, configure the kernel options based on file imx_v7_defconfig:
$ cp arch/arm/configs/imx_v7_defconfig .config
$ make menuconfig
$ make
If you're building for i.MX8 family, configure the kernel options based on file arm64/defconfig:
$ cp arch/arm64/configs/defconfig .config
$ make menuconfig
$ make
After step 4, only the kernel (uImage file) was generated. The kernel modules must be built and installed in a known path. First, build the modules:
$ make modules
And install them:
$ make modules_install INSTALL_MOD_PATH=/path_where_you_want_to_install
Hello,
I followed the steps for building the kernel by building using Yocto and building without a BSP, but the driver I added in the menuconfig did not appear in the target filesystem, what could be the problem?
Hi
Alvin
If you driver is configured as a module than you need build using make modules command.
And install it using
make modules_install INSTALL_MOD_PATH=~/module
Hello Saurabh,
I tried building without a BSP, and configured the drivers as modules. I successfully got the .ko files for my drivers, thanks to your tip. But what about using Yocto? I also tried adding a driver to ther kernel via bitbake, and I also followed the steps in this document, but the drivers did not appear in my target filesystem. I am trying to add the USB bluetooth driver btusb, btw. Any ideas about what could cause the problem?
Again thanks for your help
Hi
It should work with yocto also.
bitback linux-imx should build your updated kernel
and bitback rootfs should build the modules for you.
Hello Saurabh,
After menuconfig, do I still need to run bitbake -c cleansstate linux-imx? Or do I go straight to bitbake linux-imx? And what do you mean by bitbake rootfs, do you mean the recipe for my image such as "fsl-image-x11" or is it a recipe?
Thanks for your answers!
Hi
I can't find the file named imx_v6_v7_defconfig ?
could you tell me where can find it?
Hi Ronglin,
If you're using a recent freescale kernel, the config file name was moved to imx_v7_defconfig. You can use this one.
Thank for your reply.
When I copy the .config file to imx_v7_defconfig in the file named ltib ,Then copy imx_v7_defconfig to .config and make uImage LOADADDR=0x10008000. Some problem have happened like "prompt for development and/or incomplete code/drivers (EXPERIMENTAL) [N/y/?] (NEW)".
I was infered that some drives have build at first time,so we should choice the drives'status in kernel??
It is right or not ? if not,Please tell me how can I do?
I complete the problem. Thank you again.
But I have the other question. What's the role of step 6?
Hi
Ronglin
If you defined the driver as a module than it will build the modules for you.
Default kernel build doesn't build any modules.
Thanks
Saurabh
Hi,
This is really a nice article. I tried to build the kernel with the steps mentioned for 'Build kernel without BSP'. I have already created images using Yocto, thus I already have kernel source available at "<build dir>/tmp/work/imx6slevk-poky-linux-gnueabi/linux-imx/3.14.28-r0/git". I have followed below steps to build the kernel:
# make imx_v6_v7_defconfig
# make uImage
But I got following errors:
arch/arm/mach-imx/built-in.o: In function `clk_pllv3_do_shared_clks':
:(.text+0x1780): undefined reference to `imx_sema4_mutex_lock'
:(.text+0x17a8): undefined reference to `imx_sema4_mutex_unlock'
:(.text+0x17e0): undefined reference to `imx_update_shared_mem'
:(.text+0x17fc): undefined reference to `amp_power_mutex'
:(.text+0x1800): undefined reference to `shared_mem'
arch/arm/mach-imx/built-in.o: In function `clk_gate2_do_shared_clks':
:(.text+0x1a30): undefined reference to `imx_sema4_mutex_lock'
:(.text+0x1a58): undefined reference to `imx_sema4_mutex_unlock'
:(.text+0x1a98): undefined reference to `imx_update_shared_mem'
:(.text+0x1ab8): undefined reference to `amp_power_mutex'
:(.text+0x1abc): undefined reference to `shared_mem'
arch/arm/mach-imx/built-in.o: In function `clk_pfd_do_shared_clks':
:(.text+0x1e24): undefined reference to `imx_sema4_mutex_lock'
:(.text+0x1e4c): undefined reference to `imx_sema4_mutex_unlock'
:(.text+0x1e8c): undefined reference to `imx_update_shared_mem'
:(.text+0x1eac): undefined reference to `amp_power_mutex'
:(.text+0x1eb0): undefined reference to `shared_mem'
arch/arm/mach-imx/built-in.o: In function `imx6sl_set_wait_clk':
:(.text+0x61f8): undefined reference to `low_bus_freq_mode'
arch/arm/mach-imx/built-in.o: In function `imx6q_pm_enter':
:(.text+0x6d64): undefined reference to `imx_mu_enable_m4_irqs_in_gic'
:(.text+0x6de0): undefined reference to `imx_mu_is_m4_in_low_freq'
:(.text+0x6df4): undefined reference to `imx_mu_enable_m4_irqs_in_gic'
arch/arm/mach-imx/built-in.o: In function `imx6q_map_io':
:(.init.text+0xe7a4): undefined reference to `imx6_busfreq_map_io'
arch/arm/mach-imx/built-in.o: In function `imx6sl_map_io':
:(.init.text+0x115e0): undefined reference to `imx6_busfreq_map_io'
drivers/built-in.o: In function `fec_runtime_resume':
:(.text+0x119f00): undefined reference to `request_bus_freq'
drivers/built-in.o: In function `fec_runtime_suspend':
:(.text+0x119f1c): undefined reference to `release_bus_freq'
drivers/built-in.o: In function `imx_controller_resume':
:(.text+0x1666d4): undefined reference to `request_bus_freq'
:(.text+0x1666f4): undefined reference to `release_bus_freq'
:(.text+0x166788): undefined reference to `release_bus_freq'
drivers/built-in.o: In function `imx_controller_suspend':
:(.text+0x16685c): undefined reference to `release_bus_freq'
drivers/built-in.o: In function `ci_hdrc_imx_remove':
:(.text+0x166954): undefined reference to `release_bus_freq'
drivers/built-in.o: In function `ci_hdrc_imx_probe':
:(.text+0x166d10): undefined reference to `request_bus_freq'
:(.text+0x166d30): undefined reference to `release_bus_freq'
:(.text+0x166e1c): undefined reference to `release_bus_freq'
drivers/built-in.o: In function `sdhci_esdhc_runtime_resume':
:(.text+0x1c82d0): undefined reference to `request_bus_freq'
drivers/built-in.o: In function `sdhci_esdhc_runtime_suspend':
:(.text+0x1c8344): undefined reference to `release_bus_freq'
drivers/built-in.o: In function `sdhci_esdhc_imx_probe':
:(.text+0x1c8fdc): undefined reference to `release_bus_freq'
:(.text+0x1c9004): undefined reference to `request_bus_freq'
drivers/built-in.o: In function `vpu_runtime_resume':
:(.text+0x1c949c): undefined reference to `request_bus_freq'
drivers/built-in.o: In function `vpu_runtime_suspend':
:(.text+0x1c94b8): undefined reference to `release_bus_freq'
sound/built-in.o: In function `fsl_ssi_runtime_resume':
:(.text+0x2f160): undefined reference to `request_bus_freq'
sound/built-in.o: In function `fsl_ssi_runtime_suspend':
:(.text+0x2f17c): undefined reference to `release_bus_freq'
sound/built-in.o: In function `fsl_spdif_runtime_resume':
:(.text+0x30e08): undefined reference to `request_bus_freq'
sound/built-in.o: In function `fsl_spdif_runtime_suspend':
:(.text+0x30e24): undefined reference to `release_bus_freq'
make: *** [vmlinux] Error 1
Can someone please help me to resolve this?
Appreciate your quick help.
Thanks,
Dhaval
Hi Dhaval,
Could you try to use the following defconfig?
make imx_v7_defconfig
Rgds
Rogerio
Hi Rogerio,
Thanks for your quick reply!
I already tried with that configuration, but even with that I am getting following errors:
***************************************************************************************************************************
drivers/usb/chipidea/ci_hdrc_imx.c: In function 'ci_hdrc_imx_notify_event':
drivers/usb/chipidea/ci_hdrc_imx.c:226:4: error: implicit declaration of function 'pinctrl_select_state' [-Werror=implicit-function-declaration]
ret = pinctrl_select_state(data->pinctrl,
^
drivers/usb/chipidea/ci_hdrc_imx.c: In function 'ci_hdrc_imx_probe':
drivers/usb/chipidea/ci_hdrc_imx.c:278:2: error: implicit declaration of function 'devm_pinctrl_get' [-Werror=implicit-function-declaration]
data->pinctrl = devm_pinctrl_get(&pdev->dev);
^
drivers/usb/chipidea/ci_hdrc_imx.c:278:16: warning: assignment makes pointer from integer without a cast
data->pinctrl = devm_pinctrl_get(&pdev->dev);
^
drivers/usb/chipidea/ci_hdrc_imx.c:283:3: error: implicit declaration of function 'pinctrl_lookup_state' [-Werror=implicit-function-declaration]
pinctrl_hsic_idle = pinctrl_lookup_state(data->pinctrl, "idle");
^
drivers/usb/chipidea/ci_hdrc_imx.c:283:21: warning: assignment makes pointer from integer without a cast
pinctrl_hsic_idle = pinctrl_lookup_state(data->pinctrl, "idle");
^
drivers/usb/chipidea/ci_hdrc_imx.c:299:29: warning: assignment makes pointer from integer without a cast
data->pinctrl_hsic_active = pinctrl_lookup_state(data->pinctrl,
^
cc1: some warnings being treated as errors
make[3]: *** [drivers/usb/chipidea/ci_hdrc_imx.o] Error 1
make[2]: *** [drivers/usb/chipidea] Error 2
make[1]: *** [drivers/usb] Error 2
make: *** [drivers] Error 2
***************************************************************************************************************************
Thanks,
Dhaval
Hi Dhaval
You can try following steps
make imx_v7_defconfig ARCH=arm CROSS_COMPILE=/opt/poky/1.5.1/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi- -j16 uImage LOADADDR=0x10008000
I can make kernel successfully with "bitbake -c compile -f linux-imx". but I tried to enter kernel-source folder to build only kernel, always fail, any suggest is welcome. Thanks.
source /opt/poky/1.8+snapshot/environment-setup-cortexa7hf-vfp-neon-poky-linux-gnueabi
make zImage LOADADDR=0x10008000
OR:
make imx_v7_defconfig ARCH=arm CROSS_COMPILE=/opt/poky/1.8+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux/arm-poky-linux- zImage LOADADDR=0x10008000
Both ways fail logs:
CC init/main.o
CHK include/generated/compile.h
CC init/version.o
CC init/do_mounts.o
CC init/do_mounts_rd.o
CC init/do_mounts_initrd.o
LD init/mounts.o
init/do_mounts_rd.o: In function `nop_flush_icache_all':
do_mounts_rd.c:(.text+0x0): multiple definition of `nop_flush_icache_all'
init/do_mounts.o:do_mounts.c:(.text+0x94): first defined here
init/do_mounts_rd.o: In function `nop_flush_kern_cache_all':
do_mounts_rd.c:(.text+0x4): multiple definition of `nop_flush_kern_cache_all'
init/do_mounts.o:do_mounts.c:(.text+0x98): first defined here
init/do_mounts_rd.o: In function `nop_flush_kern_cache_louis':
do_mounts_rd.c:(.text+0x8): multiple definition of `nop_flush_kern_cache_louis'
init/do_mounts.o:do_mounts.c:(.text+0x9c): first defined here
init/do_mounts_rd.o: In function `nop_flush_user_cache_all':
do_mounts_rd.c:(.text+0xc): multiple definition of `nop_flush_user_cache_all'
init/do_mounts.o:do_mounts.c:(.text+0xa0): first defined here
init/do_mounts_rd.o: In function `nop_flush_user_cache_range':
do_mounts_rd.c:(.text+0x10): multiple definition of `nop_flush_user_cache_range'
init/do_mounts.o:do_mounts.c:(.text+0xa4): first defined here
init/do_mounts_rd.o: In function `nop_coherent_kern_range':
Hi Ding
make imx_v7a_defconfig ARCH=arm CROSS_COMPILE=/opt/poky/1.5.1/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi- -j16 uImage LOADADDR=0x10008000
I am using above command, you should use poky version number accordingly.
Thanks
Saurabh
The step below did not work for me. Copying the .config into the defconfig is probably not enough. My kernel baked the same with no modifications.
I tried to rename the defconfig into _defconfig under the sources path to see if bitbake would complain during the build. I did not get any errors.
I build the toolchain and downloaded the kernel source directly doing my own build (see here: https://community.freescale.com/docs/DOC-95096#comment-33274 ) as suggested by many on this forum. It works OK now.
------
A new terminal window will open with the kernel menuconfig. Make changes if needed, exit the configmenu and copy the .config generated file to defconfig as following:
$ cp tmp/work/imx6qsabresd-poky-linux-gnueabi/linux-imx/3.0.35-r33.10/git/.config
../sources/meta-fsl-arm/recipes-kernel/linux/linux-imx-3.0.35/mx6/defconfig
I believe there is a mistake in the documentation:
$ git branch -b local_branch origin/imx_3.10.17_1.0.0_ga
is actually:
$ git checkout -b local_branch origin/imx_3.10.17_1.0.0_ga
Updated the doc. Thanks!
Hello Saurabh
I followed the steps for building the kernel by building using Yocto,but the rebuild zImage the driver:
│ -> Device Drivers | │ |
│ -> Network device support (NETDEVICES [=y]) | │ |
│ -> USB Network Adapters │
│ -> Multi-purpose USB Networking Framework (y) │
| -> Host for RNDIS and activeSync devices (y) |
│ -> Device Drivers
| ->USB support (y) |
| ->USB Gadget Support (y) |
| ->USB Gadget Drivers (Ethernet Gadget (with CDC Ethernet support)) (y) |
| ->RNDIS support (y) |
I added in the menuconfig did not appear in the target. If I direct use
$ bitbake -c menuconfig linux-imx
and
$ bitbake -c cleansstate linux-imx
$ bitbake linux-imx
it is ok
Hi All,
I tried to build kernel with below steps,
export ARCH=arm
export CROSS_COMPILE=arm-poky-linux-gnueabi-
PATH=/opt/poky/1.8/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi:$PATH
make imx_v7_defconfig,
I got uImage , zimage and .o file for rpmsg but not .ko files.
I am using IMX7d board . please could any one tell me where i did mistake .
build completed without problem .
zimage is not working as original image .it stops in middle. log is below.
CPU: Freescale i.MX7D rev1.0 at 792 MHz
CPU: Temperature: can't get valid data!
Reset cause: POR
Board: i.MX7D SABRESD
I2C: ready
DRAM: 1 GiB
MMC: FSL_SDHC: 0, FSL_SDHC: 1
*** Warning - bad CRC, using default environment
No panel detected: default to TFT43AB
Display: TFT43AB (480x272)
Video: 480x272x24
In: serial
Out: serial
Err: serial
Found PFUZE300! deviceid 0x30, revid 0x10
mmc0 is current device
Net: FEC0
Normal Boot
Hit any key to stop autoboot: 0
=> boot
mmc0 is current device
mmc0 is current device
reading boot.scr
** Unable to read file boot.scr **
reading zImage
6025008 bytes read in 528 ms (10.9 MiB/s)
Booting from mmc ...
reading imx7d-sdb.dtb
39438 bytes read in 20 ms (1.9 MiB/s)
Kernel image @ 0x80800000 [ 0x000000 - 0x5bef30 ]
## Flattened Device Tree blob at 83000000
Booting using the fdt blob at 0x83000000
Using Device Tree in place at 83000000, end 8300ca0d
Starting kernel ...
Booting Linux on physical CPU 0x0
Linux version 3.14.52 (basavarajuc@UKCTS-012052-linux) (gcc version 4.9.2 (GCC) ) #1 SMP PREEMPT Thu Jan 28 16:37:39 GMT 2016
CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine model: Freescale i.MX7 SabreSD Board
cma: CMA: reserved 320 MiB at ac000000
Memory policy: Data cache writealloc
PERCPU: Embedded 8 pages/cpu @ab736000 s8320 r8192 d16256 u32768
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260096
Kernel command line: console=ttymxc0,115200 root=/dev/mmcblk0p2 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: 699680K/1048576K available (7499K kernel code, 460K rwdata, 2592K rodata, 392K init, 433K bss, 348896K reserved, 0K highmem)
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
vmalloc : 0xc0800000 - 0xff000000 (1000 MB)
lowmem : 0x80000000 - 0xc0000000 (1024 MB)
pkmap : 0x7fe00000 - 0x80000000 ( 2 MB)
modules : 0x7f000000 - 0x7fe00000 ( 14 MB)
.text : 0x80008000 - 0x809e2f54 (10092 kB)
.init : 0x809e3000 - 0x80a45080 ( 393 kB)
.data : 0x80a46000 - 0x80ab92c0 ( 461 kB)
.bss : 0x80ab92cc - 0x80b2591c ( 434 kB)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
Preemptible hierarchical RCU implementation.
RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
NR_IRQS:16 nr_irqs:16 16
Switching to timer-based delay loop
sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 1431655765682ns
Architected cp15 timer(s) running at 8.00MHz (phys).
sched_clock: 56 bits at 8MHz, resolution 125ns, wraps every 2147483648000ns
Ignoring duplicate/late registration of read_current_timer delay
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: 2048 (order: 1, 8192 bytes)
Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
CPU: Testing write buffer coherency: ok
/cpus/cpu@0 missing clock-frequency property
/cpus/cpu@1 missing clock-frequency property
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0x80723b58 - 0x80723bb0
CPU1: Booted secondary processor
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
Brought up 2 CPUs
SMP: Total of 2 processors activated (12.00 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
pinctrl core: initialized pinctrl subsystem
regulator-dummy: no parameters
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
cpuidle: using governor ladder
cpuidle: using governor menu
Use WDOG1 as reset source
syscon 30340000.iomuxc-gpr: regmap [mem 0x30340000-0x3034ffff] registered
syscon 30360000.anatop: regmap [mem 0x30360000-0x3036ffff] registered
vdd1p0d: 800 <--> 1200 mV at 1000 mV
syscon 30390000.src: regmap [mem 0x30390000-0x3039ffff] registered
DDR type is DDR3!
------------[ cut here ]------------
WARNING: CPU: 0 PID: 1 at arch/arm/mach-imx/pm-imx7.c:1097 imx7d_pm_init+0x5c0/0x66c()
Modules linked in:
CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.14.52 #1
[<80014a68>] (unwind_backtrace) from [<80011758>] (show_stack+0x10/0x14)
[<80011758>] (show_stack) from [<8071d978>] (dump_stack+0x7c/0xbc)
[<8071d978>] (dump_stack) from [<80032100>] (warn_slowpath_common+0x70/0x8c)
[<80032100>] (warn_slowpath_common) from [<800321b8>] (warn_slowpath_null+0x1c/0x24)
[<800321b8>] (warn_slowpath_null) from [<80a0aa34>] (imx7d_pm_init+0x5c0/0x66c)
[<80a0aa34>] (imx7d_pm_init) from [<80a09a84>] (imx7d_init_machine+0x3c/0xe4)
[<80a09a84>] (imx7d_init_machine) from [<809e62d8>] (customize_machine+0x20/0x40)
[<809e62d8>] (customize_machine) from [<8000889c>] (do_one_initcall+0xf8/0x154)
[<8000889c>] (do_one_initcall) from [<809e3c54>] (kernel_init_freeable+0x138/0x1d8)
[<809e3c54>] (kernel_init_freeable) from [<80719df0>] (kernel_init+0x8/0xe8)
[<80719df0>] (kernel_init) from [<8000e500>] (ret_from_fork+0x14/0x34)
---[ end trace 9e8be753475f047d ]---
------------[ cut here ]------------
WARNING: CPU: 0 PID: 1 at arch/arm/mach-imx/pm-imx7.c:1098 imx7d_pm_init+0x5e8/0x66c()
Modules linked in:
CPU: 0 PID: 1 Comm: swapper/0 Tainted: G W 3.14.52 #1
[<80014a68>] (unwind_backtrace) from [<80011758>] (show_stack+0x10/0x14)
[<80011758>] (show_stack) from [<8071d978>] (dump_stack+0x7c/0xbc)
[<8071d978>] (dump_stack) from [<80032100>] (warn_slowpath_common+0x70/0x8c)
[<80032100>] (warn_slowpath_common) from [<800321b8>] (warn_slowpath_null+0x1c/0x24)
[<800321b8>] (warn_slowpath_null) from [<80a0aa5c>] (imx7d_pm_init+0x5e8/0x66c)
[<80a0aa5c>] (imx7d_pm_init) from [<80a09a84>] (imx7d_init_machine+0x3c/0xe4)
[<80a09a84>] (imx7d_init_machine) from [<809e62d8>] (customize_machine+0x20/0x40)
[<809e62d8>] (customize_machine) from [<8000889c>] (do_one_initcall+0xf8/0x154)
[<8000889c>] (do_one_initcall) from [<809e3c54>] (kernel_init_freeable+0x138/0x1d8)
[<809e3c54>] (kernel_init_freeable) from [<80719df0>] (kernel_init+0x8/0xe8)
[<80719df0>] (kernel_init) from [<8000e500>] (ret_from_fork+0x14/0x34)
---[ end trace 9e8be753475f047e ]---
------------[ cut here ]------------
WARNING: CPU: 0 PID: 1 at mm/page_alloc.c:2566 __alloc_pages_nodemask+0x42c/0x974()
Modules linked in:
CPU: 0 PID: 1 Comm: swapper/0 Tainted: G W 3.14.52 #1
[<80014a68>] (unwind_backtrace) from [<80011758>] (show_stack+0x10/0x14)
[<80011758>] (show_stack) from [<8071d978>] (dump_stack+0x7c/0xbc)
[<8071d978>] (dump_stack) from [<80032100>] (warn_slowpath_common+0x70/0x8c)
[<80032100>] (warn_slowpath_common) from [<800321b8>] (warn_slowpath_null+0x1c/0x24)
[<800321b8>] (warn_slowpath_null) from [<800a6a04>] (__alloc_pages_nodemask+0x42c/0x974)
[<800a6a04>] (__alloc_pages_nodemask) from [<800a6f5c>] (__get_free_pages+0x10/0x24)
[<800a6f5c>] (__get_free_pages) from [<80a0aa78>] (imx7d_pm_init+0x604/0x66c)
[<80a0aa78>] (imx7d_pm_init) from [<80a09a84>] (imx7d_init_machine+0x3c/0xe4)
[<80a09a84>] (imx7d_init_machine) from [<809e62d8>] (customize_machine+0x20/0x40)
[<809e62d8>] (customize_machine) from [<8000889c>] (do_one_initcall+0xf8/0x154)
[<8000889c>] (do_one_initcall) from [<809e3c54>] (kernel_init_freeable+0x138/0x1d8)
[<809e3c54>] (kernel_init_freeable) from [<80719df0>] (kernel_init+0x8/0xe8)
[<80719df0>] (kernel_init) from [<8000e500>] (ret_from_fork+0x14/0x34)
---[ end trace 9e8be753475f047f ]---
------------[ cut here ]------------
WARNING: CPU: 0 PID: 1 at arch/arm/mach-imx/pm-imx7.c:1101 imx7d_pm_init+0x620/0x66c()
Modules linked in:
CPU: 0 PID: 1 Comm: swapper/0 Tainted: G W 3.14.52 #1
[<80014a68>] (unwind_backtrace) from [<80011758>] (show_stack+0x10/0x14)
[<80011758>] (show_stack) from [<8071d978>] (dump_stack+0x7c/0xbc)
[<8071d978>] (dump_stack) from [<80032100>] (warn_slowpath_common+0x70/0x8c)
[<80032100>] (warn_slowpath_common) from [<800321b8>] (warn_slowpath_null+0x1c/0x24)
[<800321b8>] (warn_slowpath_null) from [<80a0aa94>] (imx7d_pm_init+0x620/0x66c)
[<80a0aa94>] (imx7d_pm_init) from [<80a09a84>] (imx7d_init_machine+0x3c/0xe4)
[<80a09a84>] (imx7d_init_machine) from [<809e62d8>] (customize_machine+0x20/0x40)
[<809e62d8>] (customize_machine) from [<8000889c>] (do_one_initcall+0xf8/0x154)
[<8000889c>] (do_one_initcall) from [<809e3c54>] (kernel_init_freeable+0x138/0x1d8)
[<809e3c54>] (kernel_init_freeable) from [<80719df0>] (kernel_init+0x8/0xe8)
[<80719df0>] (kernel_init) from [<8000e500>] (ret_from_fork+0x14/0x34)
---[ end trace 9e8be753475f0480 ]---
failed to find ocotp node
failed to find ocotp node
hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
hw-breakpoint: maximum watchpoint size is 8 bytes.
imx7d-pinctrl 302c0000.iomuxc-lpsr: initialized IMX pinctrl driver
imx7d-pinctrl 30330000.iomuxc: initialized IMX pinctrl driver
303a0000.gpc supply mipi-phy not found, using dummy regulator
303a0000.gpc supply vcc not found, using dummy regulator
MU is ready for cross core communication!
bio: create slab <bio-0> at 0
mxs-dma: probe of 33000000.dma-apbh failed with error -2
usb_otg1_vbus: 5000 mV
usb_otg2_vbus: 5000 mV
can2-3v3: 3300 mV
vref-1v8: 1800 mV
wlreg_on: 5000 mV
i2c-core: driver [max17135] using legacy suspend method
i2c-core: driver [max17135] using legacy resume method
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
usbphy_nop1.5 supply vcc not found, using dummy regulator
usbphy_nop2.6 supply vcc not found, using dummy regulator
usbphy_nop3.7 supply vcc not found, using dummy regulator
i2c i2c-0: IMX I2C adapter registered
i2c i2c-1: IMX I2C adapter registered
i2c i2c-2: IMX I2C adapter registered
i2c i2c-3: IMX I2C adapter registered
Linux video capture interface: 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
MIPI CSI2 driver module loaded
Advanced Linux Sound Architecture Driver Initialized.
Bluetooth: Core ver 2.18
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
cfg80211: Calling CRDA to update world regulatory domain
Switched to clocksource arch_sys_counter
NET: Registered protocol family 2
TCP established hash table entries: 8192 (order: 3, 32768 bytes)
TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP: reno registered
UDP hash table entries: 512 (order: 2, 16384 bytes)
UDP-Lite hash table entries: 512 (order: 2, 16384 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.
imx rpmsg driver is registered.
Bus freq driver module loaded
futex hash table entries: 512 (order: 3, 32768 bytes)
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
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.22)
msgmni has been set to 2006
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
backlight.8 supply power not found, using dummy regulator
MIPI DSI driver module loaded
MIPI DSI driver module loaded
sii902x 2-0039: No reset pin found
sii902x 2-0039: Can not read edid
30730000.lcdif supply lcd not found, using dummy regulator
mxsfb 30730000.lcdif: failed to find mxc display driver
Console: switching to colour frame buffer device 60x34
mxsfb 30730000.lcdif: initialized
imx-sdma 30bd0000.sdma: no iram assigned, using external mem
imx-sdma 30bd0000.sdma: no event needs to be remapped
imx-sdma 30bd0000.sdma: loaded firmware 4.1
imx-sdma 30bd0000.sdma: initialized
pfuze100-regulator 0-0008: Full layer: 1, Metal layer: 0
pfuze100-regulator 0-0008: FAB: 0, FIN: 0
pfuze100-regulator 0-0008: pfuze3000 found.
SW1A: 700 <--> 1425 mV at 1100 mV
SW1B: 700 <--> 1475 mV at 1000 mV
SW2: 1500 <--> 1850 mV at 1800 mV
SW3: 900 <--> 1650 mV at 1350 mV
SWBST: 5000 <--> 5150 mV at 5000 mV
VSNVS: 1000 <--> 3000 mV at 3000 mV
VREFDDR: 750 mV
VLDO1: 1800 <--> 3300 mV at 1800 mV
VLDO2: 800 <--> 1550 mV at 1500 mV
VCCSD: 2850 <--> 3300 mV at 3300 mV
V33: 2850 <--> 3300 mV at 3300 mV
VLDO3: 1800 <--> 3300 mV at 3300 mV
VLDO4: 1800 <--> 3300 mV at 2800 mV
Serial: IMX driver
30860000.serial: ttymxc0 at MMIO 0x30860000 (irq = 58, base_baud = 5000000) is a IMX
console [ttymxc0] enabled
30a70000.serial: ttymxc4 at MMIO 0x30a70000 (irq = 62, base_baud = 5000000) is a IMX
30a80000.serial: ttymxc5 at MMIO 0x30a80000 (irq = 48, base_baud = 5000000) is a IMX
serial: Freescale lpuart driver
imx sema4 driver is registered.
[drm] Initialized drm 1.1.0 20060810
[drm] Initialized vivante 1.0.0 20120216 on minor 0
brd: module loaded
loop: module loaded
spi_gpio spi4.16: gpio-miso property not found, switching to no-rx mode
CAN device driver interface
flexcan 30a10000.can: device registered (reg_base=f5a10000, irq=143)
30be0000.ethernet supply phy not found, using dummy regulator
pps pps0: new PPS source ptp0
libphy: fec_enet_mii_bus: probed
fec 30be0000.ethernet eth0: registered PHC device 0
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-mxc: Freescale On-Chip EHCI Host driver
usbcore: registered new interface driver usb-storage
usbcore: registered new interface driver usb_ehset_test
30b10200.usbmisc supply vbus-wakeup not found, using dummy regulator
30b20200.usbmisc supply vbus-wakeup not found, using dummy regulator
30b30200.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
snvs_pwrkey 30370000.snvs-pwrkey: can't get snvs clock
input: 30370000.snvs-pwrkey as /devices/soc.2/30000000.aips-bus/30370000.snvs-pwrkey/input/input0
snvs_pwrkey 30370000.snvs-pwrkey: i.MX snvs powerkey probed
i2c-core: driver [isl29023] using legacy suspend method
i2c-core: driver [isl29023] using legacy resume method
snvs_rtc 30370034.snvs-rtc-lp: can't get snvs-rtc clock
snvs_rtc 30370034.snvs-rtc-lp: rtc core: registered 30370034.snvs-rtc-l as rtc0
i2c /dev entries driver
IR NEC protocol handler initialized
IR RC5(x) protocol handler initialized
IR RC6 protocol handler initialized
IR JVC protocol handler initialized
IR Sony protocol handler initialized
IR RC5 (streamzap) protocol handler initialized
IR SANYO protocol handler initialized
IR MCE Keyboard/mouse protocol handler initialized
pxp-v4l2 pxp_v4l2_out.9: initialized
i2c-core: driver [mag3110] using legacy suspend method
i2c-core: driver [mag3110] using legacy resume method
imx2-wdt 30280000.wdog: IMX2+ Watchdog Timer enabled. timeout=60s (nowayout=0)
Bluetooth: HCI UART driver ver 2.2
Bluetooth: HCI H4 protocol initialized
Bluetooth: HCI BCSP protocol initialized
Bluetooth: HCIATH3K protocol initialized
usbcore: registered new interface driver bcm203x
usbcore: registered new interface driver btusb
usbcore: registered new interface driver ath3k
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
sdhci-esdhc-imx 30b40000.usdhc: could not get ultra high speed state, work on normal mode
mmc0: no vqmmc regulator found
mmc0: no vmmc regulator found
mmc0: SDHCI controller on 30b40000.usdhc [30b40000.usdhc] using ADMA
sdhci-esdhc-imx 30b50000.usdhc: assigned as wifi host
mmc1: no vqmmc regulator found
mmc1: no vmmc regulator found
mmc0: new SD card at address a77f
mmcblk0: mmc0:a77f SU01G 968 MiB
mmcblk0: p1 p2
mmc1: SDHCI controller on 30b50000.usdhc [30b50000.usdhc] using ADMA
mmc2: no vqmmc regulator found
mmc2: no vmmc regulator found
mmc2: SDHCI controller on 30b60000.usdhc [30b60000.usdhc] using ADMA
Job Ring Device allocation for transform failed
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
Thanks in advance .
To build module use following command.
make ARCH=arm CROSS_COMPILE=arm-poky-linux-gnueabi- modules_install INSTALL_MOD_PATH=../modules
Hi saurabh
Thanks for your replay .but zImage not running in my board [I am using IMX7D]
I followed following steps
1.clean evertthing
$ make distclean
2.install variables .
$ source /opt/poky/1.8/environment-setup-armv7a-vfp-neon-poky-linux-gnueabi
3.configuration written to .config
$ make imx_v7_defconfig
4.run make
$ make ARCH=arm CROSS_COMPILE=arm-poky-linux-gnueabi-
I got zImage , i copied to my sd card and it start running but stops below
Starting kernel ...
Booting Linux on physical CPU 0x0
Linux version 3.14.52 (basavarajuc@UKCTS-012052-linux) (gcc version 4.9.2 (GCC) ) #1 SMP PREEMPT Thu Jan 28 16:37:39 GMT 2016
CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine model: Freescale i.MX7 SabreSD Board
cma: CMA: reserved 320 MiB at ac000000
Memory policy: Data cache writealloc
PERCPU: Embedded 8 pages/cpu @ab734000 s8320 r8192 d16256 u32768
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260096
Kernel command line: console=ttymxc0,115200 root=/dev/mmcblk0p2 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: 699668K/1048576K available (7499K kernel code, 460K rwdata, 2592K rodata, 392K init, 433K bss, 348908K reserved, 0K highmem)
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
vmalloc : 0xc0800000 - 0xff000000 (1000 MB)
lowmem : 0x80000000 - 0xc0000000 (1024 MB)
pkmap : 0x7fe00000 - 0x80000000 ( 2 MB)
modules : 0x7f000000 - 0x7fe00000 ( 14 MB)
.text : 0x80008000 - 0x809e2f54 (10092 kB)
.init : 0x809e3000 - 0x80a45080 ( 393 kB)
.data : 0x80a46000 - 0x80ab92c0 ( 461 kB)
.bss : 0x80ab92cc - 0x80b2591c ( 434 kB)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
Preemptible hierarchical RCU implementation.
RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
NR_IRQS:16 nr_irqs:16 16
Switching to timer-based delay loop
sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 1431655765682ns
Architected cp15 timer(s) running at 8.00MHz (phys).
sched_clock: 56 bits at 8MHz, resolution 125ns, wraps every 2147483648000ns
Ignoring duplicate/late registration of read_current_timer delay
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: 2048 (order: 1, 8192 bytes)
Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
CPU: Testing write buffer coherency: ok
/cpus/cpu@0 missing clock-frequency property
/cpus/cpu@1 missing clock-frequency property
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0x80723b58 - 0x80723bb0
CPU1: Booted secondary processor
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
Brought up 2 CPUs
SMP: Total of 2 processors activated (12.00 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
pinctrl core: initialized pinctrl subsystem
regulator-dummy: no parameters
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
cpuidle: using governor ladder
cpuidle: using governor menu
Use WDOG1 as reset source
syscon 30340000.iomuxc-gpr: regmap [mem 0x30340000-0x3034ffff] registered
syscon 30350000.ocotp-ctrl: regmap [mem 0x30350000-0x3035ffff] registered
syscon 30360000.anatop: regmap [mem 0x30360000-0x3036ffff] registered
vdd1p0d: 800 <--> 1200 mV at 1000 mV
syscon 30390000.src: regmap [mem 0x30390000-0x3039ffff] registered
DDR type is DDR3!
failed to find ocotp node
failed to find ocotp node
hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
hw-breakpoint: maximum watchpoint size is 8 bytes.
imx7d-pinctrl 302c0000.iomuxc-lpsr: initialized IMX pinctrl driver
imx7d-pinctrl 30330000.iomuxc: initialized IMX pinctrl driver
303a0000.gpc supply vcc not found, using dummy regulator
MU is ready for cross core communication!
bio: create slab <bio-0> at 0
mxs-dma 33000000.dma-apbh: initialized
usb_otg1_vbus: 5000 mV
usb_otg2_vbus: 5000 mV
can2-3v3: 3300 mV
vref-1v8: 1800 mV
platform 4.regulator: Driver reg-fixed-voltage requests probe deferral
VDD_SD1: 3300 mV
wlreg_on: 5000 mV
i2c-core: driver [max17135] using legacy suspend method
i2c-core: driver [max17135] using legacy resume method
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
usbphy_nop1.8 supply vcc not found, using dummy regulator
usbphy_nop2.9 supply vcc not found, using dummy regulator
usbphy_nop3.10 supply vcc not found, using dummy regulator
i2c i2c-0: IMX I2C adapter registered
i2c i2c-1: IMX I2C adapter registered
i2c i2c-2: IMX I2C adapter registered
i2c i2c-3: IMX I2C adapter registered
Linux video capture interface: 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
MIPI CSI2 driver module loaded
Advanced Linux Sound Architecture Driver Initialized.
Bluetooth: Core ver 2.18
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
cfg80211: Calling CRDA to update world regulatory domain
Switched to clocksource arch_sys_counter
NET: Registered protocol family 2
TCP established hash table entries: 8192 (order: 3, 32768 bytes)
TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP: reno registered
UDP hash table entries: 512 (order: 2, 16384 bytes)
UDP-Lite hash table entries: 512 (order: 2, 16384 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.
imx rpmsg driver is registered.
Bus freq driver module loaded
futex hash table entries: 512 (order: 3, 32768 bytes)
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
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.22)
msgmni has been set to 2006
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
backlight.11 supply power not found, using dummy regulator
MIPI DSI driver module loaded
MIPI DSI driver module loaded
sii902x 2-0039: No reset pin found
sii902x 2-0039: Can not read edid
30730000.lcdif supply lcd not found, using dummy regulator
mxsfb 30730000.lcdif: failed to find mxc display driver
Console: switching to colour frame buffer device 60x34
mxsfb 30730000.lcdif: initialized
imx-sdma 30bd0000.sdma: no event needs to be remapped
imx-sdma 30bd0000.sdma: loaded firmware 4.1
imx-sdma 30bd0000.sdma: initialized
pfuze100-regulator 0-0008: Full layer: 1, Metal layer: 0
pfuze100-regulator 0-0008: FAB: 0, FIN: 0
pfuze100-regulator 0-0008: pfuze3000 found.
SW1A: 700 <--> 3300 mV at 1100 mV
SW1B: 700 <--> 1475 mV at 1000 mV
SW2: 1500 <--> 1850 mV at 1800 mV
SW3: 900 <--> 1650 mV at 1350 mV
SWBST: 5000 <--> 5150 mV at 5000 mV
VSNVS: 1000 <--> 3000 mV at 3000 mV
VREFDDR: 750 mV
VLDO1: 1800 <--> 3300 mV at 1800 mV
VLDO2: 800 <--> 1550 mV at 1500 mV
VCCSD: 2850 <--> 3300 mV at 3300 mV
V33: 2850 <--> 3300 mV at 3300 mV
VLDO3: 1800 <--> 3300 mV at 3300 mV
VLDO4: 1800 <--> 3300 mV at 2800 mV
Serial: IMX driver
30860000.serial: ttymxc0 at MMIO 0x30860000 (irq = 58, base_baud = 1500000) is a IMX
console [ttymxc0] enabled
30a70000.serial: ttymxc4 at MMIO 0x30a70000 (irq = 62, base_baud = 5000000) is a IMX
30a80000.serial: ttymxc5 at MMIO 0x30a80000 (irq = 48, base_baud = 5000000) is a IMX
serial: Freescale lpuart driver
imx sema4 driver is registered.
[drm] Initialized drm 1.1.0 20060810
[drm] Initialized vivante 1.0.0 20120216 on minor 0
brd: module loaded
loop: module loaded
input: fxos8700 as /devices/soc.2/30800000.aips-bus/30a30000.i2c/i2c-1/1-001e/input/input0
fxos8700 device driver probe successfully
input: fxas2100x as /devices/soc.2/30800000.aips-bus/30a30000.i2c/i2c-1/1-0020/input/input1
fxas2100x 1-0020: fxas2100x device driver probe successfully
spi_gpio spi4.20: gpio-miso property not found, switching to no-rx mode
CAN device driver interface
flexcan 30a10000.can: device registered (reg_base=f5a10000, irq=143)
30be0000.ethernet supply phy not found, using dummy regulator
pps pps0: new PPS source ptp0
libphy: fec_enet_mii_bus: probed
fec 30be0000.ethernet eth0: registered PHC device 0
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-mxc: Freescale On-Chip EHCI Host driver
usbcore: registered new interface driver usb-storage
usbcore: registered new interface driver usb_ehset_test
30b10200.usbmisc supply vbus-wakeup not found, using dummy regulator
30b20200.usbmisc supply vbus-wakeup not found, using dummy regulator
30b30200.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
snvs_pwrkey 30370000.snvs-pwrkey: can't get snvs clock
input: 30370000.snvs-pwrkey as /devices/soc.2/30000000.aips-bus/30370000.snvs-pwrkey/input/input2
snvs_pwrkey 30370000.snvs-pwrkey: i.MX snvs powerkey probed
i2c-core: driver [isl29023] using legacy suspend method
i2c-core: driver [isl29023] using legacy resume method
read mpl3115 chip id 0xc4
input: mpl3115 as /devices/virtual/input/input3
mpl3115 device driver probe successfully
snvs_rtc 30370034.snvs-rtc-lp: can't get snvs-rtc clock
snvs_rtc 30370034.snvs-rtc-lp: rtc core: registered 30370034.snvs-rtc-l as rtc0
i2c /dev entries driver
IR NEC protocol handler initialized
IR RC5(x) protocol handler initialized
IR RC6 protocol handler initialized
IR JVC protocol handler initialized
IR Sony protocol handler initialized
IR RC5 (streamzap) protocol handler initialized
IR SANYO protocol handler initialized
IR MCE Keyboard/mouse protocol handler initialized
pxp-v4l2 pxp_v4l2_out.12: initialized
i2c-core: driver [mag3110] using legacy suspend method
i2c-core: driver [mag3110] using legacy resume method
imx2-wdt 30280000.wdog: IMX2+ Watchdog Timer enabled. timeout=60s (nowayout=0)
Bluetooth: HCI UART driver ver 2.2
Bluetooth: HCI H4 protocol initialized
Bluetooth: HCI BCSP protocol initialized
Bluetooth: HCIATH3K protocol initialized
usbcore: registered new interface driver bcm203x
usbcore: registered new interface driver btusb
usbcore: registered new interface driver ath3k
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
mmc0: no vqmmc regulator found
mmc0: SDHCI controller on 30b40000.usdhc [30b40000.usdhc] using ADMA
sdhci-esdhc-imx 30b50000.usdhc: assigned as wifi host
mmc1: no vqmmc regulator found
mmc1: no vmmc regulator found
mmc1: SDHCI controller on 30b50000.usdhc [30b50000.usdhc] using ADMA
mmc2: no vqmmc regulator found
mmc2: no vmmc regulator found
mmc0: new SD card at address a77f
mmcblk0: mmc0:a77f SU01G 968 MiB
mmcblk0: p1 p2
mmc2: SDHCI controller on 30b60000.usdhc [30b60000.usdhc] using ADMA
caam 30900000.caam: Instantiated RNG4 SH0
caam 30900000.caam: Instantiated RNG4 SH1
caam 30900000.caam: device ID = 0x0a160300 (Era 8)
caam 30900000.caam: job rings = 3, qi = 0
caam algorithms registered in /proc/crypto
caam_jr 30901000.jr0: registering rng-caam
platform caam_sm: blkkey_ex: 8 keystore units available
platform caam_sm: 64-bit clear key:
platform caam_sm: [0000] 00 01 02 03 04 0f 06 07
platform caam_sm: 64-bit black key:
platform caam_sm: [0000] 93 cb b6 73 c2 c1 dc e7
platform caam_sm: [0008] 99 7b 89 07 71 73 e3 24
platform caam_sm: 128-bit clear key:
platform caam_sm: [0000] 00 01 02 03 04 0f 06 07
platform caam_sm: [0008] 08 09 0a 0b 0c 0d 0e 0f
platform caam_sm: 128-bit black key:
platform caam_sm: [0000] 9b 3d 8e 22 13 79 04 8d
platform caam_sm: [0008] f7 57 10 07 f5 b9 75 fc
platform caam_sm: 192-bit clear key:
platform caam_sm: [0000] 00 01 02 03 04 0f 06 07
platform caam_sm: [0008] 08 09 0a 0b 0c 0d 0e 0f
platform caam_sm: [0016] 10 11 12 13 14 15 16 17
platform caam_sm: 192-bit black key:
platform caam_sm: [0000] 20 5f 25 0a 39 d1 23 40
platform caam_sm: [0008] d6 65 be 13 03 53 02 53
platform caam_sm: [0016] 14 7c 71 e2 cd 18 e2 e5
platform caam_sm: [0024] f9 90 88 a3 e8 16 01 b8
platform caam_sm: 256-bit clear key:
platform caam_sm: [0000] 00 01 02 03 04 0f 06 07
platform caam_sm: [0008] 08 09 0a 0b 0c 0d 0e 0f
platform caam_sm: [0016] 10 11 12 13 14 15 16 17
platform caam_sm: [0024] 18 19 1a 1b 1c 1d 1e 1f
platform caam_sm: 256-bit black key:
platform caam_sm: [0000] 0f 23 ef 13 93 96 c1 70
platform caam_sm: [0008] 4b f9 2c 20 81 90 20 ea
platform caam_sm: [0016] 10 ab 2b 88 85 f8 9e b1
platform caam_sm: [0024] 31 ed a7 77 5b e3 5d dd
platform caam_sm: 64-bit unwritten blob:
platform caam_sm: [0000] 00 00 00 00 00 00 00 00
platform caam_sm: [0008] 00 00 00 00 00 00 00 00
platform caam_sm: [0016] 00 00 00 00 00 00 00 00
platform caam_sm: [0024] 00 00 00 00 00 00 00 00
platform caam_sm: [0032] 00 00 00 00 00 00 00 00
platform caam_sm: [0040] 00 00 00 00 00 00 00 00
platform caam_sm: [0048] 00 00 00 00 00 00 00 00
platform caam_sm: [0056] 00 00 00 00 00 00 00 00
platform caam_sm: [0064] 00 00 00 00 00 00 00 00
platform caam_sm: [0072] 00 00 00 00 00 00 00 00
platform caam_sm: [0080] 00 00 00 00 00 00 00 00
platform caam_sm: [0088] 00 00 00 00 00 00 00 00
platform caam_sm: 128-bit unwritten blob:
platform caam_sm: [0000] 00 00 00 00 00 00 00 00
platform caam_sm: [0008] 00 00 00 00 00 00 00 00
platform caam_sm: [0016] 00 00 00 00 00 00 00 00
platform caam_sm: [0024] 00 00 00 00 00 00 00 00
platform caam_sm: [0032] 00 00 00 00 00 00 00 00
platform caam_sm: [0040] 00 00 00 00 00 00 00 00
platform caam_sm: [0048] 00 00 00 00 00 00 00 00
platform caam_sm: [0056] 00 00 00 00 00 00 00 00
platform caam_sm: [0064] 00 00 00 00 00 00 00 00
platform caam_sm: [0072] 00 00 00 00 00 00 00 00
platform caam_sm: [0080] 00 00 00 00 00 00 00 00
platform caam_sm: [0088] 00 00 00 00 00 00 00 00
platform caam_sm: 196-bit unwritten blob:
platform caam_sm: [0000] 00 00 00 00 00 00 00 00
platform caam_sm: [0008] 00 00 00 00 00 00 00 00
platform caam_sm: [0016] 00 00 00 00 00 00 00 00
platform caam_sm: [0024] 00 00 00 00 00 00 00 00
platform caam_sm: [0032] 00 00 00 00 00 00 00 00
platform caam_sm: [0040] 00 00 00 00 00 00 00 00
platform caam_sm: [0048] 00 00 00 00 00 00 00 00
platform caam_sm: [0056] 00 00 00 00 00 00 00 00
platform caam_sm: [0064] 00 00 00 00 00 00 00 00
platform caam_sm: [0072] 00 00 00 00 00 00 00 00
platform caam_sm: [0080] 00 00 00 00 00 00 00 00
platform caam_sm: [0088] 00 00 00 00 00 00 00 00
platform caam_sm: 256-bit unwritten blob:
platform caam_sm: [0000] 00 00 00 00 00 00 00 00
platform caam_sm: [0008] 00 00 00 00 00 00 00 00
platform caam_sm: [0016] 00 00 00 00 00 00 00 00
platform caam_sm: [0024] 00 00 00 00 00 00 00 00
platform caam_sm: [0032] 00 00 00 00 00 00 00 00
platform caam_sm: [0040] 00 00 00 00 00 00 00 00
platform caam_sm: [0048] 00 00 00 00 00 00 00 00
platform caam_sm: [0056] 00 00 00 00 00 00 00 00
platform caam_sm: [0064] 00 00 00 00 00 00 00 00
platform caam_sm: [0072] 00 00 00 00 00 00 00 00
platform caam_sm: [0080] 00 00 00 00 00 00 00 00
platform caam_sm: [0088] 00 00 00 00 00 00 00 00
platform caam_sm: 64-bit black key in blob:
platform caam_sm: [0000] af 46 8f 41 c4 31 42 ec
platform caam_sm: [0008] b3 96 0b 74 7e 68 05 b6
platform caam_sm: [0016] 27 91 f4 22 39 38 f4 33
platform caam_sm: [0024] 00 4c 65 ca 2c ed 21 b2
platform caam_sm: [0032] 4f cf 06 a6 9e 9f 25 fe
platform caam_sm: [0040] d0 8c 01 10 fd b0 7f f6
platform caam_sm: [0048] 79 c4 42 bb 02 2e dd c2
platform caam_sm: [0056] 00 00 00 00 00 00 00 00
platform caam_sm: [0064] 00 00 00 00 00 00 00 00
platform caam_sm: [0072] 00 00 00 00 00 00 00 00
platform caam_sm: [0080] 00 00 00 00 00 00 00 00
platform caam_sm: [0088] 00 00 00 00 00 00 00 00
platform caam_sm: 128-bit black key in blob:
platform caam_sm: [0000] ad 07 f1 a8 87 71 86 38
platform caam_sm: [0008] f4 62 6e c7 c7 f0 74 69
platform caam_sm: [0016] 73 c7 f7 92 0c 43 e1 2d
platform caam_sm: [0024] 17 50 3b 74 f4 e7 4c 89
platform caam_sm: [0032] 45 62 fb ba 59 bc 9e ea
platform caam_sm: [0040] 91 56 f3 91 97 03 2b a3
platform caam_sm: [0048] 1b c7 3f b3 11 46 2a a9
platform caam_sm: [0056] 6f af e5 4c f0 76 72 8e
platform caam_sm: [0064] 00 00 00 00 00 00 00 00
platform caam_sm: [0072] 00 00 00 00 00 00 00 00
platform caam_sm: [0080] 00 00 00 00 00 00 00 00
platform caam_sm: [0088] 00 00 00 00 00 00 00 00
platform caam_sm: 192-bit black key in blob:
platform caam_sm: [0000] b6 ea c9 44 1b 06 01 4a
platform caam_sm: [0008] d2 5a a0 61 e0 56 0f ff
platform caam_sm: [0016] db b6 b8 78 da 63 52 e6
platform caam_sm: [0024] 23 5c f7 97 3d af e2 60
platform caam_sm: [0032] aa 57 3c f0 5d 40 54 c3
platform caam_sm: [0040] 44 b3 4f 05 3b 76 16 e6
platform caam_sm: [0048] d7 74 9c a0 62 0f 2f dc
platform caam_sm: [0056] 03 53 96 9e 34 00 55 93
platform caam_sm: [0064] d0 b0 b4 fd 5b 66 58 93
platform caam_sm: [0072] 00 00 00 00 00 00 00 00
platform caam_sm: [0080] 00 00 00 00 00 00 00 00
platform caam_sm: [0088] 00 00 00 00 00 00 00 00
platform caam_sm: 256-bit black key in blob:
platform caam_sm: [0000] 76 46 0f f3 de 76 ef b0
platform caam_sm: [0008] 4e 4a 27 d5 7f 1b 0b f2
platform caam_sm: [0016] 9a 5d e1 6d b4 f9 df 21
platform caam_sm: [0024] 8b 94 77 80 d7 cb dc 34
platform caam_sm: [0032] 93 82 83 b5 02 52 53 82
platform caam_sm: [0040] 33 15 31 11 67 48 57 f3
platform caam_sm: [0048] e1 4d 78 20 1c ec fe d5
platform caam_sm: [0056] 2b d2 28 79 35 01 91 3d
platform caam_sm: [0064] 6e f8 3c 0e 1e 23 63 8d
platform caam_sm: [0072] 47 2a 09 24 a1 a3 ba 1d
platform caam_sm: [0080] 00 00 00 00 00 00 00 00
platform caam_sm: [0088] 00 00 00 00 00 00 00 00
platform caam_sm: restored 64-bit black key:
platform caam_sm: [0000] 6e dc c9 9d e2 d9 99 9e
platform caam_sm: [0008] fb ef 17 6a ff 72 e8 a1
platform caam_sm: restored 128-bit black key:
platform caam_sm: [0000] 9b 3d 8e 22 13 79 04 8d
platform caam_sm: [0008] f7 57 10 07 f5 b9 75 fc
platform caam_sm: restored 192-bit black key:
platform caam_sm: [0000] 20 5f 25 0a 39 d1 23 40
platform caam_sm: [0008] d6 65 be 13 03 53 02 53
platform caam_sm: [0016] 23 ea 1f 67 b1 4d 98 1a
platform caam_sm: [0024] 1c f8 ed d5 30 96 07 fe
platform caam_sm: restored 256-bit black key:
platform caam_sm: [0000] 0f 23 ef 13 93 96 c1 70
platform caam_sm: [0008] 4b f9 2c 20 81 90 20 ea
platform caam_sm: [0016] 10 ab 2b 88 85 f8 9e b1
platform caam_sm: [0024] 31 ed a7 77 5b e3 5d dd
snvs-secvio 30370000.caam-snvs: can't get snvs clock
snvs-secvio 30370000.caam-snvs: violation handlers armed - non-secure state
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
coresight-tmc 30086000.etr: TMC initialized
coresight-tmc 30084000.etf: TMC initialized
coresight-tpiu 30087000.tpiu: TPIU initialized
coresight-funnel 30083000.funnel: FUNNEL initialized
coresight-funnel 30041000.funnel: FUNNEL initialized
coresight-replicator replicator.1: REPLICATOR initialized
coresight-etm3x 3007c000.etm: ETM initialized
coresight-etm3x 3007d000.etm: ETM initialized
imx-wm8960 sound.18: wm8960-hifi <-> 308a0000.sai mapping ok
imx-sii902x sound-hdmi.19: snd-soc-dummy-dai <-> 308a0000.sai mapping ok
NET: Registered protocol family 26
TCP: cubic registered
NET: Registered protocol family 10
sit: IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
can: controller area network core (rev 20120528 abi 9)
NET: Registered protocol family 29
can: raw protocol (rev 20120528)
can: broadcast manager protocol (rev 20120528 t)
can: netlink gateway (rev 20130117) max_hops=1
Bluetooth: RFCOMM TTY layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM ver 1.11
Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Bluetooth: BNEP filters: protocol multicast
Bluetooth: BNEP socket layer initialized
Bluetooth: HIDP (Human Interface Emulation) ver 1.2
Bluetooth: HIDP socket layer initialized
8021q: 802.1Q VLAN Support v1.8
Key type dns_resolver registered
cpu cpu0: dev_pm_opp_get_opp_count: device OPP not found (-19)
SWBST: disabling
wlreg_on: disabling
can2-3v3: disabling
usb_otg1_vbus: disabling
regulator-dummy: disabling
imx mcc test is registered.
MPCIE_3V3: 3300 mV
snvs_rtc 30370034.snvs-rtc-lp: setting system clock to 1970-01-01 00:00:01 UTC (1)
ALSA device list:
#0: wm8960-audio
#1: sii902x-audio
random: nonblocking pool is initialized
kjournald starting. Commit interval 5 seconds
EXT3-fs (mmcblk0p2): using internal journal
EXT3-fs (mmcblk0p2): recovery complete
EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode
VFS: Mounted root (ext3 filesystem) on device 179:2.
devtmpfs: mounted
Freeing unused kernel memory: 392K (809e3000 - 80a45000)
INIT: version 2.88 booting
Starting udev
udev: Not using udev cache because of changes detected in the following files:
udev: /proc/version /proc/cmdline /proc/devices
udev: lib/udev/rules.d/* etc/udev/rules.d/*
udev: The udev cache will be regenerated. To identify the detected changes,
udev: compare the cached sysconf at /etc/udev/cache.data
udev: against the current sysconf at /dev/shm/udev.cache
udevd[170]: starting version 182
bootlogd: cannot allocate pseudo tty: No such file or directory
Populating dev cache
ALSA: Restoring mixer settings..
have any idea about this problem ?
how can i get working zImage .?
Thanks in advance
I got it working .
Problem was i was using old build dtb files ..
now SCP is not working .
$ scp /mnt/hgfs/VM_SHARE1/hello/hello root@10.29.99.114:/home/root
ssh: connect to host 10.29.99.114 port 22: Connection refused
lost connection.
any one have idea about this.
I am going to compile kernel manually for yocto Linux environment.
1. I download recipe file from https://github.com/Freescale/meta-fsl-arm-extra
and bitbake 3.14.28 kernel without any problem and install it to on sabre lite board.
2. Then i try to compile 3.14.28 kernel manually.
. Install toolchain to YOCT environment
. get linux-3.14.tar.xz source from ~/fsl-release-bsp/downloads
.Extract it
. go to linux-3.14 directory and run following commands
$export ARCH=arm
$export CROSS_COMPILE=arm-poky-linux-gnueabi-
$make imx_v6_v7_defconfig
$export PATH=$PATH:/opt/poky/1.6.2/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi
$make
$make uImage LOADADDR=0x10008000
. Copy images to boot partition of SD card of sabre lite device.
$cp arch/arm/boot/uImage arch/arm/boot/dts/imx6q-sabrelite.dtb <boot partition>
All steps work fine and but have a problem with a display.
I have 2 display units (sabre lite display and HDMI monitor )
In step 1 we have display on HDMI monitor only.
In step 2 we have display on sabre lite display only.
I need to get display on HDMI monitor in step 2 .
Ultimate goal of my work is compile latest kernel and install it on SD card of sabre lite device with a HDMI monitor.
In step 1 there are 2 Framebuffer device under /dev folder(fb0 and fb1) but in step 2 there is only one.
campier the configuration of above two steps and found that there is no "MXC support drivers setting" on step 2 configuration.
Seems that "MXC support drivers" setting is need in configuration to get display on HDMI monitor in step 2 .
How should i get MXC support drivers setting in step 2 configuration or Get display on HDMI monitor in step 2.
Thanks in advance
I'm having trouble determining where to copy my customized ".config" to in the "Building using Yocto / 2. Configuring the kernel" step above.
I'm building the "fsl-imx-fb" distribution for an i.MX6 UltraLite Evaluation Kit ("imx6ulevk") per the instructions in the "Freescale_Yocto_Project_User's_Guide.pdf" contained within the "Freescale Document Archive - L4.1.15_1.2.0_LINUX_DOCS" ("fsl-yocto-L4.1.15_1.2.0-ga.tar.gz").
repo init -u git://git.freescale.com/imx/fsl-arm-yocto-bsp.git -b imx-4.1.15-1.0.0_ga
DISTRO=fsl-imx-fb MACHINE=imx6ulevk source fsl-setup-release.sh
bitbake core-image-base
Any suggestions? Thanks!
How can I get access to https://community.nxp.com/docs/DOC-94035?
This is mentioned under "1 - Baking (building) the kernel" and "3 - Setting the environment variables".
I clicked on that and it says, "Access to this place or content is restricted. If you think this is a mistake, please contact your administrator or the person who directed you here."
Hello,
I have sent You the information via e-mail.
Regards,
Yuri.
Hello,
i wave the same problem accessing this file...
Please, can you help me too?
Best regards,
Andreas Schneider
Sorry the bad link. I just updated the page.
The correct link is: https://community.nxp.com/docs/DOC-94849
Best regards,
Rogerio
Do you have any defconfig which is not related to Board which is just specific to IMX6 families. Like if i refer imx_v7_defconfig it has extra defconfigs like Sound driver, MMC, MTD which is not used for my board. So i need a defconfig which is based on 4.1.15 Kernel and purely has necessary configs related to IMX6 and Interfaces like IPU,I2C,Thermal,SPI, etc
No. My suggestion is to use the imx_v7_defconfig and remove all items that are not necessary to your project.
Best regards,
Rogerio
Hello,
Does anyone knows the difference between /work/../git and /work-shared/ folder ?
Seems that both showing kernel source files, so I don't understand the difference,
Thank you,
Ran