Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Mar 2007 22:20:01 +0200
From:      "=?ISO-8859-5?B?zuDY2SCx4+DQ2g==?=" <jack.avenger@gmail.com>
To:        freebsd-arm@freebsd.org
Subject:   Re: Patch from http://people.FreeBSD.org/~cognet/
Message-ID:  <66aac5180703121320y24cf1473i87c90b8e38937804@mail.gmail.com>
In-Reply-To: <20070312.124335.-494096378.imp@bsdimp.com>
References:  <66aac5180703111135v704b037fl3def6b3a66984181@mail.gmail.com> <20070311.102135.1683323324.imp@bsdimp.com> <66aac5180703121126x66878bb1ub819ed5b4b7262e2@mail.gmail.com> <20070312.124335.-494096378.imp@bsdimp.com>

index | next in thread | previous in thread | raw e-mail

2007/3/12, M. Warner Losh <imp@bsdimp.com>:
>
> In message: <66aac5180703121126x66878bb1ub819ed5b4b7262e2@mail.gmail.com>
>             "�LN`XY �L1c`PZ" <jack.avenger@gmail.com> writes:
> : avenger# make TARGET=arm TARGET_ARCH=arm buildenv
> : #cd /usr/src/sys/boot/arm/at91
> : # make
> : ===> libat91 (all)
> : Warning: Object directory not changed from original
> : /usr/src/sys/boot/arm/at91/libat91
> : cc -Os -mcpu=arm9 -ffreestanding
> : -I/usr/src/sys/boot/arm/at91/libat91/../libat9
> : 1  -I/usr/src/sys/boot/arm/at91/libat91/../../../..
> : -I/usr/src/sys/boot/arm/at9
> : 1/libat91/../../../../arm  -D_KERNEL  -Wall -Waggregate-return
> : -Wnested-extern
> : s  -Wpointer-arith -Wshadow
> -Wwrite-strings  -Werror  -Wmissing-prototypes
> : -Wmi
> : ssing-declarations -DBOOT_KB920X  -c printf.c
> : printf.c:20:20: stdarg.h: No such file or directory
>
> That should be found.  I assume you have a full src tree, right?  I'm
> on travel today, but I'll see if I can recreate it tomorrow when in
> the office.  Since you can build a kernel, I assume you've done a
> buildworld, right?


Yes, I  have  full src tree. But I am  newbie to kernel-building process =)
I`ve not done builworld, just make kernell-toolchain.

: Also I can`t boot kernel. I have u-boot on my board so i just do next
> steps:
>
> : ## Starting application at 0x20000000 ...
> : �A�0�t=1�D�8�7�;1�G�3v!�3F�8�K=n�;�7�<
>
> This almost certaily is a wrong baud rate problem.  I believe that
> this may be the result of the following #define:
>
> at91rm92reg.h:#define AT91C_MASTER_CLOCK        60000000
>
> which the uart uses to get the RCLK to generate characters.  If the
> uboot loader doesn't setup the master clock to be 60MHz,........


You are right. After changing AT91C_MASTER_CLOCK to 45000000 all is alright.
I newer seen AT91RM9200 data sheet before, so I must spend some time to read
It

Thank you very much!

help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?66aac5180703121320y24cf1473i87c90b8e38937804>