Jump to content

NanoPi K2 General Topics


TonyMac32

Recommended Posts

there was no sarcasm or malice. your delusional inter-recipe. I built an armbian 5.46 bionic and xenial two images. In both there is an old mistake with the meson8b-dwmac player. simply eth0 turns off after 3-5 minutes.Fortunately, there is wifi. I do not mind. after the changes everything works de luxe. browsers and other software I use all the time from yesterday from 15 o'clock and the system has never hung up. Also, I am happy thank you for the work you have done. It's good.

Link to comment
Share on other sites

Sarcasm is not the same as malice, sarcasm can be used humourously or in an ironic context.  Delusional, on the other hand, is quite negative and I do not know what "inter-recipe" is.  It is difficult at times to have so many communicating in a 2nd language, not everyone's particular "flavor" is the same.  I get caught in conversations between Japan, Hungary, France, Germany and Mexico regularly, for instance.

 

I will review this Ethernet issue you report, can you verify the kernel you are using?  Also, the driver is not a mistake, it is the proper driver.  I experienced a brief self-correcting interruption transferring a large file, but so far have not experienced the connection going down.  I will try to aggravate the failure mode.

Link to comment
Share on other sites

  • TonyMac32 changed the title to NanoPi K2 General Topics

So far the K2 has behaved for me, but obviously 1 guy may not provide an exhaustive enough test.

 

I pushed HDMI audio fixes for the Next kernel, which is currently 4.17 if anyone was getting frustrated over that.  Despite the applicable patch, DVFS is still showing me clock setting failures, it will change clock speed (according to the kernel, but we know it actually has little to no control of that), but only toggles between min and max (at least in my experience so far)

 

[edit]  I have found that I have no USB peripherals on the K2 with 4.17.  Will check into it.

 

SSH'd in: 

 dwc2 c9000000.usb: c9000000.usb supply vusb_d not found, using dummy regulator
[    2.614838] dwc2 c9000000.usb: c9000000.usb supply vusb_a not found, using dummy regulator
[    2.627851] dwc2 c9000000.usb: dwc2_check_params: Invalid parameter lpm=1
[    2.627856] dwc2 c9000000.usb: dwc2_check_params: Invalid parameter lpm_clock_gating=1
[    2.627859] dwc2 c9000000.usb: dwc2_check_params: Invalid parameter besl=1
[    2.627863] dwc2 c9000000.usb: dwc2_check_params: Invalid parameter hird_threshold_en=1
[    2.628240] dwc2 c9000000.usb: DWC OTG Controller
[    2.628259] dwc2 c9000000.usb: new USB bus registered, assigned bus number 1
[    2.628287] dwc2 c9000000.usb: irq 32, io mem 0xc9000000

So, everything is powered, but no one is home. 

Link to comment
Share on other sites

Another update, I experimentally built a 4.17.8 image today and USB is working again.  @Igor if you have the C2 it would be good to verify there as well, we should roll out new meson64-next images that work.

 

Also still getting spammed with "failed to change CPU Frequency:  -5" here.

Link to comment
Share on other sites

5 hours ago, TonyMac32 said:

Another update, I experimentally built a 4.17.8 image today and USB is working again.  @Igor if you have the C2 it would be good to verify there as well, we should roll out new meson64-next images that work.

 

Somebody else will need to verify this. Don't have access to this particular hardware for another two weeks.

Link to comment
Share on other sites

Current Kernel 4.19 dev images appear to have a "nobody home" USB situation again (brought t0 me by @martinayotte as he works on overlays, and I verified)  Just so fewer people are surprised.  Hopefully look into this next.

 

[edit] It appears USB hot plug is the culprit, the ports have power and the hubs are brought up during boot, but the peripherals only work if plugged in before boot, not after.  I just saw this issue on Tinker Board starting with (I think) 4.17, fixed via https://github.com/armbian/build/blob/master/patch/kernel/rockchip-dev/1008-rockchip-dwc2-usb-partial-power-down.patch  (Thank you @Myy for tracking that down)

 

I'll see if that is the same issue here, have you seen anything like this, @Neil Armstrong?  I'm not seeing the issue with Le Potato, but it also has a dwc3 controller in the mix.

Link to comment
Share on other sites

On 10/19/2019 at 9:26 AM, balbes150 said:

I am interested in the output of the UART console

I took your u-boot.bin.sd.bin and write it to a sdcard with "dd", but, of course, it overwritted the partition table. So I recreate one, formatted it and placed a copy of my /boot folder.

