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

Fix support for Nvidia Jetson (ARM64) #38

Closed
raphaelscholle opened this issue May 31, 2022 · 9 comments · Fixed by #40
Closed

Fix support for Nvidia Jetson (ARM64) #38

raphaelscholle opened this issue May 31, 2022 · 9 comments · Fixed by #40

Comments

@raphaelscholle
Copy link

Hi, I just started using this awesome project and replace our self-hosted runners,
since you're basically emulating an ARM-cpu and download raspberry images, is there a possibility to also include Jetson images ?

@pguyot
Copy link
Owner

pguyot commented May 31, 2022

It should be doable, especially if they are really based on ubuntu linux.

This action considers partition 1 is boot and 2 is root, and the glob expression doesn't work with more than 9 partitions.
Apparently, the Jetson image I tried has 11 partitions. Do you know how they are organized and how they should be mounted?

https://github.com/pguyot/arm-runner-action/runs/6679373325?check_suite_focus=true#step:3:157

@raphaelscholle
Copy link
Author

raphaelscholle commented May 31, 2022

https://geekymind.de/jetson.png

looks like mmcblk0p1 is the main partition, the rest is just for the bootloader

so partition1 is root

btw. thanks for the fast reply and help :)

@pguyot
Copy link
Owner

pguyot commented Jun 1, 2022

Thanks. Got it working. Fixed in #39
Can you test it before we can call it a release?

The CI test is here:
https://github.com/pguyot/arm-runner-action/blob/main/.github/workflows/test-partitions.yml

@pguyot pguyot closed this as completed Jun 1, 2022
@raphaelscholle
Copy link
Author

wow thanks, I can try to test it tomorrow, guite buisy right now :)

@raphaelscholle
Copy link
Author

mounts and starts great, but I have a strange issue, networking isn't working (using jetson-nano-image) I'll invenstigate, maybe we only need dhclient or something like that :

2022-06-02T22:43:28.1450723Z ##[group]Run f204b58
2022-06-02T22:43:28.1451317Z with:
2022-06-02T22:43:28.1451991Z base_image: https://developer.download.nvidia.com/embedded/L4T/r32_Release_v6.1/Jetson_Nano_2GB/jetson-nano-2gb-jp46-sd-card-image.zip
2022-06-02T22:43:28.1452697Z cpu: cortex-a53
2022-06-02T22:43:28.1453038Z rootpartition: 1
2022-06-02T22:43:28.1453524Z commands: cat /etc/os-release
uname -a
ping google.de
sudo apt update
sudo apt upgrade

2022-06-02T22:43:28.1454047Z image_additional_mb: 0
2022-06-02T22:43:28.1454421Z bind_mount_repository: no
2022-06-02T22:43:28.1454766Z copy_artifact_dest: .
2022-06-02T22:43:28.1455108Z optimize_image: yes
2022-06-02T22:43:28.1455470Z use_systemd_nspawn: no
2022-06-02T22:43:28.1455786Z shell: /bin/sh
2022-06-02T22:43:28.1456104Z exit_on_fail: yes
2022-06-02T22:43:28.1456424Z debug: yes
2022-06-02T22:43:28.1456759Z import_github_env: no
2022-06-02T22:43:28.1457085Z export_github_env: no
2022-06-02T22:43:28.1457441Z env:
2022-06-02T22:43:28.1457743Z BUILD_TYPE: Release
2022-06-02T22:43:28.1458071Z ##[endgroup]
2022-06-02T22:43:28.1713819Z ##[group]Run sudo apt-get update && sudo apt-get install -y qemu qemu-user-static binfmt-support parted wget dosfstools zip
2022-06-02T22:43:28.1714708Z �[36;1msudo apt-get update && sudo apt-get install -y qemu qemu-user-static binfmt-support parted wget dosfstools zip�[0m
2022-06-02T22:43:28.1780681Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
2022-06-02T22:43:28.1781168Z env:
2022-06-02T22:43:28.1781463Z BUILD_TYPE: Release
2022-06-02T22:43:28.1781788Z ##[endgroup]
2022-06-02T22:43:28.3375105Z Hit:1 http://azure.archive.ubuntu.com/ubuntu focal InRelease
2022-06-02T22:43:28.3377574Z Get:2 http://azure.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
2022-06-02T22:43:28.3386334Z Get:3 http://azure.archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
2022-06-02T22:43:28.3410425Z Get:4 http://azure.archive.ubuntu.com/ubuntu focal-security InRelease [114 kB]
2022-06-02T22:43:28.3929991Z Get:5 https://packages.microsoft.com/ubuntu/20.04/prod focal InRelease [10.5 kB]
2022-06-02T22:43:28.5879063Z Hit:6 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu focal InRelease
2022-06-02T22:43:28.6065525Z Get:7 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1833 kB]
2022-06-02T22:43:28.6391408Z Get:8 http://azure.archive.ubuntu.com/ubuntu focal-updates/main Translation-en [337 kB]
2022-06-02T22:43:28.6426357Z Get:9 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 c-n-f Metadata [15.4 kB]
2022-06-02T22:43:28.6463785Z Get:10 http://azure.archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [1010 kB]
2022-06-02T22:43:28.6616828Z Get:11 http://azure.archive.ubuntu.com/ubuntu focal-updates/restricted Translation-en [144 kB]
2022-06-02T22:43:28.6782987Z Get:12 http://azure.archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [926 kB]
2022-06-02T22:43:28.6843543Z Get:13 http://azure.archive.ubuntu.com/ubuntu focal-updates/universe Translation-en [208 kB]
2022-06-02T22:43:28.6895651Z Get:14 http://azure.archive.ubuntu.com/ubuntu focal-updates/universe amd64 c-n-f Metadata [20.7 kB]
2022-06-02T22:43:28.7635820Z Get:15 http://azure.archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [23.7 kB]
2022-06-02T22:43:28.7652739Z Get:16 http://azure.archive.ubuntu.com/ubuntu focal-backports/universe amd64 c-n-f Metadata [860 B]
2022-06-02T22:43:28.9253114Z Get:17 http://azure.archive.ubuntu.com/ubuntu focal-security/main amd64 Packages [1491 kB]
2022-06-02T22:43:28.9514668Z Get:18 http://azure.archive.ubuntu.com/ubuntu focal-security/main Translation-en [257 kB]
2022-06-02T22:43:28.9519646Z Get:19 http://azure.archive.ubuntu.com/ubuntu focal-security/main amd64 c-n-f Metadata [10.4 kB]
2022-06-02T22:43:28.9545951Z Get:20 http://azure.archive.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [948 kB]
2022-06-02T22:43:28.9675020Z Get:21 http://azure.archive.ubuntu.com/ubuntu focal-security/restricted Translation-en [135 kB]
2022-06-02T22:43:28.9742791Z Get:22 http://azure.archive.ubuntu.com/ubuntu focal-security/universe amd64 Packages [705 kB]
2022-06-02T22:43:28.9867853Z Get:23 http://azure.archive.ubuntu.com/ubuntu focal-security/universe Translation-en [126 kB]
2022-06-02T22:43:28.9879888Z Get:24 http://azure.archive.ubuntu.com/ubuntu focal-security/universe amd64 c-n-f Metadata [14.5 kB]
2022-06-02T22:43:29.0622012Z Get:25 https://packages.microsoft.com/ubuntu/20.04/prod focal/main amd64 Packages [161 kB]
2022-06-02T22:43:35.4390452Z Fetched 8711 kB in 2s (4549 kB/s)
2022-06-02T22:43:36.5074377Z Reading package lists...
2022-06-02T22:43:36.6064760Z Reading package lists...
2022-06-02T22:43:36.8142032Z Building dependency tree...
2022-06-02T22:43:36.8158628Z Reading state information...
2022-06-02T22:43:36.9895304Z dosfstools is already the newest version (4.1-2).
2022-06-02T22:43:36.9896975Z dosfstools set to manually installed.
2022-06-02T22:43:36.9898794Z zip is already the newest version (3.0-11build1).
2022-06-02T22:43:36.9899993Z binfmt-support is already the newest version (2.2.0-2).
2022-06-02T22:43:36.9902309Z binfmt-support set to manually installed.
2022-06-02T22:43:36.9903534Z parted is already the newest version (3.3-4ubuntu0.20.04.1).
2022-06-02T22:43:36.9904942Z parted set to manually installed.
2022-06-02T22:43:36.9906056Z wget is already the newest version (1.20.3-1ubuntu2).
2022-06-02T22:43:37.0640670Z The following NEW packages will be installed:
2022-06-02T22:43:37.0641700Z qemu qemu-user-static
2022-06-02T22:43:37.1062661Z 0 upgraded, 2 newly installed, 0 to remove and 22 not upgraded.
2022-06-02T22:43:37.1748944Z Need to get 21.3 MB of archives.
2022-06-02T22:43:37.1750145Z After this operation, 208 MB of additional disk space will be used.
2022-06-02T22:43:37.1751545Z Get:1 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 qemu amd64 1:4.2-3ubuntu6.21 [15.2 kB]
2022-06-02T22:43:37.1959289Z Get:2 http://azure.archive.ubuntu.com/ubuntu focal-updates/universe amd64 qemu-user-static amd64 1:4.2-3ubuntu6.21 [21.2 MB]
2022-06-02T22:43:37.9460128Z Fetched 21.3 MB in 0s (64.7 MB/s)
2022-06-02T22:43:37.9875873Z Selecting previously unselected package qemu.
2022-06-02T22:43:38.0160478Z (Reading database ...
2022-06-02T22:43:38.0160942Z (Reading database ... 5%
2022-06-02T22:43:38.0161769Z (Reading database ... 10%
2022-06-02T22:43:38.0163622Z (Reading database ... 15%
2022-06-02T22:43:38.0179999Z (Reading database ... 20%
2022-06-02T22:43:38.0180320Z (Reading database ... 25%
2022-06-02T22:43:38.0180750Z (Reading database ... 30%
2022-06-02T22:43:38.0181017Z (Reading database ... 35%
2022-06-02T22:43:38.0181268Z (Reading database ... 40%
2022-06-02T22:43:38.0181545Z (Reading database ... 45%
2022-06-02T22:43:38.0181810Z (Reading database ... 50%
2022-06-02T22:43:38.0642575Z (Reading database ... 55%
2022-06-02T22:43:38.1104137Z (Reading database ... 60%
2022-06-02T22:43:38.1506974Z (Reading database ... 65%
2022-06-02T22:43:38.1750250Z (Reading database ... 70%
2022-06-02T22:43:38.2271599Z (Reading database ... 75%
2022-06-02T22:43:38.2842818Z (Reading database ... 80%
2022-06-02T22:43:38.3821147Z (Reading database ... 85%
2022-06-02T22:43:38.4736766Z (Reading database ... 90%
2022-06-02T22:43:38.5330880Z (Reading database ... 95%
2022-06-02T22:43:38.5331262Z (Reading database ... 100%
2022-06-02T22:43:38.5331608Z (Reading database ... 235546 files and directories currently installed.)
2022-06-02T22:43:38.5456452Z Preparing to unpack .../qemu_1%3a4.2-3ubuntu6.21_amd64.deb ...
2022-06-02T22:43:38.5482481Z Unpacking qemu (1:4.2-3ubuntu6.21) ...
2022-06-02T22:43:38.5800421Z Selecting previously unselected package qemu-user-static.
2022-06-02T22:43:38.6072468Z Preparing to unpack .../qemu-user-static_1%3a4.2-3ubuntu6.21_amd64.deb ...
2022-06-02T22:43:38.6096481Z Unpacking qemu-user-static (1:4.2-3ubuntu6.21) ...
2022-06-02T22:43:41.4132971Z Setting up qemu (1:4.2-3ubuntu6.21) ...
2022-06-02T22:43:41.4193358Z Setting up qemu-user-static (1:4.2-3ubuntu6.21) ...
2022-06-02T22:43:41.4612446Z Processing triggers for man-db (2.9.1-1) ...
2022-06-02T22:43:45.0058823Z ##[group]Run case cortex-a53 in
2022-06-02T22:43:45.0059186Z �[36;1mcase cortex-a53 in�[0m
2022-06-02T22:43:45.0059436Z �[36;1m"")�[0m
2022-06-02T22:43:45.0060018Z �[36;1m cpu="arm1176:cortex-a53"�[0m
2022-06-02T22:43:45.0060379Z �[36;1m;;�[0m
2022-06-02T22:43:45.0060833Z �[36;1marm1176)�[0m
2022-06-02T22:43:45.0061093Z �[36;1m cpu="arm1176:cortex-a53"�[0m
2022-06-02T22:43:45.0061331Z �[36;1m;;�[0m
2022-06-02T22:43:45.0061559Z �[36;1mcortex-a7)�[0m
2022-06-02T22:43:45.0061833Z �[36;1m cpu="cortex-a7:cortex-a53"�[0m
2022-06-02T22:43:45.0062096Z �[36;1m;;�[0m
2022-06-02T22:43:45.0062308Z �[36;1mcortex-a8)�[0m
2022-06-02T22:43:45.0062572Z �[36;1m cpu="cortex-a8:max"�[0m
2022-06-02T22:43:45.0062815Z �[36;1m;;�[0m
2022-06-02T22:43:45.0063028Z �[36;1mcortex-a53)�[0m
2022-06-02T22:43:45.0063289Z �[36;1m cpu="max:cortex-a53"�[0m
2022-06-02T22:43:45.0063534Z �[36;1m;;�[0m
2022-06-02T22:43:45.0063729Z �[36;1m*)�[0m
2022-06-02T22:43:45.0063966Z �[36;1m cpu=cortex-a53�[0m
2022-06-02T22:43:45.0064207Z �[36;1mesac�[0m
2022-06-02T22:43:45.0064429Z �[36;1marm_cpu=${cpu%:}�[0m
2022-06-02T22:43:45.0064690Z �[36;1maarch64_cpu=${cpu#
:}�[0m
2022-06-02T22:43:45.0065035Z �[36;1msudo mv /usr/bin/qemu-arm-static /usr/bin/qemu-arm-static0�[0m
2022-06-02T22:43:45.0065448Z �[36;1msudo mv /usr/bin/qemu-aarch64-static /usr/bin/qemu-aarch64-static0�[0m
2022-06-02T22:43:45.0066059Z �[36;1msudo gcc -static /home/runner/work/_actions/pguyot/arm-runner-action/f204b58258d5b01e297eec6db036a14b11dc9ffa/qemu-wrapper.c -DQEMU_CPU=${arm_cpu} -O3 -s -o /usr/bin/qemu-arm-static�[0m
2022-06-02T22:43:45.0066823Z �[36;1msudo gcc -static /home/runner/work/_actions/pguyot/arm-runner-action/f204b58258d5b01e297eec6db036a14b11dc9ffa/qemu-wrapper.c -DQEMU_CPU=${aarch64_cpu} -O3 -s -o /usr/bin/qemu-aarch64-static�[0m
2022-06-02T22:43:45.0067520Z �[36;1msudo update-binfmts --disable qemu-arm�[0m
2022-06-02T22:43:45.0067864Z �[36;1msudo update-binfmts --disable qemu-aarch64�[0m
2022-06-02T22:43:45.0068223Z �[36;1msudo update-binfmts --enable qemu-arm�[0m
2022-06-02T22:43:45.0068569Z �[36;1msudo update-binfmts --enable qemu-aarch64�[0m
2022-06-02T22:43:45.0130041Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
2022-06-02T22:43:45.0130356Z env:
2022-06-02T22:43:45.0130571Z BUILD_TYPE: Release
2022-06-02T22:43:45.0130815Z ##[endgroup]
2022-06-02T22:43:45.9094910Z ##[group]Run bash /home/runner/work/_actions/pguyot/arm-runner-action/f204b58258d5b01e297eec6db036a14b11dc9ffa/download_image.sh https://developer.download.nvidia.com/embedded/L4T/r32_Release_v6.1/Jetson_Nano_2GB/jetson-nano-2gb-jp46-sd-card-image.zip
2022-06-02T22:43:45.9096001Z �[36;1mbash /home/runner/work/_actions/pguyot/arm-runner-action/f204b58258d5b01e297eec6db036a14b11dc9ffa/download_image.sh https://developer.download.nvidia.com/embedded/L4T/r32_Release_v6.1/Jetson_Nano_2GB/jetson-nano-2gb-jp46-sd-card-image.zip�[0m
2022-06-02T22:43:45.9159130Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
2022-06-02T22:43:45.9159472Z env:
2022-06-02T22:43:45.9159692Z BUILD_TYPE: Release
2022-06-02T22:43:45.9159940Z ##[endgroup]
2022-06-02T22:44:15.1225348Z Archive: jetson-nano-2gb-jp46-sd-card-image.zip
2022-06-02T22:47:14.9499484Z inflating: sd-blob.img
2022-06-02T22:47:15.0453157Z ##[group]Run sudo bash /home/runner/work/_actions/pguyot/arm-runner-action/f204b58258d5b01e297eec6db036a14b11dc9ffa/mount_image.sh /home/runner/work/_temp/arm-runner/arm-runner.img 0 no 1
2022-06-02T22:47:15.0454080Z �[36;1msudo bash /home/runner/work/_actions/pguyot/arm-runner-action/f204b58258d5b01e297eec6db036a14b11dc9ffa/mount_image.sh /home/runner/work/_temp/arm-runner/arm-runner.img 0 no 1 �[0m
2022-06-02T22:47:15.0521443Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
2022-06-02T22:47:15.0521813Z env:
2022-06-02T22:47:15.0522227Z BUILD_TYPE: Release
2022-06-02T22:47:15.0522556Z ##[endgroup]
2022-06-02T22:47:15.1209379Z Created loopback device /dev/loop3
2022-06-02T22:47:17.8984715Z /dev/loop3: gpt partitions 2 3 4 5 6 7 8 9 10 11 12 13 14 1
2022-06-02T22:47:17.9551074Z mount: /home/actions/temp/arm-runner/mnt/boot: wrong fs type, bad option, bad superblock on , missing codepage or helper program, or other error.
2022-06-02T22:47:17.9900274Z cp: cannot stat '/home/actions/temp/arm-runner/mnt/etc/resolv.conf': No such file or directory
2022-06-02T22:47:17.9919170Z cp: not writing through dangling symlink '/home/actions/temp/arm-runner/mnt/etc/resolv.conf'
2022-06-02T22:47:18.0574238Z ##[group]Run case "yes" in
2022-06-02T22:47:18.0574834Z �[36;1mcase "yes" in�[0m
2022-06-02T22:47:18.0575165Z �[36;1myes|true)�[0m
2022-06-02T22:47:18.0575484Z �[36;1m debug='x'�[0m
2022-06-02T22:47:18.0575766Z �[36;1m set -x�[0m
2022-06-02T22:47:18.0576118Z �[36;1m;;�[0m
2022-06-02T22:47:18.0576422Z �[36;1mno|false)�[0m
2022-06-02T22:47:18.0576685Z �[36;1m debug=''�[0m
2022-06-02T22:47:18.0576991Z �[36;1m;;�[0m
2022-06-02T22:47:18.0577328Z �[36;1mesac�[0m
2022-06-02T22:47:18.0577599Z �[36;1mrepository_path=�[0m
2022-06-02T22:47:18.0577986Z �[36;1mif [ "${repository_path}x" = "x" ]; then�[0m
2022-06-02T22:47:18.0578505Z �[36;1m repository_name=basename /home/runner/work/Open.HD/Open.HD�[0m
2022-06-02T22:47:18.0578908Z �[36;1m repository_path=/${repository_name}�[0m
2022-06-02T22:47:18.0579308Z �[36;1mfi�[0m
2022-06-02T22:47:18.0579620Z �[36;1mcase "yes" in�[0m
2022-06-02T22:47:18.0579890Z �[36;1myes|true)�[0m
2022-06-02T22:47:18.0580216Z �[36;1m exit_on_fail='e'�[0m
2022-06-02T22:47:18.0580785Z �[36;1m;;�[0m
2022-06-02T22:47:18.0581221Z �[36;1mno|false)�[0m
2022-06-02T22:47:18.0581549Z �[36;1m exit_on_fail=''�[0m
2022-06-02T22:47:18.0581855Z �[36;1m;;�[0m
2022-06-02T22:47:18.0582293Z �[36;1mesac�[0m
2022-06-02T22:47:18.0582543Z �[36;1mshell=/bin/sh�[0m
2022-06-02T22:47:18.0582900Z �[36;1mshell_package=�[0m
2022-06-02T22:47:18.0583283Z �[36;1m[ -x /home/actions/temp/arm-runner/mnt/${shell} ] || \�[0m
2022-06-02T22:47:18.0583714Z �[36;1mshell_path=$(sudo chroot /home/actions/temp/arm-runner/mnt which ${shell}) || \�[0m
2022-06-02T22:47:18.0584161Z �[36;1mcase ${shell} in�[0m
2022-06-02T22:47:18.0584510Z �[36;1mbash|sh)�[0m
2022-06-02T22:47:18.0584758Z �[36;1m :�[0m
2022-06-02T22:47:18.0585042Z �[36;1m;;�[0m
2022-06-02T22:47:18.0585346Z �[36;1m*)�[0m
2022-06-02T22:47:18.0585739Z �[36;1m sudo chroot /home/actions/temp/arm-runner/mnt sudo apt-get install -y ${shell_package:-${shell##/}}�[0m
2022-06-02T22:47:18.0586211Z �[36;1m;;�[0m
2022-06-02T22:47:18.0586499Z �[36;1mesac�[0m
2022-06-02T22:47:18.0586875Z �[36;1mshell_path=${shell_path:-$(sudo chroot /home/actions/temp/arm-runner/mnt which ${shell})}�[0m
2022-06-02T22:47:18.0587443Z �[36;1msudo mkdir -p $(dirname /home/actions/temp/arm-runner/mnt${repository_path})�[0m
2022-06-02T22:47:18.0587896Z �[36;1mcase no in�[0m
2022-06-02T22:47:18.0588239Z �[36;1myes|true)�[0m
2022-06-02T22:47:18.0588593Z �[36;1m sudo mkdir -p /home/actions/temp/arm-runner/mnt${repository_path}�[0m
2022-06-02T22:47:18.0589166Z �[36;1m sudo mount --bind /home/runner/work/Open.HD/Open.HD /home/actions/temp/arm-runner/mnt${repository_path}�[0m
2022-06-02T22:47:18.0589614Z �[36;1m;;�[0m
2022-06-02T22:47:18.0589861Z �[36;1mno|false)�[0m
2022-06-02T22:47:18.0590345Z �[36;1m sudo cp -Rp /home/runner/work/Open.HD/Open.HD /home/actions/temp/arm-runner/mnt${repository_path}�[0m
2022-06-02T22:47:18.0590783Z �[36;1m;;�[0m
2022-06-02T22:47:18.0591091Z �[36;1mesac�[0m
2022-06-02T22:47:18.0591383Z �[36;1mif [ "nox" != "x" -a "nox" != "nox" ]; then�[0m
2022-06-02T22:47:18.0591792Z �[36;1m chroot_script_dir=/scripts�[0m
2022-06-02T22:47:18.0592224Z �[36;1m script_dir=${RUNNER_TEMP:-/home/actions/temp}/scripts�[0m
2022-06-02T22:47:18.0592566Z �[36;1melse�[0m
2022-06-02T22:47:18.0592902Z �[36;1m chroot_script_dir=/tmp�[0m
2022-06-02T22:47:18.0593312Z �[36;1m script_dir=/home/actions/temp/arm-runner/mnt/tmp�[0m
2022-06-02T22:47:18.0593658Z �[36;1mfi�[0m
2022-06-02T22:47:18.0593984Z �[36;1mmkdir -p ${script_dir}�[0m
2022-06-02T22:47:18.0594391Z �[36;1mscript_path=${script_dir}/commands.sh�[0m
2022-06-02T22:47:18.0594937Z �[36;1msudo touch ${script_path}�[0m
2022-06-02T22:47:18.0595254Z �[36;1msudo chmod o+wx ${script_path}�[0m
2022-06-02T22:47:18.0595676Z �[36;1mecho "#!${shell_path}" > ${script_path}�[0m
2022-06-02T22:47:18.0596109Z �[36;1mecho "set -${debug}${exit_on_fail}" >> ${script_path}�[0m
2022-06-02T22:47:18.0596437Z �[36;1mcase "no" in�[0m
2022-06-02T22:47:18.0596833Z �[36;1myes|true)�[0m
2022-06-02T22:47:18.0597416Z �[36;1m export | sed -e 's/^declare -x //g;s/^[^=]
$/\0=""/g;s/='''(.*)'''$/=\1/g' >> ${script_dir}/environment.sh�[0m
2022-06-02T22:47:18.0597980Z �[36;1m echo ". ${chroot_script_dir}/environment.sh" >> ${script_path}�[0m
2022-06-02T22:47:18.0598320Z �[36;1m;;�[0m
2022-06-02T22:47:18.0598618Z �[36;1mesac�[0m
2022-06-02T22:47:18.0598927Z �[36;1mcase "no" in�[0m
2022-06-02T22:47:18.0599220Z �[36;1myes|true)�[0m
2022-06-02T22:47:18.0599639Z �[36;1m echo "GITHUB_ENV=${chroot_script_dir}/github_env.sh" >> ${script_path}�[0m
2022-06-02T22:47:18.0600036Z �[36;1m;;�[0m
2022-06-02T22:47:18.0600331Z �[36;1mesac�[0m
2022-06-02T22:47:18.0600643Z �[36;1mecho "cd ${repository_path}" >> ${script_path}�[0m
2022-06-02T22:47:18.0601127Z �[36;1mcat >> ${script_path} <<"ARM_RUNNER_INPUT_COMMANDS_EOF"�[0m
2022-06-02T22:47:18.0601528Z �[36;1mcat /etc/os-release�[0m
2022-06-02T22:47:18.0601810Z �[36;1muname -a�[0m
2022-06-02T22:47:18.0602152Z �[36;1mping google.de�[0m
2022-06-02T22:47:18.0602532Z �[36;1msudo apt update�[0m
2022-06-02T22:47:18.0602814Z �[36;1msudo apt upgrade�[0m
2022-06-02T22:47:18.0603131Z �[36;1m�[0m
2022-06-02T22:47:18.0603469Z �[36;1mARM_RUNNER_INPUT_COMMANDS_EOF�[0m
2022-06-02T22:47:18.0603805Z �[36;1mif [ "nox" != "x" -a "nox" != "nox" ]; then�[0m
2022-06-02T22:47:18.0604352Z �[36;1m sudo apt-get install -y systemd-container�[0m
2022-06-02T22:47:18.0604955Z �[36;1m sudo systemd-nspawn -q -a --bind=${script_dir}:${chroot_script_dir} -D /home/actions/temp/arm-runner/mnt ${shell_path} ${chroot_script_dir}/commands.sh�[0m
2022-06-02T22:47:18.0605478Z �[36;1melse�[0m
2022-06-02T22:47:18.0605850Z �[36;1m sudo chroot /home/actions/temp/arm-runner/mnt ${chroot_script_dir}/commands.sh�[0m
2022-06-02T22:47:18.0606276Z �[36;1mfi�[0m
2022-06-02T22:47:18.0606602Z �[36;1mrc=$?�[0m
2022-06-02T22:47:18.0606905Z �[36;1m[ -f ${script_dir}/github_env.sh ] && \�[0m
2022-06-02T22:47:18.0734228Z �[36;1m cat ${script_dir}/github_env.sh >> $GITHUB_ENV�[0m
2022-06-02T22:47:18.0734573Z �[36;1mexit $rc�[0m
2022-06-02T22:47:18.0794082Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
2022-06-02T22:47:18.0794393Z env:
2022-06-02T22:47:18.0794624Z BUILD_TYPE: Release
2022-06-02T22:47:18.0794856Z ##[endgroup]
2022-06-02T22:47:18.0887776Z + repository_path=
2022-06-02T22:47:18.0891136Z + '[' x = x ']'
2022-06-02T22:47:18.0898067Z ++ basename /home/runner/work/Open.HD/Open.HD
2022-06-02T22:47:18.0910098Z + repository_name=Open.HD
2022-06-02T22:47:18.0910613Z + repository_path=/Open.HD
2022-06-02T22:47:18.0914498Z + case "yes" in
2022-06-02T22:47:18.0914931Z + exit_on_fail=e
2022-06-02T22:47:18.0917422Z + shell=/bin/sh
2022-06-02T22:47:18.0917825Z + shell_package=
2022-06-02T22:47:18.0921080Z + '[' -x /home/actions/temp/arm-runner/mnt//bin/sh ']'
2022-06-02T22:47:18.0951693Z ++ sudo chroot /home/actions/temp/arm-runner/mnt which /bin/sh
2022-06-02T22:47:18.2008401Z + shell_path=/bin/sh
2022-06-02T22:47:18.2012331Z ++ dirname /home/actions/temp/arm-runner/mnt/Open.HD
2022-06-02T22:47:18.2026356Z + sudo mkdir -p /home/actions/temp/arm-runner/mnt
2022-06-02T22:47:18.2106380Z + case no in
2022-06-02T22:47:18.2107122Z + sudo cp -Rp /home/runner/work/Open.HD/Open.HD /home/actions/temp/arm-runner/mnt/Open.HD
2022-06-02T22:47:18.2195016Z + '[' nox '!=' x -a nox '!=' nox ']'
2022-06-02T22:47:18.2195523Z + chroot_script_dir=/tmp
2022-06-02T22:47:18.2196031Z + script_dir=/home/actions/temp/arm-runner/mnt/tmp
2022-06-02T22:47:18.2196564Z + mkdir -p /home/actions/temp/arm-runner/mnt/tmp
2022-06-02T22:47:18.2209599Z + script_path=/home/actions/temp/arm-runner/mnt/tmp/commands.sh
2022-06-02T22:47:18.2210614Z + sudo touch /home/actions/temp/arm-runner/mnt/tmp/commands.sh
2022-06-02T22:47:18.2292256Z + sudo chmod o+wx /home/actions/temp/arm-runner/mnt/tmp/commands.sh
2022-06-02T22:47:18.2367716Z + echo '#!/bin/sh'
2022-06-02T22:47:18.2377434Z + echo 'set -xe'
2022-06-02T22:47:18.2377823Z + case "no" in
2022-06-02T22:47:18.2378083Z + case "no" in
2022-06-02T22:47:18.2378385Z + echo 'cd /Open.HD'
2022-06-02T22:47:18.2378608Z + cat
2022-06-02T22:47:18.2394875Z + '[' nox '!=' x -a nox '!=' nox ']'
2022-06-02T22:47:18.2395609Z + sudo chroot /home/actions/temp/arm-runner/mnt /tmp/commands.sh
2022-06-02T22:47:18.2754874Z + cd /Open.HD
2022-06-02T22:47:18.2765292Z + cat /etc/os-release
2022-06-02T22:47:18.3177984Z NAME="Ubuntu"
2022-06-02T22:47:18.3178350Z VERSION="18.04.5 LTS (Bionic Beaver)"
2022-06-02T22:47:18.3178622Z ID=ubuntu
2022-06-02T22:47:18.3178846Z ID_LIKE=debian
2022-06-02T22:47:18.3179099Z PRETTY_NAME="Ubuntu 18.04.5 LTS"
2022-06-02T22:47:18.3179365Z VERSION_ID="18.04"
2022-06-02T22:47:18.3179679Z HOME_URL="https://www.ubuntu.com/"
2022-06-02T22:47:18.3180002Z SUPPORT_URL="https://help.ubuntu.com/"
2022-06-02T22:47:18.3180370Z BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
2022-06-02T22:47:18.3181396Z PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
2022-06-02T22:47:18.3181800Z VERSION_CODENAME=bionic
2022-06-02T22:47:18.3182050Z UBUNTU_CODENAME=bionic
2022-06-02T22:47:18.3216330Z + uname -a
2022-06-02T22:47:18.3560562Z Linux fv-az177-982 5.13.0-1025-azure #29~20.04.1-Ubuntu SMP Thu May 19 14:50:45 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux
2022-06-02T22:47:18.3585908Z + ping google.de
2022-06-02T22:47:18.4281143Z ping: google.de: Name or service not known
2022-06-02T22:47:18.4350989Z ##[error]Process completed with exit code 2.

@pguyot
Copy link
Owner

pguyot commented Jun 6, 2022

The resolve.conf is copied here:

https://github.com/pguyot/arm-runner-action/blob/main/mount_image.sh#L76

There is obviously something wrong here:

2022-06-02T22:47:17.9551074Z mount: /home/actions/temp/arm-runner/mnt/boot: wrong fs type, bad option, bad superblock on , missing codepage or helper program, or other error.
2022-06-02T22:47:17.9900274Z cp: cannot stat '/home/actions/temp/arm-runner/mnt/etc/resolv.conf': No such file or directory
2022-06-02T22:47:17.9919170Z cp: not writing through dangling symlink '/home/actions/temp/arm-runner/mnt/etc/resolv.conf'

@pguyot pguyot reopened this Jun 6, 2022
@pguyot pguyot changed the title Is there a posibility to include Nvidia Jetson (ARM64) Fix support for Nvidia Jetson (ARM64) Jun 6, 2022
@pguyot pguyot linked a pull request Jun 6, 2022 that will close this issue
@pguyot pguyot closed this as completed in #40 Jun 6, 2022
@pguyot
Copy link
Owner

pguyot commented Jun 6, 2022

After few attempts, I was able to get it right. Could you please test it again?
BTW, you probably want to ping with -c 1.

@raphaelscholle
Copy link
Author

looks great, didn't find any bugs, really big thank you :)

@pguyot
Copy link
Owner

pguyot commented Jun 7, 2022

Thanks for testing. Just released that as v2.4.0

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

Successfully merging a pull request may close this issue.

2 participants