Jump to content

    

Первый запуск платы

экран не такой как в оригинале? ошибка в инициализации или попутаны страницы. их возможно как раз 4-ре.

Share this post


Link to post
Share on other sites
экран не такой как в оригинале? ошибка в инициализации или попутаны страницы. их возможно как раз 4-ре.

Экран TFT монитор 17 дюймов.

Share this post


Link to post
Share on other sites

Проблкма с экраном не решена :smile3046:

 

 

Может кто подскажет, как запустить в другом расширении фреймбуффер (не 640х480, как сейчас, а на 800х600). Хочу определиться, это апаратная проблема, или программная.

Share this post


Link to post
Share on other sites

У кого есть такая плата

Приведите, пожалуйста, лог загрузки линукса.

Share this post


Link to post
Share on other sites

Продолжение истории...

Получил держатель SD карты, всунул в него карту памяти SD, записал на нее rootfs c siberia-ge.com. Запускаю плату и получаю:

RomBOOT                                                                 
>Start AT91Bootstrap...                                                 
                                                                        

U-Boot 1.1.5 (Feb  9 2008 - 19:28:48)

DRAM:  64 MB
NAND:  NAND device: Manufacturer ID: 0xec, Chip ID: 0xd3 ( NAND 1GiB 3,3V 8-bit)
NAND: Pagesize: 2048, Blocksize: 256K, OOBsize: 64                              
1024 MiB                                                                        
DataFlash:AT45DB321                                                             
Nb pages:   8192                                                                
Page Size:    528                                                               
Size= 4325376 bytes                                                             
Logical address: 0xD0000000                                                     
Area 0: D0000000 to D0003FFF (RO)                                               
Area 1: D0004000 to D0007FFF                                                    
Area 2: D0008000 to D0037FFF (RO)                                               
Area 3: D0038000 to D041FFFF                                                    
In:    serial                                                                   
Out:   serial                                                                   
Err:   serial                                                                   
PHY not reset!!                                                                 
Hit any key to stop autoboot:  0                                                
U-Boot> bootm 22200000                                                          
## Booting image at 22200000 ...                                                
   Image Name:   linux-2.6                                                      
   Image Type:   ARM Linux Kernel Image (uncompressed)                          
   Data Size:    1400392 Bytes =  1.3 MB                                        
   Load Address: 20008000                                                       
   Entry Point:  20008000                                                       
   Verifying Checksum ... OK                                                    
OK                                                                              

Starting kernel ...

Uncompressing Linux...........................................................................
................ do.
Linux version 2.6.22 (root@slava2005) (gcc version 4.2.0 20070413 (prerelease) (CodeSourcery Sourcery G++ Lite 208
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177                                                     
Machine: Atmel AT91SAM9260-EK                                                                                     
Memory policy: ECC disabled, Data cache writeback                                                                 
Clocks: CPU 198 MHz, master 99 MHz, main 18.432 MHz                                                               
CPU0: D VIVT write-back cache                                                                                     
CPU0: I cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets                                                
CPU0: D cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets                                                
Built 1 zonelists.  Total pages: 16256                                                                            
Kernel command line: noinitrd mem=64M root=/dev/mmcblk0p1 rw                                                      
AT91: 96 gpio irqs in 3 banks                                                                                     
PID hash table entries: 256 (order: 8, 1024 bytes)                                                                
Console: colour dummy device 80x30                                                                                
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: 61952KB available (2572K code, 242K data, 120K init)                                                      
Mount-cache hash table entries: 512                                                                               
CPU: Testing write buffer coherency: ok                                                                           
NET: Registered protocol family 16                                                                                
Generic PHY: Registered new driver                                                                                
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                                                                                               
NetWinder Floating Point Emulator V0.97 (double precision)                                                        
JFFS2 version 2.2. (NAND) (SUMMARY)  �© 2001-2006 Red Hat, Inc.                                                   
io scheduler noop registered                                                                                      
io scheduler anticipatory registered (default)                                                                    
Epson S1D13XXX FB Driver                                                                                          
s1d13xxxfb: regs mapped at 0xc485c000, fb 2048 KiB mapped at 0xc4c00000                                           
Console: switching to colour frame buffer device 80x30                                                            
fb0: S1D13806 frame buffer device                                                                                 
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                                               
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize                                             
loop: module loaded                                                                                               
Davicom DM9161E: Registered new driver                                                                            
Davicom DM9161A: Registered new driver                                                                            
Davicom DM9131: Registered new driver                                                                             
macb macb: Failed to detect PHY, aborting.                                                                        
NAND device: Manufacturer ID: 0xec, Chip ID: 0xd3 (Samsung NAND 1GiB 3,3V 8-bit)                                  
Scanning device for bad blocks                                                                                    
Creating 2 MTD partitions on "NAND 1GiB 3,3V 8-bit":                                                              
0x00000000-0x04000000 : "Partition 1"                                                                             
0x04000000-0x40000000 : "Partition 2"                                                                             
atmel_spi atmel_spi.1: Atmel SPI Controller at 0xfffcc000 (irq 13)                                                
usbmon: debugfs is not available                                                                                  
at91_ohci at91_ohci: AT91 OHCI                                                                                    
at91_ohci at91_ohci: new USB bus registered, assigned bus number 1                                                
at91_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: 1 port detected                                                                                      
Initializing USB Mass Storage driver...                                                                           
usb 1-1: new full speed USB device using at91_ohci and address 2                                                  
usb 1-1: configuration #1 chosen from 1 choice                                                                    
hub 1-1:1.0: USB hub found                                                                                        
hub 1-1:1.0: 4 ports detected                                                                                     
usbcore: registered new interface driver usb-storage                                                              
USB Mass Storage support registered.                                                                              
udc: at91_udc version 3 May 2006                                                                                  
mice: PS/2 mouse device common for all mice                                                                       
i2c /dev entries driver                                                                                           
at91_i2c at91_i2c: AT91 i2c bus driver.                                                                           
usbcore: registered new interface driver usbhid                                                                   
drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver                                                           
Advanced Linux Sound Architecture Driver Version 1.0.14 (Thu May 31 09:03:25 2007 UTC).                           
ALSA device list:                                                                                                 
  #0: AT73C213                                                                                                    
TCP cubic registered                                                                                              
NET: Registered protocol family 1                                                                                 
NET: Registered protocol family 17                                                                                
Root-NFS: No NFS server available, giving up.                                                                     
VFS: Unable to mount root fs via NFS, trying floppy.                                                              
VFS: Cannot open root device "mmcblk0p1" or unknown-block(2,0)                                                    
Please append a correct "root=" boot option; here are the available partitions:                                   
1f00      65536 mtdblock0 (driver?)                                                                               
1f01     983040 mtdblock1 (driver?)                                                                               
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)

 

В процессе загрузки уровень на 1 ноге держателя карты пару раз изменялся. На пятом выводе частота есть.

Edited by ecos-rtos_in_ua

Share this post


Link to post
Share on other sites

Попробовал более новое ядро с linux4sam для sam9260-ek карту видит но с ошибками:

U-Boot 1.1.5 (Feb  9 2008 - 19:28:48)

DRAM:  64 MB
NAND:  NAND device: Manufacturer ID: 0xec, Chip ID: 0xd3 ( NAND 1GiB 3,3V 8-bit)

NAND: Pagesize: 2048, Blocksize: 256K, OOBsize: 64
1024 MiB
DataFlash:AT45DB321
Nb pages:   8192
Page Size:    528
Size= 4325376 bytes
Logical address: 0xD0000000
Area 0: D0000000 to D0003FFF (RO)
Area 1: D0004000 to D0007FFF
Area 2: D0008000 to D0037FFF (RO)
Area 3: D0038000 to D041FFFF
In:    serial
Out:   serial
Err:   serial
PHY not reset!!
Hit any key to stop autoboot:  0
U-Boot> loadb 22200000
## Ready for binary (kermit) download to 0x22200000 at 115200 bps...
## Total Size      = 0x00168cd4 = 1477844 Bytes
## Start Addr      = 0x22200000
U-Boot> bootm 22200000
## Booting image at 22200000 ...
   Image Name:   linux-2.6
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1477780 Bytes =  1.4 MB
   Load Address: 20008000
   Entry Point:  20008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux.............................................................
................................... done, booting the kernel.
Linux version 2.6.27 (nferre@bendor) (gcc version 4.2.0 20070413 (prerelease) (C
odeSourcery Sourcery G++ Lite 2007q1-10)) #1 Fri Dec 12 12:23:22 CET 2008
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
Machine: Atmel AT91SAM9260-EK
Memory policy: ECC disabled, Data cache writeback
Clocks: CPU 198 MHz, master 99 MHz, main 18.432 MHz
CPU0: D VIVT write-back cache
CPU0: I cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets
CPU0: D cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: root=/dev/mmcblk0p1
AT91: 96 gpio irqs in 3 banks
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x30
console [tty0] enabled
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: 61804KB available (2716K code, 223K data, 120K init)
Calibrating delay loop... 99.12 BogoMIPS (lpj=495616)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 288 bytes
NET: Registered protocol family 16
AT91: Power Management
AT91: Starting after general reset
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
NetWinder Floating Point Emulator V0.97 (double precision)
JFFS2 version 2.2. (NAND) (SUMMARY)  A© 2001-2006 Red Hat, Inc.
msgmni has been set to 120
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 0xc4870000 (irq 14)
macb macb: invalid hw address, using random
MACB_mii_bus: probed
eth0: Atmel MACB at 0xfffc4000 irq 21 (4a:6d:e7:56:1d:e1)
eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=ffffffff:00, irq=-1)
Driver 'sd' needs updating - please use bus_type methods
NAND device: Manufacturer ID: 0xec, Chip ID: 0xd3 (Samsung NAND 1GiB 3,3V 8-bit)

