RackTangle Kernel Update Procedure

Procedure

Please note the current PowerDNA unit works only with SD (SDSC) cards (please don't use SDHC and others - they will not boot).

Insert SD card to any Linux laptop with a SD card reader (internal or external USB), and do the following:

%CODE{"bash"}% scp -r ovms@ovms:/lbt/ovms_runtime/uei-tools/ueipac-3.4.0/rfs . cd rfs sudo ./createsdcard.sh rfs-3.4.0.tgz /dev/sXXX 192.168.53.62 %ENDCODE%

where you have to find /dev/sXXX (dmesg will show it; be careful not to overwrite your file system)

edit on card /etc/network.conf, put there:

%CODE{"inf"}% DEVICE=eth0 DHCP=no IPADDR=192.168.53.62 NETMASK=255.255.255.0 GATEWAY=192.168.53.1 HOSTNAME=ueipac %ENDCODE%

You can then test the new card in PowerDNA unit in Dan Cox's office (as long as he has the unit there).

Initial Issue Oct/Nov-2017

Could not run with all 12 boards - we were getting an error from the 211 API during configuration.

Original email from Brian Dao, of UEI 20171120:
Your UEIPAC driver was a little old (2.1.2). This issue sounds like an odd ball issue that we had before with our UEIPAC driver where it would work fine with 11 boards in the RACK, but would error out when adding the 12th board into it. This issue since had been fixed, and our latest 3.4.0 UEIPAC driver does have that fix.

I had put our latest UEIPAC toolkit ISO on our ftp site for you to download. See link:

ftp://ftp.ueidaq.com/pub/drop/Engineering%20Releases/Kellee/ueipac_toolkit-3.4.0.iso

Unfortunately, you have to update a few things (below). I have enclosed the UEIPAC Software Manual for your reference.

  1. Your software/compiler/driver library on your development PC to 3.4.0. So install this 3.4.0 Linux toolkit on your PC and recompile your code.
  2. Update your RACK\x92s kernel image. Please follow section 9.1.2 in the manual to update the kernel image on your RACK.
  3. Update your SD card to 3.4.0. Please follow section 9.2 to update your SD card.

Once you are done with the update, download your newly compiled code and try again.

Hope this helps.

Thanks
Brian Dao

United Electronic Industries, Inc.



  • The document referenced in the email was captured here

  • The ISO file referenced in the email was captured on the ovms machine in /lbt/ovms_runtime/uei-tools

  • The kernel file is on the ovms machine in /lbt/ovms_runtim/uei-tools/ueipac-3.4.0/kernel/ueipac834x/cuImage.ueipac834x

  • The OVMS ovmsrtService under version 1.0.4 was built with the 3.4.0 SDK.
    It is on the UEI as the file ovmsrtService-1.0.4 .

  • Our DNR-12-1G RackTangle is using an 8347 PPC processor, so we use the cuImage.ueipac834x kernel image:
    UEIPAC9.1.png

  • Section 9.1.2 from the document:
    UEIPAC-9.1.2.png

Issues During the Update July/Aug-2018

  • Initially, Petr/!LeRoy/Stephen tried to just modify the SD card to be the updated version; as the kernel is booted from the flash memory whose update requires a serial interface (as noted in the procedure above), this did not work.
  • 20-July, LeRoy and Petr flashed the new kernel to the RACK; the new SDHC card was not booting; the old SD card booted up but ovmsrtService cannot be started due to incompatible ABI.
  • 24-July, Petr had used the UEI scripts to create new SD cards with the latest version; the new SD card caused a kernel panic when booting; Petr found out from UEI that our RACK requires older, standard SD (SDSC); not SDHC 10x etc-pure SD SD, see https://en.wikipedia.org/wiki/Secure_Digital for details:. Fast SD card module not found complaints materialized during bootup on serial interface before panicking as the kernel was unable to mount root.
    New cards were ordered and the script was used by David/Stephen to create another set of SD cards. The hardware SD problem is relevant only to older UEI PowerDNA cubes, newer boots from SDHC.
  • 2-Aug, LeRoy installed the new SD card. 12 card startup failed the same way as before. Petr modified the real-time code to use the 2-1-7 API instead of 2-1-1, and that didn't work either. 11 board started up fine (-d 11).
  • 6/7-Aug, Kellee modified the code back to the 2-1-1 API since our boards are that model. Board 8 seemed to be unhappy in the devtbl and SampleLayerPing test programs (according to UEI support).
  • 16-Aug, JMH powered off and reseated board 8. When we tried to run the application, it was gone after reboot. There were Write protected!! complaints in the ovms-uei dmesg. Copied the application and config files back to the RACK and it ran with 12 boards.
  • 22-Aug, LeRoy pulled the SD card and found that its read only lock was engaged. After he moved the card read only lock to unlock position, the application no longer went away on reboot or unit power off/on, and the Write protected!! messages were gone. He used an SD card reader on the mountain to verify the two cards that he had.

Here's what we see now (Aug 2018) on the RACK:
~ # devtbl
UEIPAC Driver, version 3.4.0

Address    Irq  Model Option  Phy/Virt  S/N     Pri  LogicVer  DevN
-------------------------------------------------------------------
0xcad00000   21    211    1    phys   0049330     0  02.0f.83  0
0xcad10000   21    211    1    phys   0049331     0  02.0f.83  1
0xcad20000   21    211    1    phys   0049332     0  02.0f.83  2
0xcad30000   21    211    1    phys   0049333     0  02.0f.83  3
0xcad40000   21    211    1    phys   0049334     0  02.0f.83  4
0xcad50000   21    211    1    phys   0164791     0  02.11.9f  5
0xcad60000   21    211    1    phys   0164818     0  02.11.9f  6
0xcad70000   21    211    1    phys   0049336     0  02.0f.83  7
0xcad80000   21    211    1    phys   0048574     0  02.0f.83  8
0xcad90000   21    211    1    phys   0049158     0  02.0f.83  9
0xcada0000   21    211    1    phys   0049161     0  02.0f.83  10
0xcadb0000   21    211    1    phys   0164832     0  02.11.9f  11
0xcadc0000   21     20    1    phys   0037412     0  02.0d.09  12
0xcadd0000   -1     40    1    phys   0047772     0  02.0f.33  13
0xcade0000   21      5    1    phys   0047745     0  02.0f.26  14
------------------------------------------------------------------


~ # ./SampleLayerPing

 ipaddr  = 0.0.0.0
 model   = 3012
 sernum  = 0047745
 mfgdate = 3/30/2009
 caldate = 3/30/2009
 Model: 211 Option: 1
 Model: 211 Option: 1
 Model: 211 Option: 1
 Model: 211 Option: 1
 Model: 211 Option: 1
 Model: 211 Option: 1
 Model: 211 Option: 1
 Model: 211 Option: 1
 Model: 211 Option: 1
 Model: 211 Option: 1
 Model: 211 Option: 1
 Model: 211 Option: 1
 Model: 20 Option: 1
 Model: 40 Option: 1
Slot num: 1 - Model: 211 - S/N: 49330
Slot num: 2 - Model: 211 - S/N: 49331
Slot num: 3 - Model: 211 - S/N: 49332
Slot num: 4 - Model: 211 - S/N: 49333
Slot num: 5 - Model: 211 - S/N: 49334
Slot num: 6 - Model: 211 - S/N: 164791
Slot num: 7 - Model: 211 - S/N: 164818
Slot num: 8 - Model: 211 - S/N: 49336
Slot num: 9 - Model: 211 - S/N: 48574
Slot num: 10 - Model: 211 - S/N: 49158
Slot num: 11 - Model: 211 - S/N: 49161
Slot num: 12 - Model: 211 - S/N: 164832
Topic revision: r6 - 13 Oct 2018, PetrKubanek
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback