hi,i get linux kernel code from git://git.freescale.com/imx/linux-2.6-imx.git and checkout origin/imx_4.1.15_1.0.0_ga,build use imx6_v7_defconfig and build FreeRTOS hello_uart_ocram demo for cortext-M4.
when i load hello_uart_ocram.bin to adress 910000 and boot it use command 'bootaux 910000' on uboot command line mode,then boot kernel ,the kernel panic log as follow
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)
Unable to handle kernel NULL pointer dereference at virtual address 00000008
pgd = 80004000
[00000008] *pgd=00000000
Internal error: Oops: 805 [#1] PREEMPT SMP ARM
Modules linked in:
CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.1.15-224233-g77f6154 #1
Hardware name: Freescale i.MX6 SoloX (Device Tree)
task: a8068000 ti: a806c000 task.ti: a806c000
PC is at imx_amp_power_init+0x90/0xe8
LR is at __arm_ioremap+0x18/0x1c
pc : [<80b149e8>] lr : [<8001c2e4>] psr: a0000113
sp : a806dee0 ip : 00000000 fp : 00000000
r10: 00000014 r9 : 80b5e1e4 r8 : 00000001
r7 : 80bd4758 r6 : 80bd4304 r5 : 00000001 r4 : 80bd4304
r3 : 00000000 r2 : a8002b00 r1 : 00000001 r0 : a8002b00
Flags: NzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel
Control: 10c53c7d Table: 8000404a DAC: 00000015
Process swapper/0 (pid: 1, stack limit = 0xa806c210)
Stack: (0xa806dee0 to 0xa806e000)
dee0: 00000000 80b14958 00000000 80b69698 80b69698 a872bf80 00000132 80009704
df00: 00000010 807e84f8 a8035600 80c180f4 80bd3000 00000000 00000001 00000001
df20: 00000000 80b71408 60000113 00000000 abfffa76 00000000 80ab94ec 8004ada8
df40: 809bf654 80ab81cc 00000007 00000007 80b713d0 80b51704 00000007 80b516e4
df60: 80bd3000 80afa588 80b5e1e4 00000132 00000000 80afad44 00000007 00000007
df80: 80afa588 8004f650 00000000 807d88a4 00000000 00000000 00000000 00000000
dfa0: 00000000 807d88ac 00000000 8000f4e8 00000000 00000000 00000000 00000000
dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
dfe0: 00000000 00000000 00000000 00000000 00000013 00000000 87f133df f6da651a
[<80b149e8>] (imx_amp_power_init) from [<80009704>] (do_one_initcall+0x80/0x1d0)
[<80009704>] (do_one_initcall) from [<80afad44>] (kernel_init_freeable+0x108/0x1d4)
[<80afad44>] (kernel_init_freeable) from [<807d88ac>] (kernel_init+0x8/0xe4)
[<807d88ac>] (kernel_init) from [<8000f4e8>] (ret_from_fork+0x14/0x2c)
Code: e023359a e7962102 e2855001 e1a00002 (e5832008)
---[ end trace b5b7bea3232d245a ]---
Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
i have another question,how to reload Cortex-M4 code after linux system start。
Solved! Go to Solution.
Hi cai
do you have pmic on board, as error
"cpu cpu0: dev_pm_opp_get_opp_count: device OPP not found" may be related
to pmic absence, please check property
&cpu0 {
operating-points
in imx6sx-sdb.dts
http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/arch/arm/boot/dts/imx6sx-sdb.dts?h=...
for using M4 core please use imx6sx-sdb-m4.dts
http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/arch/arm/boot/dts/imx6sx-sdb-m4.dts...
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
use imx6sx-sdb-m4.dts and it not panic,thx