Помогите восстановить платку
chechestor
Пункты: 451
Регистрация: 07.04.2011
Добрый день.
Пользуюсь SK-AT91SAM9G45. Убил на платке u-boot, хотя жалко, он мне очень помогал... Хочу восстановить прошивку заводскую на платку.
Пробовал SAM-BA, не помогла: почему-то не заливается файл в NAND.
Пробовал на SD согласно инструкции поместить файлы со скриптом system_prepare_mat9g45, но похоже, какие-то проблемы с подключением sd. =( Подскажите, что не так делаю?
Заранее спасибо.
PS: нижке привожу лог сообщений
Цитата
Start SD card AT91Bootstrap...
Image size: 0x60b640, load_addr: 0x70008000, ep: 0x70008000
relocating linux kernel to proper address, dst: 0x70008000, src: 0x72000040, len: 0x60b640, machid: 0x8a4
Linux version 2.6.36-rc6 (user@debian) (gcc version 4.2.0 20070413 (prerelease) (CodeSourcery Sourcery G++ Lite 2007q1-10)) #305 Sun Jan 9 19:14:00 EST 2011
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: SK-MAT91SAM9G45
Ignoring unrecognised tag 0x54410009
Memory policy: ECC disabled, Data cache writeback
Clocks: CPU 400 MHz, master 133 MHz, main 12.000 MHz
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
Kernel command line: console=ttyS0,115200 ubi.mtd=1 root=ubi0:nandfs rw rootfstype=ubifs
PID hash table entries: 256 (order: -2, 1024 bytes)
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: 58636k/58636k available, 6900k reserved, 0K highmem
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
DMA : 0xffa00000 - 0xffe00000 ( 4 MB)
vmalloc : 0xc4800000 - 0xfee00000 ( 934 MB)
lowmem : 0xc0000000 - 0xc4000000 ( 64 MB)
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
.init : 0xc0008000 - 0xc0254000 (2352 kB)
.text : 0xc0254000 - 0xc05d5000 (3588 kB)
.data : 0xc05f0000 - 0xc06135c0 ( 142 kB)
Hierarchical RCU implementation.
Verbose stalled-CPUs detection is disabled.
NR_IRQS:192
AT91: 160 gpio irqs in 5 banks
Console: colour dummy device 80x30
console [ttyS0] enabled
Calibrating delay loop... 199.47 BogoMIPS (lpj=997376)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
i2c-gpio i2c-gpio.0: using pins 52 (SDA) and 53 (SCL)
cfg80211: Calling CRDA to update world regulatory domain
Switching to clocksource pit
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
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
msgmni has been set to 114
io scheduler noop registered (default)
atmel_lcdfb atmel_lcdfb.0: backlight control is not available
atmel_lcdfb atmel_lcdfb.0: 255KiB frame buffer at 73300000 (mapped at ffa00000)
Console: switching to colour frame buffer device 60x34
atmel_lcdfb atmel_lcdfb.0: fb0: Atmel LCDC at 0x00500000 (mapped at c4814000), irq 23
atmel_usart.0: ttyS0 at MMIO 0xfeffee00 (irq = 1) is a ATMEL_SERIAL
atmel_usart.1: ttyS1 at MMIO 0xfff8c000 (irq = 7) is a ATMEL_SERIAL
atmel_usart.2: ttyS2 at MMIO 0xfff90000 (irq = 8) is a ATMEL_SERIAL
brd: module loaded
loop: module loaded
NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 1609 at 0x00000c920000
Bad eraseblock 1772 at 0x00000dd80000
Creating 2 MTD partitions on "atmel_nand":
0x000000000000-0x000001000000 : "Boot partition"
0x000001000000-0x000010000000 : "FS partition"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size: 131072 bytes (128 KiB)
UBI: logical eraseblock size: 129024 bytes
UBI: smallest flash I/O unit: 2048
UBI: sub-page size: 512
UBI: VID header offset: 512 (aligned 512)
UBI: data offset: 2048
UBI: max. sequence number: 2
UBI: attached mtd1 to ubi0
UBI: MTD device name: "FS partition"
UBI: MTD device size: 240 MiB
UBI: number of good PEBs: 1918
UBI: number of bad PEBs: 2
UBI: max. allowed volumes: 128
UBI: wear-leveling threshold: 4096
UBI: number of internal volumes: 1
UBI: number of user volumes: 0
UBI: available PEBs: 1895
UBI: total number of reserved PEBs: 23
UBI: number of PEBs reserved for bad PEB handling: 19
UBI: max/mean erase counter: 2/1
UBI: image sequence number: 246722957
atmel_spi atmel_spi.0: Atmel SPI Controller at 0xfffa4000 (irq 14)
UBI: background thread "ubi_bgt0d" started, PID 837
atmel_spi atmel_spi.1: Atmel SPI Controller at 0xfffa8000 (irq 15)
macb macb: invalid hw address, using random
MACB_mii_bus: probed
eth0: Atmel MACB at 0xfffbc000 irq 25 (6a:f4:ae:44:5b:2e)
eth0: attached PHY driver [Micrel KS8001 or KS8721] (mii_bus:phy_addr=ffffffff:01, irq=-1)
usbcore: registered new interface driver rt2500usb
usbcore: registered new interface driver rt73usb
usbcore: registered new interface driver rt2800usb
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
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
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.
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
USB Serial support registered for FTDI USB Serial Device
usbcore: registered new interface driver ftdi_sio
ftdi_sio: v1.6.0:USB FTDI Serial Converters Driver
USB Serial support registered for moto-modem
usbcore: registered new interface driver moto-modem
USB Serial support registered for GSM modem (1-port)
usbcore: registered new interface driver option
option: v0.7.2:USB Driver for GSM modems
atmel_usba_udc atmel_usba_udc: MMIO registers at 0xfff78000 mapped at c481e000
atmel_usba_udc atmel_usba_udc: FIFO at 0x00600000 mapped at c4900000
mice: PS/2 mouse device common for all mice
setting trigger mode 2 for irq 149 failed (gpio_irq_type+0x0/0x20)
ads7846 spi3.0: trying pin change workaround on irq 149
ads7846 spi3.0: touchscreen, irq 149
input: ADS7843 Touchscreen as /devices/platform/spi_gpio.3/spi3.0/input/input0
rtc-at91sam9 at91_rtt.0: rtc core: registered at91_rtt as rtc0
rtc-at91sam9 at91_rtt.0: rtc0: SET TIME!
i2c /dev entries driver
at_hdmac at_hdmac: Atmel AHB DMA Controller ( cpy slave ), 8 channels
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
TCP cubic registered
NET: Registered protocol family 17
lib80211: common routines for IEEE802.11 drivers
rtc-at91sam9 at91_rtt.0: hctosys: unable to read the hardware clock
atmel_mci atmel_mci.0: Atmel MCI controller at 0xfff80000 irq 11, 1 slots
Freeing init memory: 2352K
mmc0: host does not support reading read-only switch. assuming write-enable.
mmc0: new high speed SDHC card at address b368
mmcblk0: mmc0:b368 USD 14.9 GiB
mmcblk0:
ubiattach: error!: cannot attach mtd1
error 17 (File exists)
UBIFS error (pid 978): ubifs_get_sb: cannot open "ubi0:nandfs", error -19
mount: mounting ubi0:nandfs on /mnt/nand failed: No such device
Initializing random number generator... done.
Starting wi-fi network ...
Error for wireless request "Set Mode" (8B06) :
SET failed on device wlan0 ; No such device.
Error for wireless request "Set ESSID" (8B1A) :
SET failed on device wlan0 ; No such device.
ifconfig: SIOCSIFADDR: No such device
USB Host power management utility.
For SK-MAT91SAM9G45 development board.
USB Host-0 turn ON, Host-1 turn ON
rm: can't remove '/initrd.image': No such file or directory
umount: can't umount /dev/mmcblk0p1: No such file or directory
mount: mounting /dev/mmcblk0p1 on /mnt/mmcblk0p1 failed: No such file or directory
cp: can't stat '/mnt/mmcblk0p1/system_prepare_mat9g45': No such file or directory
chmod: ./system_prepare: No such file or directory
/etc/init.d/rcS: line 53: ./system_prepare: not found
umount: can't umount /dev/mmcblk0: Invalid argument
chmod: ./system_prepare: No such file or directory
/etc/init.d/rcS: line 64: ./system_prepare: not found
umount: can't umount /dev/sda1: No such file or directory
mount: mounting /dev/sda1 on /mnt/sda1 failed: No such file or directory
cp: can't stat '/mnt/sda1/system_prepare_mat9g45': No such file or directory
chmod: ./system_prepare: No such file or directory
/etc/init.d/rcS: line 75: ./system_prepare: not found
Welcome to SK-MAT91SAM9G45!
System loaded in safe mode (rootfs in memory).
Pavel Ivanchenko
Admin
Пункты: 92091
Регистрация: 24.03.2009
Пол: Мужчина
Дело в разбивке разбивке самой SD карты:
Цитата mmcblk0: mmc0:b368 USD 14.9 GiB
mmcblk0:
А скрипт хочет
/mnt/mmcblk0p1 ...
Либо пробуйте с других карточек, либо подправте скрипт system_prepare_mat9g45 под ваши реалии монтирования карточки (кстати, она у вас в системе автоматом монтируется?).
sasamy
Пункты: 79218
Регистрация: 14.08.2009
Цитата
mmcblk0: mmc0:b368 USD 14.9 GiB
mmcblk0:
Тут похоже ядро не видит таблицу разделов , возможно ее вообще нет - windows так любит делать. Можете попробовать вручную смонтировать
#mount -t vfat /dev/mmcblk0 /mnt/mmcblk0p1
chechestor
Пункты: 451
Регистрация: 07.04.2011
sasamy, спасибо, помогло... =) исходное состояние восстановил!