Hello,
In our last meeting on May 17 it was mentioned that there was work being done on the Lantronix device tree and it was booting in 6.4(? I think that was the version) kernel.
How's work on porting to 5.15 going? Is there a way to get the 6.4 kernel and the device tree to test out the booting locally for us?
Patrick Whewell Software Engineer He/him patrick.whewell@sightlineapplications.commailto:patrick.whewell@sightlineapplications.com www.sightlineapplications.comhttp://www.sightlineapplications.com/
5711 S Hood Ave., Suite 100 Portland, OR 97239
[cid:image001.png@01D98EF0.EEFCA410]http://sightlineapplications.com/
Hi Patrick,
I'm working on a device tree for Open-Q 865 that is based on the current arch/arm64/boot/dts/qcom/qrb5165-rb5.dts upstream in 6.4-rc1. I should have a basic bootable device tree ready for you to test by our next meeting on May 31. I'll also rebase a version on 5.15 so you can try that as well (qrb5165-rb5 device tree works on 5.15 so I don't anticipate any issues for the open-q 865).
William Breathitt Gray
On Thu, 25 May 2023 at 13:17, Patrick Whewell < patrick.whewell@sightlineapplications.com> wrote:
Hello,
In our last meeting on May 17 it was mentioned that there was work being done on the Lantronix device tree and it was booting in 6.4(? I think that was the version) kernel.
How’s work on porting to 5.15 going? Is there a way to get the 6.4 kernel and the device tree to test out the booting locally for us?
*Patrick Whewell*
*Software Engineer*
He/him
*patrick.whewell@sightlineapplications.com patrick.whewell@sightlineapplications.com*
www.sightlineapplications.com
*5711 S Hood Ave., Suite 100*
*Portland, OR 97239*
http://sightlineapplications.com/
Sightlineapplications mailing list -- sightlineapplications@lists.linaro.org To unsubscribe send an email to sightlineapplications-leave@lists.linaro.org
Hi Patrick,
Here's an an initial commit for the Lantronix Open-Q 865 devkit that gets it booting up to a console (albeit with a very spare DTS): https://git.codelinaro.org/william_gray/openq-865/-/commit/42f82bde586fd1c33...
The main files of interest are *openq5165rb.dtsi *which serves as an include for the the QRB5165RB SOM, while the *qrb5165-lantronix-openq865.dts* is the main DTS for the board. I based this around the definitions for the qrb5165-rb5 which is mostly compatible; I'll be making adjustments throughout to fit the openq865 more aptly (e.g. defining a pm8250 based on the existing pm8150 nodes).
You can follow my v5.15 development here: https://git.codelinaro.org/william_gray/openq-865/-/tree/openq865-v5.15
William Breathitt Gray
On Thu, 25 May 2023 at 13:27, William Gray william.gray@linaro.org wrote:
Hi Patrick,
I'm working on a device tree for Open-Q 865 that is based on the current arch/arm64/boot/dts/qcom/qrb5165-rb5.dts upstream in 6.4-rc1. I should have a basic bootable device tree ready for you to test by our next meeting on May 31. I'll also rebase a version on 5.15 so you can try that as well (qrb5165-rb5 device tree works on 5.15 so I don't anticipate any issues for the open-q 865).
William Breathitt Gray
On Thu, 25 May 2023 at 13:17, Patrick Whewell < patrick.whewell@sightlineapplications.com> wrote:
Hello,
In our last meeting on May 17 it was mentioned that there was work being done on the Lantronix device tree and it was booting in 6.4(? I think that was the version) kernel.
How’s work on porting to 5.15 going? Is there a way to get the 6.4 kernel and the device tree to test out the booting locally for us?
*Patrick Whewell*
*Software Engineer*
He/him
*patrick.whewell@sightlineapplications.com patrick.whewell@sightlineapplications.com*
www.sightlineapplications.com
*5711 S Hood Ave., Suite 100*
*Portland, OR 97239*
http://sightlineapplications.com/
Sightlineapplications mailing list -- sightlineapplications@lists.linaro.org To unsubscribe send an email to sightlineapplications-leave@lists.linaro.org
Vinod wrote a great blog post detailing how to boot the mainline kernel on Qualcomm devices: https://www.linaro.org/blog/let-s-boot-the-mainline-linux-kernel-on-qualcomm...
Here's a summary of the commands I execute on my ARM64 Linux dev PC to boot the Open-Q 865 with the new device tree:
# make defconfig # make Image.gz dtbs modules # make modules_install INSTALL_MOD_PATH=./modules_dir INSTALL_MOD_STRIP=1 # cat initramfs-test-image-qemuarm64-20230321073831-1379.rootfs.cpio.gz modules.cpio.gz > final-initramfs.cpio.gz # cat arch/arm64/boot/Image.gz arch/arm64/boot/dts/qcom/qrb5165-lantronix-openq865.dtb > Image.gz+dtb # CMDLINE="ignore_loglevel earlycon" # git clone https://git.codelinaro.org/clo/qsdk/oss/tools/skales --depth=1 # python2 ./skales/mkbootimg --kernel Image.gz+dtb --cmdline ${CMDLINE} --ramdisk final-initramfs.cpio.gz --base 0x80000000 --pagesize 4096 --output boot.img # fastboot boot boot.img
If you encounter any problems just let me know and I can help you out.
William Breathitt Gray
On Wed, 31 May 2023 at 10:32, William Gray william.gray@linaro.org wrote:
Hi Patrick,
Here's an an initial commit for the Lantronix Open-Q 865 devkit that gets it booting up to a console (albeit with a very spare DTS): https://git.codelinaro.org/william_gray/openq-865/-/commit/42f82bde586fd1c33...
The main files of interest are *openq5165rb.dtsi *which serves as an include for the the QRB5165RB SOM, while the *qrb5165-lantronix-openq865.dts* is the main DTS for the board. I based this around the definitions for the qrb5165-rb5 which is mostly compatible; I'll be making adjustments throughout to fit the openq865 more aptly (e.g. defining a pm8250 based on the existing pm8150 nodes).
You can follow my v5.15 development here: https://git.codelinaro.org/william_gray/openq-865/-/tree/openq865-v5.15
William Breathitt Gray
On Thu, 25 May 2023 at 13:27, William Gray william.gray@linaro.org wrote:
Hi Patrick,
I'm working on a device tree for Open-Q 865 that is based on the current arch/arm64/boot/dts/qcom/qrb5165-rb5.dts upstream in 6.4-rc1. I should have a basic bootable device tree ready for you to test by our next meeting on May 31. I'll also rebase a version on 5.15 so you can try that as well (qrb5165-rb5 device tree works on 5.15 so I don't anticipate any issues for the open-q 865).
William Breathitt Gray
On Thu, 25 May 2023 at 13:17, Patrick Whewell < patrick.whewell@sightlineapplications.com> wrote:
Hello,
In our last meeting on May 17 it was mentioned that there was work being done on the Lantronix device tree and it was booting in 6.4(? I think that was the version) kernel.
How’s work on porting to 5.15 going? Is there a way to get the 6.4 kernel and the device tree to test out the booting locally for us?
*Patrick Whewell*
*Software Engineer*
He/him
*patrick.whewell@sightlineapplications.com patrick.whewell@sightlineapplications.com*
www.sightlineapplications.com
*5711 S Hood Ave., Suite 100*
*Portland, OR 97239*
http://sightlineapplications.com/
Sightlineapplications mailing list -- sightlineapplications@lists.linaro.org To unsubscribe send an email to sightlineapplications-leave@lists.linaro.org
Hey William,
In terms of testing this. What filesystem image were you using? Did you start from a Linaro based complete build like the existing yocto build environment on the 96boards for the RB5? Or did you start with the latest Lantronix BSP release and then just build this kernel and then flash the boot.img to that?
I just want to make sure that we are starting from the same place.
Patrick Whewell | Software Engineer | SightLine Applications, Inc | Onboard Video Processing
From: William Gray william.gray@linaro.org Sent: Wednesday, May 31, 2023 8:32 AM To: Patrick Whewell patrick.whewell@sightlineapplications.com Cc: sightlineapplications@lists.linaro.org Subject: [Sightlineapplications] Re: RB5 platform
Vinod wrote a great blog post detailing how to boot the mainline kernel on Qualcomm devices: https://www.linaro.org/blog/let-s-boot-the-mainline-linux-kernel-on-qualcomm...
Here's a summary of the commands I execute on my ARM64 Linux dev PC to boot the Open-Q 865 with the new device tree:
# make defconfig # make Image.gz dtbs modules # make modules_install INSTALL_MOD_PATH=./modules_dir INSTALL_MOD_STRIP=1 # cat initramfs-test-image-qemuarm64-20230321073831-1379.rootfs.cpio.gz modules.cpio.gz > final-initramfs.cpio.gz # cat arch/arm64/boot/Image.gz arch/arm64/boot/dts/qcom/qrb5165-lantronix-openq865.dtb > Image.gz+dtb # CMDLINE="ignore_loglevel earlycon" # git clone https://git.codelinaro.org/clo/qsdk/oss/tools/skales --depth=1 # python2 ./skales/mkbootimg --kernel Image.gz+dtb --cmdline ${CMDLINE} --ramdisk final-initramfs.cpio.gz --base 0x80000000 --pagesize 4096 --output boot.img # fastboot boot boot.img
If you encounter any problems just let me know and I can help you out.
William Breathitt Gray
On Wed, 31 May 2023 at 10:32, William Gray <william.gray@linaro.orgmailto:william.gray@linaro.org> wrote: Hi Patrick,
Here's an an initial commit for the Lantronix Open-Q 865 devkit that gets it booting up to a console (albeit with a very spare DTS): https://git.codelinaro.org/william_gray/openq-865/-/commit/42f82bde586fd1c33...
The main files of interest are openq5165rb.dtsi which serves as an include for the the QRB5165RB SOM, while the qrb5165-lantronix-openq865.dts is the main DTS for the board. I based this around the definitions for the qrb5165-rb5 which is mostly compatible; I'll be making adjustments throughout to fit the openq865 more aptly (e.g. defining a pm8250 based on the existing pm8150 nodes).
You can follow my v5.15 development here: https://git.codelinaro.org/william_gray/openq-865/-/tree/openq865-v5.15
William Breathitt Gray
On Thu, 25 May 2023 at 13:27, William Gray <william.gray@linaro.orgmailto:william.gray@linaro.org> wrote: Hi Patrick,
I'm working on a device tree for Open-Q 865 that is based on the current arch/arm64/boot/dts/qcom/qrb5165-rb5.dts upstream in 6.4-rc1. I should have a basic bootable device tree ready for you to test by our next meeting on May 31. I'll also rebase a version on 5.15 so you can try that as well (qrb5165-rb5 device tree works on 5.15 so I don't anticipate any issues for the open-q 865).
William Breathitt Gray
On Thu, 25 May 2023 at 13:17, Patrick Whewell <patrick.whewell@sightlineapplications.commailto:patrick.whewell@sightlineapplications.com> wrote: Hello,
In our last meeting on May 17 it was mentioned that there was work being done on the Lantronix device tree and it was booting in 6.4(? I think that was the version) kernel.
How’s work on porting to 5.15 going? Is there a way to get the 6.4 kernel and the device tree to test out the booting locally for us?
Patrick Whewell Software Engineer He/him patrick.whewell@sightlineapplications.commailto:patrick.whewell@sightlineapplications.com www.sightlineapplications.comhttp://www.sightlineapplications.com/
5711 S Hood Ave., Suite 100 Portland, OR 97239
[cid:image001.png@01D993C8.6E4D4400]http://sightlineapplications.com/
_______________________________________________ Sightlineapplications mailing list -- sightlineapplications@lists.linaro.orgmailto:sightlineapplications@lists.linaro.org To unsubscribe send an email to sightlineapplications-leave@lists.linaro.orgmailto:sightlineapplications-leave@lists.linaro.org
Hi Patrick,
I just used the latest Lantronix BSP release preinstalled on the board as the filesystem base. The initramfs cpio test image came from Linaro here: https://snapshots.linaro.org/member-builds/qcomlt/testimages/arm64/1379/init...
I hope that helps answer your questions.
William Breathitt Gray
On Wed, 31 May 2023 at 17:01, Patrick Whewell < patrick.whewell@sightlineapplications.com> wrote:
Hey William,
In terms of testing this. What filesystem image were you using? Did you start from a Linaro based complete build like the existing yocto build environment on the 96boards for the RB5? Or did you start with the latest Lantronix BSP release and then just build this kernel and then flash the boot.img to that?
I just want to make sure that we are starting from the same place.
*Patrick Whewell | **Software Engineer **| **SightLine Applications, Inc **| **Onboard Video Processing*
*From:* William Gray william.gray@linaro.org *Sent:* Wednesday, May 31, 2023 8:32 AM *To:* Patrick Whewell patrick.whewell@sightlineapplications.com *Cc:* sightlineapplications@lists.linaro.org *Subject:* [Sightlineapplications] Re: RB5 platform
Vinod wrote a great blog post detailing how to boot the mainline kernel on Qualcomm devices: https://www.linaro.org/blog/let-s-boot-the-mainline-linux-kernel-on-qualcomm...
Here's a summary of the commands I execute on my ARM64 Linux dev PC to boot the Open-Q 865 with the new device tree:
# make defconfig # make Image.gz dtbs modules # make modules_install INSTALL_MOD_PATH=./modules_dir
INSTALL_MOD_STRIP=1
# cat
initramfs-test-image-qemuarm64-20230321073831-1379.rootfs.cpio.gz modules.cpio.gz > final-initramfs.cpio.gz # cat arch/arm64/boot/Image.gz arch/arm64/boot/dts/qcom/qrb5165-lantronix-openq865.dtb > Image.gz+dtb
# CMDLINE="ignore_loglevel earlycon" # git clone https://git.codelinaro.org/clo/qsdk/oss/tools/skales
--depth=1
# python2 ./skales/mkbootimg --kernel Image.gz+dtb --cmdline
${CMDLINE} --ramdisk final-initramfs.cpio.gz --base 0x80000000 --pagesize 4096 --output boot.img
# fastboot boot boot.img
If you encounter any problems just let me know and I can help you out.
William Breathitt Gray
On Wed, 31 May 2023 at 10:32, William Gray william.gray@linaro.org wrote:
Hi Patrick,
Here's an an initial commit for the Lantronix Open-Q 865 devkit that gets it booting up to a console (albeit with a very spare DTS): https://git.codelinaro.org/william_gray/openq-865/-/commit/42f82bde586fd1c33...
The main files of interest are *openq5165rb.dtsi *which serves as an include for the the QRB5165RB SOM, while the *qrb5165-lantronix-openq865.dts* is the main DTS for the board. I based this around the definitions for the qrb5165-rb5 which is mostly compatible; I'll be making adjustments throughout to fit the openq865 more aptly (e.g. defining a pm8250 based on the existing pm8150 nodes).
You can follow my v5.15 development here: https://git.codelinaro.org/william_gray/openq-865/-/tree/openq865-v5.15
William Breathitt Gray
On Thu, 25 May 2023 at 13:27, William Gray william.gray@linaro.org wrote:
Hi Patrick,
I'm working on a device tree for Open-Q 865 that is based on the current arch/arm64/boot/dts/qcom/qrb5165-rb5.dts upstream in 6.4-rc1. I should have a basic bootable device tree ready for you to test by our next meeting on May 31. I'll also rebase a version on 5.15 so you can try that as well (qrb5165-rb5 device tree works on 5.15 so I don't anticipate any issues for the open-q 865).
William Breathitt Gray
On Thu, 25 May 2023 at 13:17, Patrick Whewell < patrick.whewell@sightlineapplications.com> wrote:
Hello,
In our last meeting on May 17 it was mentioned that there was work being done on the Lantronix device tree and it was booting in 6.4(? I think that was the version) kernel.
How’s work on porting to 5.15 going? Is there a way to get the 6.4 kernel and the device tree to test out the booting locally for us?
*Patrick Whewell*
*Software Engineer*
He/him
*patrick.whewell@sightlineapplications.com patrick.whewell@sightlineapplications.com*
www.sightlineapplications.com
*5711 S Hood Ave., Suite 100*
*Portland, OR 97239*
http://sightlineapplications.com/
Sightlineapplications mailing list -- sightlineapplications@lists.linaro.org To unsubscribe send an email to sightlineapplications-leave@lists.linaro.org
Hi William,
I tested the 5.15 branch that you sent over. I was able to boot to command line like expected. Below is the output from the 3 locations for versions that I know of.
root@qemuarm64:~# uname -a Linux qemuarm64 5.15.54-00001-g42f82bde586f #2 SMP PREEMPT Thu Jun 1 14:11:30 PDT 2023 aarch64 GNU/Linux root@qemuarm64:~# cat /etc/version 20180309123456 root@qemuarm64:~# cat /proc/version Linux version 5.15.54-00001-g42f82bde586f (slroot@PDXPWHEWELL) (aarch64-linux-gnu-gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #2 SMP PREEMPT Thu Jun 1 14:11:30 PDT 2023
It looks like this is the location for the 6.4 kernel https://git.codelinaro.org/william_gray/openq-865/-/tree/openq865
I will attempt to build/boot using this next and send you an email with the results.
Patrick Whewell | Software Engineer | SightLine Applications, Inc | Onboard Video Processing
From: William Gray william.gray@linaro.org Sent: Thursday, June 1, 2023 6:29 AM To: Patrick Whewell patrick.whewell@sightlineapplications.com Cc: sightlineapplications@lists.linaro.org Subject: Re: [Sightlineapplications] Re: RB5 platform
Hi Patrick,
I just used the latest Lantronix BSP release preinstalled on the board as the filesystem base. The initramfs cpio test image came from Linaro here: https://snapshots.linaro.org/member-builds/qcomlt/testimages/arm64/1379/init...
I hope that helps answer your questions.
William Breathitt Gray
On Wed, 31 May 2023 at 17:01, Patrick Whewell <patrick.whewell@sightlineapplications.commailto:patrick.whewell@sightlineapplications.com> wrote: Hey William,
In terms of testing this. What filesystem image were you using? Did you start from a Linaro based complete build like the existing yocto build environment on the 96boards for the RB5? Or did you start with the latest Lantronix BSP release and then just build this kernel and then flash the boot.img to that?
I just want to make sure that we are starting from the same place.
Patrick Whewell | Software Engineer | SightLine Applications, Inc | Onboard Video Processing
From: William Gray <william.gray@linaro.orgmailto:william.gray@linaro.org> Sent: Wednesday, May 31, 2023 8:32 AM To: Patrick Whewell <patrick.whewell@sightlineapplications.commailto:patrick.whewell@sightlineapplications.com> Cc: sightlineapplications@lists.linaro.orgmailto:sightlineapplications@lists.linaro.org Subject: [Sightlineapplications] Re: RB5 platform
Vinod wrote a great blog post detailing how to boot the mainline kernel on Qualcomm devices: https://www.linaro.org/blog/let-s-boot-the-mainline-linux-kernel-on-qualcomm...
Here's a summary of the commands I execute on my ARM64 Linux dev PC to boot the Open-Q 865 with the new device tree:
# make defconfig # make Image.gz dtbs modules # make modules_install INSTALL_MOD_PATH=./modules_dir INSTALL_MOD_STRIP=1 # cat initramfs-test-image-qemuarm64-20230321073831-1379.rootfs.cpio.gz modules.cpio.gz > final-initramfs.cpio.gz # cat arch/arm64/boot/Image.gz arch/arm64/boot/dts/qcom/qrb5165-lantronix-openq865.dtb > Image.gz+dtb # CMDLINE="ignore_loglevel earlycon" # git clone https://git.codelinaro.org/clo/qsdk/oss/tools/skales --depth=1 # python2 ./skales/mkbootimg --kernel Image.gz+dtb --cmdline ${CMDLINE} --ramdisk final-initramfs.cpio.gz --base 0x80000000 --pagesize 4096 --output boot.img # fastboot boot boot.img
If you encounter any problems just let me know and I can help you out.
William Breathitt Gray
On Wed, 31 May 2023 at 10:32, William Gray <william.gray@linaro.orgmailto:william.gray@linaro.org> wrote: Hi Patrick,
Here's an an initial commit for the Lantronix Open-Q 865 devkit that gets it booting up to a console (albeit with a very spare DTS): https://git.codelinaro.org/william_gray/openq-865/-/commit/42f82bde586fd1c33...
The main files of interest are openq5165rb.dtsi which serves as an include for the the QRB5165RB SOM, while the qrb5165-lantronix-openq865.dts is the main DTS for the board. I based this around the definitions for the qrb5165-rb5 which is mostly compatible; I'll be making adjustments throughout to fit the openq865 more aptly (e.g. defining a pm8250 based on the existing pm8150 nodes).
You can follow my v5.15 development here: https://git.codelinaro.org/william_gray/openq-865/-/tree/openq865-v5.15
William Breathitt Gray
On Thu, 25 May 2023 at 13:27, William Gray <william.gray@linaro.orgmailto:william.gray@linaro.org> wrote: Hi Patrick,
I'm working on a device tree for Open-Q 865 that is based on the current arch/arm64/boot/dts/qcom/qrb5165-rb5.dts upstream in 6.4-rc1. I should have a basic bootable device tree ready for you to test by our next meeting on May 31. I'll also rebase a version on 5.15 so you can try that as well (qrb5165-rb5 device tree works on 5.15 so I don't anticipate any issues for the open-q 865).
William Breathitt Gray
On Thu, 25 May 2023 at 13:17, Patrick Whewell <patrick.whewell@sightlineapplications.commailto:patrick.whewell@sightlineapplications.com> wrote: Hello,
In our last meeting on May 17 it was mentioned that there was work being done on the Lantronix device tree and it was booting in 6.4(? I think that was the version) kernel.
How’s work on porting to 5.15 going? Is there a way to get the 6.4 kernel and the device tree to test out the booting locally for us?
Patrick Whewell Software Engineer He/him patrick.whewell@sightlineapplications.commailto:patrick.whewell@sightlineapplications.com www.sightlineapplications.comhttp://www.sightlineapplications.com/
5711 S Hood Ave., Suite 100 Portland, OR 97239
[cid:image001.png@01D99495.5FA3F980]http://sightlineapplications.com/
_______________________________________________ Sightlineapplications mailing list -- sightlineapplications@lists.linaro.orgmailto:sightlineapplications@lists.linaro.org To unsubscribe send an email to sightlineapplications-leave@lists.linaro.orgmailto:sightlineapplications-leave@lists.linaro.org
Hi William,
Also had success booting to command line with the 6.4 kernel
root@qemuarm64:~# uname -a Linux qemuarm64 6.4.0-rc1-g27a76e68f50b #3 SMP PREEMPT Thu Jun 1 15:03:19 PDT 2023 aarch64 GNU/Linux root@qemuarm64:~# cat /etc/version 20180309123456 root@qemuarm64:~# cat /proc/version Linux version 6.4.0-rc1-g27a76e68f50b (slroot@PDXPWHEWELL) (aarch64-linux-gnu-gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #3 SMP PREEMPT Thu Jun 1 15:03:19 PDT 2023
Patrick Whewell | Software Engineer | SightLine Applications, Inc | Onboard Video Processing
From: Patrick Whewell Sent: Thursday, June 1, 2023 2:30 PM To: William Gray william.gray@linaro.org Cc: sightlineapplications@lists.linaro.org Subject: RE: [Sightlineapplications] Re: RB5 platform
Hi William,
I tested the 5.15 branch that you sent over. I was able to boot to command line like expected. Below is the output from the 3 locations for versions that I know of.
root@qemuarm64:~# uname -a Linux qemuarm64 5.15.54-00001-g42f82bde586f #2 SMP PREEMPT Thu Jun 1 14:11:30 PDT 2023 aarch64 GNU/Linux root@qemuarm64:~# cat /etc/version 20180309123456 root@qemuarm64:~# cat /proc/version Linux version 5.15.54-00001-g42f82bde586f (slroot@PDXPWHEWELL) (aarch64-linux-gnu-gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #2 SMP PREEMPT Thu Jun 1 14:11:30 PDT 2023
It looks like this is the location for the 6.4 kernel https://git.codelinaro.org/william_gray/openq-865/-/tree/openq865
I will attempt to build/boot using this next and send you an email with the results.
Patrick Whewell | Software Engineer | SightLine Applications, Inc | Onboard Video Processing
From: William Gray <william.gray@linaro.orgmailto:william.gray@linaro.org> Sent: Thursday, June 1, 2023 6:29 AM To: Patrick Whewell <patrick.whewell@sightlineapplications.commailto:patrick.whewell@sightlineapplications.com> Cc: sightlineapplications@lists.linaro.orgmailto:sightlineapplications@lists.linaro.org Subject: Re: [Sightlineapplications] Re: RB5 platform
Hi Patrick,
I just used the latest Lantronix BSP release preinstalled on the board as the filesystem base. The initramfs cpio test image came from Linaro here: https://snapshots.linaro.org/member-builds/qcomlt/testimages/arm64/1379/init...
I hope that helps answer your questions.
William Breathitt Gray
On Wed, 31 May 2023 at 17:01, Patrick Whewell <patrick.whewell@sightlineapplications.commailto:patrick.whewell@sightlineapplications.com> wrote: Hey William,
In terms of testing this. What filesystem image were you using? Did you start from a Linaro based complete build like the existing yocto build environment on the 96boards for the RB5? Or did you start with the latest Lantronix BSP release and then just build this kernel and then flash the boot.img to that?
I just want to make sure that we are starting from the same place.
Patrick Whewell | Software Engineer | SightLine Applications, Inc | Onboard Video Processing
From: William Gray <william.gray@linaro.orgmailto:william.gray@linaro.org> Sent: Wednesday, May 31, 2023 8:32 AM To: Patrick Whewell <patrick.whewell@sightlineapplications.commailto:patrick.whewell@sightlineapplications.com> Cc: sightlineapplications@lists.linaro.orgmailto:sightlineapplications@lists.linaro.org Subject: [Sightlineapplications] Re: RB5 platform
Vinod wrote a great blog post detailing how to boot the mainline kernel on Qualcomm devices: https://www.linaro.org/blog/let-s-boot-the-mainline-linux-kernel-on-qualcomm...
Here's a summary of the commands I execute on my ARM64 Linux dev PC to boot the Open-Q 865 with the new device tree:
# make defconfig # make Image.gz dtbs modules # make modules_install INSTALL_MOD_PATH=./modules_dir INSTALL_MOD_STRIP=1 # cat initramfs-test-image-qemuarm64-20230321073831-1379.rootfs.cpio.gz modules.cpio.gz > final-initramfs.cpio.gz # cat arch/arm64/boot/Image.gz arch/arm64/boot/dts/qcom/qrb5165-lantronix-openq865.dtb > Image.gz+dtb # CMDLINE="ignore_loglevel earlycon" # git clone https://git.codelinaro.org/clo/qsdk/oss/tools/skales --depth=1 # python2 ./skales/mkbootimg --kernel Image.gz+dtb --cmdline ${CMDLINE} --ramdisk final-initramfs.cpio.gz --base 0x80000000 --pagesize 4096 --output boot.img # fastboot boot boot.img
If you encounter any problems just let me know and I can help you out.
William Breathitt Gray
On Wed, 31 May 2023 at 10:32, William Gray <william.gray@linaro.orgmailto:william.gray@linaro.org> wrote: Hi Patrick,
Here's an an initial commit for the Lantronix Open-Q 865 devkit that gets it booting up to a console (albeit with a very spare DTS): https://git.codelinaro.org/william_gray/openq-865/-/commit/42f82bde586fd1c33...
The main files of interest are openq5165rb.dtsi which serves as an include for the the QRB5165RB SOM, while the qrb5165-lantronix-openq865.dts is the main DTS for the board. I based this around the definitions for the qrb5165-rb5 which is mostly compatible; I'll be making adjustments throughout to fit the openq865 more aptly (e.g. defining a pm8250 based on the existing pm8150 nodes).
You can follow my v5.15 development here: https://git.codelinaro.org/william_gray/openq-865/-/tree/openq865-v5.15
William Breathitt Gray
On Thu, 25 May 2023 at 13:27, William Gray <william.gray@linaro.orgmailto:william.gray@linaro.org> wrote: Hi Patrick,
I'm working on a device tree for Open-Q 865 that is based on the current arch/arm64/boot/dts/qcom/qrb5165-rb5.dts upstream in 6.4-rc1. I should have a basic bootable device tree ready for you to test by our next meeting on May 31. I'll also rebase a version on 5.15 so you can try that as well (qrb5165-rb5 device tree works on 5.15 so I don't anticipate any issues for the open-q 865).
William Breathitt Gray
On Thu, 25 May 2023 at 13:17, Patrick Whewell <patrick.whewell@sightlineapplications.commailto:patrick.whewell@sightlineapplications.com> wrote: Hello,
In our last meeting on May 17 it was mentioned that there was work being done on the Lantronix device tree and it was booting in 6.4(? I think that was the version) kernel.
How’s work on porting to 5.15 going? Is there a way to get the 6.4 kernel and the device tree to test out the booting locally for us?
Patrick Whewell Software Engineer He/him patrick.whewell@sightlineapplications.commailto:patrick.whewell@sightlineapplications.com www.sightlineapplications.comhttp://www.sightlineapplications.com/
5711 S Hood Ave., Suite 100 Portland, OR 97239
[cid:image001.png@01D9949B.61068800]http://sightlineapplications.com/
_______________________________________________ Sightlineapplications mailing list -- sightlineapplications@lists.linaro.orgmailto:sightlineapplications@lists.linaro.org To unsubscribe send an email to sightlineapplications-leave@lists.linaro.orgmailto:sightlineapplications-leave@lists.linaro.org
Hey Patrick,
That's great to hear you were able to boot! Since we're both able to run on 6.4 now, I'll continue development on this branch (openq865) so we're on the latest and greatest.
William Breathitt Gray
On Thu, 1 Jun 2023 at 18:11, Patrick Whewell < patrick.whewell@sightlineapplications.com> wrote:
Hi William,
Also had success booting to command line with the 6.4 kernel
root@qemuarm64:~# uname -a
Linux qemuarm64 6.4.0-rc1-g27a76e68f50b #3 SMP PREEMPT Thu Jun 1 15:03:19 PDT 2023 aarch64 GNU/Linux
root@qemuarm64:~# cat /etc/version
20180309123456
root@qemuarm64:~# cat /proc/version
Linux version 6.4.0-rc1-g27a76e68f50b (slroot@PDXPWHEWELL) (aarch64-linux-gnu-gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #3 SMP PREEMPT Thu Jun 1 15:03:19 PDT 2023
*Patrick Whewell | **Software Engineer **| **SightLine Applications, Inc **| **Onboard Video Processing*
*From:* Patrick Whewell *Sent:* Thursday, June 1, 2023 2:30 PM *To:* William Gray william.gray@linaro.org *Cc:* sightlineapplications@lists.linaro.org *Subject:* RE: [Sightlineapplications] Re: RB5 platform
Hi William,
I tested the 5.15 branch that you sent over. I was able to boot to command line like expected. Below is the output from the 3 locations for versions that I know of.
root@qemuarm64:~# uname -a
Linux qemuarm64 5.15.54-00001-g42f82bde586f #2 SMP PREEMPT Thu Jun 1 14:11:30 PDT 2023 aarch64 GNU/Linux
root@qemuarm64:~# cat /etc/version
20180309123456
root@qemuarm64:~# cat /proc/version
Linux version 5.15.54-00001-g42f82bde586f (slroot@PDXPWHEWELL) (aarch64-linux-gnu-gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #2 SMP PREEMPT Thu Jun 1 14:11:30 PDT 2023
It looks like this is the location for the 6.4 kernel https://git.codelinaro.org/william_gray/openq-865/-/tree/openq865
I will attempt to build/boot using this next and send you an email with the results.
*Patrick Whewell | **Software Engineer **| **SightLine Applications, Inc **| **Onboard Video Processing*
*From:* William Gray william.gray@linaro.org *Sent:* Thursday, June 1, 2023 6:29 AM *To:* Patrick Whewell patrick.whewell@sightlineapplications.com *Cc:* sightlineapplications@lists.linaro.org *Subject:* Re: [Sightlineapplications] Re: RB5 platform
Hi Patrick,
I just used the latest Lantronix BSP release preinstalled on the board as the filesystem base. The initramfs cpio test image came from Linaro here: https://snapshots.linaro.org/member-builds/qcomlt/testimages/arm64/1379/init...
I hope that helps answer your questions.
William Breathitt Gray
On Wed, 31 May 2023 at 17:01, Patrick Whewell < patrick.whewell@sightlineapplications.com> wrote:
Hey William,
In terms of testing this. What filesystem image were you using? Did you start from a Linaro based complete build like the existing yocto build environment on the 96boards for the RB5? Or did you start with the latest Lantronix BSP release and then just build this kernel and then flash the boot.img to that?
I just want to make sure that we are starting from the same place.
*Patrick Whewell | **Software Engineer **| **SightLine Applications, Inc **| **Onboard Video Processing*
*From:* William Gray william.gray@linaro.org *Sent:* Wednesday, May 31, 2023 8:32 AM *To:* Patrick Whewell patrick.whewell@sightlineapplications.com *Cc:* sightlineapplications@lists.linaro.org *Subject:* [Sightlineapplications] Re: RB5 platform
Vinod wrote a great blog post detailing how to boot the mainline kernel on Qualcomm devices: https://www.linaro.org/blog/let-s-boot-the-mainline-linux-kernel-on-qualcomm...
Here's a summary of the commands I execute on my ARM64 Linux dev PC to boot the Open-Q 865 with the new device tree:
# make defconfig # make Image.gz dtbs modules # make modules_install INSTALL_MOD_PATH=./modules_dir
INSTALL_MOD_STRIP=1
# cat
initramfs-test-image-qemuarm64-20230321073831-1379.rootfs.cpio.gz modules.cpio.gz > final-initramfs.cpio.gz # cat arch/arm64/boot/Image.gz arch/arm64/boot/dts/qcom/qrb5165-lantronix-openq865.dtb > Image.gz+dtb
# CMDLINE="ignore_loglevel earlycon" # git clone https://git.codelinaro.org/clo/qsdk/oss/tools/skales
--depth=1
# python2 ./skales/mkbootimg --kernel Image.gz+dtb --cmdline
${CMDLINE} --ramdisk final-initramfs.cpio.gz --base 0x80000000 --pagesize 4096 --output boot.img
# fastboot boot boot.img
If you encounter any problems just let me know and I can help you out.
William Breathitt Gray
On Wed, 31 May 2023 at 10:32, William Gray william.gray@linaro.org wrote:
Hi Patrick,
Here's an an initial commit for the Lantronix Open-Q 865 devkit that gets it booting up to a console (albeit with a very spare DTS): https://git.codelinaro.org/william_gray/openq-865/-/commit/42f82bde586fd1c33...
The main files of interest are *openq5165rb.dtsi *which serves as an include for the the QRB5165RB SOM, while the *qrb5165-lantronix-openq865.dts* is the main DTS for the board. I based this around the definitions for the qrb5165-rb5 which is mostly compatible; I'll be making adjustments throughout to fit the openq865 more aptly (e.g. defining a pm8250 based on the existing pm8150 nodes).
You can follow my v5.15 development here: https://git.codelinaro.org/william_gray/openq-865/-/tree/openq865-v5.15
William Breathitt Gray
On Thu, 25 May 2023 at 13:27, William Gray william.gray@linaro.org wrote:
Hi Patrick,
I'm working on a device tree for Open-Q 865 that is based on the current arch/arm64/boot/dts/qcom/qrb5165-rb5.dts upstream in 6.4-rc1. I should have a basic bootable device tree ready for you to test by our next meeting on May 31. I'll also rebase a version on 5.15 so you can try that as well (qrb5165-rb5 device tree works on 5.15 so I don't anticipate any issues for the open-q 865).
William Breathitt Gray
On Thu, 25 May 2023 at 13:17, Patrick Whewell < patrick.whewell@sightlineapplications.com> wrote:
Hello,
In our last meeting on May 17 it was mentioned that there was work being done on the Lantronix device tree and it was booting in 6.4(? I think that was the version) kernel.
How’s work on porting to 5.15 going? Is there a way to get the 6.4 kernel and the device tree to test out the booting locally for us?
*Patrick Whewell*
*Software Engineer*
He/him
*patrick.whewell@sightlineapplications.com patrick.whewell@sightlineapplications.com*
www.sightlineapplications.com
*5711 S Hood Ave., Suite 100*
*Portland, OR 97239*
http://sightlineapplications.com/
Sightlineapplications mailing list -- sightlineapplications@lists.linaro.org To unsubscribe send an email to sightlineapplications-leave@lists.linaro.org
Hi William,
I was messing around with loading the kernel and taking a look at the system. And I just noticed that I don’t have access to the root filesystem from the Lantronix BSP when I boot from the Linaro kernel and device tree you have provided.
Is this because of device tree work? Or does this have to do with initialization and the boot.img that I created using the initramfs? If it is because of the boot.img I want to start making progress on getting that fixed but I wasn’t sure or not.
As a side note: I noticed the kernel command line option “skip_initramfs” was there when I booted from the linaro kernel boot.img that I created using the instructions you provided. Is that correct?
Thanks!
Patrick Whewell | Software Engineer | SightLine Applications, Inc | Onboard Video Processing
From: William Gray william.gray@linaro.org Sent: Thursday, June 1, 2023 3:15 PM To: Patrick Whewell patrick.whewell@sightlineapplications.com Cc: sightlineapplications@lists.linaro.org Subject: Re: [Sightlineapplications] Re: RB5 platform
Hey Patrick,
That's great to hear you were able to boot! Since we're both able to run on 6.4 now, I'll continue development on this branch (openq865) so we're on the latest and greatest.
William Breathitt Gray
On Thu, 1 Jun 2023 at 18:11, Patrick Whewell <patrick.whewell@sightlineapplications.commailto:patrick.whewell@sightlineapplications.com> wrote: Hi William,
Also had success booting to command line with the 6.4 kernel
root@qemuarm64:~# uname -a Linux qemuarm64 6.4.0-rc1-g27a76e68f50b #3 SMP PREEMPT Thu Jun 1 15:03:19 PDT 2023 aarch64 GNU/Linux root@qemuarm64:~# cat /etc/version 20180309123456 root@qemuarm64:~# cat /proc/version Linux version 6.4.0-rc1-g27a76e68f50b (slroot@PDXPWHEWELL) (aarch64-linux-gnu-gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #3 SMP PREEMPT Thu Jun 1 15:03:19 PDT 2023
Patrick Whewell | Software Engineer | SightLine Applications, Inc | Onboard Video Processing
From: Patrick Whewell Sent: Thursday, June 1, 2023 2:30 PM To: William Gray <william.gray@linaro.orgmailto:william.gray@linaro.org> Cc: sightlineapplications@lists.linaro.orgmailto:sightlineapplications@lists.linaro.org Subject: RE: [Sightlineapplications] Re: RB5 platform
Hi William,
I tested the 5.15 branch that you sent over. I was able to boot to command line like expected. Below is the output from the 3 locations for versions that I know of.
root@qemuarm64:~# uname -a Linux qemuarm64 5.15.54-00001-g42f82bde586f #2 SMP PREEMPT Thu Jun 1 14:11:30 PDT 2023 aarch64 GNU/Linux root@qemuarm64:~# cat /etc/version 20180309123456 root@qemuarm64:~# cat /proc/version Linux version 5.15.54-00001-g42f82bde586f (slroot@PDXPWHEWELL) (aarch64-linux-gnu-gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #2 SMP PREEMPT Thu Jun 1 14:11:30 PDT 2023
It looks like this is the location for the 6.4 kernel https://git.codelinaro.org/william_gray/openq-865/-/tree/openq865
I will attempt to build/boot using this next and send you an email with the results.
Patrick Whewell | Software Engineer | SightLine Applications, Inc | Onboard Video Processing
From: William Gray <william.gray@linaro.orgmailto:william.gray@linaro.org> Sent: Thursday, June 1, 2023 6:29 AM To: Patrick Whewell <patrick.whewell@sightlineapplications.commailto:patrick.whewell@sightlineapplications.com> Cc: sightlineapplications@lists.linaro.orgmailto:sightlineapplications@lists.linaro.org Subject: Re: [Sightlineapplications] Re: RB5 platform
Hi Patrick,
I just used the latest Lantronix BSP release preinstalled on the board as the filesystem base. The initramfs cpio test image came from Linaro here: https://snapshots.linaro.org/member-builds/qcomlt/testimages/arm64/1379/init...
I hope that helps answer your questions.
William Breathitt Gray
On Wed, 31 May 2023 at 17:01, Patrick Whewell <patrick.whewell@sightlineapplications.commailto:patrick.whewell@sightlineapplications.com> wrote: Hey William,
In terms of testing this. What filesystem image were you using? Did you start from a Linaro based complete build like the existing yocto build environment on the 96boards for the RB5? Or did you start with the latest Lantronix BSP release and then just build this kernel and then flash the boot.img to that?
I just want to make sure that we are starting from the same place.
Patrick Whewell | Software Engineer | SightLine Applications, Inc | Onboard Video Processing
From: William Gray <william.gray@linaro.orgmailto:william.gray@linaro.org> Sent: Wednesday, May 31, 2023 8:32 AM To: Patrick Whewell <patrick.whewell@sightlineapplications.commailto:patrick.whewell@sightlineapplications.com> Cc: sightlineapplications@lists.linaro.orgmailto:sightlineapplications@lists.linaro.org Subject: [Sightlineapplications] Re: RB5 platform
Vinod wrote a great blog post detailing how to boot the mainline kernel on Qualcomm devices: https://www.linaro.org/blog/let-s-boot-the-mainline-linux-kernel-on-qualcomm...
Here's a summary of the commands I execute on my ARM64 Linux dev PC to boot the Open-Q 865 with the new device tree:
# make defconfig # make Image.gz dtbs modules # make modules_install INSTALL_MOD_PATH=./modules_dir INSTALL_MOD_STRIP=1 # cat initramfs-test-image-qemuarm64-20230321073831-1379.rootfs.cpio.gz modules.cpio.gz > final-initramfs.cpio.gz # cat arch/arm64/boot/Image.gz arch/arm64/boot/dts/qcom/qrb5165-lantronix-openq865.dtb > Image.gz+dtb # CMDLINE="ignore_loglevel earlycon" # git clone https://git.codelinaro.org/clo/qsdk/oss/tools/skales --depth=1 # python2 ./skales/mkbootimg --kernel Image.gz+dtb --cmdline ${CMDLINE} --ramdisk final-initramfs.cpio.gz --base 0x80000000 --pagesize 4096 --output boot.img # fastboot boot boot.img
If you encounter any problems just let me know and I can help you out.
William Breathitt Gray
On Wed, 31 May 2023 at 10:32, William Gray <william.gray@linaro.orgmailto:william.gray@linaro.org> wrote: Hi Patrick,
Here's an an initial commit for the Lantronix Open-Q 865 devkit that gets it booting up to a console (albeit with a very spare DTS): https://git.codelinaro.org/william_gray/openq-865/-/commit/42f82bde586fd1c33...
The main files of interest are openq5165rb.dtsi which serves as an include for the the QRB5165RB SOM, while the qrb5165-lantronix-openq865.dts is the main DTS for the board. I based this around the definitions for the qrb5165-rb5 which is mostly compatible; I'll be making adjustments throughout to fit the openq865 more aptly (e.g. defining a pm8250 based on the existing pm8150 nodes).
You can follow my v5.15 development here: https://git.codelinaro.org/william_gray/openq-865/-/tree/openq865-v5.15
William Breathitt Gray
On Thu, 25 May 2023 at 13:27, William Gray <william.gray@linaro.orgmailto:william.gray@linaro.org> wrote: Hi Patrick,
I'm working on a device tree for Open-Q 865 that is based on the current arch/arm64/boot/dts/qcom/qrb5165-rb5.dts upstream in 6.4-rc1. I should have a basic bootable device tree ready for you to test by our next meeting on May 31. I'll also rebase a version on 5.15 so you can try that as well (qrb5165-rb5 device tree works on 5.15 so I don't anticipate any issues for the open-q 865).
William Breathitt Gray
On Thu, 25 May 2023 at 13:17, Patrick Whewell <patrick.whewell@sightlineapplications.commailto:patrick.whewell@sightlineapplications.com> wrote: Hello,
In our last meeting on May 17 it was mentioned that there was work being done on the Lantronix device tree and it was booting in 6.4(? I think that was the version) kernel.
How’s work on porting to 5.15 going? Is there a way to get the 6.4 kernel and the device tree to test out the booting locally for us?
Patrick Whewell Software Engineer He/him patrick.whewell@sightlineapplications.commailto:patrick.whewell@sightlineapplications.com www.sightlineapplications.comhttp://www.sightlineapplications.com/
5711 S Hood Ave., Suite 100 Portland, OR 97239
[cid:image001.png@01D999F0.F03F95C0]http://sightlineapplications.com/
_______________________________________________ Sightlineapplications mailing list -- sightlineapplications@lists.linaro.orgmailto:sightlineapplications@lists.linaro.org To unsubscribe send an email to sightlineapplications-leave@lists.linaro.orgmailto:sightlineapplications-leave@lists.linaro.org
Hi Patrick,
That's normal, I haven't yet completed the storage nodes for the device tree so we're not able to access the filesystem just yet. Regarding `skip_initramfs`, where did you come across it; are you seeing it in /proc/cmdline?
William Breathitt Gray
On Thu, 8 Jun 2023 at 13:09, Patrick Whewell < patrick.whewell@sightlineapplications.com> wrote:
Hi William,
I was messing around with loading the kernel and taking a look at the system. And I just noticed that I don’t have access to the root filesystem from the Lantronix BSP when I boot from the Linaro kernel and device tree you have provided.
Is this because of device tree work? Or does this have to do with initialization and the boot.img that I created using the initramfs? If it is because of the boot.img I want to start making progress on getting that fixed but I wasn’t sure or not.
As a side note: I noticed the kernel command line option “skip_initramfs” was there when I booted from the linaro kernel boot.img that I created using the instructions you provided. Is that correct?
Thanks!
*Patrick Whewell | **Software Engineer **| **SightLine Applications, Inc **| **Onboard Video Processing*
*From:* William Gray william.gray@linaro.org *Sent:* Thursday, June 1, 2023 3:15 PM *To:* Patrick Whewell patrick.whewell@sightlineapplications.com *Cc:* sightlineapplications@lists.linaro.org *Subject:* Re: [Sightlineapplications] Re: RB5 platform
Hey Patrick,
That's great to hear you were able to boot! Since we're both able to run on 6.4 now, I'll continue development on this branch (openq865) so we're on the latest and greatest.
William Breathitt Gray
On Thu, 1 Jun 2023 at 18:11, Patrick Whewell < patrick.whewell@sightlineapplications.com> wrote:
Hi William,
Also had success booting to command line with the 6.4 kernel
root@qemuarm64:~# uname -a
Linux qemuarm64 6.4.0-rc1-g27a76e68f50b #3 SMP PREEMPT Thu Jun 1 15:03:19 PDT 2023 aarch64 GNU/Linux
root@qemuarm64:~# cat /etc/version
20180309123456
root@qemuarm64:~# cat /proc/version
Linux version 6.4.0-rc1-g27a76e68f50b (slroot@PDXPWHEWELL) (aarch64-linux-gnu-gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #3 SMP PREEMPT Thu Jun 1 15:03:19 PDT 2023
*Patrick Whewell | **Software Engineer **| **SightLine Applications, Inc **| **Onboard Video Processing*
*From:* Patrick Whewell *Sent:* Thursday, June 1, 2023 2:30 PM *To:* William Gray william.gray@linaro.org *Cc:* sightlineapplications@lists.linaro.org *Subject:* RE: [Sightlineapplications] Re: RB5 platform
Hi William,
I tested the 5.15 branch that you sent over. I was able to boot to command line like expected. Below is the output from the 3 locations for versions that I know of.
root@qemuarm64:~# uname -a
Linux qemuarm64 5.15.54-00001-g42f82bde586f #2 SMP PREEMPT Thu Jun 1 14:11:30 PDT 2023 aarch64 GNU/Linux
root@qemuarm64:~# cat /etc/version
20180309123456
root@qemuarm64:~# cat /proc/version
Linux version 5.15.54-00001-g42f82bde586f (slroot@PDXPWHEWELL) (aarch64-linux-gnu-gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #2 SMP PREEMPT Thu Jun 1 14:11:30 PDT 2023
It looks like this is the location for the 6.4 kernel https://git.codelinaro.org/william_gray/openq-865/-/tree/openq865
I will attempt to build/boot using this next and send you an email with the results.
*Patrick Whewell | **Software Engineer **| **SightLine Applications, Inc **| **Onboard Video Processing*
*From:* William Gray william.gray@linaro.org *Sent:* Thursday, June 1, 2023 6:29 AM *To:* Patrick Whewell patrick.whewell@sightlineapplications.com *Cc:* sightlineapplications@lists.linaro.org *Subject:* Re: [Sightlineapplications] Re: RB5 platform
Hi Patrick,
I just used the latest Lantronix BSP release preinstalled on the board as the filesystem base. The initramfs cpio test image came from Linaro here: https://snapshots.linaro.org/member-builds/qcomlt/testimages/arm64/1379/init...
I hope that helps answer your questions.
William Breathitt Gray
On Wed, 31 May 2023 at 17:01, Patrick Whewell < patrick.whewell@sightlineapplications.com> wrote:
Hey William,
In terms of testing this. What filesystem image were you using? Did you start from a Linaro based complete build like the existing yocto build environment on the 96boards for the RB5? Or did you start with the latest Lantronix BSP release and then just build this kernel and then flash the boot.img to that?
I just want to make sure that we are starting from the same place.
*Patrick Whewell | **Software Engineer **| **SightLine Applications, Inc **| **Onboard Video Processing*
*From:* William Gray william.gray@linaro.org *Sent:* Wednesday, May 31, 2023 8:32 AM *To:* Patrick Whewell patrick.whewell@sightlineapplications.com *Cc:* sightlineapplications@lists.linaro.org *Subject:* [Sightlineapplications] Re: RB5 platform
Vinod wrote a great blog post detailing how to boot the mainline kernel on Qualcomm devices: https://www.linaro.org/blog/let-s-boot-the-mainline-linux-kernel-on-qualcomm...
Here's a summary of the commands I execute on my ARM64 Linux dev PC to boot the Open-Q 865 with the new device tree:
# make defconfig # make Image.gz dtbs modules # make modules_install INSTALL_MOD_PATH=./modules_dir
INSTALL_MOD_STRIP=1
# cat
initramfs-test-image-qemuarm64-20230321073831-1379.rootfs.cpio.gz modules.cpio.gz > final-initramfs.cpio.gz # cat arch/arm64/boot/Image.gz arch/arm64/boot/dts/qcom/qrb5165-lantronix-openq865.dtb > Image.gz+dtb
# CMDLINE="ignore_loglevel earlycon" # git clone https://git.codelinaro.org/clo/qsdk/oss/tools/skales
--depth=1
# python2 ./skales/mkbootimg --kernel Image.gz+dtb --cmdline
${CMDLINE} --ramdisk final-initramfs.cpio.gz --base 0x80000000 --pagesize 4096 --output boot.img
# fastboot boot boot.img
If you encounter any problems just let me know and I can help you out.
William Breathitt Gray
On Wed, 31 May 2023 at 10:32, William Gray william.gray@linaro.org wrote:
Hi Patrick,
Here's an an initial commit for the Lantronix Open-Q 865 devkit that gets it booting up to a console (albeit with a very spare DTS): https://git.codelinaro.org/william_gray/openq-865/-/commit/42f82bde586fd1c33...
The main files of interest are *openq5165rb.dtsi *which serves as an include for the the QRB5165RB SOM, while the *qrb5165-lantronix-openq865.dts* is the main DTS for the board. I based this around the definitions for the qrb5165-rb5 which is mostly compatible; I'll be making adjustments throughout to fit the openq865 more aptly (e.g. defining a pm8250 based on the existing pm8150 nodes).
You can follow my v5.15 development here: https://git.codelinaro.org/william_gray/openq-865/-/tree/openq865-v5.15
William Breathitt Gray
On Thu, 25 May 2023 at 13:27, William Gray william.gray@linaro.org wrote:
Hi Patrick,
I'm working on a device tree for Open-Q 865 that is based on the current arch/arm64/boot/dts/qcom/qrb5165-rb5.dts upstream in 6.4-rc1. I should have a basic bootable device tree ready for you to test by our next meeting on May 31. I'll also rebase a version on 5.15 so you can try that as well (qrb5165-rb5 device tree works on 5.15 so I don't anticipate any issues for the open-q 865).
William Breathitt Gray
On Thu, 25 May 2023 at 13:17, Patrick Whewell < patrick.whewell@sightlineapplications.com> wrote:
Hello,
In our last meeting on May 17 it was mentioned that there was work being done on the Lantronix device tree and it was booting in 6.4(? I think that was the version) kernel.
How’s work on porting to 5.15 going? Is there a way to get the 6.4 kernel and the device tree to test out the booting locally for us?
*Patrick Whewell*
*Software Engineer*
He/him
*patrick.whewell@sightlineapplications.com patrick.whewell@sightlineapplications.com*
www.sightlineapplications.com
*5711 S Hood Ave., Suite 100*
*Portland, OR 97239*
http://sightlineapplications.com/
Sightlineapplications mailing list -- sightlineapplications@lists.linaro.org To unsubscribe send an email to sightlineapplications-leave@lists.linaro.org
I saw it in the dmesg output
[ 0.000000] Kernel command line: ignore_loglevel root=/dev/sda7 androidboot.bootdevice=1d84000.ufshc androidboot.serialno=375cb1101122200354 androidboot.baseband=apq cnss_utils.mac=00:D0:CA:03:A0:28 msm_drm.dsi_display0=qcom,mdss_dsi_ili9806e_fwvga_video: systemd.setenv="SLOT_SUFFIX=_a" skip_initramfs rootwait rw init=/sbin/init
Would you like me to check the /proc/cmdline also?
Patrick Whewell | Software Engineer | SightLine Applications, Inc | Onboard Video Processing
From: William Gray william.gray@linaro.org Sent: Thursday, June 8, 2023 10:53 AM To: Patrick Whewell patrick.whewell@sightlineapplications.com Cc: sightlineapplications@lists.linaro.org Subject: Re: [Sightlineapplications] Re: RB5 platform
Hi Patrick,
That's normal, I haven't yet completed the storage nodes for the device tree so we're not able to access the filesystem just yet. Regarding `skip_initramfs`, where did you come across it; are you seeing it in /proc/cmdline?
William Breathitt Gray
On Thu, 8 Jun 2023 at 13:09, Patrick Whewell <patrick.whewell@sightlineapplications.commailto:patrick.whewell@sightlineapplications.com> wrote: Hi William,
I was messing around with loading the kernel and taking a look at the system. And I just noticed that I don’t have access to the root filesystem from the Lantronix BSP when I boot from the Linaro kernel and device tree you have provided.
Is this because of device tree work? Or does this have to do with initialization and the boot.img that I created using the initramfs? If it is because of the boot.img I want to start making progress on getting that fixed but I wasn’t sure or not.
As a side note: I noticed the kernel command line option “skip_initramfs” was there when I booted from the linaro kernel boot.img that I created using the instructions you provided. Is that correct?
Thanks!
Patrick Whewell | Software Engineer | SightLine Applications, Inc | Onboard Video Processing
From: William Gray <william.gray@linaro.orgmailto:william.gray@linaro.org> Sent: Thursday, June 1, 2023 3:15 PM To: Patrick Whewell <patrick.whewell@sightlineapplications.commailto:patrick.whewell@sightlineapplications.com> Cc: sightlineapplications@lists.linaro.orgmailto:sightlineapplications@lists.linaro.org Subject: Re: [Sightlineapplications] Re: RB5 platform
Hey Patrick,
That's great to hear you were able to boot! Since we're both able to run on 6.4 now, I'll continue development on this branch (openq865) so we're on the latest and greatest.
William Breathitt Gray
On Thu, 1 Jun 2023 at 18:11, Patrick Whewell <patrick.whewell@sightlineapplications.commailto:patrick.whewell@sightlineapplications.com> wrote: Hi William,
Also had success booting to command line with the 6.4 kernel
root@qemuarm64:~# uname -a Linux qemuarm64 6.4.0-rc1-g27a76e68f50b #3 SMP PREEMPT Thu Jun 1 15:03:19 PDT 2023 aarch64 GNU/Linux root@qemuarm64:~# cat /etc/version 20180309123456 root@qemuarm64:~# cat /proc/version Linux version 6.4.0-rc1-g27a76e68f50b (slroot@PDXPWHEWELL) (aarch64-linux-gnu-gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #3 SMP PREEMPT Thu Jun 1 15:03:19 PDT 2023
Patrick Whewell | Software Engineer | SightLine Applications, Inc | Onboard Video Processing
From: Patrick Whewell Sent: Thursday, June 1, 2023 2:30 PM To: William Gray <william.gray@linaro.orgmailto:william.gray@linaro.org> Cc: sightlineapplications@lists.linaro.orgmailto:sightlineapplications@lists.linaro.org Subject: RE: [Sightlineapplications] Re: RB5 platform
Hi William,
I tested the 5.15 branch that you sent over. I was able to boot to command line like expected. Below is the output from the 3 locations for versions that I know of.
root@qemuarm64:~# uname -a Linux qemuarm64 5.15.54-00001-g42f82bde586f #2 SMP PREEMPT Thu Jun 1 14:11:30 PDT 2023 aarch64 GNU/Linux root@qemuarm64:~# cat /etc/version 20180309123456 root@qemuarm64:~# cat /proc/version Linux version 5.15.54-00001-g42f82bde586f (slroot@PDXPWHEWELL) (aarch64-linux-gnu-gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #2 SMP PREEMPT Thu Jun 1 14:11:30 PDT 2023
It looks like this is the location for the 6.4 kernel https://git.codelinaro.org/william_gray/openq-865/-/tree/openq865
I will attempt to build/boot using this next and send you an email with the results.
Patrick Whewell | Software Engineer | SightLine Applications, Inc | Onboard Video Processing
From: William Gray <william.gray@linaro.orgmailto:william.gray@linaro.org> Sent: Thursday, June 1, 2023 6:29 AM To: Patrick Whewell <patrick.whewell@sightlineapplications.commailto:patrick.whewell@sightlineapplications.com> Cc: sightlineapplications@lists.linaro.orgmailto:sightlineapplications@lists.linaro.org Subject: Re: [Sightlineapplications] Re: RB5 platform
Hi Patrick,
I just used the latest Lantronix BSP release preinstalled on the board as the filesystem base. The initramfs cpio test image came from Linaro here: https://snapshots.linaro.org/member-builds/qcomlt/testimages/arm64/1379/init...
I hope that helps answer your questions.
William Breathitt Gray
On Wed, 31 May 2023 at 17:01, Patrick Whewell <patrick.whewell@sightlineapplications.commailto:patrick.whewell@sightlineapplications.com> wrote: Hey William,
In terms of testing this. What filesystem image were you using? Did you start from a Linaro based complete build like the existing yocto build environment on the 96boards for the RB5? Or did you start with the latest Lantronix BSP release and then just build this kernel and then flash the boot.img to that?
I just want to make sure that we are starting from the same place.
Patrick Whewell | Software Engineer | SightLine Applications, Inc | Onboard Video Processing
From: William Gray <william.gray@linaro.orgmailto:william.gray@linaro.org> Sent: Wednesday, May 31, 2023 8:32 AM To: Patrick Whewell <patrick.whewell@sightlineapplications.commailto:patrick.whewell@sightlineapplications.com> Cc: sightlineapplications@lists.linaro.orgmailto:sightlineapplications@lists.linaro.org Subject: [Sightlineapplications] Re: RB5 platform
Vinod wrote a great blog post detailing how to boot the mainline kernel on Qualcomm devices: https://www.linaro.org/blog/let-s-boot-the-mainline-linux-kernel-on-qualcomm...
Here's a summary of the commands I execute on my ARM64 Linux dev PC to boot the Open-Q 865 with the new device tree:
# make defconfig # make Image.gz dtbs modules # make modules_install INSTALL_MOD_PATH=./modules_dir INSTALL_MOD_STRIP=1 # cat initramfs-test-image-qemuarm64-20230321073831-1379.rootfs.cpio.gz modules.cpio.gz > final-initramfs.cpio.gz # cat arch/arm64/boot/Image.gz arch/arm64/boot/dts/qcom/qrb5165-lantronix-openq865.dtb > Image.gz+dtb # CMDLINE="ignore_loglevel earlycon" # git clone https://git.codelinaro.org/clo/qsdk/oss/tools/skales --depth=1 # python2 ./skales/mkbootimg --kernel Image.gz+dtb --cmdline ${CMDLINE} --ramdisk final-initramfs.cpio.gz --base 0x80000000 --pagesize 4096 --output boot.img # fastboot boot boot.img
If you encounter any problems just let me know and I can help you out.
William Breathitt Gray
On Wed, 31 May 2023 at 10:32, William Gray <william.gray@linaro.orgmailto:william.gray@linaro.org> wrote: Hi Patrick,
Here's an an initial commit for the Lantronix Open-Q 865 devkit that gets it booting up to a console (albeit with a very spare DTS): https://git.codelinaro.org/william_gray/openq-865/-/commit/42f82bde586fd1c33...
The main files of interest are openq5165rb.dtsi which serves as an include for the the QRB5165RB SOM, while the qrb5165-lantronix-openq865.dts is the main DTS for the board. I based this around the definitions for the qrb5165-rb5 which is mostly compatible; I'll be making adjustments throughout to fit the openq865 more aptly (e.g. defining a pm8250 based on the existing pm8150 nodes).
You can follow my v5.15 development here: https://git.codelinaro.org/william_gray/openq-865/-/tree/openq865-v5.15
William Breathitt Gray
On Thu, 25 May 2023 at 13:27, William Gray <william.gray@linaro.orgmailto:william.gray@linaro.org> wrote: Hi Patrick,
I'm working on a device tree for Open-Q 865 that is based on the current arch/arm64/boot/dts/qcom/qrb5165-rb5.dts upstream in 6.4-rc1. I should have a basic bootable device tree ready for you to test by our next meeting on May 31. I'll also rebase a version on 5.15 so you can try that as well (qrb5165-rb5 device tree works on 5.15 so I don't anticipate any issues for the open-q 865).
William Breathitt Gray
On Thu, 25 May 2023 at 13:17, Patrick Whewell <patrick.whewell@sightlineapplications.commailto:patrick.whewell@sightlineapplications.com> wrote: Hello,
In our last meeting on May 17 it was mentioned that there was work being done on the Lantronix device tree and it was booting in 6.4(? I think that was the version) kernel.
How’s work on porting to 5.15 going? Is there a way to get the 6.4 kernel and the device tree to test out the booting locally for us?
Patrick Whewell Software Engineer He/him patrick.whewell@sightlineapplications.commailto:patrick.whewell@sightlineapplications.com www.sightlineapplications.comhttp://www.sightlineapplications.com/
5711 S Hood Ave., Suite 100 Portland, OR 97239
[cid:image001.png@01D999F7.9EAFE640]http://sightlineapplications.com/
_______________________________________________ Sightlineapplications mailing list -- sightlineapplications@lists.linaro.orgmailto:sightlineapplications@lists.linaro.org To unsubscribe send an email to sightlineapplications-leave@lists.linaro.orgmailto:sightlineapplications-leave@lists.linaro.org
Ah, this line tells the system to skip loading the initramfs from the boot partition on the filesystem. We're bypassing the filesystem by using fastboot to directly load the kernel and initramfs so that `skip_initramfs` line does not affect us. Later when we get storage support working, we'll put our initramfs cpio file in the boot partition and load it from there, but for now you can safely ignore that line.
William Breathitt Gray
On Thu, 8 Jun 2023 at 13:55, Patrick Whewell < patrick.whewell@sightlineapplications.com> wrote:
I saw it in the dmesg output
[ 0.000000] Kernel command line: ignore_loglevel root=/dev/sda7 androidboot.bootdevice=1d84000.ufshc androidboot.serialno=375cb1101122200354 androidboot.baseband=apq cnss_utils.mac=00:D0:CA:03:A0:28 msm_drm.dsi_display0=qcom,mdss_dsi_ili9806e_fwvga_video: systemd.setenv="SLOT_SUFFIX=_a" skip_initramfs rootwait rw init=/sbin/init
Would you like me to check the /proc/cmdline also?
*Patrick Whewell | **Software Engineer **| **SightLine Applications, Inc **| **Onboard Video Processing*
*From:* William Gray william.gray@linaro.org *Sent:* Thursday, June 8, 2023 10:53 AM *To:* Patrick Whewell patrick.whewell@sightlineapplications.com *Cc:* sightlineapplications@lists.linaro.org *Subject:* Re: [Sightlineapplications] Re: RB5 platform
Hi Patrick,
That's normal, I haven't yet completed the storage nodes for the device tree so we're not able to access the filesystem just yet. Regarding `skip_initramfs`, where did you come across it; are you seeing it in /proc/cmdline?
William Breathitt Gray
On Thu, 8 Jun 2023 at 13:09, Patrick Whewell < patrick.whewell@sightlineapplications.com> wrote:
Hi William,
I was messing around with loading the kernel and taking a look at the system. And I just noticed that I don’t have access to the root filesystem from the Lantronix BSP when I boot from the Linaro kernel and device tree you have provided.
Is this because of device tree work? Or does this have to do with initialization and the boot.img that I created using the initramfs? If it is because of the boot.img I want to start making progress on getting that fixed but I wasn’t sure or not.
As a side note: I noticed the kernel command line option “skip_initramfs” was there when I booted from the linaro kernel boot.img that I created using the instructions you provided. Is that correct?
Thanks!
*Patrick Whewell | **Software Engineer **| **SightLine Applications, Inc **| **Onboard Video Processing*
*From:* William Gray william.gray@linaro.org *Sent:* Thursday, June 1, 2023 3:15 PM *To:* Patrick Whewell patrick.whewell@sightlineapplications.com *Cc:* sightlineapplications@lists.linaro.org *Subject:* Re: [Sightlineapplications] Re: RB5 platform
Hey Patrick,
That's great to hear you were able to boot! Since we're both able to run on 6.4 now, I'll continue development on this branch (openq865) so we're on the latest and greatest.
William Breathitt Gray
On Thu, 1 Jun 2023 at 18:11, Patrick Whewell < patrick.whewell@sightlineapplications.com> wrote:
Hi William,
Also had success booting to command line with the 6.4 kernel
root@qemuarm64:~# uname -a
Linux qemuarm64 6.4.0-rc1-g27a76e68f50b #3 SMP PREEMPT Thu Jun 1 15:03:19 PDT 2023 aarch64 GNU/Linux
root@qemuarm64:~# cat /etc/version
20180309123456
root@qemuarm64:~# cat /proc/version
Linux version 6.4.0-rc1-g27a76e68f50b (slroot@PDXPWHEWELL) (aarch64-linux-gnu-gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #3 SMP PREEMPT Thu Jun 1 15:03:19 PDT 2023
*Patrick Whewell | **Software Engineer **| **SightLine Applications, Inc **| **Onboard Video Processing*
*From:* Patrick Whewell *Sent:* Thursday, June 1, 2023 2:30 PM *To:* William Gray william.gray@linaro.org *Cc:* sightlineapplications@lists.linaro.org *Subject:* RE: [Sightlineapplications] Re: RB5 platform
Hi William,
I tested the 5.15 branch that you sent over. I was able to boot to command line like expected. Below is the output from the 3 locations for versions that I know of.
root@qemuarm64:~# uname -a
Linux qemuarm64 5.15.54-00001-g42f82bde586f #2 SMP PREEMPT Thu Jun 1 14:11:30 PDT 2023 aarch64 GNU/Linux
root@qemuarm64:~# cat /etc/version
20180309123456
root@qemuarm64:~# cat /proc/version
Linux version 5.15.54-00001-g42f82bde586f (slroot@PDXPWHEWELL) (aarch64-linux-gnu-gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #2 SMP PREEMPT Thu Jun 1 14:11:30 PDT 2023
It looks like this is the location for the 6.4 kernel https://git.codelinaro.org/william_gray/openq-865/-/tree/openq865
I will attempt to build/boot using this next and send you an email with the results.
*Patrick Whewell | **Software Engineer **| **SightLine Applications, Inc **| **Onboard Video Processing*
*From:* William Gray william.gray@linaro.org *Sent:* Thursday, June 1, 2023 6:29 AM *To:* Patrick Whewell patrick.whewell@sightlineapplications.com *Cc:* sightlineapplications@lists.linaro.org *Subject:* Re: [Sightlineapplications] Re: RB5 platform
Hi Patrick,
I just used the latest Lantronix BSP release preinstalled on the board as the filesystem base. The initramfs cpio test image came from Linaro here: https://snapshots.linaro.org/member-builds/qcomlt/testimages/arm64/1379/init...
I hope that helps answer your questions.
William Breathitt Gray
On Wed, 31 May 2023 at 17:01, Patrick Whewell < patrick.whewell@sightlineapplications.com> wrote:
Hey William,
In terms of testing this. What filesystem image were you using? Did you start from a Linaro based complete build like the existing yocto build environment on the 96boards for the RB5? Or did you start with the latest Lantronix BSP release and then just build this kernel and then flash the boot.img to that?
I just want to make sure that we are starting from the same place.
*Patrick Whewell | **Software Engineer **| **SightLine Applications, Inc **| **Onboard Video Processing*
*From:* William Gray william.gray@linaro.org *Sent:* Wednesday, May 31, 2023 8:32 AM *To:* Patrick Whewell patrick.whewell@sightlineapplications.com *Cc:* sightlineapplications@lists.linaro.org *Subject:* [Sightlineapplications] Re: RB5 platform
Vinod wrote a great blog post detailing how to boot the mainline kernel on Qualcomm devices: https://www.linaro.org/blog/let-s-boot-the-mainline-linux-kernel-on-qualcomm...
Here's a summary of the commands I execute on my ARM64 Linux dev PC to boot the Open-Q 865 with the new device tree:
# make defconfig # make Image.gz dtbs modules # make modules_install INSTALL_MOD_PATH=./modules_dir
INSTALL_MOD_STRIP=1
# cat
initramfs-test-image-qemuarm64-20230321073831-1379.rootfs.cpio.gz modules.cpio.gz > final-initramfs.cpio.gz # cat arch/arm64/boot/Image.gz arch/arm64/boot/dts/qcom/qrb5165-lantronix-openq865.dtb > Image.gz+dtb
# CMDLINE="ignore_loglevel earlycon" # git clone https://git.codelinaro.org/clo/qsdk/oss/tools/skales
--depth=1
# python2 ./skales/mkbootimg --kernel Image.gz+dtb --cmdline
${CMDLINE} --ramdisk final-initramfs.cpio.gz --base 0x80000000 --pagesize 4096 --output boot.img
# fastboot boot boot.img
If you encounter any problems just let me know and I can help you out.
William Breathitt Gray
On Wed, 31 May 2023 at 10:32, William Gray william.gray@linaro.org wrote:
Hi Patrick,
Here's an an initial commit for the Lantronix Open-Q 865 devkit that gets it booting up to a console (albeit with a very spare DTS): https://git.codelinaro.org/william_gray/openq-865/-/commit/42f82bde586fd1c33...
The main files of interest are *openq5165rb.dtsi *which serves as an include for the the QRB5165RB SOM, while the *qrb5165-lantronix-openq865.dts* is the main DTS for the board. I based this around the definitions for the qrb5165-rb5 which is mostly compatible; I'll be making adjustments throughout to fit the openq865 more aptly (e.g. defining a pm8250 based on the existing pm8150 nodes).
You can follow my v5.15 development here: https://git.codelinaro.org/william_gray/openq-865/-/tree/openq865-v5.15
William Breathitt Gray
On Thu, 25 May 2023 at 13:27, William Gray william.gray@linaro.org wrote:
Hi Patrick,
I'm working on a device tree for Open-Q 865 that is based on the current arch/arm64/boot/dts/qcom/qrb5165-rb5.dts upstream in 6.4-rc1. I should have a basic bootable device tree ready for you to test by our next meeting on May 31. I'll also rebase a version on 5.15 so you can try that as well (qrb5165-rb5 device tree works on 5.15 so I don't anticipate any issues for the open-q 865).
William Breathitt Gray
On Thu, 25 May 2023 at 13:17, Patrick Whewell < patrick.whewell@sightlineapplications.com> wrote:
Hello,
In our last meeting on May 17 it was mentioned that there was work being done on the Lantronix device tree and it was booting in 6.4(? I think that was the version) kernel.
How’s work on porting to 5.15 going? Is there a way to get the 6.4 kernel and the device tree to test out the booting locally for us?
*Patrick Whewell*
*Software Engineer*
He/him
*patrick.whewell@sightlineapplications.com patrick.whewell@sightlineapplications.com*
www.sightlineapplications.com
*5711 S Hood Ave., Suite 100*
*Portland, OR 97239*
http://sightlineapplications.com/
Sightlineapplications mailing list -- sightlineapplications@lists.linaro.org To unsubscribe send an email to sightlineapplications-leave@lists.linaro.org
Ahh ok makes sense. Appreciate that!
Patrick Whewell | Software Engineer | SightLine Applications, Inc | Onboard Video Processing
From: William Gray william.gray@linaro.org Sent: Thursday, June 8, 2023 11:34 AM To: Patrick Whewell patrick.whewell@sightlineapplications.com Cc: sightlineapplications@lists.linaro.org Subject: Re: [Sightlineapplications] Re: RB5 platform
Ah, this line tells the system to skip loading the initramfs from the boot partition on the filesystem. We're bypassing the filesystem by using fastboot to directly load the kernel and initramfs so that `skip_initramfs` line does not affect us. Later when we get storage support working, we'll put our initramfs cpio file in the boot partition and load it from there, but for now you can safely ignore that line.
William Breathitt Gray
On Thu, 8 Jun 2023 at 13:55, Patrick Whewell <patrick.whewell@sightlineapplications.commailto:patrick.whewell@sightlineapplications.com> wrote: I saw it in the dmesg output
[ 0.000000] Kernel command line: ignore_loglevel root=/dev/sda7 androidboot.bootdevice=1d84000.ufshc androidboot.serialno=375cb1101122200354 androidboot.baseband=apq cnss_utils.mac=00:D0:CA:03:A0:28 msm_drm.dsi_display0=qcom,mdss_dsi_ili9806e_fwvga_video: systemd.setenv="SLOT_SUFFIX=_a" skip_initramfs rootwait rw init=/sbin/init
Would you like me to check the /proc/cmdline also?
Patrick Whewell | Software Engineer | SightLine Applications, Inc | Onboard Video Processing
From: William Gray <william.gray@linaro.orgmailto:william.gray@linaro.org> Sent: Thursday, June 8, 2023 10:53 AM To: Patrick Whewell <patrick.whewell@sightlineapplications.commailto:patrick.whewell@sightlineapplications.com> Cc: sightlineapplications@lists.linaro.orgmailto:sightlineapplications@lists.linaro.org Subject: Re: [Sightlineapplications] Re: RB5 platform
Hi Patrick,
That's normal, I haven't yet completed the storage nodes for the device tree so we're not able to access the filesystem just yet. Regarding `skip_initramfs`, where did you come across it; are you seeing it in /proc/cmdline?
William Breathitt Gray
On Thu, 8 Jun 2023 at 13:09, Patrick Whewell <patrick.whewell@sightlineapplications.commailto:patrick.whewell@sightlineapplications.com> wrote: Hi William,
I was messing around with loading the kernel and taking a look at the system. And I just noticed that I don’t have access to the root filesystem from the Lantronix BSP when I boot from the Linaro kernel and device tree you have provided.
Is this because of device tree work? Or does this have to do with initialization and the boot.img that I created using the initramfs? If it is because of the boot.img I want to start making progress on getting that fixed but I wasn’t sure or not.
As a side note: I noticed the kernel command line option “skip_initramfs” was there when I booted from the linaro kernel boot.img that I created using the instructions you provided. Is that correct?
Thanks!
Patrick Whewell | Software Engineer | SightLine Applications, Inc | Onboard Video Processing
From: William Gray <william.gray@linaro.orgmailto:william.gray@linaro.org> Sent: Thursday, June 1, 2023 3:15 PM To: Patrick Whewell <patrick.whewell@sightlineapplications.commailto:patrick.whewell@sightlineapplications.com> Cc: sightlineapplications@lists.linaro.orgmailto:sightlineapplications@lists.linaro.org Subject: Re: [Sightlineapplications] Re: RB5 platform
Hey Patrick,
That's great to hear you were able to boot! Since we're both able to run on 6.4 now, I'll continue development on this branch (openq865) so we're on the latest and greatest.
William Breathitt Gray
On Thu, 1 Jun 2023 at 18:11, Patrick Whewell <patrick.whewell@sightlineapplications.commailto:patrick.whewell@sightlineapplications.com> wrote: Hi William,
Also had success booting to command line with the 6.4 kernel
root@qemuarm64:~# uname -a Linux qemuarm64 6.4.0-rc1-g27a76e68f50b #3 SMP PREEMPT Thu Jun 1 15:03:19 PDT 2023 aarch64 GNU/Linux root@qemuarm64:~# cat /etc/version 20180309123456 root@qemuarm64:~# cat /proc/version Linux version 6.4.0-rc1-g27a76e68f50b (slroot@PDXPWHEWELL) (aarch64-linux-gnu-gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #3 SMP PREEMPT Thu Jun 1 15:03:19 PDT 2023
Patrick Whewell | Software Engineer | SightLine Applications, Inc | Onboard Video Processing
From: Patrick Whewell Sent: Thursday, June 1, 2023 2:30 PM To: William Gray <william.gray@linaro.orgmailto:william.gray@linaro.org> Cc: sightlineapplications@lists.linaro.orgmailto:sightlineapplications@lists.linaro.org Subject: RE: [Sightlineapplications] Re: RB5 platform
Hi William,
I tested the 5.15 branch that you sent over. I was able to boot to command line like expected. Below is the output from the 3 locations for versions that I know of.
root@qemuarm64:~# uname -a Linux qemuarm64 5.15.54-00001-g42f82bde586f #2 SMP PREEMPT Thu Jun 1 14:11:30 PDT 2023 aarch64 GNU/Linux root@qemuarm64:~# cat /etc/version 20180309123456 root@qemuarm64:~# cat /proc/version Linux version 5.15.54-00001-g42f82bde586f (slroot@PDXPWHEWELL) (aarch64-linux-gnu-gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #2 SMP PREEMPT Thu Jun 1 14:11:30 PDT 2023
It looks like this is the location for the 6.4 kernel https://git.codelinaro.org/william_gray/openq-865/-/tree/openq865
I will attempt to build/boot using this next and send you an email with the results.
Patrick Whewell | Software Engineer | SightLine Applications, Inc | Onboard Video Processing
From: William Gray <william.gray@linaro.orgmailto:william.gray@linaro.org> Sent: Thursday, June 1, 2023 6:29 AM To: Patrick Whewell <patrick.whewell@sightlineapplications.commailto:patrick.whewell@sightlineapplications.com> Cc: sightlineapplications@lists.linaro.orgmailto:sightlineapplications@lists.linaro.org Subject: Re: [Sightlineapplications] Re: RB5 platform
Hi Patrick,
I just used the latest Lantronix BSP release preinstalled on the board as the filesystem base. The initramfs cpio test image came from Linaro here: https://snapshots.linaro.org/member-builds/qcomlt/testimages/arm64/1379/init...
I hope that helps answer your questions.
William Breathitt Gray
On Wed, 31 May 2023 at 17:01, Patrick Whewell <patrick.whewell@sightlineapplications.commailto:patrick.whewell@sightlineapplications.com> wrote: Hey William,
In terms of testing this. What filesystem image were you using? Did you start from a Linaro based complete build like the existing yocto build environment on the 96boards for the RB5? Or did you start with the latest Lantronix BSP release and then just build this kernel and then flash the boot.img to that?
I just want to make sure that we are starting from the same place.
Patrick Whewell | Software Engineer | SightLine Applications, Inc | Onboard Video Processing
From: William Gray <william.gray@linaro.orgmailto:william.gray@linaro.org> Sent: Wednesday, May 31, 2023 8:32 AM To: Patrick Whewell <patrick.whewell@sightlineapplications.commailto:patrick.whewell@sightlineapplications.com> Cc: sightlineapplications@lists.linaro.orgmailto:sightlineapplications@lists.linaro.org Subject: [Sightlineapplications] Re: RB5 platform
Vinod wrote a great blog post detailing how to boot the mainline kernel on Qualcomm devices: https://www.linaro.org/blog/let-s-boot-the-mainline-linux-kernel-on-qualcomm...
Here's a summary of the commands I execute on my ARM64 Linux dev PC to boot the Open-Q 865 with the new device tree:
# make defconfig # make Image.gz dtbs modules # make modules_install INSTALL_MOD_PATH=./modules_dir INSTALL_MOD_STRIP=1 # cat initramfs-test-image-qemuarm64-20230321073831-1379.rootfs.cpio.gz modules.cpio.gz > final-initramfs.cpio.gz # cat arch/arm64/boot/Image.gz arch/arm64/boot/dts/qcom/qrb5165-lantronix-openq865.dtb > Image.gz+dtb # CMDLINE="ignore_loglevel earlycon" # git clone https://git.codelinaro.org/clo/qsdk/oss/tools/skales --depth=1 # python2 ./skales/mkbootimg --kernel Image.gz+dtb --cmdline ${CMDLINE} --ramdisk final-initramfs.cpio.gz --base 0x80000000 --pagesize 4096 --output boot.img # fastboot boot boot.img
If you encounter any problems just let me know and I can help you out.
William Breathitt Gray
On Wed, 31 May 2023 at 10:32, William Gray <william.gray@linaro.orgmailto:william.gray@linaro.org> wrote: Hi Patrick,
Here's an an initial commit for the Lantronix Open-Q 865 devkit that gets it booting up to a console (albeit with a very spare DTS): https://git.codelinaro.org/william_gray/openq-865/-/commit/42f82bde586fd1c33...
The main files of interest are openq5165rb.dtsi which serves as an include for the the QRB5165RB SOM, while the qrb5165-lantronix-openq865.dts is the main DTS for the board. I based this around the definitions for the qrb5165-rb5 which is mostly compatible; I'll be making adjustments throughout to fit the openq865 more aptly (e.g. defining a pm8250 based on the existing pm8150 nodes).
You can follow my v5.15 development here: https://git.codelinaro.org/william_gray/openq-865/-/tree/openq865-v5.15
William Breathitt Gray
On Thu, 25 May 2023 at 13:27, William Gray <william.gray@linaro.orgmailto:william.gray@linaro.org> wrote: Hi Patrick,
I'm working on a device tree for Open-Q 865 that is based on the current arch/arm64/boot/dts/qcom/qrb5165-rb5.dts upstream in 6.4-rc1. I should have a basic bootable device tree ready for you to test by our next meeting on May 31. I'll also rebase a version on 5.15 so you can try that as well (qrb5165-rb5 device tree works on 5.15 so I don't anticipate any issues for the open-q 865).
William Breathitt Gray
On Thu, 25 May 2023 at 13:17, Patrick Whewell <patrick.whewell@sightlineapplications.commailto:patrick.whewell@sightlineapplications.com> wrote: Hello,
In our last meeting on May 17 it was mentioned that there was work being done on the Lantronix device tree and it was booting in 6.4(? I think that was the version) kernel.
How’s work on porting to 5.15 going? Is there a way to get the 6.4 kernel and the device tree to test out the booting locally for us?
Patrick Whewell Software Engineer He/him patrick.whewell@sightlineapplications.commailto:patrick.whewell@sightlineapplications.com www.sightlineapplications.comhttp://www.sightlineapplications.com/
5711 S Hood Ave., Suite 100 Portland, OR 97239
[cid:image001.png@01D99A0F.4EBE46A0]http://sightlineapplications.com/
_______________________________________________ Sightlineapplications mailing list -- sightlineapplications@lists.linaro.orgmailto:sightlineapplications@lists.linaro.org To unsubscribe send an email to sightlineapplications-leave@lists.linaro.orgmailto:sightlineapplications-leave@lists.linaro.org
sightlineapplications@lists.linaro.org