Public bug reported:

---Problem Description---
Firmware updation using update_flash -f option does not work when kexec.service 
is running
 
---uname output---
Linux p824l 4.1.0-1-generic #1-Ubuntu SMP Mon Jul 20 19:37:16 UTC 2015 ppc64le 
ppc64le ppc64le GNU/Linux
 
Machine Type = P8 
  
---Steps to Reproduce---
Install a P8 PowerNV 8247-42L Hardware with Ubuntu 15.10.
Then I am trying to update the firmware with update_flash tool.

root@p824l:~# /etc/init.d/kdump-tools status
? kdump-tools.service - Kernel crash dump capture service
   Loaded: loaded (/lib/systemd/system/kdump-tools.service; enabled; vendor 
preset: enabled)
   Active: active (exited) since Thu 2015-07-23 01:42:42 CDT; 1min 33s ago
  Process: 4128 ExecStart=/etc/init.d/kdump-tools start (code=exited, 
status=0/SUCCESS)
 Main PID: 4128 (code=exited, status=0/SUCCESS)

Jul 23 01:42:41 p824l kdump-tools[4128]: Starting kdump-tools: Modified 
cmdline:root=UUID=287d4c41-6900-46fd-bf28-9a2da94bfbff ro quiet splash 3 
...r=155520K
Jul 23 01:42:41 p824l kdump-tools[4128]: segment[0].mem:0x8000000 memsz:24969216
Jul 23 01:42:41 p824l kdump-tools[4128]: segment[1].mem:0x97d0000 memsz:65536
Jul 23 01:42:41 p824l kdump-tools[4128]: segment[2].mem:0x97e0000 memsz:65536
Jul 23 01:42:41 p824l kdump-tools[4128]: segment[3].mem:0x97f0000 memsz:65536
Jul 23 01:42:41 p824l kdump-tools[4128]: segment[4].mem:0x9800000 memsz:24182784
Jul 23 01:42:41 p824l kdump-tools[4128]: segment[5].mem:0x2ffa0000 memsz:393216
Jul 23 01:42:42 p824l kdump-tools[4128]: * loaded kdump kernel
Jul 23 01:42:42 p824l kdump-tools[4153]: /sbin/kexec -p --args-linux 
--command-line="root=UUID=287d4c41-6900-46fd-bf28-9a2da94bfbff ro quiet 
spla...1-generic
Jul 23 01:42:42 p824l systemd[1]: Started Kernel crash dump capture service.
Hint: Some lines were ellipsized, use -l to show in full.

root@p824l:~# /etc/init.d/kexec status
? kexec.service - LSB: Execute the kexec -e command to reboot system
   Loaded: loaded (/etc/init.d/kexec)
   Active: active (exited) since Thu 2015-07-23 01:40:14 CDT; 4min 8s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 3660 ExecStart=/etc/init.d/kexec start (code=exited, 
status=0/SUCCESS)

Jul 23 01:40:14 p824l systemd[1]: Starting LSB: Execute the kexec -e command to 
reboot system...
Jul 23 01:40:14 p824l systemd[1]: Started LSB: Execute the kexec -e command to 
reboot system.

root@p824l:~# uname -a
Linux p824l 4.1.0-1-generic #1-Ubuntu SMP Mon Jul 20 19:37:16 UTC 2015 ppc64le 
ppc64le ppc64le GNU/Linux

root@p824l:~# cat /etc/os-release
NAME="Ubuntu"
VERSION="15.10 (Wily Werewolf)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu Wily Werewolf (development branch)"
VERSION_ID="15.10"
HOME_URL="http://www.ubuntu.com/";
SUPPORT_URL="http://help.ubuntu.com/";
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/";


root@p824l:~# update_flash -f 01SV840_020_020.img
info: Current Temporary side will be committed to
Permanent side before being replaced with the new
image.

Projected Flash Update Results:
Current T Image: SV840_019
Current P Image: SV840_016
New T Image:     SV840_020
New P Image:     SV840_019

FLASH: Image ready...rebooting the system...
FLASH: This will take several minutes.
FLASH: Do not power off!
PolicyKit daemon disconnected from the bus.
We are no longer a registered authentication agent.
login as: ubuntu
[email protected]'s password:
Access denied
[email protected]'s password:
Welcome to Ubuntu Wily Werewolf (development branch) (GNU/Linux 4.1.0-1-generic 
ppc64le)

 * Documentation:  https://help.ubuntu.com/

  System information as of Thu Jul 23 01:46:28 CDT 2015

  System load:  0.49                Processes:                 979
  Usage of /:   1.0% of 1004.84GB   Users logged in:           0
  Memory usage: 0%                  IP address for enP3p9s0f0: 9.70.88.203
  Swap usage:   0%

  Graph this data and manage this system at:
    https://landscape.canonical.com/

Last login: Thu Jul 23 01:40:47 2015 from pavsubra.in.ibm.com

 
Userspace tool common name: /usr/sbin/update_flash 
 
The userspace tool has the following bit modes: 64-bit 

Workaround:

In the mean time, you can stop kdump service and do the FW update.. That
should work ..

Sample output with patch:
----------------------------------------

 ./update_flash -v -f /home/hegdevasant/01SV840_032_032.img 
info: Current fixpack level is unknown.

Projected Flash Update Results:
Current T Image: UNKNOWN
Current P Image: SV840_031
New T Image:     SV840_032
New P Image:     SV840_031

info: kexec service is running. It will be stopped before flashing.


./update_flash  -f /home/hegdevasant/01SV840_032_032.img 
info: Current fixpack level is unknown.

Projected Flash Update Results:
Current T Image: UNKNOWN
Current P Image: SV840_031
New T Image:     SV840_032
New P Image:     SV840_031

FLASH: Image ready...rebooting the system...
FLASH: This will take several minutes.
FLASH: Do not power off!

info: kexec service stopped.

** Affects: ubuntu
     Importance: Undecided
         Status: New


** Tags: architecture-ppc64le bugnameltc-127957 severity-critical 
targetmilestone-inin1510

** Tags added: architecture-ppc64le bugnameltc-127957 severity-critical
targetmilestone-inin1510

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1491063

Title:
  [LTCTest][opal][FW840] Firmware updation using update_flash -f option
  does not work when kexec.service is running

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/1491063/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to