Revoltec Guard RS049 (star8132)

Zawartość traktować należy jako notatnik :)

fotosy

Kliknij aby powiększyć Kliknij aby powiększyć

postępy

  • Kernel 2.6.24.7
  • Rootfs gotowy
  • kontroler jest wykrywany, ale natychmiast nastepuje rozÅ‚aczenie

todo

status
sprawdzić kontroler
port usb
jffs2
pakiety

złącza

Złącze J5

1GND
2RX
3VCC
4TX
5GND

̅̅̅̅̅ Parametry połączenia 38400,8,N,1

Złącze J3

Wygląda na JTAG (wg. dokumentacji od Calvium w tym miejscu jest właśnie takie złącze )

Wgrywamy firmware

w celu testowania

Obecny kernel wymaga serwera NFS

tftpboot zImage 0x50000
go 500000

na trwałe

TODO

Bootlog

U-Boot 1.1.4 (Nov 27 2007 - 09:29:18)

U-Boot code: 00000000 -> 0001AF80  BSS: -> 0001FEF4
IRQ Stack: 00e6ff7c
FIQ Stack: 00e6ef7c
RAM Configuration:
Bank #0: 00000000 32 MB
Flash Manufacturer: ST
Flash:  8 MB
In:    serial
Out:   serial
Err:   serial
PLL clock at 250MHz
CPU clock at 250MHz
AHB clock at 125MHz
APB clock at 62MHz

Hit any key to stop autoboot:  0 
Check Link Status ..Up
TFTP from server 192.168.88.3; our IP address is 192.168.88.201
Filename '8132'.
Load address: 0x50000
Loading: T #################################################################
         #################################################################
         #################################################################
         #################################################################
         #########################################
done
Bytes transferred = 1536456 (1771c8 hex)
## Starting application at 0x00050000 ...
Uncompressing Linux.................................................................................................. done,.
Linux version 2.6.24.7 (artek@home) (gcc version 4.1.2) #1 Sat Aug 22 13:39:52 CEST 2009
CPU: FA526id(wb) [66015261] revision 1 (ARMv4), cr=0000397f
Machine: STAR STR8100
Warning: bad configuration page, trying to continue
Ignoring unrecognised tag 0x00000000
Memory policy: ECC disabled, Data cache writeback
CPU0: D VIVT write-back cache
CPU0: I cache: 8192 bytes, associativity 2, 16 byte lines, 256 sets
CPU0: D cache: 8192 bytes, associativity 2, 16 byte lines, 256 sets
PLL clock at 250MHz
CPU clock at 250MHz
AHB clock at 125MHz
APB clock at 62MHz
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line: root=/dev/nfs nfsroot=192.168.88.245:/media/share/8132 rw ip=dhcp init=etc/preinit
PID hash table entries: 128 (order: 7, 512 bytes)
console [ttyS0] enabled
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 32MB = 32MB total
Memory: 29312KB available (2780K code, 233K data, 120K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 64 bytes
NET: Registered protocol family 16
PCI clock at 33M
PCI: bus0: Fast back to back transfers disabled
PCI Bridge found
PCI map irq: 00:00.00 slot 0, pin 1, irq: 0
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: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
str8100_rtc.o: rtc module version 1.0.0
NetWinder Floating Point Emulator V0.97 (extended precision)
squashfs: version 3.0 (2006/03/15) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) �© 2001-2006 Red Hat, Inc.
io scheduler noop registered (default)
Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x78000000 (irq = 9) is a 16550A
serial8250: ttyS1 at MMIO 0x78800000 (irq = 10) is a 16550A
RAMDISK driver initialized: 4 RAM disks of 16384K size 1024 blocksize
Star NIC Driver(for Linux Kernel 2.6) - Star Semiconductor
    rxring.vir_addr=0xFFC00000 rxring.phy_addr=0x01D17000
    txring.vir_addr=0xFFC01000 txring.phy_addr=0x01D58000
Star Internal PHY
MAC Addr: 08:0a:0b:0c:0d:0e

star_nic_init_module: internal phy patch included.
star_nic_init_module: scatter/gather enabled.

Intel(R) PRO/1000 Network Driver - version 7.3.20-k2-NAPI
Copyright (c) 1999-2006 Intel Corporation.
e100: Intel(R) PRO/100 Network Driver, 3.5.23-k4-NAPI
e100: Copyright(c) 1999-2006 Intel Corporation
Driver 'sd' needs updating - please use bus_type methods
STR8100 SPI: init
m25p80 spi1.0: m25p64 (8192 Kbytes)
Creating 5 MTD partitions on "m25p80":
0x00000000-0x00800000 : "all"
0x00000000-0x00040000 : "ARMBOOT"
0x00040000-0x00140000 : "Linux Kernel"
0x00140000-0x007f0000 : "MTD Disk1"
0x007f0000-0x00800000 : "MTD Disk2"
str8100-ehci str8100-ehci: str8100-ehci
str8100-ehci str8100-ehci: new USB bus registered, assigned bus number 1
str8100-ehci str8100-ehci: irq 24, io mem 0xcc000000
str8100-ehci str8100-ehci: USB 0.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
ohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver (STR8100)
str8100-ohci str8100-ohci: str8100-ohci
str8100-ohci str8100-ohci: new USB bus registered, assigned bus number 2
str8100-ohci str8100-ohci: irq 23, io mem 0xc4000000
usb usb2: configuration #1 chosen from 1 choice
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.
str8100_wdt.o: watchdog module version 1.0.1
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
NET: Registered protocol family 15
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
eth0:star_nic_lan_open
star_nic_enable: starting patch check.
Sending DHCP requests .., OK
IP-Config: Got DHCP answer from 192.168.88.1, my address is 192.168.88.6
IP-Config: Complete:
      device=eth0, addr=192.168.88.6, mask=255.255.255.0, gw=192.168.88.1,
     host=192.168.88.6, domain=, nis-domain=(none),
     bootserver=192.168.88.1, rootserver=192.168.88.245, rootpath=
