at91sam9260: Patches

SAITOU Toshihide toshi at ruby.ocn.ne.jp
Fri Aug 20 13:48:29 UTC 2010


In message: <4C531E13.1070008 at ansley.com>
            Greg Ansley <gja at ansley.com> writes:
> The following diff on top of my previous diff adds support
> for the AT91SAM9260 chip and Atmel AT91SAM9260-EK Evaluation
> card.
> 
> Using config file SAM9G20EK you can boot on both the 9260
> and 9G20 based development cards with the same binary.

Thank you for your patch!

My AT91SAM9XE256 board(*1) boot with this patch.
I only need is to edit the sys/arm/at91/at91reg.h to fake up.
(#define ARCH_ID_AT91SAM9XE256 0x329a93a0)

(*1) BLANCE-EX/ARM9: very similar to the AT91SAM9XE-EK but using
     LAN8187 Ether PHY and NAND flash is replaced with NOR flash.


U-Boot 1.3.4 (Aug 11 2010 - 10:05:04)

DRAM:  64 MB
In:    serial
Out:   serial
Err:   serial
Net:   macb0
macb0: Starting autonegotiation...
macb0: Autonegotiation complete
macb0: link up, 10Mbps half-duplex (lpa: 0x4021)
Hit any key to stop autoboot:  0 
macb0: link up, 10Mbps half-duplex (lpa: 0x4021)
Using macb0 device
TFTP from server 192.168.1.1; our IP address is 192.168.1.11
Filename 'kernel.bin'.
Load address: 0x20000000
Loading: #################################################################
	 #################################################################
	 #################################
done
Bytes transferred = 2382132 (245934 hex)
## Starting application at 0x20000000 ...
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2010 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 9.0-CURRENT #25: Fri Aug 20 21:47:19 JST 2010
    toshi@:/usr/obj/arm.arm/usr/src9/sys/SAM9G20EK_ME arm
CPU: ARM926EJ-S rev 5 (ARM9EJ-S core)
  DC enabled IC enabled WB enabled LABT
  16KB/32B 4-way Instruction cache
  8KB/32B 4-way write-back-locking-C Data cache
real memory  = 67108864 (64 MB)
avail memory = 62169088 (59 MB)
atmelarm0: <AT91 device bus> on motherboard
at91sam92600: <AT91SAM9260> on atmelarm0
at91_pmc0: <PMC> mem 0xdffffc00-0xdffffcff irq 1 on atmelarm0
at91_pmc0: Primary: 18432000 Hz PLLA: 198 MHz CPU: 198 MHz MCK: 99 MHz
at91_rst0: <AT91SAM9 Reset Controller> mem 0xdffffd00-0xdffffd0f irq 1 on atmelarm0
at91_rst0: [FILTER]
at91_rst0: Reset cause: Power On.
at91_pit0: toshi pit 00
at91_pit0: <AT91SAM9 PIT> mem 0xdffffd30-0xdffffd39 irq 1 on atmelarm0
at91_pit0: toshi pit 01
at91_pit0: [FILTER]
Timecounter "AT91SAM9 timer" frequency 6208000 Hz quality 1000
at91_pio0: <PIOA> mem 0xdffff400-0xdffff5ff irq 2 on atmelarm0
at91_pio0: ABSR: 0x3e400c3b OSR: 0 PSR:0xc00002c4 ODSR: 0
at91_pio0: [FILTER]
at91_pio1: <PIOB> mem 0xdffff600-0xdffff7ff irq 3 on atmelarm0
at91_pio1: ABSR: 0 OSR: 0 PSR:0xc03f3f0f ODSR: 0
at91_pio1: [FILTER]
at91_pio2: <PIOC> mem 0xdffff800-0xdffff9ff irq 4 on atmelarm0
at91_pio2: ABSR: 0 OSR: 0x800 PSR:0xfbcf ODSR: 0x800
at91_pio2: [FILTER]
at91_mci0: <MCI mmc/sd host bridge> mem 0xdffa8000-0xdffabfff irq 9 on atmelarm0
at91_mci0: [ITHREAD]
mmc0: <MMC/SD bus> on at91_mci0
uart0: <DBGU> mem 0xdffff200-0xdffff3ff irq 1 on atmelarm0
uart0: [FILTER]]W,.]L??console (115200,n,8,1)
uart1: <USART0> mem 0xdffb0000-0xdffb3fff irq 6 on atmelarm0
uart1: [FILTER]
uart2: <USART1> mem 0xdffb4000-0xdffb7fff irq 7 on atmelarm0
uart2: [FILTER]
uart3: <USART2> mem 0xdffb8000-0xdffbbfff irq 8 on atmelarm0
uart3: [FILTER]
uart4: <USART3> mem 0xdffd0000-0xdffd3fff irq 23 on atmelarm0
uart4: [FILTER]
uart5: <at91_usart> mem 0xdffd4000-0xdffd7fff irq 24 on atmelarm0
uart5: [FILTER]
uart6: <at91_usart> mem 0xdffd8000-0xdffdbfff irq 25 on atmelarm0
uart6: [FILTER]
ate0: <EMAC> mem 0xdffc4000-0xdffc7fff irq 21 on atmelarm0
miibus0: <MII bus> on ate0
ukphy0: <Generic IEEE 802.3u media interface> PHY 6 on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ate0: Ethernet address: 9e:5e:26:d4:92:10
ate0: [ITHREAD]
Timecounters tick every 10.000 msec
mmcsd0: 947MB <SD Memory Card> at mmc0 30MHz/4bit
GEOM: mmcsd0: partition 2 does not start on a track boundary.
GEOM: mmcsd0: partition 2 does not end on a track boundary.
GEOM: mmcsd0: partition 1 does not start on a track boundary.
GEOM: mmcsd0: partition 1 does not end on a track boundary.
GEOM: mmcsd0s2: geometry does not match label (64h,32s != 32h,63s).
Trying to mount root from ufs:/dev/mmcsd0s2a
warning: no time-of-day clock registered, system time will not be set accurately
Setting hostuuid: be52fc2b-a537-11df-bebc-005043014b1e.
Setting hostid: 0x12a57e64.
No suitable dump device was found.
Entropy harvesting: interrupts ethernet point_to_point kickstart.
swapon: /dev/da0s2b: No such file or directory
Starting file system checks:
/dev/mmcsd0s2a: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/mmcsd0s2a: clean, 277620 free (124 frags, 34687 blocks, 0.0% fragmentation)
Mounting local file systems:.
/etc/rc: WARNING: $hostname is not set -- see rc.conf(5).
Starting Network: lo0 ate0.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
	options=3<RXCSUM,TXCSUM>
	inet 127.0.0.1 netmask 0xff000000 
ate0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=80008<VLAN_MTU,LINKSTATE>
	ether 9e:5e:26:d4:92:10
	media: Ethernet autoselect (10baseT/UTP)
	status: active
Starting devd.
Starting Network: ate0.
ate0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=80008<VLAN_MTU,LINKSTATE>
	ether 9e:5e:26:d4:92:10
	media: Ethernet autoselect (10baseT/UTP)
	status: active
Creating and/or trimming log files.
Starting syslogd.
/etc/rc: WARNING: Dump device does not exist.  Savecore not run.
ELF ldconfig path: /lib /usr/lib /usr/lib/compat
Clearing /tmp (X related).
Updating motd:.
Starting cron.
Starting background file system checks in 60 seconds.

Fri Aug 13 01:52:13 UTC 2010

FreeBSD/arm (Amnesiac) (ttyu0)

login: 


SAITOU Toshihide


More information about the freebsd-arm mailing list