LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > slarm64
User Name
Password
slarm64 This forum is for the discussion of slarm64.

Notices


Reply
  Search this Thread
Old 06-26-2023, 11:31 AM   #1
BGB
Member
 
Registered: Jan 2021
Distribution: Slackware
Posts: 33

Rep: Reputation: Disabled
PineTab2 install


Progress 6/26/23

Make sure you have the USB to UART board, a USB A to C cable, your micro SD, and micro-hdmi to whatever your external monitor wants.


get img from https://dl.slarm64.org/slackware/images/quartz64/

e.g.,
slarm64-current-aarch64-server-quartz64-4.19.193-build-20220707.img.zst

On my Slackware15 laptop (for ref: 86_64 AMD Ryzen 7 5700U ) microSD (128G) in adaptor which detects as /dev/sda

dd if=slarm64-current-aarch64-server-quartz64-4.19.193-build-20220707.img.zst of=/dev/sda
( careful with the device name... don't bork your working computer )


insert microSD in PT2

Set the switch on UART board to 'SD boot'
and then insert in bottom slot with pinecone and usbc sockets facing you

connect usb cable to bottom USiC on UART board (in my situation laptop to uart)
Start 'screen' or minicom with /dev/ttyUSB0 1500000
e.g., screen /dev/ttyUSB0 1500000

boot PT2 (only a slight short puch of the power button is needed, not 2 sec)
wait and watch for boot info

Code:
ln
ddrconfig:7
LPDDR4X, 324MHz
BW=32 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=16 Size=8192MB
tdqss: cs0 dqs0: 24ps, dqs1: -96ps, dqs2: -48ps, dqs3: -192ps, 
tdqss: cs1 dqs0: 24ps, dqs1: -120ps, dqs2: -48ps, dqs3: -168ps, 

change to: 324MHz
PHY drv:clk:36,ca:36,DQ:29,odt:60
vrefinner:16%, vrefout:41%
dram drv:40,odt:0
clk skew:0x63

change to: 528MHz
PHY drv:clk:36,ca:36,DQ:29,odt:60
vrefinner:16%, vrefout:41%
dram drv:40,odt:0
clk skew:0x58

change to: 780MHz
PHY drv:clk:36,ca:36,DQ:29,odt:60
vrefinner:16%, vrefout:41%
dram drv:40,odt:0
clk skew:0x58

change to: 1056MHz(final freq)
PHY drv:clk:36,ca:36,DQ:29,odt:60
vrefinner:16%, vrefout:22%
dram drv:40,odt:80
vref_ca:00000071

&<   snipped

INFO:    Preloader serial: 2
NOTICE:  BL31: v2.3():v2.3-181-gc9a647cae:cl
NOTICE:  BL31: Built : 10:55:41, Oct 18 2021
INFO:    GICv3 without legacy support detected.
INFO:    ARM GICv3 driver initialized in EL3
INFO:    pmu v1 is valid
INFO:    dfs DDR fsp_param[0].freq_mhz= 1056MHz
INFO:    dfs DDR fsp_param[1].freq_mhz= 324MHz
INFO:    dfs DDR fsp_param[2].freq_mhz= 528MHz
INFO:    dfs DDR fsp_param[3].freq_mhz= 780MHz
INFO:    Using opteed sec cpu_context!
INFO:    boot cpu mask: 0
INFO:    BL31: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s destined for OPTEE will return SMC_UNK
ERROR:   Error initializing runtime service opteed_fast
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0xa00000
INFO:    SPSR = 0x3c9
&< snip
no mmc device at slot 1
dwmmc@fe2b0000: 1 (SD), dwmmc@fe2c0000: 2, sdhci@fe310000: 0
Bootdev(atags): mmc 1
MMC1: Legacy, 52Mhz
PartType: EFI
No misc partition
boot mode: None
FIT: No boot partition
No resource partition
No resource partition
Failed to load DTB, ret=-19
Failed to get kernel dtb, ret=-19
io-domain: OK
Model: Pine64 RK3566 Quartz64 Board

&< snip

mmc1 is current device
Scanning mmc 1:1...
Found U-Boot script /boot.scr
2602 bytes read in 9 ms (282.2 KiB/s)
## Executing script at 00c00000
Boot script loaded from mmc 1
138 bytes read in 10 ms (12.7 KiB/s)
55624 bytes read in 54 ms (1005.9 KiB/s)
31742464 bytes read in 11799 ms (2.6 MiB/s)
libfdt fdt_getprop(): FDT_ERR_NOTFOUND
** File not found /dtb/rockchip/overlay/rockchip-fixup.scr **
6475315 bytes read in 556 ms (11.1 MiB/s)
Fdt Ramdisk skip relocation
No misc partition
## Loading init Ramdisk from Legacy Image at 0a200000 ...
   Image Name:   uInitrd
   Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
   Data Size:    6475251 Bytes = 6.2 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 0x0a100000
   Booting using the fdt blob at 0x0a100000
   reserving fdt memory region: addr=a100000 size=73000
   Using Device Tree in place at 000000000a100000, end 000000000a175fff
&< snip
libfdt fdt_getprop(): FDT_ERR_NOTFOUND
** File not found /dtb/rockchip/overlay/rockchip-fixup.scr **
6475315 bytes read in 556 ms (11.1 MiB/s)
Fdt Ramdisk skip relocation
No misc partition
## Loading init Ramdisk from Legacy Image at 0a200000 ...
   Image Name:   uInitrd
   Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
   Data Size:    6475251 Bytes = 6.2 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 0x0a100000
   Booting using the fdt blob at 0x0a100000
   reserving fdt memory region: addr=a100000 size=73000
   Using Device Tree in place at 000000000a100000, end 000000000a175fff
can't found rockchip,drm-logo, use rockchip,fb-logo
WARNING: could not set reg FDT_ERR_BADOFFSET.
failed to reserve fb-loader-logo memory
Adding bank: 0x00200000 - 0xf0000000 (size: 0xefe00000)
Adding bank: 0x100000000 - 0x200000000 (size: 0x100000000)
Total: 12969.112 ms

Starting kernel ...

[    1.003402] dw-apb-uart fe650000.serial: Failed to create device link (0x180) with 0-0020
[    1.005517] clk: failed to reparent i2s1_mclkout_tx to clk_i2s1_8ch_tx: -22
[    1.053412] clk: failed to reparent i2s1_mclkout_tx to clk_i2s1_8ch_tx: -22
[    1.151029] dw-apb-uart fe650000.serial: Failed to create device link (0x180) with 0-0020
[    6.858838] mmc1: error -110 whilst initialising MMC card
[   12.540707] mmc1: error -110 whilst initialising MMC card
[   13.447869] of_dma_request_slave_channel: dma-names property of node '/serial@fe650000' missing or empty


=======================================================================

if you want to transfer the system to SDcard to internal memory (eMMC or NAND),
follow transfer-to-disk

=======================================================================

slarm64 GNU/Linux (ttyS2)
Kernel 6.2.0 (aarch64)

quartz64 login:
Note that on UART board, comm tx rx blinks tiny blue and red LED (really fast)
 
Old 06-26-2023, 11:58 AM   #2
BGB
Member
 
Registered: Jan 2021
Distribution: Slackware
Posts: 33

Original Poster
Rep: Reputation: Disabled
next update:

tried my trusty (works most places) rt2500usb
Code:
root@quartz64:/#  modprobe rt2500usb

root@quartz64:/# lsmod | grep rt2


rt2500usb              32768  0
rt2x00usb              24576  1 rt2500usb
rt2x00lib              65536  2 rt2500usb,rt2x00usb
mac80211              950272  3 rt2x00lib,rt2500usb,rt2x00usb
cfg80211              933888  2 rt2x00lib,mac80211
rfkill                 32768  4 rt2x00lib,bluetooth,cfg80211
nothing in 'dmesg' other than
usbcore: registered new interface driver rt2500usb


tried bringing this up with dhcpcd on eth0, eth1, wlan0, wlan1 ...
and plugged into upper UART USBC and upper USBC

dhcpcd_prestartinterface: Connection timed out
eth0: waiting for carrier


many lines from dmesg like[ 665.124866] rk_gmac-dwmac fe010000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0
[ 665.126800] rk_gmac-dwmac fe010000.ethernet eth0: PHY [stmmac-0:00] driver [Generic PHY] (irq=POLL)
[ 666.127059] rk_gmac-dwmac fe010000.ethernet: Failed to reset the dma
Code:
root@quartz64:~# transfer-to-disk

               │ current runlevel 3                             │
               │ in order to correctly transfer the system,     │
               │ you must go to runlevel 2 or lower             │
               │ bash$ init 2     


root@quartz64:~# init 2


root@quartz64:~# transfer-to-disk
                                                                     │
          │ select one of the items                                  │
          │ ┌──────────────────────────────────────────────────────┐ │
          │ │    1  system moving on the emmc, hdd, ssd or nand    │ │
          │ │                                                      │ │
          │ │                                                      │ │
          │ └──────────────────────────────────────────────────────┘ │
          │                                                          │
          ├──────────────────────────────────────────────────────────┤
          │               <  OK  >        <Cancel>                   │
          └──────────────────────────────────────────────────────────┘
click OK then nothing seems to have happened
 
Old 06-26-2023, 12:15 PM   #3
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,915

Rep: Reputation: Disabled
Quote:
Originally Posted by BGB View Post
root@quartz64:~# transfer-to-disk

│ current runlevel 3 │
│ in order to correctly transfer the system, │
│ you must go to runlevel 2 or lower │
│ bash$ init 2


root@quartz64:~# init 2


root@quartz64:~# transfer-to-disk

│ select one of the items │
│ ┌──────────────────────────────────────────────────────┐ │
│ │ 1 system moving on the emmc, hdd, ssd or nand │ │
│ │ │ │
│ │ │ │
│ └──────────────────────────────────────────────────────┘ │
│ │
├──────────────────────────────────────────────────────────┤
│ < OK > <Cancel> │
└──────────────────────────────────────────────────────────┘

[/code]

click OK then nothing seems to have happened
This device is simply not on the list.
Code:
cat /proc/device-tree/compatible
need to find dts for this device.
 
Old 06-26-2023, 12:35 PM   #4
BGB
Member
 
Registered: Jan 2021
Distribution: Slackware
Posts: 33

Original Poster
Rep: Reputation: Disabled
This is new territory for me. Is the DTS chip-specific (RK3566), device-specific (PT2) and could I find it in the shipped OS, or maybe
somewhere in https://wiki.t-firefly.com/en/ROC-RK...x_compile.html

BTW https://wiki.t-firefly.com/en/ROC-RK3566-PC/debug.html has a summary of the ttyUSB settings.
 
Old 06-26-2023, 12:50 PM   #5
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,915

Rep: Reputation: Disabled
i added dts pinetab2 and panel.
 
Old 06-26-2023, 04:00 PM   #6
BGB
Member
 
Registered: Jan 2021
Distribution: Slackware
Posts: 33

Original Poster
Rep: Reputation: Disabled
boots (with some pauses for missing files) and I can run xfce. Not sure how to get keybd/mouse to talk to xsession.
Tried mouse on UART USBC and builtin ... no power to mouse. Also, builtin keybd, no response

X.Org X Server 1.21.1.8
X Protocol Version 11, Revision 0
[ 219.393] Current Operating System: Linux quartz64 6.4.0-rc7 #1 SMP PREEMPT S
un Jun 25 23:01:39 EEST 2023 aarch64
[ 219.393] Kernel command line: root=UUID=32539e08-a5c0-4084-9f32-0932043d95e3
ro rootwait rootfstype=ext4 init=/sbin/init console=ttyS2,1500000n8 console=tty
1 consoleblank=0 loglevel=4 usb-storage.quirks=
 
Old 06-27-2023, 12:19 PM   #7
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,915

Rep: Reputation: Disabled
I updated the images, for pinetab2 to work correctly, it is necessary to replace rk3566-quartz64-a.dtb with rk3566-pinetab2.dtb on the mmcblk0p1 section in the uEnv.txt file.
 
Old 06-28-2023, 10:01 AM   #8
BGB
Member
 
Registered: Jan 2021
Distribution: Slackware
Posts: 33

Original Poster
Rep: Reputation: Disabled
setback (battery?)

setback. PT2 only boots with power to lower USB (seems like UART board does not passthru power)... even though battery indicator says 100% in DanctNix, PT2 shuts down when power cable is removed. Could be a bad battery or power control circuit? Not sure how to proceed. I did let it run to empty battery once.

No RX on UART board... should this work with DanctNix?

Maybe time to order another UART board.

Updates 6/30/23:

1) reinstalled factory image and battery seems to take full charge and run for hours

