RAW image output only 32MB and not working
#1
(First of all, I don't know the differents between PinePhone 1.0 or 1.1, but I choose 1.1)

I run the flash-it.sh script and typed 'raw' to write image to the folder containing flash-it.sh script. What I have now is;
u-boot-sunxi-with-spl-pinephone.bin 741KB
sdcard.img 32,7MB

But when I flash image to eMMC, nothing seems to happen. Did I do something wrong in the Terminal? Or do I have to use the Terminal inside the phone?
  Reply
#2
(05-29-2022, 03:02 AM)Kimberley van Buyten Wrote: (First of all, I don't know the differents between PinePhone 1.0 or 1.1, but I choose 1.1)

I run the flash-it.sh script and typed 'raw' to write image to the folder containing flash-it.sh script. What I have now is;
u-boot-sunxi-with-spl-pinephone.bin 741KB
sdcard.img 32,7MB

But when I flash image to eMMC, nothing seems to happen. Did I do something wrong in the Terminal? Or do I have to use the Terminal inside the phone?

Just image creation with flash-it script does not work at moment, it seems. Use the real sd card - that worked last time I tried.
My experience with Manjaro PlaMo: https://forum.pine64.org/showthread.php?tid=15300
  Reply
#3
adm1n@raspberrypi:~/Downloads $ sudo dd if=/dev/urandom of=/dev/mmcblk0 bs=8M
^C985+0 records in
985+0 records out
8262778880 bytes (8.3 GB, 7.7 GiB) copied, 610.237 s, 13.5 MB/s

adm1n@raspberrypi:~/Downloads $ ls
flash-it.sh  mmcblk0  sdb  u-boot-sunxi-with-spl-pinephone.bin
adm1n@raspberrypi:~/Downloads $ sudo su
root@raspberrypi:/home/adm1n/Downloads# bash flash-it.sh
Sailfish OS Pine64 device flasher V0.3.3
======================================

Which image do you want to flash?
1) PinePhone 1.0 (Development) device
2) PinePhone 1.1 (Brave Heart) or 1.2 (Community Editions) device
3) PineTab device
4) PineTab Dev device
5) Pinephone Pro
#? 2
Downloading images...
https://github.com/sailfish-on-dontbeevi...-pinephone
u-boot.zip                                                                                                              100%[=============================================================================================================================================================================================================================================================================================================================>]  3.56M  3.29MB/s    in 1.1s   
u-boot-sunxi-with-spl-pinephone.bin                                                                                    100%[=============================================================================================================================================================================================================================================================================================================================>] 740.57K  1.92MB/s    in 0.4s   
pinephone-1.1-rootfs.zip                                                                                                100%[=============================================================================================================================================================================================================================================================================================================================>] 399.95M  8.79MB/s    in 52s   
Which SD card do you want to flash?  Exclamation here I want to choose eMMC
NAME    MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda      8:0    1 59.2G  0 disk
├─sda1    8:1    1  256M  0 part /boot
└─sda2    8:2    1 58.9G  0 part /
sdb      8:16  1 28.9G  0 disk
├─sdb1    8:17  1  122M  0 part
└─sdb2    8:18  1 28.8G  0 part
sdc      8:32  1  7.3G  0 disk
└─sdc1    8:33  1  49M  0 part
mmcblk0 179:0    0 14.8G  0 disk
raw
Device node (/dev/sdX): mmcblk0
Flashing image to: mmcblk0
WARNING: All data will be erased! You have been warned!
Some commands require root permissions, you might be asked to enter your sudo password.
Creating EXT4 file system...
Unmounting mmcblk0
umount: mmcblk0: not mounted.  Exclamation
32+0 records in
32+0 records out
33554432 bytes (34 MB, 32 MiB) copied, 2.10747 s, 15.9 MB/s
Error: The location 256MB is outside of the device /home/adm1n/Downloads/mmcblk0. 
Error: The location 256MB is outside of the device /home/adm1n/Downloads/mmcblk0.
Error: The location 6250MB is outside of the device /home/adm1n/Downloads/mmcblk0.
mke2fs 1.46.2 (28-Feb-2021)
The file mmcblk0p1 does not exist and no size was specified.  Exclamation
mke2fs 1.46.2 (28-Feb-2021)
The file mmcblk0p2 does not exist and no size was specified.
mke2fs 1.46.2 (28-Feb-2021)
The file mmcblk0p3 does not exist and no size was specified.
Flashing U-boot...
Archive:  u-boot.zip
  inflating: u-boot-bootloader/pinephone-1.1/boot.scr 
  inflating: u-boot-bootloader/devkit/boot.scr 
  inflating: u-boot-bootloader/pinephone-pro/boot.scr 
  inflating: u-boot-bootloader/u-boot/bl31_0x00040000.bin 
  inflating: u-boot-bootloader/u-boot/u-boot.img 
  inflating: u-boot-bootloader/u-boot/u-boot-dtb.img 
  inflating: u-boot-bootloader/u-boot/spl/u-boot-spl.bin 
  inflating: u-boot-bootloader/u-boot/spl/sunxi-spl.bin 
  inflating: u-boot-bootloader/u-boot/spl/u-boot-spl-nodtb.bin 
  inflating: u-boot-bootloader/u-boot/spl/u-boot-spl-dtb.bin 
  inflating: u-boot-bootloader/u-boot/u-boot-dtb.bin 
  inflating: u-boot-bootloader/u-boot/u-boot.bin 
  inflating: u-boot-bootloader/u-boot/u-boot.itb 
  inflating: u-boot-bootloader/u-boot/tools/binman/test/descriptor.bin 
  inflating: u-boot-bootloader/u-boot/u-boot-sunxi-with-spl.fit.itb 
  inflating: u-boot-bootloader/u-boot/u-boot-sunxi-with-spl.bin 
  inflating: u-boot-bootloader/u-boot/u-boot-rockchip.bin 
  inflating: u-boot-bootloader/u-boot/bl31_0xff3b0000.bin 
  inflating: u-boot-bootloader/u-boot/idbloader.img 
  inflating: u-boot-bootloader/u-boot/tpl/u-boot-tpl-nodtb.bin 
  inflating: u-boot-bootloader/u-boot/tpl/u-boot-tpl-dtb.bin 
  inflating: u-boot-bootloader/u-boot/tpl/u-boot-tpl.bin 
  inflating: u-boot-bootloader/u-boot/tpl/u-boot-tpl-rockchip.bin 
  inflating: u-boot-bootloader/u-boot/bl31_0xff8c0000.bin 
  inflating: u-boot-bootloader/u-boot/u-boot-nodtb.bin 
  inflating: u-boot-bootloader/pinephone-1.0/boot.scr 
  inflating: u-boot-bootloader/arm-trusted-firmware/build/sun50i_a64/release/bl31.bin 
  inflating: u-boot-bootloader/arm-trusted-firmware/build/rk3399/release/m0/rk3399m0.bin 
  inflating: u-boot-bootloader/arm-trusted-firmware/build/rk3399/release/m0/rk3399m0pmu.bin 
