Índice

Este es un índice de todas las páginas disponibles ordenado por espacios de nombres.

Newtronic DV-5306

http://www.newtronic.com.ar/

Este STB fué uno de los que comenzó a repartir el Estado Argentino previo al Mundial de Fultbol del 2010.

Ver Imagen Grande

Información Técnica

Unica versión de firmware: 07 de Mayo de 2010

# cat /proc/cpuinfo
Processor       : ARM926EJ-Sid(wb) rev 5 (v5l)
BogoMIPS        : 107.72
Features        : swp half thumb fastmult edsp java
CPU implementer : 0x41
CPU architecture: 5TEJ
CPU variant     : 0x0
CPU part        : 0x926
CPU revision    : 5
Cache type      : write-back
Cache clean     : cp15 c7 ops
Cache lockdown  : format C
Cache format    : Harvard
I size          : 16384
I assoc         : 4
I line length   : 32
I sets          : 128
D size          : 16384
D assoc         : 4
D line length   : 32
D sets          : 128

Hardware        : ORION
Revision        : 0000
Serial          : 0000000000000000

# dmesg 
Linux version 2.6.12.5 (root@localhost.localdomain) (gcc version 3.4.6) #3 Fri May 7 17:00:44 CST 2010
CPU: ARM926EJ-Sid(wb) [41069265] revision 5 (ARMv5TEJ)
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
CPU0: D cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
Machine: ORION
Memory policy: ECC disabled, Data cache writeback
On node 0 totalpages: 16384
  DMA zone: 16384 pages, LIFO batch:7
  Normal zone: 0 pages, LIFO batch:1
  HighMem zone: 0 pages, LIFO batch:1
Built 1 zonelists
Kernel command line: root=/dev/mtdblock/5 rw rootfstype=jffs2 console=ttyS0,115200 mem=64M mtdparts=phys_mapped_flash:448k(u-boot)ro,128k(loader1)ro,128k(loader2)ro,2048k(kernel),-(fs);ORION:-(Part01) ethaddr=00:1A:CC:01:xx:xx
ORION Readed MAC:00:1a:cc:01:xx:xx
PID hash table entries: 512 (order: 9, 8192 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 64MB = 64MB total
Memory: 61568KB available (2471K code, 643K data, 108K init)
Calibrating delay loop... 107.72 BogoMIPS (lpj=538624)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
SCSI subsystem initialized
Linux Kernel Card Services
  options:  none
usbcore: registered new driver usbfs
usbcore: registered new driver hub
NetWinder Floating Point Emulator V0.97 (extended precision)
devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x0
NTFS driver 2.1.22 [Flags: R/O].
JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.
fb0: ORION frame buffer @[0xec00000, 0xc4880000] size 0x1400000
fb1: ORION frame buffer @[0xe000000, 0xc5d00000] size 0xc00000
ORION GPIO at 0x101e4000, 16 lines
ORION GPIO2 at 0x10260000, 55 lines
 Smart card: base address 101f0000 map to c4866000
Orion Watchdog Timer: timer margin 40 sec
Xport: Init OK [0x0d900000].
orion_video: Orion Video driver was initialized, at address@[phyical addr = 41600000, size = 100000]
csdrv audio init ok ...
Default ORION I2C at 0x10170000, 100KHZ
orion15_df: Orion Display feeder driver was initialized, at address@[phyical addr = 41800000, size = 1000]
orion15_df: Orion TVE0 driver was initialized, at address@[phyical addr = 10168000, size = 1000]
orion15_df: Orion TVE1 driver was initialized, at address@[phyical addr = 10160000, size = 1000]
pinmux0 : 0x0, pinmux1: 0x1001
dma_pool_alloc: dma_phy_addr: 3d31000, ttx_buf: ffc00000
Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled
ttyS0 at MMIO 0x101f1000 (irq = 12) is a 16550A
ttyS1 at MMIO 0x101f2000 (irq = 13) is a 16550A
io scheduler noop registered
io scheduler anticipatory registered
RAMDISK driver initialized: 1 RAM disks of 16384K size 1024 blocksize
loop: loaded (max 8 devices)
ORION eth0: 0x41400000 IRQ 24 MAC:00:1a:cc:01:xx:xx
Not SST flash.<5>physmap flash device: 800000 at 34000000
phys_mapped_flash: Found 1 x16 devices at 0x0 in 16-bit bank
 Amd/Fujitsu Extended Query Table at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
5 cmdlinepart partitions found on MTD device phys_mapped_flash
Creating 5 MTD partitions on "phys_mapped_flash":
0x00000000-0x00070000 : "u-boot"
0x00070000-0x00090000 : "loader1"
0x00090000-0x000b0000 : "loader2"
0x000b0000-0x002b0000 : "kernel"
0x002b0000-0x00800000 : "fs"
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)
Bad block table found at page 131040, version 0x01
Bad block table found at page 131008, version 0x01
Using command line partition definition
Creating 1 MTD partitions on "ORION":
0x00000000-0x04000000 : "Part01"
PCMCIA: orion_pcmcia_init called!
Succesefully create pcmcia proc entry!
orion socket ci module initializing!!!
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.01:USB HID core driver
drivers/usb/musb/musb_driver.c: Initializing MUSB Driver [npci=1][gadget=no][otg=no]
MUSB Drive version 1.1.0.1
mgc_controller_init: Driver instance data at 0xc3d42400
mgc_hdrc_init: MHDRC version 1.500  info: UTMI-8, dyn FIFOs, SoftConn
mgc_controller_init: End 00: FIFO TxSize=0040/RxSize=0040
mgc_controller_init: End 01: Shared FIFO TxSize=0200/RxSize=0200
mgc_controller_init: End 02: FIFO TxSize=0000/RxSize=0040
mgc_controller_init: End 03: Shared FIFO TxSize=0400/RxSize=0400
mgc_controller_init: New bus @0xc3d21760
musb-hcd usb0: new USB bus registered, assigned bus number 1
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
NET: Registered protocol family 2
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
NET: Registered protocol family 1
NET: Registered protocol family 17
NET: Registered protocol family 15
Root-NFS: No NFS server available, giving up.
VFS: Unable to mount root fs via NFS, trying floppy.
jffs2_scan_inode_node(): CRC failed on node at 0x020609c4: Read 0xffffffff, calculated 0xd5c34c81
Empty flash at 0x0349d41c ends at 0x0349d600
VFS: Mounted root (jffs2 filesystem).
Freeing init memory: 108K
Warning: unable to open an initial console.
jffs2_get_inode_nodes(): Data CRC failed on node at 0x0349d3a8: Read 0xfba74207, calculated 0xbafe0fe2
ORION eth0: MII transceiver 1 status 0x786d advertising 01e1.
eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1
loading xport firmware
 readed xport fw data section size =240
