Re: [pandaboard] device tree does not work

2012-12-21 Thread Sukumar Ghorai
On Fri, Dec 21, 2012 at 10:12 PM, Menon, Nishanth  wrote:
> Shifting thread to linux-omap mailing list.

This time I used the latest u-boot and working.. sorry..
U-Boot 2013.01-rc2-00022-g42e1321 (Dec 21 2012 - 22:09:54)

CPU  : OMAP4430 ES2.2
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 # setenv bootargs 'console=ttyO2,115200n8 root=/dev/mmcblk0p3 rw
rootwait rootfstype=ext4 init=/sbin/init ignore_loglevel debug
printk.time=1 bootmem_debug=1 earlyprintk'
Panda # setenv bootcmd 'mmc rescan; fatload mmc 0 8200
uImage-21dec; fatload mmc 0 8500 omap4-panda-es.dtb; bootm
8200 - 8500'
Panda # boot
reading uImage-21dec
4243816 bytes read in 251 ms (16.1 MiB/s)
reading omap4-panda-es.dtb
13602 bytes read in 9 ms (1.4 MiB/s)
## Booting kernel from Legacy Image at 8200 ...
   Image Name:   Linux-3.7.0-11091-gf01af9f-dirty
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:4243752 Bytes = 4 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 8500
   Booting using the fdt blob at 0x8500
   Loading Kernel Image ... OK
OK
   reserving fdt memory region: addr=9d00 size=300
   Using Device Tree in place at 8500, end 85006521

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[0.00] Booting Linux on physical CPU 0x0
[0.00] Linux version 3.7.0-11091-gf01af9f-dirty
(sghorai@bgsxgitb03) (gcc version 4.4.1 (Sourcery G++ Lite 2010q1-202)
) #15 SMP Fri Dec 21 15:50:23 IST 2012
[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: Generic OMAP4 (Flattened Device Tree), model:
TI OMAP4 PandaBoard
..

> Regards,
> Nishanth Menon
> 
> From: pandabo...@googlegroups.com [pandabo...@googlegroups.com] on behalf of 
> Sukumar Ghorai [ghorai.suku...@gmail.com]
> Sent: Friday, December 21, 2012 10:33
> To: pandabo...@googlegroups.com
> Subject: [pandaboard] device tree does not work
>
> Hi,
> Device Tree in Panda board does not boot.
>
> Device Tree with legacy u-boot : Appending dtb blob to kernel
> menuconfig → boot options
> select [*] Use appended device tree blob to zImage (EXPERIMENTAL)
> Used with legacy u-boot
>
> U-Boot 2011.09 (Nov 19 2011 - 04:44:45)
>
> CPU  : OMAP4430
> Board: OMAP4 Panda
> I2C:   ready
> DRAM:  1 GiB
> WARNING: Caches not enabled
> 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 # setenv bootargs 'console=ttyO2,115200n8 root=/dev/mmcblk0p3 rw
> rootwait rootfstype=ext4 init=/sbin/init ignore_loglevel debug
> printk.time=1 earlyprintk'
> Panda # setenv bootcmd 'mmc rescan; fatload mmc 0 8020
> uImage-21dec; fatload mmc 0 8070 omap4-panda-es.dtb; bootm
> 8020 - 8070'
> Panda # boot
> reading uImage-21dec
>
> 4243816 bytes read
> reading omap4-panda-es.dtb
>
> 13602 bytes read
> ## Booting kernel from Legacy Image at 8020 ...
>Image Name:   Linux-3.7.0-11091-gf01af9f-dirty
>Image Type:   ARM Linux Kernel Image (uncompressed)
>Data Size:4243752 Bytes = 4 MiB
>Load Address: 80008000
>Entry Point:  80008000
>Verifying Checksum ... OK
> ## Flattened Device Tree blob at 8070
>Booting using the fdt blob at 0x8070
>Loading Kernel Image ... OK
> OK
>reserving fdt memory region: addr=9d00 size=300
>Loading Device Tree to bfef1000, end bfef7521 ... OK
>
> Starting kernel ...
>
> Uncompressing Linux... done, booting the kernel.
> [0.00] Booting Linux on physical CPU 0x0
> [0.00] Linux version 3.7.0-11091-gf01af9f-dirty
> (sghorai@bgsxgitb03) (gcc version 4.4.1 (Sourcery G++ Lite 2010q1-202)
> ) #15 SMP Fri Dec 21 15:50:23 IST 2012
> [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: Generic OMAP4 (Flattened Device Tree), model:
> TI OMAP4 PandaBoard
> [0.00] debug: ignoring loglevel setting.
> [0.00] bootconsole [earlycon0] enabled
> [0.00] Memory policy: ECC disabled, Data cache writealloc
> [0.00] On node 0 totalpages: 261888
> [0.00] free_area_init_node: node 0, pgdat c080eec0,
> node_mem_map c0d6d000
> [0.00]   Normal zone: 1520 pages used for memmap
> [0.00]   Normal zone: 0 pages reserved
> [0.00]   Normal zone: 193040 pages, LIFO batch:31
> [0.00]   HighMem zone: 528 pages used for memmap
> [0.00]   HighMem zone: 66800 pages, LIFO batch:15
> [0.00] Unable to ha

RE: [pandaboard] device tree does not work

2012-12-21 Thread Menon, Nishanth
Shifting thread to linux-omap mailing list.
Regards,
Nishanth Menon

From: pandabo...@googlegroups.com [pandabo...@googlegroups.com] on behalf of 
Sukumar Ghorai [ghorai.suku...@gmail.com]
Sent: Friday, December 21, 2012 10:33
To: pandabo...@googlegroups.com
Subject: [pandaboard] device tree does not work

Hi,
Device Tree in Panda board does not boot.

Device Tree with legacy u-boot : Appending dtb blob to kernel
menuconfig → boot options
select [*] Use appended device tree blob to zImage (EXPERIMENTAL)
Used with legacy u-boot

U-Boot 2011.09 (Nov 19 2011 - 04:44:45)

CPU  : OMAP4430
Board: OMAP4 Panda
I2C:   ready
DRAM:  1 GiB
WARNING: Caches not enabled
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 # setenv bootargs 'console=ttyO2,115200n8 root=/dev/mmcblk0p3 rw
rootwait rootfstype=ext4 init=/sbin/init ignore_loglevel debug
printk.time=1 earlyprintk'
Panda # setenv bootcmd 'mmc rescan; fatload mmc 0 8020
uImage-21dec; fatload mmc 0 8070 omap4-panda-es.dtb; bootm
8020 - 8070'
Panda # boot
reading uImage-21dec

4243816 bytes read
reading omap4-panda-es.dtb

13602 bytes read
## Booting kernel from Legacy Image at 8020 ...
   Image Name:   Linux-3.7.0-11091-gf01af9f-dirty
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:4243752 Bytes = 4 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 8070
   Booting using the fdt blob at 0x8070
   Loading Kernel Image ... OK
OK
   reserving fdt memory region: addr=9d00 size=300
   Loading Device Tree to bfef1000, end bfef7521 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[0.00] Booting Linux on physical CPU 0x0
[0.00] Linux version 3.7.0-11091-gf01af9f-dirty
(sghorai@bgsxgitb03) (gcc version 4.4.1 (Sourcery G++ Lite 2010q1-202)
) #15 SMP Fri Dec 21 15:50:23 IST 2012
[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: Generic OMAP4 (Flattened Device Tree), model:
TI OMAP4 PandaBoard
[0.00] debug: ignoring loglevel setting.
[0.00] bootconsole [earlycon0] enabled
[0.00] Memory policy: ECC disabled, Data cache writealloc
[0.00] On node 0 totalpages: 261888
[0.00] free_area_init_node: node 0, pgdat c080eec0,
node_mem_map c0d6d000
[0.00]   Normal zone: 1520 pages used for memmap
[0.00]   Normal zone: 0 pages reserved
[0.00]   Normal zone: 193040 pages, LIFO batch:31
[0.00]   HighMem zone: 528 pages used for memmap
[0.00]   HighMem zone: 66800 pages, LIFO batch:15
[0.00] Unable to handle kernel paging request at virtual
address ffef1000
[0.00] pgd = c0004000
[0.00] [ffef1000] *pgd=af7fe821, *pte=, *ppte=
[0.00] Internal error: Oops: 17 [#1] SMP ARM
[0.00] Modules linked in:
[0.00] CPU: 0Not tainted  (3.7.0-11091-gf01af9f-dirty #15)
[0.00] PC is at __unflatten_device_tree+0x1c/0x130
[0.00] LR is at unflatten_device_tree+0x1c/0x34
[0.00] pc : []lr : []psr: a1d3
[0.00] sp : c0781f50  ip : 0001  fp : c0788954
[0.00] r10: c0666de0  r9 : c157c080  r8 : 8200
[0.00] r7 : c0730f64  r6 : c078d3d0  r5 : ffef1000  r4 : c0730f64
[0.00] r3 : d00dfeed  r2 : c0730f64  r1 : c0d666e8  r0 : ffef1000
[0.00] Flags: NzCv  IRQs off  FIQs off  Mode SVC_32  ISA ARM
Segment kernel
[0.00] Control: 10c53c7d  Table: 8000404a  DAC: 0017
[0.00] Process swapper (pid: 0, stack limit = 0xc0780240)
[0.00] Stack: (0xc0781f50 to 0xc0782000)
[0.00] 1f40: 8200
c157c080 c0d666e8 
[0.00] 1f60: c0730f64 c0d50c68 c078d3d0 c07e2c60 8200
c0755910 c075d548 c072fc94
[0.00] 1f80:  10c53c7d bfff c0781fdc 411fc092
  c052f9b0
[0.00] 1fa0: c06655ac  0001  bfff
8000406a 411fc092 
[0.00] 1fc0:  c072c4ec   
  c075f2b0
[0.00] 1fe0:  10c53c7d c078898c c075f2ac c078d1c4
80008078  
[0.00] [] (__unflatten_device_tree+0x1c/0x130) from
[] (unflatten_device_tree+0x1c/0x34)
[0.00] [] (unflatten_device_tree+0x1c/0x34) from
[] (setup_arch+0x5d4/0x7ac)
[0.00] [] (setup_arch+0x5d4/0x7ac) from []
(start_kernel+0x88/0x2fc)
[0.00] [] (start_kernel+0x88/0x2fc) from
[<80008078>] (0x80008078)
[0.00] Code: e1a07002 0a35 e59f30fc e58d1008 (e5951000)
[0.00] ---[ end trace 1b75b31a2719ed1c ]---
[0.00] Kernel panic - not syncing: Attemp