public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] top of tree build fails for beagleboard
@ 2011-08-24 12:09 Jaya Kumar
  2011-08-24 12:16 ` Aneesh V
  0 siblings, 1 reply; 3+ messages in thread
From: Jaya Kumar @ 2011-08-24 12:09 UTC (permalink / raw)
  To: u-boot

Hi guys,

I cloned top of tree and tried to build beagleboard. Fails right at
the end with:

make[1]: Entering directory
`/home/beaglexm/clean_code_for_bootstuff/u-boot/board/ti/beagle'
beagle.c:41:27: error: asm/arch/gpio.h: No such file or directory
led.c:25:27: error: asm/arch/gpio.h: No such file or directory
make[1]: *** No rule to make target `.depend', needed by `libbeagle.o'.  Stop.
make[1]: Leaving directory
`/home/beaglexm/clean_code_for_bootstuff/u-boot/board/ti/beagle'
make: *** [board/ti/beagle/libbeagle.o] Error 2

It used to work fine so I think something broke recently. I also see
that someone has posted a patch for this,

http://lists.denx.de/pipermail/u-boot/2011-August/098594.html

Is that the right fix?

Thanks,
jaya

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] top of tree build fails for beagleboard
  2011-08-24 12:09 [U-Boot] top of tree build fails for beagleboard Jaya Kumar
@ 2011-08-24 12:16 ` Aneesh V
  2011-08-26 11:50   ` Jaya Kumar
  0 siblings, 1 reply; 3+ messages in thread
From: Aneesh V @ 2011-08-24 12:16 UTC (permalink / raw)
  To: u-boot

Hi Jaya Kumar,

On Wednesday 24 August 2011 05:39 PM, Jaya Kumar wrote:
> Hi guys,
> 
> I cloned top of tree and tried to build beagleboard. Fails right at
> the end with:
> 
> make[1]: Entering directory
> `/home/beaglexm/clean_code_for_bootstuff/u-boot/board/ti/beagle'
> beagle.c:41:27: error: asm/arch/gpio.h: No such file or directory
> led.c:25:27: error: asm/arch/gpio.h: No such file or directory
> make[1]: *** No rule to make target `.depend', needed by `libbeagle.o'.  Stop.
> make[1]: Leaving directory
> `/home/beaglexm/clean_code_for_bootstuff/u-boot/board/ti/beagle'
> make: *** [board/ti/beagle/libbeagle.o] Error 2
> 
> It used to work fine so I think something broke recently. I also see
> that someone has posted a patch for this,
> 
> http://lists.denx.de/pipermail/u-boot/2011-August/098594.html
> 
> Is that the right fix?

There is already a fix in u-boot-arm for this.

http://git.denx.de/?p=u-boot/u-boot-arm.git;a=commit;h=9ec6b678e7c17684cbe5cc0e521cad9ce7a2c281

best regards,
Aneesh

> 
> Thanks,
> jaya
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] top of tree build fails for beagleboard
  2011-08-24 12:16 ` Aneesh V
@ 2011-08-26 11:50   ` Jaya Kumar
  0 siblings, 0 replies; 3+ messages in thread
From: Jaya Kumar @ 2011-08-26 11:50 UTC (permalink / raw)
  To: u-boot

On Wed, Aug 24, 2011 at 8:16 PM, Aneesh V <aneesh@ti.com> wrote:
>
> There is already a fix in u-boot-arm for this.
>
> http://git.denx.de/?p=u-boot/u-boot-arm.git;a=commit;h=9ec6b678e7c17684cbe5cc0e521cad9ce7a2c281
>

Thanks Aneesh.

btw, in case anyone else is interested in making top of tree
u-boot-arm work with beagleboard/-xm, I should mention that it doesn't
work properly with bbtoys-wifi. Also, the default config provided in
the tree still uses ttyS2 whereas the newer omap kernels all use ttyO2
so the serial console goes quiet with top of tree u-boot.

Details:
echo makeubootarm_for_beaglexm ; git clone
git://git.denx.de/u-boot-arm.git u-boot-arm/ ;  make
CROSS_COMPILE=arm-eabi- distclean && make CROSS_COMPILE=arm-eabi-
omap3_beagle_config && make CROSS_COMPILE=arm-eabi-

with Linux 2.6.39 built via OE gives:

U-Boot 2011.06-07676-g5557e86 (Aug 25 2011 - 00:32:36)

OMAP3630/3730-GP ES2.0, CPU-OPP2, L3-165MHz, Max CPU Clock 1 Ghz
OMAP3 Beagle board + LPDDR/NAND
I2C:   ready
DRAM:  512 MiB
NAND:  0 MiB
MMC:   OMAP SD/MMC: 0
*** Warning - readenv() failed, using default environment

In:    serial
Out:   serial
Err:   serial
Beagle xM Rev A
Recognized BeagleBoardToys WiFi board
Die ID #298600019ff80000015eeaa10100301f
Hit any key to stop autoboot:  0
SD/MMC found on device 0
reading uEnv.txt

** Unable to read "uEnv.txt" from mmc 0:1 **
reading uImage

3331756 bytes read
Booting from mmc ...
## Booting kernel from Legacy Image at 82000000 ...
   Image Name:   Linux-2.6.39
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3331692 Bytes = 3.2 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

(goes quiet with this)

If I manually modify bootargs and set console=ttyO2, then boots
normally. But there seems to be a difference between u-boot-arm.git
and OE's u-boot since wifi doesn't work when using u-boot-arm.git.

Taking a quick look at OE's u-boot recipe shows:
$ ls /home/test/oe/sources/openembedded/recipes/u-boot/u-boot-git/beagleboard/
0001-OMAP3-Beagle-Pin-Mux-initialization-glitch-fix.patch
0007-OMAP3-Add-DSS-driver-for-OMAP3.patch
0013-OMAP3-BeagleBoard-updated-default-configuration.patch
0002-OMAP-Remove-omapfb.debug-y-from-Beagle-and-Overo-env.patch
0008-BeagleBoard-Added-userbutton-command.patch
0014-Corrected-LED-name-match-finding-avoiding-extraneous.patch
0003-omap3_beagle-enable-the-use-of-a-plain-text-file-nam.patch
0009-OMAP3-beagle-pass-expansionboard-name-in-bootargs.patch
0015-omap3_beagle-Switch-default-console-from-ttyS2-to-tt.patch
0004-OMAP3-BeagleBoard-Enable-pullups-on-i2c2.patch
0010-Enable-DSS-driver-for-Beagle.patch
0016-BeagleBoard-Load-kernel-via-MMC-ext2-not-fat.patch
0005-ARMV7-OMAP3-BeagleBoard-add-xM-rev-B-to-ID-table.patch
0011-Add-led-command.patch
0017-BeagleBoard-add-xM-rev-C-to-ID-table.patch
0006-OMAP3-BeagleBoard-add-more-expansionboard-IDs.patch
0012-BeagleBoard-Added-LED-driver.patch

Most of these patches seem to already be in u-boot-arm but clearly
something isn't merged yet. I'll try to figure it out if I have some
time. Let me know if this is also a solved issue and I missed
something.

Thanks,
jaya

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-08-26 11:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-24 12:09 [U-Boot] top of tree build fails for beagleboard Jaya Kumar
2011-08-24 12:16 ` Aneesh V
2011-08-26 11:50   ` Jaya Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox