Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: How the demo linux of at91sam9g45ekes is compiled?
PostPosted: Wed Apr 13, 2011 8:32 am 
Offline

Joined: Wed Jul 07, 2010 7:10 am
Posts: 8
when I use the kernel from the demo(ftp://www.at91.com/pub/demo/linux4sam_2 ... 45ekes.zip), myboard can find usb/sd/audio success.

Starting kernel ...
Uncompressing Linux.............................................................................................................. done, booting the kernel.
Linux version 2.6.30 (nferre@bendor) (gcc version 4.2.4) #1 Wed Mar 10 00:15:46 CET 2010
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: Atmel AT91SAM9G45-EKES
...
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
...
Driver 'sd' needs updating - please use bus_type methods
...
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
atmel-ehci atmel-ehci: Atmel EHCI UHP HS
atmel-ehci atmel-ehci: new USB bus registered, assigned bus number 1
atmel-ehci atmel-ehci: irq 22, io mem 0x00800000
atmel-ehci atmel-ehci: USB 2.0 started, EHCI 1.00
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: Atmel EHCI UHP HS
usb usb1: Manufacturer: Linux 2.6.30 ehci_hcd
usb usb1: SerialNumber: atmel-ehci
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
at91_ohci at91_ohci: AT91 OHCI
at91_ohci at91_ohci: new USB bus registered, assigned bus number 2
at91_ohci at91_ohci: irq 22, io mem 0x00700000
usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: AT91 OHCI
usb usb2: Manufacturer: Linux 2.6.30 ohci_hcd
usb usb2: SerialNumber: at91
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
atmel_usba_udc atmel_usba_udc: MMIO registers at 0xfff78000 mapped at c885c000
atmel_usba_udc atmel_usba_udc: FIFO at 0x00600000 mapped at c8900000

at_hdmac at_hdmac: Atmel AHB DMA Controller ( cpy slave ), 8 channels
Advanced Linux Sound Architecture Driver Version 1.0.20.
atmel_ac97c atmel_ac97c.0: Atmel AC97 controller at 0xc8880000, irq = 24
ALSA device list:
#0: Atmel AC97 controller

atmel_mci atmel_mci.0: Using dma0chan0 for DMA transfers
atmel_mci atmel_mci.0: Atmel MCI controller at 0xfff80000 irq 11, 1 slots
atmel_mci atmel_mci.1: Using dma0chan1 for DMA transfers
atmel_mci atmel_mci.1: Atmel MCI controller at 0xfffd0000 irq 29, 1 slots
Empty flash at 0x00c50bb0 ends at 0x00c51000

mmc0: host does not support reading read-only switch. assuming write-enable.
mmc0: new SD card at address 0002
mmcblk0: mmc0:0002 SD 1.87 GiB
mmcblk0: p1 p2

# lsusb
Bus 002 Device 001: ID 1d6b:0001
Bus 001 Device 001: ID 1d6b:0002


When I use the kernel I compiled from souce codes following the guide of "http://www.at91.com/linux4sam/bin/view/Linux4SAM/LinuxKernel", myboard cannot drive usb/sd/audio.

wget linux-2.6.30.tar.bz2
tar xvjf linux-2.6.30.tar.bz2
cd linux-2.6.30
wget 2.6.30-at91.patch.gz
wget 2.6.30-at91-exp.4.tar.gz
zcat 2.6.30-at91.patch.gz | patch -p1
zcat 2.6.30-at91-exp.4.tar.gz | patch -p1
wget at91sam9g45ekes_defconfig
cp at91sam9g45ekes_defconfig .config
make ARCH=arm oldconfig
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- menuconfig
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- clean
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- uImage



#dmesg
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
at91_ohci at91_ohci: AT91 OHCI
at91_ohci at91_ohci: new USB bus registered, assigned bus number 1
at91_ohci at91_ohci: irq 22, io mem 0x00700000
at91_ohci at91_ohci: init err (00000000 0000)
ohci_hcd: can't start at91
at91_ohci at91_ohci: startup error -75
at91_ohci at91_ohci: USB bus 1 deregistered
at91_ohci: probe of at91_ohci failed with error -75
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
atmel_usba_udc atmel_usba_udc: MMIO registers at 0xfff78000 mapped at c885c000
atmel_usba_udc atmel_usba_udc: FIFO at 0x00600000 mapped at c8900000
AT91SAM9 login: root
# lsusb
#

Advanced Linux Sound Architecture Driver Version 1.0.20.
ALSA device list:
No soundcards found.


Thanks.


Top
 Profile  
 
 Post subject: Re: How the demo linux of at91sam9g45ekes is compiled?
PostPosted: Wed Apr 13, 2011 9:29 am 
Offline

Joined: Wed Jul 07, 2010 7:10 am
Posts: 8
I give wrong patch :(
It's ok now.

Don't "zcat 2.6.30-at91-exp.4.tar.gz | patch -p1"
But:
tar xzf 2.6.30-at91-exp.4.tar.gz
for p in 2.6.30-at91-exp.4/*; do patch -p1 < $p ; done


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: