slarm64 (unofficial slackware) Quartz64 RK3566 (aarch64)
#11
(11-13-2021, 04:37 PM)mara Wrote:
(11-13-2021, 04:19 PM)dieselnutjob Wrote: can I dd your xfce image straight to an eMMC card?

anyway, you just need to change the name of the root partition in /etc/fstab and /boot/uEnv.txt

I does work from microSD card.  I just needed pay attention to the console
Code:
Copy info from "Call trace..." to a file(eg. dump.txt), and run                 
command in your U-Boot project: ./scripts/stacktrace.sh dump.txt               
                                                                               
Resetting CPU ...                                                               
                                                                               
### ERROR ### Please RESET the board ###

My bad.

This is deeply impressive:-
[Image: DSC_5652.jpg]

If I want to recompile my own kernel do I do it with this source https://gitlab.com/pine64-org/quartz-bsp/rockchip-linux ?
and if yes, is it the "quartz64" one (branch?) or the "develop-4.19" or one of the others?

(11-13-2021, 04:37 PM)mara Wrote:
(11-13-2021, 04:19 PM)dieselnutjob Wrote: can I dd your xfce image straight to an eMMC card?

anyway, you just need to change the name of the root partition in /etc/fstab and /boot/uEnv.txt

I don't have /boot/uEnv.txt did you mean /boot/extlinux/extlinux.conf ?
I changed the entry in extlinux.conf to root=UUID=d14648ed-fd3c-4e85-b9fd-619cfcc8d206

here are my logs:-
Code:
U-Boot SPL board init                                                          
U-Boot SPL 2017.09-rk3566 (Oct 10 2021 - 15:41:53)                              
unknown raw ID phN                                                              
unrecognized JEDEC id bytes: 00, 00, 00                                        
Trying to boot from MMC2                                                        
MMC error: The cmd index is 1, ret is -110                                      
Card did not respond to voltage select!                                        
mmc_init: -95, time 9                                                          
spl: mmc init failed with error: -95                                            
Trying to boot from MMC1                                                        
No misc partition                                                              
## Verified-boot: 0                                                            
## Checking atf-1 0x00040000 ... sha256+ OK                                    
## Checking uboot 0x00a00000 ... sha256+ OK                                    
## Checking fdt 0x00b23618 ... sha256+ OK                                      
## Checking atf-2 0xfdcc9000 ... sha256+ OK                                    
## Checking atf-3 0xfdcd0000 ... sha256+ OK                                    
Jumping to U-Boot(0x00a00000) via ARM Trusted Firmware(0x00040000)              
Total: 269.596 ms                                                              
                                                                                
INFO:    Preloader serial: 2                                                    
NOTICE:  BL31: v2.3():v2.3-135-gcda1658bc-dirty:xsf                            
NOTICE:  BL31: Built : 14:19:26, Jun  1 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 iniK
ERROR:   Error initializing runtime service opteed_fast                        
INFO:    BL31: Preparing for EL3 exit to normal world                          
INFO:    Entry point address = 0xa00000                                        
INFO:    SPSR = 0x3c9                                                          
                                                                                
                                                                                
U-Boot 2017.09-rk3566 (Oct 10 2021 - 15:46:27 +0000)                            
                                                                                
Model: Pine64 RK3566 Quartz64 Board                                            
PreSerial: 2, raw, 0xfe660000                                                  
DRAM:  4 GiB                                                                    
Sysmem: init                                                                    
Relocation Offset: ed355000, fdt: eb9f92f8                                      
dwmmc@fe2b0000: 1, dwmmc@fe2c0000: 2, sdhci@fe310000: 0                        
Bootdev(atags): mmc 0                                                          
MMC0: HS200, 200Mhz                                                            
PartType: EFI                                                                  
No misc partition                                                              
boot mode: None                                                                
FIT: No boot partition                                                          
No resource partition                                                          
Failed to load DTB                                                              
Failed to get kernel dtb, ret=-19                                              
io-domain: OK                                                                  
MMC error: The cmd index is 1, ret is -110                                      
Card did not respond to voltage select!                                        
mmc_init: -95, time 10                                                          
** Bad device mmc 1 **                                                          
Using default environment                                                      
                                                                                
Model: Pine64 RK3566 Quartz64 Board                                            
rockchip_set_serialno: could not find efuse/otp device                          
CLK: (sync kernel. arm: enter 816000 KHz, init 816000 KHz, kernel 0N/A)        
  apll 816000 KHz                                                              
  dpll 528000 KHz                                                              
  gpll 1188000 KHz                                                              
  cpll 1000000 KHz                                                              
  npll 24000 KHz                                                                
  vpll 24000 KHz                                                                
  hpll 24000 KHz                                                                
  ppll 100000 KHz                                                              
  armclk 816000 KHz                                                            
  aclk_bus 150000 KHz                                                          
  pclk_bus 50000 KHz                                                            
  aclk_top_high 300000 KHz                                                      
  aclk_top_low 200000 KHz                                                      
  hclk_top 150000 KHz                                                          
  pclk_top 50000 KHz                                                            
  aclk_perimid 300000 KHz                                                      
  hclk_perimid 150000 KHz                                                      
  pclk_pmu 50000 KHz                                                            