AT91 NAND: 8-bit, Software ECC
Scanning device for bad blocks
Creating 3 MTD partitions on "atmel_nand":
0x00000000-0x00400000 : "Bootstrap"
0x00400000-0x04000000 : "Partition 1"
0x04000000-0x40000000 : "Partition 2"
atmel_spi atmel_spi.1: Atmel SPI Controller at 0xfffcc000 (irq 13)
usbmon: debugfs is not available
at91_ohci at91_ohci: AT91 OHCI
at91_ohci at91_ohci: new USB bus registered, assigned bus number 1
at91_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
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
udc: at91_udc version 3 May 2006
mice: PS/2 mouse device common for all mice
input: gpio-keys as /class/input/input0
rtc-at91sam9 at91_rtt.0: rtc core: registered at91_rtt as rtc0
rtc-at91sam9 at91_rtt.0: rtc0: SET TIME!
Registered led device: ds5
Registered led device: ds1
usb 1-1: new full speed USB device using at91_ohci and address 2
usb 1-1: configuration #1 chosen from 1 choice
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
Advanced Linux Sound Architecture Driver Version 1.0.17.
at73c213 spi1.0: at73c213: supported bitrate is 48500 (64 divider)
mmc0: host does not support reading read-only switch. assuming write-enable.
mmc0: new SD card at address d3f6
mmcblk0: mmc0:d3f6 SD01G 1006080KiB
mmcblk0: p1
ALSA device list:
  #0: AT91SAM9260-EK external DAC on irq 14
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
rtc-at91sam9 at91_rtt.0: hctosys: unable to read the hardware clock
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
Freeing init memory: 120K
mmcblk0: error -84 transferring data
end_request: I/O error, dev mmcblk0, sector 673511
INIT: version 2.86 booting
mmcblk0: error -84 transferring data
end_request: I/O error, dev mmcblk0, sector 410647
hostname: the specified hostname is invalid
Activating swap...done.
Checking root file system...fsck 1.40-WIP (14-Nov-2006)
/lib/init/rw/rootdev: The filesystem size (according to the superblock) is 25151
2 blocks
The physical size of the device is 251007 blocks
Either the superblock or the partition table is likely to be corrupt!


/lib/init/rw/rootdev: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
        (i.e., without -a or -p options)
fsck died with exit status 4
failed (code 4).
* An automatic file system check (fsck) of the root filesystem failed.
A manual fsck must be performed, then the system restarted.
The fsck should be performed in maintenance mode with the
root filesystem mounted in read-only mode.
* The root filesystem is currently mounted in read-only mode.
A maintenance shell will now be started.
After performing system maintenance, press CONTROL-D
to terminate the maintenance shell and restart the system.
Press enter for maintenance
(or type Control-D to continue):
ecb_at91:~#

Share this post


Link to post
Share on other sites

Другую карточку попробуй. желательно другого производителя. можно воткнуть ее после загрузки у-бута.

Share this post


Link to post
Share on other sites
Другую карточку попробуй. желательно другого производителя. можно воткнуть ее после загрузки у-бута.

Попробую. А какая карточка у вас работала?

Share this post


Link to post
Share on other sites

у Вас переменная bootargs не задана, в u-boot-е командочкой

setenv <имя переменной> <значение переменной> задается переменные окружения,

и соответсвенно у Вас линукс не находит корневую файловую систему,

кроме этого должна задаваться еще переменная bootcmd - команда загрузки

 

у Вас bootcmd задана как bootm 22200000

а bootargs - наверное не заданы, и ядро либо берет по умолчанию

root=/dev/mmcblk0p1 либо в u-boot-е оно по умолчанию прописано,

 

прервите процесс загрузки и дайте командочку u-bootа printenv

 

 

помоему надо вот так задать :

 

setenv bootargs root=/dev/mtdblock0 mem=64M console=ttyS0,115200

 

при условии что у Вас 64Mb памяти и нет рамдиска и корневая файловая система

находится на нулевой партиции flash или

 

setenv bootargs root=/dev/mtdblock1 mem=64M console=ttyS0,115200

 

если на первой, линукс считает что flash разбита на несколько партриций и на ней,

на какойто партиции должна быть корневая файловая система под FAT или EXT2,

в зависимости ли включена в образ ядра их поддержка, наверное

 

вообщето mtdblock0 - это обычно MTD навешаное на параллельную flash или NAND флэш а у Вас карточка mmc - сейчас еще листинг гляну. MTD навешанное на MMC должно наверное по другому называться

 

 

так глянул , у Вас находится

NAND device: Manufacturer ID: 0xec, Chip ID: 0xd3 (Samsung NAND 1GiB 3,3V 8-bit)

 

NAND flash , которая разбита на три партиции

 

0x00000000-0x00400000 : "Bootstrap"

0x00400000-0x04000000 : "Partition 1"

0x04000000-0x40000000 : "Partition 2"

 

она физически на платочке есть ? Если есть то корневая файловая система

может напходиться на "Partition 2".

 

А MMC линукс тоже видит:

mmc0: new SD card at address d3f6

mmcblk0: mmc0:d3f6 SD01G 1006080KiB

mmcblk0: p1

 

но при работе с карточкой у Вас ошибка

mmcblk0: error -84 transferring data

 

те линукс пытется замонтировать ext2 на карточку и у него не получается,

Вы карточку из под линукса в считывателе карточек видите?

 

может быть командную строку следует задавать не как:

root=/dev/mmcblk0p1

 

а как

root=/dev/mmcblk0

 

не в курсе просто

Edited by dch

Share this post


Link to post
Share on other sites

to dch

Спасибо за развернутый ответ.

Вы меня немного неправильно поняли. При загрузки с ядром 2.6.22 от siberia-ge.com карточка почему-то не видно, а при загрузке другого ядра 2.6.27(от linux4sam.org для 9260-ek) карточка видна, система загружается, но проблема в том что в другом ядре нет поддержки видео.

А исходников патченого ядра пока не видно, а то можно было обновить их на более новое ядро, например 2.6.28. Так что я пока разбираюсь с исходниками rm9200, для которых поддержка видео контролера епсон есть.

 

На плате есть NAND Flash 1G, но залить туда пока не могу, сеть не поднята (нет пока микросхемы).

Share this post


Link to post
Share on other sites

Запускаю TFT дисплей 3.8дюйма (320х480). Делаю плату.

Вопрос нужны ли буферные микросхемы?

 

В документации к дисплею есть несколько сигналов, назначение которых мне не понятно

 

X,Y axis position (Top, Left, Right, Bottom)-4 разных сигнала

Auxiliary enable signal

Auxiliary data signal

В документации про них вспоминают на одной странице в разделе описания разъема.

 

Документацию прилагаю.

http://ifolder.ru/12114771

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this