(BTW, your u-boot doesn't support eMMC as shown here, it would be nice to add this support )

 

 

 


no sdio debug board detected
TE: 190321

BL2 Built : 12:06:06, Jun 13 2016.
gxb g176ecdb - laiyin.mo@droid12-sz

set vcck to 1100 mv
set vddee to 1000 mv
Board ID = 8
CPU clk: 1536MHz
DDR chl: Rank0+1 same @ 792MHz
DDR0: 2048MB(auto)-2T-11
DataBus test pass!
AddrBus test pass!
Load fip header from SD, src: 0x0000c200, des: 0x01400000, size: 0x00004000
New fip structure!
Load bl30 from SD, src: 0x00010200, des: 0x01000000, size: 0x0000d460
Sending bl30......................................................OK.
Run bl30...
Load bl31 from SD, src: 0x00020200, des: 0x101000[00, size: 0x00013140
Image: gxb_v1.1.3134-b387442 2016-06-16 14:48:44 yun.cai@droid06]
OPS=0x13
ed 29 ad 5 1b 99 fa c9 82 86 5d 4b [0.286103 Inits done]
secure task start!
high task start!
low task start!
Load bl33 from SD, src: 0x00034200, des: 0x01000000, size: 0x0007c330
GXBB:BL1:08dafd:0a8993;FEAT:EDFC318C;POC:3;RCY:0;EMMC:0;READ:0;CHK:F3;SD:0;READ:0;CHK:0;
no sdio debug board detected
TE: 189995

BL2 Built : 12:06:06, Jun 13 2016.
gxb g176ecdb - laiyin.mo@droid12-sz

set vcck to 1100 mv
set vddee to 1000 mv
Board ID = 8
CPU clk: 1536MHz
DDR chl: Rank0+1 same @ 792MHz
DDR0: 2048MB(auto)-2T-11
DataBus test pass!
AddrBus test pass!
Load fip header from SD, src: 0x0000c200, des: 0x01400000, size: 0x00004000
New fip structure!
Load bl30 from SD, src: 0x00010200, des: 0x01000000, size: 0x0000d460
Sending bl30......................................................OK.
Run bl30...
Load bl31 from SD, src: 0x00020200, des: 0x101000[0, size: 0x00013140
Image: gxb_v1.1.3134-b387442 2016-06-16 14:48:44 yun.cai@droid06]
OPS=0x13
ed 29 ad 5 1b 99 fa c9 82 86 5d 4b [0.285683 Inits done]
secure task start!
high task start!
low task start!
Load bl33 from SD, src: 0x00034200, des: 0x01000000, size: 0x0007c330
NOTICE:  BL3-1: v1.0(debug):c813a61
NOTICE:  BL3-1: Built : 14:47:05, Jun 16 2016
INFO:    BL3-1: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader
ERROR:   Error initializing runtime service opteed_fast
INFO:    BL3-1: Preparing for EL3 exit to normal world
INFO:    BL3-1: Next image address = 0x1000000
INFO:    BL3-1: Next image spsr = 0x3c9


U-Boot 2019.07 (Oct 19 2019 - 11:47:06 +0300) nanopi-k2

Model: Unknown
SoC:   Amlogic Meson GXBB (S905) Revision 1f:c (13:1)
DRAM:  2 GiB
MMC:   mmc@70000: 0, mmc@72000: 1
In:    serial@4c0
Out:   serial@4c0
Err:   serial@4c0
Net:   
Warning: ethernet@c9410000 (eth0) using random MAC address - be:ff:2a:7c:6a:c6
eth0: ethernet@c9410000
Hit any key to stop autoboot:  0
=>   mmc list
mmc@70000: 0
mmc@72000: 1
=>

=> reset
resetting ...
INFO:    PSCI Affinity Map:
INFO:      AffInst: Level 0, MPID 0x0, State ON
INFO:      AffInst: Level 0, MPID 0x1, State OFF
INFO:      AffInst: Level 0, MPID 0x2, State OFF
INFO:      AffInst: Level 0, MPID 0x3, State OFF
bl31 reboot reason: 0xd
bl31 reboot reason: 0x0
system cmd  1.
ERROR:   gxbb System RGXBB:BL1:08dafd:0a8993;FEAT:EDFC318C;POC:3;RCY:0;EMMC:0;READ:0;CHK:F3;SD:0;READ:0;CHK:0;
no sdio debug board detected
TE: 120340

BL2 Built : 12:06:06, Jun 13 2016.
gxb g176ecdb - laiyin.mo@droid12-sz

set vcck to 1100 mv
set vddee to 1000 mv
Board ID = 8
CPU clk: 1536MHz
DDR chl: Rank0+1 same @ 792MHz
DDR0: 2048MB(auto)-2T-11
DataBus test pass!
AddrBus test pass!
Load fip header from SD, src: 0x0000c200, des: 0x01400000, size: 0x00004000
New fip structure!
Load bl30 from SD, src: 0x00010200, des: 0x01000000, size: 0x0000d460
Sending bl30......................................................OK.
Run bl30...
Load bl31 from SD, src: 0x00020200, des: 0x1010000[0, size: 0x00013140
Image: gxb_v1.1.3134-b387442 2016-06-16 14:48:44 yun.cai@droid06]
OPS=0x13
ed 29 ad 5 1b 99 fa c9 82 86 5d 4b [0.216111 Inits done]
secure task start!
high task start!
low task start!
Load bl33 from SD, src: 0x00034200, des: 0x01000000, size: 0x0007c330
NOTICE:  BL3-1: v1.0(debug):c813a61
NOTICE:  BL3-1: Built : 14:47:05, Jun 16 2016
INFO:    BL3-1: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader
ERROR:   Error initializing runtime service opteed_fast
INFO:    BL3-1: Preparing for EL3 exit to normal world
INFO:    BL3-1: Next image address = 0x1000000
INFO:    BL3-1: Next image spsr = 0x3c9


U-Boot 2019.07 (Oct 19 2019 - 11:47:06 +0300) nanopi-k2

Model: Unknown
SoC:   Amlogic Meson GXBB (S905) Revision 1f:c (13:1)
DRAM:  2 GiB
MMC:   mmc@70000: 0, mmc@72000: 1
In:    serial@4c0
Out:   serial@4c0
Err:   serial@4c0
Net:   
Warning: ethernet@c9410000 (eth0) using random MAC address - 1a:fa:eb:3f:8f:71
eth0: ethernet@c9410000
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:1...
Found U-Boot script /boot/boot.scr
3065 bytes read in 5 ms (598.6 KiB/s)
## Executing script at 08000000
203 bytes read in 5 ms (39.1 KiB/s)
4737756 bytes read in 221 ms (20.4 MiB/s)
16295944 bytes read in 739 ms (21 MiB/s)
37443 bytes read in 10 ms (3.6 MiB/s)
## Loading init Ramdisk from Legacy Image at 13000000 ...
   Image Name:   uInitrd
   Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
   Data Size:    4737692 Bytes = 4.5 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 08008000
   Booting using the fdt blob at 0x8008000
   Loading Ramdisk to 7dade000, end 7df62a9c ... OK
   Loading Device Tree to 000000007da6c000, end 000000007daddfff ... OK

Starting kernel ...
 

 

Link to comment
Share on other sites

16 hours ago, martinayotte said:

I took your u-boot.bin.sd.bin and write it to a sdcard with "dd", but, of course, it overwritted the partition table.

You need to write the u-boot loader with two commands. Then the partition table is saved.  :)

 

dd if=u-boot.bin.sd.bin of=/dev/mmcblk0 conv=fsync bs=1 count=442

dd if=u-boot.bin.sd.bin of=/dev/mmcblk0 conv=fsync bs=512 skip=1 seek=1

 

https://github.com/150balbes/Amlogic_s905/wiki/s905_Unbrik_Amlogic_S905

 

 

16 hours ago, martinayotte said:

(BTW, your u-boot doesn't support eMMC as shown here, it would be nice to add this support )

You tried for eMMC the second file (u-boot.bin)?

Link to comment
Share on other sites

6 hours ago, balbes150 said:

You need to write the u-boot loader with two commands. Then the partition table is saved.  :)

 

dd if=u-boot.bin.sd.bin of=/dev/mmcblk0 conv=fsync bs=1 count=442

dd if=u-boot.bin.sd.bin of=/dev/mmcblk0 conv=fsync bs=512 skip=1 seek=1

I did that at first, but it wasn't starting u-boot at all. So I've push the whole thing instead.

6 hours ago, balbes150 said:

You tried for eMMC the second file (u-boot.bin)?

I didn't tried that one yet ...

Link to comment
Share on other sites

47 minutes ago, martinayotte said:

I did that at first, but it wasn't starting u-boot at all. So I've push the whole thing instead.

Strange, According to LE users, this version of u-boot they run from the SD card.

You can write and check the file "u-boot.bin" on the SD card ?

Link to comment
Share on other sites

14 hours ago, martinayotte said:

I did this morning ... Doesn't start at all ...

I've then booted using the other, try to push u-boot.bin using above 2 "dd" into eMMC, but it didn't work too.

Can you test running this image ? Download, unzip, burn to SD and without changing anything check the launch on K2. Show UART log.

 

https://yadi.sk/d/x-iFZEvYeh6Tew

Link to comment
Share on other sites

8 hours ago, balbes150 said:

Can you test running this image ?

U-Boot itself seems to work, but starting kernel make a reboot loop :

 

 


bl31 reboot reason: 0xd
bl31 reboot reason: 0x0
system cmd  1.
ERROR:   gxbb System R�GXBB:BL1:08dafd:0a8993;FEAT:EDFC318C;POC:3;RCY:0;EMMC:0;READ:0;CHK:17A;SD:0;READ:0;CHK:0;
no sdio debug board detected
TE: 120348


BL2 Built : 12:06:06, Jun 13 2016.
gxb g176ecdb - laiyin.mo@droid12-sz


set vcck to 1100 mv
set vddee to 1000 mv
Board ID = 8
CPU clk: 1536MHz
DDR chl: Rank0+1 same @ 792MHz
DDR0: 2048MB(auto)-2T-11
DataBus test pass!
AddrBus test pass!
Load fip header from SD, src: 0x0000c200, des: 0x01400000, size: 0x00004000
New fip structure!
Load bl30 from SD, src: 0x00010200, des: 0x01000000, size: 0x0000d460
Sending bl30......................................................OK.
Run bl30...
Load bl31 from SD, src: 0x00020200, des: 0x1010000[0, size: 0x00013140
Image: gxb_v1.1.3134-b387442 2016-06-16 14:48:44 yun.cai@droid06]
OPS=0x13
ed 29 ad 5 1b 99 fa c9 82 86 5d 4b [0.216129 Inits done]
secure task start!
high task start!
low task start!
Load bl33 from SD, src: 0x00034200, des: 0x01000000, size: 0x0007e3a0
NOTICE:  BL3-1: v1.0(debug):c813a61
NOTICE:  BL3-1: Built : 14:47:05, Jun 16 2016
INFO:    BL3-1: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader
ERROR:   Error initializing runtime service opteed_fast
INFO:    BL3-1: Preparing for EL3 exit to normal world
INFO:    BL3-1: Next image address = 0x1000000
INFO:    BL3-1: Next image spsr = 0x3c9



U-Boot 2019.10 (Oct 21 2019 - 15:18:24 +0300) nanopi-k2

Model: Unknown
SoC:   Amlogic Meson GXBB (S905) Revision 1f:c (13:1)
DRAM:  2 GiB
MMC:   mmc@70000: 0, mmc@72000: 1
In:    serial@4c0
Out:   serial@4c0
Err:   serial@4c0
Net:   
Warning: ethernet@c9410000 (eth0) using random MAC address - 22:5b:68:0d:20:bc
eth0: ethernet@c9410000
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:1...
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
169 bytes read in 6 ms (27.3 KiB/s)
1:    LibreELEC
Retrieving file: /KERNEL
18833416 bytes read in 841 ms (21.4 MiB/s)
append: boot=LABEL=LIBREELEC disk=LABEL=STORAGE quiet console=ttyAML0,115200n8 console=tty0
Retrieving file: /dtb/amlogic/meson-gxbb-nanopi-k2.dtb
27387 bytes read in 9 ms (2.9 MiB/s)
## Flattened Device Tree blob at 08008000
   Booting using the fdt blob at 0x8008000
   Loading Device Tree to 000000007df56000, end 000000007df5fafa ... OK


Starting kernel ...

[    0.097463] meson8b-dwmac c9410000.ethernet: IRQ eth_wake_irq not found
[    0.098439] meson8b-dwmac c9410000.ethernet: IRQ eth_lpi not found
[    0.156693] debugfs: Directory 'c1105400.audio' with parent 'regmap' already present!
[   37.019170] reboot: Restarting system
INFO:    PSCI Affinity Map:
INFO:      AffInst: Level 0, MPID 0x0, State ON
INFO:      AffInst: Level 0, MPID 0x1, State ON
INFO:      AffInst: Level 0, MPID 0x2, State ON
INFO:      AffInst: Level 0, MPID 0x3, State ON
bl31 reboot reason: 0xd
bl31 reboot reason: 0x0
system cmd  1.
ERROR:   gxbb System R�GXBB:BL1:08dafd:0a8993;FEAT:EDFC318C;POC:3;RCY:0;EMMC:0;READ:0;CHK:17A;SD:0;READ:0;CHK:0;
no sdio debug board detected
TE: 129994


BL2 Built : 12:06:06, Jun 13 2016.
gxb g176ecdb - laiyin.mo@droid12-sz


set vcck to 1100 mv
set vddee to 1000 mv
Board ID = 8
CPU clk: 1536MHz
DDR chl: Rank0+1 same @ 792MHz
DDR0: 2048MB(auto)-2T-11
DataBus test pass!
AddrBus test pass!
Load fip header from SD, src: 0x0000c200, des: 0x01400000, size: 0x00004000
New fip structure!
Load bl30 from SD, src: 0x00010200, des: 0x01000000, size: 0x0000d460
Sending bl30......................................................OK.
Run bl30...
Load bl31 from SD, src: 0x00020200, des: 0x10100[00, size: 0x00013140
Image: gxb_v1.1.3134-b387442 2016-06-16 14:48:44 yun.cai@droid06]
OPS=0x13
ed 29 ad 5 1b 99 fa c9 82 86 5d 4b [0.225885 Inits done]
secure task start!
high task start!
low task start!
Load bl33 from SD, src: 0x00034200, des: 0x01000000, size: 0x0007e3a0
NOTICE:  BL3-1: v1.0(debug):c813a61
NOTICE:  BL3-1: Built : 14:47:05, Jun 16 2016
INFO:    BL3-1: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader
ERROR:   Error initializing runtime service opteed_fast
INFO:    BL3-1: Preparing for EL3 exit to normal world
INFO:    BL3-1: Next image address = 0x1000000
INFO:    BL3-1: Next image spsr = 0x3c9



U-Boot 2019.10 (Oct 21 2019 - 15:18:24 +0300) nanopi-k2

Model: Unknown
SoC:   Amlogic Meson GXBB (S905) Revision 1f:c (13:1)
DRAM:  2 GiB
MMC:   mmc@70000: 0, mmc@72000: 1
In:    serial@4c0
Out:   serial@4c0
Err:   serial@4c0
Net:   
Warning: ethernet@c9410000 (eth0) using random MAC address - a6:00:8c:48:0a:d6
eth0: ethernet@c9410000
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:1...
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
169 bytes read in 5 ms (32.2 KiB/s)
1:    LibreELEC
Retrieving file: /KERNEL
18833416 bytes read in 843 ms (21.3 MiB/s)
append: boot=LABEL=LIBREELEC disk=LABEL=STORAGE quiet console=ttyAML0,115200n8 console=tty0
Retrieving file: /dtb/amlogic/meson-gxbb-nanopi-k2.dtb
27387 bytes read in 8 ms (3.3 MiB/s)
## Flattened Device Tree blob at 08008000
   Booting using the fdt blob at 0x8008000
   Loading Device Tree to 000000007df56000, end 000000007df5fafa ... OK


Starting kernel ...

[    0.096885] meson8b-dwmac c9410000.ethernet: IRQ eth_wake_irq not found
[    0.097859] meson8b-dwmac c9410000.ethernet: IRQ eth_lpi not found
[    0.156689] debugfs: Directory 'c1105400.audio' with parent 'regmap' already present!

 

 

 

I've then decided to remove the "quiet" argument to get more details, but strangely, this time it didn't do reboot loop, but stuck trying to mount sdcard :

 

 

 


no sdio debug board detected
TE: 195922


BL2 Built : 12:06:06, Jun 13 2016.
gxb g176ecdb - laiyin.mo@droid12-sz


set vcck to 1100 mv
set vddee to 1000 mv
Board ID = 8
CPU clk: 1536MHz
DDR chl: Rank0+1 same @ 792MHz
DDR0: 2048MB(auto)-2T-11
DataBus test pass!
AddrBus test pass!
Load fip header from SD, src: 0x0000c200, des: 0x01400000, size: 0x00004000
New fip structure!
Load bl30 from SD, src: 0x00010200, des: 0x01000000, size: 0x0000d460
Sending bl30......................................................OK.
Run bl30...
Load bl31 from SD, src: 0x00020200, des: 0x101000[0, size: 0x00013140
Image: gxb_v1.1.3134-b387442 2016-06-16 14:48:44 yun.cai@droid06]
OPS=0x13
ed 29 ad 5 1b 99 fa c9 82 86 5d 4b [0.291616 Inits done]
secure task start!
high task start!
low task start!
Load bl33 from SD, src: 0x00034200, des: 0x01000000, size: 0x0007e3a0
NOTICE:  BL3-1: v1.0(debug):c813a61
NOTICE:  BL3-1: Built : 14:47:05, Jun 16 2016
INFO:    BL3-1: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader
ERROR:   Error initializing runtime service opteed_fast
INFO:    BL3-1: Preparing for EL3 exit to normal world
INFO:    BL3-1: Next image address = 0x1000000
INFO:    BL3-1: Next image spsr = 0x3c9



U-Boot 2019.10 (Oct 21 2019 - 15:18:24 +0300) nanopi-k2

Model: Unknown
SoC:   Amlogic Meson GXBB (S905) Revision 1f:c (13:1)
DRAM:  2 GiB
MMC:   mmc@70000: 0, mmc@72000: 1
In:    serial@4c0
Out:   serial@4c0
Err:   serial@4c0
Net:   
Warning: ethernet@c9410000 (eth0) using random MAC address - de:e0:f0:98:7f:e1
eth0: ethernet@c9410000
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:1...
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
163 bytes read in 6 ms (26.4 KiB/s)
1:    LibreELEC
Retrieving file: /KERNEL
18833416 bytes read in 845 ms (21.3 MiB/s)
append: boot=LABEL=LIBREELEC disk=LABEL=STORAGE console=ttyAML0,115200n8 console=tty0
Retrieving file: /dtb/amlogic/meson-gxbb-nanopi-k2.dtb
27387 bytes read in 9 ms (2.9 MiB/s)
## Flattened Device Tree blob at 08008000
   Booting using the fdt blob at 0x8008000
   Loading Device Tree to 000000007df56000, end 000000007df5fafa ... OK


Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.4.0-rc3 (user@user-VirtualBox) (gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36))) #1 SMP Mon Oct 21 14:37:49 MSK 2019
[    0.000000] Machine model: FriendlyARM NanoPi K2
[    0.000000] Reserved memory: created CMA memory pool at 0x0000000045c00000, size 896 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv0.2 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: Trusted OS migration not required
[    0.000000] percpu: Embedded 21 pages/cpu s48408 r8192 d29416 u86016
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] CPU features: detected: ARM erratum 843419
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 502592
[    0.000000] Kernel command line: boot=LABEL=LIBREELEC disk=LABEL=STORAGE console=ttyAML0,115200n8 console=tty0
[    0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 1066012K/2042880K available (9662K kernel code, 856K rwdata, 3112K rodata, 4672K init, 586K bss, 59364K reserved, 917504K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 30 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] irq_meson_gpio: 133 to 8 gpio interrupt mux initialized
[    0.000000] random: get_random_bytes called from start_kernel+0x2a4/0x420 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000003] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000166] Console: colour dummy device 80x25
[    0.000322] printk: console [tty0] enabled
[    0.000349] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=80000)
[    0.000361] pid_max: default: 32768 minimum: 301
[    0.000458] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.000477] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.000515] *** VALIDATE tmpfs ***
[    0.000803] *** VALIDATE proc ***
[    0.000959] *** VALIDATE cgroup1 ***
[    0.000967] *** VALIDATE cgroup2 ***
[    0.001386] ASID allocator initialised with 32768 entries
[    0.001435] rcu: Hierarchical SRCU implementation.
[    0.002663] smp: Bringing up secondary CPUs ...
[    0.002960] Detected VIPT I-cache on CPU1
[    0.003002] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.003312] Detected VIPT I-cache on CPU2
[    0.003328] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.003610] Detected VIPT I-cache on CPU3
[    0.003626] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.003663] smp: Brought up 1 node, 4 CPUs
[    0.003696] SMP: Total of 4 processors activated.
[    0.003703] CPU features: detected: 32-bit EL0 Support
[    0.003710] CPU features: detected: CRC32 instructions
[    0.003850] CPU: All CPU(s) started at EL2
[    0.003865] alternatives: patching kernel code
[    0.004378] devtmpfs: initialized
[    0.007507] Registered cp15_barrier emulation handler
[    0.007527] Registered setend emulation handler
[    0.007646] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370867519511994 ns
[    0.007665] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.025944] pinctrl core: initialized pinctrl subsystem
[    0.026507] NET: Registered protocol family 16
[    0.027487] DMA: preallocated 256 KiB pool for atomic allocations
[    0.027739] cpuidle: using governor menu
[    0.027835] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.027886] Serial: AMBA PL011 UART driver
[    0.037906] cryptd: max_cpu_qlen set to 1000
[    0.040970] iommu: Default domain type: Translated
[    0.041218] SCSI subsystem initialized
[    0.041347] usbcore: registered new interface driver usbfs
[    0.041378] usbcore: registered new interface driver hub
[    0.041414] usbcore: registered new device driver usb
[    0.041527] mc: Linux media interface: v0.10
[    0.041548] videodev: Linux video capture interface: v2.00
[    0.041595] pps_core: LinuxPPS API ver. 1 registered
[    0.041603] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.041814] Advanced Linux Sound Architecture Driver Initialized.
[    0.042284] clocksource: Switched to clocksource arch_sys_counter
[    0.042296] *** VALIDATE bpf ***
[    0.042390] VFS: Disk quotas dquot_6.6.0
[    0.042428] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.042479] FS-Cache: Loaded
[    0.042485] *** VALIDATE ramfs ***
[    0.045799] thermal_sys: Registered thermal governor 'step_wise'
[    0.046047] NET: Registered protocol family 2
[    0.046374] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    0.046404] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.046493] TCP bind hash table entries: 16384 (order: 6, 262144 bytes, linear)
[    0.046666] TCP: Hash tables configured (established 16384 bind 16384)
[    0.046759] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.046796] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.046913] NET: Registered protocol family 1
[    0.047180] RPC: Registered named UNIX socket transport module.
[    0.047188] RPC: Registered udp transport module.
[    0.047193] RPC: Registered tcp transport module.
[    0.047199] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.054511] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[    0.057902] Initialise system trusted keyrings
[    0.057997] workingset: timestamp_bits=46 max_order=19 bucket_order=0
[    0.061914] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.062046] FS-Cache: Netfs 'nfs' registered for caching
[    0.062369] NFS: Registering the id_resolver key type
[    0.062393] Key type id_resolver registered
[    0.062399] Key type id_legacy registered
[    0.062410] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.062596] FS-Cache: Netfs 'cifs' registered for caching
[    0.062772] Key type cifs.idmap registered
[    0.072942] NET: Registered protocol family 38
[    0.072953] Key type asymmetric registered
[    0.072960] Asymmetric key parser 'x509' registered
[    0.072989] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    0.073000] io scheduler mq-deadline registered
[    0.073006] io scheduler kyber registered
[    0.073072] io scheduler bfq registered
[    0.078720] soc soc0: Amlogic Meson GXBB (S905) Revision 1f:c (13:1) Detected
[    0.079823] Serial: AMBA driver
[    0.080017] c81004c0.serial: ttyAML0 at MMIO 0xc81004c0 (irq = 12, base_baud = 1500000) is a meson_uart
[    0.751088] printk: console [ttyAML0] enabled
[    0.760757] brd: module loaded
[    0.760836] loop: module loaded
[    0.770196] Loading iSCSI transport class v2.0-870.
[    0.770486] iscsi: registered transport (tcp)
[    0.774267] libphy: Fixed MDIO Bus: probed
[    0.778113] tun: Universal TUN/TAP device driver, 1.6
[    0.783910] meson8b-dwmac c9410000.ethernet: IRQ eth_wake_irq not found
[    0.789380] meson8b-dwmac c9410000.ethernet: IRQ eth_lpi not found
[    0.795577] meson8b-dwmac c9410000.ethernet: PTP uses main clock
[    0.801449] meson8b-dwmac c9410000.ethernet: no reset control found
[    0.808005] meson8b-dwmac c9410000.ethernet: User ID: 0x11, Synopsys ID: 0x37
[    0.814733] meson8b-dwmac c9410000.ethernet:     DWMAC1000
[    0.819904] meson8b-dwmac c9410000.ethernet: DMA HW capability register supported
[    0.827325] meson8b-dwmac c9410000.ethernet: RX Checksum Offload Engine supported
[    0.834738] meson8b-dwmac c9410000.ethernet: COE Type 2
[    0.839912] meson8b-dwmac c9410000.ethernet: TX Checksum insertion supported
[    0.846899] meson8b-dwmac c9410000.ethernet: Wake-Up On Lan supported
[    0.853301] meson8b-dwmac c9410000.ethernet: Normal descriptors
[    0.859146] meson8b-dwmac c9410000.ethernet: Ring mode enabled
[    0.864925] meson8b-dwmac c9410000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    0.872862] meson8b-dwmac c9410000.ethernet: device MAC address de:e0:f0:98:7f:e1
[    0.880386] libphy: stmmac: probed
[    0.929478] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.930365] ehci-platform: EHCI generic platform driver
[    0.935614] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.941666] ohci-platform: OHCI generic platform driver
[    0.947068] usbcore: registered new interface driver uas
[    0.952124] usbcore: registered new interface driver usb-storage
[    0.958172] mousedev: PS/2 mouse device common for all mice
[    0.963764] i2c /dev entries driver
[    0.967951] sdhci: Secure Digital Host Controller Interface driver
[    0.973145] sdhci: Copyright(c) Pierre Ossman
[    0.977467] Synopsys Designware Multimedia Card Interface Driver
[    0.984294] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.989385] ledtrig-cpu: registered to indicate activity on CPUs
[    0.995157] meson-sm: secure-monitor enabled
[    0.999336] hidraw: raw HID events driver (C) Jiri Kosina
[    1.005172] usbcore: registered new interface driver usbhid
[    1.010075] usbhid: USB HID core driver
[    1.014085] platform-mhu c883c404.mailbox: Platform MHU Mailbox registered
[    1.023060] debugfs: Directory 'c1105400.audio' with parent 'regmap' already present!
[    1.029644] NET: Registered protocol family 10
[    1.033402] Segment Routing with IPv6
[    1.036490] NET: Registered protocol family 17
[    1.040897] Key type dns_resolver registered
[    1.045295] Loading compiled-in X.509 certificates
[    1.059428] meson-drm d0100000.vpu: Queued 2 outputs on vpu
[    1.059631] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.065939] [drm] No driver support for vblank timestamp query.
[    1.071857] meson-drm d0100000.vpu: CVBS Output connector not available
[    1.102316] meson-dw-hdmi c883a000.hdmi-tx: Detected HDMI TX controller v2.01a with HDCP (meson_dw_hdmi_phy)
[    1.106742] meson-dw-hdmi c883a000.hdmi-tx: registered DesignWare HDMI I2C bus driver
[    1.114552] meson-drm d0100000.vpu: bound c883a000.hdmi-tx (ops 0xffff800011a7a6c8)
[    1.122051] [drm] Initialized meson 1.0.0 20161109 for d0100000.vpu on minor 0
[    1.129021] [drm] Cannot find any crtc or sizes
[    1.133747] dwc2 c9000000.usb: c9000000.usb supply vusb_d not found, using dummy regulator
[    1.141712] dwc2 c9000000.usb: c9000000.usb supply vusb_a not found, using dummy regulator
[    1.149953] [drm] Cannot find any crtc or sizes
[    1.165636] dwc2 c9000000.usb: DWC OTG Controller
[    1.165670] dwc2 c9000000.usb: new USB bus registered, assigned bus number 1
[    1.171708] dwc2 c9000000.usb: irq 34, io mem 0xc9000000
[    1.177054] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[    1.185148] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.192306] usb usb1: Product: DWC OTG Controller
[    1.196962] usb usb1: Manufacturer: Linux 5.4.0-rc3 dwc2_hsotg
[    1.202740] usb usb1: SerialNumber: c9000000.usb
[    1.207573] hub 1-0:1.0: USB hub found
[    1.211034] hub 1-0:1.0: 1 port detected
[    1.215319] dwc2 c9100000.usb: c9100000.usb supply vusb_d not found, using dummy regulator
[    1.223123] dwc2 c9100000.usb: c9100000.usb supply vusb_a not found, using dummy regulator
[    1.289039] dwc2 c9100000.usb: DWC OTG Controller
[    1.289071] dwc2 c9100000.usb: new USB bus registered, assigned bus number 2
[    1.295111] dwc2 c9100000.usb: irq 35, io mem 0xc9100000
[    1.300436] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[    1.308554] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.315713] usb usb2: Product: DWC OTG Controller
[    1.320369] usb usb2: Manufacturer: Linux 5.4.0-rc3 dwc2_hsotg
[    1.326148] usb usb2: SerialNumber: c9100000.usb
[    1.330961] hub 2-0:1.0: USB hub found
[    1.334439] hub 2-0:1.0: 1 port detected
[    1.339240] meson-gx-mmc d0070000.mmc: allocated mmc-pwrseq
[    1.370638] meson-gx-mmc d0072000.mmc: Got CD GPIO
[    1.390710] mmc0: queuing unknown CIS tuple 0x80 (2 bytes)
[    1.392806] mmc0: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.396574] scpi_protocol scpi: SCP Protocol legacy pre-1.0 firmware
[    1.404124] mmc0: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.408853] printk: console [netcon0] enabled
[    1.411586] mmc0: queuing unknown CIS tuple 0x80 (7 bytes)
[    1.412053] netconsole: network logging started
[    1.422025] hctosys: unable to open rtc device (rtc0)
[    1.422438] mmc0: queuing unknown CIS tuple 0x81 (9 bytes)
[    1.427297] ALSA device list:
[    1.435338]   No soundcards found.
[    1.441780] Freeing unused kernel memory: 4672K
[    1.443233] Run /init as init process
[    1.483162] mmc1: new ultra high speed DDR50 SDHC card at address 0007
[    1.485914] mmcblk1: mmc1:0007 SD16G 14.5 GiB

 

 

 

I think the problem is that I'm using plain class 10 SDCard ...

 

EDIT: I've compared with my running Armbian image, and SDCard is also shown as "ultra high speed DDR50 SDHC", but it also showing "[    3.126895]  mmcblk1: p1" which here with your image it stall even before showing partitions ...

 

 

Link to comment
Share on other sites

13 minutes ago, balbes150 said:

I correctly understood that nothing is displayed on the HDMI screen and the system hangs on this message for a long time (from the last UART log) ?

I never use HDMI, so the above outputs are from UART log.

The strange thing is that with "quiet" argument, I get "[   37.019170] reboot: Restarting system", and without "quiet", it stay frozen ...

Link to comment
Share on other sites

15 hours ago, martinayotte said:

I never use HDMI, so the above outputs are from UART log.

The strange thing is that with "quiet" argument, I get "[   37.019170] reboot: Restarting system", and without "quiet", it stay frozen ...

Be sure to connect the HDMI output. Rebooting is a standard automatic procedure after the first system startup (after partition expansion). After the first reboot, the system should start and enable the initial setup wizard (waiting for answers from the user to HDMI). SSH is disabled by default on the first run (it is enabled either with an option on the command line or via the GUI on the running system). The u-boot files uploaded are taken from the Le operating system you are running.

Link to comment
Share on other sites

14 hours ago, martinayotte said:

You right, it booted (and leave ttyAML0 useless, no login), I add to plug a mouse to navigate into menu.

But since my interest is headless, I've plugged back my Armbian image ... :P

In this case, I was interested in the overall startup (works u-boot) in the LE image. Files from this u-boot I asked to check for work with Armbian. If LE normally starts with these files, then Armbian should start as well.

Link to comment
Share on other sites

47 minutes ago, balbes150 said:

Did I understand correctly that you run with eMMC only works when the SD card is installed ? Without SD card (with mmc connected with bootloader) there is no output to UART console ?

If I remove the SDCard, the BROM is searching for u-boot signature, but doesn't find it :

GXBB:BL1:08dafd:0a8993;FEAT:EDFC318C;POC:3;RCY:0;EMMC:0;READ:0;CHK:17A;SD:800;USB:8;LOOP:1;EMMC:0;READ:0;CHK:17A;SD:800;USB:8;

This occurs with either my Armbian u-boot.bin or the one you provided, installed using the following "dd" :

dd if=u-boot.bin of=/dev/mmcblk0 conv=fsync bs=1 count=442
dd if=u-boot.bin of=/dev/mmcblk0 conv=fsync bs=512 skip=1 seek=1 

If I leave the SD, I can boot with rootfs been on eMMC.

With my Armbian u-boot, I could even stop u-boot and do "setenv devnum 2" and "run mmc_boot", it loading everything from eMMC.

So it is only the first stage that doesn't work...

 

EDIT: I've just received a OdroidC2 yesterday and eMMC boot is working fine without SD, so I will try to compare both K2 and C2 u-boot sectors ...

 

EDIT2 : Seeing that eMMC U-Boot installation on C2 is done using those "dd" :

dd if=bl1.bin.hardkernel of=/dev/mmcblk0 bs=1 count=442 conv=fsync > /dev/null 2>&1;
dd if=bl1.bin.hardkernel of=/dev/mmcblk0 bs=512 skip=1 seek=1 conv=fsync > /dev/null 2>&1;
dd if=u-boot.bin of=/dev/mmcblk0 bs=512 seek=97 conv=fsync > /dev/null 2>&1

I've then decided to gave it a try by copying the bl1 file on my K2, but it screw up eMMC, didn't boot from SD anymore, so I had to disconnect eMMC temporarly and replug it back after stoping u-boot.

GXBB:BL1:08dafd:0a8993;FEAT:EDFC318C;POC:3;RCY:0;EMMC:0;READ:0;GXBB:BL1:08dafd:0a8993;FEAT:EDFC318C;POC:3;RCY:0;EMMC:0;READ:0;CHK:0;
TE: 178238
***** Warning!! *****************************************************
* This board have not been autorized or product keys are not valid. *
* Please contact with Hardkernel or your distributor                *
*********************************************************************

 

Link to comment
Share on other sites

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