02-18-2021, 06:42 AM
Hi,
I have Problems with SD card flashing that I cannot explain. Basically I have run Raspis for years, am comfortable with command line (Developer), have written lots of images to SD cards and mostly things worked as expected. Up to my pinephone. Basically I download images and write them to a 16GB card with dd like such:
On this one 16GiB card that I have lying around I can successfully do this with Manjaro Posh/KDE Images, Mobian and Arch for Arm. All work as expected. Now I have a bunch of 32GiB cards I'd like to use. But writing to those cards with the same dd command will result in boot failure. The LED on the pinephone turns red and that is iit. I have tried zeroing out the cards before write, bought new ones. None of the 32GiB cards work. I tried using different SD card readers etc. Nothing works. Except the trusty old 16Gib Sandisk Card. The 32Gib Cards are SanDisk and Transcend cards. If I flash for example Manjaro KDE, I get sensible values (to me) when checking the card with sfdisk like:
The start sector of looks to be a bit far into the card, but it is the same as in the image:
Any help or pointer would be really appreciated as to what could be the reason for this. Next stop is getting a UART Adapter so I can see what the bootloader is doing I guess.
Best Regards,
anhilde
I have Problems with SD card flashing that I cannot explain. Basically I have run Raspis for years, am comfortable with command line (Developer), have written lots of images to SD cards and mostly things worked as expected. Up to my pinephone. Basically I download images and write them to a 16GB card with dd like such:
Code:
/mnt/cloud/images# dd bs=128K if=Manjaro-ARM-phosh-pinephone-beta5.img of=/dev/sdd conv=fsync status=progress
On this one 16GiB card that I have lying around I can successfully do this with Manjaro Posh/KDE Images, Mobian and Arch for Arm. All work as expected. Now I have a bunch of 32GiB cards I'd like to use. But writing to those cards with the same dd command will result in boot failure. The LED on the pinephone turns red and that is iit. I have tried zeroing out the cards before write, bought new ones. None of the 32GiB cards work. I tried using different SD card readers etc. Nothing works. Except the trusty old 16Gib Sandisk Card. The 32Gib Cards are SanDisk and Transcend cards. If I flash for example Manjaro KDE, I get sensible values (to me) when checking the card with sfdisk like:
Code:
sfdisk -uS -d /dev/sdf
label: dos
label-id: 0x198aa440
device: /dev/sdf
unit: sectors
/dev/sdf1 : start= 62500, size= 437501, type=c
/dev/sdf2 : start= 500001, size= 9617119, type=83
The start sector of looks to be a bit far into the card, but it is the same as in the image:
Code:
fdisk -l Manjaro-ARM-plasma-mobile-pinephone-beta2.img
Disk Manjaro-ARM-plasma-mobile-pinephone-beta2.img: 4.8 GiB, 5174722560 bytes, 10106880 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: dos
Disk identifier: 0xdc868f53
Device Boot Start End Sectors Size Id Type
Manjaro-ARM-plasma-mobile-pinephone-beta2.img1 62500 500000 437501 213.6M c W95 FAT32 (LBA)
Manjaro-ARM-plasma-mobile-pinephone-beta2.img2 500001 10106879 9606879 4.6G 83 Linux
Any help or pointer would be really appreciated as to what could be the reason for this. Next stop is getting a UART Adapter so I can see what the bootloader is doing I guess.
Best Regards,
anhilde