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

Dr. H. Nikolaus Schaller hns at goldelico.com
Tue Oct 9 09:50:03 CEST 2012


Hi,
cool!

Am 08.10.2012 um 23:11 schrieb Belisko Marek:

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

I tried to do it myself but failed applying the patch:

hns$ git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
Cloning into 'linux-stable'...
remote: Counting objects: 2850430, done.
remote: Compressing objects: 100% (445171/445171), done.
remote: Total 2850430 (delta 2392883), reused 2835391 (delta 2377865)
Receiving objects: 100% (2850430/2850430), 591.54 MiB | 764 KiB/s, done.
Resolving deltas: 100% (2392883/2392883), done.
hns$ cd linux-stable
hns$ git am ../ARM-add-dtbImage.-dt-and-dtbuImage.-dt-rules.patch
Applying: ARM: add dtbImage.<dt> and dtbuImage.<dt> rules
error: patch failed: arch/arm/Makefile:300
error: arch/arm/Makefile: patch does not apply
Patch failed at 0001 ARM: add dtbImage.<dt> and dtbuImage.<dt> rules
When you have resolved this problem run "git am --resolved".
If you would prefer to skip this patch, instead run "git am --skip".
To restore the original branch and stop patching run "git am --abort".
hns$ git am --abort
hns$ git am -3 ../ARM-add-dtbImage.-dt-and-dtbuImage.-dt-rules.patch
Applying: ARM: add dtbImage.<dt> and dtbuImage.<dt> rules
Using index info to reconstruct a base tree...
Falling back to patching base and 3-way merge...
Auto-merging arch/arm/boot/Makefile
Auto-merging arch/arm/Makefile
CONFLICT (content): Merge conflict in arch/arm/Makefile
Failed to merge in the changes.
Patch failed at 0001 ARM: add dtbImage.<dt> and dtbuImage.<dt> rules
When you have resolved this problem run "git am --resolved".
If you would prefer to skip this patch, instead run "git am --skip".
To restore the original branch and stop patching run "git am --abort".
hns$ git am --abort
Unstaged changes after reset:
M	arch/arm/Makefile
M	arch/arm/boot/Makefile
M	scripts/Makefile.lib
hns$ git status

looks like git am is broken and does not even restore the original
branch by git am --abort

<snip>

</snip>
> 
> [    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.

Any ideas why it hangs?

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

I think if we get the kernel to boot it is not that difficult to convert the
additional drivers.

BR,
Nikolaus



More information about the Gta04-owner mailing list