Forum: Mikrocontroller und Digitale Elektronik AVR32 Buildroot Versionen + Grasshopper


von E. G. (grasshuepf)


Lesenswert?

Hallo allerseits,

versuche grad an mein Grasshopper die SD-karten Treiber zu Aktivieren. 
Welche Buildrootumgebung sollte ich dafür nehmen. Im Embedded-Project 
Forum ist eine aktuelle iso:
http://forum.embedded-projects.net/viewtopic.php?id=688

Leider hat es bei mir Damit nicht geklappt:
1
U-Boot 1.3.2-g02c22ce0-dirty (May 14 2008 - 13:13:06) 
2
3
U-Boot code: 00000000 -> 0000e820  data: 00014098 -> 0001a788
4
SDRAM: 64 MB at address 0x10000000
5
Testing SDRAM...OK        
6
malloc: Using memory from 0x13fa5000 to 0x13fe5000
7
DMA: Using memory from 0x13fa1000 to 0x13fa5000
8
Flash:  8 MB at address 0x00000000
9
DRAM Configuration:
10
Bank #0: 10000000 64 MB
11
In:    serial
12
Out:   serial
13
Err:   serial
14
Net:   macb0
15
Press SPACE to abort autoboot in 3 seconds
16
partition changed to nor0,2
17
### JFFS2 loading '/boot/uImage' to 0x10400000
18
Scanning JFFS2 FS: ......... done.
19
### JFFS2 load complete: 1347187 bytes loaded to 0x10400000
20
## Booting image at 10400000 ...
21
   Image Name:   Linux-2.6.28.4
22
   Image Type:   AVR32 Linux Kernel Image (gzip compressed)
23
   Data Size:    1347123 Bytes =  1.3 MB
24
   Load Address: 10000000
25
   Entry Point:  90000000
26
   Verifying Checksum ... OK
27
   Uncompressing Kernel Image ... OK
28
29
Starting kernel at 90000000 (params at 13fa5008)...
30
31
Linux version 2.6.28.4 (aytac@ANT-PC5) (gcc version 4.2.2-atmel.1.1.3.avr32linux.1) #1 Mon Jun 15 17:38:07 CEST 2009
32
CPU: AT32AP700x chip revision C
33
CPU: AP7 [01] core revision 0 (AVR32B arch revision 1)
34
CPU: MMU configuration: Shared TLB
35
CPU: features: dsp simd ocd perfctr java
36
CPU: Running at 140.000 MHz
37
Physical memory:
38
  10000000-13ffffff
39
Reserved memory:
40
  10000000-10186ed7: Kernel code
41
  10186ed8-1023caff: Kernel data
42
Exception vectors start at 90011000
43
CPU: Paging enabled
44
Node 0: start_pfn = 0x10000, low = 0x14000
45
Node 0: mem_map starts at 9023f000
46
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
47
Kernel command line: root=1F02 rootfstype=jffs2 mtdparts=physmap-flash.0:128k(boot)ro,64k(env)ro,-(root)
48
PID hash table entries: 256 (order: 8, 1024 bytes)
49
avr32_comparator: irq 0, 140.000 MHz
50
Console: colour dummy device 80x25
51
console [tty0] enabled
52
console [ttyS0] enabled
53
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
54
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
55
Memory: 62608k/62672k available (1495k kernel code, 2864k reserved, 142k data, 68k init)
56
Calibrating delay using timer specific routine.. 282.69 BogoMIPS (lpj=469915)
57
Mount-cache hash table entries: 512
58
net_namespace: 716 bytes
59
smc smc.0: Atmel Static Memory Controller at 0xfff03400
60
NET: Registered protocol family 16
61
pdc pdc.0: Atmel Peripheral DMA Controller enabled
62
at32_eic at32_eic.0: External Interrupt Controller at 0xfff00100, IRQ 19
63
at32_eic at32_eic.0: Handling 4 external IRQs, starting with IRQ 64
64
AVR32 AP Power Management enabled
65
ICnova: 9 Leds
66
bio: create slab <bio-0> at 0
67
NET: Registered protocol family 2
68
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
69
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
70
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
71
TCP: Hash tables configured (established 2048 bind 2048)
72
TCP reno registered
73
NET: Registered protocol family 1
74
audit: initializing netlink socket (disabled)
75
type=2000 audit(1167609600.359:1): initialized
76
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
77
msgmni has been set to 122
78
alg: hash: Chunking test 1 failed for md5-generic
79
00000000: 24 e5 f6 e1 36 2e 67 bb a6 f6 2f 5f 81 ff bb a4 
80
alg: No test for stdrng (krng)
81
io scheduler noop registered
82
io scheduler cfq registered (default)
83
atmel_usart.0: ttyS0 at MMIO 0xffe01000 (irq = 7) is a ATMEL_SERIAL
84
atmel_usart.1: ttyS1 at MMIO 0xffe00c00 (irq = 6) is a ATMEL_SERIAL
85
eth0 (macb): not using net_device_ops yet
86
MACB_mii_bus: probed
87
eth0: Atmel MACB at 0xfff01800 irq 25 (00:1f:e5:00:09:30)
88
eth0: attached PHY driver [Davicom DM9161A] (mii_bus:phy_addr=0:00, irq=67)
89
physmap platform flash device: 00800000 at 00000000
90
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
91
 Amd/Fujitsu Extended Query Table at 0x0041