Net:   clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -2.
Hit key to stop autoboot('CTRL+C'):  0                                          
MMC error: The cmd index is 1, ret is -110                                      
Card did not respond to voltage select!                                        
mmc_init: -95, time 10                                                          
switch to partitions #0, OK                                                    
mmc0(part 0) is current device                                                  
Scanning mmc 0:2...                                                            
Found /extlinux/extlinux.conf                                                  
Retrieving file: /extlinux/extlinux.conf                                        
242 bytes read in 81 ms (2 KiB/s)                                              
1:      slarm64                                                                
Retrieving file: /Image                                                        
23048200 bytes read in 266 ms (82.6 MiB/s)                                      
append: root=UUID=d14648ed-fd3c-4e85-b9fd-619cfcc8d206 ro rootwait rootfstype=e8
Retrieving file: /dtb/rk3566-quartz64-a.dtb                                    
115277 bytes read in 509 ms (220.7 KiB/s)                                      
Fdt Ramdisk skip relocation                                                    
## Flattened Device Tree blob at 0x0a100000                                    
   Booting using the fdt blob at 0x0a100000                                    
  'reserved-memory' ramoops@110000: addr=110000 size=f0000                      
   Using Device Tree in place at 000000000a100000, end 000000000a11f24c        
Adding bank: 0x00200000 - 0xf0000000 (size: 0xefe00000)                        
Adding bank: 0x1f0000000 - 0x200000000 (size: 0x10000000)                      
Total: 2042.515 ms                                                              
                                                                                
Starting kernel ...                                                            
                                                                                
