Jump to content

Recommended Posts

Posted
4 minutes ago, martinayotte said:

Can you bring me some light ? I'm currently digging a whole while been in the fog without any shovel ... :unsure:

Now that I checked changes again, it just about power key connected to PMU, so probably that's not it.

 

So, does reset with PineH64 U-Boot work on OPi or not? If not, then it has to be some peripheral settings...

Posted
4 minutes ago, jernej said:

So, does reset with PineH64 U-Boot work on OPi or not? If not, then it has to be some peripheral settings...

Not on fresh boot, as well as original OPi U-Boot, but both work well if the BSP U-Boot handler is still in memory.

 

This is why I've said "Back to SquareOne" when I've investigated the reset_cpu() code from arch/arm/mach-sunxi/board.c

... and I still don't catch why PineH64 U-Boot works fine on PineH64 boards ...

Posted
18 hours ago, martinayotte said:

This is why I've said "Back to SquareOne" when I've investigated the reset_cpu() code from arch/arm/mach-sunxi/board.c

... and I still don't catch why PineH64 U-Boot works fine on PineH64 boards ...

pity, oh well let's hope the best of it

honestly had the feeling it was so close to a satisfactory solution, but alas ...

thanks for all your efforts though it is appreciated. cheers

Posted

I've tried looking into it. Mainline u-boot has a reset command, wich triggers a watchdog based reboot, and it just locks up the machine, when the watchdog timeout expires. The same thing simply happens in kernel. Kernel tells ATF to reset, ATF does the same thing as u-boot (watchdog based reset), and the SoC locks up.

 

Presumably, there's some other setup needed on H6 to make the SoC reset correctly. Maybe CPU resets into an incorrect PC adadress. Who knows? I didn't find anything obvious by looking at the reset code in the BSP u-boot/kernel. It will be something less obvious.

Posted
12 minutes ago, megi said:

there's some other setup needed on H6 to make the SoC reset correctly.

 

12 minutes ago, megi said:

It will be something less obvious.

What is even less obvious is that using the same 5.0.y kernel branch and same v2019.01 u-boot, the PineH64 reboot properly while other H6s are freezing.

