[Letux-kernel] BeagleBoard XM OpenMoko Hyprid (bb+b1) is booting with 2016-11 U-Boot :)

H. Nikolaus Schaller hns at goldelico.com
Wed Dec 14 18:28:11 CET 2016

> Am 13.12.2016 um 20:29 schrieb H. Nikolaus Schaller <hns at goldelico.com>:
>> Am 12.12.2016 um 22:05 schrieb H. Nikolaus Schaller <hns at goldelico.com>:
>> I had to fix the Makefile for the bb+b1 variant.
>> Although it reports some errors, the boot.scr shows the boot menu
>> and if I choose to boot from partition 1, I get the 4.9.0 kernel
>> up and running :)
> I have found some issues (mainly with RAM initialization) for the GTA04
> board code and now SPL works while U-Boot starts and is then stuck:
> U-Boot SPL 2016.11-00141-gcc48556-dirty (Dec 13 2016 - 20:07:42)
> Trying to boot from MMC1
> board_mmc_power_init
> Found GTA04A3
> pop_mfr = 2c pop_id = bc
> reading u-boot.img
> reading u-boot.img
> U-Boot 2016.11-00141-gcc48556-dirty (Dec 13 2016 - 20:07:42 +0100)
> OMAP3630/3730-GP ES1.2, CPU-OPP2, L3-200MHz, Max CPU Clock 1 Ghz
> I2C:   ready
> DRAM:  1 GiB
> show_boot_progress
> NAND:  512 MiB
> MMC:   board_mmc_init !SPL
> Error: Bad compare! failed
> Error: Bad compare! failed
> Error: Bad compare! failed
> NAND read from offset 260000 failed -74
> *** Warning - readenv() failed, using default environment
> misc_init_r
> Found GTA04A3
> Device Tree: omap3-gta04a3
> OMAP die ID: 166600029ff800000163810c17036010

I have traced down this freeze to be a problem with the led command.
After removing direct LED control it continues and even starts the
boot.scr :)

Or I can break into the command line.

But then again it hangs while trying to initialize the LCM (or to be
more specific: the gpio 57 for backlight control).

It turns out that the common problem has something to do with the 
gpio driver. It hangs in omap_gpio_direction_output() when writing
0x02000000 to address 0x49050090. mw 0x49050090 0x02000000 freezes
as well.

This most likely means that the GPIO2 module is not initialized
or clocked properly.

Well, this seems to be another subtle difference to the bb+b1
variant (which partially runs on the GTA04 and even loads the
kernel - but is missing the device tree).

So please keep fingers crossed and encourage me to trace down and
fix this n+1st bug...


More information about the Letux-kernel mailing list