Jump to content

Recommended Posts

Posted

The image I'm starting with is here: https://www.t95plus.com/forums/downloads/Armbian_22.11.0-trunk_soquartz_jammy_current_5.19.7.img.gz

 

This is the only image I've had any success booting a SOQuartz from microsd card. In fact, the *only* card that will work is very specifically a 32GB Sandisk Ultra A1 U1.  No other type of card will boot; not even a 16GB version of same Sandisk series.  Baffling.  This, however, is not my main issue.

 

The problem is that I have single option for sd card which is forcing me to make sure the image will even fit onto another card -- or Balena Etcher will complain that the drive is too small.  This only happens sometimes when I capture an image from the sdcard and it comes out (seemingly randomly) 10-12MB larger that the card.  Simple dd command which I was running on MacOS (perhaps this is a mistake):

 

sudo dd if=/dev/rdisk5 of="/Volumes/T7/soquartz-base.img" conv=sync bs=4m

 

Now, even when I mount the image above (from @balbes150according to github), which is only 1.7G, when I capture it with dd, it's creating a 32G img file -- the size of the card.

 

Many people point to this article https://softwarebakery.com//shrinking-images-on-linux

 

However, I do not have a monitor with which to see the gparted interface. In addition, this answer points to needing to use "gdisk" rather than "fdisk" because this image is using a GPT partition table?  https://askubuntu.com/a/1174492

 

I've tried this and the result is also not as expected:

 

Can someone simply tell me if it is even possible?  Mainly, even if I can just get the .img down to 30G so I can be sure to avoid the error when writing to (often times) the same exact model SD card which magically is 10-12M too small.

 

Every combination of attempts with the following resources has not worked:

 

https://access.redhat.com/articles/1196333

 

I really expected this to work, too, as it uses sgdisk:

 

https://gist.github.com/dkebler/92aa919e9aacc8a3f6b6b07c7abe12b4

 

 

Posted

describe in detail your equipment - module (parameters), carrier board. The presence of SPI and what is installed there. Which systems have tried to run (versions and links from where they took).

Posted

On the sd card boot issue, this is a soquartz V1.1_2022_07_11 on a soquartz model A baseboard with no peripherals plugged in. I am not sure why my raspberry pi can boot off of even the cheapest "KEXIN" or PNY sd card, what is baffling to me is how this will fail on a Sandisk Ultra 16GB but not a Sandisk Ultra 32GB.  Here is the failure with any SD card *other than* very specifically the 32GB Sandisk Ultra (I have tried dozens of different cards, manufacturers, etc).  Maybe there is an improper voltage specified in the device tree.

 

DDR Version V1.13 20220218?}@?0@???.???@???&@????@p??A8
ln
ddrconfig:0
LPDDR4X, 324MHz
BW=32 Col=10 Bk=8 CS0 Row=16 CS=1 Die BW=16 Size=2048MB
tdqss: cs0 dqs0: 48ps, dqs1: -48ps, dqs2: 24ps, dqs3: -48ps, 
 
change to: 324MHz
PHY drv:clk:36,ca:36,DQ:29,odt:0
vrefinner:24%, vrefout:41%
dram drv:40,odt:0
clk skew:0x60
 
change to: 528MHz
PHY drv:clk:36,ca:36,DQ:29,odt:0
vrefinner:24%, vrefout:41%
dram drv:40,odt:0
clk skew:0x58
 
change to: 780MHz
PHY drv:clk:36,ca:36,DQ:29,odt:0
vrefinner:24%, 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
clk skew:0x25
cs 0:
the read training result:
DQS0:0x3f, DQS1:0x40, DQS2:0x3f, DQS3:0x3d, 
min  : 0xb  0xb  0x4  0x1  0x3  0x4  0x9  0x8 , 0x6  0x3  0x2  0x3  0x7  0xe 0x10  0xb ,
       0x9  0x9  0x7  0x7  0x4  0x1  0x6  0x5 , 0x2  0x4  0x9  0x3  0x7  0x7  0x4  0x3 ,
mid  :0x2b 0x2c 0x24 0x21 0x23 0x24 0x29 0x28 ,0x26 0x24 0x23 0x23 0x27 0x2e 0x30 0x2b ,
      0x29 0x2a 0x27 0x27 0x24 0x22 0x26 0x25 ,0x23 0x24 0x28 0x22 0x28 0x27 0x24 0x23 ,
max  :0x4c 0x4d 0x44 0x42 0x44 0x45 0x4a 0x48 ,0x46 0x45 0x44 0x44 0x48 0x4f 0x50 0x4c ,
      0x4a 0x4b 0x48 0x47 0x45 0x43 0x46 0x45 ,0x44 0x45 0x47 0x42 0x49 0x48 0x45 0x44 ,
range:0x41 0x42 0x40 0x41 0x41 0x41 0x41 0x40 ,0x40 0x42 0x42 0x41 0x41 0x41 0x40 0x41 ,
      0x41 0x42 0x41 0x40 0x41 0x42 0x40 0x40 ,0x42 0x41 0x3e 0x3f 0x42 0x41 0x41 0x41 ,
the write training result:
DQS0:0x2b, DQS1:0x1f, DQS2:0x28, DQS3:0x1f, 
min  :0x56 0x58 0x52 0x50 0x51 0x51 0x56 0x56 0x57 ,0x45 0x42 0x41 0x42 0x46 0x4c 0x4c 0x49 0x46 ,
      0x51 0x51 0x4f 0x4e 0x4d 0x4a 0x4d 0x4e 0x4e ,0x45 0x46 0x49 0x46 0x49 0x49 0x46 0x46 0x47 ,
mid  :0x73 0x75 0x6e 0x6b 0x6d 0x6d 0x72 0x72 0x73 ,0x62 0x5e 0x5d 0x5e 0x62 0x68 0x68 0x65 0x63 ,
      0x6e 0x6e 0x6c 0x6b 0x68 0x66 0x68 0x6a 0x6a ,0x61 0x63 0x66 0x63 0x66 0x66 0x63 0x63 0x64 ,
max  :0x90 0x92 0x8b 0x87 0x89 0x89 0x8f 0x8e 0x8f ,0x7f 0x7b 0x7a 0x7b 0x7f 0x85 0x85 0x82 0x80 ,
      0x8b 0x8b 0x89 0x89 0x84 0x82 0x84 0x86 0x87 ,0x7e 0x80 0x83 0x81 0x83 0x83 0x80 0x80 0x82 ,
range:0x3a 0x3a 0x39 0x37 0x38 0x38 0x39 0x38 0x38 ,0x3a 0x39 0x39 0x39 0x39 0x39 0x39 0x39 0x3a ,
      0x3a 0x3a 0x3a 0x3b 0x37 0x38 0x37 0x38 0x39 ,0x39 0x3a 0x3a 0x3b 0x3a 0x3a 0x3a 0x3a 0x3b ,
CA Training result:
cs:0 min  :0x48 0x48 0x3f 0x44 0x43 0x40 0x42 ,0x47 0x45 0x46 0x42 0x44 0x41 0x46 ,
cs:0 mid  :0x87 0x87 0x7e 0x83 0x82 0x7e 0x71 ,0x85 0x85 0x84 0x82 0x84 0x80 0x74 ,
cs:0 max  :0xc6 0xc6 0xbe 0xc3 0xc2 0xbd 0xa0 ,0xc4 0xc5 0xc3 0xc2 0xc4 0xc0 0xa2 ,
cs:0 range:0x7e 0x7e 0x7f 0x7f 0x7f 0x7d 0x5e ,0x7d 0x80 0x7d 0x80 0x80 0x7f 0x5c ,
out
U-Boot SPL board init
U-Boot SPL 2017.09-gaaca6ffec1-211203 #zzz (Dec 03 2021 - 18:42:16)
unknown raw ID phN
unrecognized JEDEC id bytes: 00, 00, 00
Trying to boot from MMC2
GPT: last_usable_lba incorrect: X > 3a3dfde
part_get_info_efi: *** ERROR: Invalid GPT ***
part_get_info_efi: *** ERROR: Invalid Backup GPT ***
GPT: last_usable_lba incorrect: X > 3a3dfde
part_get_info_efi: *** ERROR: Invalid GPT ***
part_get_info_efi: *** ERROR: Invalid Backup GPT ***
No misc partition
GPT: last_usable_lba incorrect: X > 3a3dfde
part_get_info_efi: *** ERROR: Invalid GPT ***
part_get_info_efi: *** ERROR: Invalid Backup GPT ***
GPT: last_usable_lba incorrect: X > 3a3dfde
part_get_info_efi: *** ERROR: Invalid GPT ***
part_get_info_efi: *** ERROR: Invalid Backup GPT ***
spl: partition error
Trying fit image at 0x4000 sector
## Verified-boot: 0
## Checking atf-1 0x00040000 ... sha256(fe4f274c06...) + OK
## Checking uboot 0x00a00000 ... sha256(8ee20dcc3c...) + OK
## Checking fdt 0x00b21290 ... sha256(b3b93d73ae...) + OK
## Checking atf-2 0x00068000 ... sha256(8d44036095...) + OK
## Checking atf-3 0xfdcd0000 ... sha256(e410275b51...) + OK
## Checking atf-4 0xfdcc9000 ... sha256(990c53fc01...) + OK
## Checking atf-5 0x00066000 ... sha256(315a4195a9...) + OK
## Checking optee 0x08400000 ... sha256(66bbd17352...) + OK
Jumping to U-Boot(0x00a00000) via ARM Trusted Firmware(0x00040000)
Total: 279.907 ms
 
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
INFO:    BL31: Initializing BL32
I/TC: 
I/TC: OP-TEE version: 3.13.0-641-g4167319d3 #hisping.lin (gcc version 10.2.1 20201103 (GNU Toolchain for the A-profile Architecture 10.2-2020.11 (arm-10.16))) #8 Wed Mar 16 15:14:56 CST 2022 aarch64
I/TC: Primary CPU initializing
I/TC: Primary CPU switching to normal world boot
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0xa00000
INFO:    SPSR = 0x3c9
 
 
U-Boot 2017.09 (Apr 07 2022 - 13:38:04 +0000)
 
Model: Pine64 RK3566 Quartz64 Board
PreSerial: 2, raw, 0xfe660000
DRAM:  2 GiB
Sysmem: init
Relocation Offset: 7d39f000, fdt: 7b9f9f78 
no mmc device at slot 1
GPT: last_usable_lba incorrect: 3A3DFDE > 1dacc00
dwmmc@fe2b0000: 1 (SD), dwmmc@fe2c0000: 2, sdhci@fe310000: 0
Bootdev(atags): mmc 1
MMC1: Legacy, 50Mhz
PartType: DOS
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
** Invalid partition 3 **
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: -22No ethernet found.
Hit key to stop autoboot('CTRL+C'):  0 
## Booting FIT Image FIT: No boot partition
FIT: No FIT image
Could not find misc partition
ANDROID: reboot reason: "(none)"
optee api revision: 2.0
TEEC: Waring: Could not find security partition
Not AVB images, AVB skip
android_image_load_by_partname: Can't find part: boot
Android image load failed
Android boot failed, error -1.
switch to partitions #0, OK
mmc1 is current device
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
MMC error: The cmd index is 0, ret is -110
mmc_init: -110, time 4
starting USB...
Bus dwc3@fcc00000: usb maximum-speed not found
Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
Bus dwc3@fd000000: usb maximum-speed not found
Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
scanning bus dwc3@fcc00000 for devices... cannot reset port 1!?
1 USB Device(s) found
scanning bus dwc3@fd000000 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
 
Device 0: unknown device
clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22No ethernet found.
clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22missing environment variable: pxeuuid
clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000000
clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22No ethernet found.
clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000000
clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22No ethernet found.
clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000000
clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22No ethernet found.
clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000
clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22No ethernet found.
clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000
clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22No ethernet found.
clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000
clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22No ethernet found.
clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00
clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22No ethernet found.
clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0
clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22No ethernet found.
clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm-rockchip
clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22No ethernet found.
clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm
clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22No ethernet found.
clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default
clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22No ethernet found.
clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22Config file not found
clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22No ethernet found.
clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22No ethernet found.
clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22

 

I can help in any way if you want me to post the dts. I have not made any changes.  However, my main concern was just generally how to make sure the image can fit on a Sandisk Ultra.  It seems that dd on my macbook produces predictable image sizes however dd on my iMac produces images about 12MB larger.

Posted

@balbes150Thank you so much for your work on this. In that pine64 thread, is there a place to get the version 20230307? I missed where the images are available.  Sorry, I had to step away from my project for a couple months but just getting back to it. I will keep looking but thank you again.

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines