Re: [PATCH 2/6] ARM: OMAP2+: Remove board-omap4panda.c

2013-06-21 Thread Tony Lindgren
* Arnaud Patard arnaud.pat...@rtp-net.org [130620 00:36]:
 Tony Lindgren t...@atomide.com writes:
 
 Hi,
 
  * Arnaud Patard arnaud.pat...@rtp-net.org [130619 02:52]:
  Tony Lindgren t...@atomide.com writes:
  
  Hi,
  
   * Tony Lindgren t...@atomide.com [130617 03:32]:
   * Arnaud Patard arnaud.pat...@rtp-net.org [130617 02:52]:
Tony Lindgren t...@atomide.com writes:

I understand your concerns but, please, cope with reality: the clock
work is not in -next so this tends to make me think it won't reach
3.11. We're at -rc6 after all. Telling users that their system doesn't
have any network because it was easier to maintain, is not something
they will understand imho.
   
   Right, like I said: the idea is to have it usable with DT. And USB and
   Ethernet certainly are part of what I call usable. So is MMC, WLAN and
   DSS. I've certainly spent quite a bit of time on making sure panda works
   with DT, and I can assure you that fixing the USB extclock is easier 
   than
   supporting the legacy boot with DT :)
   
   This issue can also be fixed with a clock alias if we don't have DT
   defined clocks ready for v3.11. It may take a few days for us to have
   the solution. But get getting a clock to a driver certainly is not a
   showstopper here. After all, that's what all drivers already do.
  
   Care to test the last patch just posted by Roger in thread
[PATCH 0/4] ARM: OMAP4: Panda USB Host support and DVI EDID fix?
  
  I tried to test them but they don't apply on linux-next due to some
  pinctrl changes probably missing:
  Error: arch/arm/boot/dts/omap4-panda-common.dtsi:177.14-15 syntax error
  
  which corresponds to :
  0x82 (PIN_INPUT_PULLDOWN | MUX_MODE4)
 
  Oops, right, that's in Benoit's branch too for the .dts preprocessing.
  Until it is merged, maybe try with Roger's earlier version of that patch
  that did not yet use the macros?
   
 
 Right. I've changed the missing macros with their values and now, it
 compiles and I can even ping the board, so works for me.

Good to hear thanks. Sounds like we should have things mostly working
with DT in mainline kernel by v3.11-rc1. I'm sure some minor fixes
will be needed as more people start using it, but they should be
all fixable either by binding changes, or by initializing missing things
using platform data.

Regards,

Tony
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 2/6] ARM: OMAP2+: Remove board-omap4panda.c

2013-06-20 Thread Rtp
Tony Lindgren t...@atomide.com writes:

Hi,

 * Arnaud Patard arnaud.pat...@rtp-net.org [130619 02:52]:
 Tony Lindgren t...@atomide.com writes:
 
 Hi,
 
  * Tony Lindgren t...@atomide.com [130617 03:32]:
  * Arnaud Patard arnaud.pat...@rtp-net.org [130617 02:52]:
   Tony Lindgren t...@atomide.com writes:
   
   I understand your concerns but, please, cope with reality: the clock
   work is not in -next so this tends to make me think it won't reach
   3.11. We're at -rc6 after all. Telling users that their system doesn't
   have any network because it was easier to maintain, is not something
   they will understand imho.
  
  Right, like I said: the idea is to have it usable with DT. And USB and
  Ethernet certainly are part of what I call usable. So is MMC, WLAN and
  DSS. I've certainly spent quite a bit of time on making sure panda works
  with DT, and I can assure you that fixing the USB extclock is easier than
  supporting the legacy boot with DT :)
  
  This issue can also be fixed with a clock alias if we don't have DT
  defined clocks ready for v3.11. It may take a few days for us to have
  the solution. But get getting a clock to a driver certainly is not a
  showstopper here. After all, that's what all drivers already do.
 
  Care to test the last patch just posted by Roger in thread
   [PATCH 0/4] ARM: OMAP4: Panda USB Host support and DVI EDID fix?
 
 I tried to test them but they don't apply on linux-next due to some
 pinctrl changes probably missing:
 Error: arch/arm/boot/dts/omap4-panda-common.dtsi:177.14-15 syntax error
 
 which corresponds to :
 0x82 (PIN_INPUT_PULLDOWN | MUX_MODE4)

 Oops, right, that's in Benoit's branch too for the .dts preprocessing.
 Until it is merged, maybe try with Roger's earlier version of that patch
 that did not yet use the macros?
  

Right. I've changed the missing macros with their values and now, it
compiles and I can even ping the board, so works for me.

Thanks,
Arnaud
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 2/6] ARM: OMAP2+: Remove board-omap4panda.c

2013-06-19 Thread Rtp
Tony Lindgren t...@atomide.com writes:

Hi,

 * Tony Lindgren t...@atomide.com [130617 03:32]:
 * Arnaud Patard arnaud.pat...@rtp-net.org [130617 02:52]:
  Tony Lindgren t...@atomide.com writes:
  
  I understand your concerns but, please, cope with reality: the clock
  work is not in -next so this tends to make me think it won't reach
  3.11. We're at -rc6 after all. Telling users that their system doesn't
  have any network because it was easier to maintain, is not something
  they will understand imho.
 
 Right, like I said: the idea is to have it usable with DT. And USB and
 Ethernet certainly are part of what I call usable. So is MMC, WLAN and
 DSS. I've certainly spent quite a bit of time on making sure panda works
 with DT, and I can assure you that fixing the USB extclock is easier than
 supporting the legacy boot with DT :)
 
 This issue can also be fixed with a clock alias if we don't have DT
 defined clocks ready for v3.11. It may take a few days for us to have
 the solution. But get getting a clock to a driver certainly is not a
 showstopper here. After all, that's what all drivers already do.

 Care to test the last patch just posted by Roger in thread
  [PATCH 0/4] ARM: OMAP4: Panda USB Host support and DVI EDID fix?

I tried to test them but they don't apply on linux-next due to some
pinctrl changes probably missing:
Error: arch/arm/boot/dts/omap4-panda-common.dtsi:177.14-15 syntax error

which corresponds to :
0x82 (PIN_INPUT_PULLDOWN | MUX_MODE4)

Also, the patch 3 (ARM: dts: omap5-uevm: Provide USB Host PHY clock)
doesn't apply as the omap5-uevm.dts doesn't exist.

Which tree should I use to test the patches if it's not linux-next ?

Also, you might want to know that drivers/usb/musb/omap2430.c doesn't
build due to some typos (musb_resources vs musb_resouces).

Arnaud

--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 2/6] ARM: OMAP2+: Remove board-omap4panda.c

2013-06-19 Thread Tony Lindgren
* Arnaud Patard arnaud.pat...@rtp-net.org [130619 02:52]:
 Tony Lindgren t...@atomide.com writes:
 
 Hi,
 
  * Tony Lindgren t...@atomide.com [130617 03:32]:
  * Arnaud Patard arnaud.pat...@rtp-net.org [130617 02:52]:
   Tony Lindgren t...@atomide.com writes:
   
   I understand your concerns but, please, cope with reality: the clock
   work is not in -next so this tends to make me think it won't reach
   3.11. We're at -rc6 after all. Telling users that their system doesn't
   have any network because it was easier to maintain, is not something
   they will understand imho.
  
  Right, like I said: the idea is to have it usable with DT. And USB and
  Ethernet certainly are part of what I call usable. So is MMC, WLAN and
  DSS. I've certainly spent quite a bit of time on making sure panda works
  with DT, and I can assure you that fixing the USB extclock is easier than
  supporting the legacy boot with DT :)
  
  This issue can also be fixed with a clock alias if we don't have DT
  defined clocks ready for v3.11. It may take a few days for us to have
  the solution. But get getting a clock to a driver certainly is not a
  showstopper here. After all, that's what all drivers already do.
 
  Care to test the last patch just posted by Roger in thread
   [PATCH 0/4] ARM: OMAP4: Panda USB Host support and DVI EDID fix?
 
 I tried to test them but they don't apply on linux-next due to some
 pinctrl changes probably missing:
 Error: arch/arm/boot/dts/omap4-panda-common.dtsi:177.14-15 syntax error
 
 which corresponds to :
 0x82 (PIN_INPUT_PULLDOWN | MUX_MODE4)

Oops, right, that's in Benoit's branch too for the .dts preprocessing.
Until it is merged, maybe try with Roger's earlier version of that patch
that did not yet use the macros?
 
 Also, the patch 3 (ARM: dts: omap5-uevm: Provide USB Host PHY clock)
 doesn't apply as the omap5-uevm.dts doesn't exist.

OK that's in Benoit's branch. But you won't need that one.
 
 Which tree should I use to test the patches if it's not linux-next ?
 
 Also, you might want to know that drivers/usb/musb/omap2430.c doesn't
 build due to some typos (musb_resources vs musb_resouces).

Thanks, I think Felipe is already aware of that. 

Regards,

Tony
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 2/6] ARM: OMAP2+: Remove board-omap4panda.c

2013-06-18 Thread Tony Lindgren
* Tony Lindgren t...@atomide.com [130617 03:32]:
 * Arnaud Patard arnaud.pat...@rtp-net.org [130617 02:52]:
  Tony Lindgren t...@atomide.com writes:
  
  I understand your concerns but, please, cope with reality: the clock
  work is not in -next so this tends to make me think it won't reach
  3.11. We're at -rc6 after all. Telling users that their system doesn't
  have any network because it was easier to maintain, is not something
  they will understand imho.
 
 Right, like I said: the idea is to have it usable with DT. And USB and
 Ethernet certainly are part of what I call usable. So is MMC, WLAN and
 DSS. I've certainly spent quite a bit of time on making sure panda works
 with DT, and I can assure you that fixing the USB extclock is easier than
 supporting the legacy boot with DT :)
 
 This issue can also be fixed with a clock alias if we don't have DT
 defined clocks ready for v3.11. It may take a few days for us to have
 the solution. But get getting a clock to a driver certainly is not a
 showstopper here. After all, that's what all drivers already do.

Care to test the last patch just posted by Roger in thread
 [PATCH 0/4] ARM: OMAP4: Panda USB Host support and DVI EDID fix?

That adds a clock alias for the EHCI auxclk so it should continue
working until we have the DT clock patches available.

Regards,

Tony
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 2/6] ARM: OMAP2+: Remove board-omap4panda.c

2013-06-17 Thread Sricharan R
On Friday 14 June 2013 07:28 PM, Ming Lei wrote:
 On Fri, Jun 14, 2013 at 9:31 PM, Ming Lei tom.leim...@gmail.com wrote:
 On Thu, Jun 13, 2013 at 6:12 PM, Sricharan R r.sricha...@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 t...@atomide.com [130612 09:37]:
 * Ming Lei tom.leim...@gmail.com [130603 08:34]:
 Hi,

 On Sat, May 18, 2013 at 3:17 AM, Tony Lindgren t...@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 s...@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,
I am not sure how both of us are different. I was testing 20130607 with
 an omap2plusdefconfig. Also i was using a minimal busy box file system..

Is there anything specific FS that you want me to try ?
I am using the latest u-boot version.


U-Boot SPL 2013.07-rc1-00010-gdfdb3d3 (Jun 17 2013 - 13:09:51)
OMAP4430 ES2.1
OMAP SD/MMC: 0
reading u-boot.img
reading u-boot.img


