[Trisquel-devel] trisquel ARM install tarball
David Lecompte
trisquel at metani.fr
Mon Sep 4 18:04:59 UTC 2023
Hi all,
Back to testing the ARM install, this time on rockpro64.
I ran
$ zcat firmware.rockpro64-rk3399.img.gz partition.img.gz >
complete_rockpro64.img
$ sudo dd if=complete_rockpro64.img of=/dev/sdc bs=4M
Then I tried booting, here is what I get on the serial console (also shown
on the screen connected via HDMI):
U-Boot TPL 2022.01+dfsg-2ubuntu2.3 (Nov 24 2022 - 19:40:06)
Channel 0: LPDDR4, 50MHz
BW=32 Col=10 Bk=8 CS0 Row=16/15 CS=1 Die BW=16 Size=2048MB
Channel 1: LPDDR4, 50MHz
BW=32 Col=10 Bk=15 CS=1 Die BW=16 Size=2048MB
256B stride
lpddr4_set_rate: change freq to 400000000 mhz 0, 1
lpddr4_set_rate: change freq to 800000000 mhz 1, 0
Trying to boot from BOOTROM
Returning to boot ROM...
U-Boot SPL 2022.01+dfsg-2ubuntu2.3 (Nov 24 2022 - 19:40:06 +0000)
Trying to boot from MMC2
U-Boot 2022.01+dfsg-2ubuntu2.3 (Nov 24 2022 - 19:40:06 +0000Model: Pine64
RockPro64 v2.1
DR3.9 GiB
PMIC: RK808
MMC: mmc at fe310000: 3, mmc at fe320000: 1, mmc at fe330000: 0
Loading Environment from SPIFlash... SF: Detected gd25q128 with page size
256 Bytes, erase size 4 KiB, total 16 MiB
*** Warning - bad CRC, using default environment
In: serial
Out: vidconsole
Err: vidconsole
Model: Pine64 RockPro64 v2.1
Net: eth0: ethernet at fe300000
starting USB...
Bus usb at fe380000: USB EHCI 1.00
Bus usb at fe3a0000: USB OHCI 1.0
Bus usb at fe3c0000: USB EHCI 1.00
Bus usb at fe3e0000: USB OHCI 1.0
Bus usb at fe800000: Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
Bus usb at fe900000: Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
scanning bus usb at fe380000 for devices... 4 USB Device(s) found
scanning bus usb at fe3a0000 for devices... 1 USB Device(s) found
scanning bus usb at fe3c0000 for devices... 1 USB Device(s) found
scanning bus usb at fe3e0000 for devices... 1 USB Device(s) found
scanning bus usb at fe800000 for devices... 1 USB Device(s) found
scanning bus usb at fe900000 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:1...
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
1: Trisquel-Installer
Retrieving file: /initrd.gz
Retrieving file: /vmlinuz
Retrieving file: /dtbs/rockchip/rk3399-rockpro64.dtb
Bad Linux ARM64 Image magic!
SCRIPT FAILED: continuing...
Card did not respond to voltage select! : -110
Scanning disk mmc at fe310000.blk...
Disk mmc at fe310000.blk not ready
Scanning disk mmc at fe320000.blk...
Card did not respond to voltage select! : -110
Scanning disk mmc at fe330000.blk...
Disk mmc at fe330000.blk not ready
Found 2 disks
No EFI system partition
BootOrder not defined
EFI boot manager: Cannot load any image
Card did not respond to voltage select! : -110
rockchip_pcie pcie at f8000000: PCIe link training gen1 timeout!
Device 0: unknown device
Device 0: unknown device
rockchip_pcie pcie at f8000000: failed to find ep-gpios property
Speed: 1000, full duplex
BOOTP broadcast 1
DHCP client bound to address 192.168.1.26 (20 ms)
Using ethernet at fe300000 device
TFTP from server 192.168.1.1; our IP address is 192.168.1.26
Filename '/extlinux/extlinux.conf'.
Load address: 0x800800
Loading: T T
---
I stopped it at that point. I am guessing that the "Bad Linux ARM64 Image
magic!" is the point at which it fails to boot.
I actually have two boards, one where I flashed U-boot on the SPI flash for
Debian install (I successfully booted a freedombox image on it, then it runs
the freedombox install via the web interface), one where I did not. I have
the same on both boards.
I decided to try something else:
$ zcat firmware.none.img.gz partition.img.gz > complete_none.img
$ sudo dd if=complete_none.img of=/dev/sdc bs=4M
Here is what I get:
Channel 0: LPDDR4, 50MHz-g9ecacf77d2 (Jun 30 2021 - 17:48:07)
BW=32 Col=10 Bk=8 CS0 Row=16/15 CS=1 Die BW=16 Size=2048MB
Channel 1: LPDDR4, 50MHz
BW=32 Col=10 Bk=8 CS0 Row=16/15 CS=1 Die BW=16 Size=2048MB
256B stride
lpddr4_set_rate: change freq to 400000000 mhz 0, 1
lpddr4_set_rate: change freq to 800000000 mhz 1, 0
Trying to boot from BOOTROM
Returning to boot ROM...
U-Boot SPL 2021.04-11556-g9ecacf77d2 (Jun 30 2021 - 17:48:07 +0000)
Trying to boot from SPI
NOTICE: BL31: v2.5(release):v2.5
NOTICE: BL31: Built : 17:45:
U-Boot 2021.04-11556-g9ecacf77d2 (Jun 30 2021 - 17:48:07 +0000)
SoC: Rockchip rk3399
ResModel: Pine64 RockPro64 v2.1
DR3.9 GiB
PMIC: RK808
MMC: mmc at fe310000: 2, mmc at fe320000: 1, sdhci at fe330000: 0
Loading Environment from SPIFlash... SF: Detected gd25q128 with page size
256 Bytes, erase size 4 KiB, total 16 MiB
*** Warning - bad CRC, using default environment
In: serial
Out: vidconsole
Err: vidconsole
Model: Pine64 RockPro64 v2.1
Net: eth0: ethernet at fe300000
starting USB...
Bus usb at fe380000: USB EHCI 1.00
Bus usb at fe3a0000: USB OHCI 1.0
Bus usb at fe3c0000: USB EHCI 1.00
Bus usb at fe3e0000: USB OHCI 1.0
Bus dwc3: usb maximum-speed not found
Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
scanning bus usb at fe380000 for devices... 1 USB Device(s) found
scanning bus usb at fe3a0000 for devices... 1 USB Device(s) found
scanning bus usb at fe3c0000 for devices... 4 USB Device(s) found
scanning bus usb at fe3e0000 for devices... 1 USB Device(s) found
scanning bus dwc3 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot: 0
Card did not respond to voltage select! : -110
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:1...
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
148 bytes read in 4 ms (36.1 KiB/s)
1: Trisquel-Installer
Retrieving file: /initrd.gz
69902101 bytes read in 3061 ms (21.8 MiB/s)
Retrieving file: /vmlinuz
15587211 bytes read in 685 ms (21.7 MiB/s)
Retrieving file: /dtbs/rockchip/rk3399-rockpro64.dtb
61182 bytes read in 14 ms (4.2 MiB/s)
Uncompressing Kernel Image
Moving Image from 0x2080000 to 0x2200000, end=52d0000
## Flattened Device Tree blob at 01f00000
Booting using the fdt blob at 0x1f00000
Loading Ramdisk to edc59000, end f1f02f15 ... OK
Loading Device Tree to 00000000edc47000, end 00000000edc58efd ... OK
Starting kernel ...
----
After the last line shows up, the screen shows a funny colour pattern for a
few seconds and then becomes dark. There is nothing anymore on the serial
console. I ran that on the board with U-boot in the SPI flash.
What gave me the idea to try that is that freedombox is booting with a
generic arm64 image, not an image specifc to the rockpro64.
I tried the Debian installer (I mean, Debian, not Trisquel), here is what I
get with the image with firmware:
U-Boot TPL 2021.04-11556-g9ecacf77d2 (Jun 30 2021 - 17:48:07)
Channel 0: LPDDR4, 50MHz
BW=32 Col=10 Bk=8 CS0 Row=16/15 CS=1 Die BW=16 Size=2048MB
Channel 1: LPDDR4, 50MHz
BW=32 Col=10 Bk=8 CS0 Row=16/15 CS=1 Die BW=16 S256B stride
lpddr4_set_rate: change freq to 400000000 mhz 0, 1
lpddr4_set_rate: change freq to 800000000 mhz 1, 0
Trying to boot from BOOTROM
Returning to boot ROM...
U-Boot SPL 2021.04-11556-g9ecacf77d2 (Jun 30 2021 - 17:48:07 +0000)
Trying to boot from SPI
NOTICE: BL31: v2.5(release):v2.5
NOTICE: BL31: Built : 17:45:
U-Boot 2021.04-11556-g9ecacf77d2 (Jun 30 2021 - 17:48:07 +00ockchip rk3399
Reset cause: POR3.9 GiB
PMIC: RK808
MMC: mmc at fe310000: 2, mmc at fe320000: 1, sdhci at fe330000: 0
Loading Environment from SPIFlash... SF: Detected gd25q128 with page size
256 Bytes, erase size 4 KiB, total 16 MiB
*** Warning - bad CRC, using default environment
In: serial
Out: vidconsole
Err: vidconsole
Model: Pine64 RockPro64 v2.1
Net: eth0: ethernet at fe300000
starting USB...
Bus usb at fe380000: USB EHCI 1.00
Bus usb at fe3a0000: USB OHCI 1.0
Bus usb at fe3c0000: USB EHCI 1.00
Bus usb at fe3e0000: USB OHCI 1.0
Bus dwc3: usb maximum-speed not found
Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
scanning bus usb at fe380000 for devices... 1 USB Device(s) found
scanning bus usb at fe3a0000 for devices... 1 USB Device(s) found
scanning bus usb at fe3c0000 for devices... 1 USB Device(s) found
scanning bus usb at fe3e0000 for devices... 2 USB Device(s) found
scanning bus dwc3 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot: 0
Card did not respond to voltage select! : -110
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:1...
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
144 bytes read in 4 ms (35.2 KiB/s)
1: Debian-Installer
Retrieving file: /dtbs/rockchip/rk3399-rockpro64.dtb
63081 bytes read in 13 ms (4.6 MiB/s)
Moving Image from 0x2080000 to 0x2200000, end=42f0000
## Flattened Device Tree blob at 01f00000
Booting using the fdt blob at 0x1f00000
Loading Ramdisk to ef834000, end f1f03434 ... OK
Loading Device Tree to 00000000ef821000, end 00000000ef833668 ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0000000000
[0x410an-kernel at lists.debian.org) (gcc-31)
[ 0.000000] Machine modA configuration found
[ 0.000000] NUMA: Faking a node at [meDATA [mem 0xf77d9280-0xf77dbfff]
[ 0.000000] Zone ranges:
[]
[ 0.000000] DMA32 empty
[ 0.000000] Normal em000] Early memory node ranges
[ 0.000000] node 0: [mem 0m setup node 0 [mem 0x0000000000200000-
0x00000000f7ffffff]
[ 0.000000] cma: Reserved 64 MiB at 0x00000000eb800000
[ 0.sci: PSCIv1.1 detected in firmware.
[ 0.000000] psci: Using YPE not supported.
[ 0.000000] psci: SMC Calling Convention 2 d30488 u126976
[ 0.000000] Detected VIPT I-cache on CPU0
erface
[ 0.000000] CPU features: detected: ARM erratum 845710000] Kernel command
line:
[ 0.000000] Dentry cache hash ta00] Inode-cache hash table entries:
262144 (order: 9, 2097152 by0.000000] Built 1 zonelists, mobility grouping
on. Total pages:nit: stack:all(zero), heap alloc:on, heap free:off
[ 0.00000ta, 9712K rodata, 6720K init, 630K bss, 152324K reserved,
65536Kts=0, CPUs=6, Nodes=1
[ 0.000000] ftrace: allocating 45040 e with 3 groups
[ 0.000000] trace event string verifier disab00000] rcu: RCU
restricting CPUs from NR_CPUS=256 to nr_cpu_ids] Tracing variant of Tasks
RCU enabled.
[ 0.000000] rcu: RC 0.000000] rcu: Adjusting geometry for
rcu_fanout_leaf=16, nr_rqs: 0
[ 0.000000] GICv3: GIC: Using split EOI/Deactivate mo0] GICv3: 0 Extended
SPIs implemented
[ 0.000000] Root IRQ hs
[ 0.000000] GICv3: CPU0: found redistributor 0 region 0:0x 0.000000]
ITS at 0x00000000fee20000: allocated 65536 Devices @6che flushing for cmd queue
[ 0.000000] GICv3: using LPI propshing for LPI property table
[ 0.000000] GICv3: CPU0: using 3: GIC: PPI partition interrupt-partition-
0[0] { /cpus/cpu at 0[0] 3: GIC: PPI partition interrupt-partition-1[1] {
/cpus/cpu at 100[4truct sizes based on contention.
[ 0.000000] arch_timer: cp1ce: arch_sys_counter: mask: 0xffffffffffffff
max_cycles: 0x588fe at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0. console [tty0] enabled
[ 0.003898] Calibrating delay loop (pj=96000)
[ 0.003941] pid_max: default: 32768 minimum: 301
,yama,apparmor,tomoyo,bpf,integrity
[ 0.004617] landlock: Upth sysctl kernel.yama.*
[ 0.004807] AppArmor: AppArmor initi LSM support for eBPF active
[ 0.005276] Mount-cache hash ta Mountpoint-cache hash table entries: 8192
(order: 4, 65536 bytey for CPU 0
[ 0.009550] cblist_init_generic: Setting adjusta Setting shift to 3 and
lim to 1.
[ 0.009784] cblist_init_ge] cblist_init_generic: Setting shift to 3 and
lim to 1.
[ 0.rcu: Max phase no-delay instances is 1000.
[ 0.012749] PlatI/MSI:
/interrupt-controller at fee00000/msi-controller at fee20000 do created
[ 0.016842] EFI services will not be available.
[ Detected VIPT I-cache on CPU1
[ 0.018881] GICv3: CPU1: founICv3: CPU1: using allocated LPI pending
table @0x00000000005d00010fd034]
[ 0.020187] Detected VIPT I-cache on CPU2
[ 0.000
[ 0.020275] GICv3: CPU2: using allocated LPI pending tablor 0x0000000002
[0x410fd034]
[ 0.021460] Detected VIPT I-cacn 0:0x00000000fef60000
[ 0.021548] GICv3: CPU3: using allocaed secondary processor 0x0000000003
[0x410fd034]
[ 0.022699]tected: Spectre-v3a
[ 0.022720] CPU features: detected: Spec
[ 0.022739] CPU features: detected: ARM errata 1165522, 131[ 0.022815]
GICv3: CPU4: found redistributor 100 region 0:0x0ding table
@0x0000000000680000
[ 0.022875] CPU4: Booted secoIPT I-cache on CPU5
[ 0.024046] GICv3: CPU5: found redistribsing allocated LPI pending table
@0x0000000000690000
[ 0.024[ 0.024229] smp: Brought up 1 node, 6 CPUs
[ 0.024579] SMtected: 32-bit EL0 Support
[ 0.024618] CPU features: detecte instructions
[ 0.024796] CPU: All CPU(s) started at EL2
[ 0.105296] node 0 deferred pages initialised in 80ms
[ 0.107 mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 764504178,
131072 bytes, linear)
[ 0.128193] pinctrl core: initialize[ 0.132116] NET: Registered
PF_NETLINK/PF_ROUTE protocol famimic allocations
[ 0.134876] DMA: preallocated 512 KiB GFP_KEeallocated 512 KiB
GFP_KERNEL|GFP_DMA32 pool for atomic allocati
[ 0.135830] audit: type=2000 audit(0.132:1): state=initializmal governor
'fair_share'
[ 0.137365] thermal_sys: Registereered thermal governor 'step_wise'
[ 0.137398] thermal_sys: Rys: Registered thermal governor
'power_allocator'
[ 0.137478ernor menu
[ 0.137616] hw-breakpoint: found 6 breakpoint andth 65536 entries
with /syscon at ff770000/phy at f780011 UART driver
[ 0.171266] platform ff940000[ 0.171308] platform ff940000.hdmi: Fixed
dependency cycle(s)d due to lack of seed
[ 0.182015] HugeTLB: registered 1.00 Gmemmap can be freed for a 1.00 GiB
page
[ 0.182054] HugeTLB:2068] HugeTLB: 0 KiB vmemmap can be freed for a 32.0
MiB page
[ages
[ 0.182098] HugeTLB: 0 KiB vmemmap can be freed for a 2ize, pre-allocated
0 pages
[ 0.182126] HugeTLB: 0 KiB vmemmar disabled.
[ 0.229903] iommu: Default domain type: Translatstrict mode
[ 0.230323] pps_core: LinuxPPS API ver. 1 regis 2005-2007 Rodolfo
Giometti <giometti at linux.it>
[ 0.230368] [ 0.231540] scmi_core: SCMI protocol bus registered
[ 0.2ize = 128
[ 0.233786] NetLabel: protocols = UNLABELED CIPSOy default
[ 0.234251] vgaarb: loaded
[ 0.234549] clocksoFS: Disk quotas dquot_6.6.0
[ 0.235287] VFS: Dquot-cache has: AppArmor Filesystem Enabled
[ 0.236409] pnp: PnP ACPI: dis249628] IP idents hash table entries: 65536
(order: 7, 524288 byries: 2048 (order: 3, 32768 bytes, linear)
[ 0.254869] Table[ 0.255017] TCP established hash table entries: 32768
(order:entries: 32768 (order: 8, 1048576 bytes, linear)
[ 0.256921]359] MPTCP token hash table entries: 4096 (order: 4, 98304
bytes536 bytes, linear)
[ 0.257772] UDP-Lite hash table entries: red PF_UNIX/PF_LOCAL protocol
family
[ 0.258287] NET: Registault 64
[ 0.259217] Trying to unpack rootfs image as initram904] kvm [1]:
vgic-v2 at fff20000
[ 0.271968] kvm [1]: GIC systrrupt IRQ18
[ 0.272107] kvm [1]: Hyp mode initialized succes0.307638] Key type
blacklist registered
[ 0.308068] workings: loaded
[ 0.309285] integrity: Platform Keyring initialized9361] Key type
asymmetric registered
[ 0.309376] Asymmetric 39740K
[ 3.318655] Block layer SCSI generic (bsg) driver verine registered
[ 3.337500] shpchp: Standard Hot Plug PCI Coner, 4 ports, IRQ sharing
enabled
[ 3.361853] Serial: AMBA dr3061] msm_serial: driver initialized
[ 3.371253] mousedev: Pgistered to indicate activity on CPUs
[ 3.378027] SMCCC: SOCw perfevents: enabled with armv8_cortex_a53 PMU
driver, 7 counteortex_a72 PMU driver, 7 counters available
[ 3.447803] NET: th IPv6
[ 3.468327] In-situ OAM (IOAM) with IPv6
[ 3.468protocol family
[ 3.468875] mpls_gso: MPLS GSO support
[ g compiled-in X.509 certificates
[ 3.593508] Loaded X.509 ce'
[ 3.593646] Loaded X.509 cert 'Debian Secure Boot Signer 2 Key type
.fscrypt registered
[ 3.603941] Key type fscrypt-pd
[ 3.622476] AppArmor: AppArmor sha1 policy hashing enabled[ 3.622626]
ima: Allocated hash algorithm: sha256
[ 3.622itialising EVM extended attributes:
[ 3.622810] evm: securit2834] evm: security.SMACK64EXEC (disabled)
[ 3.622846] evm: .SMACK64MMAP (disabled)
[ 3.622870] evm: security.apparmor
pability
[ 3.622903] evm: HMAC attrs: 0x1
[ 4.177295] cll memory: 6720K
[ 4.260311] Checked W+X mappings: passed, no62616] Synopsys Designware
Multimedia Card Interface Driver
[
[ 5.074411] sdhci: Copyright(c) Pierre Ossman
[ 5.094024117] usbcore: registered new interface driver hub
[ 5.09420330 ff6d0000.dma-controller: Loaded driver for PL330 DMAC-
241330m_Chans-6 Num_Peri-12 Num_Events-12
[ 5.130344] dma-pl330 ff130406] dma-pl330 ff6e0000.dma-controller:
DBUFF-128x8bytes NumHCI platform and OF driver helper
[ 5.359030] mmc2: CQHCI vec [fe330000.mmc] using ADMA
[ 5.435769] ff180000.serial: tty 5.436752] serial serial0: tty port
ttyS0 registered
[ 5.45ud = 1500000) is a 16550A
[ 5.452084] printk: console [ttyS2[ 5.587412] i2c 1-0011: Fixed
dependency cycle(s) with /i2s at ff890000/port/endpoint
---
At the "Starting kernel", I see the same pattern on the display like with
the trisquel no-firmware image but, after a few second of black screen but
with signal, I have the installer.
However, the USB keyboard is unresponsive, so this is somehow unusable. If I
press arrow keys and enter on the serial console, I see some reactions but
on the serial console only, not on the display. It looks like pressing enter
gets to the next install step, but the display on the serial console is not
really usable to know what you are doing.
I tested with the other board, the behaviour is exactly the same. I tested
with the "firmware.none", the result is exactly the same.
I am out of ideas for today, so I stop here.
More information about the Trisquel-devel
mailing list