All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ming Lei <tom.leiming@gmail.com>
To: Sricharan R <r.sricharan@ti.com>
Cc: Tony Lindgren <tony@atomide.com>,
	linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org
Subject: Re: [PATCH 2/6] ARM: OMAP2+: Remove board-omap4panda.c
Date: Fri, 14 Jun 2013 21:58:24 +0800	[thread overview]
Message-ID: <CACVXFVNzAMrkhrAMAmQ7ZdJdby2O4VdoD8BVHRF-O=rPKQMqbw@mail.gmail.com> (raw)
In-Reply-To: <CACVXFVN3=hzWJEwHN5TXRoJ4mvVRVR+3=Tasw+gvLH3vsNHwUg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 3957 bytes --]

On Fri, Jun 14, 2013 at 9:31 PM, Ming Lei <tom.leiming@gmail.com> wrote:
> On Thu, Jun 13, 2013 at 6:12 PM, Sricharan R <r.sricharan@ti.com> wrote:
>> On Thursday 13 June 2013 02:51 PM, Sricharan R wrote:
>>> Hi Tony,
>>> On Wednesday 12 June 2013 10:44 PM, Tony Lindgren wrote:
>>>> * Tony Lindgren <tony@atomide.com> [130612 09:37]:
>>>>> * Ming Lei <tom.leiming@gmail.com> [130603 08:34]:
>>>>>> Hi,
>>>>>>
>>>>>> On Sat, May 18, 2013 at 3:17 AM, Tony Lindgren <tony@atomide.com> wrote:
>>>>>>> We can now boot with device tree. If you don't want to update u-boot,
>>>>>>> you can boot with appended DTB with the following instructions:
>>>>>>>
>>>>>>> 1. Make sure you have the appended DTB support in .config
>>>>>>>
>>>>>>>    CONFIG_ARM_APPENDED_DTB=y
>>>>>>>    CONFIG_ARM_ATAG_DTB_COMPAT=y
>>>>>>>    CONFIG_ARM_ATAG_DTB_COMPAT_CMDLINE_EXTEND=y
>>>>>>>
>>>>>>> 2. Build the zImage
>>>>>>>
>>>>>>>    $ ARCH=arm CROSS_COMPILE=... make zImage
>>>>>>>
>>>>>>> 3. Build the device tree blobs
>>>>>>>
>>>>>>>    $ ARCH=arm CROSS_COMPILE=... make dtbs
>>>>>>>
>>>>>>> 4. Append the correct panda dtb to zImage
>>>>>>>
>>>>>>>    Depending on your hardware it's omap4-panda.dtb, omap4-panda-a4.dtb
>>>>>>>    or omap4-panda-es.dtb.
>>>>>>>
>>>>>>>    $ cat arch/arm/boot/zImage arch/arm/boot/dts/omap4-panda-es.dtb > /tmp/appended
>>>>>>>
>>>>>>> 5. Use mkimage to produce the appended device tree uImage
>>>>>>>
>>>>>>>    $ mkimage -A arm -O linux -T kernel -C none -a 0x80008000 -e 0x80008000 \
>>>>>>>      -n "Linux" -d /tmp/appended /tmp/uImage
>>>>>> I followed the above steps and tried devicetree on Pandaboard against
>>>>>> 3.10.0-rc3-next-20130528, and the board will hang during boot, but works
>>>>>> well with legacy mode.
>>>>>>
>>>>>>          Hardware: Pandaboard A1
>>>>>>          dtb: omap4-panda.dtb
>>>>>>
>>>>>> See 'dmesg' on below link:
>>>>>>
>>>>>>          http://kernel.ubuntu.com/~ming/up/panda-dts.dmesg
>>>>>>
>>>>> Hmm looks like it boots to init. Maybe add initcall_debug to the cmdline in
>>>>> case there's some late_initcall that causes the issue. It's probably some
>>>>> trivial issue causing it.
>>>> Sricharan, maybe give this a quick try if you have the original pandaboard?
>>>> I only have pandaboard es.
>>>>
>>>> Regards,
>>>>
>>>> Tony
>>>
>>> I tried your cleanup branch omap-for-v3.11/cleanup on panda board and it booted
>>>  to prompt fine.
>>>             Hardware: Pandaboard A1   dtb: omap4-panda.dtb
>>>
>>>   git pull on linux-next branch was not working though.
>>>
>>     Ok, tested in linux-next as well and it booted fine with DTB.
>>      HW: OMAP4430ES2.1 PANDA A1 version DTB: OMAP4-PANDA.DTB
>>
>>     Booted with ramdisk and mmc FS
>>
>> commit c04efed734409f5a44715b54a6ca1b54b0ccf215
>> Author: Stephen Rothwell <sfr@canb.auug.org.au>
>> Date:   Fri Jun 7 16:40:02 2013 +1000
>>
>>     Add linux-next specific files for 20130607
>
> Looks linux-next-20130607 is broken, see below:
>
>   LD [M]  drivers/usb/gadget/g_ncm.o
> drivers/usb/musb/omap2430.c: In function 'omap2430_probe':
> drivers/usb/musb/omap2430.c:571:2: error: 'musb_resources' undeclared
> (first use in this function)
> drivers/usb/musb/omap2430.c:571:2: note: each undeclared identifier is
> reported only once for each function it appears in
> drivers/usb/musb/omap2430.c:571:2: error: bit-field '<anonymous>'
> width not an integer constant
> drivers/usb/musb/omap2430.c:585:4: error: bit-field '<anonymous>'
> width not an integer constant
> make[3]: *** [drivers/usb/musb/omap2430.o] Error 1
> make[3]: *** Waiting for unfinished jobs....
> make[2]: *** [drivers/usb/musb] Error 2
> make[2]: *** Waiting for unfinished jobs....
> make[1]: *** [drivers/usb] Error 2
> make: *** [drivers] Error 2
> install kernel and modules
>
> DEPMOD  3.10.0-rc4-next-20130607+

Even I disable musb so that kernel building is OK, but the kernel with dtb
still can't boot, see attachment 'dmesg' and config.


Thanks,
-- 
Ming Lei

[-- Attachment #2: pandaA1-20130607-2.txt --]
[-- Type: text/plain, Size: 16972 bytes --]


U-Boot SPL 2012.04 (Apr 24 2012 - 17:50:07)
OMAP4430 ES2.1
OMAP SD/MMC: 0
reading u-boot.img
reading u-boot.img


U-Boot 2012.04 (Apr 24 2012 - 17:50:07)

CPU  : OMAP4430 ES2.1
Board: OMAP4 Panda
I2C:   ready
DRAM:  1 GiB
MMC:   OMAP SD/MMC: 0
Using default environment

In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
Hit any key to stop autoboot:  3 \b\b\b 2 \b\b\b 1 \b\b\b 0 
SD/MMC found on device 0
reading uEnv.txt

619 bytes read
Loaded environment from uEnv.txt
Importing environment from mmc ...
reading uImage-omap

4239591 bytes read
reading uInitrd-omap

8464252 bytes read
Booting from mmc ...
## Booting kernel from Legacy Image at 80300000 ...
   Image Name:   omap4-panda-dtb-test
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4239527 Bytes = 4 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 81600000 ...
   Image Name:   initramfs
   Image Type:   ARM Linux RAMDisk Image (uncompressed)
   Data Size:    8464188 Bytes = 8.1 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.10.0-rc4-next-20130607+ (tom@tom-ThinkPad-T410) (gcc version 4.7.3 (Sourcery CodeBench Lite 2013.05-24) ) #2099 SMP PREEMPT Fri Jun 14 21:45:30 CST 2013
[    0.000000] CPU: ARMv7 Processor [411fc092] revision 2 (ARMv7), cr=10c53c7d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: Generic OMAP4 (Flattened Device Tree), model: TI OMAP4 PandaBoard
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] cma: CMA: reserved 16 MiB at ae800000
[    0.000000] Memory policy: ECC disabled, Data cache writealloc
[    0.000000] OMAP4430 ES2.1
[    0.000000] PERCPU: Embedded 9 pages/cpu @c14c5000 s12800 r8192 d15872 u36864
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260368
[    0.000000] Kernel command line:  console=ttyO2,115200n8 root=LABEL=rootfs ro init=/sbin/init rootwait rhgb earlyprintk no_console_suspend clocksource=gp_timer mac=3e:f3:49:e9:78:a0 initcall_debug
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] allocated 2097152 bytes of page_cgroup
[    0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[    0.000000] Memory: 951152K/1047552K available (5704K kernel code, 640K rwdata, 2032K rodata, 452K init, 2503K bss, 96400K reserved, 269312K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xf0000000 - 0xff000000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xef800000   ( 760 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc07962cc   (7737 kB)
[    0.000000]       .init : 0xc0797000 - 0xc0808200   ( 453 kB)
[    0.000000]       .data : 0xc080a000 - 0xc08aa228   ( 641 kB)
[    0.000000]        .bss : 0xc08aa228 - 0xc0b1c0d4   (2504 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] 	Dump stacks of tasks blocking RCU-preempt GP.
[    0.000000] 	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] OMAP clockevent source: timer1 at 32768 Hz
[    0.000000] sched_clock: 32 bits at 38MHz, resolution 26ns, wraps every 111848ms
[    0.000000] OMAP clocksource: timer2 at 38400000 Hz
[    0.000000] smp_twd: clock not found -2
[    0.000000] Console: colour dummy device 80x30
[    0.014448] Calibrating delay loop... 1587.60 BogoMIPS (lpj=7938048)
[    0.059388] pid_max: default: 32768 minimum: 301
[    0.064444] Security Framework initialized
[    0.068924] Mount-cache hash table entries: 512
[    0.078465] Initializing cgroup subsys debug
[    0.082959] Initializing cgroup subsys memory
[    0.087632] Initializing cgroup subsys devices
[    0.092292] Initializing cgroup subsys freezer
[    0.096995] Initializing cgroup subsys blkio
[    0.101476] Initializing cgroup subsys perf_event
[    0.106621] CPU: Testing write buffer coherency: ok
[    0.112247] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.118223] Calibrating local timer... 398.95MHz.
[    0.177735] Setting up static identity map for 0xc0563ee0 - 0xc0563f50
[    0.184721] L310 cache controller enabled
[    0.188997] l2x0: 16 ways, CACHE_ID 0x410000c4, AUX_CTRL 0x7e470000, Cache size: 1048576 B
[    0.258030] CPU1: Booted secondary processor
[    0.347134] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.347262] Brought up 2 CPUs
[    0.360766] SMP: Total of 2 processors activated (3181.77 BogoMIPS).
[    0.367386] CPU: All CPU(s) started in SVC mode.
[    0.372911] devtmpfs: initialized
[    0.442528] pinctrl core: initialized pinctrl subsystem
[    0.448494] regulator-dummy: no parameters
[    0.455072] NET: Registered protocol family 16
[    0.463699] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.490981] OMAP GPIO hardware version 0.1
[    0.500070] omap-gpmc 50000000.gpmc: error: clk_get
[    0.505180] omap-gpmc: probe of 50000000.gpmc failed with error -2
[    0.520409] No ATAGs?
[    0.523874] OMAP DMA hardware revision 0.0
[    0.529858] ARM PMU: not yet supported on OMAP4430 due to missing CTI driver
[    0.542281] bio: create slab <bio-0> at 0
[    0.561615] omap-dma-engine 4a056000.dma-controller: OMAP DMA engine driver
[    0.571202] SCSI subsystem initialized
[    0.575432] usbcore: registered new interface driver usbfs
[    0.581235] usbcore: registered new interface driver hub
[    0.586916] usbcore: registered new device driver usb
[    0.592950] omap_i2c 48070000.i2c: could not find pctldev for node /ocp/pinmux@4a100040/pinmux_i2c1_pins, deferring probe
[    0.604348] platform 48070000.i2c: Driver omap_i2c requests probe deferral
[    0.611552] omap_i2c 48072000.i2c: could not find pctldev for node /ocp/pinmux@4a100040/pinmux_i2c2_pins, deferring probe
[    0.622918] platform 48072000.i2c: Driver omap_i2c requests probe deferral
[    0.630123] omap_i2c 48060000.i2c: could not find pctldev for node /ocp/pinmux@4a100040/pinmux_i2c3_pins, deferring probe
[    0.641486] platform 48060000.i2c: Driver omap_i2c requests probe deferral
[    0.648696] omap_i2c 48350000.i2c: could not find pctldev for node /ocp/pinmux@4a100040/pinmux_i2c4_pins, deferring probe
[    0.660062] platform 48350000.i2c: Driver omap_i2c requests probe deferral
[    0.667865] omap-iommu omap-iommu.0: mmu_ipu registered
[    0.673409] omap-iommu omap-iommu.1: mmu_dsp registered
[    0.679851] cfg80211: Calling CRDA to update world regulatory domain
[    0.689210] DMA-API: preallocated 4096 debug entries
[    0.694394] DMA-API: debugging enabled by kernel config
[    0.700026] Switching to clocksource timer2
[    0.757712] NET: Registered protocol family 2
[    0.763015] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    0.770506] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.777362] TCP: Hash tables configured (established 8192 bind 8192)
[    0.784050] TCP: reno registered
[    0.787486] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.793722] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.800767] NET: Registered protocol family 1
[    0.805878] RPC: Registered named UNIX socket transport module.
[    0.812045] RPC: Registered udp transport module.
[    0.816992] RPC: Registered tcp transport module.
[    0.821906] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.830091] Trying to unpack rootfs image as initramfs...
[    1.579830] Freeing initrd memory: 8260K (c1601000 - c1e12000)
[    1.731516] bounce pool size: 64 pages
[    1.744155] VFS: Disk quotas dquot_6.5.2
[    1.748637] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.759998] NFS: Registering the id_resolver key type
[    1.765351] Key type id_resolver registered
[    1.769731] Key type id_legacy registered
[    1.773973] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.782030] fuse init (API version 7.22)
[    1.786957] msgmni has been set to 1379
[    1.794071] io scheduler noop registered
[    1.798241] io scheduler deadline registered
[    1.803112] io scheduler cfq registered (default)
[    1.879393] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    1.887509] omap_uart 4806a000.serial: did not get pins for uart0 error: -19
[    1.895100] 4806a000.serial: ttyO0 at MMIO 0x4806a000 (irq = 104) is a OMAP UART0
[    1.903284] omap_uart 4806c000.serial: did not get pins for uart1 error: -19
[    1.910782] 4806c000.serial: ttyO1 at MMIO 0x4806c000 (irq = 105) is a OMAP UART1
[    1.918961] omap_uart 48020000.serial: did not get pins for uart2 error: -19
[    1.926435] 48020000.serial: ttyO2 at MMIO 0x48020000 (irq = 106) is a OMAP UART2
[    1.934284] console [ttyO2] enabled, bootconsole disabled
[    1.934284] console [ttyO2] enabled, bootconsole disabled
[    1.945958] omap_uart 4806e000.serial: did not get pins for uart3 error: -19
[    1.953516] 4806e000.serial: ttyO3 at MMIO 0x4806e000 (irq = 102) is a OMAP UART3
[    1.969389] brd: module loaded
[    1.976430] loop: module loaded
[    1.982347] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.989304] ehci-omap: OMAP-EHCI Host Controller driver
[    1.995100] ehci-omap 4a064c00.ehci: EHCI Host Controller
[    2.000989] ehci-omap 4a064c00.ehci: new USB bus registered, assigned bus number 1
[    2.009683] ehci-omap 4a064c00.ehci: irq 109, io mem 0x4a064c00
[    2.034476] ehci-omap 4a064c00.ehci: USB 2.0 started, EHCI 1.00
[    2.040851] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    2.048021] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.055640] usb usb1: Product: EHCI Host Controller
[    2.060775] usb usb1: Manufacturer: Linux 3.10.0-rc4-next-20130607+ ehci_hcd
[    2.068191] usb usb1: SerialNumber: 4a064c00.ehci
[    2.073821] hub 1-0:1.0: USB hub found
[    2.077808] hub 1-0:1.0: 3 ports detected
[    2.082741] usbcore: registered new interface driver cdc_wdm
[    2.089837] mousedev: PS/2 mouse device common for all mice
[    2.096632] i2c /dev entries driver
[    2.100361] Driver for 1-wire Dallas network protocol.
[    2.106151] cpuidle: using governor ladder
[    2.110486] cpuidle: using governor menu
[    2.115266] omap-dma-engine 4a056000.dma-controller: allocating channel for 62
[    2.122885] omap-dma-engine 4a056000.dma-controller: allocating channel for 61
[    2.130544] omap_hsmmc 4809c000.mmc: vmmc regulator missing
[    2.136447] omap-dma-engine 4a056000.dma-controller: freeing channel for 61
[    2.143777] omap-dma-engine 4a056000.dma-controller: freeing channel for 62
[    2.151150] platform 4809c000.mmc: Driver omap_hsmmc requests probe deferral
[    2.158800] omap-dma-engine 4a056000.dma-controller: allocating channel for 60
[    2.166455] omap-dma-engine 4a056000.dma-controller: allocating channel for 59
[    2.174086] omap_hsmmc 480d5000.mmc: vmmc regulator missing
[    2.180043] omap-dma-engine 4a056000.dma-controller: freeing channel for 59
[    2.180053] omap-dma-engine 4a056000.dma-controller: freeing channel for 60
[    2.180885] usbcore: registered new interface driver usbhid
[    2.180888] usbhid: USB HID core driver
[    2.181585] TCP: cubic registered
[    2.181602] Initializing XFRM netlink socket
[    2.182437] NET: Registered protocol family 10
[    2.183182] sit: IPv6 over IPv4 tunneling driver
[    2.183763] NET: Registered protocol family 17
[    2.183808] NET: Registered protocol family 15
[    2.184042] NET: Registered protocol family 33
[    2.184050] Key type rxrpc registered
[    2.184054] Key type rxrpc_s registered
[    2.193625] RxRPC: Registered security type 2 'rxkad'
[    2.193710] Key type dns_resolver registered
[    2.254117] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 1
[    2.262559] Power Management for TI OMAP4.
[    2.266909] OMAP4 PM: u-boot >= v2012.07 is required for full PM support
[    2.274374] ThumbEE CPU extension supported.
[    2.279742] registered taskstats version 1
[    2.285015] omap_i2c 48070000.i2c: could not find pctldev for node /ocp/pinmux@4a100040/pinmux_i2c1_pins, deferring probe
[    2.296681] platform 48070000.i2c: Driver omap_i2c requests probe deferral
[    2.304139] omap_i2c 48072000.i2c: could not find pctldev for node /ocp/pinmux@4a100040/pinmux_i2c2_pins, deferring probe
[    2.315784] platform 48072000.i2c: Driver omap_i2c requests probe deferral
[    2.323203] omap_i2c 48060000.i2c: could not find pctldev for node /ocp/pinmux@4a100040/pinmux_i2c3_pins, deferring probe
[    2.334844] platform 48060000.i2c: Driver omap_i2c requests probe deferral
[    2.342264] omap_i2c 48350000.i2c: could not find pctldev for node /ocp/pinmux@4a100040/pinmux_i2c4_pins, deferring probe
[    2.353900] platform 48350000.i2c: Driver omap_i2c requests probe deferral
[    2.361669] omap-dma-engine 4a056000.dma-controller: allocating channel for 62
[    2.369357] omap-dma-engine 4a056000.dma-controller: allocating channel for 61
[    2.377052] omap_hsmmc 4809c000.mmc: vmmc regulator missing
[    2.382968] omap-dma-engine 4a056000.dma-controller: freeing channel for 61
[    2.390372] omap-dma-engine 4a056000.dma-controller: freeing channel for 62
[    2.397789] platform 4809c000.mmc: Driver omap_hsmmc requests probe deferral
[    2.405615] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    2.412309] ### dt-test ### No testcase data in device tree; not running tests
[    2.421435] Freeing unused kernel memory: 452K (c0797000 - c0808000)
[    2.861204] udevd[119]: starting version 182
[  101.284444] INFO: rcu_preempt self-detected stall on CPU { 0}  (t=9645 jiffies g=4294967109 c=4294967108 q=1)
[  101.294983] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.10.0-rc4-next-20130607+ #2099
[  101.303326] [<c0015138>] (unwind_backtrace+0x0/0xe0) from [<c00113c0>] (show_stack+0x10/0x14)
[  101.312371] [<c00113c0>] (show_stack+0x10/0x14) from [<c0559ff8>] (dump_stack+0x88/0xcc)
[  101.320964] [<c0559ff8>] (dump_stack+0x88/0xcc) from [<c009fe14>] (rcu_check_callbacks+0x238/0x74c)
[  101.330546] [<c009fe14>] (rcu_check_callbacks+0x238/0x74c) from [<c004963c>] (update_process_times+0x38/0x64)
[  101.341062] [<c004963c>] (update_process_times+0x38/0x64) from [<c007e8d0>] (tick_sched_handle+0x54/0x60)
[  101.351204] [<c007e8d0>] (tick_sched_handle+0x54/0x60) from [<c007eb64>] (tick_sched_timer+0x58/0x8c)
[  101.360982] [<c007eb64>] (tick_sched_timer+0x58/0x8c) from [<c005d2e4>] (__run_hrtimer+0x124/0x290)
[  101.370564] [<c005d2e4>] (__run_hrtimer+0x124/0x290) from [<c005dfa8>] (hrtimer_interrupt+0x134/0x29c)
[  101.380424] [<c005dfa8>] (hrtimer_interrupt+0x134/0x29c) from [<c0013a3c>] (twd_handler+0x2c/0x38)
[  101.389916] [<c0013a3c>] (twd_handler+0x2c/0x38) from [<c009a6d4>] (handle_percpu_devid_irq+0xd0/0x1a4)
[  101.399884] [<c009a6d4>] (handle_percpu_devid_irq+0xd0/0x1a4) from [<c009716c>] (generic_handle_irq+0x20/0x30)
[  101.410489] [<c009716c>] (generic_handle_irq+0x20/0x30) from [<c000e990>] (handle_IRQ+0x78/0xb8)
[  101.419792] [<c000e990>] (handle_IRQ+0x78/0xb8) from [<c000867c>] (gic_handle_irq+0x3c/0x60)
[  101.428742] [<c000867c>] (gic_handle_irq+0x3c/0x60) from [<c055f164>] (__irq_svc+0x44/0x7c)
[  101.437580] Exception stack(0xc080bf00 to 0xc080bf48)
[  101.442935] bf00: c080bf48 00000065 c080bf48 00000065 94b726fc 00000017 c14c6fa0 00000000
[  101.451592] bf20: 94c22348 00000017 c081a1f4 00000000 00000005 c080bf48 c03ac748 c03ac74c
[  101.460249] bf40: 60000153 ffffffff
[  101.463966] [<c055f164>] (__irq_svc+0x44/0x7c) from [<c03ac74c>] (cpuidle_enter_state+0x54/0xf8)
[  101.473278] [<c03ac74c>] (cpuidle_enter_state+0x54/0xf8) from [<c03ae87c>] (cpuidle_enter_state_coupled+0xd4/0x260)
[  101.484334] [<c03ae87c>] (cpuidle_enter_state_coupled+0xd4/0x260) from [<c03ac944>] (cpuidle_idle_call+0x154/0x288)
[  101.495388] [<c03ac944>] (cpuidle_idle_call+0x154/0x288) from [<c000eca0>] (arch_cpu_idle+0x8/0x48)
[  101.504987] [<c000eca0>] (arch_cpu_idle+0x8/0x48) from [<c00760f0>] (cpu_startup_entry+0x164/0x228)
[  101.514592] [<c00760f0>] (cpu_startup_entry+0x164/0x228) from [<c07977fc>] (start_kernel+0x2ec/0x34c)

[-- Attachment #3: config.tar.gz --]
[-- Type: application/x-gzip, Size: 19691 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: tom.leiming@gmail.com (Ming Lei)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/6] ARM: OMAP2+: Remove board-omap4panda.c
Date: Fri, 14 Jun 2013 21:58:24 +0800	[thread overview]
Message-ID: <CACVXFVNzAMrkhrAMAmQ7ZdJdby2O4VdoD8BVHRF-O=rPKQMqbw@mail.gmail.com> (raw)
In-Reply-To: <CACVXFVN3=hzWJEwHN5TXRoJ4mvVRVR+3=Tasw+gvLH3vsNHwUg@mail.gmail.com>

On Fri, Jun 14, 2013 at 9:31 PM, Ming Lei <tom.leiming@gmail.com> wrote:
> On Thu, Jun 13, 2013 at 6:12 PM, Sricharan R <r.sricharan@ti.com> wrote:
>> On Thursday 13 June 2013 02:51 PM, Sricharan R wrote:
>>> Hi Tony,
>>> On Wednesday 12 June 2013 10:44 PM, Tony Lindgren wrote:
>>>> * Tony Lindgren <tony@atomide.com> [130612 09:37]:
>>>>> * Ming Lei <tom.leiming@gmail.com> [130603 08:34]:
>>>>>> Hi,
>>>>>>
>>>>>> On Sat, May 18, 2013 at 3:17 AM, Tony Lindgren <tony@atomide.com> wrote:
>>>>>>> We can now boot with device tree. If you don't want to update u-boot,
>>>>>>> you can boot with appended DTB with the following instructions:
>>>>>>>
>>>>>>> 1. Make sure you have the appended DTB support in .config
>>>>>>>
>>>>>>>    CONFIG_ARM_APPENDED_DTB=y
>>>>>>>    CONFIG_ARM_ATAG_DTB_COMPAT=y
>>>>>>>    CONFIG_ARM_ATAG_DTB_COMPAT_CMDLINE_EXTEND=y
>>>>>>>
>>>>>>> 2. Build the zImage
>>>>>>>
>>>>>>>    $ ARCH=arm CROSS_COMPILE=... make zImage
>>>>>>>
>>>>>>> 3. Build the device tree blobs
>>>>>>>
>>>>>>>    $ ARCH=arm CROSS_COMPILE=... make dtbs
>>>>>>>
>>>>>>> 4. Append the correct panda dtb to zImage
>>>>>>>
>>>>>>>    Depending on your hardware it's omap4-panda.dtb, omap4-panda-a4.dtb
>>>>>>>    or omap4-panda-es.dtb.
>>>>>>>
>>>>>>>    $ cat arch/arm/boot/zImage arch/arm/boot/dts/omap4-panda-es.dtb > /tmp/appended
>>>>>>>
>>>>>>> 5. Use mkimage to produce the appended device tree uImage
>>>>>>>
>>>>>>>    $ mkimage -A arm -O linux -T kernel -C none -a 0x80008000 -e 0x80008000 \
>>>>>>>      -n "Linux" -d /tmp/appended /tmp/uImage
>>>>>> I followed the above steps and tried devicetree on Pandaboard against
>>>>>> 3.10.0-rc3-next-20130528, and the board will hang during boot, but works
>>>>>> well with legacy mode.
>>>>>>
>>>>>>          Hardware: Pandaboard A1
>>>>>>          dtb: omap4-panda.dtb
>>>>>>
>>>>>> See 'dmesg' on below link:
>>>>>>
>>>>>>          http://kernel.ubuntu.com/~ming/up/panda-dts.dmesg
>>>>>>
>>>>> Hmm looks like it boots to init. Maybe add initcall_debug to the cmdline in
>>>>> case there's some late_initcall that causes the issue. It's probably some
>>>>> trivial issue causing it.
>>>> Sricharan, maybe give this a quick try if you have the original pandaboard?
>>>> I only have pandaboard es.
>>>>
>>>> Regards,
>>>>
>>>> Tony
>>>
>>> I tried your cleanup branch omap-for-v3.11/cleanup on panda board and it booted
>>>  to prompt fine.
>>>             Hardware: Pandaboard A1   dtb: omap4-panda.dtb
>>>
>>>   git pull on linux-next branch was not working though.
>>>
>>     Ok, tested in linux-next as well and it booted fine with DTB.
>>      HW: OMAP4430ES2.1 PANDA A1 version DTB: OMAP4-PANDA.DTB
>>
>>     Booted with ramdisk and mmc FS
>>
>> commit c04efed734409f5a44715b54a6ca1b54b0ccf215
>> Author: Stephen Rothwell <sfr@canb.auug.org.au>
>> Date:   Fri Jun 7 16:40:02 2013 +1000
>>
>>     Add linux-next specific files for 20130607
>
> Looks linux-next-20130607 is broken, see below:
>
>   LD [M]  drivers/usb/gadget/g_ncm.o
> drivers/usb/musb/omap2430.c: In function 'omap2430_probe':
> drivers/usb/musb/omap2430.c:571:2: error: 'musb_resources' undeclared
> (first use in this function)
> drivers/usb/musb/omap2430.c:571:2: note: each undeclared identifier is
> reported only once for each function it appears in
> drivers/usb/musb/omap2430.c:571:2: error: bit-field '<anonymous>'
> width not an integer constant
> drivers/usb/musb/omap2430.c:585:4: error: bit-field '<anonymous>'
> width not an integer constant
> make[3]: *** [drivers/usb/musb/omap2430.o] Error 1
> make[3]: *** Waiting for unfinished jobs....
> make[2]: *** [drivers/usb/musb] Error 2
> make[2]: *** Waiting for unfinished jobs....
> make[1]: *** [drivers/usb] Error 2
> make: *** [drivers] Error 2
> install kernel and modules
>
> DEPMOD  3.10.0-rc4-next-20130607+

Even I disable musb so that kernel building is OK, but the kernel with dtb
still can't boot, see attachment 'dmesg' and config.


Thanks,
-- 
Ming Lei
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pandaA1-20130607-2.txt
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20130614/92e61811/attachment-0001.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.tar.gz
Type: application/x-gzip
Size: 19691 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20130614/92e61811/attachment-0001.bin>

  reply	other threads:[~2013-06-14 13:58 UTC|newest]

Thread overview: 100+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-17 19:17 [PATCH 0/6] Drop legacy booting for omap4 for v3.11, boot with device tree only Tony Lindgren
2013-05-17 19:17 ` Tony Lindgren
2013-05-17 19:17 ` [PATCH 1/6] ARM: OMAP2+: Remove board-4430sdp.c Tony Lindgren
2013-05-17 19:17   ` Tony Lindgren
2013-05-20  9:54   ` Russell King - ARM Linux
2013-05-20  9:54     ` Russell King - ARM Linux
2013-05-20 17:10     ` Tony Lindgren
2013-05-20 17:10       ` Tony Lindgren
2013-07-06 13:10     ` Russell King - ARM Linux
2013-07-06 13:10       ` Russell King - ARM Linux
2013-07-06 13:36       ` Russell King - ARM Linux
2013-07-06 13:36         ` Russell King - ARM Linux
2013-07-08  9:34         ` Tony Lindgren
2013-07-08  9:34           ` Tony Lindgren
2013-07-08 14:21           ` Russell King - ARM Linux
2013-07-08 14:21             ` Russell King - ARM Linux
2013-07-09  8:23             ` Tony Lindgren
2013-07-09  8:23               ` Tony Lindgren
2013-07-12  9:09               ` Peter Ujfalusi
2013-07-12  9:09                 ` Peter Ujfalusi
2013-07-22  9:40             ` Tomi Valkeinen
2013-07-22  9:40               ` Tomi Valkeinen
2013-10-27 13:26               ` Javier Martinez Canillas
2013-10-27 13:26                 ` Javier Martinez Canillas
2013-10-28 13:32                 ` Tomi Valkeinen
2013-10-28 13:32                   ` Tomi Valkeinen
2013-10-28 14:25                   ` Javier Martinez Canillas
2013-10-28 14:25                     ` Javier Martinez Canillas
2013-07-13  2:31         ` Olof Johansson
2013-07-13  2:31           ` Olof Johansson
2013-07-13  3:10           ` Olof Johansson
2013-07-13  3:10             ` Olof Johansson
2013-07-15  6:55             ` Tony Lindgren
2013-07-15  6:55               ` Tony Lindgren
2013-07-06 21:36       ` Arnd Bergmann
2013-07-06 21:36         ` Arnd Bergmann
2013-07-06 23:37         ` debugging options (was: Re: [PATCH 1/6] ARM: OMAP2+: Remove board-4430sdp.c) Russell King - ARM Linux
2013-07-06 23:37           ` Russell King - ARM Linux
2013-05-17 19:17 ` [PATCH 2/6] ARM: OMAP2+: Remove board-omap4panda.c Tony Lindgren
2013-05-17 19:17   ` Tony Lindgren
2013-06-03 15:28   ` Ming Lei
2013-06-03 15:28     ` Ming Lei
2013-06-12 16:31     ` Tony Lindgren
2013-06-12 16:31       ` Tony Lindgren
2013-06-12 17:14       ` Tony Lindgren
2013-06-12 17:14         ` Tony Lindgren
2013-06-13  9:21         ` Sricharan R
2013-06-13  9:21           ` Sricharan R
2013-06-13 10:12           ` Sricharan R
2013-06-13 10:12             ` Sricharan R
2013-06-13 11:05             ` Tony Lindgren
2013-06-13 11:05               ` Tony Lindgren
2013-06-13 13:36               ` Ming Lei
2013-06-13 13:36                 ` Ming Lei
2013-06-14 13:31             ` Ming Lei
2013-06-14 13:31               ` Ming Lei
2013-06-14 13:58               ` Ming Lei [this message]
2013-06-14 13:58                 ` Ming Lei
2013-06-17  7:42                 ` Sricharan R
2013-06-17  7:42                   ` Sricharan R
2013-06-17  8:06                   ` Arnaud Patard
2013-06-17  8:06                     ` Arnaud Patard (Rtp)
2013-06-17  8:16                     ` Ming Lei
2013-06-17  8:16                       ` Ming Lei
2013-06-17  8:27                       ` Tony Lindgren
2013-06-17  8:27                         ` Tony Lindgren
2013-06-17  8:41                         ` Ming Lei
2013-06-17  8:41                           ` Ming Lei
2013-06-17  8:49                           ` Tony Lindgren
2013-06-17  8:49                             ` Tony Lindgren
2013-06-17  8:24                     ` Tony Lindgren
2013-06-17  8:24                       ` Tony Lindgren
2013-06-17  9:46                       ` Arnaud Patard
2013-06-17  9:46                         ` Arnaud Patard (Rtp)
2013-06-17 10:26                         ` Tony Lindgren
2013-06-17 10:26                           ` Tony Lindgren
2013-06-18 11:27                           ` Tony Lindgren
2013-06-18 11:27                             ` Tony Lindgren
2013-06-19  9:45                             ` Arnaud Patard
2013-06-19  9:45                               ` Arnaud Patard (Rtp)
2013-06-19  9:58                               ` Tony Lindgren
2013-06-19  9:58                                 ` Tony Lindgren
2013-06-20  7:29                                 ` Arnaud Patard
2013-06-20  7:29                                   ` Arnaud Patard (Rtp)
2013-06-21  6:01                                   ` Tony Lindgren
2013-06-21  6:01                                     ` Tony Lindgren
2013-05-17 19:17 ` [PATCH 3/6] ARM: OMAP2+: Remove legacy mux data for omap4 Tony Lindgren
2013-05-17 19:17   ` Tony Lindgren
2013-05-17 19:17 ` [PATCH 4/6] ARM: OMAP2+: Remove omap4 pdata from hsmmc.c Tony Lindgren
2013-05-17 19:17   ` Tony Lindgren
2013-05-17 19:18 ` [PATCH 5/6] ARM: OMAP2+: Remove omap4 pdata for USB Tony Lindgren
2013-05-17 19:18   ` Tony Lindgren
2013-05-17 19:18 ` [PATCH 6/6] ARM: OMAP2+: Remove omap4 ocp2scp pdata Tony Lindgren
2013-05-17 19:18   ` Tony Lindgren
2013-05-17 20:05   ` Felipe Balbi
2013-05-17 20:05     ` Felipe Balbi
2013-05-21 11:53   ` Kishon Vijay Abraham I
2013-05-21 11:53     ` Kishon Vijay Abraham I
2013-06-07 10:05 ` [PATCH 0/6] Drop legacy booting for omap4 for v3.11, boot with device tree only Tomi Valkeinen
2013-06-07 10:05   ` Tomi Valkeinen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CACVXFVNzAMrkhrAMAmQ7ZdJdby2O4VdoD8BVHRF-O=rPKQMqbw@mail.gmail.com' \
    --to=tom.leiming@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=r.sricharan@ti.com \
    --cc=tony@atomide.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.