U-Boot 2013.07-rc1-00010-gdfdb3d3 (Jun 17 2013 - 13:09:51)

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:  0
Panda #
Panda # setenv bootargs root=/dev/ram0 rw console=ttyO2,115200n8 
initrd=0x8160,20M ramdisk_size=20480 earlyprintk
Panda # mmc dev 0
mmc0 is current device
Panda # fatload mmc 0 0x8030 uImage
reading uImage
4394007 bytes read in 300 ms (14 MiB/s)
Panda # fatload mmc 0 0x8160 bb.raw
reading bb.raw
1024 bytes read in 722 ms (13.5 MiB/s)
Panda # bootm 0x8030
## Booting kernel from Legacy Image at 8030 ...
   Image Name:   Linux
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:4393943 Bytes = 4.2 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

[0.00] Booting Linux on physical CPU 0x0
[0.00] 

Re: [PATCH 2/6] ARM: OMAP2+: Remove board-omap4panda.c

2013-06-17 Thread Rtp
Sricharan R r.sricha...@ti.com writes:

Hi,

[...]

 Starting kernel ...

 [0.00] Booting Linux on physical CPU 0x0
 [0.00] Linux version 3.10.0-rc4-next-20130607 (a0393807@uda0393807) 
 (gcc version 4.6.3 (Sourcery CodeBench Lite 2012.03-57) ) #18 SMP Mon Jun 17 
 12:55:05 IST 2013
 [0.00] CPU: ARMv7 Processor [411fc092] revision 2 (ARMv7), cr=10c53c7d
 [0.00] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing 
 instruction cache
 [0.00] Machine: OMAP4 Panda board
 [0.00] cma: CMA: reserved 16 MiB at ae80
 [0.00] Memory policy: ECC disabled, Data cache writealloc
 [0.00] OMAP4430 ES2.1
 [0.00] PERCPU: Embedded 9 pages/cpu @c15d5000 s13440 r8192 d15232 
 u36864
 [0.00] Built 1 zonelists in Zone order, mobility grouping on.  Total 
 pages: 260368
 [0.00] Kernel command line: root=/dev/ram0 rw console=ttyO2,115200n8 
 initrd=0x8160,20M ramdisk_size=20480 earlyprintk
 [0.00] PID hash table entries: 4096 (order: 2, 16384 bytes)
 [0.00] Dentry cache hash table entries: 131072 (order: 7, 524288 
 bytes)
 [0.00] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
 [0.00] Memory: 987436K/1047552K available (5619K kernel code, 603K 
 rwdata, 1908K rodata, 393K init, 5521K bss, 60116K reserved, 269312K highmem)
 [0.00] Virtual kernel memory layout:
 [0.00] vector  : 0x - 0x1000   (   4 kB)
 [0.00] fixmap  : 0xfff0 - 0xfffe   ( 896 kB)
 [0.00] vmalloc : 0xf000 - 0xff00   ( 240 MB)
 [0.00] lowmem  : 0xc000 - 0xef80   ( 760 MB)
 [0.00] pkmap   : 0xbfe0 - 0xc000   (   2 MB)
 [0.00] modules : 0xbf00 - 0xbfe0   (  14 MB)
 [0.00]   .text : 0xc0008000 - 0xc07620e8   (7529 kB)
 [0.00]   .init : 0xc0763000 - 0xc07c5480   ( 394 kB)
 [0.00]   .data : 0xc07c6000 - 0xc085ccc8   ( 604 kB)
 [0.00].bss : 0xc085ccc8 - 0xc0dc10f0   (5522 kB)
 [0.00] Hierarchical RCU implementation.
 [0.00] NR_IRQS:16 nr_irqs:16 16
 [0.00] OMAP clockevent source: timer1 at 32768 Hz
 [0.00] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 
 131071999ms
 [0.00] OMAP clocksource: 32k_counter at 32768 Hz
 [0.00] Console: colour dummy device 80x30
 [0.00] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., 
 Ingo Molnar
 [0.00] ... MAX_LOCKDEP_SUBCLASSES:  8
 [0.00] ... MAX_LOCK_DEPTH:  48
 [0.00] ... MAX_LOCKDEP_KEYS:8191
 [0.00] ... CLASSHASH_SIZE:  4096
 [0.00] ... MAX_LOCKDEP_ENTRIES: 16384
 [0.00] ... MAX_LOCKDEP_CHAINS:  32768
 [0.00] ... CHAINHASH_SIZE:  16384
 [0.00]  memory used by lock dependency info: 3695 kB
 [0.00]  per task-struct memory footprint: 1152 bytes
 [0.001403] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
 [0.079742] pid_max: default: 32768 minimum: 301
 [0.080535] Security Framework initialized
 [0.080780] Mount-cache hash table entries: 512
 [0.085571] CPU: Testing write buffer coherency: ok
 [0.087493] CPU0: thread -1, cpu 0, socket 0, mpidr 8000
 [0.087829] Setting up static identity map for 0xc0556058 - 0xc05560c8
 [0.087890] L310 cache controller enabled
 [0.087921] l2x0: 16 ways, CACHE_ID 0x41c4, AUX_CTRL 0x7e47, Cache 
 size: 1048576 B
 [0.093048] CPU1: Booted secondary processor
 [0.177764] CPU1: thread -1, cpu 1, socket 0, mpidr 8001
 [0.178283] Brought up 2 CPUs
 [0.178314] SMP: Total of 2 processors activated (2387.96 BogoMIPS).
 [0.178314] CPU: All CPU(s) started in SVC mode.
 [0.181152] devtmpfs: initialized
 [0.254455] pinctrl core: initialized pinctrl subsystem
 [0.258117] regulator-dummy: no parameters
 [0.261657] NET: Registered protocol family 16
 [0.270538] DMA: preallocated 256 KiB pool for atomic coherent allocations
 [0.272033] omap-gpmc omap-gpmc: GPMC revision 6.0
 [0.281036] OMAP GPIO hardware version 0.1
 [0.295837] omap_mux_init: Add partition: #1: core, flags: 3
 [0.298095] omap_mux_init: Add partition: #2: wkup, flags: 3
 [0.298309] error setting wl12xx data: -38
 [0.298583] omap_mux_get_by_name: Could not find signal sys_nirq
 [0.303375] omap_mux_get_by_name: Could not find signal uart1_rx.uart1_rx
 [0.384521] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 
 watchpoint registers.
 [0.384521] hw-breakpoint: maximum watchpoint size is 4 bytes.
 [0.398803] OMAP DMA hardware revision 0.0
 [0.402832] ARM PMU: not yet supported on OMAP4430 due to missing CTI 
 driver
 [0.449371] bio: create slab bio-0 at 0
 [0.514038] omap-dma-engine omap-dma-engine: OMAP DMA engine driver
 [0.515258] vwl1271: 1800 mV
 [0.516174] hsusb1_reset: 3300 

