Pine64-Arch icon indicating copy to clipboard operation
Pine64-Arch copied to clipboard

[Feature Removal] Remove uboot from pinephone image

Open luigi311 opened this issue 2 years ago • 6 comments

  • Device: (PinePhone or PineTab?) Pinephone
  • Kernel Version : $(uname -r) N/A
  • UI: N/A

Perhaps we should follow the mobian route of removing the bootloader from the image all together so users can flash tow-boot to the emmc on the pinephone and not have it be overwritten every time they need to flash archlinux again. This will allow the users to keep towboot on the pinephone so we can chose to boot from the emmc or the sd card should other OS follow along.

luigi311 avatar May 17 '22 17:05 luigi311

We've been thinking of doing that, the issue now is that U-Boot PinePhone (OG) package also includes PineTab, so we need a PineTab build for Tow-Boot, which some people in the community are looking to do it.

So until then, U-Boot support will remains. But the good news is that you can remove it with a couple of dd commands.

On Tue, 17 May 2022 10:53:00 -0700 Luigi311 @.***> wrote:

  • Device: (PinePhone or PineTab?) Pinephone
  • Kernel Version : $(uname -r) N/A
  • UI: N/A

Perhaps we should follow the mobian route of removing the bootloader from the image all together so users can flash tow-boot to the emmc on the pinephone and not have it be overwritten every time they need to flash archlinux again. This will allow the users to keep towboot on the pinephone so we can chose to boot from the emmc or the sd card should other OS follow along.

-- Reply to this email directly or view it on GitHub: https://github.com/dreemurrs-embedded/Pine64-Arch/issues/391 You are receiving this because you are subscribed to this thread.

Message ID: @.***>

-- Danct12 @.***>

Danct12 avatar May 18 '22 02:05 Danct12

is there a dd command you can use on the img? Is it literally the same as if you are doing it to a disk?

sudo dd if=/dev/zero of=archlinux-pinephone-sxmo-20220502.img bs=8k seek=1 count=4

and then flashing that to the pinephone? That doesnt seem right as it seems like it would then copy over zeros to the pinephone wiping out tow-boot.

luigi311 avatar May 18 '22 20:05 luigi311

Danct12

i tried your dd commands but the phone doesn't boot from the sd card (the boot procces moove to the sd but nothing happens ezik

shulamy1 avatar Aug 10 '22 13:08 shulamy1

i read somewhere that u-boot has tow parts bootloader and firmware and i think we have to wipe only the bootloader and leave the firmware ezik

shulamy1 avatar Aug 22 '22 12:08 shulamy1

is it hard to make an image without boot loader for the pinephone and leave u-boot for pinetab?

ezik

shulamy1 avatar Sep 06 '22 07:09 shulamy1

ArenM did it but you ignore his PR ezik

shulamy1 avatar Jan 04 '23 13:01 shulamy1