* Issues when running DT enabled kernel on iMX28 from linux-next
@ 2012-05-17 23:03 Subodh Nijsure
2012-05-18 1:01 ` Shawn Guo
0 siblings, 1 reply; 13+ messages in thread
From: Subodh Nijsure @ 2012-05-17 23:03 UTC (permalink / raw)
To: linux-arm-kernel
Should one be able to run top of the linux-next on MX28 EVK hardware
with DT support enabled?
I have attached boot log I see when I try to do that.
Further if one enables, CONFIG_MTD_NAND_GPMI_NAND=y
CONFIG_MTD_NAND_PLATFORM=y code in
drivers/mtd/nand/gpmi-nand/gpmi-nand.c doesn't compile because of this code:
pinctrl = devm_pinctrl_get_select_default(&pdev->dev);
if (IS_ERR(pinctrl)) {
ret = PTR_ERR(pinctrl);
goto exit_pin;
}
-Subodh
[ 0.000000] Booting Linux on physical CPU 0
[ 0.000000] Linux version 3.4.0-rc7-next-20120516-dirty
(snijsure at subodh-desktop) (gcc version 4.3.3 (Sour
cery G++ Lite 2009q1-203) ) #3 Thu May 17 15:40:42 PDT 2012
[ 0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
[ 0.000000] CPU: VIVT data cache, VIVT instruction cache
[ 0.000000] Machine: Freescale i.MX28 (Device Tree), model: Freescale
i.MX28 Evaluation Kit
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on.
Total pages: 16256
[ 0.000000] Kernel command line: -e console=ttyAMA0,115200
ip=192.168.137.2::192.168.137.254:255
.255.255.0::eth0: root=/dev/nfs
nfsroot=192.168.137.254:/tftpboot/,v3,tcp noinitrd
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Memory: 64MB = 64MB total
[ 0.000000] Memory: 55792k/55792k available, 9744k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xc4800000 - 0xff000000 ( 936 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc4000000 ( 64 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0446220 (4345 kB)
[ 0.000000] .init : 0xc0447000 - 0xc046a000 ( 140 kB)
[ 0.000000] .data : 0xc046a000 - 0xc04a9f38 ( 256 kB)
[ 0.000000] .bss : 0xc04a9f5c - 0xc08e3c30 (4328 kB)
[ 0.000000] SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0,
CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:304
[ 0.000000] sched_clock: 32 bits at 100 Hz, resolution 10000000ns,
wraps every 4294967286ms
[ 0.000000] Console: colour dummy device 80x30
[ 0.000000] Lock dependency validator: Copyright (c) 2006 Red Hat,
Inc., Ingo Molnar
[ 0.000000] ... MAX_LOCKDEP_SUBCLASSES: 8
[ 0.000000] ... MAX_LOCK_DEPTH: 48
[ 0.000000] ... MAX_LOCKDEP_KEYS: 8191
[ 0.000000] ... CLASSHASH_SIZE: 4096
[ 0.000000] ... MAX_LOCKDEP_ENTRIES: 16384
[ 0.000000] ... MAX_LOCKDEP_CHAINS: 32768
[ 0.000000] ... CHAINHASH_SIZE: 16384
[ 0.000000] memory used by lock dependency info: 3679 kB
[ 0.000000] per task-struct memory footprint: 1152 bytes
[ 0.080000] Calibrating delay loop... 226.09 BogoMIPS (lpj=1130496)
[ 0.080000] pid_max: default: 32768 minimum: 301
[ 0.080000] Mount-cache hash table entries: 512
[ 0.090000] CPU: Testing write buffer coherency: ok
[ 0.090000] Setting up static identity map for 0x4031baf8 - 0x4031bb50
[ 0.100000] devtmpfs: initialized
[ 0.100000] initlevel:0=early, 4 registered initcalls
[ 0.100000] initlevel:1=core, 19 registered initcalls
[ 0.100000] pinctrl core: initialized pinctrl subsystem
[ 0.110000] dummy:
[ 0.110000] NET: Registered protocol family 16
[ 0.110000] initlevel:2=postcore, 12 registered initcalls
[ 0.110000] initlevel:3=arch, 9 registered initcalls
[ 0.120000] gpiochip_add: registered GPIOs 0 to 31 on device: gpio.0
[ 0.120000] gpiochip_add: registered GPIOs 32 to 63 on device: gpio.1
[ 0.120000] gpiochip_add: registered GPIOs 64 to 95 on device: gpio.2
[ 0.120000] gpiochip_add: registered GPIOs 96 to 127 on device: gpio.3
[ 0.120000] gpiochip_add: registered GPIOs 128 to 159 on device: gpio.4
[ 0.130000] No ATAGs?
[ 0.130000] Serial: AMBA PL011 UART driver
[ 0.130000] 80074000.serial: ttyAMA0 at MMIO 0x80074000 (irq = 47) is
a PL011 rev2
[ 0.350000] console [ttyAMA0] enabled
[ 0.360000] initlevel:4=subsys, 27 registered initcalls
[ 0.380000] bio: create slab <bio-0> at 0
[ 0.390000] mxs-dma 80004000.dma-apbh: initialized
[ 0.400000] mxs-dma 80024000.dma-apbx: initialized
[ 0.410000] 3P3V: 3300 mV
[ 0.410000] Advanced Linux Sound Architecture Driver Version 1.0.25.
[ 0.420000] initlevel:5=fs, 18 registered initcalls
[ 0.420000] Switching to clocksource mxs_timer
[ 0.550000] NET: Registered protocol family 2
[ 0.550000] IP route cache hash table entries: 1024 (order: 0, 4096
bytes)
[ 0.560000] TCP established hash table entries: 2048 (order: 2, 16384
bytes)
[ 0.570000] TCP bind hash table entries: 2048 (order: 4, 73728 bytes)
[ 0.580000] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.580000] TCP: reno registered
[ 0.590000] UDP hash table entries: 64 (order: 0, 5120 bytes)
[ 0.590000] UDP-Lite hash table entries: 64 (order: 0, 5120 bytes)
[ 0.600000] NET: Registered protocol family 1
[ 0.610000] RPC: Registered named UNIX socket transport module.
[ 0.610000] RPC: Registered udp transport module.
[ 0.620000] RPC: Registered tcp transport module.
[ 0.620000] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.630000] initlevel:6=device, 110 registered initcalls
[ 0.640000] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.680000] NFS: Registering the id_resolver key type
[ 0.690000] Key type id_resolver registered
[ 0.700000] msgmni has been set to 108
[ 0.700000] Block layer SCSI generic (bsg) driver version 0.4 loaded
(major 253)
[ 0.710000] io scheduler noop registered (default)
[ 0.720000] uart-pl011 80074000.serial: no DMA platform data
[ 0.790000] fec_enet_mii_bus: probed
[ 0.800000] mousedev: PS/2 mouse device common for all mice
[ 0.810000] i2c /dev entries driver
[ 0.820000] stmp_reset_block(f5010000): module reset timeout
[ 0.820000] INFO: trying to register non-static key.
[ 0.820000] the code is fine but needs lockdep annotation.
[ 0.820000] turning off the locking correctness validator.
[ 0.820000] [<c0015134>] (unwind_backtrace+0x0/0xf8) from
[<c005a154>] (__lock_acquire+0xb94/0xc1c)
[ 0.820000] [<c005a154>] (__lock_acquire+0xb94/0xc1c) from
[<c005a2c0>] (lock_acquire+0xe4/0xfc)
[ 0.820000] [<c005a2c0>] (lock_acquire+0xe4/0xfc) from [<c031b3b0>]
(_raw_spin_lock+0x2c/0x3c)
[ 0.820000] [<c031b3b0>] (_raw_spin_lock+0x2c/0x3c) from [<c0243a24>]
(mxs_mmc_irq_handler+0x1c/0x108)
[ 0.820000] [<c0243a24>] (mxs_mmc_irq_handler+0x1c/0x108) from
[<c0067a94>] (handle_irq_event_percpu+0x70/
0x250)
[ 0.820000] [<c0067a94>] (handle_irq_event_percpu+0x70/0x250) from
[<c0067cb0>] (handle_irq_event+0x3c/0x5
c)
[ 0.820000] [<c0067cb0>] (handle_irq_event+0x3c/0x5c) from
[<c006a3a0>] (handle_level_irq+0x8c/0x118)
[ 0.820000] [<c006a3a0>] (handle_level_irq+0x8c/0x118) from
[<c006763c>] (generic_handle_irq+0x34/0x40)
[ 0.820000] [<c006763c>] (generic_handle_irq+0x34/0x40) from
[<c00103dc>] (handle_IRQ+0x30/0x84)
[ 0.820000] [<c00103dc>] (handle_IRQ+0x30/0x84) from [<c000f174>]
(__irq_svc+0x34/0x60)
[ 0.820000] [<c000f174>] (__irq_svc+0x34/0x60) from [<c031b8c8>]
(_raw_spin_unlock_irqrestore+0x28/0x2c)
[ 0.820000] [<c031b8c8>] (_raw_spin_unlock_irqrestore+0x28/0x2c) from
[<c0068a08>] (__setup_irq+0x160/0x3f
c)
[ 0.820000] [<c0068a08>] (__setup_irq+0x160/0x3fc) from [<c0068ec4>]
(request_threaded_irq+0xc8/0x130)
[ 0.820000] [<c0068ec4>] (request_threaded_irq+0xc8/0x130) from
[<c006ab9c>] (devm_request_threaded_irq+0x
58/0x8c)
[ 0.820000] [<c006ab9c>] (devm_request_threaded_irq+0x58/0x8c) from
[<c0243840>] (mxs_mmc_probe+0x378/0x54
0)
[ 0.820000] [<c0243840>] (mxs_mmc_probe+0x378/0x540) from
[<c01ecf60>] (platform_drv_probe+0x18/0x1c)
[ 0.820000] [<c01ecf60>] (platform_drv_probe+0x18/0x1c) from
[<c01ebbc0>] (driver_probe_device+0x80/0x214)
[ 0.820000] [<c01ebbc0>] (driver_probe_device+0x80/0x214) from
[<c01ebde8>] (__driver_attach+0x94/0x98)
[ 0.820000] [<c01ebde8>] (__driver_attach+0x94/0x98) from
[<c01ea450>] (bus_for_each_dev+0x60/0x8c)
[ 0.820000] [<c01ea450>] (bus_for_each_dev+0x60/0x8c) from
[<c01eac30>] (bus_add_driver+0xb0/0x268)
[ 0.820000] [<c01eac30>] (bus_add_driver+0xb0/0x268) from
[<c01ec3b8>] (driver_register+0x58/0x12c)
[ 0.820000] [<c01ec3b8>] (driver_register+0x58/0x12c) from
[<c000879c>] (do_one_initcall+0x30/0x16c)
[ 0.820000] [<c000879c>] (do_one_initcall+0x30/0x16c) from
[<c0447328>] (kernel_init+0x110/0x1e4)
[ 0.820000] [<c0447328>] (kernel_init+0x110/0x1e4) from [<c00104a8>]
(kernel_thread_exit+0x0/0x8)
[ 0.820000] BUG: spinlock lockup on CPU#0, swapper/1
[ 0.820000] lock: 0xc3992f24, .magic: 00000000, .owner: <none>/-1,
.owner_cpu: 0
[ 0.820000] [<c0015134>] (unwind_backtrace+0x0/0xf8) from
[<c01b44fc>] (do_raw_spin_lock+0xec/0x140)
[ 0.820000] [<c01b44fc>] (do_raw_spin_lock+0xec/0x140) from
[<c0243a24>] (mxs_mmc_irq_handler+0x1c/0x108)
[ 0.820000] [<c0243a24>] (mxs_mmc_irq_handler+0x1c/0x108) from
[<c0067a94>] (handle_irq_event_percpu+0x70/
0x250)
[ 0.820000] [<c0067a94>] (handle_irq_event_percpu+0x70/0x250) from
[<c0067cb0>] (handle_irq_event+0x3c/0x5
c)
[ 0.820000] [<c0067cb0>] (handle_irq_event+0x3c/0x5c) from
[<c006a3a0>] (handle_level_irq+0x8c/0x118)
[ 0.820000] [<c006a3a0>] (handle_level_irq+0x8c/0x118) from
[<c006763c>] (generic_handle_irq+0x34/0x40)
[ 0.820000] [<c006763c>] (generic_handle_irq+0x34/0x40) from
[<c00103dc>] (handle_IRQ+0x30/0x84)
[ 0.820000] [<c00103dc>] (handle_IRQ+0x30/0x84) from [<c000f174>]
(__irq_svc+0x34/0x60)
[ 0.820000] [<c000f174>] (__irq_svc+0x34/0x60) from [<c031b8c8>]
(_raw_spin_unlock_irqrestore+0x28/0x2c)
[ 0.820000] [<c031b8c8>] (_raw_spin_unlock_irqrestore+0x28/0x2c) from
[<c0068a08>] (__setup_irq+0x160/0x3f
c)
[ 0.820000] [<c0068a08>] (__setup_irq+0x160/0x3fc) from [<c0068ec4>]
(request_threaded_irq+0xc8/0x130)
[ 0.820000] [<c0068ec4>] (request_threaded_irq+0xc8/0x130) from
[<c006ab9c>] (devm_request_threaded_irq+0x
58/0x8c)
[ 0.820000] [<c006ab9c>] (devm_request_threaded_irq+0x58/0x8c) from
[<c0243840>] (mxs_mmc_probe+0x378/0x54
0)
[ 0.820000] [<c0243840>] (mxs_mmc_probe+0x378/0x540) from
[<c01ecf60>] (platform_drv_probe+0x18/0x1c)
[ 0.820000] [<c01ecf60>] (platform_drv_probe+0x18/0x1c) from
[<c01ebbc0>] (driver_probe_device+0x80/0x214)
[ 0.820000] [<c01ebbc0>] (driver_probe_device+0x80/0x214) from
[<c01ebde8>] (__driver_attach+0x94/0x98)
[ 0.820000] [<c01ebde8>] (__driver_attach+0x94/0x98) from
[<c01ea450>] (bus_for_each_dev+0x60/0x8c)
[ 0.820000] [<c01ea450>] (bus_for_each_dev+0x60/0x8c) from
[<c01eac30>] (bus_add_driver+0xb0/0x268)
[ 0.820000] [<c01eac30>] (bus_add_driver+0xb0/0x268) from
[<c01ec3b8>] (driver_register+0x58/0x12c)
[ 0.820000] [<c01ec3b8>] (driver_register+0x58/0x12c) from
[<c000879c>] (do_one_initcall+0x30/0x16c)
[ 0.820000] [<c000879c>] (do_one_initcall+0x30/0x16c) from
[<c0447328>] (kernel_init+0x110/0x1e4)
[ 0.820000] [<c0447328>] (kernel_init+0x110/0x1e4) from [<c00104a8>]
(kernel_thread_exit+0x0/0x8
^ permalink raw reply [flat|nested] 13+ messages in thread* Issues when running DT enabled kernel on iMX28 from linux-next 2012-05-17 23:03 Issues when running DT enabled kernel on iMX28 from linux-next Subodh Nijsure @ 2012-05-18 1:01 ` Shawn Guo 2012-05-18 1:50 ` Fabio Estevam ` (2 more replies) 0 siblings, 3 replies; 13+ messages in thread From: Shawn Guo @ 2012-05-18 1:01 UTC (permalink / raw) To: linux-arm-kernel On Thu, May 17, 2012 at 04:03:43PM -0700, Subodh Nijsure wrote: > > Should one be able to run top of the linux-next on MX28 EVK hardware > with DT support enabled? Yes, I'm running it well with next-20120516. > I have attached boot log I see when I try to do that. > One thing from the boot log worth checking is [ 0.820000] stmp_reset_block(f5010000): module reset timeout My wild guess is stmp_reset_block call on mmc0 failed on your end. > Further if one enables, CONFIG_MTD_NAND_GPMI_NAND=y > CONFIG_MTD_NAND_PLATFORM=y code in > drivers/mtd/nand/gpmi-nand/gpmi-nand.c doesn't compile because of > this code: > > pinctrl = devm_pinctrl_get_select_default(&pdev->dev); > if (IS_ERR(pinctrl)) { > ret = PTR_ERR(pinctrl); > goto exit_pin; > } > Thanks for reporting it. It's my bad. I thought I had mxs_defconfig build testing cover the change. Actually, the gpmi is not enabled in mxs_defconfig yet. I will send the following fix to Arnd and Olof soon. @@ -486,7 +486,7 @@ static int __devinit acquire_resources(struct gpmi_nand_data *this) if (ret) goto exit_dma_channels; - pinctrl = devm_pinctrl_get_select_default(&pdev->dev); + pinctrl = devm_pinctrl_get_select_default(&this->pdev->dev); if (IS_ERR(pinctrl)) { ret = PTR_ERR(pinctrl); goto exit_pin; -- Regards, Shawn ^ permalink raw reply [flat|nested] 13+ messages in thread
* Issues when running DT enabled kernel on iMX28 from linux-next 2012-05-18 1:01 ` Shawn Guo @ 2012-05-18 1:50 ` Fabio Estevam 2012-05-18 1:58 ` Shawn Guo 2012-05-18 11:21 ` Marek Vasut 2012-05-18 22:52 ` Subodh Nijsure 2 siblings, 1 reply; 13+ messages in thread From: Fabio Estevam @ 2012-05-18 1:50 UTC (permalink / raw) To: linux-arm-kernel Hi Shawn, On Thu, May 17, 2012 at 10:01 PM, Shawn Guo <shawn.guo@linaro.org> wrote: > On Thu, May 17, 2012 at 04:03:43PM -0700, Subodh Nijsure wrote: >> >> Should one be able to run top of the linux-next on MX28 EVK hardware >> with DT support enabled? > > Yes, I'm running it well with next-20120516. Could you please confirm next-20120517 also boots? I am not getting nothing on console. This is my U-boot setup: run netargs; tftpboot 42000000 uImage; tftpboot 42800000 imx28-evk.dtb; bootm 0x4000000 - 0x42000000 Regards, Fabio Estevam ^ permalink raw reply [flat|nested] 13+ messages in thread
* Issues when running DT enabled kernel on iMX28 from linux-next 2012-05-18 1:50 ` Fabio Estevam @ 2012-05-18 1:58 ` Shawn Guo 2012-05-18 2:00 ` Fabio Estevam 0 siblings, 1 reply; 13+ messages in thread From: Shawn Guo @ 2012-05-18 1:58 UTC (permalink / raw) To: linux-arm-kernel On 18 May 2012 09:50, Fabio Estevam <festevam@gmail.com> wrote: > Could you please confirm next-20120517 also boots? > > I am not getting nothing on console. > > This is my U-boot setup: > > run netargs; tftpboot 42000000 uImage; tftpboot 42800000 > imx28-evk.dtb; bootm 0x4000000 - 0x42000000 > The addresses in bootm mismatch the ones in tftpboot? Regards, Shawn ^ permalink raw reply [flat|nested] 13+ messages in thread
* Issues when running DT enabled kernel on iMX28 from linux-next 2012-05-18 1:58 ` Shawn Guo @ 2012-05-18 2:00 ` Fabio Estevam 2012-05-18 2:33 ` Shawn Guo 0 siblings, 1 reply; 13+ messages in thread From: Fabio Estevam @ 2012-05-18 2:00 UTC (permalink / raw) To: linux-arm-kernel On Thu, May 17, 2012 at 10:58 PM, Shawn Guo <shawn.guo@linaro.org> wrote: > On 18 May 2012 09:50, Fabio Estevam <festevam@gmail.com> wrote: >> Could you please confirm next-20120517 also boots? >> >> I am not getting nothing on console. >> >> This is my U-boot setup: >> >> run netargs; tftpboot 42000000 uImage; tftpboot 42800000 >> imx28-evk.dtb; bootm 0x4000000 - 0x42000000 >> > The addresses in bootm mismatch the ones in tftpboot? Sorry, my typo. The line I use is: run netargs; tftpboot 42000000 uImage; tftpboot 42800000 imx28-evk.dtb; bootm 0x42000000 - 0x42800000 This is what I see: TFTP from server 192.168.1.105; our IP address is 192.168.1.107 Filename 'uImage'. Load address: 0x42000000 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################### done Bytes transferred = 2255688 (226b48 hex) Using FEC0 device TFTP from server 192.168.1.105; our IP address is 192.168.1.107 Filename 'imx28-evk.dtb'. Load address: 0x42800000 Loading: ## done Bytes transferred = 9340 (247c hex) ## Booting kernel from Legacy Image at 42000000 ... Image Name: Linux-3.4.0-rc7-next-20120517 Created: 2012-05-18 1:37:46 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 2255624 Bytes = 2.2 MiB Load Address: 40008000 Entry Point: 40008000 Verifying Checksum ... OK ## Flattened Device Tree blob at 42800000 Booting using the fdt blob at 0x42800000 Loading Kernel Image ... OK OK Loading Device Tree to 47b7d000, end 47b8247b ... OK Starting kernel ... Uncompressing Linux... done, booting the kernel. (No output after that) ^ permalink raw reply [flat|nested] 13+ messages in thread
* Issues when running DT enabled kernel on iMX28 from linux-next 2012-05-18 2:00 ` Fabio Estevam @ 2012-05-18 2:33 ` Shawn Guo 2012-05-18 3:05 ` Fabio Estevam 0 siblings, 1 reply; 13+ messages in thread From: Shawn Guo @ 2012-05-18 2:33 UTC (permalink / raw) To: linux-arm-kernel On Thu, May 17, 2012 at 11:00:07PM -0300, Fabio Estevam wrote: > On Thu, May 17, 2012 at 10:58 PM, Shawn Guo <shawn.guo@linaro.org> wrote: > > On 18 May 2012 09:50, Fabio Estevam <festevam@gmail.com> wrote: > >> Could you please confirm next-20120517 also boots? > >> > >> I am not getting nothing on console. > >> > >> This is my U-boot setup: > >> > >> run netargs; tftpboot 42000000 uImage; tftpboot 42800000 > >> imx28-evk.dtb; bootm 0x4000000 - 0x42000000 > >> > > The addresses in bootm mismatch the ones in tftpboot? > > Sorry, my typo. The line I use is: > > run netargs; tftpboot 42000000 uImage; tftpboot 42800000 > imx28-evk.dtb; bootm 0x42000000 - 0x42800000 > > This is what I see: > The next-20120517 seems working for me too. You can turn on low-level debug option to see where it goes wrong at your end. Regards, Shawn U-Boot 2011.12-00225-g8753994-dirty (Jan 28 2012 - 22:22:20) Freescale i.MX28 family DRAM: 128 MiB WARNING: Caches not enabled MMC: MXS MMC: 0 In: serial Out: serial Err: serial Net: FEC0, FEC1 Warning: failed to set MAC address Hit any key to stop autoboot: 0 MX28EVK U-Boot > set bootargs console=ttyAMA0,115200 root=/dev/mmcblk0p2 rw root wait ip=:::::eth0:dhcp MX28EVK U-Boot > boot Using FEC0 device TFTP from server 192.168.1.3; our IP address is 192.168.1.7 Filename 'uImage'. Load address: 0x42000000 Loading: ################################################################# ################################################################# ########################## done Bytes transferred = 2283144 (22d688 hex) Using FEC0 device TFTP from server 192.168.1.3; our IP address is 192.168.1.7 Filename 'imx28-evk.dtb'. Load address: 0x42800000 Loading: # done Bytes transferred = 9340 (247c hex) ## Booting kernel from Legacy Image at 42000000 ... Image Name: Linux-3.4.0-rc7-next-20120517-di Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 2283080 Bytes = 2.2 MiB Load Address: 40008000 Entry Point: 40008000 Verifying Checksum ... OK ## Flattened Device Tree blob at 42800000 Booting using the fdt blob at 0x42800000 Loading Kernel Image ... OK OK Loading Device Tree to 47b92000, end 47b9747b ... OK Starting kernel ... Uncompressing Linux... done, booting the kernel. [ 0.000000] Booting Linux on physical CPU 0 [ 0.000000] Linux version 3.4.0-rc7-next-20120517-dirty (r65073 at S2101-09) (gc c version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) ) #10 Fri May 18 10:22:22 CST 201 2 [ 0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177 [ 0.000000] CPU: VIVT data cache, VIVT instruction cache [ 0.000000] Machine: Freescale i.MX28 (Device Tree), model: Freescale i.MX28 Evaluation Kit [ 0.000000] Memory policy: ECC disabled, Data cache writeback [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pag es: 32512 [ 0.000000] Kernel command line: console=ttyAMA0,115200 root=/dev/mmcblk0p2 r w rootwait ip=:::::eth0:dhcp [ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes) [ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) [ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) [ 0.000000] Memory: 128MB = 128MB total [ 0.000000] Memory: 119908k/119908k available, 11164k reserved, 0K highmem [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB) [ 0.000000] vmalloc : 0xc8800000 - 0xff000000 ( 872 MB) [ 0.000000] lowmem : 0xc0000000 - 0xc8000000 ( 128 MB) [ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB) [ 0.000000] .text : 0xc0008000 - 0xc040d800 (4118 kB) [ 0.000000] .init : 0xc040e000 - 0xc042e000 ( 128 kB) [ 0.000000] .data : 0xc042e000 - 0xc046b4b8 ( 246 kB) [ 0.000000] .bss : 0xc046b4dc - 0xc09b77a0 (5425 kB) [ 0.000000] SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, N odes=1 [ 0.000000] NR_IRQS:304 [ 0.000000] sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps ever y 4294967286ms [ 0.000000] Console: colour dummy device 80x30 [ 0.000000] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar [ 0.000000] ... MAX_LOCKDEP_SUBCLASSES: 8 [ 0.000000] ... MAX_LOCK_DEPTH: 48 [ 0.000000] ... MAX_LOCKDEP_KEYS: 8191 [ 0.000000] ... CLASSHASH_SIZE: 4096 [ 0.000000] ... MAX_LOCKDEP_ENTRIES: 16384 [ 0.000000] ... MAX_LOCKDEP_CHAINS: 32768 [ 0.000000] ... CHAINHASH_SIZE: 16384 [ 0.000000] memory used by lock dependency info: 3695 kB [ 0.000000] per task-struct memory footprint: 1152 bytes [ 0.070000] Calibrating delay loop... 226.09 BogoMIPS (lpj=1130496) [ 0.070000] pid_max: default: 32768 minimum: 301 [ 0.070000] Mount-cache hash table entries: 512 [ 0.080000] CPU: Testing write buffer coherency: ok [ 0.080000] Setting up static identity map for 0x402e7b10 - 0x402e7b68 [ 0.090000] devtmpfs: initialized [ 0.100000] initlevel:0=early, 4 registered initcalls [ 0.100000] initlevel:1=core, 19 registered initcalls [ 0.100000] pinctrl core: initialized pinctrl subsystem [ 0.100000] dummy: [ 0.110000] NET: Registered protocol family 16 [ 0.110000] initlevel:2=postcore, 12 registered initcalls [ 0.110000] initlevel:3=arch, 8 registered initcalls [ 0.120000] gpiochip_add: registered GPIOs 0 to 31 on device: gpio.0 [ 0.120000] gpiochip_add: registered GPIOs 32 to 63 on device: gpio.1 [ 0.120000] gpiochip_add: registered GPIOs 64 to 95 on device: gpio.2 [ 0.120000] gpiochip_add: registered GPIOs 96 to 127 on device: gpio.3 [ 0.130000] gpiochip_add: registered GPIOs 128 to 159 on device: gpio.4 [ 0.140000] Serial: AMBA PL011 UART driver [ 0.140000] 80074000.serial: ttyAMA0 at MMIO 0x80074000 (irq = 47) is a PL011 rev2 [ 0.350000] console [ttyAMA0] enabled [ 0.360000] initlevel:4=subsys, 27 registered initcalls [ 0.380000] bio: create slab <bio-0> at 0 [ 0.400000] mxs-dma 80004000.dma-apbh: initialized [ 0.410000] mxs-dma 80024000.dma-apbx: initialized [ 0.410000] 3P3V: 3300 mV [ 0.420000] Advanced Linux Sound Architecture Driver Version 1.0.25. [ 0.430000] initlevel:5=fs, 18 registered initcalls [ 0.440000] Switching to clocksource mxs_timer [ 0.590000] NET: Registered protocol family 2 [ 0.600000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.610000] TCP established hash table entries: 4096 (order: 3, 32768 bytes) [ 0.620000] TCP bind hash table entries: 4096 (order: 5, 147456 bytes) [ 0.630000] TCP: Hash tables configured (established 4096 bind 4096) [ 0.640000] TCP: reno registered [ 0.640000] UDP hash table entries: 64 (order: 0, 5120 bytes) [ 0.640000] UDP-Lite hash table entries: 64 (order: 0, 5120 bytes) [ 0.650000] NET: Registered protocol family 1 [ 0.660000] RPC: Registered named UNIX socket transport module. [ 0.670000] RPC: Registered udp transport module. [ 0.670000] RPC: Registered tcp transport module. [ 0.680000] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.680000] initlevel:6=device, 100 registered initcalls [ 0.690000] NetWinder Floating Point Emulator V0.97 (double precision) [ 0.750000] NFS: Registering the id_resolver key type [ 0.760000] Key type id_resolver registered [ 0.770000] msgmni has been set to 234 [ 0.780000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 2 53) [ 0.780000] io scheduler noop registered (default) [ 0.790000] uart-pl011 80074000.serial: no DMA platform data [ 0.800000] GPMI NAND driver registered. (IMX) [ 0.820000] fec_enet_mii_bus: probed [ 0.830000] mousedev: PS/2 mouse device common for all mice [ 0.840000] i2c /dev entries driver [ 0.890000] mxs-mmc 80010000.ssp: initialized [ 0.910000] sgtl5000 0-000a: Failed to get supply 'VDDD': -517 [ 0.920000] 0-000a: 1200 mV normal [ 0.930000] sgtl5000 0-000a: Using internal LDO instead of VDDD [ 0.940000] sgtl5000 0-000a: sgtl5000 revision 0x11 [ 0.960000] asoc: sgtl5000 <-> 80042000.saif mapping ok [ 0.970000] asoc: sgtl5000 <-> 80046000.saif mapping ok [ 0.990000] TCP: cubic registered [ 0.990000] NET: Registered protocol family 17 [ 1.000000] Key type dns_resolver registered [ 1.000000] initlevel:7=late, 20 registered initcalls [ 1.010000] registered taskstats version 1 [ 1.020000] /home/r65073/repos/shawnguo/linux-2.6/drivers/rtc/hctosys.c: unab le to open rtc device (rtc0) [ 1.030000] mmc0: new high speed SDHC card at address e624 [ 1.040000] eth0: Freescale FEC PHY driver [Generic PHY] (mii_bus:phy_addr=80 0f0000.etherne:00, irq=-1) [ 1.050000] mmcblk0: mmc0:e624 SD08G 7.40 GiB [ 1.070000] mmcblk0: p1 p2 [ 3.040000] PHY: 800f0000.etherne:00 - Link is Up - 100/Full [ 5.200000] Sending DHCP requests ., OK [ 5.200000] IP-Config: Got DHCP answer from 0.0.0.0, my address is 192.168.1. 7 [ 5.210000] IP-Config: Complete: [ 5.210000] device=eth0, addr=192.168.1.7, mask=255.255.255.0, gw=192.16 8.1.1 [ 5.220000] host=192.168.1.7, domain=, nis-domain=(none) [ 5.220000] bootserver=0.0.0.0, rootserver=0.0.0.0, rootpath= [ 5.230000] ALSA device list: [ 5.230000] #0: mxs_sgtl5000 [ 6.260000] kjournald starting. Commit interval 5 seconds [ 6.270000] EXT3-fs (mmcblk0p2): warning: maximal mount count reached, runnin g e2fsck is recommended [ 6.280000] EXT3-fs (mmcblk0p2): using internal journal [ 6.290000] EXT3-fs (mmcblk0p2): recovery complete [ 6.300000] EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode [ 6.300000] VFS: Mounted root (ext3 filesystem) on device 179:2. [ 6.310000] Freeing init memory: 128K init started: BusyBox v1.15.0 () ... ^ permalink raw reply [flat|nested] 13+ messages in thread
* Issues when running DT enabled kernel on iMX28 from linux-next 2012-05-18 2:33 ` Shawn Guo @ 2012-05-18 3:05 ` Fabio Estevam 0 siblings, 0 replies; 13+ messages in thread From: Fabio Estevam @ 2012-05-18 3:05 UTC (permalink / raw) To: linux-arm-kernel On Thu, May 17, 2012 at 11:33 PM, Shawn Guo <shawn.guo@linaro.org> wrote: > The next-20120517 seems working for me too. > > You can turn on low-level debug option to see where it goes wrong > at your end. Ok, so I changed the bootloader to U-boot 2012.04.01 + CONFIG_OF_LIBFDT, and now it boots fine. Thanks, Fabio Estevam ^ permalink raw reply [flat|nested] 13+ messages in thread
* Issues when running DT enabled kernel on iMX28 from linux-next 2012-05-18 1:01 ` Shawn Guo 2012-05-18 1:50 ` Fabio Estevam @ 2012-05-18 11:21 ` Marek Vasut 2012-05-18 22:52 ` Subodh Nijsure 2 siblings, 0 replies; 13+ messages in thread From: Marek Vasut @ 2012-05-18 11:21 UTC (permalink / raw) To: linux-arm-kernel Dear Shawn Guo, > On Thu, May 17, 2012 at 04:03:43PM -0700, Subodh Nijsure wrote: > > Should one be able to run top of the linux-next on MX28 EVK hardware > > with DT support enabled? > > Yes, I'm running it well with next-20120516. > > > I have attached boot log I see when I try to do that. > > One thing from the boot log worth checking is > > [ 0.820000] stmp_reset_block(f5010000): module reset timeout > > My wild guess is stmp_reset_block call on mmc0 failed on your end. > > > Further if one enables, CONFIG_MTD_NAND_GPMI_NAND=y > > CONFIG_MTD_NAND_PLATFORM=y code in > > drivers/mtd/nand/gpmi-nand/gpmi-nand.c doesn't compile because of > > > > this code: > > pinctrl = devm_pinctrl_get_select_default(&pdev->dev); > > if (IS_ERR(pinctrl)) { > > > > ret = PTR_ERR(pinctrl); > > goto exit_pin; > > > > } > > Thanks for reporting it. It's my bad. I thought I had mxs_defconfig > build testing cover the change. Actually, the gpmi is not enabled in > mxs_defconfig yet. I will send the following fix to Arnd and Olof soon. > > @@ -486,7 +486,7 @@ static int __devinit acquire_resources(struct > gpmi_nand_data *this) if (ret) > goto exit_dma_channels; > > - pinctrl = devm_pinctrl_get_select_default(&pdev->dev); > + pinctrl = devm_pinctrl_get_select_default(&this->pdev->dev); > if (IS_ERR(pinctrl)) { > ret = PTR_ERR(pinctrl); > goto exit_pin; Rebase your uboot on top of git://git.denx.de/u-boot-arm.git -master . u-boot- imx is missing a patch and won't be updated for next 3 weeks (maintainer is on vacation). u-boot-arm has a bugfix for this issue Best regards, Marek Vasut ^ permalink raw reply [flat|nested] 13+ messages in thread
* Issues when running DT enabled kernel on iMX28 from linux-next 2012-05-18 1:01 ` Shawn Guo 2012-05-18 1:50 ` Fabio Estevam 2012-05-18 11:21 ` Marek Vasut @ 2012-05-18 22:52 ` Subodh Nijsure 2012-05-19 1:23 ` Marek Vasut 2 siblings, 1 reply; 13+ messages in thread From: Subodh Nijsure @ 2012-05-18 22:52 UTC (permalink / raw) To: linux-arm-kernel On 05/17/2012 06:01 PM, Shawn Guo wrote: > On Thu, May 17, 2012 at 04:03:43PM -0700, Subodh Nijsure wrote: >> Should one be able to run top of the linux-next on MX28 EVK hardware >> with DT support enabled? > Yes, I'm running it well with next-20120516. I followed the subsequent discussion on this, looks like most of you are booting your kernels with uBoot. We are using linux_prep bootlets from freescale to boot linux kernel. I have following options turned on in my setup CONFIG_ARM_APPENDED_DTB=y CONFIG_ARM_ATAG_DTB_COMPAT=y I am building imx28-evk.dtb and appending it to zImage as in: make imx28-evk.dtb cat zImage imx28-evk.dtb > zImage_w_dtb We will investigate this further and let you know what I find, would be glad to hear if anybody else is using MXS platform with appended device tree. -Subodh ^ permalink raw reply [flat|nested] 13+ messages in thread
* Issues when running DT enabled kernel on iMX28 from linux-next 2012-05-18 22:52 ` Subodh Nijsure @ 2012-05-19 1:23 ` Marek Vasut 2012-05-19 12:34 ` Shawn Guo 0 siblings, 1 reply; 13+ messages in thread From: Marek Vasut @ 2012-05-19 1:23 UTC (permalink / raw) To: linux-arm-kernel Dear Subodh Nijsure, > On 05/17/2012 06:01 PM, Shawn Guo wrote: > > On Thu, May 17, 2012 at 04:03:43PM -0700, Subodh Nijsure wrote: > >> Should one be able to run top of the linux-next on MX28 EVK hardware > >> with DT support enabled? > > > > Yes, I'm running it well with next-20120516. > > I followed the subsequent discussion on this, looks like most of you are > booting your kernels with uBoot. > We are using linux_prep bootlets from freescale to boot linux kernel. They're crap ... very sorry crap :-( > > I have following options turned on in my setup > CONFIG_ARM_APPENDED_DTB=y > CONFIG_ARM_ATAG_DTB_COMPAT=y > > I am building imx28-evk.dtb and appending it to zImage as in: > > make imx28-evk.dtb > cat zImage imx28-evk.dtb > zImage_w_dtb > > We will investigate this further and let you know what I find, would be > glad to hear if anybody else is using MXS platform with appended device > tree. Hm actually ... does anyone have dts file for mx28 with enabled GPMI nand? Looks like that thing from example doesn't work (had to replace gpmi-nand with gpmi), then it stopped complaining about clock. But now it dies on ecc.strength not being set. MMC doesn't probe either etc. > > -Subodh > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel at lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel Best regards, Marek Vasut ^ permalink raw reply [flat|nested] 13+ messages in thread
* Issues when running DT enabled kernel on iMX28 from linux-next 2012-05-19 1:23 ` Marek Vasut @ 2012-05-19 12:34 ` Shawn Guo 2012-05-19 16:02 ` Marek Vasut 0 siblings, 1 reply; 13+ messages in thread From: Shawn Guo @ 2012-05-19 12:34 UTC (permalink / raw) To: linux-arm-kernel On Sat, May 19, 2012 at 03:23:17AM +0200, Marek Vasut wrote: > Hm actually ... does anyone have dts file for mx28 with enabled GPMI nand? Looks > like that thing from example doesn't work (had to replace gpmi-nand with gpmi), > then it stopped complaining about clock. > But now it dies on ecc.strength not > being set. Huang Shijie (Cc-ed) might be interested in knowing and fixing those, but probably during v3.5-rc. > MMC doesn't probe either etc. > Are you using next-20120516 or later? -- Regards, Shawn ^ permalink raw reply [flat|nested] 13+ messages in thread
* Issues when running DT enabled kernel on iMX28 from linux-next 2012-05-19 12:34 ` Shawn Guo @ 2012-05-19 16:02 ` Marek Vasut 2012-05-20 2:00 ` Shawn Guo 0 siblings, 1 reply; 13+ messages in thread From: Marek Vasut @ 2012-05-19 16:02 UTC (permalink / raw) To: linux-arm-kernel Dear Shawn Guo, > On Sat, May 19, 2012 at 03:23:17AM +0200, Marek Vasut wrote: > > Hm actually ... does anyone have dts file for mx28 with enabled GPMI > > nand? Looks like that thing from example doesn't work (had to replace > > gpmi-nand with gpmi), then it stopped complaining about clock. > > But now it dies on ecc.strength not > > being set. > > Huang Shijie (Cc-ed) might be interested in knowing and fixing those, > but probably during v3.5-rc. > > > MMC doesn't probe either etc. > > Are you using next-20120516 or later? yes Best regards, Marek Vasut ^ permalink raw reply [flat|nested] 13+ messages in thread
* Issues when running DT enabled kernel on iMX28 from linux-next 2012-05-19 16:02 ` Marek Vasut @ 2012-05-20 2:00 ` Shawn Guo 0 siblings, 0 replies; 13+ messages in thread From: Shawn Guo @ 2012-05-20 2:00 UTC (permalink / raw) To: linux-arm-kernel On Sat, May 19, 2012 at 06:02:56PM +0200, Marek Vasut wrote: > > Are you using next-20120516 or later? > > yes > I guess you are not running Freescale imx28-evk board. Can you post the dts for your board? -- Regards, Shawn ^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2012-05-20 2:00 UTC | newest] Thread overview: 13+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-05-17 23:03 Issues when running DT enabled kernel on iMX28 from linux-next Subodh Nijsure 2012-05-18 1:01 ` Shawn Guo 2012-05-18 1:50 ` Fabio Estevam 2012-05-18 1:58 ` Shawn Guo 2012-05-18 2:00 ` Fabio Estevam 2012-05-18 2:33 ` Shawn Guo 2012-05-18 3:05 ` Fabio Estevam 2012-05-18 11:21 ` Marek Vasut 2012-05-18 22:52 ` Subodh Nijsure 2012-05-19 1:23 ` Marek Vasut 2012-05-19 12:34 ` Shawn Guo 2012-05-19 16:02 ` Marek Vasut 2012-05-20 2:00 ` Shawn Guo
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).