pastebin - collaborative debugging tool
eckelmann.kpaste.net RSS


rauc and state working again on ci4x10
Posted by Anonymous on Mon 11th Jun 2018 10:55
raw | new post

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

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