I've compared DTs and defconfigs between PineH64 and other H6s and didn't found any obvious differences... :(

 

EDIT : I've almost forgot : I've compared also schematics, just in case it been an hardware issue, but didn't find any differences there too ...

Posted

Maybe setting the register that controls where the CPU starts executing after reset via RVBARADDR register, before triggering the watchdog may help.

Posted
1 hour ago, megi said:

Maybe setting the register that controls where the CPU starts executing after reset via RVBARADDR register, before triggering the watchdog may help.

Since I wasn't aware of those RVBARADDR registers, I've look at the doc and figure out that those have locations at 0x09010040, 0x09010048, 0x09010050 and 0x09010058.

I've used "./devmem2 0x09010040 l" which displayed 0x0000000000104108, and then "./devmem2 0x0000000000104108 l" which displayed 0xF2A618A0D2810600.

This is the same on all boards, PineH64, OPi3, OPiOnePlus and OPiLite2 ...

 

Posted
3 hours ago, martinayotte said:

Do you mean others boards, like my OPi3 which have 2GB, would reset in bad DRAM region ?

Maybe, but clearing (BROM should start at 0) RVBARADDR0 prior to reboot did not help make the u-boot reset command work.

Posted
4 hours ago, megi said:

Maybe, but clearing (BROM should start at 0) RVBARADDR0 prior to reboot did not help make the u-boot reset command work.

Since my previous "devmem2" test didn't reveal discrepancy about DRAM region, I'm a bit lost about that ... Can I help to try something else ?

Posted
3 hours ago, megi said:

I don't think more boards would help me.

A PineH64 could help narrow the issue ...

 

I've just did the reverse diagnostic, trying to boot an OPi3 images on the PineH64 : the "reboot/reset" are working there.

 

Posted

I'm trying to recreate the bootproblem of the PineH64, but no luck. It misbehaves because it behaves.
 

Starting kernel ...


Ubuntu 18.04.2 LTS pineh64 ttyS0

pineh64 login: [  433.232286] reboot: Restarting system

U-Boot SPL 2019.01-armbian (Apr 03 2019 - 17:04:42 +0200)
DRAM: 4096 MiB
Trying to boot from MMC1
NOTICE:  BL31: v2.1(debug):682c307
NOTICE:  BL31: Built : 17:03:59, Apr  3 2019
NOTICE:  BL31: Detected Allwinner H6 SoC (1728)
NOTICE:  BL31: Found U-Boot DTB at 0xc06ea70, model: Pine H64
INFO:    ARM GICv2 driver initialized
NOTICE:  PMIC: Probing AXP805
NOTICE:  PMIC: AXP805 detected
INFO:    BL31: Platform setup done
INFO:    BL31: Initializing runtime services
WARNING: BL31: cortex_a53: CPU workaround for 819472 was missing!
WARNING: BL31: cortex_a53: CPU workaround for 824069 was missing!
WARNING: BL31: cortex_a53: CPU workaround for 827319 was missing!
INFO:    BL31: cortex_a53: CPU workaround for 855873 was applied
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0x4a000000
INFO:    SPSR = 0x3c9


U-Boot 2019.01-armbian (Apr 03 2019 - 17:04:42 +0200) Allwinner Technology

CPU:   Allwinner H6 (SUN50I)
Model: Pine H64
DRAM:  3 GiB
MMC:   SUNXI SD/MMC: 0, SUNXI SD/MMC: 1
Loading Environment from FAT... Unable to use mmc 1:1... In:    serial@5000000
Out:   serial@5000000
Err:   serial@5000000
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0 
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
3042 bytes read in 12 ms (247.1 KiB/s)
## Executing script at 4fc00000
U-boot loaded from SD
Boot script loaded from mmc
165 bytes read in 9 ms (17.6 KiB/s)
26423 bytes read in 36 ms (715.8 KiB/s)
4155 bytes read in 40 ms (100.6 KiB/s)
Applying kernel provided DT fixup script (sun50i-h6-fixup.scr)
## Executing script at 44000000
8694611 bytes read in 897 ms (9.2 MiB/s)
14436360 bytes read in 1471 ms (9.4 MiB/s)
## Loading init Ramdisk from Legacy Image at 4fe00000 ...
   Image Name:   uInitrd
   Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
   Data Size:    8694547 Bytes = 8.3 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 4fa00000
   Booting using the fdt blob at 0x4fa00000
   Loading Ramdisk to 497b5000, end 49fffb13 ... OK
   reserving fdt memory region: addr=4fa00000 size=6c000
   Loading Device Tree to 0000000049746000, end 00000000497b4fff ... OK

Starting kernel ...


Ubuntu 18.04.2 LTS pineh64 ttyS0

I've done it many times now.
 

Spoiler

nicod@nanopim4:~$ sudo picocom -b 115200 -r -l /dev/ttyUSB0
picocom v2.2

port is        : /dev/ttyUSB0
flowcontrol    : none
baudrate is    : 115200
parity is      : none
databits are   : 8
stopbits are   : 1
escape is      : C-a
local echo is  : no
noinit is      : no
noreset is     : yes
nolock is      : yes
send_cmd is    : sz -vv
receive_cmd is : rz -vv -E
imap is        : 
omap is        : 
emap is        : crcrlf,delbs,

Type [C-a] [C-h] to see available commands

Terminal ready

nicod@pineh64:~$ logout
[ 1128.682296] reboot: Restarting system

U-Boot SPL 2019.01-armbian (Apr 03 2019 - 17:04:42 +0200)
DRAM: 4096 MiB
Trying to boot from MMC1
NOTICE:  BL31: v2.1(debug):682c307
NOTICE:  BL31: Built : 17:03:59, Apr  3 2019
NOTICE:  BL31: Detected Allwinner H6 SoC (1728)
NOTICE:  BL31: Found U-Boot DTB at 0xc06ea70, model: Pine H64
INFO:    ARM GICv2 driver initialized
NOTICE:  PMIC: Probing AXP805
NOTICE:  PMIC: AXP805 detected
INFO:    BL31: Platform setup done
INFO:    BL31: Initializing runtime services
WARNING: BL31: cortex_a53: CPU workaround for 819472 was missing!
WARNING: BL31: cortex_a53: CPU workaround for 824069 was missing!
WARNING: BL31: cortex_a53: CPU workaround for 827319 was missing!
INFO:    BL31: cortex_a53: CPU workaround for 855873 was applied
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0x4a000000
INFO:    SPSR = 0x3c9


U-Boot 2019.01-armbian (Apr 03 2019 - 17:04:42 +0200) Allwinner Technology

CPU:   Allwinner H6 (SUN50I)
Model: Pine H64
DRAM:  3 GiB
MMC:   SUNXI SD/MMC: 0, SUNXI SD/MMC: 1
Loading Environment from FAT... Unable to use mmc 1:1... In:    serial@5000000
Out:   serial@5000000
Err:   serial@5000000
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0 
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
3042 bytes read in 12 ms (247.1 KiB/s)
## Executing script at 4fc00000
U-boot loaded from SD
Boot script loaded from mmc
165 bytes read in 9 ms (17.6 KiB/s)
26423 bytes read in 37 ms (697.3 KiB/s)
4155 bytes read in 40 ms (100.6 KiB/s)
Applying kernel provided DT fixup script (sun50i-h6-fixup.scr)
## Executing script at 44000000
8694611 bytes read in 896 ms (9.3 MiB/s)
14436360 bytes read in 1471 ms (9.4 MiB/s)
## Loading init Ramdisk from Legacy Image at 4fe00000 ...
   Image Name:   uInitrd
   Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
   Data Size:    8694547 Bytes = 8.3 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 4fa00000
   Booting using the fdt blob at 0x4fa00000
   Loading Ramdisk to 497b5000, end 49fffb13 ... OK
   reserving fdt memory region: addr=4fa00000 size=6c000
   Loading Device Tree to 0000000049746000, end 00000000497b4fff ... OK

Starting kernel ...


Ubuntu 18.04.2 LTS pineh64 ttyS0

pineh64 login: [   85.556795] reboot: Restarting system

U-Boot SPL 2019.01-armbian (Apr 03 2019 - 17:04:42 +0200)
DRAM: 4096 MiB
Trying to boot from MMC1
NOTICE:  BL31: v2.1(debug):682c307
NOTICE:  BL31: Built : 17:03:59, Apr  3 2019
NOTICE:  BL31: Detected Allwinner H6 SoC (1728)
NOTICE:  BL31: Found U-Boot DTB at 0xc06ea70, model: Pine H64
INFO:    ARM GICv2 driver initialized
NOTICE:  PMIC: Probing AXP805
NOTICE:  PMIC: AXP805 detected
INFO:    BL31: Platform setup done
INFO:    BL31: Initializing runtime services
WARNING: BL31: cortex_a53: CPU workaround for 819472 was missing!
WARNING: BL31: cortex_a53: CPU workaround for 824069 was missing!
WARNING: BL31: cortex_a53: CPU workaround for 827319 was missing!
INFO:    BL31: cortex_a53: CPU workaround for 855873 was applied
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0x4a000000
INFO:    SPSR = 0x3c9


U-Boot 2019.01-armbian (Apr 03 2019 - 17:04:42 +0200) Allwinner Technology

CPU:   Allwinner H6 (SUN50I)
Model: Pine H64
DRAM:  3 GiB
MMC:   SUNXI SD/MMC: 0, SUNXI SD/MMC: 1
Loading Environment from FAT... Unable to use mmc 1:1... In:    serial@5000000
Out:   serial@5000000
Err:   serial@5000000
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0 
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
3042 bytes read in 12 ms (247.1 KiB/s)
## Executing script at 4fc00000
U-boot loaded from SD
Boot script loaded from mmc
165 bytes read in 10 ms (15.6 KiB/s)
26423 bytes read in 36 ms (715.8 KiB/s)
4155 bytes read in 40 ms (100.6 KiB/s)
Applying kernel provided DT fixup script (sun50i-h6-fixup.scr)
## Executing script at 44000000
8694611 bytes read in 897 ms (9.2 MiB/s)
14436360 bytes read in 1470 ms (9.4 MiB/s)
## Loading init Ramdisk from Legacy Image at 4fe00000 ...
   Image Name:   uInitrd
   Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
   Data Size:    8694547 Bytes = 8.3 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 4fa00000
   Booting using the fdt blob at 0x4fa00000
   Loading Ramdisk to 497b5000, end 49fffb13 ... OK
   reserving fdt memory region: addr=4fa00000 size=6c000
   Loading Device Tree to 0000000049746000, end 00000000497b4fff ... OK

Starting kernel ...


Ubuntu 18.04.2 LTS pineh64 ttyS0

pineh64 login: nicod
Password: 
Last login: Thu Apr  4 13:20:28 UTC 2019 on ttyS0
 ____  _              _   _  __   _  _   
|  _ \(_)_ __   ___  | | | |/ /_ | || |  
| |_) | | '_ \ / _ \ | |_| | '_ \| || |_ 
|  __/| | | | |  __/ |  _  | (_) |__   _|
|_|   |_|_| |_|\___| |_| |_|\___/   |_|  
                                         

Welcome to ARMBIAN 5.77 user-built Ubuntu 18.04.2 LTS 5.0.5-sunxi64   
System load:   1.53 0.39 0.13      Up time:       0 min        
Memory usage:  11 % of 3003MB     IP:            192.168.1.63
CPU temp:      43��C               
Usage of /:    21% of 15G        


nicod@pineh64:~$ logout
[   53.028064] reboot: Restarting system

U-Boot SPL 2019.01-armbian (Apr 03 2019 - 17:04:42 +0200)
DRAM: 4096 MiB
Trying to boot from MMC1
NOTICE:  BL31: v2.1(debug):682c307
NOTICE:  BL31: Built : 17:03:59, Apr  3 2019
NOTICE:  BL31: Detected Allwinner H6 SoC (1728)
NOTICE:  BL31: Found U-Boot DTB at 0xc06ea70, model: Pine H64
INFO:    ARM GICv2 driver initialized
NOTICE:  PMIC: Probing AXP805
NOTICE:  PMIC: AXP805 detected
INFO:    BL31: Platform setup done
INFO:    BL31: Initializing runtime services
WARNING: BL31: cortex_a53: CPU workaround for 819472 was missing!
WARNING: BL31: cortex_a53: CPU workaround for 824069 was missing!
WARNING: BL31: cortex_a53: CPU workaround for 827319 was missing!
INFO:    BL31: cortex_a53: CPU workaround for 855873 was applied
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0x4a000000
INFO:    SPSR = 0x3c9