Re: [PATCH 2/6] ARM: OMAP2+: Remove board-omap4panda.c

2013-06-17 Thread Ming Lei
On Mon, Jun 17, 2013 at 4:06 PM, Arnaud Patard
arnaud.pat...@rtp-net.org wrote:
 Sricharan R r.sricha...@ti.com writes:

 I hoped to have missed some mails and that people were testing pandabard
 support with full support but given what I see, the ethernet support is
 not there yet. This thread is about removing the non-DT boot. I see some
 contradiction here. Please, look again at what Thomas said in the IGEP thread:
 breaking existing support is bad and removing non-DT boot for panda with
 not-working ethernet would exactly to that.

+1

Even no any USB support on Sricharan's setting.


 Yeah, I'm aware that some extra patches are being developped like the
 omap clocks one: https://patchwork.kernel.org/patch/2541331/ but they
 don't seem to be in -next. So, again, please, wait that all needed bits
 are merged mainline before killing non-DT support (or provide 'mixed'
 support like what is/was done on kirkwood)

Agree, please don't be too quick, :-)


Thanks,
-- 
Ming Lei
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 2/6] ARM: OMAP2+: Remove board-omap4panda.c

2013-06-17 Thread Tony Lindgren
* Arnaud Patard arnaud.pat...@rtp-net.org [130617 01:13]:
 
 I hoped to have missed some mails and that people were testing pandabard
 support with full support but given what I see, the ethernet support is
 not there yet. This thread is about removing the non-DT boot. I see some
 contradiction here. Please, look again at what Thomas said in the IGEP thread:
 breaking existing support is bad and removing non-DT boot for panda with
 not-working ethernet would exactly to that.

Hmm yes I guess the panda needs the aux clock and there are various
patches posted for that for quite a while but have not gotten merged.

When I did my patches it seemed that Nishant's and my solution for
getting the auxclk via DT was acceptable. Then Mike started doing
all the clocks in DT and things changed.

Mike, got any solution for us for v3.11 for the DT defined auxclk?
 
 Yeah, I'm aware that some extra patches are being developped like the
 omap clocks one: https://patchwork.kernel.org/patch/2541331/ but they
 don't seem to be in -next. So, again, please, wait that all needed bits
 are merged mainline before killing non-DT support (or provide 'mixed'
 support like what is/was done on kirkwood)

The ethernet issue can be fixed with the legacy mode support in the
worst case, but probably just adding a clock alias for it does the
trick.

I'd rather not postpone making omap4 DT only because I think at this
point fixing the any DT related issues is way less work compared to
maintaining and testing both legacy boot and DT boot.

Regards,

Tony
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 2/6] ARM: OMAP2+: Remove board-omap4panda.c

2013-06-17 Thread Tony Lindgren
* Ming Lei tom.leim...@gmail.com [130617 01:22]:
 On Mon, Jun 17, 2013 at 4:06 PM, Arnaud Patard
 arnaud.pat...@rtp-net.org wrote:
  Sricharan R r.sricha...@ti.com writes:
 
  I hoped to have missed some mails and that people were testing pandabard
  support with full support but given what I see, the ethernet support is
  not there yet. This thread is about removing the non-DT boot. I see some
  contradiction here. Please, look again at what Thomas said in the IGEP 
  thread:
  breaking existing support is bad and removing non-DT boot for panda with
  not-working ethernet would exactly to that.
 
 +1
 
 Even no any USB support on Sricharan's setting.

That's also related to the auxclk. Let's see what Mike says before
we start adding back any legacy hacks for it. 

  Yeah, I'm aware that some extra patches are being developped like the
  omap clocks one: https://patchwork.kernel.org/patch/2541331/ but they
  don't seem to be in -next. So, again, please, wait that all needed bits
  are merged mainline before killing non-DT support (or provide 'mixed'
  support like what is/was done on kirkwood)
 
 Agree, please don't be too quick, :-)

Too quick? The basic DT based booting has been working for a few years
now to some extent on omaps :)

Regards,

Tony
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 2/6] ARM: OMAP2+: Remove board-omap4panda.c

2013-06-17 Thread Ming Lei
On Mon, Jun 17, 2013 at 4:27 PM, Tony Lindgren t...@atomide.com wrote:
 Too quick? The basic DT based booting has been working for a few years
 now to some extent on omaps :)

I mean it is OK to drop legacy mode now if it won't break old system.
Otherwise, it is better to slow down the dropping legacy patch so that
the board won't be one brick for us old board users, :-)


Thanks,
-- 
Ming Lei
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 2/6] ARM: OMAP2+: Remove board-omap4panda.c

2013-06-17 Thread Tony Lindgren
* Ming Lei tom.leim...@gmail.com [130617 01:47]:
 On Mon, Jun 17, 2013 at 4:27 PM, Tony Lindgren t...@atomide.com wrote:
  Too quick? The basic DT based booting has been working for a few years
  now to some extent on omaps :)
 
 I mean it is OK to drop legacy mode now if it won't break old system.
 Otherwise, it is better to slow down the dropping legacy patch so that
 the board won't be one brick for us old board users, :-)

Right, the plan is be able to use it naturally. The USB auxclk issue
is fixable for DT boot, we just need to decide what's the best way
to fix it.

Regards,

Tony
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 2/6] ARM: OMAP2+: Remove board-omap4panda.c

2013-06-17 Thread Rtp
Tony Lindgren t...@atomide.com writes:

Hi,

 * Arnaud Patard arnaud.pat...@rtp-net.org [130617 01:13]:
 
 I hoped to have missed some mails and that people were testing pandabard
 support with full support but given what I see, the ethernet support is
 not there yet. This thread is about removing the non-DT boot. I see some
 contradiction here. Please, look again at what Thomas said in the IGEP 
 thread:
 breaking existing support is bad and removing non-DT boot for panda with
 not-working ethernet would exactly to that.

 Hmm yes I guess the panda needs the aux clock and there are various
 patches posted for that for quite a while but have not gotten merged.

yes, it needs aux clock, see: https://lkml.org/lkml/2013/4/19/124


 When I did my patches it seemed that Nishant's and my solution for
 getting the auxclk via DT was acceptable. Then Mike started doing
 all the clocks in DT and things changed.

 Mike, got any solution for us for v3.11 for the DT defined auxclk?
  
 Yeah, I'm aware that some extra patches are being developped like the
 omap clocks one: https://patchwork.kernel.org/patch/2541331/ but they
 don't seem to be in -next. So, again, please, wait that all needed bits
 are merged mainline before killing non-DT support (or provide 'mixed'
 support like what is/was done on kirkwood)

 The ethernet issue can be fixed with the legacy mode support in the
 worst case, but probably just adding a clock alias for it does the
 trick.

 I'd rather not postpone making omap4 DT only because I think at this
 point fixing the any DT related issues is way less work compared to
 maintaining and testing both legacy boot and DT boot.

I understand your concerns but, please, cope with reality: the clock
work is not in -next so this tends to make me think it won't reach
3.11. We're at -rc6 after all. Telling users that their system doesn't
have any network because it was easier to maintain, is not something
they will understand imho.

Regards,
Arnaud
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 2/6] ARM: OMAP2+: Remove board-omap4panda.c

2013-06-17 Thread Tony Lindgren
* Arnaud Patard arnaud.pat...@rtp-net.org [130617 02:52]:
 Tony Lindgren t...@atomide.com writes:
 
 I understand your concerns but, please, cope with reality: the clock
 work is not in -next so this tends to make me think it won't reach
 3.11. We're at -rc6 after all. Telling users that their system doesn't
 have any network because it was easier to maintain, is not something
 they will understand imho.

Right, like I said: the idea is to have it usable with DT. And USB and
Ethernet certainly are part of what I call usable. So is MMC, WLAN and
DSS. I've certainly spent quite a bit of time on making sure panda works
with DT, and I can assure you that fixing the USB extclock is easier than
supporting the legacy boot with DT :)

This issue can also be fixed with a clock alias if we don't have DT
defined clocks ready for v3.11. It may take a few days for us to have
the solution. But get getting a clock to a driver certainly is not a
showstopper here. After all, that's what all drivers already do.

Regards,

Tony
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 2/6] ARM: OMAP2+: Remove board-omap4panda.c

2013-06-14 Thread Ming Lei
On Thu, Jun 13, 2013 at 6:12 PM, Sricharan R r.sricha...@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 t...@atomide.com [130612 09:37]:
 * Ming Lei tom.leim...@gmail.com [130603 08:34]:
 Hi,

 On Sat, May 18, 2013 at 3:17 AM, Tony Lindgren t...@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 s...@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+



Thanks,
-- 
Ming Lei
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 2/6] ARM: OMAP2+: Remove board-omap4panda.c

2013-06-14 Thread Ming Lei
On Fri, Jun 14, 2013 at 9:31 PM, Ming Lei tom.leim...@gmail.com wrote:
 On Thu, Jun 13, 2013 at 6:12 PM, Sricharan R r.sricha...@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 t...@atomide.com [130612 09:37]:
 * Ming Lei tom.leim...@gmail.com [130603 08:34]:
 Hi,

 On Sat, May 18, 2013 at 3:17 AM, Tony Lindgren t...@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 s...@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

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  2  1  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 8030 ...
   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 8160 ...
   Image Name:   initramfs
   Image Type:   ARM Linux RAMDisk Image (uncompressed)
   Data Size:8464188 Bytes = 8.1 MiB
   Load Address: 
   Entry Point:  
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

[0.00] Booting Linux on physical CPU 0x0
[0.00] Initializing cgroup subsys cpuset
[0.00] Initializing cgroup subsys cpu
[0.00] Initializing cgroup subsys cpuacct
[0.00] Linux version 

Re: [PATCH 2/6] ARM: OMAP2+: Remove board-omap4panda.c

2013-06-13 Thread Sricharan R
Hi Tony,
On Wednesday 12 June 2013 10:44 PM, Tony Lindgren wrote:
 * Tony Lindgren t...@atomide.com [130612 09:37]:
 * Ming Lei tom.leim...@gmail.com [130603 08:34]:
 Hi,

 On Sat, May 18, 2013 at 3:17 AM, Tony Lindgren t...@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.


Regards,
 Sricharan

--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 2/6] ARM: OMAP2+: Remove board-omap4panda.c

2013-06-13 Thread Sricharan R
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 t...@atomide.com [130612 09:37]:
 * Ming Lei tom.leim...@gmail.com [130603 08:34]:
 Hi,

 On Sat, May 18, 2013 at 3:17 AM, Tony Lindgren t...@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 s...@canb.auug.org.au
Date:   Fri Jun 7 16:40:02 2013 +1000

Add linux-next specific files for 20130607
   

Regards,
 Sricharan
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 2/6] ARM: OMAP2+: Remove board-omap4panda.c

2013-06-13 Thread Tony Lindgren
* Sricharan R r.sricha...@ti.com [130613 03:18]:
   
  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

OK thanks for testing.

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 s...@canb.auug.org.au
 Date:   Fri Jun 7 16:40:02 2013 +1000
 
 Add linux-next specific files for 20130607

OK thanks for testing that too. I don't think these patches are
in linux-next yet. But still good to hear it works.

Ming Lei, any further info on your board?

Regards,

Tony
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 2/6] ARM: OMAP2+: Remove board-omap4panda.c

2013-06-13 Thread Ming Lei
On Thu, Jun 13, 2013 at 7:05 PM, Tony Lindgren t...@atomide.com wrote:
 * Sricharan R r.sricha...@ti.com [130613 03:18]:
 
  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

 OK thanks for testing.

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 s...@canb.auug.org.au
 Date:   Fri Jun 7 16:40:02 2013 +1000

 Add linux-next specific files for 20130607

 OK thanks for testing that too. I don't think these patches are
 in linux-next yet. But still good to hear it works.

 Ming Lei, any further info on your board?

OK, I will test the latest next tree to see if my board can work, and
post the result.


Thanks,
-- 
Ming Lei
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 2/6] ARM: OMAP2+: Remove board-omap4panda.c

2013-06-12 Thread Tony Lindgren
* Ming Lei tom.leim...@gmail.com [130603 08:34]:
 Hi,
 
 On Sat, May 18, 2013 at 3:17 AM, Tony Lindgren t...@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.

Regards,

Tony
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 2/6] ARM: OMAP2+: Remove board-omap4panda.c

2013-06-12 Thread Tony Lindgren
* Tony Lindgren t...@atomide.com [130612 09:37]:
 * Ming Lei tom.leim...@gmail.com [130603 08:34]:
  Hi,
  
  On Sat, May 18, 2013 at 3:17 AM, Tony Lindgren t...@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 
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 2/6] ARM: OMAP2+: Remove board-omap4panda.c

2013-06-03 Thread Ming Lei
Hi,

On Sat, May 18, 2013 at 3:17 AM, Tony Lindgren t...@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


Thanks,
-- 
Ming Lei
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html