readed xport fw text section size =10872
loded xport firmware

--CSVID_IOC_SET_STARTDELAY--
Delay Time = 50
loading xport firmware
 readed xport fw data section size =240
readed xport fw text section size =10872
loded xport firmware

--CSVID_IOC_SET_STARTDELAY--
Delay Time = 50

--CSVID_IOC_SET_STARTDELAY--
Delay Time = 50

--CSVID_IOC_SET_STARTDELAY--
Delay Time = 50

--CSVID_IOC_SET_STARTDELAY--
Delay Time = 50

--CSVID_IOC_SET_STARTDELAY--
Delay Time = 50

--CSVID_IOC_SET_STARTDELAY--
Delay Time = 50

--CSVID_IOC_SET_STARTDELAY--
Delay Time = 50
# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00070000 00010000 "u-boot"
mtd1: 00020000 00010000 "loader1"
mtd2: 00020000 00010000 "loader2"
mtd3: 00200000 00010000 "kernel"
mtd4: 00550000 00010000 "fs"
mtd5: 04000000 00004000 "Part01"
# mount
rootfs on / type rootfs (rw)
/dev/root on / type jffs2 (rw,noatime)
none on /proc type proc (rw,nodiratime)
none on /sys type sysfs (rw)
none on /dev type tmpfs (rw)
devpts on /dev/pts type devpts (rw)
tmpfs on /tmp type tmpfs (rw)
# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                64.0M     30.0M     34.0M  47% /
none                     64.0K         0     64.0K   0% /dev
tmpfs                    30.2M      8.0K     30.1M   0% /tmp
# free
              total         used         free       shared      buffers
  Mem:        61752        13432        48320            0            0
 Swap:            0            0            0
Total:        61752        13432        48320
# ps
  PID USER       VSZ STAT COMMAND
    1 root      2460 S    init
    2 root         0 SWN  [ksoftirqd/0]
    3 root         0 SW<  [events/0]
    4 root         0 SW<  [khelper]
    5 root         0 SW<  [kthread]
    7 root         0 SW<  [kblockd/0]
   10 root         0 SW   [khubd]
   41 root         0 SW   [pdflush]
   42 root         0 SW   [pdflush]
   44 root         0 SW<  [aio/0]
   43 root         0 SW   [kswapd0]
  267 root         0 SW   [mtdblockd]
  288 root         0 SW   [pccardd]
  315 root         0 SWN  [jffs2_gcd_mtd5]
  503 root      2464 S    -/bin/sh
  763 root      2464 R    ps

