Kernel config question
I am trying to build the console-image for the at91sam9g20-ek development board running linux 2.6.28. I have used the at91sam92g20dfc and the at91sam9263 as examples. I was hoping Ulf Samuelsson would create the at91sam9g20ek machine but did not see it in the dev branch yet so I thought I would try to make it and hopefully get comments from him or Marcin or someone. I am using the dev branch for the build and built with updates from pull yesterday. I have attached the boot log and the defconfig file.
I see at least two problems when I look at the boot log.
1. The floating point emulation - Netwinder is not started. In the defconfig file (/openembedded/recipes/linux/linux-2.6.28/at91sam9g20ek/defconfig) I have the following configured.
#
# Floating point emulation
#
#
# At least one emulation must be selected
#CONFIG_FPE_NWFPE=y
# CONFIG_FPE_NWFPE_XP is not set
# CONFIG_FPE_FASTFPE is not set
# CONFIG_VFP is not set
But when I look at the .config file under tmp/work/at91sam9g20ek-angstrom-linux-gnueabi/linux-2.6.28-r7/linux-2.6.28/ all I see is the following.
#
# Floating point emulation
#
#
# At least one emulation must be selected
#
# CONFIG_VFP is not set
If I look at at91sam9g20ek_defconfig in the following directories each file contains what I have in the defconfig file (has CONFIG_FPE_NWFPE=y).
Tmp/staging/at91sam9g20ek-angstrom-linux-gnueabi/kernel/arch/arm/configs
Tmp/work/at91sam9g20ek-angstrom-linux-gnueabi/linux-2.6.28-r7/linux-2.6.28/a rch/arm/configs
Tmp/work/at91sam9g20ek-angstrom-linux-gnueabi/linux-2.6.28-r7/staging-pkg/st aging/ at91sam9g20ek-angstrom-linux-gnueabi/kernel/arch/arm/configs
Does the kernel image (uImage) get built using the tmp/work/at91sam9g20ek-angstrom-linux-gnueabi/linux-2.6.28-r7/linux-2.6.28 directory? Why does the .config file not contain the statement for the floating point emulation?
2. It looks like the kernel has problems with the WM8731 audio IC. What is needed to fix the problem?
Configuring network interfaces... No state is present for card WM8731
/usr/sbin/alsactl: parse:1620: Unable to open file '/usr/share/alsa/init/00main'
: No such file or directory
No state is present for card WM8731
Thanks
Ed
Boot Log April 12, 2009
U-Boot 1.3.4 (Dec 12 2008 - 12:18:30)
DRAM: 64 MB NAND: 256 MiB In: serial Out: serial Err: serial Net: macb0 macb0: Starting autonegotiation... macb0: Autonegotiation complete macb0: link up, 100Mbps full-duplex (lpa: 0x45e1) Hit any key to stop autoboot: 0
NAND read: device 0 offset 0x200000, size 0x1d82b4
1934004 bytes read: OK
## Booting kernel from Legacy Image at 22200000 ...
Image Name: Angstrom/2.6.28/at91sam9g20ek Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 1933940 Bytes = 1.8 MB
Load Address: 20008000
Entry Point: 20008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
Uncompressing Linux............................................................. ................................................................... done, booting the kernel. Linux version 2.6.28 (ed@ed-hp-laptop) (gcc version 4.2.4) #1 PREEMPT Sun Apr 12
10:42:37 PDT 2009
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: Atmel AT91SAM9G20-EK
Memory policy: ECC disabled, Data cache writeback
Clocks: CPU 396 MHz, master 132 MHz, main 18.432 MHz
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256 Kernel command line: mem=64M console=ttyS0,115200 root=/dev/mtdblock1 rw rootfstype=jffs2
AT91: 96 gpio irqs in 3 banks
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x30
console [ttyS0] enabled
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 60748KB available (3672K code, 302K data, 132K init)
Calibrating delay loop... 197.83 BogoMIPS (lpj=989184)
Security Framework initialized
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: oknet_namespace: 484 bytes
NET: Registered protocol family 16
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
DLM (built Apr 12 2009 10:40:27) installed
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
msgmni has been set to 118
alg: No test for cipher_null (cipher_null-generic)
alg: No test for digest_null (digest_null-generic)
alg: No test for compress_null (compress_null-generic)
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler anticipatory registered (default)
atmel_usart.0: ttyS0 at MMIO 0xfefff200 (irq = 1) is a ATMEL_SERIAL atmel_usart.1: ttyS1 at MMIO 0xfffb0000 (irq = 6) is a ATMEL_SERIAL atmel_usart.2: ttyS2 at MMIO 0xfffb4000 (irq = 7) is a ATMEL_SERIAL
brd: module loaded
loop: module loaded
ssc ssc.0: Atmel SSC device at 0xc4878000 (irq 14)
PPP generic driver version 2.4.2MACB_mii_bus: probed
eth0: Atmel MACB at 0xfffc4000 irq 21 (3a:1f:34:08:54:54)
eth0: attached PHY driver [Davicom DM9161A] (mii_bus:phy_addr=ffffffff:00, irq=-1) Driver 'sd' needs updating - please use bus_type methods
NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit) AT91 NAND: 8-bit, Software ECC
Scanning device for bad blocks
Bad eraseblock 234 at 0x01d40000
Bad eraseblock 1555 at 0x0c260000
Creating 3 MTD partitions on "atmel_nand":
0x00000000-0x00400000 : "Bootstrap"
0x00400000-0x04000000 : "Partition 1"
0x04000000-0x10000000 : "Partition 2"
usbmon: debugfs is not availableohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driverat91_ohci at91_ohci: AT91 OHCIat91_ohci at91_ohci: new USB bus registered, assigned bus number 1at91_ohci at91_ohci: irq 20, io mem 0x00500000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
usb usb1: New USB device found, idVendor=1d6b, idProduct=0001
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: AT91 OHCI
usb usb1: Manufacturer: Linux 2.6.28 ohci_hcd
usb usb1: SerialNumber: at91
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
udc: at91_udc version 3 May 2006
mice: PS/2 mouse device common for all mice
rtc-at91sam9 at91_rtt.0: rtc core: registered at91_rtt as rtc0
i2c /dev entries driver
i2c-gpio i2c-gpio: using pins 55 (SDA) and 56 (SCL)
Registered led device: ds5
Registered led device: ds1
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
Advanced Linux Sound Architecture Driver Version 1.0.18rc3.
ASoC version 0.13.2
WM8731 Audio Codec 0.13<6>asoc: WM8731 <-> atmel-ssc0 mapping ok
ALSA device list:
#0: WM8731 (WM8731)
TCP cubic registered
NET: Registered protocol family 10
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
SCTP: Hash tables configured (established 2048 bind 4096)
rtc-at91sam9 at91_rtt.0: setting system clock to 2009-04-11 17:26:45 UTC (1239470805) Empty flash at 0x0099b788 ends at 0x0099b800
Empty flash at 0x02c090b8 ends at 0x02c09800
VFS: Mounted root (jffs2 filesystem).
Freeing init memory: 132K
INIT: version 2.86 booting
Starting udevudevd version 124 started
Remounting root file system...
ALSA: Restoring mixer settings...
Configuring network interfaces... No state is present for card WM8731 /usr/sbin/alsactl: parse:1620: Unable to open file '/usr/share/alsa/init/00main' : No such file or directory
No state is present for card WM8731
eth0 no wireless extensions.
udhcpc (v1.13.2) started
run-parts: /etc/udhcpc.d/00avahi-autoipd exited with code 1 Sending discover...
eth0: link up (100/Full)
Sending discover...
Sending select for 192.168.1.129...
Lease of 192.168.1.129 obtained, lease time 86400
run-parts: /etc/udhcpc.d/00avahi-autoipd exited with code 1 adding dns 68.87.76.178
adding dns 68.87.78.130
adding dns 68.87.69.146
done.
Starting portmap daemon: portmap. net.ipv4.conf.default.rp_filter = 1 net.ipv4.conf.all.rp_filter = 1
INIT: Entering runlevel: 5
Starting Dropbear SSH server: dropbear.
Starting system message bus: dbus.
Starting syslogd/klogd: done
* Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon
[ ok ]
.-------.
| | .-.
| | |-----.-----.-----.| | .----..-----.-----.
| | | __ | ---'| '--.| .-'| | |
| | | | | |--- || --'| | | ' | | | |
'---'---'--'--'--. |-----''----''--' '-----'-'-'-'
-' |
'---'The Angstrom Distribution at91sam9g20ek ttyS0
Angstrom 2009.X-test-20090411 at91sam9g20ek ttyS0
at91sam9g20ek login: