pastebin - collaborative debugging tool
eckelmann.kpaste.net RSS


rauc and state working again on ci4000
Posted by Anonymous on Mon 11th Jun 2018 08:14
raw | new post

  1.  
  2. * Target aus dem Flash gebootet und Status per rauc abgerufen
  3.  
  4. root@CI4000:/media/vardata rauc status
  5. Compatible:  Eckelmann AG CI4000
  6. Variant:     (null)
  7. Booted from: system0
  8. Activated:   rootfs.0
  9. slot states:
  10.   rootfs.0: class=rootfs, device=/dev/mmcblk0p1, type=ext4, bootname=system0
  11.       state=booted, description=, parent=(none), mountpoint=(none)
  12.       boot status=good
  13.   rootfs.1: class=rootfs, device=/dev/mmcblk0p2, type=ext4, bootname=system1
  14.       state=inactive, description=, parent=(none), mountpoint=(none)
  15.       boot status=good
  16.  
  17. i: Man sieht, das system0 der aktive slot ist
  18.  
  19. * Rauc bundle per scp auf das Target kopier nach /media/vardata (NAND Partition)
  20. * rauc update ausgeführt
  21.  
  22. root@CI4000:/media/vardata rauc install update.raucb
  23. rauc-Message: installing /media/vardata/update.raucb: installing
  24. rauc-Message: installing /media/vardata/update.raucb:   0% Installing
  25. rauc-Message: installing /media/vardata/update.raucb:   0% Determining slot states
  26. rauc-Message: installing /media/vardata/update.raucb:  20% Determining slot states done.
  27. rauc-Message: installing /media/vardata/update.raucb:  20% Checking bundle
  28. rauc-Message: installing /media/vardata/update.raucb:  20% Verifying signature
  29. rauc-Message: installing /media/vardata/update.raucb:  40% Verifying signature done.
  30. rauc-Message: installing /media/vardata/update.raucb:  40% Checking bundle done.
  31. rauc-Message: installing /media/vardata/update.raucb:  40% Loading manifest file
  32. rauc-Message: installing /media/vardata/update.raucb:  60% Loading manifest file done.
  33. rauc-Message: installing /media/vardata/update.raucb:  60% Determining target install group
  34. rauc-Message: installing /media/vardata/update.raucb:  80% Determining target install group done.
  35. rauc-Message: installing /media/vardata/update.raucb:  80% Updating slots
  36. rauc-Message: installing /media/vardata/update.raucb:  80% Checking slot rootfs.1
  37. [ 1103.131825] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
  38. rauc-Message: installing /media/vardata/update.raucb:  90% Checking slot rootfs.1 done.
  39. rauc-Message: installing /media/vardata/update.raucb:  90% Copying image
  40. [ 1107.266405] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
  41. rauc-Message: installing /media/vardata/update.raucb: 100% Copying image done.
  42. [ 1137.063495] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
  43. [ 1139.322751] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
  44. rauc-Message: installing /media/vardata/update.raucb: 100% Updating slots done.
  45. rauc-Message: installing /media/vardata/update.raucb: 100% Installing done.
  46. Installing `/media/vardata/update.raucb` succeeded
  47. root@CI4000:/media/vardata echo $?
  48. 0
  49.  
  50. +i rauc update war erfolgreich
  51.  
  52. * Rauc status erneut aufrufen und prüfen
  53.  
  54. root@CI4000:/media/vardata rauc status
  55. Compatible:  Eckelmann AG CI4000
  56. Variant:     (null)
  57. Booted from: system0
  58. Activated:   rootfs.1
  59. slot states:
  60.   rootfs.0: class=rootfs, device=/dev/mmcblk0p1, type=ext4, bootname=system0
  61.       state=booted, description=, parent=(none), mountpoint=(none)
  62.       boot status=good
  63.   rootfs.1: class=rootfs, device=/dev/mmcblk0p2, type=ext4, bootname=system1
  64.       state=inactive, description=, parent=(none), mountpoint=(none)
  65.       boot status=good
  66.  
  67. i: Man sieht, das immernoch aus system0 gebootet ist, jetzt aber rootfs.1 aktiviert wurde
  68.  
  69. * Neustart des Systems
  70.  
  71. Hit ctrl-c to stop autoboot:    0
  72. booting 'bootchooser'
  73. booting 'PTXdist - Eckelmann AG-CI4000 imx25-eag-ci4000'
  74. Adding "root=PARTUUID=22020108-02" to Kernel commandline
  75.  
  76. Loading ARM Linux zImage '/mnt/mmc0.1//boot/zImage'
  77. Loading devicetree from '/mnt/mmc0.1//boot/imx25-eag-ci4000.dtb'
  78. commandline: alignment=3  bootchooser.active=system1 root=PARTUUID=22020108-02 console=ttymxc0,115200n8 rootfstype=ext4   reset_cause=RST
  79.  
  80. +i: Der Bootchooser entscheidet richtig
  81. +i: Es gibt zwei Neustarts wegen RC-once
  82.  
  83. * Rauc Status erneut prüfen
  84.  
  85. root@CI4000:~ rauc status
  86. Compatible:  Eckelmann AG CI4000
  87. Variant:     (null)
  88. Booted from: system1
  89. Activated:   rootfs.1
  90. slot states:
  91.   rootfs.0: class=rootfs, device=/dev/mmcblk0p1, type=ext4, bootname=system0
  92.       state=inactive, description=, parent=(none), mountpoint=(none)
  93.       boot status=good
  94.   rootfs.1: class=rootfs, device=/dev/mmcblk0p2, type=ext4, bootname=system1
  95.       state=booted, description=, parent=(none), mountpoint=(none)
  96.       boot status=good
  97.  
  98. +i: Sieht gut aus. Von system1 gebootet und rootfs.1 ist der aktive slot.

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}





All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at