Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image | NanoPC T4 #1829

Closed
Fourdee opened this issue Jun 8, 2018 · 83 comments
Closed

Image | NanoPC T4 #1829

Fourdee opened this issue Jun 8, 2018 · 83 comments
Assignees
Milestone

Comments

@Fourdee
Copy link
Collaborator

@Fourdee Fourdee commented Jun 8, 2018

Many thanks to FriendlyElec for sending us sample dev boards!

http://www.friendlyarm.com/index.php?route=product/product&product_id=225
image

@Fourdee Fourdee added this to the v6.10 milestone Jun 8, 2018
@Fourdee Fourdee self-assigned this Jun 8, 2018
@Fourdee

This comment has been minimized.

Copy link
Collaborator Author

@Fourdee Fourdee commented Jun 10, 2018

NB: Hold boot button during power on to boot into SD.


[  344.909754] dhdsdio_download_code_file: Open firmware file failed /system/etc/firmware/fw_bcm4356a2_ag.bin
mkdir -p  /lib/firmware/rockchip
wget https://github.com/rockchip-linux/rk-rootfs-build/blob/master/overlay-firmware/lib/firmware/rockchip/dptx.bin -O /lib/firmware/rockchip/dptx.bin
mkdir -p /system/etc/firmware
wget https://github.com/rockchip-linux/rk-rootfs-build/raw/master/overlay-firmware/system/etc/firmware/fw_bcm4356a2_ag.bin -O /system/etc/firmware/fw_bcm4356a2_ag.bin

#dhd_bus_devreset Failed to download binary to the dongle
@Fourdee

This comment has been minimized.

Copy link
Collaborator Author

@Fourdee Fourdee commented Jun 16, 2018

Unpack image to allow loopback mounting:

imgRePackerRK.exe rootfs.img

fstab, remove all hard drive mounts.

Repack:

imgRePackerRK rootfs.img.cfg

How is anyone supposed to debug this corrupt (assuming Chinese) drivel:

▒▒▒굩▒▒▒▒▒▒▒▒▒z_▒z▒▒▒▒▒Q7▒}uxIqS▒xq8▒xz▒U{▒▒▒▒
}*)                                           ▒WU]Y]▒Q▒▒▒▒;y▒▒▒Q)▒z▒▒▒YQ
}:9▒ݲ▒▒▒▒▒"▒[Q

The serial baud rate is 150000, You can use minicom -b 150000 to set it up.


Open RKdevtool
connect USB-C
Hold boot + Power
Plug in power
When you see MASKROM, let go of the buttons

@Fourdee

This comment has been minimized.

Copy link
Collaborator Author

@Fourdee Fourdee commented Jun 18, 2018

Notes 150000 baud:
http://www.friendlyarm.com/index.php?route=product/product&product_id=178&search=serial&description=true&category_id=0&sub_category=true

Bus 001 Device 004: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter

🈴 Windows:

128000_limit

🈴 Linux:

minicom -b 150000 -D /dev/ttyUSB0

������̗����.����N'󧐇��'=��c.�>�탆��\܆�h�2��ƌdvg���nW?�܎_����ܓNn&K������������    �鲭���                                                                          �
                                                                               �
���:��I���퉬O�Q��I�K�h����+�Yq�űih��qa�:�����ݩ경���~����9���W�0���2����M���Y   �
                                                                              ��
                                                                               J

@Fourdee

This comment has been minimized.

Copy link
Collaborator Author

@Fourdee Fourdee commented Jun 19, 2018

🈯️ baud = 1500000 SSH client | 128000 HW

1st boot stops at (no network attached):

         Stopping Raise network interfaces...
[  OK  ] Stopped Raise network interfaces.
         Stopping Network Time Synchronization...
[  OK  ] Stopped Network Time Synchronization.
         Starting Network Time Synchronization...
[  OK  ] Started Network Time Synchronization.

Few minutes later, continues boot

[  OK  ] Started DietPi-Boot.
[  OK  ] Started DietPi-PostBoot.
         Starting /etc/rc.local Compatibility...
[  OK  ] Started /etc/rc.local Compatibility.
[  OK  ] Started Getty on tty1.
[  OK  ] Started Serial Getty on ttyFIQ0.
[  OK  ] Reached target Login Prompts.
[  OK  ] Reached target Multi-User System.
[  OK  ] Reached target Graphical Interface.
         Starting Update UTMP about System Runlevel Changes...
[  OK  ] Started Update UTMP about System Runlevel Changes.

login as root fails???

DietPi login: root

Login incorrect

🈯️ echo 'ttyFIQ0' >> /etc/securetty

@Fourdee

This comment has been minimized.

Copy link
Collaborator Author

@Fourdee Fourdee commented Jun 19, 2018

Benchmarks:

image

Fourdee pushed a commit that referenced this issue Jun 19, 2018
+ Prevent NTPD sync hanging boot during 1st run, before network established: #1829 (comment)

+ NanoPC serial root login allow: #1829 (comment)
Fourdee pushed a commit that referenced this issue Jun 19, 2018
+ Only run ntpd when we need it: #1829
Fourdee pushed a commit that referenced this issue Jun 19, 2018
+ Serial required for debugging NanoPC T4: #1829
@Fourdee

This comment has been minimized.

Copy link
Collaborator Author

@Fourdee Fourdee commented Jun 19, 2018

Seems starting the serial service, kills it:

[  OK  ] Started Serial Getty on ttyFIQ0.
[  OK  ] Started Getty on tty1.
[  OK  ] Started Serial Getty on ttyS2.


 4 ▒▒▒▒▒─▒▒[
            [e[0e8
                   4▒───▒[
                           m |4)
                                ───▒0
                                      m mt ao
                                              5▒▒───


                                                     di
                                                        gt

DbnUix D Q
D i
Fourdee pushed a commit that referenced this issue Jun 19, 2018
@Fourdee

This comment has been minimized.

Copy link
Collaborator Author

@Fourdee Fourdee commented Jun 19, 2018

Finally up and running:
https://twitter.com/DietPi_/status/1008993035823304709

ToDo:

  • 🈯️ Instructions to write to EMMC
  • 🈯️ dietpi.com addition

ToDo, post release (can be resolved with v6.10 update)

  • Test audio
  • 🈴 Test GPU. No GPU supported acceleration currently.
@Fourdee

This comment has been minimized.

Copy link
Collaborator Author

@Fourdee Fourdee commented Jun 19, 2018

Writing DietPi to the onboard EMMC:

Requires:


Download Windows USB driver:

Download image and tools:

Writing the images to the EMMC

  • Power off the NanoPC
  • Plug in the USB-C cable and power cable (do not power on). Plug in the other end of the USB-C cable into your Windows system.
  • Launch the program AndroidTool.exe
  • Now we need to enter into MASKROM mode:
    -- Hold down the boot and power button's on the NanoPC, for roughly 2-5 seconds.
    -- When you see a MASKROM message appear in the AndroidTool.exe window, release the buttons.
    -- Select Run. This will write the images to the EMMC.

When the transfer is completed, the system will automatically reboot and begin the 1st run setup.

@Fourdee

This comment has been minimized.

Copy link
Collaborator Author

@Fourdee Fourdee commented Jun 29, 2018

Completed (for now), GPU support will come at a later date (hopefully).

@Fourdee Fourdee closed this Jun 29, 2018
@brianlinuxing

This comment has been minimized.

Copy link

@brianlinuxing brianlinuxing commented Jul 3, 2018

Fantastic!

@carlosedp

This comment has been minimized.

Copy link

@carlosedp carlosedp commented Jul 16, 2018

I just flashed this image into my NanoPC-T4 but the included kernel has no modules (no Iptables, OpenVSwitch). How can I update to a new or alternate kernel that contains the modules?

I tried to install "linux-image-arm64", it installs and places the vmlinuz, initrd files into /boot but the board doesn't boot from these images. What's the correct procedure?

Thanks

@Fourdee

This comment has been minimized.

Copy link
Collaborator Author

@Fourdee Fourdee commented Jul 17, 2018

@carlosedp

Thanks for the report 👍

I'll take a look at our image and pre-image used. Will reply once I have an answer.

@Fourdee Fourdee reopened this Jul 17, 2018
@carlosedp

This comment has been minimized.

Copy link

@carlosedp carlosedp commented Jul 17, 2018

I have recompiled the 4.4 kernel from FriendlyArm and enabled/compiled a bunch of modules that are needed for Docker.

I can upload them if you want. It's a matter of replacing kernel.img and adding the modules (from a tar.gz) to the rootfs.img.

@Fourdee

This comment has been minimized.

Copy link
Collaborator Author

@Fourdee Fourdee commented Jul 17, 2018

@carlosedp

I can upload them if you want. It's a matter of replacing kernel.img and adding the modules (from a tar.gz) to the rootfs.img.

Would be excellent if you could? I can update the image files here and re-upload.

Any chance you enabled CIFS kernel option for your kernel? On the pre-image we used from FriendlyARM, it was not enabled ☹️

EDIT:
I just checked the rootfs.img of the latest pre-image from FriendlyARM, appears the modules are now there and missing from our image, good spot 👍

@carlosedp

This comment has been minimized.

Copy link

@carlosedp carlosedp commented Jul 17, 2018

I've uploaded the files to: https://we.tl/n7JXaEHKAH

Here is the list of modules I compiled. If you need any additional ones let me know so I can rebuild it:

$ find /lib/modules/4.4.126/
/lib/modules/4.4.126/
/lib/modules/4.4.126/modules.builtin
/lib/modules/4.4.126/modules.devname
/lib/modules/4.4.126/modules.dep.bin
/lib/modules/4.4.126/modules.symbols
/lib/modules/4.4.126/build
/lib/modules/4.4.126/modules.builtin.bin
/lib/modules/4.4.126/source
/lib/modules/4.4.126/modules.alias
/lib/modules/4.4.126/modules.symbols.bin
/lib/modules/4.4.126/modules.order
/lib/modules/4.4.126/modules.dep
/lib/modules/4.4.126/modules.softdep
/lib/modules/4.4.126/kernel
/lib/modules/4.4.126/kernel/lib
/lib/modules/4.4.126/kernel/lib/ts_bm.ko
/lib/modules/4.4.126/kernel/lib/ts_kmp.ko
/lib/modules/4.4.126/kernel/lib/ts_fsm.ko
/lib/modules/4.4.126/kernel/crypto
/lib/modules/4.4.126/kernel/crypto/md4.ko
/lib/modules/4.4.126/kernel/crypto/des_generic.ko
/lib/modules/4.4.126/kernel/fs
/lib/modules/4.4.126/kernel/fs/cifs
/lib/modules/4.4.126/kernel/fs/cifs/cifs.ko
/lib/modules/4.4.126/kernel/fs/fscache
/lib/modules/4.4.126/kernel/fs/fscache/fscache.ko
/lib/modules/4.4.126/kernel/fs/configfs
/lib/modules/4.4.126/kernel/fs/configfs/configfs.ko
/lib/modules/4.4.126/kernel/fs/overlayfs
/lib/modules/4.4.126/kernel/fs/overlayfs/overlay.ko
/lib/modules/4.4.126/kernel/fs/autofs4
/lib/modules/4.4.126/kernel/fs/autofs4/autofs4.ko
/lib/modules/4.4.126/kernel/fs/cachefiles
/lib/modules/4.4.126/kernel/fs/cachefiles/cachefiles.ko
/lib/modules/4.4.126/kernel/fs/ceph
/lib/modules/4.4.126/kernel/fs/ceph/ceph.ko
/lib/modules/4.4.126/kernel/fs/nfs
/lib/modules/4.4.126/kernel/fs/nfs/flexfilelayout
/lib/modules/4.4.126/kernel/fs/nfs/flexfilelayout/nfs_layout_flexfiles.ko
/lib/modules/4.4.126/kernel/drivers
/lib/modules/4.4.126/kernel/drivers/usb
/lib/modules/4.4.126/kernel/drivers/usb/gadget
/lib/modules/4.4.126/kernel/drivers/usb/gadget/function
/lib/modules/4.4.126/kernel/drivers/usb/gadget/function/usb_f_fs.ko
/lib/modules/4.4.126/kernel/drivers/usb/gadget/function/usb_f_acm.ko
/lib/modules/4.4.126/kernel/drivers/usb/gadget/function/u_serial.ko
/lib/modules/4.4.126/kernel/drivers/usb/gadget/function/usb_f_mass_storage.ko
/lib/modules/4.4.126/kernel/drivers/usb/gadget/libcomposite.ko
/lib/modules/4.4.126/kernel/drivers/vhost
/lib/modules/4.4.126/kernel/drivers/vhost/vringh.ko
/lib/modules/4.4.126/kernel/drivers/vhost/vhost.ko
/lib/modules/4.4.126/kernel/drivers/vhost/vhost_net.ko
/lib/modules/4.4.126/kernel/drivers/gpu
/lib/modules/4.4.126/kernel/drivers/gpu/arm
/lib/modules/4.4.126/kernel/drivers/gpu/arm/mali400
/lib/modules/4.4.126/kernel/drivers/gpu/arm/mali400/mali
/lib/modules/4.4.126/kernel/drivers/gpu/arm/mali400/mali/mali.ko
/lib/modules/4.4.126/kernel/net
/lib/modules/4.4.126/kernel/net/llc
/lib/modules/4.4.126/kernel/net/llc/llc2.ko
/lib/modules/4.4.126/kernel/net/llc/llc.ko
/lib/modules/4.4.126/kernel/net/hsr
/lib/modules/4.4.126/kernel/net/hsr/hsr.ko
/lib/modules/4.4.126/kernel/net/dsa
/lib/modules/4.4.126/kernel/net/dsa/dsa_core.ko
/lib/modules/4.4.126/kernel/net/openvswitch
/lib/modules/4.4.126/kernel/net/openvswitch/vport-gre.ko
/lib/modules/4.4.126/kernel/net/openvswitch/openvswitch.ko
/lib/modules/4.4.126/kernel/net/802
/lib/modules/4.4.126/kernel/net/802/mrp.ko
/lib/modules/4.4.126/kernel/net/802/stp.ko
/lib/modules/4.4.126/kernel/net/802/p8022.ko
/lib/modules/4.4.126/kernel/net/802/garp.ko
/lib/modules/4.4.126/kernel/net/802/psnap.ko
/lib/modules/4.4.126/kernel/net/ipv6
/lib/modules/4.4.126/kernel/net/ipv6/netfilter
/lib/modules/4.4.126/kernel/net/ipv6/netfilter/nf_reject_ipv6.ko
/lib/modules/4.4.126/kernel/net/ipv6/netfilter/nf_log_ipv6.ko
/lib/modules/4.4.126/kernel/net/ipv6/netfilter/nft_reject_ipv6.ko
/lib/modules/4.4.126/kernel/net/ipv6/netfilter/nf_tables_ipv6.ko
/lib/modules/4.4.126/kernel/net/unix
/lib/modules/4.4.126/kernel/net/unix/unix_diag.ko
/lib/modules/4.4.126/kernel/net/8021q
/lib/modules/4.4.126/kernel/net/8021q/8021q.ko
/lib/modules/4.4.126/kernel/net/ipv4
/lib/modules/4.4.126/kernel/net/ipv4/ip_gre.ko
/lib/modules/4.4.126/kernel/net/ipv4/ipip.ko
/lib/modules/4.4.126/kernel/net/ipv4/tcp_westwood.ko
/lib/modules/4.4.126/kernel/net/ipv4/gre.ko
/lib/modules/4.4.126/kernel/net/ipv4/ip_tunnel.ko
/lib/modules/4.4.126/kernel/net/ipv4/tunnel4.ko
/lib/modules/4.4.126/kernel/net/ipv4/netfilter
/lib/modules/4.4.126/kernel/net/ipv4/netfilter/nf_log_arp.ko
/lib/modules/4.4.126/kernel/net/ipv4/netfilter/nf_dup_ipv4.ko
/lib/modules/4.4.126/kernel/net/ipv4/netfilter/iptable_raw.ko
/lib/modules/4.4.126/kernel/net/ipv4/netfilter/nf_tables_ipv4.ko
/lib/modules/4.4.126/kernel/net/ipv4/netfilter/nf_nat_h323.ko
/lib/modules/4.4.126/kernel/net/ipv4/netfilter/arp_tables.ko
/lib/modules/4.4.126/kernel/net/ipv4/netfilter/nft_reject_ipv4.ko
/lib/modules/4.4.126/kernel/net/ipv4/netfilter/arpt_mangle.ko
/lib/modules/4.4.126/kernel/net/ipv4/netfilter/nf_nat_proto_gre.ko
/lib/modules/4.4.126/kernel/net/ipv4/netfilter/iptable_filter.ko
/lib/modules/4.4.126/kernel/net/ipv4/netfilter/nf_reject_ipv4.ko
/lib/modules/4.4.126/kernel/net/ipv4/netfilter/nf_conntrack_ipv4.ko
/lib/modules/4.4.126/kernel/net/ipv4/netfilter/nft_chain_route_ipv4.ko
/lib/modules/4.4.126/kernel/net/ipv4/netfilter/nf_nat_snmp_basic.ko
/lib/modules/4.4.126/kernel/net/ipv4/netfilter/ipt_rpfilter.ko
/lib/modules/4.4.126/kernel/net/ipv4/netfilter/nf_nat_ipv4.ko
/lib/modules/4.4.126/kernel/net/ipv4/netfilter/ipt_MASQUERADE.ko
/lib/modules/4.4.126/kernel/net/ipv4/netfilter/nf_nat_pptp.ko
/lib/modules/4.4.126/kernel/net/ipv4/netfilter/nft_dup_ipv4.ko
/lib/modules/4.4.126/kernel/net/ipv4/netfilter/arptable_filter.ko
/lib/modules/4.4.126/kernel/net/ipv4/netfilter/ip_tables.ko
/lib/modules/4.4.126/kernel/net/ipv4/netfilter/nf_nat_masquerade_ipv4.ko
/lib/modules/4.4.126/kernel/net/ipv4/netfilter/iptable_nat.ko
/lib/modules/4.4.126/kernel/net/ipv4/netfilter/ipt_REJECT.ko
/lib/modules/4.4.126/kernel/net/ipv4/netfilter/ipt_ECN.ko
/lib/modules/4.4.126/kernel/net/ipv4/netfilter/iptable_mangle.ko
/lib/modules/4.4.126/kernel/net/ipv4/netfilter/nf_log_ipv4.ko
/lib/modules/4.4.126/kernel/net/ipv4/netfilter/ipt_SYNPROXY.ko
/lib/modules/4.4.126/kernel/net/ipv4/netfilter/ipt_ah.ko
/lib/modules/4.4.126/kernel/net/ipv4/netfilter/nf_tables_arp.ko
/lib/modules/4.4.126/kernel/net/ipv4/netfilter/ipt_CLUSTERIP.ko
/lib/modules/4.4.126/kernel/net/ipv4/netfilter/nf_defrag_ipv4.ko
/lib/modules/4.4.126/kernel/net/ipv4/tcp_bic.ko
/lib/modules/4.4.126/kernel/net/ipv4/tcp_htcp.ko
/lib/modules/4.4.126/kernel/net/vmw_vsock
/lib/modules/4.4.126/kernel/net/vmw_vsock/vsock.ko
/lib/modules/4.4.126/kernel/net/packet
/lib/modules/4.4.126/kernel/net/packet/af_packet_diag.ko
/lib/modules/4.4.126/kernel/net/netlink
/lib/modules/4.4.126/kernel/net/netlink/netlink_diag.ko
/lib/modules/4.4.126/kernel/net/mpls
/lib/modules/4.4.126/kernel/net/mpls/mpls_gso.ko
/lib/modules/4.4.126/kernel/net/netfilter
/lib/modules/4.4.126/kernel/net/netfilter/nft_reject_inet.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_connlabel.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_socket.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_dscp.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_osf.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_LOG.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_limit.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_cluster.ko
/lib/modules/4.4.126/kernel/net/netfilter/nf_conntrack_netbios_ns.ko
/lib/modules/4.4.126/kernel/net/netfilter/nf_nat_sip.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_mark.ko
/lib/modules/4.4.126/kernel/net/netfilter/x_tables.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_addrtype.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_esp.ko
/lib/modules/4.4.126/kernel/net/netfilter/nf_conntrack_ftp.ko
/lib/modules/4.4.126/kernel/net/netfilter/nft_exthdr.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_recent.ko
/lib/modules/4.4.126/kernel/net/netfilter/nf_nat_amanda.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_comment.ko
/lib/modules/4.4.126/kernel/net/netfilter/nft_queue.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_ipcomp.ko
/lib/modules/4.4.126/kernel/net/netfilter/nf_conntrack_proto_udplite.ko
/lib/modules/4.4.126/kernel/net/netfilter/nfnetlink_log.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_sctp.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_hl.ko
/lib/modules/4.4.126/kernel/net/netfilter/nft_counter.ko
/lib/modules/4.4.126/kernel/net/netfilter/nf_conntrack_pptp.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_HL.ko
/lib/modules/4.4.126/kernel/net/netfilter/nf_conntrack.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_bpf.ko
/lib/modules/4.4.126/kernel/net/netfilter/nf_conntrack_proto_gre.ko
/lib/modules/4.4.126/kernel/net/netfilter/nf_conntrack_h323.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_realm.ko
/lib/modules/4.4.126/kernel/net/netfilter/nfnetlink.ko
/lib/modules/4.4.126/kernel/net/netfilter/nf_conntrack_irc.ko
/lib/modules/4.4.126/kernel/net/netfilter/ipset
/lib/modules/4.4.126/kernel/net/netfilter/ipset/ip_set.ko
/lib/modules/4.4.126/kernel/net/netfilter/nf_nat_tftp.ko
/lib/modules/4.4.126/kernel/net/netfilter/nft_rbtree.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_REDIRECT.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_iprange.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_NETMAP.ko
/lib/modules/4.4.126/kernel/net/netfilter/nfnetlink_queue.ko
/lib/modules/4.4.126/kernel/net/netfilter/nft_limit.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_IDLETIMER.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_connbytes.ko
/lib/modules/4.4.126/kernel/net/netfilter/nf_nat_proto_udplite.ko
/lib/modules/4.4.126/kernel/net/netfilter/nft_masq.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_rateest.ko
/lib/modules/4.4.126/kernel/net/netfilter/nft_redir.ko
/lib/modules/4.4.126/kernel/net/netfilter/nf_nat_proto_dccp.ko
/lib/modules/4.4.126/kernel/net/netfilter/nft_ct.ko
/lib/modules/4.4.126/kernel/net/netfilter/nfnetlink_acct.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_quota2.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_NFLOG.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_u32.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_connmark.ko
/lib/modules/4.4.126/kernel/net/netfilter/nft_log.ko
/lib/modules/4.4.126/kernel/net/netfilter/nf_conntrack_amanda.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_ecn.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_tcpudp.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_hashlimit.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_NFQUEUE.ko
/lib/modules/4.4.126/kernel/net/netfilter/ipvs
/lib/modules/4.4.126/kernel/net/netfilter/ipvs/ip_vs.ko
/lib/modules/4.4.126/kernel/net/netfilter/ipvs/ip_vs_wrr.ko
/lib/modules/4.4.126/kernel/net/netfilter/ipvs/ip_vs_nq.ko
/lib/modules/4.4.126/kernel/net/netfilter/ipvs/ip_vs_sh.ko
/lib/modules/4.4.126/kernel/net/netfilter/ipvs/ip_vs_dh.ko
/lib/modules/4.4.126/kernel/net/netfilter/ipvs/ip_vs_lblcr.ko
/lib/modules/4.4.126/kernel/net/netfilter/ipvs/ip_vs_rr.ko
/lib/modules/4.4.126/kernel/net/netfilter/ipvs/ip_vs_lc.ko
/lib/modules/4.4.126/kernel/net/netfilter/ipvs/ip_vs_sed.ko
/lib/modules/4.4.126/kernel/net/netfilter/ipvs/ip_vs_ovf.ko
/lib/modules/4.4.126/kernel/net/netfilter/ipvs/ip_vs_wlc.ko
/lib/modules/4.4.126/kernel/net/netfilter/ipvs/ip_vs_fo.ko
/lib/modules/4.4.126/kernel/net/netfilter/ipvs/ip_vs_lblc.ko
/lib/modules/4.4.126/kernel/net/netfilter/ipvs/ip_vs_ftp.ko
/lib/modules/4.4.126/kernel/net/netfilter/ipvs/ip_vs_pe_sip.ko
/lib/modules/4.4.126/kernel/net/netfilter/nf_nat_irc.ko
/lib/modules/4.4.126/kernel/net/netfilter/nft_reject.ko
/lib/modules/4.4.126/kernel/net/netfilter/nf_nat_ftp.ko
/lib/modules/4.4.126/kernel/net/netfilter/nft_hash.ko
/lib/modules/4.4.126/kernel/net/netfilter/nft_meta.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_TCPMSS.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_l2tp.ko
/lib/modules/4.4.126/kernel/net/netfilter/nf_nat.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_pkttype.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_CLASSIFY.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_statistic.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_conntrack.ko
/lib/modules/4.4.126/kernel/net/netfilter/nf_tables_netdev.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_helper.ko
/lib/modules/4.4.126/kernel/net/netfilter/nf_tables.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_time.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_cpu.ko
/lib/modules/4.4.126/kernel/net/netfilter/nf_conntrack_proto_sctp.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_tcpmss.ko
/lib/modules/4.4.126/kernel/net/netfilter/nf_conntrack_sip.ko
/lib/modules/4.4.126/kernel/net/netfilter/nf_conntrack_netlink.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_devgroup.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_nat.ko
/lib/modules/4.4.126/kernel/net/netfilter/nf_conntrack_tftp.ko
/lib/modules/4.4.126/kernel/net/netfilter/nfnetlink_cthelper.ko
/lib/modules/4.4.126/kernel/net/netfilter/nf_conntrack_snmp.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_length.ko
/lib/modules/4.4.126/kernel/net/netfilter/nfnetlink_cttimeout.ko
/lib/modules/4.4.126/kernel/net/netfilter/nf_tables_inet.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_dccp.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_connlimit.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_owner.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_RATEEST.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_LED.ko
/lib/modules/4.4.126/kernel/net/netfilter/nf_nat_proto_sctp.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_string.ko
/lib/modules/4.4.126/kernel/net/netfilter/nf_conntrack_broadcast.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_quota.ko
/lib/modules/4.4.126/kernel/net/netfilter/nf_nat_redirect.ko
/lib/modules/4.4.126/kernel/net/netfilter/nf_synproxy_core.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_multiport.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_cgroup.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_nfacct.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_state.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_mac.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_policy.ko
/lib/modules/4.4.126/kernel/net/netfilter/nf_conntrack_sane.ko
/lib/modules/4.4.126/kernel/net/netfilter/nf_conntrack_proto_dccp.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_HMARK.ko
/lib/modules/4.4.126/kernel/net/netfilter/nf_log_common.ko
/lib/modules/4.4.126/kernel/net/netfilter/xt_TEE.ko
/lib/modules/4.4.126/kernel/net/netfilter/nft_compat.ko
/lib/modules/4.4.126/kernel/net/netfilter/nft_nat.ko
/lib/modules/4.4.126/kernel/net/ceph
/lib/modules/4.4.126/kernel/net/ceph/libceph.ko
/lib/modules/4.4.126/kernel/net/bridge
/lib/modules/4.4.126/kernel/net/bridge/br_netfilter.ko
/lib/modules/4.4.126/kernel/net/bridge/bridge.ko
/lib/modules/4.4.126/modules.alias.bin

@carlosedp

This comment has been minimized.

Copy link

@carlosedp carlosedp commented Jul 17, 2018

I found another issue where the kernel does not have cgroups enabled for memory. Will check for a solution and update you soon.

@LieDanG

This comment has been minimized.

Copy link

@LieDanG LieDanG commented Oct 12, 2018

I'll wait for the updated image, I tried flashing the current one but I only get a localhost login and can't get past of it, the friendlydesktop image boots fine so I'm not sure what's happening

@Fourdee

This comment has been minimized.

Copy link
Collaborator Author

@Fourdee Fourdee commented Oct 15, 2018

Unable to dump rootfs from device after update. Start is 0x000B2000, fails everytime, even on para dump 0 - 2
http://chinagadgetsreviews.blogspot.com/2014/09/download-androidtool-v21.html

So, need to PREP, then:

  • Backup rootfs
  • Compress to tar.gz
  • Save to rootfs.img.iso

  • PREP'd
  • apt-get update; apt-get install rsync -y
FP_FILTER_INCLUDE_EXCLUDE=/mnt/exclude
cat << _EOF_ > $FP_FILTER_INCLUDE_EXCLUDE
#Global - Folders
- /mnt/*
- /media/
- /dev/
- /lost+found/
- /proc/
- /sys/
- /tmp/
- /run/

#Manpages / Docs
- /usr/share/man/
- /usr/share/doc/

#Global - Files
- /var/swap
- .swap*

#MS Windows specific
- Thumbs.db
- desktop.ini
_EOF_

RSYNC_RUN_OPTIONS_BACKUP="-aH --info=name0 --info=progress2 --delete --delete-excluded --exclude-from=$FP_FILTER_INCLUDE_EXCLUDE"

mkdir -p /mnt/dietpi-backup

apt-get clean

rsync $RSYNC_RUN_OPTIONS_BACKUP / /mnt/dietpi-backup/

tar -zcvf /root/rootfs.tar.gz /mnt/dietpi-backup

echo 1 > /DietPi/dietpi/.install_stage
echo 1 > /DietPi/dietpi/.update_stage

#Samba server
dietpi-software install 96

mv /root/*.tar.gz /mnt/dietpi_userdata/

#-------
#Copy to z83 for extraction to rootfs.img.iso
#-------

Fourdee pushed a commit that referenced this issue Oct 15, 2018
- General | NanoPC T4: Image updated to include lastest kernel (4.4.154). Many thanks to @carlosedp for providing this kernel! #1829 (comment)
@Fourdee

This comment has been minimized.

Copy link
Collaborator Author

@Fourdee Fourdee commented Oct 15, 2018

@carlosedp

Legend, thanks for updating the kernel for NanoPC-T4. I've updated the image and works a charm:
https://dietpi.com/downloads/images/DietPi_NanoPCT4-ARMv8-Stretch.7z

@IvanCaregnato

This comment has been minimized.

Copy link

@IvanCaregnato IvanCaregnato commented Oct 15, 2018

Hi guys, any chance to get Kodi available on it?

@sergiud

This comment has been minimized.

Copy link

@sergiud sergiud commented Oct 15, 2018

@IvanCaregnato I second that. However, this will require working GPU acceleration.

As a side note, I'm not able to run Kodi on FriendlyElec's stock Ubuntu flavored (Bionic) distribution. Kodi stutters heavily. Might be a GPU driver issue though.

@IvanCaregnato

This comment has been minimized.

Copy link

@IvanCaregnato IvanCaregnato commented Oct 15, 2018

yes I've sadly noticed that...even on the "not update" RKMC is pretty unusable

@Fourdee Fourdee mentioned this issue Oct 25, 2018
Fourdee added a commit that referenced this issue Oct 25, 2018
**v6.17**
(25/10/18)

**Changes / Improvements / Optimisations:**
 - General | NanoPC T4: Image updated to include lastest kernel (4.4.154). Many thanks to @carlosedp for providing this kernel! #1829 (comment)
 - General | DietPi now has 3 branches (master=stable, beta=public testing, dev=dev). By default, all users are on master/stable branch: #2083 (comment)
 - General | Improved detection of permissions support during user data transfers: #2096
 - General | IPv6: Due to the requirements of various software titles available in dietpi-software (eg: nginx, redis-server), and that IPv6 is slowly becoming more common place, IPv6 is now disabled via sysctl on interface level, while it stays enabled on kernel level: #2027
 - DietPi-Autostart | Chromium: You will now be prompted to enter a homepage URL, which will be loaded when the application starts: #2169 (comment)
 - DietPi-Config | RPi: Added support for LCD panel "Elecrow ESP01215E 7 inch HDMI IPS with touch input" (basically a cheaper RPi touchscreen): https://www.amazon.co.uk/gp/product/B07H79XMLT/ref=oh_aui_detailpage_o01_s00?ie=UTF8&psc=1
 - DietPi-Config | Added ability to benchmark network LAN transfer rates using 2 DietPi systems.
 - DietPi-Config | RPi: Changing the display resolution, will also apply to Chromium under kiosk/autostart mode: #2158
 - DietPi-Config | Added an option to toggle preferring IPv4 connections with APT and wget, if IPv6 is enabled. This enhances compatibility and performance in some cases.
 - DietPi-Config | Online Benchmarks Database! Now available. Simply run the benchmark from the tools menu, to upload your scores and compare against others: https://dietpi.com/survey
 - DietPi-Automation | Added settings to dietpi.txt to toggle IPv6 and IPv4 preference on first boot.
 - DietPi-Update | You now have the option to view the changelog, prior to updating: #2081
 - DietPi-Software | Sabnzbd: Updated to 2.3.5 for new installations only. Now runs under its own limited user account, and, umask of 0775 for downloads: #2172
 - DietPi-Software | Card/CalDAV request redirection was added to new Baikal, ownCloud and Nextcloud installs. Now only the servers domain/IP need to be entered on Card/CalDAV clients, without any further path to the DAV endpoints: #2057
 - DietPi-Software | Plex Media Server and Transmission services run now as group "dietpi", to allow cross access with download managers and media software: #2067 (comment)
 - DietPi-Set_Hardware | Odroid C2: When selecting USB DAC, smp affinity will be applied for USB IRQ's to improve stability: #2101
 - DietPi-Drive_Manager | Formatting: Now has the option to format the whole drive, or patition only, for drives with existing partitions.
 - DietPi-Drive_Manager | Mounting NTFS drives now enabled native linux permissions support (eg: you can use this as your userdata location). Many thanks to @Random90 for making this possible! #2096 (comment)
 - DietPi-Drive_Manager | Improved detection and formatting for NVMe based drives: #2102
 - DietPi-Drive_Manager | Removed /proc from fstab. No longer required as this created at kernel/systemd level: #2154

**Bug Fixes:**
 - General | G_THREAD_START: Resolved issue where this was running in blocking mode. Now uses exit code to indentify finished tasks instead of PID.
 - DietPi-Cloudshell | Resolved various issues with inability to run service via SSH on another screen, and, G_DIETPI-NOTIFY errors. Many thanks to @potter-91 for reporting this issue! #2104
 - DietPi-Config | WiFi-Monitor: Resolved an issue with syntax, and, incorrectly pinging the default gateway, instead of whats assigned to the wlan interface: #2103
 - DietPi-Config | dietpi-wifi.db code has been optimized, and, also resolves an issue where '/var/lib/dietpi/dietpi-wifi.db' was not generated automatically: #2087 (comment)
 - DietPi-Config | Waveshare32b: Resolved inverted inputs under X11/Xorg: #803
 - DietPi-Config | PineA64: HDMI sound is now correctly enabled when selected. 3.5mm support is still under investigation: #2153
 - DietPi-Drive_Manager | Resolved an issue where swapfile would register as enabled when set to 0 size: #2127
 - DietPi-Survey | Resolved an issue where dietpi-survey under mode 1 would not generate the survey file.
 - DietPi-Software | MPD: Now runs under the group 'dietpi' and user 'root', allowing access to music directories when contained on samba networked drives: #2092
 - DietPi-Software | Fixed an issue where software uninstalls could have failed due to dependant packages. Thanks to @dynobot for reporting this issue: #2091
 - DietPi-Software | Webservers/PHP: Fixed an issue, where PHP was not installed when a webserver was installed directly via "dietpi-software install 8X".
 - DietPi-Software | Nextcloud: On Jessie systems, no newer version than latest NC13 will be installed, because PHP5 support was dropped with NC14: #1778 (comment)
 - DietPi-Software | MyMPD: Resolved an issue where the service would fail to run: #2088
 - DietPi-Software | MyMPD: Resolved an issue where the installation would fail, due to a recent MyMPD update with new pre-reqs: #2088 (comment)
 - DietPi-Software | SiCKRAGE: Resolved failing install due to changed capitalization of SiCKRAGE GitHub repo, and, various additional pre-reqs due to new install method required by SiCKRAGE. Thanks to @mdoary for reporting this issue: #2126
 - DietPi-Software | VNC Server: Resolved an issue where VNC server would fail to start under shared desktop mode, many thanks to @LieDanG for reporting this issue: #2142 (comment)
 - DietPi-Process_tool | Resolved an issue where applying process settings on Plex Media Server failed, thanks to @symbios24 for reporting this issue: #2089
 - General | Sparky SBC: Resolved an issue where 'sparky_eth_controller.sh' could incorrectly reboot the device after 20 seconds.
 - General | Resolved an issue with Rock64 being unable to run xserver. Please note this device still runs under limited software rendering due to lack of available working drivers/installation method for Debian systems: #2086
 - General | Resolved an issue with Jessie failing to start networking with preboot script: #2075

**Allo GUI v11:**
- Minor update to add GUI support for new DietPi version codes.

As always, many smaller code performance and stability improvements, visual and spelling fixes have been done, too much to list all of them here.

**Known/Outstanding Core Issues:**
- O!MPD and MyMPD fail to update libaries. YMPD is fine: #2156
- Kodi shutdown options missing: #2155
- DietPi-Config | RPi | OpenGL/VC4 causes soundcard selection to be invalid: #2173
- PineA64: No sound over 3.5mm jack: #2153
- For all additional issues that may appear after release, please see the following link and select the 'Next Version Milestone' to see active tickets: https://github.com/Fourdee/DietPi/milestones
@pshempel

This comment has been minimized.

Copy link

@pshempel pshempel commented Nov 26, 2018

This does not provide a serial console to login, it does give output, but no input. It just does
}
]
as an output once the login screen comes up.
Logging into the console, you get kicked out when logging in with root and dietpi
Also after looking at the source of this, who thought that putting into shadow the password for dietpi as plain text dietpi would work?
The issue with the login is not only on this hardware I have put this onto another odroid as well and serial console does the same thing. Not sure if anyone even tests that from what I can see.
So this is not a usable system at all as
No networking - this system comes up with no network. It errors out during boot

@Fourdee

This comment has been minimized.

Copy link
Collaborator Author

@Fourdee Fourdee commented Dec 2, 2018

@pshempel

Hi,

Serial console is disabled after initial boot up. You can override this by setting CONFIG_SERIAL_CONSOLE_ENABLE=1 in /boot/dietpi.txt before 1st run of the device.

Logging into the console, you get kicked out when logging in with root and dietpi

This does not occur in our local testing, possible a bad image write, insufficient PSU?

Also after looking at the source of this, who thought that putting into shadow the password for dietpi as plain text dietpi would work?

AUTO_SETUP_GLOBAL_PASSWORD= in dietpi.txt is an automation option. After 1st run setup, the plain password is removed, then stored with SHA encryption on rootfs.

No networking - this system comes up with no network. It errors out during boot

I suspect a bad image write or failing PSU/SD card.

For us to assist you further, please state:

  • PSU (make,model,voltage,amp)
  • SD card used
@pshempel

This comment has been minimized.

Copy link

@pshempel pshempel commented Dec 2, 2018

@Fourdee

This comment has been minimized.

Copy link
Collaborator Author

@Fourdee Fourdee commented Dec 3, 2018

@pshempel

The only thing different is on this image it just sets there kicking out
the strange symbols

Yep, the serial connection is a "strange" baud rate 1500000, check below:
#1519 (comment)

The and how do you edit the boot settings in the emmc ?

You'll need to extract the image with RK tools, mount to loopback and modify the file, then re-pack with RK tools.

I have booted off of the sdcard and looked at the partitions and none of them seem to be ext[234] formats.

EMMC partitions may not show up when using SD, due to boot method of device.


REF: #2313

@ramgopalkota

This comment has been minimized.

Copy link

@ramgopalkota ramgopalkota commented Jun 26, 2019

In NanoPC-T4, I have connected XPG SX6000 Lite SSD (PCIe Based) SSD but lspci is empty and also I did not find any driver /dev/nvme. How to debug the NVMe based SSDs being detected or not ?
Is Samsung 970 EVO is only supported ?

Datasheet of XPG SX6000 Lite.. http://www.xpg.com/us/feature/597

@MichaIng MichaIng added the NanoPC T4 label Jun 26, 2019
@MichaIng

This comment has been minimized.

Copy link
Owner

@MichaIng MichaIng commented Jun 26, 2019

@ramgopalkota
Hmm, not sure if M.2 Gen3x4 requires some special support, but I suggest this is all backwards compatible. I don't have much experience with neither M.2 nor NVMe in general.

However as a general debug I suggest you check:

dmesg
journalctl
  • The first for kernel errors like power/voltage or anything else PCIe/NVMe related.
  • The second for general boot log, e.g. detection of PCIe and block devices.

Ah and there seems to be a kernel module, perhaps on T4 this is not baked into the kernel but needs to be enabled:

modinfo nvme
lsmod
  • The first to see if this module exists, perhaps the name is different, not sure. Another approach to find related kernel modules: find /lib/modules -name *nvme*
  • The second to list enabled modules.

EDIT: Expanded above posts on this topic and found: #1829 (comment)

  • So NVMe should work OOTB without any module that needs to be enabled.
  • So above voltage/kernel/boot logs hopefully give a hint why it is not detected in your case.
  • But @sergiud also reported non-detected NVMe SSD. It this still true of did you manage to get it run?
@ramgopalkota

This comment has been minimized.

Copy link

@ramgopalkota ramgopalkota commented Jun 27, 2019

Thanks for prompt reply.
I do see some voltage/power failed logs in boot log.
Is there anything I need to do in dts file ?? Or is it related to my power supply ? I am using 12V/4A supply.

root@DietPi:~# journalctl | grep -i pci
                                   PCI I/O : 0xffffffbffee00000 - 0xffffffbfffe00000   (    16 MB)
Jun 26 19:43:28 DietPi kernel: PCI/MSI: /interrupt-controller@fee00000/interrupt-controller@fee20000 domain created
Jun 26 19:43:28 DietPi kernel: PCI: CLS 0 bytes, default 64
Jun 26 19:43:28 DietPi kernel: phy phy-pcie-phy.5: Looking up phy-supply from device tree
Jun 26 19:43:28 DietPi kernel: phy phy-pcie-phy.5: Looking up phy-supply property in node /pcie-phy failed
Jun 26 19:43:28 DietPi kernel: rockchip-pcie f8000000.pcie: GPIO lookup for consumer ep
Jun 26 19:43:28 DietPi kernel: rockchip-pcie f8000000.pcie: using device tree for GPIO lookup
Jun 26 19:43:28 DietPi kernel: of_get_named_gpiod_flags: parsed 'ep-gpios' property of node '/pcie@f8000000[0]' - status (0)
Jun 26 19:43:28 DietPi kernel: rockchip-pcie f8000000.pcie: Looking up vpcie3v3-supply from device tree
Jun 26 19:43:28 DietPi kernel: rockchip-pcie f8000000.pcie: Looking up vpcie3v3-supply property in node /pcie@f8000000 failed
Jun 26 19:43:28 DietPi kernel: rockchip-pcie f8000000.pcie: no vpcie3v3 regulator found
Jun 26 19:43:28 DietPi kernel: rockchip-pcie f8000000.pcie: Looking up vpcie1v8-supply from device tree
Jun 26 19:43:28 DietPi kernel: rockchip-pcie f8000000.pcie: Looking up vpcie1v8-supply property in node /pcie@f8000000 failed
Jun 26 19:43:28 DietPi kernel: rockchip-pcie f8000000.pcie: no vpcie1v8 regulator found
Jun 26 19:43:28 DietPi kernel: rockchip-pcie f8000000.pcie: Looking up vpcie0v9-supply from device tree
Jun 26 19:43:28 DietPi kernel: rockchip-pcie f8000000.pcie: Looking up vpcie0v9-supply property in node /pcie@f8000000 failed
Jun 26 19:43:28 DietPi kernel: rockchip-pcie f8000000.pcie: no vpcie0v9 regulator found
Jun 26 19:43:28 DietPi kernel: rockchip-pcie f8000000.pcie: PCIe link training gen1 timeout!
Jun 26 19:43:28 DietPi kernel: rockchip-pcie: probe of f8000000.pcie failed with error -110
Jun 26 19:43:28 DietPi kernel: ehci-pci: EHCI PCI platform driver

"find /lib/modules -name nvme" returns nothing.

root@DietPi:~# zcat /proc/config.gz | grep NVME
CONFIG_BLK_DEV_NVME=y
CONFIG_NVMEM=y
@ramgopalkota

This comment has been minimized.

Copy link

@ramgopalkota ramgopalkota commented Jun 27, 2019

I dumped the DTS by using dts compiler (dts command)
dtc -I fs -O dts /sys/firmware/devicetree/base and I am attaching the output.
I did not find vcc3v3-pcie-regulator ... Is there a new dts file which I need to use.

dts-file.txt

@MichaIng

This comment has been minimized.

Copy link
Owner

@MichaIng MichaIng commented Jun 27, 2019

@ramgopalkota
Okay the Looking up vpcie... no regulartor found errors seam to be normal on RK3399 boards, influding Firefly and RockPro64 from what I found, without affecting drives: https://forum.pine64.org/showthread.php?tid=6449

Yours is different from rockchip-pcie f8000000.pcie: PCIe link training gen1 timeout! on.

Now found: rockchip-linux/kernel#116
The workaround, to add a 1s delay between training and bus scanning, has been implemented into current Ayufan kernel release: ayufan-rock64/linux-kernel@3cde5c6

No idea how the FriendlyARM implements the kernel and which one is based on, to be true, also I can't check our image due to the special eMMC build.

Can you check if/which kernel deb packages are installed?
dpkg -l linux-*

@Fourdee
Btw the libmali packages are available for arm64 as well since some months: https://github.com/rockchip-linux/rk-rootfs-build/tree/master/packages/arm64/libmali

  • Perhaps a new image makes sense to remove armhf package/dependency and base on newest kernel?
  • Also you might know better which base kernel is used and how to upgrade, of possible easily?
@ramgopalkota

This comment has been minimized.

Copy link

@ramgopalkota ramgopalkota commented Jun 27, 2019

Hi
I have also posted to friendlyarm forum but no one replied.

I am currently using diet-pi .7z .
I will be trying friendlyarm image over the weekend to see if it makes any difference.

I did not do till now since both kernel versions are same.

Can you tell me what needs to be added to cmdline ? Is there any file in diet-pi to set cmdline

@MichaIng

This comment has been minimized.

Copy link
Owner

@MichaIng MichaIng commented Jun 27, 2019

@ramgopalkota
There is nothing you can do with the cmdline as long as the patch by nuumio (added to Ayufan kernel) is not implemented. If it is implemented, then you don't need to adjust cmdline since the default setting should work well then.

The base kernel version is the same on all images, but it's the customisation done here and there that makes the difference. Jep testing the official FriendlyARM image is a least worth a try.

Are there kernel deb packages installed on your image? dpkg -l linux-*

@ramgopalkota

This comment has been minimized.

Copy link

@ramgopalkota ramgopalkota commented Jun 27, 2019

ii linux-base 4.5 all Linux image base package
un linux-initramfs-tool (no description available)
un linux-kernel-headers (no description available)
ii linux-libc-dev:arm64 4.9.168-1+deb9u3 arm64 Linux support headers for userspace development

@exside

This comment has been minimized.

Copy link

@exside exside commented Nov 11, 2019

@Fourdee

Hi and thanks for your work on the NanoPC T4 image!

I saw here https://dietpi.com/phpbb/viewtopic.php?p=16308#p16308 that technically the wireguard "package" should be available from DietPi 6.20, but was unable to find it in the installable software because it seems disabled:

$ dietpi-software list | grep disabled

gives back

id 172 | =0 | wireguard: an extremely simple yet fast and modern vpn | disabled for nanopc t4 (aarch64) | https://dietpi.com/phpbb/viewtopic.php?p=16308#p16308

I assume it is because wireguard as a kernel module kinda depends on the friendlyarm kernel this dietpi distro is based on? Is that correct and are there any plans to enable wireguard for NanoPC T4?

thanks for a quick feedback!

@MichaIng

This comment has been minimized.

Copy link
Owner

@MichaIng MichaIng commented Nov 11, 2019

@exside
Most importantly the kernel headers/sources are required to build the WireGuard kernel module and I am not sure currently how the kernel is implemented on this T4 image.

As from @ramgopalkota post above (sorry for missing answer), what does this show:

apt show linux-kernel-headers
ls -l /etc/apt/sources.list.d

I plan to create a new set of NanoPi/PC NEO4/M4/T4 + M4v2 images based on current Armbian kernel/firmware, where installing headers is easy, hence WireGuard should be able to be easily implemented. But first v6.27 will be released as it contains a bunch of bug fixes that I don't want to miss on any new image.

@LeeMenHin

This comment has been minimized.

Copy link

@LeeMenHin LeeMenHin commented Dec 31, 2019

@exside
Most importantly the kernel headers/sources are required to build the WireGuard kernel module and I am not sure currently how the kernel is implemented on this T4 image.

As from @ramgopalkota post above (sorry for missing answer), what does this show:

apt show linux-kernel-headers
ls -l /etc/apt/sources.list.d

I plan to create a new set of NanoPi/PC NEO4/M4/T4 + M4v2 images based on current Armbian kernel/firmware, where installing headers is easy, hence WireGuard should be able to be easily implemented. But first v6.27 will be released as it contains a bunch of bug fixes that I don't want to miss on any new image.

Hope to see very soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
You can’t perform that action at this time.