Re: Pandaboard: DT Boot fails when initramfs is loaded

2013-08-13 Thread Sebastian Reichel
On Mon, Aug 12, 2013 at 03:17:07PM +0300, Roger Quadros wrote:
 What is the size of your uImage and uInitrd? Are you sure the load addresses
 are far apart to not cause overwrite?

There should be about 23M space for the uImage (0x8160-0x8000) and
ca. 245MB for the uInitrd (0x9000 - 0x8160). The actual files
are much smaller than that:

-rw-r--r-- 1 root root 2.7M Mai 25 17:59 uImage-3.10.0-rc1+
-rw-r--r-- 1 root root 4.9M Mai 25 18:00 uInitrd-3.10.0-rc1+
-rw-r--r-- 1 root root 2.8M Aug 11 13:27 uImage-3.11.0-rc4+
-rw-r--r-- 1 root root 4.9M Aug 11 13:27 uInitrd-3.11.0-rc4+
-rw-r--r-- 1 root root  18K Aug 11 13:01 omap4-panda.dtb

Apart from that I was able to boot the 3.10 kernel without using the
device tree information.

-- Sebastian


signature.asc
Description: Digital signature


Re: Pandaboard: DT Boot fails when initramfs is loaded

2013-08-12 Thread Roger Quadros
Hi,

On 08/11/2013 04:31 PM, Sebastian Reichel wrote:
 Hi,
 
 I try to boot the mainline omap kernel (I tried current mainline
 kernel from git and mainline 3.10-rc1+) on my Pandaboard using
 U-Boot as follows:
 
 mmcinfo
 ext2load mmc 0:2 0x8000 /boot/uImage
 ext2load mmc 0:2 0x8160 /boot/uInitrd
 ext2load mmc 0:2 0x9000 /boot/omap4-panda.dtb
 bootm 0x8000 0x8160 0x9000

What is the size of your uImage and uInitrd? Are you sure the load addresses
are far apart to not cause overwrite?

cheers,
-roger

--
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


Pandaboard: DT Boot fails when initramfs is loaded

2013-08-11 Thread Sebastian Reichel
Hi,

I try to boot the mainline omap kernel (I tried current mainline
kernel from git and mainline 3.10-rc1+) on my Pandaboard using
U-Boot as follows:

mmcinfo
ext2load mmc 0:2 0x8000 /boot/uImage
ext2load mmc 0:2 0x8160 /boot/uInitrd
ext2load mmc 0:2 0x9000 /boot/omap4-panda.dtb
bootm 0x8000 0x8160 0x9000

The kernel does start booting, but it fails once it should load the
initramfs (dmesg attached below). I can boot the 3.10 kernel when
not booting with DT:

mmcinfo
ext2load mmc 0:2 0x8000 /boot/uImage
ext2load mmc 0:2 0x8160 /boot/uInitrd
ext2load mmc 0:2 0x9000 /boot/omap4-panda.dtb
bootm 0x8000 0x8160

Can somebody tell me what I'm doing wrong?

Here's the dmesg of the DT boot:

[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 3.10.0-rc1+ (sre@earth) (gcc version 4.7.1 (Debian 
4.7.1-7) ) #27 SMP Sat May 25 17:55:27 CEST 2013
[0.00] CPU: ARMv7 Processor [411fc092] revision 2 (ARMv7), cr=10c5387d
[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] bootconsole [earlycon0] enabled
[0.00] cma: dma_contiguous_reserve(limit af80)
[0.00] cma: dma_contiguous_reserve: reserving 16 MiB for global area
[0.00] cma: dma_declare_contiguous(size 100, base , limit 
af80)
[0.00] cma: CMA: reserved 16 MiB at ae80
[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 c05ada80, node_mem_map 
c0625000
[0.00]   Normal zone: 1520 pages used for memmap
[0.00]   Normal zone: 0 pages reserved
[0.00]   Normal zone: 194560 pages, LIFO batch:31
[0.00]   HighMem zone: 528 pages used for memmap
[0.00]   HighMem zone: 67328 pages, LIFO batch:15
[0.00] OMAP4430 ES2.2
[0.00] PERCPU: Embedded 9 pages/cpu @c0e34000 s13120 r8192 d15552 u36864
[0.00] pcpu-alloc: s13120 r8192 d15552 u36864 alloc=9*4096
[0.00] pcpu-alloc: [0] 0 [0] 1 
[0.00] Built 1 zonelists in Zone order, mobility grouping on.  Total 
pages: 260368
[0.00] Kernel command line: console=ttyO2,115200n8 root=/dev/mmcblk0p2 
rw rootwait vram=32M omapfb.vram=0:16M,1:16M omapdss.def_disp=hdmi loglevel=8 
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: 1017MB 6MB = 1023MB total
[0.00] Memory: 1010708k/1010708k available, 37868k reserved, 264324K 
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 - 0xc04e49cc   (4979 kB)
[0.00]   .init : 0xc04e5000 - 0xc0534340   ( 317 kB)
[0.00]   .data : 0xc0536000 - 0xc05aff20   ( 488 kB)
[0.00].bss : 0xc05aff20 - 0xc0624014   ( 465 kB)
[0.00] Hierarchical RCU implementation.
[0.00]  RCU dyntick-idle grace-period acceleration is enabled.
[0.00]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[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] smp_twd: clock not found -2
[0.00] Console: colour dummy device 80x30
[0.014617] Calibrating delay loop... 1594.16 BogoMIPS (lpj=7970816)
[0.109130] pid_max: default: 32768 minimum: 301
[0.114135] Security Framework initialized
[0.118560] Mount-cache hash table entries: 512
[0.127990] Initializing cgroup subsys devices
[0.132659] Initializing cgroup subsys freezer
[0.137390] Initializing cgroup subsys net_cls
[0.142028] Initializing cgroup subsys blkio
[0.146545] Initializing cgroup subsys perf_event
[0.151611] CPU: Testing write buffer coherency: ok
[0.157257] CPU0: thread -1, cpu 0, socket 0, mpidr 8000
[0.163146] Calibrating local timer... 399.11MHz.
[0.227325] Setting up static identity map for 0xc036e158 - 0xc036e1b0
[0.234191] L310 cache controller enabled
[0.238464] l2x0: 16 ways, CACHE_ID 0x41c4,