Looking up port of RPC 100003/2 on 192.168.88.245
Looking up port of RPC 100005/1 on 192.168.88.245
VFS: Mounted root (nfs filesystem).
Freeing init memory: 120K
Please be patient, while OpenWrt loads ...
- preinit -
Press CTRL-C for failsafe
- init -

Please press Enter to activate this console. 


BusyBox v1.13.4 (2009-08-21 00:04:39 CEST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 KAMIKAZE (bleeding edge, r17290) -------------------
  * 10 oz Vodka       Shake well with ice and strain
  * 10 oz Triple sec  mixture into 10 shot glasses.
  * 10 oz lime juice  Salute!
 ---------------------------------------------------
root@OpenWrt:/# 

u-boot

Do bootloadera wchodzimy poprzez trzymanie przycisku SW2 oraz podłączenie zasilania. Musimy chwile poczekać.

U-Boot 1.1.4 (Nov 27 2007 - 09:29:18)
                                     
U-Boot code: 00000000 -> 0001AF80  BSS: -> 0001FEF4
IRQ Stack: 00e6ff7c                                
FIQ Stack: 00e6ef7c
RAM Configuration: 
Bank #0: 00000000 32 MB
Flash Manufacturer: ST 
Flash:  8 MB          
In:    serial
Out:   serial
Err:   serial
PLL clock at 250MHz
CPU clock at 250MHz
AHB clock at 125MHz
APB clock at 62MHz 
Star Equuleus # help
?       - alias for 'help'
autoscr - run script from memory
base    - print or set address offset
bdinfo  - print Board Info structure 
boot    - boot default, i.e., run 'bootcmd'
bootd   - boot default, i.e., run 'bootcmd'
bootm   - boot application image from memory
bootp   - boot image via network using BootP/TFTP protocol
cmp     - memory compare                                  
coninfo - print console devices and information
cp      - memory copy                          
crc32   - checksum calculation
echo    - echo args to console
erase   - erase FLASH memory  
firstboot- first boot the device for mass production
flinfo  - print FLASH memory information            
go      - start application at address 'addr'
help    - print online help                  
iminfo  - print header information for application image
imls    - list all images found in flash                
itest   - return true/false on integer compare
loadb   - load binary file over serial line (kermit mode)
loads   - load S-Record file over serial line            
loop    - infinite loop on address range     
md      - memory display                
mm      - memory modify (auto-incrementing)
mtest   - simple RAM test                  
mw      - memory write (fill)
nfs     - boot image via network using NFS protocol
nm      - memory modify (constant address)         
pci     - list and access PCI Configuration Space
printenv- print environment variables            
protect - enable or disable FLASH write protection
rarpboot- boot image via network using RARP/TFTP protocol
reset   - Perform RESET of the CPU                       
run     - run commands in an environment variable
saveenv - save environment variables to persistent storage
setenv  - set environment variables                       
sleep   - delay execution for some time
tftpboot- boot image via network using TFTP protocol
version - print monitor version                     
Star Equuleus #              

Zmienne środowiskowe(dla potomnych)

Star Equuleus # printenv       
baudrate=38400
ethaddr=00:aa:bb:cc:dd:10
ipaddr=192.168.10.2      
serverip=192.168.10.3
netmask=255.255.255.0
cpu_clock=250        
bootcmd=cp.l 0x30040000 0xcf00000 0x80000;go cf00000
bootdelay=0                                         
stdin=serial
stdout=serial
stderr=serial
             
Environment size: 225/65532 bytes
Star Equuleus #  

code

git clone git://nbd.name/openwrt.git trunk
cd trunk
git clone http://artekw.cerbero.pl/git/star8100
scripts/feeds update
scripts/feeds install -a
make menuconfig
...

download

DownloadCalviumOpenWrtÅngström
kernel 2.6.24.4Pobierz--
kernel 2.6.24.7-Pobierz-
jffs2 Pobierz --
tar.gz -Pobierz -

linki

kompilowanie/porty/str8132.txt · ostatnio zmienione: 2010/10/23 10:07 przez arteq
CC Attribution-Noncommercial-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki Recent changes RSS feed Valid XHTML 1.0
Profesjonalny Hosting