A cleanup with SPI on SB6120.

SB6XXX,SBV6XXX

Moderators: justsomeguy, Koevoet

Locked
usbbdm
Junior Member
Posts: 8974
Joined: Mon Jul 18, 2005 9:33 pm

A cleanup with SPI on SB6120.

Post by usbbdm »

Part of my clean up.
For SB6120 I created an external SPI connection and serial connection too. (115200,n,8,1)
For internal SPI connection.
http://www.usbjtag.com/jtagnt/sb6120.php
The serial port is a tiny 4 pin connector.
Here is the pictures.
Image
Image
usbbdm
Junior Member
Posts: 8974
Joined: Mon Jul 18, 2005 9:33 pm

Post by usbbdm »

Here is the serial log

Code: Select all

 U-Boot 1.2.0 (Apr  3 2008 - 14:23:32)
 PSPU-Boot 1.0.0.4m1
 
 DRAM:  32 MB
 Found SPANSION Flash 
 Flash:  8 MB
 In:    serial
 Out:   serial
 Err:   serial
 *** ACTIMAGE = 1, will try to boot UBFI1 stored @0x48040000
 ## Executing script at 48040000
 ============== Running script =========
 *** Running from UBFI1 partition @0x48040000
 Load address = 0x48040ecc (0xecc)
 Kernel address = 0x48040f18 (0xf18)
 kernel size = 0xc70e8
 FS address = 0x48108000 (0xc8000)
 FS size = 0x205400
 NVRAM offset = 0x7b0000
 NVRAM size = 0x50000
 *** UBFI1 bootscript executed successfully.
 Start booting...
 ## Booting image at 48040ecc ...
    Image Name:   Multi Image File
    Image Type:   ARM Linux Multi-File Image (uncompressed)
    Data Size:    2934004 Bytes =  2.8 MB
    Load Address: 80a00000
    Entry Point:  80a00000
    Contents:
    Image 0:   815336 Bytes = 796.2 kB
    Image 1:  2118656 Bytes =  2 MB
    Verifying Checksum ... OK
 OK
 
 Starting kernel ...
  
Starting LZMA Uncompression Algorithm.
 Compressed file is LZMA format.
 Linux version 2.6.18_pro500 (mgi1240@pa06bld01) (gcc version 4.2.0 20070126 (prerelease) (MontaVista 4.2.0-2.0.0.custom 2007-02-12)) #1 PREEMPT Fri Mar 20 17:42:09 EDT 2009
 CPU: ARMv6-compatible processor [410fb764] revision 4 (ARMv6TEJ), cr=00c538ff
 Machine: puma5
 Ignoring unrecognised tag 0x00000000
 Memory policy: ECC disabled, Data cache writethrough
 Reserved 0k DSP memory starting from Physical 0x82000000
 CPU0: D VIPT write-back cache
 CPU0: I cache: 32768 bytes, associativity 4, 32 byte lines, 256 sets
 CPU0: D cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
 Real-Time Preemption Support (C) 2004-2006 Ingo Molnar
 Built 1 zonelists.  Total pages: 8192
 Kernel command line: root=/dev/mtdblock6 mtdparts=spansion:0x20000(U-Boot)ro,0x10000(env1),0x10000(env2),0x3b0000@0x40000(UBFI1),0x3b0000@0x3f0000(UBFI2),0xc70e8@0x40f18(Kernel),0x205400(RootFileSystem),0x50000@0x7b0000(nvram) console=ttyS0,115200n8 ethaddr0=00.50.f1.10.00.01
 WARNING: experimental RCU implementation.
 Interrupt controller revision : 4e822100
 PID hash table entries: 256 (order: 8, 1024 bytes)
 Power & Sleep Controller @ 0xd8621000 Initialized [id-0x44822905]
 Initialized Peripheral Port Remap Register to base : 0x50000000
 Puma5 Timer0 initialized
 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: 30040KB available (1836K code, 489K data, 76K init)
 Mount-cache hash table entries: 512
 CPU: Testing write buffer coherency: ok
 NET: Registered protocol family 16
 Off chip memory allocated: 153088
 QMgr Init: buffer after alignment: 80340000
 avalanche_ppd_init: PP system  initialized successfully.
 avalanche_ppd_init(506):return code 0x00
 HIL Core: Profile intrusive has been Loaded.
 NET: Registered protocol family 2
 IP route cache hash table entries: 256 (order: -2, 1024 bytes)
 TCP established hash table entries: 1024 (order: 3, 32768 bytes)
 TCP bind hash table entries: 512 (order: 1, 14336 bytes)
 TCP: Hash tables configured (established 1024 bind 512)
 TCP reno registered
 squashfs: version 3.3 (2007/10/31) Phillip Lougher
 squashfs: LZMA suppport for slax.org by jro
 JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
 Initializing Cryptographic API
 io scheduler noop registered (default)
 watchdog: TI Avalanche Watchdog Timer: timer margin 42 sec
 TI LED driver initialized [major=254]
 Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled
 serial8250: ttyS0 at MMIO map 0x8610f03 mem 0xd8610f03 (irq = 8) is a TI 16550A
 serial8250: ttyS1 at MMIO map 0x8610e03 mem 0xd8610e03 (irq = 7) is a TI 16550A
 loop: loaded (max 8 devices)
 Loading cpgmac driver for puma5
 TI CPGMAC_F Linux DDA version 0.1 - CPGMAC_F DDC version 0.2
 Cpmac: Installed 1 instances.
 i2c /dev entries driver
 Serial Flash [Bus:0 CS:0] : s25fl064a 8192KB, 128 sectors each  64KB 
 8 cmdlinepart partitions found on MTD device spansion
 partitions[0] = {.name = U-Boot, .offset = 0x00000000,.size = 0x00020000 (128K) }
 partitions[1] = {.name = env1, .offset = 0x00020000,.size = 0x00010000 (64K) } 
partitions[2] = {.name = env2, .offset = 0x00030000,.size = 0x00010000 (64K) } 
partitions[3] = {.name = UBFI1, .offset = 0x00040000,.size = 0x003b0000 (3776K) }
 partitions[4] = {.name = UBFI2, .offset = 0x003f0000,.size = 0x003b0000 (3776K) }
 partitions[5] = {.name = Kernel, .offset = 0x00040f18,.size = 0x000c70e8 (796K) }
 partitions[6] = {.name = RootFileSystem, .offset = 0x00108000,.size = 0x00205400 (2069K) }
 partitions[7] = {.name = nvram, .offset = 0x007b0000,.size = 0x00050000 (320K) }
 Creating 8 MTD partitions on "spansion":
 0x00000000-0x00020000 : "U-Boot"
 0x00020000-0x00030000 : "env1"
 0x00030000-0x00040000 : "env2"
 0x00040000-0x003f0000 : "UBFI1"
 0x003f0000-0x007a0000 : "UBFI2"
 0x00040f18-0x00108000 : "Kernel"
 mtd: partition "Kernel" doesn't start on an erase block boundary -- force read-only
 0x00108000-0x0030d400 : "RootFileSystem"
 mtd: partition "RootFileSystem" doesn't start on an erase block boundary -- force read-only
 0x007b0000-0x00800000 : "nvram"
 Serial Flash [Bus:0 CS:1] : No device found
 ti_spi.0: AVALANCHE SPI Controller driver at 0xd8612500           (irq = 0)
 ti_codec_spi.0: TI Codec SPI Controller driver at 0xd86040c8           (irq = 0)
 TCP bic registered
 Initializing XFRM netlink socket
 NET: Registered protocol family 1
 NET: Registered protocol family 10
 IPv6 over IPv4 tunneling driver 
NET: Registered protocol family 17
 NET: Registered protocol family 15
 VFS: Mounted root (squashfs filesystem) readonly.
 Freeing init memory: 76K
  init started:  BusyBox v1.4.2 (2009-03-20 17:43:55 EDT) multi-call binary
  init started:  BusyBox v1.4.2 (2009-03-20 17:43:55 EDT) multi-call binary
  Starting pid 116, console /dev/tts/0: '/bin/sh'
 \n\n========================================================
 TI DSDK release 1.0.1.7
 Build date: Friday, March 20 2009, 17:43:59
 Copyright (c) 2006 - 2008 Texas Instruments Incorporated
 ========================================================\n\n
 TI Watchdog-RT daemon started <kick interval = 15 seconds>
 TI Logger: Init complete
 + runall -U 4 -D 4 
 + echo 1
 + usage=Usage : /usr/sbin/runall\n\t[-D{Downstream Channels} (-1|1|2|3|4)]\n\t[-U{Uptream Channels} (-1|1|2|3|4)]\n\t[-T{Transmit Channel  (UCID)} (1|2|3|...)]\n\t[-u{Try TCC even when there is no RCC}\n\t[-F{First DS freq} freq-Hz]\n\t[-s{DOCSIS shmdb size} size\n\t[-c{DOCSIS shmdb chunks} num\n\t[-P{Primary SAID Zero in auth req}\n\t[-I{Override IP mode : IPv4, IPv6, APM, Dual} {4|6|A|D}\n\t[-o{Override SID before REG-ACK} {0-4}\n\t[-M{Set MAC address} {xx:xx:xx:xx:xx:xx}\n\t[-A{Set Docsis auto run option} (1|0)\n\t[-g{Set Debug options} \n\t[-Y{Set Primary DS Port} \n
 + getopts :D:U:T:us:c:PF:I:o:M:A:g:Y: options
 + us_channels=4
 + getopts :D:U:T:us:c:PF:I:o:M:A:g:Y: options
 + ds_channels=4 
 + getopts :D:U:T:us:c:PF:I:o:M:A:g:Y: options
 + [ -n  ]
 + insmod /lib/modules/2.6.18_pro500/extra/docsis_bridge.ko
 + insmod /lib/avalanche_cnid.ko
 + sleep 1
 + mount
 + grep -i RemoteFS
 + RFS_exists=
 + [ -n  ]
 + [ -n 4  ]
 + init_once_params= -ds_channels 4 
 + [ -n 4 ]
 + init_once_params= -ds_channels 4  -us_channels 4
 + [ -n  ]
 + [ -n  ]
 + [ -n  ]
 + [ -n  ]
 + [ -n  ]
 + [ -n  ]
 + [ -n  ]
 + [ -n  -ds_channels 4  -us_channels 4 ]
 + echo -ds_channels 4  -us_channels 4
 -ds_channels 4  -us_channels 4 
+ docsis_init_once -ds_channels 4  -us_channels 4
 mot_tdes_decrypt(): Decrypted Private Key (first 48 bytes):
 
 0xecad344:	ef 30 bd 29 91 9f 13 76 37 77 d9 4d 03 d1 a8 a0 
 0xecad354:	d2 2b f2 7c 30 82 02 78 02 01 00 30 0d 06 09 2a 
 0xecad364:	86 48 86 f7 0d 01 01 01 05 00 04 82 02 62 30 82 
 
 [INFO] [DOCSIS.PROD_DB(pid=192)]: Restoring motorola NVRAM DB from NVRAM ... SUCCESS
 [INFO] [DOCSIS.PROD_DB(pid=192)]: Restoring motorola platform DB from NVRAM ... SUCCESS
 [FATAL] [DOCSIS.UTILS(pid=192)]: ifname =wan0 SIOCSIFHWADDR failed: No such device
 + ledd -c -i 500
 + halGlobalInit
 + insmod /lib/docsis_mng.ko
 docsis_mng: module license 'Texas Instruments' taints kernel.
 + mknod /dev/docsis_mng c 32 0
 + insmod /lib/kintr.ko
 + + sleep 1
 + hal_cmd_mboxhal_event_mbox
 
 + mlx+ sleep 1
 +  -dhal_wb_tuner_mgr DOCINT
  -n 5
 + dfltr_class_init.sh
 + dbridge_init
 Ingress Hook on  eth0 
 Dbridge Init SUCSESS
 Autoconfiguration disabled for br0
 HAL_MacDsUnicastDataFilterAdd: system_rev = 0
 Autoconfiguration disabled for lbr0
 ifconfig: : Unknown hostHAL_MacDsUnicastDataFilterAdd: system_rev = 0
 
 Autoconfiguration disabled for lan0
 Error: Unable to create VPID -1 PID -1 Device lbr0
 BusyBox v1.4.2 (2009-03-20 17:43:55 EDT) multi-call binary
 
 Usage: route [{add|del|delete}]
 
 ifconfig: : Unknown hostHAL_MacDsUnicastDataFilterAdd: system_rev = 0
 
 Autoconfiguration disabled for wan0
 ifconfig: : Unknown host
 ifconfig: : Unknown host
 ifconfig: : Unknown host
 Autoconfiguration disabled for cni0
 + fc_cfgapp
 + sleep 1
 info, udhcp server (v0.9.7) started
 error, Unable to open /var/lib/misc/udhcpd01.leases for reading
 error, Unable to open /var/lib/misc/udhcpd02.leases for reading
 error, Unable to open /var/lib/misc/udhcpd03.leases for reading
 info, interface: lan0, start : c0a8640a end : c0a8643f
 
 + + sleep 5
 + bpi_authbpi_tek+ 
 
 bpi_sa_map

dayday
Junior Member
Posts: 17
Joined: Tue Apr 22, 2008 1:20 pm

Post by dayday »

The pic you posted is not showing up.
d0
Junior Member
Posts: 177
Joined: Thu Feb 26, 2009 9:50 am
Location: S FL
Contact:

Post by d0 »

I can see the pics, Great job USBBDM!
Locked

Who is online

Users browsing this forum: No registered users and 9 guests