{"action":"created","issue":{"url":"https://api.github.com/repos/paralin/SkiffOS/issues/60","repository_url":"https://api.github.com/repos/paralin/SkiffOS","labels_url":"https://api.github.com/repos/paralin/SkiffOS/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/paralin/SkiffOS/issues/60/comments","events_url":"https://api.github.com/repos/paralin/SkiffOS/issues/60/events","html_url":"https://github.com/paralin/SkiffOS/issues/60","id":298790444,"number":60,"title":"odroid/common: format & install commands after docker build","user":{"login":"adriengibrat","id":62407,"avatar_url":"https://avatars2.githubusercontent.com/u/62407?v=4","gravatar_id":"","url":"https://api.github.com/users/adriengibrat","html_url":"https://github.com/adriengibrat","followers_url":"https://api.github.com/users/adriengibrat/followers","following_url":"https://api.github.com/users/adriengibrat/following{/other_user}","gists_url":"https://api.github.com/users/adriengibrat/gists{/gist_id}","starred_url":"https://api.github.com/users/adriengibrat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adriengibrat/subscriptions","organizations_url":"https://api.github.com/users/adriengibrat/orgs","repos_url":"https://api.github.com/users/adriengibrat/repos","events_url":"https://api.github.com/users/adriengibrat/events{/privacy}","received_events_url":"https://api.github.com/users/adriengibrat/received_events","type":"User","site_admin":false},"labels":[{"id":362253914,"url":"https://api.github.com/repos/paralin/SkiffOS/labels/bug","name":"bug","color":"ee0701","default":true},{"id":807955874,"url":"https://api.github.com/repos/paralin/SkiffOS/labels/has-workaround","name":"has-workaround","color":"238c00","default":false},{"id":362253919,"url":"https://api.github.com/repos/paralin/SkiffOS/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":{"login":"paralin","id":534887,"avatar_url":"https://avatars2.githubusercontent.com/u/534887?v=4","gravatar_id":"","url":"https://api.github.com/users/paralin","html_url":"https://github.com/paralin","followers_url":"https://api.github.com/users/paralin/followers","following_url":"https://api.github.com/users/paralin/following{/other_user}","gists_url":"https://api.github.com/users/paralin/gists{/gist_id}","starred_url":"https://api.github.com/users/paralin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paralin/subscriptions","organizations_url":"https://api.github.com/users/paralin/orgs","repos_url":"https://api.github.com/users/paralin/repos","events_url":"https://api.github.com/users/paralin/events{/privacy}","received_events_url":"https://api.github.com/users/paralin/received_events","type":"User","site_admin":false},"assignees":[{"login":"paralin","id":534887,"avatar_url":"https://avatars2.githubusercontent.com/u/534887?v=4","gravatar_id":"","url":"https://api.github.com/users/paralin","html_url":"https://github.com/paralin","followers_url":"https://api.github.com/users/paralin/followers","following_url":"https://api.github.com/users/paralin/following{/other_user}","gists_url":"https://api.github.com/users/paralin/gists{/gist_id}","starred_url":"https://api.github.com/users/paralin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paralin/subscriptions","organizations_url":"https://api.github.com/users/paralin/orgs","repos_url":"https://api.github.com/users/paralin/repos","events_url":"https://api.github.com/users/paralin/events{/privacy}","received_events_url":"https://api.github.com/users/paralin/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2018-02-20T23:40:14Z","updated_at":"2018-02-25T20:21:00Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Hi,\r\n\r\nI had some issues to burn my sd card with my image build in docker.\r\nI could not sudo inside docker (as buildroot user without password and sudo is not available in the container).\r\n\r\nAs I want to use SkiffOS on my odroid hc1 (xu4 compatible), i've tried to run outside docker:\r\n```\r\n$ cd /home/adrien/SkiffOS\r\n$ sudo bash\r\n$ export ODROID_SD=/dev/mmcblk0 # I'm using a SD card adapter to burn my micro sd scard\r\n$ make cmd/odroid/xu4/format\r\n```\r\nActually I've ran  `cmd/odroid/common/format` as the script to format is in the common/scripts dir, but the actual issue seems there is a variable with the path `/home/buildroot/skiff/` as default or hard coded, probably because I've compiled the image using docker:\r\n```\r\n> make cmd/odroid/common/format\r\nmake[1]: Entering directory '/home/adrien/SkiffOS/build'\r\nmake[2]: Entering directory '/home/adrien/SkiffOS/configs/odroid/common/extensions'\r\nmake[2]: /home/buildroot/skiff/configs/odroid/common/scripts/format_sd.sh : command not found\r\n```\r\nThen, I've looked at the [format_sd.sh](https://github.com/paralin/SkiffOS/blob/master/configs/odroid/common/scripts/format_sd.sh) & [install_sd.sh](https://github.com/paralin/SkiffOS/blob/master/configs/odroid/common/scripts/install_sd.sh) shell scripts and decided to run them without `make` (I'm a noob with `make`).\r\n\r\nI still had minor issues to figure out:\r\n- in my workspaces/default dir the `output` & `staging` symlinks where broken (because they were linking to `/home/buildroot/skiff/workspaces/default`)\r\n- because i'm using a sd card adapter & reader to access my microSD, the partitions names were not sdx**1**, sdx**2**, sdx**3** but mmcblkx**p1**, mmcblkx**p2** & mmcblkx**p3**, so I had to tweak the scripts everywhere a [partition number is appended to the sdcard path](https://github.com/paralin/SkiffOS/blob/master/configs/odroid/common/scripts/format_sd.sh#L81)\r\n\r\nN.B. In the end I manage to burn the SD card, and boot the odroid ;) \r\nThe command I've ran, with necessary  variables:\r\n```\r\n$ SKIFF_CURRENT_CONF_DIR=/home/adrien/SkiffOS/configs/odroid/xu4/ BUILDROOT_DIR=/home/adrien/SkiffOS/workspaces/default ODROID_SD=/dev/mmcblk0 ./configs/odroid/common/scripts/format_sd.sh\r\n$ SKIFF_CURRENT_CONF_DIR=/home/adrien/SkiffOS/configs/odroid/common BUILDROOT_DIR=/home/adrien/SkiffOS/workspaces/default SKIFF_CONFIG_PATH=/home/adrien/SkiffOS/configs/odroid/xu4 ODROID_SD=/dev/mmcblk0 ./configs/odroid/common/scripts/install_sd.sh\r\n```\r\n\r\nSkiffOS, is running, it's light and fast!\r\n\r\nI don't have any blocking issue, but i thought I should report here to allow some doc/make config improvements ;)"},"comment":{"url":"https://api.github.com/repos/paralin/SkiffOS/issues/comments/368341099","html_url":"https://github.com/paralin/SkiffOS/issues/60#issuecomment-368341099","issue_url":"https://api.github.com/repos/paralin/SkiffOS/issues/60","id":368341099,"user":{"login":"adriengibrat","id":62407,"avatar_url":"https://avatars2.githubusercontent.com/u/62407?v=4","gravatar_id":"","url":"https://api.github.com/users/adriengibrat","html_url":"https://github.com/adriengibrat","followers_url":"https://api.github.com/users/adriengibrat/followers","following_url":"https://api.github.com/users/adriengibrat/following{/other_user}","gists_url":"https://api.github.com/users/adriengibrat/gists{/gist_id}","starred_url":"https://api.github.com/users/adriengibrat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adriengibrat/subscriptions","organizations_url":"https://api.github.com/users/adriengibrat/orgs","repos_url":"https://api.github.com/users/adriengibrat/repos","events_url":"https://api.github.com/users/adriengibrat/events{/privacy}","received_events_url":"https://api.github.com/users/adriengibrat/received_events","type":"User","site_admin":false},"created_at":"2018-02-25T20:21:00Z","updated_at":"2018-02-25T20:21:00Z","author_association":"CONTRIBUTOR","body":"yes, I saw scripts/primary_env.sh, I meant where are set/overriden variable/path (pointing to '/home/buildroot'). I'll give it a second try."}}
{"actor":{"display_login":"adriengibrat"}}