extracting: u-boot-bootloader/arm-trusted-firmware/plat/arm/board/common/protpk/arm_protpk_rsa_sha256.bin 
extracting: u-boot-bootloader/arm-trusted-firmware/plat/arm/board/common/rotpk/arm_rotpk_ecdsa_sha256.bin 
extracting: u-boot-bootloader/arm-trusted-firmware/plat/arm/board/common/rotpk/arm_rotpk_rsa_sha256.bin 
  inflating: u-boot-bootloader/arm-trusted-firmware/plat/rockchip/rk3368/drivers/ddr/rk3368_ddr_reg_resume_V1.05.bin 
  inflating: u-boot-bootloader/arm-trusted-firmware/plat/rockchip/rk3399/drivers/dp/hdcp.bin 
  inflating: u-boot-bootloader/pinetab/boot.scr 
92+1 records in
92+1 records out
758339 bytes (758 kB, 741 KiB) copied, 0.0569735 s, 13.3 MB/s
Flashing rootFS...
Archive:  pinephone-1.1-rootfs.zip
  inflating: pinephone-1.1/sfe-pinephone-1.1-4.3.0.12-devel-20220501/Jolla-4.3.0.12-pinephone-1.1-aarch64.ks 
  inflating: pinephone-1.1/sfe-pinephone-1.1-4.3.0.12-devel-20220501/Jolla-4.3.0.12-pinephone-1.1-aarch64.packages 
  inflating: pinephone-1.1/sfe-pinephone-1.1-4.3.0.12-devel-20220501/Jolla-4.3.0.12-pinephone-1.1-aarch64.urls 
  inflating: pinephone-1.1/sfe-pinephone-1.1-4.3.0.12-devel-20220501/sfe-pinephone-1.1-4.3.0.12-devel-20220501.tar.bz2 
pinephone-1.1/sfe-pinephone-1.1-4.3.0.12-devel-20220501/sfe-pinephone-1.1-4.3.0.12-devel-20220501.tar.bz2
mount: /home/adm1n/Downloads/root: special device mmcblk0p2 does not exist.  Exclamation
Copying kernel to boot partition...
mount: /home/adm1n/Downloads/boot: special device mmcblk0p1 does not exist.
Boot partition mount: ./boot
allwinner Image sun50i-a64-pinephone-1.0.dtb sun50i-a64-pinephone-1.1.dtb sun50i-a64-pinephone-1.2.dtb sun50i-a64-pinetab-dev.dtb sun50i-a64-pinetab.dtb
Are you installing to an SD card? y
Clear root password? y
Cleaning up!
Unmounting mmcblk0
umount: mmcblk0: not mounted.  Exclamation
Flashing mmcblk0 OK!
You may now remove the SD card and insert it in your Pine64 device!
root@raspberrypi:/home/adm1n/Downloads# exit
exit
  Reply
#4
So you had a PinePhone with jumpdrive running and connected with a usb cable to the computer.
Then I guess:
/dev/sda - your computer disk
/dev/sdb - emmc of PinePhone
/dev/sdc - jumpdrive sd in Pinephone
So to flash the resulting SailfishOS image to the PinePhone emmc memory you have to choose /dev/sdb as a target Wink
My experience with Manjaro PlaMo: https://forum.pine64.org/showthread.php?tid=15300
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Script not working Andidoko 4 2,252 04-09-2023, 12:03 PM
Last Post: moodroid
  flash-it.sh script currently unable to create a SailfishOS image acrux 3 4,134 07-23-2021, 01:06 AM
Last Post: OhneZ
  February image, upgrade to SFOS4 defactofactotum 8 8,879 02-24-2021, 09:45 AM
Last Post: defactofactotum
  January image defactofactotum 8 10,761 01-08-2021, 10:27 PM
Last Post: DrPhibes
  December image defactofactotum 3 5,622 12-16-2020, 05:35 AM
Last Post: defactofactotum
  Fresh image, SIM card working RodneyMyers 22 25,202 09-23-2020, 08:53 AM
Last Post: sfb

Forum Jump:


Users browsing this thread: 1 Guest(s)