U-Boot 2019.01-armbian (Apr 03 2019 - 17:04:42 +0200) Allwinner Technology

CPU:   Allwinner H6 (SUN50I)
Model: Pine H64
DRAM:  3 GiB
MMC:   SUNXI SD/MMC: 0, SUNXI SD/MMC: 1
Loading Environment from FAT... Unable to use mmc 1:1... In:    serial@5000000
Out:   serial@5000000
Err:   serial@5000000
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0 
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
3042 bytes read in 12 ms (247.1 KiB/s)
## Executing script at 4fc00000
U-boot loaded from SD
Boot script loaded from mmc
165 bytes read in 9 ms (17.6 KiB/s)
26423 bytes read in 36 ms (715.8 KiB/s)
4155 bytes read in 40 ms (100.6 KiB/s)
Applying kernel provided DT fixup script (sun50i-h6-fixup.scr)
## Executing script at 44000000
8694611 bytes read in 896 ms (9.3 MiB/s)
14436360 bytes read in 1471 ms (9.4 MiB/s)
## Loading init Ramdisk from Legacy Image at 4fe00000 ...
   Image Name:   uInitrd
   Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
   Data Size:    8694547 Bytes = 8.3 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 4fa00000
   Booting using the fdt blob at 0x4fa00000
   Loading Ramdisk to 497b5000, end 49fffb13 ... OK
   reserving fdt memory region: addr=4fa00000 size=6c000
   Loading Device Tree to 0000000049746000, end 00000000497b4fff ... OK

Starting kernel ...


Ubuntu 18.04.2 LTS pineh64 ttyS0

pineh64 login: [   41.524049] reboot: Restarting system

U-Boot SPL 2019.01-armbian (Apr 03 2019 - 17:04:42 +0200)
DRAM: 4096 MiB
Trying to boot from MMC1
NOTICE:  BL31: v2.1(debug):682c307
NOTICE:  BL31: Built : 17:03:59, Apr  3 2019
NOTICE:  BL31: Detected Allwinner H6 SoC (1728)
NOTICE:  BL31: Found U-Boot DTB at 0xc06ea70, model: Pine H64
INFO:    ARM GICv2 driver initialized
NOTICE:  PMIC: Probing AXP805
NOTICE:  PMIC: AXP805 detected
INFO:    BL31: Platform setup done
INFO:    BL31: Initializing runtime services
WARNING: BL31: cortex_a53: CPU workaround for 819472 was missing!
WARNING: BL31: cortex_a53: CPU workaround for 824069 was missing!
WARNING: BL31: cortex_a53: CPU workaround for 827319 was missing!
INFO:    BL31: cortex_a53: CPU workaround for 855873 was applied
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0x4a000000
INFO:    SPSR = 0x3c9


U-Boot 2019.01-armbian (Apr 03 2019 - 17:04:42 +0200) Allwinner Technology

CPU:   Allwinner H6 (SUN50I)
Model: Pine H64
DRAM:  3 GiB
MMC:   SUNXI SD/MMC: 0, SUNXI SD/MMC: 1
Loading Environment from FAT... Unable to use mmc 1:1... In:    serial@5000000
Out:   serial@5000000
Err:   serial@5000000
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0 
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
3042 bytes read in 12 ms (247.1 KiB/s)
## Executing script at 4fc00000
U-boot loaded from SD
Boot script loaded from mmc
165 bytes read in 10 ms (15.6 KiB/s)
26423 bytes read in 36 ms (715.8 KiB/s)
4155 bytes read in 39 ms (103.5 KiB/s)
Applying kernel provided DT fixup script (sun50i-h6-fixup.scr)
## Executing script at 44000000
8694611 bytes read in 897 ms (9.2 MiB/s)
14436360 bytes read in 1470 ms (9.4 MiB/s)
## Loading init Ramdisk from Legacy Image at 4fe00000 ...
   Image Name:   uInitrd
   Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
   Data Size:    8694547 Bytes = 8.3 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 4fa00000
   Booting using the fdt blob at 0x4fa00000
   Loading Ramdisk to 497b5000, end 49fffb13 ... OK
   reserving fdt memory region: addr=4fa00000 size=6c000
   Loading Device Tree to 0000000049746000, end 00000000497b4fff ... OK

Starting kernel ...


Ubuntu 18.04.2 LTS pineh64 ttyS0

pineh64 login: [   40.140048] reboot: Restarting system

U-Boot SPL 2019.01-armbian (Apr 03 2019 - 17:04:42 +0200)
DRAM: 4096 MiB
Trying to boot from MMC1
NOTICE:  BL31: v2.1(debug):682c307
NOTICE:  BL31: Built : 17:03:59, Apr  3 2019
NOTICE:  BL31: Detected Allwinner H6 SoC (1728)
NOTICE:  BL31: Found U-Boot DTB at 0xc06ea70, model: Pine H64
INFO:    ARM GICv2 driver initialized
NOTICE:  PMIC: Probing AXP805
NOTICE:  PMIC: AXP805 detected
INFO:    BL31: Platform setup done
INFO:    BL31: Initializing runtime services
WARNING: BL31: cortex_a53: CPU workaround for 819472 was missing!
WARNING: BL31: cortex_a53: CPU workaround for 824069 was missing!
WARNING: BL31: cortex_a53: CPU workaround for 827319 was missing!
INFO:    BL31: cortex_a53: CPU workaround for 855873 was applied
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0x4a000000
INFO:    SPSR = 0x3c9


U-Boot 2019.01-armbian (Apr 03 2019 - 17:04:42 +0200) Allwinner Technology

CPU:   Allwinner H6 (SUN50I)
Model: Pine H64
DRAM:  3 GiB
MMC:   SUNXI SD/MMC: 0, SUNXI SD/MMC: 1
Loading Environment from FAT... Unable to use mmc 1:1... In:    serial@5000000
Out:   serial@5000000
Err:   serial@5000000
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0 
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
3042 bytes read in 12 ms (247.1 KiB/s)
## Executing script at 4fc00000
U-boot loaded from SD
Boot script loaded from mmc
165 bytes read in 9 ms (17.6 KiB/s)
26423 bytes read in 36 ms (715.8 KiB/s)
4155 bytes read in 40 ms (100.6 KiB/s)
Applying kernel provided DT fixup script (sun50i-h6-fixup.scr)
## Executing script at 44000000
8694611 bytes read in 897 ms (9.2 MiB/s)
14436360 bytes read in 1471 ms (9.4 MiB/s)
## Loading init Ramdisk from Legacy Image at 4fe00000 ...
   Image Name:   uInitrd
   Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
   Data Size:    8694547 Bytes = 8.3 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 4fa00000
   Booting using the fdt blob at 0x4fa00000
   Loading Ramdisk to 497b5000, end 49fffb13 ... OK
   reserving fdt memory region: addr=4fa00000 size=6c000
   Loading Device Tree to 0000000049746000, end 00000000497b4fff ... OK

Starting kernel ...


Ubuntu 18.04.2 LTS pineh64 ttyS0

pineh64 login: [   41.928056] reboot: Restarting system

U-Boot SPL 2019.01-armbian (Apr 03 2019 - 17:04:42 +0200)
DRAM: 4096 MiB
Trying to boot from MMC1
NOTICE:  BL31: v2.1(debug):682c307
NOTICE:  BL31: Built : 17:03:59, Apr  3 2019
NOTICE:  BL31: Detected Allwinner H6 SoC (1728)
NOTICE:  BL31: Found U-Boot DTB at 0xc06ea70, model: Pine H64
INFO:    ARM GICv2 driver initialized
NOTICE:  PMIC: Probing AXP805
NOTICE:  PMIC: AXP805 detected
INFO:    BL31: Platform setup done
INFO:    BL31: Initializing runtime services
WARNING: BL31: cortex_a53: CPU workaround for 819472 was missing!
WARNING: BL31: cortex_a53: CPU workaround for 824069 was missing!
WARNING: BL31: cortex_a53: CPU workaround for 827319 was missing!
INFO:    BL31: cortex_a53: CPU workaround for 855873 was applied
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0x4a000000
INFO:    SPSR = 0x3c9


U-Boot 2019.01-armbian (Apr 03 2019 - 17:04:42 +0200) Allwinner Technology

CPU:   Allwinner H6 (SUN50I)
Model: Pine H64
DRAM:  3 GiB
MMC:   SUNXI SD/MMC: 0, SUNXI SD/MMC: 1
Loading Environment from FAT... Unable to use mmc 1:1... In:    serial@5000000
Out:   serial@5000000
Err:   serial@5000000
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0 
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
3042 bytes read in 12 ms (247.1 KiB/s)
## Executing script at 4fc00000
U-boot loaded from SD
Boot script loaded from mmc
165 bytes read in 9 ms (17.6 KiB/s)
26423 bytes read in 35 ms (736.3 KiB/s)
4155 bytes read in 40 ms (100.6 KiB/s)
Applying kernel provided DT fixup script (sun50i-h6-fixup.scr)
## Executing script at 44000000
8694611 bytes read in 897 ms (9.2 MiB/s)
14436360 bytes read in 1471 ms (9.4 MiB/s)
## Loading init Ramdisk from Legacy Image at 4fe00000 ...
   Image Name:   uInitrd
   Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
   Data Size:    8694547 Bytes = 8.3 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 4fa00000
   Booting using the fdt blob at 0x4fa00000
   Loading Ramdisk to 497b5000, end 49fffb13 ... OK
   reserving fdt memory region: addr=4fa00000 size=6c000
   Loading Device Tree to 0000000049746000, end 00000000497b4fff ... OK

Starting kernel ...


Ubuntu 18.04.2 LTS pineh64 ttyS0

pineh64 login: [  433.232286] reboot: Restarting system

U-Boot SPL 2019.01-armbian (Apr 03 2019 - 17:04:42 +0200)
DRAM: 4096 MiB
Trying to boot from MMC1
NOTICE:  BL31: v2.1(debug):682c307
NOTICE:  BL31: Built : 17:03:59, Apr  3 2019
NOTICE:  BL31: Detected Allwinner H6 SoC (1728)
NOTICE:  BL31: Found U-Boot DTB at 0xc06ea70, model: Pine H64
INFO:    ARM GICv2 driver initialized
NOTICE:  PMIC: Probing AXP805
NOTICE:  PMIC: AXP805 detected
INFO:    BL31: Platform setup done
INFO:    BL31: Initializing runtime services
WARNING: BL31: cortex_a53: CPU workaround for 819472 was missing!
WARNING: BL31: cortex_a53: CPU workaround for 824069 was missing!
WARNING: BL31: cortex_a53: CPU workaround for 827319 was missing!
INFO:    BL31: cortex_a53: CPU workaround for 855873 was applied
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0x4a000000
INFO:    SPSR = 0x3c9


U-Boot 2019.01-armbian (Apr 03 2019 - 17:04:42 +0200) Allwinner Technology

CPU:   Allwinner H6 (SUN50I)
Model: Pine H64
DRAM:  3 GiB
MMC:   SUNXI SD/MMC: 0, SUNXI SD/MMC: 1
Loading Environment from FAT... Unable to use mmc 1:1... In:    serial@5000000
Out:   serial@5000000
Err:   serial@5000000
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0 
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
3042 bytes read in 12 ms (247.1 KiB/s)
## Executing script at 4fc00000
U-boot loaded from SD
Boot script loaded from mmc
165 bytes read in 9 ms (17.6 KiB/s)
26423 bytes read in 36 ms (715.8 KiB/s)
4155 bytes read in 40 ms (100.6 KiB/s)
Applying kernel provided DT fixup script (sun50i-h6-fixup.scr)
## Executing script at 44000000
8694611 bytes read in 897 ms (9.2 MiB/s)
14436360 bytes read in 1471 ms (9.4 MiB/s)
## Loading init Ramdisk from Legacy Image at 4fe00000 ...
   Image Name:   uInitrd
   Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
   Data Size:    8694547 Bytes = 8.3 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 4fa00000
   Booting using the fdt blob at 0x4fa00000
   Loading Ramdisk to 497b5000, end 49fffb13 ... OK
   reserving fdt memory region: addr=4fa00000 size=6c000
   Loading Device Tree to 0000000049746000, end 00000000497b4fff ... OK

Starting kernel ...


Ubuntu 18.04.2 LTS pineh64 ttyS0

pineh64 login: [   99.959691] reboot: Restarting system

U-Boot SPL 2019.01-armbian (Apr 03 2019 - 17:04:42 +0200)
DRAM: 4096 MiB
Trying to boot from MMC1
NOTICE:  BL31: v2.1(debug):682c307
NOTICE:  BL31: Built : 17:03:59, Apr  3 2019
NOTICE:  BL31: Detected Allwinner H6 SoC (1728)
NOTICE:  BL31: Found U-Boot DTB at 0xc06ea70, model: Pine H64
INFO:    ARM GICv2 driver initialized
NOTICE:  PMIC: Probing AXP805
NOTICE:  PMIC: AXP805 detected
INFO:    BL31: Platform setup done
INFO:    BL31: Initializing runtime services
WARNING: BL31: cortex_a53: CPU workaround for 819472 was missing!
WARNING: BL31: cortex_a53: CPU workaround for 824069 was missing!
WARNING: BL31: cortex_a53: CPU workaround for 827319 was missing!
INFO:    BL31: cortex_a53: CPU workaround for 855873 was applied
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0x4a000000
INFO:    SPSR = 0x3c9


