Erstinbetriebnahme 'Karo TX27'

  1. Anschluss mit Presto an Programmierschnittstelle.
  2. 230V Speisung anschliessen
  3. Mit ASIX UP den tinybld18F6620_V2.00.hex auf den PIC laden.
  4. Anschluss an Netzwerk und Verbindung via serielle Schnittstelle (Schalter PIC-Mon in Mittelstellung und Schalter UNC-Deb in Stellung "UNC").
  5. Zugang per PuTTY mit 115200 Baud
  6. Am Eingabepromt (RedBoot> ) folgendes eingeben:
    ip -b -h 192.168.80.14;load -r -b 0xa0100000 TX27-40x0.bin;fis create RedBoot
    
    Auf Frage "An image named 'RedBoot' exists - continue (y/n)?" mit "Y" antworten. Danach Folgendes eingeben:
    reset
    
    Nun sollte folgende Version angezeigt werden: (vorallem built Datum beachten!)
    RedBoot(tm) bootstrap and debug environment [ROMRAM]
    Non-certified release, version Ka-Ro 2009-06-10 - built 13:56:12, Apr  3 2013
    
  7. Am Eingabepromt (RedBoot> ) folgendes eingeben:
    fis create -s 0 -f 0xE0040000 -l 0x04000000 -b 0xA0100000 rootfs;fis create -s 0 -f 0xE4040000 -l 0x01000000 -b 0xA0100000 config;fis create -s 0 -f 0xE5040000 -l 0x02000000 -b 0xA0100000 log;fis create -s 0 -f 0xE7040000 -l 0x00B20000 -b 0xA0100000 state;fis create -s 0x00200000 -f 0xE7B60000 -l 0x00400000 -b 0xA0108000 -r 0xA0108000 -e 0xA0108000 linux
    
    Danach Folgendes eingeben:
    fconfig
    
    Dann die Felder gemäss nachfolgender Auflistung ausfüllen:
    Run script at boot: true
    Boot script:
    fis load linux
    exec -c "root=1f01 rootfstype=jffs2 ro console=ttymxc0,115200 panic=1"
    
    Boot script timeout (10ms resolution): 300
    Use BOOTP for network configuration: false.
    
    Auf Frage "Update RedBoot non-volatile configuration - continue (y/n)?" mit "Y" antworten.
  8. Durch Eingabe der folgenden Zeile wird das Aufsetzen des Voiceagent gestartet.
    ip -b -h 192.168.80.14;load -r -b 0xa0108000 zImage_tx27;exec -c "ip=dhcp root=/dev/nfs nfsroot=192.168.80.14:/srv/nfs/TX27 ro panic=1"
    
  9. Der Voiceagent wird nun automatisch aufgesetzt (Schalter PIC-Mon auf "Mon" umschalten und Schalter UNC-Deb in Mittelstellung) und startet dann neu.

0.) Set IP-Address
RedBoot> ip -l 192.168.100.202/24 -h 192.168.100.14

Update RedBoot
1.) Load the RedBoot image file to memory
RedBoot> load -r -b 0xa0100000 TX27-40x0.bin

2.) Program the image into flash
RedBoot> fis create RedBoot
    Enter 'y' at the prompt:
An image named 'RedBoot' exists - continue (y/n)?

3.) Restart the board to activate the new RedBoot
RedBoot> reset
    You should see the following version information:
Non-certified release, version Ka-Ro 2009-06-10 - built 17:15:48, Feb 23 2011

4.) Recreate the configuration:
RedBoot> fconfig

Run script at boot: true
Boot script:
>>fis load linux
>>exec -c "root=1f01 rootfstype=jffs2 ro console=ttymxc0,115200 panic=1"
>>
Boot script timeout (10ms resolution): 300
Use BOOTP for network configuration: false
Gateway IP address: 0.0.0.0
Local IP address: 0.0.0.0
Local IP address mask: 0.0.0.0
Default server IP address: 0.0.0.0
Console baud rate: 115200
Set FEC network hardware address [MAC]: true
FEC network hardware address [MAC]: 0x00:0x0C:0xC6:0x74:0x4D:0x92 (gemäss TX27)
GDB connection port: 9000
Force console for special debug messages: false
Network debug at boot time: false

5.) Verify the partioning:
RedBoot> fis list
Name              FLASH addr  Mem addr    Length      Entry point
RedBoot           0xE0000000  0xE0000000  0x00040000  0xA0100000
FIS directory     0xE7F60000  0xE7F60000  0x0001F000  0x00000000
RedBoot config    0xE7F7F000  0xE7F7F000  0x00001000  0x00000000

if other names exist do reinitialize the flash partition table:
RedBoot> fis init -f
About to initialize [format] FLASH image system - continue (y/n)? y

8.) Recreate the flash partitions
RedBoot> fis create -s 0 -f 0xE0040000 -l 0x04000000 -b 0xA0100000 rootfs
RedBoot> fis create -s 0 -f 0xE4040000 -l 0x01000000 -b 0xA0100000 config
RedBoot> fis create -s 0 -f 0xE5040000 -l 0x02000000 -b 0xA0100000 log
RedBoot> fis create -s 0 -f 0xE7040000 -l 0x00B20000 -b 0xA0100000 state
RedBoot> fis create -s 0 -f 0xE7B60000 -l 0x00400000 -b 0xA0108000 -r 0xA0108000 -e 0xA0108000 linux
    This will create empty partitions.

9.) Verify the partitioning:
RedBoot> fis list
Name              FLASH addr  Mem addr    Length      Entry point
RedBoot           0xE0000000  0xE0000000  0x00040000  0xA0100000
rootfs            0xE0040000  0xA0100000  0x04000000  0xFFFFFFFF
config            0xE4040000  0xA0100000  0x01000000  0xFFFFFFFF
log               0xE5040000  0xA0100000  0x02000000  0xFFFFFFFF
state             0xE7040000  0xA0100000  0x00B20000  0xFFFFFFFF
linux             0xE7B60000  0xA0108000  0x00400000  0xA0108000
FIS directory     0xE7F60000  0xE7F60000  0x0001F000  0x00000000
RedBoot config    0xE7F7F000  0xE7F7F000  0x00001000  0x00000000

10.) Reprogram the rootfs and linux partitions:
RedBoot> ip -l 192.168.100.202/24 -h 192.168.100.14
RedBoot> load -r -b 0xa0100000 rootfs_tx27.image
RedBoot> fis create rootfs
An image named 'rootfs' exists - continue (y/n)? y
RedBoot> load -r -b 0xa0100000 config_tx27.image
RedBoot> fis create config
An image named 'config' exists - continue (y/n)? y
RedBoot> load -r -b 0xa0108000 zImage_tx27
RedBoot> fis create -s 0x00200000 linux
An image named 'linux' exists - continue (y/n)? y

11.) Restart the module
RedBoot> reset
    Now the module should boot the new Linux kernel

12.) Login to module
putty <192.168.100.xxx> telnet

13.) Setup network
putty> php /var/voiceagent/include/setnet.inc

14.) Setup PIC software
putty> tftp -gr voiceagent.hex -l /tmp/voiceagent.hex hapi
putty> update-pic /tmp/voiceagent.hex