[    0.115821] vcc3v3_pcie_p: regulator get failed, ret=-517                    
[    0.265246] extcon extcon1: failed to create extcon usb2-phy link            
[    0.285100] mpp_rkvdec2 fdf80200.rkvdec: shared_niu_a is not found!          
[    0.285161] rkvdec2_init:875: No niu aclk reset resource define              
[    0.285192] mpp_rkvdec2 fdf80200.rkvdec: shared_niu_h is not found!          
[    0.285232] rkvdec2_init:878: No niu hclk reset resource define              
[    0.320760] dw-mipi-dsi fe060000.dsi: [drm:dw_mipi_dsi_bind] *ERROR* Failed 7
[    0.330091] mali fde60000.gpu: Power management initialization failed error 7
[    0.330178] mali fde60000.gpu: Device initialization Deferred                
[    0.347123] clk: failed to reparent clk_gmac1_rx_tx to gmac1_clkin: -22      
[    0.347713] rk_gmac-dwmac fe010000.ethernet: no regulator found              
[    0.489959] dwc3 fcc00000.dwc3: Failed to get clk 'ref': -2                  
[    0.713131] rk817-battery rk817-battery: fb_temperature missing!            
[    0.713199] rk817-battery rk817-battery: energy_mode missing!                
[    0.713230] rk817-battery rk817-battery: zero_reserve_dsoc missing!          
[    0.794324] rk817-charger rk817-charger: power_dc2otg missing!              
[    0.794376] rk817-charger rk817-charger: sample_res missing!                
[    0.794404] rk817-charger rk817-charger: otg5v_suspend_enable missing!      
[    0.794430] rk817-charger rk817-charger: gate_function_disable missing!      
[    0.816748] rockchip-pinctrl pinctrl: pin gpio3-13 already requested by fe01c
[    0.816818] rockchip-pinctrl pinctrl: pin-109 (fe5c0000.i2c) status -22      
[    0.816849] rockchip-pinctrl pinctrl: could not request pin 109 (gpio3-13) fl
[    0.816902] rk3x-i2c fe5c0000.i2c: Error applying setting, reverse things bak
[    0.817084] rockchip-pinctrl pinctrl: pin gpio3-11 already requested by fe01c
[    0.817129] rockchip-pinctrl pinctrl: pin-107 (fe5e0000.i2c) status -22      
[    0.817174] rockchip-pinctrl pinctrl: could not request pin 107 (gpio3-11) fl
[    0.817223] rk3x-i2c fe5e0000.i2c: Error applying setting, reverse things bak
[    0.820422] rkisp_hw fdff0000.rkisp: can't request region for resource [mem ]
[    0.871928] rockchip-pinctrl pinctrl: pin gpio0-16 already requested by fdd5q
[    0.871993] rockchip-pinctrl pinctrl: pin-16 (sdio-pwrseq) status -22        
[    0.872017] rockchip-pinctrl pinctrl: could not request pin 16 (gpio0-16) frl
[    0.872080] pwrseq_simple sdio-pwrseq: Error applying setting, reverse thingk
[    0.900408] mmc2: Unknown controller version (5). You may experience problem.
[    0.933987] rockchip,bus bus-npu: Failed to get leakage                      
[    0.937421] rksfc_base v1.1 2016-01-08                                      
[    2.250241] mali fde60000.gpu: dev_pm_opp_set_regulators: no regulator (shad9
[    2.256900] of_clk_hw_onecell_get: invalid index 3                          
[    2.257033] ERROR: could not get clock /dmc:dmc_clk(0)                      
[    2.257126] rockchip-dmc dmc: Cannot get the clk dmc_clk. If using SCMI, tru.
[    2.277461] rkisp-vir0: update sensor failed                                
[    2.362804] devfreq fde60000.gpu: Couldn't update frequency transition infor.
[    2.428191] headset_interrupt:get pin level again, pin=148,i=0

and this one is booting microSD but with the eMMC still plugged in, and I ran some commands at the end
Code:
U-Boot SPL board init                                                          
U-Boot SPL 2017.09-rk3566 (Oct 10 2021 - 15:41:53)                              
unknown raw ID phN                                                              
unrecognized JEDEC id bytes: 00, 00, 00                                        
Trying to boot from MMC2                                                        
No misc partition                                                              
## Verified-boot: 0                                                            
## Checking atf-1 0x00040000 ... sha256+ OK                                    
## Checking uboot 0x00a00000 ... sha256+ OK                                    
## Checking fdt 0x00b23618 ... sha256+ OK                                      
## Checking atf-2 0xfdcc9000 ... sha256+ OK                                    
## Checking atf-3 0xfdcd0000 ... sha256+ OK                                    
Jumping to U-Boot(0x00a00000) via ARM Trusted Firmware(0x00040000)              
Total: 388.635 ms                                                              
                                                                                
INFO:    Preloader serial: 2                                                    
NOTICE:  BL31: v2.3():v2.3-135-gcda1658bc-dirty:xsf                            
NOTICE:  BL31: Built : 14:19:26, Jun  1 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 iniK
ERROR:   Error initializing runtime service opteed_fast                        
INFO:    BL31: Preparing for EL3 exit to normal world                          
INFO:    Entry point address = 0xa00000                                        
INFO:    SPSR = 0x3c9                                                          
                                                                                
                                                                                
U-Boot 2017.09-rk3566 (Oct 10 2021 - 15:46:27 +0000)                            
                                                                                
Model: Pine64 RK3566 Quartz64 Board                                            
PreSerial: 2, raw, 0xfe660000                                                  
DRAM:  4 GiB                                                                    
Sysmem: init                                                                    
Relocation Offset: ed355000, fdt: eb9f92f8                                      
no mmc device at slot 1                                                        
dwmmc@fe2b0000: 1 (SD), dwmmc@fe2c0000: 2, sdhci@fe310000: 0                    
Bootdev(atags): mmc 1                                                          
MMC1: Legacy, 50Mhz                                                            
PartType: EFI                                                                  
No misc partition                                                              
boot mode: None                                                                
FIT: No boot partition                                                          
No resource partition                                                          
Failed to load DTB                                                              
Failed to get kernel dtb, ret=-19                                              
io-domain: OK                                                                  
                                                                                
** Unable to use mmc 1:3 for loading the env **                                
Using default environment                                                      
                                                                                
Model: Pine64 RK3566 Quartz64 Board                                            
rockchip_set_serialno: could not find efuse/otp device                          
CLK: (sync kernel. arm: enter 816000 KHz, init 816000 KHz, kernel 0N/A)        
  apll 816000 KHz                                                              
  dpll 528000 KHz                                                              
  gpll 1188000 KHz                                                              
  cpll 1000000 KHz                                                              
  npll 24000 KHz                                                                
  vpll 24000 KHz                                                                
  hpll 24000 KHz                                                                
  ppll 100000 KHz                                                              
  armclk 816000 KHz                                                            
  aclk_bus 150000 KHz                                                          
  pclk_bus 50000 KHz                                                            
  aclk_top_high 300000 KHz                                                      
  aclk_top_low 200000 KHz                                                      
  hclk_top 150000 KHz                                                          
  pclk_top 50000 KHz                                                            
  aclk_perimid 300000 KHz                                                      
  hclk_perimid 150000 KHz                                                      
  pclk_pmu 50000 KHz                                                            
Net:   clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -2.
Hit key to stop autoboot('CTRL+C'):  0                                          
switch to partitions #0, OK                                                    
mmc1 is current device                                                          
Scanning mmc 1:2...                                                            
Found /extlinux/extlinux.conf                                                  
Retrieving file: /extlinux/extlinux.conf                                        
215 bytes read in 17 ms (11.7 KiB/s)                                            
1:      slarm64                                                                
Retrieving file: /Image                                                        
23048200 bytes read in 1957 ms (11.2 MiB/s)                                    
append: root=/dev/mmcblk0p3 ro rootwait rootfstype=ext4 init=/sbin/init logleve8
Retrieving file: /dtb/rk3566-quartz64-a.dtb                                    
115277 bytes read in 118 ms (953.1 KiB/s)                                      
Fdt Ramdisk skip relocation                                                    
## Flattened Device Tree blob at 0x0a100000                                    
   Booting using the fdt blob at 0x0a100000                                    
  'reserved-memory' ramoops@110000: addr=110000 size=f0000                      
   Using Device Tree in place at 000000000a100000, end 000000000a11f24c        
Adding bank: 0x00200000 - 0xf0000000 (size: 0xefe00000)                        
Adding bank: 0x1f0000000 - 0x200000000 (size: 0x10000000)                      
Total: 2334.686 ms                                                              
                                                                                
Starting kernel ...                                                            
                                                                                
[    0.116204] vcc3v3_pcie_p: regulator get failed, ret=-517                    
[    0.265714] extcon extcon1: failed to create extcon usb2-phy link            
[    0.285670] mpp_rkvdec2 fdf80200.rkvdec: shared_niu_a is not found!          
[    0.285729] rkvdec2_init:875: No niu aclk reset resource define              
[    0.285760] mpp_rkvdec2 fdf80200.rkvdec: shared_niu_h is not found!          
[    0.285798] rkvdec2_init:878: No niu hclk reset resource define              
[    0.321635] dw-mipi-dsi fe060000.dsi: [drm:dw_mipi_dsi_bind] *ERROR* Failed 7
[    0.330632] mali fde60000.gpu: Power management initialization failed error 7
[    0.330721] mali fde60000.gpu: Device initialization Deferred                
[    0.347646] clk: failed to reparent clk_gmac1_rx_tx to gmac1_clkin: -22      
[    0.348225] rk_gmac-dwmac fe010000.ethernet: no regulator found              
[    0.490507] dwc3 fcc00000.dwc3: Failed to get clk 'ref': -2                  
[    0.715217] rk817-battery rk817-battery: fb_temperature missing!            
[    0.715284] rk817-battery rk817-battery: energy_mode missing!                
[    0.715315] rk817-battery rk817-battery: zero_reserve_dsoc missing!          
[    0.787572] rk817-charger rk817-charger: power_dc2otg missing!              
[    0.787624] rk817-charger rk817-charger: sample_res missing!                
[    0.787651] rk817-charger rk817-charger: otg5v_suspend_enable missing!      
[    0.787693] rk817-charger rk817-charger: gate_function_disable missing!      
[    0.811757] rockchip-pinctrl pinctrl: pin gpio3-13 already requested by fe01c
[    0.811868] rockchip-pinctrl pinctrl: pin-109 (fe5c0000.i2c) status -22      
[    0.811902] rockchip-pinctrl pinctrl: could not request pin 109 (gpio3-13) fl
[    0.811956] rk3x-i2c fe5c0000.i2c: Error applying setting, reverse things bak
[    0.812134] rockchip-pinctrl pinctrl: pin gpio3-11 already requested by fe01c
[    0.812193] rockchip-pinctrl pinctrl: pin-107 (fe5e0000.i2c) status -22      
[    0.812235] rockchip-pinctrl pinctrl: could not request pin 107 (gpio3-11) fl
[    0.812284] rk3x-i2c fe5e0000.i2c: Error applying setting, reverse things bak
[    0.815112] rkisp_hw fdff0000.rkisp: can't request region for resource [mem ]
[    0.866755] rockchip-pinctrl pinctrl: pin gpio0-16 already requested by fdd5q
[    0.866841] rockchip-pinctrl pinctrl: pin-16 (sdio-pwrseq) status -22        
[    0.866875] rockchip-pinctrl pinctrl: could not request pin 16 (gpio0-16) frl
[    0.866941] pwrseq_simple sdio-pwrseq: Error applying setting, reverse thingk
[    0.898063] mmc2: Unknown controller version (5). You may experience problem.
[    0.932838] rockchip,bus bus-npu: Failed to get leakage                      
[    0.936192] rksfc_base v1.1 2016-01-08                                      
[    2.211873] mali fde60000.gpu: dev_pm_opp_set_regulators: no regulator (shad9
[    2.218315] of_clk_hw_onecell_get: invalid index 3                          
[    2.218450] ERROR: could not get clock /dmc:dmc_clk(0)                      
[    2.218583] rockchip-dmc dmc: Cannot get the clk dmc_clk. If using SCMI, tru.
[    2.238929] rkisp-vir0: update sensor failed                                
[    2.316111] devfreq fde60000.gpu: Couldn't update frequency transition infor.
INIT: version 3.00 booting                                                      
[    2.388564] headset_interrupt:get pin level again, pin=148,i=0              
mount: proc mounted on /proc.                                                  
mount: sysfs mounted on /sys.                                                  
mount: tmpfs mounted on /run.                                                  
Creating static nodes in /dev.                                                  
Starting udevd:  /sbin/udevd --daemon                                          
Triggering udev events:  /sbin/udevadm trigger --action=add                    
Setting the system clock rate:  /sbin/adjtimex --tick 10000 --frequency 0      
Setting system time from the hardware clock (localtime):  Fri Aug  4 09:00:08 U7
Testing root filesystem status:  read-only filesystem                          
Checking root filesystem:                                                      
fsck from util-linux 2.37.2                                                    
linuxroot: clean, 275683/3837504 files, 2492306/15520251 blocks                
Remounting root device with read-write enabled.                                
mount: /dev/mmcblk0p3 mounted on /.                                            
Updating module dependency list for 4.19.210:  /sbin/depmod --quick            
Configuring kernel parameters:  /sbin/sysctl -e --system                        
* Applying /etc/sysctl.d/10-ext4_tune.conf ...                                  
vm.dirty_writeback_centisecs = 100                                              
vm.dirty_expire_centisecs = 100                                                
* Applying /etc/sysctl.d/swap.conf ...                                          
vm.swappiness = 10                                                              
Checking non-root filesystems:                                                  
fsck from util-linux 2.37.2                                                    
/dev/mmcblk0p2: clean, 142/65536 files, 67587/262144 blocks                    
Mounting non-root local filesystems:                                            
tmpfs on /dev/shm type tmpfs (rw)                                              
shm on /dev/shm type tmpfs (rw)                                                
/dev/mmcblk0p2 on /boot type ext4 (rw,noatime,nodiratime)                      
Using /etc/random-seed to initialize /dev/urandom.                              
INIT: Entering runlevel: 4                                                      
Going multiuser...                                                              
Updating shared library links:  /sbin/ldconfig &                                
setterm: cannot (un)set powersave mode: Inappropriate ioctl for device          
Starting syslogd daemon:  /usr/sbin/syslogd -s                                  
Updating X font indexes:  /usr/bin/fc-cache -f &                                
Updating hardware database index:  /sbin/udevadm hwdb --update                  
Triggering udev events:  /sbin/udevadm trigger --action=change                  
Starting the network interfaces...                                              
eth0: polling for DHCP server                                                  
dhcpcd-9.4.0 starting                                                          
DUID 00:01:00:01:21:16:f4:1d:6e:1e:e9:b6:6a:f3                                  
eth0: waiting for carrier                                                      
eth0: carrier acquired                                                          
eth0: IAID e9:b6:6a:f3                                                          
eth0: carrier lost                                                              
eth0: carrier acquired                                                          
eth0: IAID e9:b6:6a:f3                                                          
eth0: rebinding lease of 192.168.1.135                                          
eth0: probing address 192.168.1.135/24                                          
eth0: leased 192.168.1.135 for 86400 seconds                                    
eth0: adding route to 192.168.1.0/24                                            
eth0: adding default route via 192.168.1.254                                    
forked to background, child pid 511                                            
Starting system message bus:  /usr/bin/dbus-uuidgen --ensure ; /usr/bin/dbus-dam
Starting elogind:  /lib64/elogind/elogind --daemon                              
Starting Bluetooth services:  bluetoothd hciconfig sdptool hciattach            
Starting NetworkManager daemon:  /usr/sbin/NetworkManager                      
Starting OpenSSH SSH daemon:  /usr/sbin/sshd                                    
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)              
Starting NTP daemon:  /usr/sbin/ntpd -g -u ntp:ntp                              
Enabled CPU frequency scaling governor:  ondemand                              
Updating MIME database:  /usr/bin/update-mime-database /usr/share/mime &        
Updating gtk.immodules:                                                        
  /usr/bin/update-gtk-immodules &                                              
Updating gdk-pixbuf.loaders:                                                    
  /usr/bin/update-gdk-pixbuf-loaders &                                          
Compiling GSettings XML schema files:                                          
  /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas &                  
Starting crond:  /usr/sbin/crond -l notice                                      
Loading ALSA mixer settings:  /usr/sbin/alsactl restore                        
alsa-lib main.c:1405:(snd_use_case_mgr_open) error: failed to import hw:0 use c2
alsa-lib main.c:1405:(snd_use_case_mgr_open) error: failed to import hw:1 use c2
Loading /usr/share/kbd/keymaps/i386/qwerty/us.map.gz                            
Running script /etc/rc.d/rc.local:                                              
Starting up X11 session manager...                                              
                                                                                
                                                                                
=======================================================================        
                                                                                
if you want to transfer the system to SDcard to internal memory (eMMC or NAND),
follow transfer-to-disk                                                        
                                                                                
=======================================================================        
                                                                                
slarm64 GNU/Linux (ttyFIQ0)                                                    
Kernel 4.19.210 (aarch64)                                                      
                                                                                
quartz64 login:

root@quartz64:~# fdisk -l
GPT PMBR size mismatch (19728383 != 122142719) will be corrected by write.
The backup GPT table is not on the end of the device.
Disk /dev/mmcblk2: 58.24 GiB, 62537072640 bytes, 122142720 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 7CA82528-DCD3-4A4F-94ED-A1D8071D0E47

Device          Start      End  Sectors  Size Type
/dev/mmcblk2p1  16384    49151    32768   16M Microsoft basic data
/dev/mmcblk2p2  49152   573439   524288  256M EFI System
/dev/mmcblk2p3 573440 19728350 19154911  9.1G Linux filesystem


Disk /dev/mmcblk0: 59.48 GiB, 63864569856 bytes, 124735488 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 7CA82528-DCD3-4A4F-94ED-A1D8071D0E47

Device          Start       End   Sectors  Size Type
/dev/mmcblk0p1  16384     49151     32768   16M Microsoft basic data
/dev/mmcblk0p2  49152    573439    524288  256M EFI System
/dev/mmcblk0p3 573440 124735454 124162015 59.2G Linux filesystem
root@quartz64:~# blkid
/dev/mmcblk2p2: UUID="77ac32f4-d0d6-45fd-9aa7-f000f9098d01" BLOCK_SIZE="1024" TYPE="ext4" PAR"
/dev/mmcblk2p3: LABEL="linuxroot" UUID="d14648ed-fd3c-4e85-b9fd-619cfcc8d206" BLOCK_SIZE="409"
/dev/mmcblk0p3: LABEL="linuxroot" UUID="d14648ed-fd3c-4e85-b9fd-619cfcc8d206" BLOCK_SIZE="409"
/dev/mmcblk0p2: UUID="77ac32f4-d0d6-45fd-9aa7-f000f9098d01" BLOCK_SIZE="1024" TYPE="ext4" PAR"
/dev/mmcblk2p1: PARTLABEL="uboot" PARTUUID="1803f25a-1357-4844-9f19-7ad173e8864f"
/dev/mmcblk0p1: PARTLABEL="uboot" PARTUUID="1803f25a-1357-4844-9f19-7ad173e8864f"

root@quartz64:~#
root@quartz64:~# cd /mnt
root@quartz64:/mnt# mkdir emmcp2
root@quartz64:/mnt# mkdir emmcp3
root@quartz64:/mnt# mount
/dev/mmcblk0p3 on / type ext4 (rw,noatime,nodiratime,data=writeback,errors=remount-ro)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
tmpfs on /dev/shm type tmpfs (rw)
shm on /dev/shm type tmpfs (rw)
/dev/mmcblk0p2 on /boot type ext4 (rw,noatime,nodiratime)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
root@quartz64:/mnt# mount /dev/mmcblk2p2 emmcp2
root@quartz64:/mnt# mount /dev/mmcblk2p3 emmcp3
root@quartz64:/mnt# cat emmcp2/extlinux/extlinux.conf
LABEL slarm64
LINUX /Image
FDT /dtb/rk3566-quartz64-a.dtb
APPEND root=UUID=d14648ed-fd3c-4e85-b9fd-619cfcc8d206 ro rootwait rootfstype=ext4 init=/sbin/8
root@quartz64:/mnt# cat emmcp3/etc/fstab
#
# /etc/fstab: static file system information
#
# <file system>        <mount point>   <type>   <options>                        <dump> <pass>
shm                    /dev/shm        tmpfs    defaults                         0      0
devpts                 /dev/pts        devpts   noexec,nosuid,gid=tty,mode=0620  0      0
sysfs                  /sys            sysfs    defaults                         0      0
proc                   /proc           proc     defaults                         0      0
#
#/dev/#EXT4FS_BOOT#    /boot           ext4     errors=remount-ro                0      1
#/dev/#SWAP#           swap            swap     defaults                         0      0
#/dev/#EXT4FS_ROOT#    /               ext4     errors=remount-ro                0      1
#/dev/#EXT4FS_HOME#    /home           ext4     defaults                         0      2

UUID=d14648ed-fd3c-4e85-b9fd-619cfcc8d206    /          ext4    noatime,nodiratime,data=write1
UUID=77ac32f4-d0d6-45fd-9aa7-f000f9098d01    /boot      ext4    noatime,nodiratime       0   1

got it working on eMMC
I just edited extlinux.conf thusly
Code:
root@quartz64:~# cat /boot/extlinux/extlinux.conf
LABEL slarm64
LINUX /Image
FDT /dtb/rk3566-quartz64-a.dtb
APPEND root=/dev/mmcblk2p3 ro rootwait rootfstype=ext4 init=/sbin/init loglevel=4 earlycon=uar
t8250,mmio32,0xfe660000 console=tty1 console=ttyFIQ0,1500000n8

I wonder if there is a way to put UUID in the root=
  Reply
#12
(11-13-2021, 05:08 PM)dieselnutjob Wrote: If I want to recompile my own kernel do I do it with this source https://gitlab.com/pine64-org/quartz-bsp/rockchip-linux ?
and if yes, is it the "quartz64" one (branch?) or the "develop-4.19" or one of the others?


I wonder if there is a way to put UUID in the root=

i used the kernel from radxa teams.
sources with patches are already in /usr/src or kernel-source-rk3566-*-noarch-1mara.txz

with UUID, it is loaded from the priority media (if there are 2 of them), and with a specific indication, it is loaded as indicated.
donation   slarm64

  Reply
#13
Can you tell me what u-boot source you used please? When I used the Armbian scripts designed for the Rock 3A the u-boot it produces doesn't seem to like the Quartz64. I am wondering if the Rock 3A has an SPI chip.
Anyway clearly you already cracked this so if you can give me any pointers then that would be helpful.
  Reply
#14
I described the assembly u-boot here is the link to the source dts
donation   slarm64

  Reply
#15
(10-10-2021, 01:45 PM)mara Wrote: Working
  •     LAN
  •     USB2
  •     HDMI

slarm64-current-aarch64-server-quartz64-4.19.210-build-20211010.img.zst
slarm64-current-aarch64-server-quartz64-4.19.210-build-20211010.img.zst.sha256
slarm64-current-aarch64-xfce-quartz64-4.19.210-build-20211010.img.zst
slarm64-current-aarch64-xfce-quartz64-4.19.210-build-20211010.img.zst.sha256

Mara,
I also tried flashing the xfce image to an SD card and I do not get anything. etcher give the following warning. "it looks like this is not a bootable image; the image does not appear to contain a partition table and might not be recognized or bootable by your device"

so I'm clearly missing a step. I saw later and in the tutorial section(https://forum.pine64.org/showthread.php?tid=14507)  you post some u-boot instructions
when i try to apply the patch

Code:
patch -p1 < add-u-boot-quartz64.patch"
i get no such file or directory.
so I clearly have a setup issue.

I'm trying to get this board up and running to a desktop so I can start some driver work for the parts my company makes.
  Reply
#16
(11-23-2021, 04:45 PM)keaton Wrote: Mara,
I also tried flashing the xfce image to an SD card and I do not get anything. etcher give the following warning. "it looks like this is not a bootable image; the image does not appear to contain a partition table and might not be recognized or bootable by your device"

README.TXT here is the description of the entry on the sdcard (need to unpack).

(11-23-2021, 04:45 PM)keaton Wrote: Mara,
I also tried flashing the xfce image to an SD card and I do not get anything. etcher give the following warning. "it looks like this is not a bootable image; the image does not appear to contain a partition table and might not be recognized or bootable by your device"

boot-20211010.tar.xz this is the archive with the last compiled loader.

corrected instructions
Code:
patch -p1 < 01-add-u-boot-quartz64.patch
donation   slarm64

  Reply
#17
(11-24-2021, 11:46 AM)mara Wrote:
(11-23-2021, 04:45 PM)keaton Wrote: Mara,
I also tried flashing the xfce image to an SD card and I do not get anything. etcher give the following warning. "it looks like this is not a bootable image; the image does not appear to contain a partition table and might not be recognized or bootable by your device"

README.TXT here is the description of the entry on the sdcard (need to unpack).
ah ok. I installed zstd and was able to get it to work. I'm able to boot to the desktop. not familiar with slackware so i will have to do some more reading on it.

FWIW i could not get this to work
Code:
or unpack directly to the card

  # zstdcat slackware-current-*-server-*-build-*.img.zst > /dev/mmcblk0

but i could unpack it and do a dd to the card.

i will try and revisit the u-boot setup

thanks for the help
  Reply
#18
default screen saver (and the random screen saver ) after kicking in, the screen goes to 1/2
board is the 8GB version and the screen is a 1920x1080

EDIT: screen is a 2560x1440
  Reply
#19
(11-30-2021, 11:52 AM)keaton Wrote: default screen saver (and the random screen saver ) after kicking in, the screen goes to 1/2
board is the 8GB version and the screen is a 1920x1080
let's see Xorg.0.log, dmesg 
you can also use xrandr
donation   slarm64

  Reply
#20
(11-30-2021, 01:25 PM)mara Wrote:
(11-30-2021, 11:52 AM)keaton Wrote: default screen saver (and the random screen saver ) after kicking in, the screen goes to 1/2
board is the 8GB version and the screen is a 1920x1080
let's see Xorg.0.log, dmesg 
you can also use xrandr

xrandr:
Code:
Screen 0: minimum 320 x 200, current 3760 x 1920, maximum 8192 x 8192
HDMI-1 connected primary 2560x1440+0+0 (normal left inverted right x axis y axis) 597mm x 336mm
   2560x1440     59.95*+
   1920x1440     60.00 
   2560x1080     60.00    59.94    50.00    30.00    29.97    24.00    23.98    25.00 
   2048x1152     60.00 
   1920x1200     59.95 
   1920x1080     60.00    50.00    59.94    30.00    25.00    24.00    29.97    23.98 
   1920x1080i    60.00    50.00    59.94 
   1680x1050     59.88 
   1280x1024     75.02    60.02 
   1440x900      59.90 
   1152x864      75.00 
   1280x720      60.00    50.00    59.94 
   1440x576      50.00 
   1024x768      75.03    70.07    60.00 
   1440x480      60.00    59.94 
   832x624       74.55 
   800x600       72.19    75.00    60.32    56.25 
   720x576       50.00 
   720x576i      50.00 
   720x480       60.00    59.94 
   720x480i      60.00    59.94 
   640x480       75.00    72.81    66.67    60.00    59.94 
   720x400       70.08 
DSI-1 connected 1200x1920+2560+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1200x1920     60.23*+

seems I lose my Ethernet connection when this happens and I have to reboot to get it back.
evening assigning ifconfig eth0 xx.xx.xx.xxx didn't work.

dmesg, guessing this is the error we want to see

Code:
[ 1127.477905] Video Port1: ACTIVE
[ 1127.477908]     Connector: DSI-1
[ 1127.477911]     bus_format[100a]: RGB888_1X24
[ 1127.477912]     overlay_mode[0] output_mode[0]
[ 1127.477914]  color_space[0]
[ 1127.477916]     Display mode: 1200x1920p60
[ 1127.477919]     clk[160000] real_clk[160000] type[0] flag[a]
[ 1127.477924]     H: 1200 1280 1281 1341
[ 1127.477926]     V: 1920 1955 1956 1981
[ 1127.477928]     Smart1-win0: ACTIVE
[ 1127.477929]     win_id: 1
[ 1127.477934]     format: XR24 little-endian (0x34325258) SDR[0] color_space[0] glb_alpha[0xff]
[ 1127.477936]     rotate: xmirror: 0 ymirror: 0 rotate_90: 0 rotate_270: 0
[ 1127.477938]     csc: y2r[0] r2y[0] csc mode[0]
[ 1127.477940]     zpos: 1
[ 1127.477943]     src: pos[0, 0] rect[1200 x 1920]
[ 1127.477947]     dst: pos[0, 0] rect[1200 x 1920]
[ 1127.477950]     buf[0]: addr: 0x0000000002580000 pitch: 4800 offset: 0
[ 1127.477953] Video Port2: DISABLED
[ 1127.477973] rockchip-vop2 fe040000.vop: [drm:vop2_isr] *ERROR* POST_BUF_EMPTY irq err at vp1
[ 1127.478027] rockchip-vop2 fe040000.vop: [drm:vop2_isr] *ERROR* POST_BUF_EMPTY irq err at vp1
[ 1127.478043] rockchip-vop2 fe040000.vop: [drm:vop2_isr] *ERROR* POST_BUF_EMPTY irq err at vp1
[ 1127.478055] rockchip-vop2 fe040000.vop: [drm:vop2_isr] *ERROR* POST_BUF_EMPTY irq err at vp1
[ 1127.478067] rockchip-vop2 fe040000.vop: [drm:vop2_isr] *ERROR* POST_BUF_EMPTY irq err at vp1
[ 1127.598560] [drm:dw_hdmi_rockchip_set_property] *ERROR* failed to set rockchip hdmi connector property hdmi_color_depth_capacity
[ 1127.598586] [drm:dw_hdmi_rockchip_set_property] *ERROR* failed to set rockchip hdmi connector property hdmi_output_mode_capacity
[ 1127.908376] rockchip-vop2 fe040000.vop: [drm:vop2_crtc_atomic_enable] Update mode to 2560x1440p0, type: 11 for vp0
[ 1127.928738] dwhdmi-rockchip fe0a0000.hdmi: Rate 241500000 missing; compute N dynamically
[ 1132.473639] vop2_isr: 927851 callbacks suppressed
[ 1132.473661] rockchip-vop2 fe040000.vop: [drm:vop2_isr] *ERROR* POST_BUF_EMPTY irq err at vp1
[ 1132.473687] rockchip-vop2 fe040000.vop: [drm:vop2_isr] *ERROR* POST_BUF_EMPTY irq err at vp1
[ 1132.473702] rockchip-vop2 fe040000.vop: [drm:vop2_isr] *ERROR* POST_BUF_EMPTY irq err at vp1
[ 1132.473716] rockchip-vop2 fe040000.vop: [drm:vop2_isr] *ERROR* POST_BUF_EMPTY irq err at vp1
[ 1132.473729] rockchip-vop2 fe040000.vop: [drm:vop2_isr] *ERROR* POST_BUF_EMPTY irq err at vp1
[ 1132.473741] rockchip-vop2 fe040000.vop: [drm:vop2_isr] *ERROR* POST_BUF_EMPTY irq err at vp1
[ 1132.473752] rockchip-vop2 fe040000.vop: [drm:vop2_isr] *ERROR* POST_BUF_EMPTY irq err at vp1
[ 1132.473764] rockchip-vop2 fe040000.vop: [drm:vop2_isr] *ERROR* POST_BUF_EMPTY irq err at vp1
[ 1132.473775] rockchip-vop2 fe040000.vop: [drm:vop2_isr] *ERROR* POST_BUF_EMPTY irq err at vp1
[ 1132.473785] rockchip-vop2 fe040000.vop: [drm:vop2_isr] *ERROR* POST_BUF_EMPTY irq err at vp1
[ 1137.476997] vop2_isr: 911189 callbacks suppressed
[ 1137.477018] rockchip-vop2 fe040000.vop: [drm:vop2_isr] *ERROR* POST_BUF_EMPTY irq err at vp1
[ 1137.477044] rockchip-vop2 fe040000.vop: [drm:vop2_isr] *ERROR* POST_BUF_EMPTY irq err at vp1
[ 1137.477066] rockchip-vop2 fe040000.vop: [drm:vop2_isr] *ERROR* POST_BUF_EMPTY irq err at vp1
[ 1137.477080] rockchip-vop2 fe040000.vop: [drm:vop2_isr] *ERROR* POST_BUF_EMPTY irq err at vp1
[ 1137.477091] rockchip-vop2 fe040000.vop: [drm:vop2_isr] *ERROR* POST_BUF_EMPTY irq err at vp1
[ 1137.477102] rockchip-vop2 fe040000.vop: [drm:vop2_isr] *ERROR* POST_BUF_EMPTY irq err at vp1
[ 1137.477114] rockchip-vop2 fe040000.vop: [drm:vop2_isr] *ERROR* POST_BUF_EMPTY irq err at vp1
[ 1137.477126] rockchip-vop2 fe040000.vop: [drm:vop2_isr] *ERROR* POST_BUF_EMPTY irq err at vp1
[ 1137.477137] rockchip-vop2 fe040000.vop: [drm:vop2_isr] *ERROR* POST_BUF_EMPTY irq err at vp1
[ 1137.477148] rockchip-vop2 fe040000.vop: [drm:vop2_isr] *ERROR* POST_BUF_EMPTY irq err at vp1
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  irradium (based on crux linux) Quartz64 riscv64, aarch64 mara 0 180 03-27-2024, 12:53 PM
Last Post: mara
  DietPi OS for Quartz64 MichaIng 45 10,490 12-12-2023, 02:26 AM
Last Post: sickos
  Armbian and LibreELEC and AltLinux for Quartz64 balbes150 147 58,865 11-17-2023, 08:21 AM
Last Post: balbes150
  quartz64-a - on-board SATA port problems manning 2 1,119 09-14-2023, 04:22 PM
Last Post: manning
  How the reset Quartz64-b onboard memory (emmc) beepy 2 817 07-20-2023, 10:44 PM
Last Post: beepy
  crux-arm Quartz64 RK3566 (aarch64) mara 5 4,968 10-29-2022, 06:55 AM
Last Post: mara
  Ov5647 camera attached via csi to Quartz64 /Soquartz Randomuser 0 1,236 07-21-2022, 01:08 PM
Last Post: Randomuser
  Armbian on Quartz64 dieselnutjob 34 26,431 03-17-2022, 06:29 AM
Last Post: balbes150

Forum Jump:


Users browsing this thread: 3 Guest(s)