Kernel for A64 git
#43
New member!  I've tried to read up before posting my question.

I just received my new Pine64, installed the base system and kernel (thanks longsleep!)  and booted just fine.  Video was wonky, but that's apparently known.

I saw an updated kernel available, as well as the updated uboot, so using the method above I went ahead and installed them.

Well, i didn't get far, because I couldn't boot anymore.


After hooking up a serial console (hooray for my BusPirate 4.0!)  I saw that uboot wasn't able to boot the new kernel.
I was able to boot the old kernel manually, and set out to find out why.

Here's the old kernel that boots just fine:
root@p64:/boot# od -xa old/kernel.img |head
0000000    4e41    5244    494f    2144    30c0    00c9    0000    4108
         A   N   D   R   O   I   D   !   @   0   I nul nul nul  bs   A
0000020    0000    0000    0000    4100    0000    0000    0000    40f0
       nul nul nul nul nul nul nul   A nul nul nul nul nul nul   p   @
0000040    0100    4000    0800    0000    0000    0000    0000    0000
       nul soh nul   @ nul  bs nul nul nul nul nul nul nul nul nul nul
0000060    6950    656e    3436    0000    0000    0000    0000    0000
         P   i   n   e   6   4 nul nul nul nul nul nul nul nul nul nul
0000100    0000    0000    0000    0000    0000    0000    0000    0000
       nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul


And the newly installed kernel:

root@p64:/boot# od -xa pine64/Image |head
0000000    0010    1400    0000    0000    0000    0008    0000    0000
       dle nul nul dc4 nul nul nul nul nul nul  bs nul nul nul nul nul
0000020    0000    0000    0000    0000    0000    0000    0000    0000
       nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul
*
0000060    0000    0000    0000    0000    5241    644d    0000    0000
       nul nul nul nul nul nul nul nul   A   R   M   d nul nul nul nul
0000100    0015    d280    03f5    2a00    0012    9400    0094    9400
       nak nul nul   R   u etx nul   * dc2 nul nul dc4 dc4 nul nul dc4
0000120    0050    9400    0016    d538    03e0    aa16    0121    9400



So, the magic at the beginning of the file is different.  Too different apparently for uboot?

here's what my environment looks like, using the new kernel:
sunxi#setenv kernel_filename pine64/Image                                                                                                                                                                                            
sunxi#printenv                                                                                                                                                                                                                      
baudrate=115200                                                                                                                                                                                                                      
boot_kernel=boota ${kernel_addr}                                                                                                                                                                                                    
bootargs=console=tty0 console=ttyS0,115200n8 no_console_suspend earlycon=uart,mmio32,0x01c28000 root=/dev/mmcblk0p2 rw rootwait                                                                                                      
bootcmd=run mmcbootcmd                                                                                                                                                                                                              
bootdelay=3                                                                                                                                                                                                                          
bootenv_filename=uEnv.txt                                                                                                                                                                                                            
bootscript=run load_dtb load_kernel set_cmdline boot_kernel                                                                                                                                                                          
console=tty0 console=ttyS0,115200n8 no_console_suspend                                                                                                                                                                              
fdt_addr=45000000                                                                                                                                                                                                                    
fdt_filename=pine64/sun50i-a64-pine64-plus.dtb                                                                                                                                                                                      
fdtaddr=45000000                                                                                                                                                                                                                    
filesize=c94000                                                                                                                                                                                                                      
import_bootenv=env import -t ${load_addr} ${filesize}                                                                                                                                                                                
initrd_filename=initrd.img                                                                                                                                                                                                          
kernel_addr=4107f800                                                                                                                                                                                                                
kernel_filename=pine64/Image                                                                                                                                                                                                        
load_addr=41000000                                                                                                                                                                                                                  
load_bootenv=fatload mmc 0:1 ${load_addr} ${bootenv_filename}                                                                                                                                                                        
load_dtb=fatload mmc 0:1 ${fdt_addr} ${fdt_filename}; fdt addr ${fdt_addr}; fdt resize                                                                                                                                              
load_kernel=fatload mmc 0:1 ${kernel_addr} ${kernel_filename}                                                                                                                                                                        
mmcbootcmd=if run load_bootenv; then echo Loading boot environment ...; run import_bootenv; fi; run bootscript                                                                                                                      
pine64_model=pine64-plus                                                                                                                                                                                                            
root=/dev/mmcblk0p2                                                                                                                                                                                                                  
set_cmdline=setenv bootargs console=${console} earlycon=uart,mmio32,0x01c28000 root=${root} rw rootwait                                                                                                                              
sunxi_serial=0410519008044810020b                                                                                                                                                                                                    


and here's the boot with 3.10.65-3-pine64-longsleep-2

sunxi#run bootscript                                                                                                                                                                                                                
[mmc]: Has init                                                                                                                                                                                                                      
[    119.367]---drivers/mmc/mmc.c 2733 mmc_init                                                                                                                                                                                      
reading pine64/sun50i-a64-pine64-plus.dtb                                                                                                                                                                                            
69174 bytes read in 18 ms (3.7 MiB/s)                                                                                                                                                                                                
[mmc]: Has init                                                                                                                                                                                                                      
[    119.430]---drivers/mmc/mmc.c 2733 mmc_init                                                                                                                                                                                      
reading pine64/Image                                                                                                                                                                                                                
11302096 bytes read in 556 ms (19.4 MiB/s)                                                                                                                                                                                          
1                                                                                                                                                                                                                                    
boota: bad boot image magic, maybe not a boot.img?                                                                                                                                                                                  

is this a *me* issue that I can correct with some uEnv tweaking, or something different?


*** edit

there's 2059 bytes of 'header' at the beginning of the old kernel image that's not on the new Image.
transplanting this header creates a file that is recognized, but doesn't work (presumably it doesn't have the right offsets, or some other data)


Messages In This Thread
Kernel for A64 git - by longsleep - 02-14-2016, 03:00 AM
RE: Kernel for A64 git - by drag00n - 02-14-2016, 04:12 AM
RE: Kernel for A64 git - by longsleep - 02-14-2016, 04:28 AM
RE: Kernel for A64 git - by drag00n - 02-14-2016, 04:31 AM
RE: Kernel for A64 git - by umiddelb - 02-15-2016, 07:25 AM
RE: Kernel for A64 git - by longsleep - 02-15-2016, 11:05 AM
RE: Kernel for A64 git - by umiddelb - 02-15-2016, 12:11 PM
RE: Kernel for A64 git - by longsleep - 02-15-2016, 12:35 PM
RE: Kernel for A64 git - by longsleep - 02-21-2016, 06:47 AM
RE: Kernel for A64 git - by longsleep - 02-22-2016, 03:09 PM
RE: Kernel for A64 git - by longsleep - 02-23-2016, 02:53 PM
RE: Kernel for A64 git - by tllim - 02-23-2016, 04:28 PM
RE: Kernel for A64 git - by patrickhwood - 02-23-2016, 10:13 PM
RE: Kernel for A64 git - by longsleep - 02-24-2016, 12:36 AM
RE: Kernel for A64 git - by tllim - 02-24-2016, 06:54 PM
RE: Kernel for A64 git - by longsleep - 02-25-2016, 01:16 AM
RE: Kernel for A64 git - by umiddelb - 02-25-2016, 05:04 AM
RE: Kernel for A64 git - by patrickhwood - 02-25-2016, 10:01 AM
RE: Kernel for A64 git - by duanhongyi - 02-25-2016, 01:51 AM
RE: Kernel for A64 git - by longsleep - 02-25-2016, 06:15 AM
RE: Kernel for A64 git - by umiddelb - 02-26-2016, 02:46 AM
RE: Kernel for A64 git - by longsleep - 02-26-2016, 09:15 AM
RE: Kernel for A64 git - by longsleep - 02-28-2016, 03:36 AM
RE: Kernel for A64 git - by patrickhwood - 03-02-2016, 09:52 PM
RE: Kernel for A64 git - by patrickhwood - 03-04-2016, 11:45 AM
RE: Kernel for A64 git - by longsleep - 03-05-2016, 03:41 AM
RE: Kernel for A64 git - by longsleep - 03-06-2016, 10:36 AM
RE: Kernel for A64 git - by tllim - 03-06-2016, 10:47 AM
RE: Kernel for A64 git - by longsleep - 03-06-2016, 10:59 AM
RE: Kernel for A64 git - by longsleep - 03-12-2016, 03:14 AM
RE: Kernel for A64 git - by longsleep - 03-12-2016, 10:39 AM
RE: Kernel for A64 git - by sbhere - 03-13-2016, 09:34 PM
RE: Kernel for A64 git - by Terra854 - 03-17-2016, 09:14 PM
RE: Kernel for A64 git - by longsleep - 03-19-2016, 03:32 PM
RE: Kernel for A64 git - by tllim - 03-19-2016, 08:41 PM
RE: Kernel for A64 git - by duanhongyi - 03-23-2016, 06:27 AM
RE: Kernel for A64 git - by Andrew2 - 03-23-2016, 06:32 AM
RE: Kernel for A64 git - by janjwerner - 03-23-2016, 12:51 PM
RE: Kernel for A64 git - by falk.ben@gmail.com - 03-24-2016, 01:16 PM
RE: Kernel for A64 git - by janjwerner - 03-24-2016, 06:42 PM
RE: Kernel for A64 git - by keiothic - 03-30-2016, 03:00 PM
RE: Kernel for A64 git - by ak_hepcat - 03-30-2016, 06:18 PM
RE: Kernel for A64 git - by janjwerner - 03-30-2016, 07:47 PM
RE: Kernel for A64 git - by patrickhwood - 03-31-2016, 08:49 AM
RE: Kernel for A64 git - by longsleep - 03-31-2016, 10:42 AM
RE: Kernel for A64 git - by ak_hepcat - 03-31-2016, 11:58 AM
RE: Kernel for A64 git - by DaveKram - 04-01-2016, 07:21 AM
RE: Kernel for A64 git - by ak_hepcat - 04-01-2016, 09:54 AM
RE: Kernel for A64 git - by longsleep - 04-03-2016, 03:03 AM
RE: Kernel for A64 git - by mane - 04-07-2016, 03:08 AM
RE: Kernel for A64 git - by Terra854 - 04-08-2016, 09:26 AM
RE: Kernel for A64 git - by longsleep - 04-08-2016, 10:13 AM
RE: Kernel for A64 git - by Terra854 - 04-11-2016, 01:21 AM
RE: Kernel for A64 git - by longsleep - 04-11-2016, 12:01 PM
RE: Kernel for A64 git - by longsleep - 04-16-2016, 03:49 AM
RE: Kernel for A64 git - by tomekr - 04-16-2016, 07:11 AM
RE: Kernel for A64 git - by longsleep - 04-16-2016, 07:56 AM
RE: Kernel for A64 git - by rahlquist - 04-16-2016, 06:33 PM
RE: Kernel for A64 git - by Hart - 04-16-2016, 09:42 PM
RE: Kernel for A64 git - by peterz - 04-17-2016, 03:26 AM
RE: Kernel for A64 git - by peterz - 04-17-2016, 04:44 AM
RE: Kernel for A64 git - by thantik - 04-17-2016, 01:22 PM
RE: Kernel for A64 git - by Hart - 04-17-2016, 05:14 PM
RE: Kernel for A64 git - by Terra854 - 04-20-2016, 09:05 PM
RE: Kernel for A64 git - by jocover - 04-21-2016, 02:01 AM
RE: Kernel for A64 git - by Pirin - 04-23-2016, 09:28 AM
RE: Kernel for A64 git - by longsleep - 04-23-2016, 09:33 AM
RE: Kernel for A64 git - by Pirin - 04-23-2016, 09:50 AM
RE: Kernel for A64 git - by longsleep - 04-23-2016, 01:15 PM
RE: Kernel for A64 git - by ak_hepcat - 04-25-2016, 04:05 PM
RE: Kernel for A64 git - by insignia96 - 04-27-2016, 12:09 AM
RE: Kernel for A64 git - by ak_hepcat - 04-27-2016, 10:50 AM
RE: Kernel for A64 git - by longsleep - 05-02-2016, 01:55 PM
RE: Kernel for A64 git - by longsleep - 05-03-2016, 03:14 PM
RE: Kernel for A64 git - by tkaiser - 05-06-2016, 10:02 AM
RE: Kernel for A64 git - by longsleep - 05-06-2016, 10:47 AM
RE: Kernel for A64 git - by tkaiser - 05-06-2016, 11:16 AM
RE: Kernel for A64 git - by janjwerner - 05-06-2016, 11:21 AM
RE: Kernel for A64 git - by tkaiser - 05-07-2016, 01:06 AM
RE: Kernel for A64 git - by longsleep - 05-07-2016, 01:14 AM
RE: Kernel for A64 git - by longsleep - 05-07-2016, 04:24 AM
RE: Kernel for A64 git - by Terra854 - 05-07-2016, 05:40 AM
RE: Kernel for A64 git - by longsleep - 05-07-2016, 05:45 AM
RE: Kernel for A64 git - by tkaiser - 05-07-2016, 06:08 AM
RE: Kernel for A64 git - by rahlquist - 05-07-2016, 06:20 AM
RE: Kernel for A64 git - by longsleep - 05-07-2016, 06:28 AM
RE: Kernel for A64 git - by tkaiser - 05-07-2016, 06:37 AM
RE: Kernel for A64 git - by rahlquist - 05-07-2016, 06:54 AM
RE: Kernel for A64 git - by tllim - 05-07-2016, 11:15 AM
RE: Kernel for A64 git - by Terra854 - 05-07-2016, 06:48 AM
RE: Kernel for A64 git - by longsleep - 05-07-2016, 06:57 AM
RE: Kernel for A64 git - by tkaiser - 05-07-2016, 07:03 AM
RE: Kernel for A64 git - by longsleep - 05-07-2016, 07:04 AM
RE: Kernel for A64 git - by Terra854 - 05-07-2016, 08:13 AM
RE: Kernel for A64 git - by tkaiser - 05-07-2016, 09:36 AM
RE: Kernel for A64 git - by Terra854 - 05-07-2016, 10:54 AM
RE: Kernel for A64 git - by longsleep - 05-07-2016, 08:19 AM
RE: Kernel for A64 git - by longsleep - 05-07-2016, 11:26 AM
RE: Kernel for A64 git - by rhkean - 05-07-2016, 03:10 PM
RE: Kernel for A64 git - by longsleep - 05-07-2016, 03:28 PM
RE: Kernel for A64 git - by longsleep - 05-16-2016, 02:30 PM
RE: Kernel for A64 git - by ak_hepcat - 05-19-2016, 12:24 PM
RE: Kernel for A64 git - by longsleep - 05-19-2016, 12:42 PM
RE: Kernel for A64 git - by ak_hepcat - 05-19-2016, 01:25 PM
RE: Kernel for A64 git - by longsleep - 05-21-2016, 12:24 PM
RE: Kernel for A64 git - by longsleep - 05-24-2016, 03:49 PM
RE: Kernel for A64 git - by longsleep - 05-26-2016, 01:44 PM
RE: Kernel for A64 git - by ak_hepcat - 05-27-2016, 12:14 PM
RE: Kernel for A64 git - by lvcargnini - 05-27-2016, 03:43 PM
RE: Kernel for A64 git - by Terra854 - 05-27-2016, 09:30 PM
RE: Kernel for A64 git - by longsleep - 06-17-2016, 02:32 PM
RE: Kernel for A64 git - by ak_hepcat - 07-05-2016, 11:57 PM
RE: Kernel for A64 git - by longsleep - 07-16-2016, 02:47 AM
RE: Kernel for A64 git - by Luxus - 07-10-2016, 02:45 AM
RE: Kernel for A64 git - by xalius - 07-10-2016, 03:22 AM
RE: Kernel for A64 git - by longsleep - 07-16-2016, 06:25 AM
RE: Kernel for A64 git - by ak_hepcat - 07-17-2016, 10:14 AM
RE: Kernel for A64 git - by scorn4society - 07-24-2016, 12:57 AM
RE: Kernel for A64 git - by longsleep - 07-24-2016, 01:02 AM
RE: Kernel for A64 git - by xalius - 07-16-2016, 12:12 PM
RE: Kernel for A64 git - by dkulinski - 07-18-2016, 07:47 PM
RE: Kernel for A64 git - by ak_hepcat - 07-20-2016, 05:37 PM
RE: Kernel for A64 git - by modsbyus - 07-24-2016, 05:08 AM
RE: Kernel for A64 git - by longsleep - 07-24-2016, 08:04 AM
RE: Kernel for A64 git - by xalius - 07-27-2016, 11:34 AM
RE: Kernel for A64 git - by longsleep - 07-27-2016, 02:36 PM
RE: Kernel for A64 git - by Drakuwa - 08-10-2016, 10:28 AM
RE: Kernel for A64 git - by longsleep - 08-10-2016, 10:34 AM
RE: Kernel for A64 git - by Drakuwa - 08-10-2016, 10:48 AM
RE: Kernel for A64 git - by longsleep - 08-20-2016, 03:52 PM
RE: Kernel for A64 git - by RaimundEge - 08-22-2016, 04:14 PM
RE: Kernel for A64 git - by longsleep - 08-22-2016, 11:38 PM
RE: Kernel for A64 git - by nSkaarup - 08-25-2016, 08:06 AM
RE: Kernel for A64 git - by Terra854 - 09-16-2016, 07:30 AM
RE: Kernel for A64 git - by ak_hepcat - 09-17-2016, 06:04 PM
RE: Kernel for A64 git - by Terra854 - 09-18-2016, 02:00 AM
RE: Kernel for A64 git - by Detritus - 09-19-2016, 04:23 AM
RE: Kernel for A64 git - by Terra854 - 09-19-2016, 07:59 AM
RE: Kernel for A64 git - by fneves - 09-27-2016, 06:12 AM
RE: Kernel for A64 git - by v.podzimek - 10-12-2016, 09:56 AM
RE: Kernel for A64 git - by longsleep - 10-12-2016, 10:01 AM
RE: Kernel for A64 git - by v.podzimek - 10-23-2016, 08:19 AM
RE: Kernel for A64 git - by longsleep - 10-23-2016, 06:52 AM
RE: Kernel for A64 git - by MarkHaysHarris777 - 10-23-2016, 08:07 AM
RE: Kernel for A64 git - by mrv - 10-23-2016, 12:49 PM
RE: Kernel for A64 git - by longsleep - 10-29-2016, 07:09 AM
RE: Kernel for A64 git - by hahn - 10-29-2016, 07:15 AM
RE: Kernel for A64 git - by tllim - 10-31-2016, 04:20 PM
RE: Kernel for A64 git - by androsch - 11-10-2016, 04:21 AM
RE: Kernel for A64 git - by ak_hepcat - 11-17-2016, 01:15 PM
RE: Kernel for A64 git - by androsch - 11-17-2016, 02:10 PM
RE: Kernel for A64 git - by androsch - 11-18-2016, 12:52 AM
RE: Kernel for A64 git - by ak_hepcat - 11-20-2016, 08:56 PM
RE: Kernel for A64 git - by androsch - 11-21-2016, 01:07 PM
RE: Kernel for A64 git - by ak_hepcat - 12-07-2016, 05:49 PM
RE: Kernel for A64 git - by waldo - 11-01-2016, 01:29 PM
RE: Kernel for A64 git - by stepw - 11-01-2016, 09:22 PM
RE: Kernel for A64 git - by marcus - 11-02-2016, 09:31 AM
RE: Kernel for A64 git - by gkkpch - 11-06-2016, 02:09 PM
RE: Kernel for A64 git - by MarkHaysHarris777 - 11-18-2016, 01:45 AM
RE: Kernel for A64 git - by benjanyan - 12-03-2016, 05:05 AM
RE: Kernel for A64 git - by pfeerick - 12-03-2016, 06:27 PM
RE: Kernel for A64 git - by longsleep - 12-16-2016, 02:57 PM
RE: Kernel for A64 git - by tllim - 12-16-2016, 07:46 PM
RE: Kernel for A64 git - by androsch - 12-17-2016, 01:42 AM
RE: Kernel for A64 git - by HenryD - 12-21-2016, 12:24 PM
RE: Kernel for A64 git - by longsleep - 12-21-2016, 12:34 PM
RE: Kernel for A64 git - by default - 01-06-2017, 05:44 PM
RE: Kernel for A64 git - by mbt28 - 01-23-2017, 02:20 PM
RE: Kernel for A64 git - by mont3z - 01-26-2017, 03:47 PM
RE: Kernel for A64 git - by mbt28 - 01-27-2017, 02:33 AM
RE: Kernel for A64 git - by longsleep - 03-11-2017, 12:19 PM
RE: Kernel for A64 git - by hahn - 03-12-2017, 02:43 AM
RE: Kernel for A64 git - by chadbhowell - 03-11-2017, 08:16 PM
RE: Kernel for A64 git - by Charles - 09-05-2017, 04:57 AM
RE: Kernel for A64 git - by Miguel Campos - 03-25-2018, 03:49 AM
RE: Kernel for A64 git - by dkryder - 03-25-2018, 02:16 PM
RE: Kernel for A64 git - by Luke - 03-25-2018, 03:25 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  PineA64+: Audio in 5.0 Kernel puzzles 6 3,437 11-13-2019, 09:41 AM
Last Post: roel
  Rockpro64 NFS root mount (kernel 4.20) - ethernet help? tenspd137 0 1,244 12-06-2018, 01:14 AM
Last Post: tenspd137
  NVMe and new kernel bjbb17 0 1,069 09-25-2018, 03:39 PM
Last Post: bjbb17
  Real-time linux kernel Artyom 45 34,580 09-11-2018, 01:08 AM
Last Post: zzwpine
  DKMS on kernel 3.10.107-pine64 obrienmd 5 3,203 06-21-2018, 05:45 PM
Last Post: evilbunny
  Gentoo for pine64 - longsleep kernel incoherent 0 1,926 12-09-2017, 08:14 AM
Last Post: incoherent
  [SOLVED] UEFI + Fedora Mainline Kernel Booting! cztian 0 1,679 07-13-2017, 08:38 PM
Last Post: cztian
  Mainline kernel [Solved] jeroen79 11 7,854 02-08-2017, 06:19 AM
Last Post: umiddelb
Question Need help : Issue in running compiled kernel with tftp+uboot dinesh.bhoyar 2 2,283 01-30-2017, 12:44 AM
Last Post: dinesh.bhoyar
  Jackd triggers kernel warning cztian 0 1,863 09-03-2016, 08:16 AM
Last Post: cztian

Forum Jump:


Users browsing this thread: 2 Guest(s)