Цитата(fpmoleg @ Jul 2 2008, 13:45)

Я написал письмо в саппорт от Атмел. Вот, что от них я получил:
- Download the image: www.atmel.com/avr32 -> Tools & Software -> ATSTK1000 -> STK1000 BSP SD Image
- unpack the file: # gunzip STK1000_BSP_SD_image_2.0.0.img.gz
- write file to sdcard: # dd if=STK1000_BSP_SD_image_2.0.0.img of=/dev/xxx
where xxx is the sdcard device. NOTE: Be very careful with the dd command, and make sure the device are correct.
in windows, use a program called ntrw.exe to write the image. "ntrw write inputfile X:” where “X:” is the SD-card. Note that you will not be able to read the sd-card on windows if the file system on it is a Linux type.
Так же нашел инструкцию по востановлению, в самой AVR32 Studio. Так как я флеш карту при написании программы удалил из слота. Затер только загрузчик, который пишется в память программы. На диске(который идет в комплекте) есть файл "u-boot.bin" Вот его надо зашить в мк. На этом пока все. Изучение этой платы отложил на потом.
Столкнулся с той же проблемой. Утилита ntrw в простейшем случае не способна осуществить образ на флэшку. Копировал образ с помощью LiveCd от Ubuntu командой dd if = file.img of = /dev/xxx
Всё бы хорошо, НО:
Код
U-Boot 1.1.4-at0 (Mar 9 2007 - 10:52:10)
U-Boot code: 00000000 -> 000153ef data: 24000000 -> 24003e10
SDRAM: 8 MB at address 0x10000000
Testing SDRAM...OK
malloc: Using memory from 0x10780000 to 0x10800000
Flash: 8 MB at address 0x00000000
DRAM Configuration:
Bank #0: 10000000 8 MB
*** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
Net: macb0
Press SPACE to abort autoboot in 2 seconds
mmc: command 55 failed (status: 0x00100025)
Manufacturer ID: 0B
OEM/Application ID: 0000
Product name: 029607
Product Revision: 1.0
Product Serial Number: 2056084956
Manufacturing Date: 02/09
CSD data: 905e002a 1f5983d3 edb707ff 964000f3
CSD structure version: 1.2
MMC System Spec version: 4
Card command classes: 1f5
Read block length: 512
Supports partial reads
Write block length: 512
Does not support partial writes
Supports group WP: 32
Card capacity: 513802240 bytes
File format: 0/0
Write protection:
mmc: Using 24576 cycles data timeout (DTOR=0x56)
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
..................................................................
879362 bytes read
## Booting image at 90250000 ...
Image Name: Linux-2.6.18-at1
Image Type: AVR32 Linux Kernel Image (gzip compressed)
Data Size: 879298 Bytes = 858.7 kB
Load Address: 10000000
Entry Point: 90000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting kernel at 90000000 (params at 10780040)...
clk pixclk: new parent pll0 (was (null))
clk pixclk: new rate 140000000 (actual rate 140000000)
pdc pdc.0: Atmel Peripheral DMA Controller enabled
EIM: External Interrupt Module at 0xfff00000, IRQ 19
EIM: Handling 4 external IRQs, starting with IRQ 64
smc smc.0: Atmel Static Memory Controller at 0xfff03400
pio0: Atmel Port Multiplexer at 0xffe02800 (irq 13)
pio0: Handling 32 external IRQs, starting with IRQ 96
pio1: Atmel Port Multiplexer at 0xffe02c00 (irq 14)
pio1: Handling 32 external IRQs, starting with IRQ 128
pio2: Atmel Port Multiplexer at 0xffe03000 (irq 15)
pio2: Handling 32 external IRQs, starting with IRQ 160
pio3: Atmel Port Multiplexer at 0xffe03400 (irq 16)
pio3: Handling 32 external IRQs, starting with IRQ 192
dmac0: DesignWare DMA controller at 0xff200000 irq 2
NET: Registered protocol family 2
IP route cache hash table entries: 64 (order: -4, 256 bytes)
TCP established hash table entries: 256 (order: -2, 1024 bytes)
TCP bind hash table entries: 128 (order: -3, 512 bytes)
TCP: Hash tables configured (established 256 bind 128)
TCP reno registered
JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
io scheduler noop registered (default)
fb0: Atmel LCDC at 0xff000000 (mapped at ff000000), irq 1
Serial: Atmel USART3 driver
usart.1: ttyS0 at MMIO 0xffe01000 (irq = 7) is a USART3
usart.2: ttyS1 at MMIO 0xffe01400 (irq = 8) is a USART3
usart.3: ttyS2 at MMIO 0xffe01800 (irq = 9) is a USART3
eth0: Atmel MACB at 0xfff01800 irq 25 (00:42:b2:13:36:50)
physmap platform flash device: 00800000 at 00000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
Amd/Fujitsu Extended Query Table at 0x0041
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
RedBoot partition parsing not available
Using physmap partition information
Creating 3 MTD partitions on "physmap-flash.0":
0x00000000-0x00020000 : "u-boot"
0x00020000-0x007f0000 : "root"
0x007f0000-0x00800000 : "env"
atmel_spi atmel_spi.0: Atmel SPI Controller at 0xffe00000 (irq 3)
mmc0: Atmel MCI controller at 0xfff02400 irq 28
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Time: avr32 clocksource has been installed.
Root-NFS: No NFS server available, giving up.
VFS: Unable to mount root fs via NFS, trying floppy.
[color=#FF0000]VFS: Cannot open root device "mmcblk0p1" or unknown-block(2,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)[/color]
Из вышеуказанного следует, что драйвер флешки не подошел при монтировке раздела root.
Подскажите, в каком месте править название драйвера? Пересобирать u-boot теперь? В готовых драйверах может быть драйвер на мою флэшку?