U-Boot 2019.01-armbian (Apr 03 2019 - 17:04:42 +0200) Allwinner Technology

CPU:   Allwinner H6 (SUN50I)
Model: Pine H64
DRAM:  3 GiB
MMC:   SUNXI SD/MMC: 0, SUNXI SD/MMC: 1
Loading Environment from FAT... Unable to use mmc 1:1... In:    serial@5000000
Out:   serial@5000000
Err:   serial@5000000
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0 
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
3042 bytes read in 12 ms (247.1 KiB/s)
## Executing script at 4fc00000
U-boot loaded from SD
Boot script loaded from mmc
165 bytes read in 9 ms (17.6 KiB/s)
26423 bytes read in 36 ms (715.8 KiB/s)
4155 bytes read in 40 ms (100.6 KiB/s)
Applying kernel provided DT fixup script (sun50i-h6-fixup.scr)
## Executing script at 44000000
8694611 bytes read in 897 ms (9.2 MiB/s)
14436360 bytes read in 1471 ms (9.4 MiB/s)
## Loading init Ramdisk from Legacy Image at 4fe00000 ...
   Image Name:   uInitrd
   Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
   Data Size:    8694547 Bytes = 8.3 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 4fa00000
   Booting using the fdt blob at 0x4fa00000
   Loading Ramdisk to 497b5000, end 49fffb13 ... OK
   reserving fdt memory region: addr=4fa00000 size=6c000
   Loading Device Tree to 0000000049746000, end 00000000497b4fff ... OK

Starting kernel ...


Ubuntu 18.04.2 LTS pineh64 ttyS0

pineh64 login: [  159.021013] reboot: Restarting system

U-Boot SPL 2019.01-armbian (Apr 03 2019 - 17:04:42 +0200)
DRAM: 4096 MiB
Trying to boot from MMC1
NOTICE:  BL31: v2.1(debug):682c307
NOTICE:  BL31: Built : 17:03:59, Apr  3 2019
NOTICE:  BL31: Detected Allwinner H6 SoC (1728)
NOTICE:  BL31: Found U-Boot DTB at 0xc06ea70, model: Pine H64
INFO:    ARM GICv2 driver initialized
NOTICE:  PMIC: Probing AXP805
NOTICE:  PMIC: AXP805 detected
INFO:    BL31: Platform setup done
INFO:    BL31: Initializing runtime services
WARNING: BL31: cortex_a53: CPU workaround for 819472 was missing!
WARNING: BL31: cortex_a53: CPU workaround for 824069 was missing!
WARNING: BL31: cortex_a53: CPU workaround for 827319 was missing!
INFO:    BL31: cortex_a53: CPU workaround for 855873 was applied
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0x4a000000
INFO:    SPSR = 0x3c9


U-Boot 2019.01-armbian (Apr 03 2019 - 17:04:42 +0200) Allwinner Technology

CPU:   Allwinner H6 (SUN50I)
Model: Pine H64
DRAM:  3 GiB
MMC:   SUNXI SD/MMC: 0, SUNXI SD/MMC: 1
Loading Environment from FAT... Unable to use mmc 1:1... In:    serial@5000000
Out:   serial@5000000
Err:   serial@5000000
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0 
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
3042 bytes read in 12 ms (247.1 KiB/s)
## Executing script at 4fc00000
U-boot loaded from SD
Boot script loaded from mmc
165 bytes read in 10 ms (15.6 KiB/s)
26423 bytes read in 37 ms (697.3 KiB/s)
4155 bytes read in 40 ms (100.6 KiB/s)
Applying kernel provided DT fixup script (sun50i-h6-fixup.scr)
## Executing script at 44000000
8694611 bytes read in 896 ms (9.3 MiB/s)
14436360 bytes read in 1471 ms (9.4 MiB/s)
## Loading init Ramdisk from Legacy Image at 4fe00000 ...
   Image Name:   uInitrd
   Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
   Data Size:    8694547 Bytes = 8.3 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 4fa00000
   Booting using the fdt blob at 0x4fa00000
   Loading Ramdisk to 497b5000, end 49fffb13 ... OK
   reserving fdt memory region: addr=4fa00000 size=6c000
   Loading Device Tree to 0000000049746000, end 00000000497b4fff ... OK

Starting kernel ...


Ubuntu 18.04.2 LTS pineh64 ttyS0

pineh64 login: [  245.683460] reboot: Restarting system

