Erstinbetriebnahme 'Digi UNC90' (alias 'ConnectCore 9U', kurz 'CC9U')
NEU!- Anschluss an Netzwerk und Verbindung via serielle Schnittstelle
- Zugang per PuTTY mit 38400 Baud für neue Module, 57600 für bereits programmierte
- Mit Enter den Boot-Countdown abbrechen
- Eingabe:
set serverip 192.168.80.14;set bootfile uStage1;dhcp;auto
- Den Anweisungen folgen, nach Eingabe von "run continue" die serielle Schnittstelle auf Monitor umschalten und dann warten, bis die Installation automatisch abgeschlossen wird.
bisher:
- Setup der uBoot-Variablen
- Downgrade uBoot auf V1.1.2 (siehe 'instruction c)')
- Booten des Moduls
- Installation der Software
modify a cramfs
mount -t cramfs -o loop /srv/nfs/UNC90/cramfs.img /mnt/cramfs/Kopieren mit tar! Sonst gibt's eine unvollständige Kopie
cd /mnt tar -czvf /tmp/tmp.tgz cramfs tar -xzvf tmp.tgz umount /mnt/cramfs mv /srv/nfs/UNC90/cramfs.img /srv/nfs/UNC90/cramfs.img.prevDann gewünschte Files tauschen / ergänzen. Dann neue cramfs erzeugen
cd cramfs mkcramfs . /srv/nfs/UNC90/cramfs.imgtop
Geräte-Update ab Server (nur UNC90)
Ich habe die neuen images auf Hapi kopiert. Man kann den voiceagent per telnet den updatebefehl geben. Dazu einfach in der shell "mount-nfs && update" eingeben. Dadurch werden die images ab Hapi geladen und ins flash geschrieben. Nach einem Neustart des Voiceagent ist dieser mit dem aktuellen Stand geladen. Der PIC sollte auch noch mit beiliegendem Hexfile geupdatet werden. Im Anhang ist noch ein File mit den Befehlen um den Voiceagent von Grund auf aufzusetzen. Kannst du, Martin, das noch in das Howto übernehmen. Der Voiceagent hat ein neues Passwort! So dann hoffe ich, dass alles rund läuft!top
U-Boot-Variablen setzen
Diese Variablen setzen (es braucht nicht wirklich alle - wird noch bearbeitet):Voreinstellung Terminal: 38400 Baud (ab Werk) später 57600 Baud (Setup)
set dhcp 'no' set netm '255.255.255.0' set gw '192.168.100.1' set dns '192.168.100.10' set fileaddr '20100000' set ipaddr '192.168.100.202' set link 'auto' set bootfile 'uImage' set bootnfs 'run setnfsargs;run nfsker;bootm 20100000' set mtdparts 'mtdparts=modarm9:0x40000(u-Boot)ro,0x300000(Kernel),0x500000(rootfs),0x300000(config),-(log)' set nfspath '/srv/nfs/UNC90' set serverip '192.168.100.14' set console 'console=ttyS2' set baudrate '57600' >> siehe Kommentar set setnfsargs 'set bootargs $(console) root=/dev/nfs rw nfsroot=$(serverip):$(nfspath) $(mtdparts);set nfsker nfs 20100000 $(serverip):$(nfspath)/$(bootfile)'Beim Ändern der Baudrate im uBoot muss entsprechend die Baudrate beim Terminal angepasst werden. Eigentlich müsste das unnötig sein, da sowieso später per Setup die Baudrate eingestellt wird. Also könnte man bei 38400 Baud bleiben. top
Update U-Boot
Offenbar kann ein neuerer U-Boot nichts mit einem älteren Boot-File anfangen!" This is really a FAQ on U-BOOT.Note,U-BOOT can only boot LINUX kernel and RAMDISK in its format-by mkimage tools.You should convert vmlinux.gz as its required format.Detailes pls see README in u-boot root directory.Also,reading the following document carefully is very helpful: http://www.denx.de/twiki/bin/view/DULG/Manual "
Update Procedure
Files: U-Boot 1.1.2 Binary Special Instructions upgrade/downgrade instructions for U-Boot on CC9U/UNC90: a) via TFTP * place the new U-Boot binary image with filename: u-boot-unc90dev.bin into the download folder of your TFTP server * connect TFTP server host and development board with mounted CC9U with ethernet cross cable * interrupt U-Boot from autoboot to get U-Boot prompt on serial console and enter: * enter command: tftp 20100000 u-boot-unc90dev.bin * if upload was successfull continue, if not check your TFTP server connection until last step succeeded ONLY CONTINUE IF UPLOADING VIA TFTP SUCCEEDED! * enter command: protect off 1:0-3; erase 10000000 1003ffff * enter command: cp.b 20100000 10000000 $(filesize) * reset or enter: reset b) updating U-Boot via USB * place the new U-Boot binary image with filename: u-boot-unc90dev.bin into the root directory of a USB memory stick (the stick should have only one partition) * plugin the USB stick into the development board USB connector * interrupt U-Boot from autoboot to get U-Boot prompt on serial console * enter command: usb reset; fatload usb 0 20100000 u-boot-unc90dev.bin * if upload was successfull continue, if not try different memory stick until last step succeeded ONLY CONTINUE IF UPLOADING VIA USB SUCCEEDED! * enter command: protect off 1:0-3; erase 10000000 1003ffff * enter command: cp.b 20100000 10000000 $(filesize) * reset or enter: reset c) updating U-Boot via NFS * place the new U-Boot binary image with filename: u-boot-unc90dev.bin into the root directory of a USB memory stick (the stick should have only one partition) * plugin the USB stick into the development board USB connector * interrupt U-Boot from autoboot to get U-Boot prompt on serial console * if serverip and nfspath are set, enter command: nfs 20100000 $(serverip):$(nfspath)/u-boot-unc90dev.bin * if upload was successfull continue, if not try different memory stick until last step succeeded ONLY CONTINUE IF UPLOADING VIA USB SUCCEEDED! * enter command: protect off 1:0-3; erase 10000000 1003ffff * enter command: cp.b 20100000 10000000 $(filesize) * reset or enter: reset Dependencies This patch also requires the installation of the following patch(es): Nonetop
Alte Info! Setup U-Boot
set dhcp yes set autoload no set serverip 192.168.100.14 set nfspath /srv/nfs/UNC90 set bootfile uImage-unc90 set mtdparts mtdparts=unc90:0x20000(U-Boot),100000 (Kernel)ro,100000(rootfs),100000(flash_rw),100000(flash_ro)ro,100000 (flash2_rw),-(unused) set mtdparts mtdparts=modarm9:0x20000(U-Boot),0x100000(Kernel)ro,0x100000(rootfs),0x100000(flash_rw),0x100000(flash_ro)ro,-(flash2_rw) set setnfsargs 'set bootargs root=/dev/nfs rw nfsroot=$(serverip):$(nfspath) $(mtdparts)' set bootnfs 'run setnfsargs;dhcp;nfs 20100000 $(serverip):$(nfspath)/$(bootfile);bootm 20100000' set bootcmd 'run bootnfs' save boot all in one line: set dhcp yes;set autoload no;set serverip 192.168.100.14;set nfspath /srv/nfs/UNC90;set bootfile uImage-unc90;set bootargs 'root=/dev/nfs rw nfsroot=$(serverip):$(nfspath)';set bootnfs 'dhcp;nfs 20100000 $(serverip):$(nfspath)/$(bootfile);bootm 20100000';set bootcmd 'run bootnfs';save;dhcp;boottop
UNC90 ab NFS starten und Software laden
Da reicht die Eingabe von
run bootnfsim uBoot, wenn bisher alles Korrekt eingestellt worden ist.
Der neue VoiceAgent 'hört' auf der Adresse 192.168.100.202 (war ja zuvor eingestellt worden).
Im Prinzip läuft nun das UNC90 mit der neusten Software, möglicherweise neuer als die, die nun geladen wird. Muss sichergestellt sein, dass wirklich die neuste Software geladen wird, so muss auf HAPI mkvoiceagent_cramfs und mkvoiceagent_config_jffs2 ausgeführt werden. Ist eigentlich Sache der Entwicklung.
Nun Folgendes auf dem UNC90 ausführen:
setup_ubootsicherstellen, dass es keine Fehler gibt, und dann
webupdateBei Letzterem sieht man nicht viel, aber es passiert schon was... top
UNC90 Software laden
an dieser Stelle sollte bereits Linux via NFS laufen, und die Verbindungsparameter sind angezeigt worden. Eine Verbindung per Telnet sollte hergestellt werden können.
Im Prinzip läuft nun das UNC90 mit der neusten Software, möglicherweise neuer als die, die nun geladen wird. Muss sichergestellt sein, dass wirklich die neuste Software geladen wird, so muss auf HAPI mkvoiceagent_cramfs und mkvoiceagent_config_jffs2 ausgeführt werden. Ist eigentlich Sache der Entwicklung.
Nun Folgendes auf dem UNC90 ausführen:
setup-ubootsicherstellen, dass es keine Fehler gibt, und dann
websetupBei Letzterem sieht man nicht viel, aber es passiert schon was... top