2) From pine64 sales "Serial debugging board for PINETAB2 will be available for sale around mid-late July 2023."

3) question, can I just use a pair of aliexpress.com/item/1005005324791017.html and would I cross TX<->RX?

Last edited by BGB; 06-30-2023 at 08:47 AM. Reason: supplemental
 
Old 06-30-2023, 02:41 PM   #9
BGB
Member
 
Registered: Jan 2021
Distribution: Slackware
Posts: 33

Original Poster
Rep: Reputation: Disabled
Slarm Pinetab2 ethernet

I have a BENFEI USB to Ethernet Adapter, USB 3.0 to 10/100/1000 Gigabit Ethernet LAN Network Adapter
(detects on DanctNix and works ok)

Can I add (to the rc.modules.local in any of the slarm images)

modprobe r8152 r8153_ecm usbnet
dhcpcd eth0

and then ssh in?
 
Old 06-30-2023, 04:09 PM   #10
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,915

Rep: Reputation: Disabled
Quote:
Originally Posted by BGB View Post
I have a BENFEI USB to Ethernet Adapter, USB 3.0 to 10/100/1000 Gigabit Ethernet LAN Network Adapter
(detects on DanctNix and works ok)

Can I add (to the rc.modules.local in any of the slarm images)

modprobe r8152 r8153_ecm usbnet
dhcpcd eth0