92
number of CFI chips: 1
93
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
94
3 cmdlinepart partitions found on MTD device physmap-flash.0
95
Creating 3 MTD partitions on "physmap-flash.0":
96
0x00000000-0x00020000 : "boot"
97
0x00020000-0x00030000 : "env"
98
0x00030000-0x00800000 : "root"
99
------------[ cut here ]------------
100
WARNING: at fs/sysfs/dir.c:462 sysfs_add_one+0x1c/0x2c()
101
sysfs: duplicate filename 'physmap-flash.0' can not be created
102
Modules linked in:
103
Call trace:
104
 [<9001b756>] warn_slowpath+0x42/0x54
105
 [<9003a562>] __free_pages+0x22/0x24
106
 [<9001a12a>] free_task+0x1e/0x24
107
 [<9001b33c>] __put_task_struct+0x72/0x76
108
 [<9001c8da>] delayed_put_task_struct+0x1e/0x20
109
 [<90036800>] __rcu_process_callbacks+0xa0/0x168
110
 [<900368da>] rcu_process_callbacks+0x12/0x20
111
 [<900c9470>] ida_get_new_above+0x1c/0x10c
112
 [<90056a88>] ifind+0x8/0x3c
113
 [<90072a56>] sysfs_ilookup_test+0x0/0xa
114
 [<9000030c>] kernel_init+0x0/0x90
115
 [<90056ada>] ilookup5+0x1e/0x24
116
 [<90072f30>] sysfs_add_one+0x1c/0x2c
117
 [<9000030c>] kernel_init+0x0/0x90
118
 [<9007339a>] create_dir+0x32/0x5c
119
 [<900733e6>] sysfs_create_dir+0x22/0x30
120
 [<90008a58>] physmap_init+0x0/0x20
121
 [<9000030c>] kernel_init+0x0/0x90
122
 [<900c9c28>] kobject_add_internal+0x90/0x140
123
 [<900c9c36>] kobject_add_internal+0x9e/0x140
124
 [<90008a58>] physmap_init+0x0/0x20
125
 [<900c9d6c>] kobject_add_varg+0x20/0x2c
126
 [<90008a58>] physmap_init+0x0/0x20
127
 [<9000030c>] kernel_init+0x0/0x90
128
 [<900c9dcc>] kobject_add+0x30/0x3c
129
 [<90008a58>] physmap_init+0x0/0x20
130
 [<900eaca4>] device_add+0x64/0x38c
131
 [<900c9932>] kobject_init_internal+0xe/0x30
132
 [<9001bffc>] printk+0xc/0x10
133
 [<900ed380>] platform_device_add+0xc0/0x110
134
 [<90008a58>] physmap_init+0x0/0x20
135
 [<9000030c>] kernel_init+0x0/0x90
136
 [<900ed41a>] platform_device_register+0xe/0x10
137
 [<90008a58>] physmap_init+0x0/0x20
138
 [<90008a70>] physmap_init+0x18/0x20
139
 [<90008a58>] physmap_init+0x0/0x20
140
 [<900122f2>] do_one_initcall+0x32/0x104
141
 [<900100b4>] __early_initcall_end+0x288/0x30c
142
 [<9000fe2c>] __early_initcall_end+0x0/0x30c
143
 [<90008a58>] physmap_init+0x0/0x20
144
 [<900364a8>] register_irq_proc+0x48/0x6c
145
 [<900364f2>] init_irq_proc+0x26/0x48
146
 [<90000352>] kernel_init+0x46/0x90
147
 [<900100b4>] __early_initcall_end+0x288/0x30c
148
 [<9000fe2c>] __early_initcall_end+0x0/0x30c
149
 [<9001d9c4>] do_exit+0x0/0x460
150
 [<9000030c>] kernel_init+0x0/0x90
151
 [<9001d9c4>] do_exit+0x0/0x460
152
153
---[ end trace 1fd1bac2a4d434fe ]---
154
kobject_add_internal failed for physmap-flash.0 with -EEXIST, don't try to register things with the same name in the same directory.
155
Call trace:
156
 [<900ca05c>] kobject_rename+0xdc/0x11c
157
 [<900c9c94>] kobject_add_internal+0xfc/0x140
158
 [<900c9d6c>] kobject_add_varg+0x20/0x2c
159
 [<90008a58>] physmap_init+0x0/0x20
160
 [<9000030c>] kernel_init+0x0/0x90
161
 [<900c9dcc>] kobject_add+0x30/0x3c
162
 [<90008a58>] physmap_init+0x0/0x20
163
 [<900eaca4>] device_add+0x64/0x38c
164
 [<900c9932>] kobject_init_internal+0xe/0x30
165
 [<9001bffc>] printk+0xc/0x10
166
 [<900ed380>] platform_device_add+0xc0/0x110
167
 [<90008a58>] physmap_init+0x0/0x20
168
 [<9000030c>] kernel_init+0x0/0x90
169
 [<900ed41a>] platform_device_register+0xe/0x10
170
 [<90008a58>] physmap_init+0x0/0x20
171
 [<90008a70>] physmap_init+0x18/0x20
172
 [<90008a58>] physmap_init+0x0/0x20
173
 [<900122f2>] do_one_initcall+0x32/0x104
174
 [<900100b4>] __early_initcall_end+0x288/0x30c
175
 [<9000fe2c>] __early_initcall_end+0x0/0x30c
176
 [<90008a58>] physmap_init+0x0/0x20
177
 [<900364a8>] register_irq_proc+0x48/0x6c
178
 [<900364f2>] init_irq_proc+0x26/0x48
179
 [<90000352>] kernel_init+0x46/0x90
180
 [<900100b4>] __early_initcall_end+0x288/0x30c
181
 [<9000fe2c>] __early_initcall_end+0x0/0x30c
182
 [<9001d9c4>] do_exit+0x0/0x460
183
 [<9000030c>] kernel_init+0x0/0x90
184
 [<9001d9c4>] do_exit+0x0/0x460
185
186
at32_wdt at32_wdt.0: AT32AP700X WDT at 0xfff000b0, timeout 2 sec (nowayout=0)
187
Registered led device: led1:green
188
Registered led device: led2:green
189
Registered led device: led3:green
190
Registered led device: led4:green
191
Registered led device: led5:green
192
Registered led device: led6:green
193
Registered led device: led7:green
194
Registered led device: led8:green
195
Registered led device: pwrled:red
196
dw_dmac.0: DesignWare DMA Controller, 3 channels
197
TCP cubic registered
198
NET: Registered protocol family 10
199
IPv6 over IPv4 tunneling driver
200
NET: Registered protocol family 17
201
RPC: Registered udp transport module.
202
RPC: Registered tcp transport module.
203
cpufreq: AT32AP CPU frequency driver
204
VFS: Mounted root (jffs2 filesystem) on device 31:2.
205
Freeing init memory: 68K (90000000 - 90011000)
206
init started: BusyBox v1.5.0 (2008-04-24 11:31:03 CEST) multi-call binary
207
starting pid 842, tty '/dev/ttyS0': '/sbin/getty'
208
209
210
211
Thank you for using In-Circuit ICNova
212
213
icnova login: eth0: link up (100/Full)

Hat jemand eine Idee was das Problem ist?

von Gast (Gast)


Lesenswert?

> versuche grad an mein Grasshopper die SD-karten Treiber zu Aktivieren..

Der Grasshopper hat doch gar keinen SD-Kartenslot....!?

von E. G. (grasshuepf)


Lesenswert?

An sich nicht, allerdings habe ich eine angeschlossen. Nach der 
Schaltung im EP-journal 2.

Dafür muss ich, soweit ich das richtig verstanden habe, anhang der 
Buildrootumgebung den Treiber aktivieren.

von Gast (Gast)


Lesenswert?

bist du genau so vorgegangen wie auf Seite 10 des EPJ-02 beschrieben?
Hast du im Buildrout die Datei icnova_base.c editiert und make 
menuconfig ausgeführt?

von E. Grass (Gast)


Lesenswert?

Ja bin ich. Allerdings habe ich Treiber nicht als Module sondern direkt 
in den Kernel integriert gehabt.

Ich habe inzwischen schon mit ubuntu 8.04 LTS ein Dateisystem erstellt.
Allerdings ist der bootvorgang hängengeblieben:
1
U-Boot 1.3.2-g02c22ce0-dirty (May 14 2008 - 13:13:06) 
2
3
U-Boot code: 00000000 -> 0000e820 data: 00014098 -> 0001a788
4
SDRAM: 64 MB at address 0x10000000
5
Testing SDRAM...OK 
6
malloc: Using memory from 0x13fa5000 to 0x13fe5000
7
DMA: Using memory from 0x13fa1000 to 0x13fa5000
8
Flash: 8 MB at address 0x00000000
9
DRAM Configuration:
10
Bank #0: 10000000 64 MB
11
In: serial
12
Out: serial
13
Err: serial
14
Net: macb0
15
Press SPACE to abort autoboot in 3 seconds
16
partition changed to nor0,2
17
### JFFS2 loading '/boot/uImage' to 0x10400000
18
Scanning JFFS2 FS: ....... done.
19
### JFFS2 load complete: 1370999 bytes loaded to 0x10400000
20
## Booting image at 10400000 ...
21
Image Name: Linux-2.6.28.4
22
Image Type: AVR32 Linux Kernel Image (gzip compressed)
23
Data Size: 1370935 Bytes = 1.3 MB
24
Load Address: 10000000
25
Entry Point: 90000000
26
Verifying Checksum ... OK
27
Uncompressing Kernel Image ... OK
28
29
Starting kernel at 90000000 (params at 13fa5008)..

Ich habe einfach nur die uImage auf das Board anhand NFS kopiert gehabt, 
und eine Sicherung der eignetlichen uImage auf uImage_old geändert.

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.