Boot code
#7
(03-19-2022, 05:14 AM)wibble Wrote: I've got the PinePhone not the Pro, and haven't looked into the uboot details, but if you post the file or a link to it I'll have a go. I last looked at uboot configs in detail back in the openmoko days, but it looks like the concepts haven't changed much.

Thanks. I inserted de SD card in my laptop and enter de fat partition and copied
The boot to my desktop. I will copy it here in my android smartphone and paste it here.

#
# /boot/boot.txt
# After modifying, run "ppp-uboot-mkscr" to re-generate the U-Boot boot script.
#

#
# This is the description of the GPIO lines used in this boot script:
#
# GPIO #105 is GPIO3_B1, or RK3399 ball C27, which controls the vibrator motor
# GPIO #154 is GPIO4_D2, or RK3399 ball AH3, which controls the red part of the multicolor LED
# GPIO #157 is GPIO4_D5, or RK3399 ball AJ3, which controls the green part of the multicolor LED
# GPIO #158 is GPIO4_D6, or RK3399 ball AG4, which controls the blue part of the multicolor LED
#

gpio set 105
gpio set 154

# Set root partition to the second partition of boot device
part uuid ${devtype} ${devnum}:1 uuid_boot
part uuid ${devtype} ${devnum}:2 uuid_root

setenv bootargs loglevel=4 console=tty0 console=${console} earlycon=uart8250,mmio32,0xff1a0000 consoleblank=0 boot=PARTUUID=${uuid_boot} root=PARTUUID=${uuid_root} rw rootwait quiet audit=0 bootsplash.bootfile=bootsplash-themes/manjaro/bootsplash

if load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} /Image; then
gpio clear 105
if load ${devtype} ${devnum}:${distro_bootpart} ${fdt_addr_r} /dtbs/${fdtfile}; then
if load ${devtype} ${devnum}:${distro_bootpart} ${ramdisk_addr_r} /initramfs-linux.img; then
gpio set 157
booti ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr_r};
else
gpio set 158
booti ${kernel_addr_r} - ${fdt_addr_r};
fi;
fi;
fi

# EOF

_-----
The gpios are clear. First you hear the sound of motor and inmedistely there's a red led and then
The sound of motor stops and the led become green. Of course if the "if" statements are ok. And
It is these if statements the I would like to understand. I Imagine that
Are variables containing values given by the ROM boot loader
  Reply


Messages In This Thread
Boot code - by Emilio - 03-14-2022, 11:07 AM
RE: Boot code - by wibble - 03-17-2022, 03:12 AM
RE: Boot code - by Emilio - 03-17-2022, 10:44 AM
RE: Boot code - by wibble - 03-17-2022, 11:45 AM
RE: Boot code - by Emilio - 03-18-2022, 10:51 AM
RE: Boot code - by wibble - 03-19-2022, 05:14 AM
RE: Boot code - by Emilio - 03-19-2022, 06:40 AM
RE: Boot code - by wibble - 03-20-2022, 07:40 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Installing r2kaw and Tow-Boot to the SPI ethical_haquer 10 314 12-19-2024, 05:22 PM
Last Post: dukla2000
  tow-boot installation problem techariah 4 2,307 12-04-2024, 10:32 AM
Last Post: zetabeta
  How can boot from MicroSD after replacement of the main board u-kidjp 6 515 11-08-2024, 09:14 PM
Last Post: Kevin Kofler
  July 1 upgrade of Mobian Bookworm boot loops. mburns 5 1,422 10-26-2024, 05:17 AM
Last Post: mburns
  tow-boot, just bought pinephone pro stratofall 4 848 07-30-2024, 03:43 PM
Last Post: stratofall
  Tow-Boot, a new U-Boot option for Pinephone Pro and other devices Ulfnic 60 57,925 02-13-2024, 02:54 PM
Last Post: fxc
Brick Recovery without Tow Boot b34ux 10 3,451 02-02-2024, 07:07 PM
Last Post: reky
  What to do if your PinePhone Pro does not boot fxc 19 25,094 09-10-2023, 03:19 AM
Last Post: fxc
  Pine Phone won't boot into recovery mode ninjapig26@gmail.com 3 2,676 02-18-2023, 06:14 PM
Last Post: fxc
  create tow boot .img fox95 6 4,373 10-21-2022, 11:40 AM
Last Post: fox95

Forum Jump:


Users browsing this thread: 3 Guest(s)