El firmware original del receptor no levanta la interfaz de red, ni esta preparado para ello. No se ejecuta udhcpc, telnetd ni ssh.

IC HDMI Analogix ANX7150 ANX7150 Product Brief

Tunner/Demodulador DIBCOM DIB8096GP Info

Acceso a Consola

Ingreso por consola serial: El receptor tiene 4 pines de acceso TTL. Ver imagen

Lado: conector antena
 ---
| * | Pin 1 - RX
| * | Pin 2 - TX
| * | Pin 3 - GRD
| * | Pin 4 - VCC
 ---
Lado: frente receptor

Configuración del terminal:

Speed: 115200
Databits: 8
Stop bits: 1
parity: none
flow control: none
Configurar Red en el boot

Agregar en /etc/network/interfaces

# vi /etc/network/interfaces
# Configure Loopback
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
Iniciar cliente dhcp en el boot

Agregar /etc/init.d/S50udhcp

# vi /etc/init.d/S50udhcp

#!/bin/sh
#
# Start the udhcpc....
#

start() {
        echo "Starting udhcpc..."
        udhcpc -t 1 -b -i eth0 -p /var/run/eth0.pid &
}
stop() {
        echo -n "Stopping udhcpc..."
        kill $(cat /var/run/eth0.pid)
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart|reload)
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart}"
        exit 1
esac

exit $?

Dar permisos de ejecución: chmod 777 /etc/init.d/S50udhcp

Iniciar telnet en el boot

Agregar /etc/init.d/S45telnet

# vi /etc/init.d/S45telnet

#!/bin/sh
#
# Start the telnet....
#

start() {
        echo "Starting telnet..."
        /usr/sbin/telnetd -p 1111 -K -l /bin/sh
}
stop() {
        echo -n "Stopping telnet..."
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart|reload)
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart}"
        exit 1
esac

exit $?

Dar permisos de ejecución: chmod 777 /etc/init.d/S45telnet

Acceso a bootloader U-Boot

Para accesder a la linea de comando de U-Boot hay que presionar una tecla para detener el booteo normal cuando indica “Hit any key to stop autoboot: 0”

U-Boot 1.2.0 (Sep 21 2011 - 09:52:41)

DRAM:  256 MB
Flash:  8 MB
NAND:
Bad block table found at page 131040, version 0x01

Bad block table found at page 131008, version 0x01
64 MB
Probe Fail! No Such Devices!
Init CSM1201 I2C!
In:    serial
Out:   serial
Err:   serial
MAC: 00:1a:cc:01:xx:xx
Hit any key to stop autoboot:  0
CSM1201 #
Comandos disponibles
CSM1201 # help
?       - alias for 'help'
anx9030_init     - initial hdmi transmitter of Analogix 9030
autoscr - run script from memory
base    - print or set address offset
bdinfo  - print Board Info structure
bootm   - boot application image from memory
bootp   - boot image via network using BootP/TFTP protocol
check      - check memory value
cmp     - memory compare
cp      - memory copy
crc32   - checksum calculation
dhcp    - invoke DHCP client to obtain IP/boot params
diskboot- boot from IDE device
echo    - echo args to console
eeprom  - EEPROM sub-system
erase   - erase FLASH memory
exit    - exit script
fatinfo - print information about filesystem
fatload - load binary file from a dos filesystem
fatls   - list files in a directory (default /)
flinfo  - print FLASH memory information
fpcd    - Display data on frontpanel led
fpcraw  - Display data on frontpanel led
go      - start application at address 'addr'
gpio    - gpio read/write bit
help    - print online help
i2c     - I2C sub-system
icrc32  - checksum calculation
ide     - IDE sub-system
iloop   - infinite loop on address range
imd     - i2c memory display
iminfo  - print header information for application image
imm     - i2c memory modify (auto-incrementing)
imw     - memory write (fill)
inm     - memory modify (constant address)
iprobe  - probe to discover valid I2C chip addresses
itest   - return true/false on integer compare
loadb   - load binary file over serial line (kermit mode)
loads   - load S-Record file over serial line
loady   - load binary file over serial line (ymodem mode)
logo    -display logo picture on TV Screenloop    - infinite loop on address range
md      - memory display
mm      - memory modify (auto-incrementing)
mtest   - simple RAM test
mw      - memory write (fill)
nand    - NAND sub-system
nboot   - boot from NAND device
nm      - memory modify (constant address)
ping    - send ICMP ECHO_REQUEST to network host
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
sfer    - spi flash erase
sfinfo  - display spi flash informations.
sfre    - spi flash read byte.
sfwr    - spi flash write byte
sleep   - delay execution for some time
test    - minimal test like /bin/sh
tftpboot- boot image via network using TFTP protocol
update - update your u-boot.bin / uImage / ramdiskg.img by USB storage device.
usb     - USB sub-system
usbboot - boot from USB device
usbtest - test USB host controller of ORION 1.4
version - print monitor version
writenum  - write string to eeprom for hunan Project'
Variables del sistema
CSM1201 # printenv
bootdelay=0
baudrate=115200
ipaddr=192.168.18.118
serverip=192.168.18.18
macwrite=eeprom read 0x100000 4 1;if itest.b *0x100000 != 0xa;then tftp 0x100000 hunan;writenum 0x100000 114 12;mw.b 0x100000 0xa;eeprom write 0x100000 4 1;fi
bootargs=root=/dev/mtdblock/5 rw rootfstype=jffs2 console=ttyS0,115200 mem=64M mtdparts=phys_mapped_flash:448k(u-boot)ro,128k(loader1)ro,128k(loader2)ro,2048k(kernel),-(fs);ORION:-(Part01)
bootcmd=eeprom read 1000 200 1;if itest.b *1000 == 1;then run bootupdate;else run bootnormal;fi;if itest $lret == 0;then reset;elifitest $lreboot == 1;then run clearflag;reset;elif itest $lreboot == 0;then run clearflag;run bootnormal;fi
fixloader=eeprom read 1000 303 1;if itest.b *1000 == 1;then erase 0x34090000 +0x20000;cp.b 0x34070000 0x34090000 0x20000;run loaderfixed;elif itest.b *1000 == 2;then erase 0x34070000 +0x20000;cp.b 0x34090000 0x34070000 0x20000;run loaderfixed;fi;
clearflag=mw 1000 0 1;eeprom write 1000 200 1
loaderfixed=mw 1000 0 1;eeprom write 1000 303 1
bootupdate=run fixloader;cp.b 0x34070000 0x6000000 0x20000;logo 0x34400000;go 0x6000000
bootnormal=update;mw f400000 0 180000;bootm 340b0000
stdin=serial
stdout=serial
stderr=serial
verify=n

Environment size: 1193/65532 bytes
Información de la placa
CSM1201 # bdinfo
arch_number = 0x000002CF
env_t       = 0x00000000
boot_params = 0x00000100
DRAM bank   = 0x00000000
-> start    = 0x00000000
-> size     = 0x10000000
ethaddr     = 00:1A:CC:01:xx:xx
ip_addr     = 192.168.18.118
baudrate    = 115200 bps
Bootear un kernel desde servidor TFTP

Requisitos: Colocar la placa de red de la PC en la IP 192.168.18.18 y tener corriendo un servisor tftp con el kernel a bootear.

CSM1201 # tftpboot 0x8000 kernel.img
TFTP from server 192.168.18.18; our IP address is 192.168.18.118
Filename 'kernel.img'.
Load address: 0x8000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ####################
done
Bytes transferred = 2097152 (200000 hex)

CSM1201 # bootm 0x8000

0x8000 Valor inical de la ram donde alojar lo descargado.

Con esto se puede bootear un kernel sin guardarlo de forma permanente.

Guardar un kernel en la flash desde servidor TFTP

Requisitos: Colocar la placa de red de la PC en la IP 192.168.18.18 y tener corriendo un servisor tftp con el kernel a guardar.

La memoria flash de 8MB tiene direcciones desde 0x34000000 a 0x347F0000 y según el log de booteo desde la dirección 0x340B0000 esta el kernel.

CSM1201 # tftpboot 0x8000 kernel.img
TFTP from server 192.168.18.18; our IP address is 192.168.18.118
Filename 'kernel.img'.
Load address: 0x8000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ####################
done
Bytes transferred = 2097152 (200000 hex)

CSM1201 # erase 340b0000 +200000
................................ done
Erased 32 sectors

CSM1201 #  cp.b 0x8000 0x340b0000 0x200000

CSM1201 # bootm 0x340b0000 

0x340b0000 valor de la memoria flash que busca al bootear para arrancar el kernel.

0x8000 Valor inical de la ram donde alojar lo descargado.

IMPORTANTE: Los cambios son permanentes.

Links

Filesystem formato jffs2: Descargar

Dump de la Nand mtd0 a mtd5 separados Descargar

 
receptores/dv-5036.txt · Última modificación: 04/05/2011 23:49 por pablo     Ir hasta arriba
Recent changes RSS feed Creative Commons Argentina - Atribución - Compartir Derivadas Igual Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki Design by Chirripó