Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RideSX build fails to flash successfully #730

Open
nrclark opened this issue Feb 3, 2025 · 3 comments
Open

RideSX build fails to flash successfully #730

nrclark opened this issue Feb 3, 2025 · 3 comments

Comments

@nrclark
Copy link

nrclark commented Feb 3, 2025

I'm trying to get a build up and running on my RideSX. I followed the instructions in the README, and was able to build core-image-minimal pretty easily (kas manifest used was meta-qcom/ci/sa8775p-ride-sx.yml). But when I go to flash it using qdl as per the README, I eventually get this failure:

command: tmp/deploy/images/sa8775p-ride-sx$ qdl --debug prog_firehose_ddr.elf rawprogram*.xml patch*.xml

Output:

... (omitted for length)...
FIREHOSE READ: <?xml version="1.0" encoding="UTF-8" ?>
<data>
<log value="INFO: Calling handler for configure" /></data>
LOG: INFO: Calling handler for configure
FIREHOSE READ: <?xml version="1.0" encoding="UTF-8" ?>
<data>
<log value="INFO: Storage type set to value UFS" /></data>
LOG: INFO: Storage type set to value UFS
FIREHOSE READ: <?xml version="1.0" encoding="UTF-8" ?>
<data>
<response value="ACK" MemoryName="UFS" MinVersionSupported="1" Version="1" MaxPayloadSizeToTargetInBytes="1048576" MaxPayloadSizeToTargetInBytesSupported="1048576" MaxXMLSizeInBytes="4096" DateTime="Oct 17 2024 - 02:00:19" /></data>
accepted max payload size: 1048576
FIREHOSE WRITE: <?xml version="1.0"?>
<data><program SECTOR_SIZE_IN_BYTES="4096" num_partition_sectors="6" physical_partition_number="0" start_sector="0" filename="gpt_empty0.bin"/></data>

FIREHOSE READ: <?xml version="1.0" encoding="UTF-8" ?>
<data>
<log value="INFO: Calling handler for program" /></data>
LOG: INFO: Calling handler for program
FIREHOSE READ: <?xml version="1.0" encoding="UTF-8" ?>
<data>
<response value="ACK" rawmode="true" /></data>
FIREHOSE READ: <?xml version="1.0" encoding="UTF-8" ?>
<data>
<response value="ACK" rawmode="false" /></data>
flashed "PrimaryGPT" successfully
unable to open zeros_33sectorS.bin...failing
user@hostname:~/work/bringup-ridesx/build/tmp/deploy/images/sa8775p-ride-sx$

In my image-deploy folder, I can see zeros_1sector.bin and zeros_5sectors.bin, but zeros_33sectors.bin doesn't seem to exist.

I manually created zeros_33sectorS.bin using this command dd if=/dev/zero of=zeros_33sectorS.bin bs=4096 count=33, since the other files of similar name (zeros_1sector.bin and zeros_5sectors.bin) were zeroed out. That got me a little bit farther, before I got to another failure:

command: tmp/deploy/images/sa8775p-ride-sx$ qdl --debug prog_firehose_ddr.elf rawprogram*.xml patch*.xml

... (omitted for length)...
FIREHOSE READ: <?xml version="1.0" encoding="UTF-8" ?>
<data>
<log value="INFO: Calling handler for program" /></data>
LOG: INFO: Calling handler for program
FIREHOSE READ: <?xml version="1.0" encoding="UTF-8" ?>
<data>
<response value="ACK" rawmode="true" /></data>
FIREHOSE READ: <?xml version="1.0" encoding="UTF-8" ?>
<data>
<response value="ACK" rawmode="false" /></data>
flashed "PrimaryGPT" successfully
FIREHOSE WRITE: <?xml version="1.0"?>
<data><program SECTOR_SIZE_IN_BYTES="4096" num_partition_sectors="5" physical_partition_number="0" start_sector="NUM_DISK_SECTORS-5." filename="zeros_5sectors.bin"/></data>

FIREHOSE READ: <?xml version="1.0" encoding="UTF-8" ?>
<data>
<log value="INFO: Calling handler for program" /></data>
LOG: INFO: Calling handler for program
FIREHOSE READ: <?xml version="1.0" encoding="UTF-8" ?>
<data>
<response value="ACK" rawmode="true" /></data>
FIREHOSE READ: <?xml version="1.0" encoding="UTF-8" ?>
<data>
<response value="ACK" rawmode="false" /></data>
flashed "BackupGPT" successfully
unable to open efi.bin...failing
user@hostname:~/work/bringup-ridesx/build/tmp/deploy/images/sa8775p-ride-sx$

Where do I find / how do I build efi.bin?

EDIT: From looking in partition.xml, I think these might also be missing: dtb.bin, keymint.mbn, rootfs.img, DISK

@nrclark nrclark changed the title RideSX build fails during QDL RideSX build fails to flash successfully Feb 3, 2025
@ricardosalveti
Copy link
Contributor

At the end of the build you should have a folder like 'core-image-base-sa8775p-ride-sx.rootfs-20250204024209.qcomflash' at tmp/deploy/images/sa8775p-ride-sx, which contains the expanded list of files with the correct names (e.g. dtb.bin, rootfs). You should be able to run qdl from this folder.

keymint.mbn is indeed missing, will check tomorrow based on downstream and validate on my hw, this is something that was pending on my list.

@nrclark
Copy link
Author

nrclark commented Feb 4, 2025

@ricardosalveti confirmed, my deploy/images/sa8775p-ride-sx/<image>.qcomflash/ does include most of those files. It's also missing keymint.mbn. Is that file something that I can build?

@ricardosalveti
Copy link
Contributor

@nrclark keymint.mbn is actually not required (leftover from old firmware). I created #732 and with that I'm able to flash and boot my ridesx.

With the required qualcomm account login (needed for the pdf and sail):

Then flash the content from qcomflash: qdl --storage ufs --debug prog_firehose_ddr.elf rawprogram*.xml patch*.xml

root@qcs9100-ride-sx:~# cat /etc/os-release
ID=poky
NAME="Poky (Yocto Project Reference Distro)"
VERSION="5.1 (styhead)"
VERSION_ID=5.1
VERSION_CODENAME="styhead"
PRETTY_NAME="Poky (Yocto Project Reference Distro) 5.1 (styhead)"
CPE_NAME="cpe:/o:openembedded:poky:5.1"
root@qcs9100-ride-sx:~# uname -a
Linux qcs9100-ride-sx 6.13.0-yoctodev-standard-00087-g94ef9b00225d #1 SMP PREEMPT Sat Feb  1 14:09:41 UTC 2025 aarch64 GNU/Linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants