dreemurrs-embedded / Jumpdrive

Flash/Rescue SD Card image for PinePhone and PineTab. This is NOT a bootloader
GNU General Public License v2.0
478 stars 57 forks source link

Can't boot into Jumpdrive on PinePhone #56

Open dave-kennedy opened 2 years ago

dave-kennedy commented 2 years ago

I'm not sure what I'm doing wrong here:

$ lsblk
sda           8:0    0 223.6G  0 disk 
├─sda1        8:1    0    16M  0 part 
├─sda2        8:2    0   223G  0 part 
└─sda3        8:3    0   517M  0 part 
sdd           8:48   1   1.9G  0 disk 
nvme0n1     259:0    0 238.5G  0 disk 
├─nvme0n1p1 259:1    0   487M  0 part /boot/efi
└─nvme0n1p2 259:2    0   238G  0 part /

$ ls -l pine64-pinephone.img.xz 
-rw-rw-r-- 1 dave dave 5541868 Aug 12 18:10 pine64-pinephone.img.xz

$ sudo dd if=pine64-pinephone.img.xz of=/dev/sdd bs=1M status=progress conv=fsync
5+1 records in
5+1 records out
5541868 bytes (5.5 MB, 5.3 MiB) copied, 3.39768 s, 1.6 MB/s

When I put the card in the phone and turn it on, it boots to Plasma Mobile desktop. I've tried two different SD cards. Am I missing something?

dave-kennedy commented 2 years ago

Okay, maybe it's obvious, but I didn't realize I needed to unxz the file:

$ unxz -c pine64-pinephone.img.xz > pine64-pinephone.img

$ ls -l pine64-pinephone.img
-rw-rw-r-- 1 dave dave 41M Aug 12 20:30 pine64-pinephone.img

$ sudo dd if=pine64-pinephone.img of=/dev/sdd bs=1M status=progress conv=fsync   
41+0 records in
41+0 records out
42991616 bytes (43 MB, 41 MiB) copied, 17.7171 s, 2.4 MB/s

Same result, unfortunately, when booting the phone.

dave-kennedy commented 2 years ago

I got it to boot, finally. This time I made sure to eject /dev/sdd before removing the drive. It might help others if the readme mentioned any of this.

warrenc5 commented 2 years ago

xzcat pine64-pinephone-charging.img.xz | dd of=/dev/sdf bs=1M status=progress conv=fsync