U-Boot SPL 2019.01-armbian (Apr 03 2019 - 17:04:42 +0200)
DRAM: 4096 MiB
Trying to boot from MMC1
NOTICE:  BL31: v2.1(debug):682c307
NOTICE:  BL31: Built : 17:03:59, Apr  3 2019
NOTICE:  BL31: Detected Allwinner H6 SoC (1728)
NOTICE:  BL31: Found U-Boot DTB at 0xc06ea70, model: Pine H64
INFO:    ARM GICv2 driver initialized
NOTICE:  PMIC: Probing AXP805
NOTICE:  PMIC: AXP805 detected
INFO:    BL31: Platform setup done
INFO:    BL31: Initializing runtime services
WARNING: BL31: cortex_a53: CPU workaround for 819472 was missing!
WARNING: BL31: cortex_a53: CPU workaround for 824069 was missing!
WARNING: BL31: cortex_a53: CPU workaround for 827319 was missing!
INFO:    BL31: cortex_a53: CPU workaround for 855873 was applied
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0x4a000000
INFO:    SPSR = 0x3c9


U-Boot 2019.01-armbian (Apr 03 2019 - 17:04:42 +0200) Allwinner Technology

CPU:   Allwinner H6 (SUN50I)
Model: Pine H64
DRAM:  3 GiB
MMC:   SUNXI SD/MMC: 0, SUNXI SD/MMC: 1
Loading Environment from FAT... Unable to use mmc 1:1... In:    serial@5000000
Out:   serial@5000000
Err:   serial@5000000
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0 
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
3042 bytes read in 12 ms (247.1 KiB/s)
## Executing script at 4fc00000
U-boot loaded from SD
Boot script loaded from mmc
165 bytes read in 10 ms (15.6 KiB/s)
26423 bytes read in 36 ms (715.8 KiB/s)
4155 bytes read in 41 ms (98.6 KiB/s)
Applying kernel provided DT fixup script (sun50i-h6-fixup.scr)
## Executing script at 44000000
8694611 bytes read in 897 ms (9.2 MiB/s)
14436360 bytes read in 1471 ms (9.4 MiB/s)
## Loading init Ramdisk from Legacy Image at 4fe00000 ...
   Image Name:   uInitrd
   Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
   Data Size:    8694547 Bytes = 8.3 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 4fa00000
   Booting using the fdt blob at 0x4fa00000
   Loading Ramdisk to 497b5000, end 49fffb13 ... OK
   reserving fdt memory region: addr=4fa00000 size=6c000
   Loading Device Tree to 0000000049746000, end 00000000497b4fff ... OK

Starting kernel ...
 

I don't know why, it did it yesterday a few times. The crash moment was right before Starting kernel. Then there's only 1 cursor on the screen, and it stayed there multiple minutes. I'll keep trying.
The law of TTL? It only does it when you're not watching...

Posted
4 minutes ago, NicoD said:

The law of TTL? It only does it when you're not watching...

:P

BTW, make sure that you have "verbosity=7" as well as "console=serial" to get as much as details possible in case you reproduce it.

Posted
36 minutes ago, martinayotte said:

BTW, make sure that you have "verbosity=7" as well as "console=serial" to get as much as details possible in case you reproduce it.

How to do that? My google doesn't seem to know, or I ask it the wrong question. I see something of -v, but where to stick that -v...
I also tried using putty before, but I can't copy text in Armbian. Any way to do that?

Posted
41 minutes ago, dreddit said:

Press both mouse buttons at  same time to paste to putty terminal if that is what you mean.

Normally yes, but those things don't work. Normally you just select what you want to copy and it's in the clipboard. But I ain't having that on Armbian...

Posted
2 hours ago, martinayotte said:

It is in /boot/armbianEnv.txt ...

Thank you. I again learned something new.
It isn't doing it anymore. I've been rebooting the whole day. Not once. Yesterday is was about 25% of the times. I don't know how it's possible. I did upgrade my eMMC image today, but my sd-card image is still not upgraded. So that's not it.
I never hated it so much that a device isn't crashing.
From now on I'll keep a 2nd sbc running for serial.
 

Posted

"IIRC there are 3 watchdogs on the H6. One is the trusted watchdog, which should be reserved for underlying firmware. The other two are the normal and R-block watchdog. Although they look the same, the "normal" one can't reset the system. :( That one is actually the one ATF currently uses. So reboot doesn't work on the H6.

ChenYu" - https://lkml.org/lkml/2019/4/5/425

 

If it's true it's strange that the reboot works on PineH64...

Posted

But reboot does work on legacy so there must be a solution even if it's not an elegant one. The legacy fix involves the PH07 but find no reference on the board unless it refers to a gpio pin?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines