fpmoleg 0 June 18, 2008 Posted June 18, 2008 (edited) · Report post Привет я снес Linux, так получилось. Вопрос как переустановить Linux для STK1000. В работаю в ОС Win XP. Среда разработки программы AVR32 Studio. Edited June 18, 2008 by fpmoleg Quote Share this post Link to post Share on other sites More sharing options...
fpmoleg 0 June 19, 2008 Posted June 19, 2008 · Report post прошу модератора тему закрыть, так как разобрался с Linux. Quote Share this post Link to post Share on other sites More sharing options...
Master 0 June 27, 2008 Posted June 27, 2008 · Report post прошу модератора тему закрыть, так как разобрался с Linux. Раз потрудился написать вопрос, так уж напиши и ответ. Вдруг кто-то столкнётся с той же проблемой... Quote Share this post Link to post Share on other sites More sharing options...
fpmoleg 0 July 2, 2008 Posted July 2, 2008 · Report post Я написал письмо в саппорт от Атмел. Вот, что от них я получил: - 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" Вот его надо зашить в мк. На этом пока все. Изучение этой платы отложил на потом. Quote Share this post Link to post Share on other sites More sharing options...
gormih 0 December 29, 2008 Posted December 29, 2008 · Report post Я написал письмо в саппорт от Атмел. Вот, что от них я получил: - 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 теперь? В готовых драйверах может быть драйвер на мою флэшку? Quote Share this post Link to post Share on other sites More sharing options...
singlskv 0 December 29, 2008 Posted December 29, 2008 · Report post Из вышеуказанного следует, что драйвер флешки не подошел при монтировке раздела root. Подскажите, в каком месте править название драйвера? Пересобирать u-boot теперь? В готовых драйверах может быть драйвер на мою флэшку? Грузите buildroot вот от сюда: http://www.atmel.no/buildroot/ и пересобирайте все нафиг... :) ну или hexы готовые возмите. траблы с карточками там были изначално, но вроде сейчас(правда давно не проверял) все решили. Quote Share this post Link to post Share on other sites More sharing options...
gormih 0 January 13, 2009 Posted January 13, 2009 · Report post Грузите buildroot вот от сюда: http://www.atmel.no/buildroot/ и пересобирайте все нафиг... :) ну или hexы готовые возмите. траблы с карточками там были изначално, но вроде сейчас(правда давно не проверял) все решили. Не понятен один момент: На сайте атмела выложены бинарники образов ext2 (для флэшки), и в той же директории для каждой из версий сборок u-boot. По идее эти образы должны быть сконфигурированы как взаимодополняющие, однако на деле оказывается, что параметры bootarg и bootcmd не соответсвуют версии ядра. Подскажите, откуда берутся нужные параметры для конкретного ядра? Quote Share this post Link to post Share on other sites More sharing options...
singlskv 0 January 13, 2009 Posted January 13, 2009 · Report post Не понятен один момент: На сайте атмела выложены бинарники образов ext2 (для флэшки), и в той же директории для каждой из версий сборок u-boot. По идее эти образы должны быть сконфигурированы как взаимодополняющие, однако на деле оказывается, что параметры bootarg и bootcmd не соответсвуют версии ядра. Подскажите, откуда берутся нужные параметры для конкретного ядра? Я вот так и не понял, у Вас STK1000 или NGW100 ? параметры для них разные принципиально.., у NGW и root и user по умолчанию из flash/serial flash и конфиг в ю-бут на это ориентирован.. у STK1000 root из флеш а юзер с ммс... соответственно для всех этих вариантов различные конфиги и различные bootarg и bootcmd что у Вас ? Quote Share this post Link to post Share on other sites More sharing options...
gormih 0 January 14, 2009 Posted January 14, 2009 · Report post Я вот так и не понял, у Вас STK1000 или NGW100 ? параметры для них разные принципиально.., у NGW и root и user по умолчанию из flash/serial flash и конфиг в ю-бут на это ориентирован.. у STK1000 root из флеш а юзер с ммс... соответственно для всех этих вариантов различные конфиги и различные bootarg и bootcmd что у Вас ? STK1000... Бинарник юбута качал с билдрута атмел, в директории с ядром под stk1002 (у меня именно AP7000) Quote Share this post Link to post Share on other sites More sharing options...
singlskv 0 January 14, 2009 Posted January 14, 2009 · Report post STK1000... Бинарник юбута качал с билдрута атмел, в директории с ядром под stk1002 (у меня именно AP7000)У меня NGW100... Попробуйте как-то так: askenv bootcmd mmcinit;ext2load mmc 0:1 0x10400000 /boot/uImage;bootm 0x10400000 askenv bootargs console=ttyS0 root=/dev/mmcblk0p1 rootfstype=ext2 fbmem=600k rootwait saveenv reset только нужен достаточно новый u-boot особенно если SD > 2Gb Quote Share this post Link to post Share on other sites More sharing options...
gormih 0 January 14, 2009 Posted January 14, 2009 · Report post У меня NGW100... Попробуйте как-то так: askenv bootcmd mmcinit;ext2load mmc 0:1 0x10400000 /boot/uImage;bootm 0x10400000 askenv bootargs console=ttyS0 root=/dev/mmcblk0p1 rootfstype=ext2 fbmem=600k rootwait saveenv reset только нужен достаточно новый u-boot особенно если SD > 2Gb То же самое все. Вот еще интересный момент: Бинарники в билдруте на атмеле не содержат в /dev привычных для линукса драйверов устройств типа mmcblk0p1. Я записал на флэшку ядро с AVR32 Linux BSP CD. Там uImage вообще находится в / а не в /boot ... Получается, что бинарники сделаны как патч что ли, и ставить их тупо распаковкой на тот самый образ сверху? И на сколько это принципиально - иметь именно последнюю сборку линукса, если у меня последний юбут? Quote Share this post Link to post Share on other sites More sharing options...
singlskv 0 January 14, 2009 Posted January 14, 2009 · Report post То же самое все. А конкретно как ругается ? Какая у Вас SD карточка ? может попробовать другую ? Вот еще интересный момент: Бинарники в билдруте на атмеле не содержат в /dev привычных для линукса драйверов устройств типа mmcblk0p1. Я записал на флэшку ядро с AVR32 Linux BSP CD. Там uImage вообще находится в / а не в /boot ... Получается, что бинарники сделаны как патч что ли, и ставить их тупо распаковкой на тот самый образ сверху? Нет, это не апгрейд. uImage просто при какой-то смене версий переехал из / в /boot И на сколько это принципиально - иметь именно последнюю сборку линукса, если у меня последний юбут? Не принципиально, попробуйте взять бинарники версии 2.2.1 http://www.atmel.no/buildroot/binaries/v2.2.1/atstk1002/ Quote Share this post Link to post Share on other sites More sharing options...
gormih 0 January 14, 2009 Posted January 14, 2009 · Report post А конкретно как ругается ? Ругается так же как и раньше. 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) Какая у Вас SD карточка ? может попробовать другую ? A-Data 512MB. Пробовал еще Transcendent 128 Mb - та же история.. Не принципиально, попробуйте взять бинарники версии 2.2.1 http://www.atmel.no/buildroot/binaries/v2.2.1/atstk1002/ Результат тот же.. :-( с версией u-boot 2.2.0 то же самое Quote Share this post Link to post Share on other sites More sharing options...
singlskv 0 January 14, 2009 Posted January 14, 2009 · Report post Ругается так же как и раньше.Странно... А что у Вас на карточке в /etc/fstab ? да, и еще, покажите что в u-boot команда printenv выводит и еще после root=.... попробуйте добавить "rw" и как вариант rootwait=1 Quote Share this post Link to post Share on other sites More sharing options...
gormih 0 January 15, 2009 Posted January 15, 2009 · Report post Странно... А что у Вас на карточке в /etc/fstab ? /dev/mmcblk0p1 / ext2 defaults 1 1 proc /proc proc defaults 0 0 none /sys sysfs defaults 0 0 none /dev/pts devpts defaults 0 0 tmpfs /dev/shm tmpfs defaults 0 0 none /var/log tmpfs defaults 0 0 none /tmp tmpfs defaults,mode=1777 0 0 none /config configfs defaults 0 0 да, и еще, покажите что в u-boot команда printenv выводит U-Boot> printenv bootdelay=1 baudrate=115200 hostname="atstk1002-no-mplayer" ethact=macb0 bootcmd=mmcinit;ext2load mmc 0:1 0x10400000 /uImage;bootm 0x10400000 bootargs=console=ttyS0 root=/dev/mmcblk0p1 rootfstype=ext2 fbmem=600k rootwait stdin=serial stdout=serial stderr=serial и еще после root=.... попробуйте добавить "rw" и как вариант rootwait=1 Не проходит... Планирую уже звонить в Atmel - на вопросы по электронке не отвечают :-) Думаю все таки на несовместимость карточек... Подскажите плз модель карточки, на которой точно все работает... Желательно из тех, что можно свободно купить в любом салоне связи... кстати - mmc: command 55 failed (status: 0x00100025) - это нормально? Quote Share this post Link to post Share on other sites More sharing options...