and then ssh in?
why not, you can also add to /etc/modprobe.d/
 
Old 06-30-2023, 06:42 PM   #11
BGB
Member
 
Registered: Jan 2021
Distribution: Slackware
Posts: 33

Original Poster
Rep: Reputation: Disabled
5800a000.ethernet eth0: stmmac_hw_setup: DMA engine initialization failed

No joy ... the modules load (put lsmod in rc.modules.local) and then I get

stuff about stmac DMA engine initialization failed

interface won't start with dhcpcd
or static with ifconfig eth0


here it is:

https://community.st.com/t5/embedded...em/td-p/280709

Last edited by BGB; 07-01-2023 at 08:55 AM. Reason: new info
 
Old 07-04-2023, 05:35 PM   #12
BGB
Member
 
Registered: Jan 2021
Distribution: Slackware
Posts: 33

Original Poster
Rep: Reputation: Disabled
no USB networking joy,

Tried a 'known-to-work' usb-usb between laptop and PT2.
put ifconfig usb0 10.0.0.3 netmask 255.255.255.0 up
in rc.local on PT2

and same with 10.0.0.1 on laptop

PT2 says " SIOCSIFADDR: no such device "
" usb0 ERROR while getting interface flags: No such device"

tried upper and lower USB on PT2

Last edited by BGB; 07-05-2023 at 08:50 AM.
 
Old 07-05-2023, 11:19 AM   #13
BGB
Member
 
Registered: Jan 2021
Distribution: Slackware
Posts: 33

Original Poster
Rep: Reputation: Disabled
Cable detects as 067b:25a1 Prolific Technology, Inc. PL25A1 Host-Host Bridge
on x86 laptop

added on PT2 to rc.local


echo modprobe
/sbin/modprobe plusb cdc_ether usbnet
/usr/bin/ls /sys/class/net
echo modprobe

echo before usb
/sbin/ifconfig usb0 10.0.0.3 netmask 255.255.255.0 up
echo after

/usr/bin/ls /sys/class/net


both times /sys/class/net
returned eth0 lo


would this all be more likely to work if those modules were in the initrd?
 
Old 07-05-2023, 12:06 PM   #14
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,915

Rep: Reputation: Disabled
Quote:
Originally Posted by BGB View Post
would this all be more likely to work if those modules were in the initrd?
they should have loaded automatically, rebuild the init by running /boot/rebuild-initrd.sh and adding the necessary modules:
Code:
select kernel: 5.10.110
kernel: 5.10.110
select modules: ext4:xfs:btrfs:plusb:cdc_ether:usbnet
 
Old 07-05-2023, 01:47 PM   #15
BGB
Member
 
Registered: Jan 2021
Distribution: Slackware
Posts: 33

Original Poster
Rep: Reputation: Disabled
Remember, I can't get a shell. My UART seems to have gone silent, the wired and wireless usb dongles don't detect and the Host-Host usb isn't workng, so I have been popping the microSD into my x86 laptop to alter the rc files.

Could I add the rebuild instructions to rc.local in PT2 and then reboot ?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PineTab2 install BGB Slackware - ARM 12 08-25-2023 11:06 AM
LXer: PineTab2 Linux Tablet Comes in April Starting at $159 LXer Syndicated Linux News 0 03-02-2023 06:51 PM
LXer: PineTab2 powered by Rockchip RK3566 SoC LXer Syndicated Linux News 0 12-17-2022 04:31 PM
LXer: PINE64 Announces the PineTab2 Linux Tablet with Up to 8GB RAM and RK3566 SoC LXer Syndicated Linux News 0 12-15-2022 03:14 PM
Ubuntu as frugal install, iso install, img install? impossible? nooby Ubuntu 15 08-22-2008 05:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > slarm64

All times are GMT -5. The time now is 07:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration