[Gta04-owner] gta04 with 3.6 kernel with dtb booted

Belisko Marek marek.belisko at gmail.com
Mon Oct 8 23:11:46 CEST 2012


Hi,

I'm trying to work to boot gta04 with latest kernel with devicetree
(also trying to get some experience with dtb :))
So basically I fetch 3.6 kernel (apply patch to create uImage with dtb
easily : https://patchwork.kernel.org/patch/1432321/)

Then copy omap3-beagle.dts and modify ram size to 512MB:
/dts-v1/;

/include/ "omap3.dtsi"

/ {
	model = "OMAP3 GTA04 (OMAP3730)";
	compatible = "ti,omap3-gta04", "ti,omap3";

	memory {
		device_type = "memory";
		reg = <0x80000000 0x20000000>; /* 512 MB */
	};
};

&i2c1 {
	clock-frequency = <2600000>;

	twl: twl at 48 {
		reg = <0x48>;
		interrupts = <7>; /* SYS_NIRQ cascaded to intc */
		interrupt-parent = <&intc>;
	};
};

&i2c2 {
	clock-frequency = <400000>;
};

&i2c3 {
	clock-frequency = <100000>;
};

Following with:
make ARCH=arm omap2plus_defconfig; + select CONFIG_ARM_APPENDED_DTB
with menuconfig, then:
make CROSS_COMPILE=arm-linux-gnueabi- ARCH=arm dtbuImage.omap3-gta04

Copy then result to sd card then:
fatload mmc 0 ${loadaddr} dtbuImage.omap3-gta04
bootm ${loadaddr} and result is:

GTA04 # bootm ${loadaddr}
## Booting kernel from Legacy Image at 82000000 ...
   Image Name:   Linux-3.6.0-dirty
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3717681 Bytes = 3.5 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0
[    0.000000] Linux version 3.6.0-dirty (open-nandra at nandra-host)
(gcc version 4.6.3 20120201 (prerelease) (crosstool-NG
linaro-1.13.1-2012.02-20120222 - Linaro GCC 2
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing
instruction cache
[    0.000000] Machine: Generic OMAP3 (Flattened Device Tree), model:
OMAP3 GTA04 (OMAP3730)
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] OMAP3630 ES1.2 (l2cache iva sgx neon isp 192mhz_clk )
[    0.000000] Clocking rate (Crystal/Core/MPU): 26.0/332/600 MHz
[    0.000000] PERCPU: Embedded 9 pages/cpu @c10ce000 s12736 r8192 d15936 u36864
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.
Total pages: 129792
[    0.000000] Kernel command line: root=/dev/mmcblk0p2 rootwait
console=ttyO2,115200
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 511MB = 511MB total
[    0.000000] Memory: 505620k/505620k available, 18668k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc067bd3c   (6608 kB)
[    0.000000]       .init : 0xc067c000 - 0xc06cb1c0   ( 317 kB)
[    0.000000]       .data : 0xc06cc000 - 0xc0768100   ( 625 kB)
[    0.000000]        .bss : 0xc0768124 - 0xc0cc210c   (5480 kB)
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=2 to nr_cpu_ids=1.
[    0.000000] NR_IRQS:474
[    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 4.0) with 96
interrupts
[    0.000000] Total of 96 interrupts on 1 active controller
[    0.000000] OMAP clockevent source: GPTIMER1 at 32768 Hz
[    0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns,
wraps every 131071999ms
[    0.000000] OMAP clocksource: 32k_counter at 32768 Hz
[    0.000000] Console: colour dummy device 80x30
[    0.000000] Lock dependency validator: Copyright (c) 2006 Red Hat,
Inc., Ingo Molnar
[    0.000000] ... MAX_LOCKDEP_SUBCLASSES:  8
[    0.000000] ... MAX_LOCK_DEPTH:          48
[    0.000000] ... MAX_LOCKDEP_KEYS:        8191
[    0.000000] ... CLASSHASH_SIZE:          4096
[    0.000000] ... MAX_LOCKDEP_ENTRIES:     16384
[    0.000000] ... MAX_LOCKDEP_CHAINS:      32768
[    0.000000] ... CHAINHASH_SIZE:          16384
[    0.000000]  memory used by lock dependency info: 3695 kB
[    0.000000]  per task-struct memory footprint: 1152 bytes
[    0.000854] Calibrating delay loop... 397.57 BogoMIPS (lpj=1554432)
[    0.109374] pid_max: default: 32768 minimum: 301
[    0.109893] Security Framework initialized
[    0.110076] Mount-cache hash table entries: 512
[    0.118072] CPU: Testing write buffer coherency: ok
[    0.118957] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.119049] Setting up static identity map for 0x804a5348 - 0x804a53b8
[    0.121215] Brought up 1 CPUs
[    0.121246] SMP: Total of 1 processors activated (397.57 BogoMIPS).
[    0.142211] dummy:
[    0.144348] NET: Registered protocol family 16
[    0.145111] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.146087] GPMC revision 5.0
[    0.146331] gpmc: irq-20 could not claim: err -22
[    0.161773] Reprogramming SDRC clock to 332000000 Hz
[    0.161804] dpll3_m2_clk rate change failed: -22
[    0.169708] OMAP GPIO hardware version 2.5
[    0.194671] No ATAGs?
[    0.194702] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.207550]  omap-mcbsp.2: alias fck already exists
[    0.208404]  omap-mcbsp.3: alias fck already exists
[    0.213867] OMAP DMA hardware revision 5.0
[    0.278076] bio: create slab <bio-0> at 0
[    0.371795] omap-dma-engine omap-dma-engine: OMAP DMA engine driver
[    0.380401] SCSI subsystem initialized
[    0.383178] usbcore: registered new interface driver usbfs
[    0.383789] usbcore: registered new interface driver hub
[    0.384460] usbcore: registered new device driver usb
[    0.399017] omap_i2c i2c.14: bus -1 rev1.4.0 at 2600 kHz
[    0.400360] i2c i2c-0: of_i2c: modalias failure on /ocp/i2c at 48070000/twl at 48
[    0.400756] omap_i2c i2c.15: bus -1 rev1.4.0 at 400 kHz
[    0.414306] omap_i2c i2c.16: bus -1 rev1.4.0 at 100 kHz
[    0.422790] Switching to clocksource 32k_counter
[    0.554443] NET: Registered protocol family 2
[    0.557098] TCP established hash table entries: 16384 (order: 5,
131072 bytes)
[    0.557830] TCP bind hash table entries: 16384 (order: 7, 589824 bytes)
[    0.566986] TCP: Hash tables configured (established 16384 bind 16384)
[    0.567169] TCP: reno registered
[    0.567199] UDP hash table entries: 256 (order: 2, 20480 bytes)
[    0.567504] UDP-Lite hash table entries: 256 (order: 2, 20480 bytes)
[    0.568450] NET: Registered protocol family 1
[    0.569793] RPC: Registered named UNIX socket transport module.
[    0.569824] RPC: Registered udp transport module.
[    0.569854] RPC: Registered tcp transport module.
[    0.569854] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.571014] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.747711] VFS: Disk quotas dquot_6.5.2
[    0.748046] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.750885] NFS: Registering the id_resolver key type
[    0.751556] Key type id_resolver registered
[    0.751586] Key type id_legacy registered
[    0.751800] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.752380] msgmni has been set to 987
[    0.756042] io scheduler noop registered
[    0.756072] io scheduler deadline registered
[    0.756164] io scheduler cfq registered (default)
[    0.758636] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.765747] serial.10: ttyO0 at MMIO 0x4806a000 (irq = 72) is a OMAP UART0
[    0.767974] serial.11: ttyO1 at MMIO 0x4806c000 (irq = 73) is a OMAP UART1
[    0.769500] serial.12: ttyO2 at MMIO 0x49020000 (irq = 74) is a OMAP UART2
[    1.384033] console [ttyO2] enabled
[    1.389495] serial.13: ttyO3 at MMIO 0x49042000 (irq = 80) is a OMAP UART3
[    1.431884] brd: module loaded
[    1.455657] loop: module loaded
[    1.465209] mtdoops: mtd device (mtddev=name/number) must be supplied
[    1.473144] OneNAND driver initializing
[    1.491027] usbcore: registered new interface driver asix
[    1.497619] usbcore: registered new interface driver cdc_ether
[    1.504699] usbcore: registered new interface driver smsc95xx
[    1.511413] usbcore: registered new interface driver net1080
[    1.518035] usbcore: registered new interface driver cdc_subset
[    1.524749] usbcore: registered new interface driver zaurus
[    1.531311] usbcore: registered new interface driver cdc_ncm
[    1.539611] usbcore: registered new interface driver cdc_wdm
[    1.545715] Initializing USB Mass Storage driver...
[    1.551513] usbcore: registered new interface driver usb-storage
[    1.558013] USB Mass Storage support registered.
[    1.564117] usbcore: registered new interface driver libusual
[    1.570770] usbcore: registered new interface driver usbtest
[    1.578521] mousedev: PS/2 mouse device common for all mice
[    1.589935] i2c /dev entries driver
[    1.597442] Driver for 1-wire Dallas network protocol.
[    1.606323] omap_wdt: OMAP Watchdog Timer Rev 0x31: initial timeout 60 sec
[    1.617828] omap_hsmmc mmc.21: Failed to get debounce clk
[    1.623870] omap-dma-engine omap-dma-engine: allocating channel for 62
[    1.630889] omap-dma-engine omap-dma-engine: allocating channel for 61
[    1.681823] omap_hsmmc mmc.22: Failed to get debounce clk
[    1.687561] omap-dma-engine omap-dma-engine: allocating channel for 48
[    1.694549] omap-dma-engine omap-dma-engine: allocating channel for 47
[    1.709472] mmc0: host doesn't support card's voltages
[    1.715026] mmc0: error -22 whilst initialising SD card
[    1.751922] omap_hsmmc mmc.23: Failed to get debounce clk
[    1.757659] omap-dma-engine omap-dma-engine: allocating channel for 78
[    1.764648] omap-dma-engine omap-dma-engine: allocating channel for 77
[    1.819732] usbcore: registered new interface driver usbhid
[    1.826141] usbhid: USB HID core driver
[    1.830261] oprofile: hardware counters not available
[    1.835571] oprofile: using timer interrupt.
[    1.840881] TCP: cubic registered
[    1.844360] Initializing XFRM netlink socket
[    1.849090] NET: Registered protocol family 17
[    1.853942] NET: Registered protocol family 15
[    1.859039] Key type dns_resolver registered
[    1.863677] VFP support v0.3: implementor 41 architecture 3 part 30
variant c rev 3
[    1.871887] ThumbEE CPU extension supported.
[    1.908142] clock: disabling unused clocks to save power
[    1.919616] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    1.930084] Waiting for root device /dev/mmcblk0p2...


I know then it hangs and it's not working but it's a good starting point IMO.
There needs to be done more work to have properly gta04 booted with device tree.
Most of the drivers which are used in gta04 aren't yet converted to
accept devicetree
(except of bmp085).

Thanks,

Marek

-- 
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer

Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com


More information about the Gta04-owner mailing list