porting freebsd to at91sam9g45 ( SBC6045 board)

Aleksander Dutkowski adutkowski at gmail.com
Sun Jan 8 00:40:39 UTC 2012


On Tue, Jan 3, 2012 at 5:07 PM, Olivier Houchard <mlfbsd at ci0.org> wrote:
>
> Hmm, I don't know the SAM9G45, but reading the linux stuff, the UART code
> should be the same, maybe the way to retrieve the amount of memory changed,
> and at91_ramsize() is wrong for your CPU, you can test it quickly by
> hardcoding the ram size in at91_ramsize(), or maybe there's some new stuff to
> enable the DBGU port ?
>
> Regards,
>
> Olivier
>




ok, so I spent couple of days to read the code, but it still doesn't work ;)




I dont know, why AT91_DBGU_BASE and especially AT91SAM9G20_BASE is set
to 0xD0000000 when base for Internal Peripherals for sam9g20 is
0xF0000000 (I've fixed it already).
Ive also changed AT91SAM9G20_DBGU_BASE to proper value and all
at91_cpu_is() function calls.
Seems that sam9g45 doesn't have SDRAMC, so I've hardcoded
at91_ramsize(), just like you've said.
but in sys/arm/at91/at91sam9g20.c:238, the author says that it has to
be changed for other CPUs.
Seems that there is much more work to do ;)



I will still be very pleased, if you're able to give me a hint about
lines of code which might give trouble.


Regards,
Aleksander


More information about the freebsd-arm mailing list