Patch from http://people.FreeBSD.org/~cognet/

Юрий Бурак jack.avenger at gmail.com
Mon Mar 12 20:20:02 UTC 2007


2007/3/12, M. Warner Losh <imp at bsdimp.com>:
>
> In message: <66aac5180703121126x66878bb1ub819ed5b4b7262e2 at mail.gmail.com>
>             "�LN`XY �L1c`PZ" <jack.avenger at 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!


More information about the freebsd-arm mailing list