<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Kexec not working for i.MX6ULL in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Kexec-not-working-for-i-MX6ULL/m-p/1208598#M167446</link>
    <description>&lt;P&gt;Partial Success: Looks like the --dtb argument in kexec was the problem. Omitting it allowed me to get much further in the kernel boot process. Not there totally yet, but close, I think.&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;</description>
    <pubDate>Fri, 08 Jan 2021 01:40:04 GMT</pubDate>
    <dc:creator>bsmucker</dc:creator>
    <dc:date>2021-01-08T01:40:04Z</dc:date>
    <item>
      <title>Kexec not working for i.MX6ULL</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Kexec-not-working-for-i-MX6ULL/m-p/1208555#M167439</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello all,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am just beginning to work at creating a yocto environment for a new device which uses the var-som-6ul module. Our device requires the use of kexec.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I compiled a custom kernel and was able to boot that kernel from u-boot. Everything was fine.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But when attempting to use kexec to boot back into the same kernel, I got the following boot message:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; kexec -d -l /mnt/images/boot/zImage --dtb /mnt/images/boot/imx6ull-var-som-concerto-board-nand-sd
-card.dtb '--append=root=/dev/ram0   console=ttymxc0,115200 rootwait=1 rw  earlyprintk '           
syscall kexec_file_load not available.                                                             
Try gzip decompression.                                                                            
Try LZMA decompression.                                                                            
lzma_decompress_file: read on /mnt/images/boot/zImage of 2127437444 bytes failed                   
kernel: 0x76599008 kernel_size: 0x805c70                                                           
MEMORY RANGES                                                                                      
0000000080000000-000000009fffffff (0)                                                              
zImage header: 0x016f2818 0x00000000 0x00805c70                                                    
zImage size 0x805c70, file size 0x805c70                                                           
zImage requires 0x00816c70 bytes                                                                   
  offset 0x00001980 tag 0x5a534c4b size 8                                                          
Decompressed kernel sizes:                                                                         
 text+data 0x012b1d80 bss 0x0006c568 total 0x0131e2e8                                              
Resulting kernel space: 0x01ac89f0                                                                 
Kernel: address=0x80008000 size=0x01ac89f0                                                         
DT    : address=0x81ad2000 size=0x00008600                                                         
kexec_load: entry = 0x80008000 flags = 0x280000                                                    
nr_segments = 2                                                                                    
segment[0].buf   = 0x76599008                                                                      
segment[0].bufsz = 0x805c74                                                                        
segment[0].mem   = 0x80008000                                                                      
segment[0].memsz = 0x806000                                                                        
segment[1].buf   = 0xd58658                                                                        
segment[1].bufsz = 0x8600                                                                          
segment[1].mem   = 0x81ad2000                                                                      
segment[1].memsz = 0x9000                                                                          
+ kexec -e                                                                                         
[   40.810290] cfg80211: failed to load regulatory.db                                              
[   40.848865] ci_hdrc ci_hdrc.1: remove, state 4                                                  
[   40.854702] usb usb1: USB disconnect, device number 1                                           
[   40.870996] ci_hdrc ci_hdrc.1: USB bus 1 deregistered                                           
[   40.894760] kexec_core: Starting new kernel                                                     
[   40.912538] Disabling non-boot CPUs ...                                                         
[   40.919907] Bye!                                                                                
[    0.000000] Booting Linux on physical CPU 0x0                                                   
[    0.000000] Linux version 5.4.3-imx6ul+gb40ccfdb73ea (oe-user@oe-host) (gcc version 9.2.0 (GCC))
 #1 SMP PREEMPT Sat Jan 2 20:29:17 UTC 2021                                                        
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d                     
[    0.000000] CPU: div instructions available: patching division code                             
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache            
[    0.000000] OF: fdt: Machine model: Variscite VAR-SOM-6UL with i.MX6ULL, NAND flash &amp;amp; SD card su
pport on Concerto-Board                                                                            
[    0.000000] printk: bootconsole [earlycon0] enabled                                             
[    0.000000] Memory policy: Data cache writealloc                                                
[    0.000000] cma: Size (0x02000000) of region at 0x00000000 exceeds limit (0x00000000)           
[    0.000000] cma: Failed to reserve 32 MiB                                                       
[    0.000000] Kernel panic - not syncing: early_alloc: Failed to allocate 8192 bytes align=0x2000 
[    0.000000] ---[ end Kernel panic - not syncing: early_alloc: Failed to allocate 8192 bytes alig
n=0x2000 ]---                                                                 &lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;So somehow the u-boot environment is different from the kexec environment in terms of the memory, it seems.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In the past, I have been able to fix this problem by either a linux command line option: (mem=xxxx??)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;or in the device tree.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But after experimenting with both of those approaches, I have had no success.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Has anyone had any experience with this and could help?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 23:30:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Kexec-not-working-for-i-MX6ULL/m-p/1208555#M167439</guid>
      <dc:creator>bsmucker</dc:creator>
      <dc:date>2021-01-07T23:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Kexec not working for i.MX6ULL</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Kexec-not-working-for-i-MX6ULL/m-p/1208598#M167446</link>
      <description>&lt;P&gt;Partial Success: Looks like the --dtb argument in kexec was the problem. Omitting it allowed me to get much further in the kernel boot process. Not there totally yet, but close, I think.&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 01:40:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Kexec-not-working-for-i-MX6ULL/m-p/1208598#M167446</guid>
      <dc:creator>bsmucker</dc:creator>
      <dc:date>2021-01-08T01:40:04Z</dc:date>
    </item>
  </channel>
</rss>

