{"id":686,"date":"2023-04-07T09:20:02","date_gmt":"2023-04-07T09:20:02","guid":{"rendered":"https:\/\/blog.kpolberg.net\/?p=686"},"modified":"2023-04-09T09:53:46","modified_gmt":"2023-04-09T09:53:46","slug":"raspbee-on-le-potato","status":"publish","type":"post","link":"https:\/\/blog.kpolberg.net\/?p=686","title":{"rendered":"raspbee on le potato"},"content":{"rendered":"\n<p>In short, the gpio pins are the same as on the raspberry pi, so the only thing we need to do is add the correct dt overlay and reboot.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># wget https:\/\/raw.githubusercontent.com\/libre-computer-project\/libretech-overlays\/for-4.13.y\/overlays\/meson-gxl-s905x-libretech-cc-uarta.dts\n# armbian-add-overlay meson-gxl-s905x-libretech-cc-uarta.dts\n# reboot<\/code><\/pre>\n\n\n\n<p>The uart will now be available at \/dev\/ttyAML6<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># dmesg | grep -i AML\n&#91;    0.000000] Machine model: Libre Computer AML-S905X-CC\n&#91;    0.000000] Kernel command line: root=UUID=cf37c48a-ba15-4e4e-9944-b06c87736116 rootwait rootfstype=ext4 splash=verbose console=ttyAML0,115200 console=tty1 consoleblank=0 coherent_pool=2M loglevel=1 ubootpart=8a0630c8-01 libata.force=noncq usb-storage.quirks=    cgroup_enable=memory swapaccount=1\n&#91;    1.328575] soc soc0: Amlogic Meson GXL (S905X) Revision 21:d (84:2) Detected\n&#91;    1.338375] c11084c0.serial: ttyAML6 at MMIO 0xc11084c0 (irq = 18, base_baud = 1500000) is a meson_uart\n&#91;    1.339501] c1108700.serial: ttyAML7 at MMIO 0xc1108700 (irq = 19, base_baud = 1500000) is a meson_uart\n&#91;    1.340352] c81004c0.serial: ttyAML0 at MMIO 0xc81004c0 (irq = 20, base_baud = 1500000) is a meson_uart<\/code><\/pre>\n\n\n\n<p>And we just tell zigbee2mqtt which device to use in the docker container.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># docker run -d --name zigbee2mqtt --restart=unless-stopped --device=\/dev\/ttyAML6:\/dev\/ttyAML6 -p 8092:8080 -v \/root\/zigbee2mqtt\/data:\/app\/data -v \/run\/udev:\/run\/udev:ro -e TZ=Europe\/Oslo koenkk\/zigbee2mqtt<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>In short, the gpio pins are the same as on the raspberry pi, so the only thing we need to do is add the correct dt overlay and reboot. The uart will now be available at \/dev\/ttyAML6 And we just tell zigbee2mqtt which device to use in the docker container.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[9,10],"tags":[150,145,144,149,147,146,148],"class_list":["post-686","post","type-post","status-publish","format-standard","hentry","category-data","category-linux-data","tag-aml-s905x-cc","tag-armbian","tag-le-potato","tag-libre","tag-raspbee","tag-uart","tag-zigbee2mqtt"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/blog.kpolberg.net\/index.php?rest_route=\/wp\/v2\/posts\/686","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.kpolberg.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.kpolberg.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.kpolberg.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.kpolberg.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=686"}],"version-history":[{"count":3,"href":"https:\/\/blog.kpolberg.net\/index.php?rest_route=\/wp\/v2\/posts\/686\/revisions"}],"predecessor-version":[{"id":689,"href":"https:\/\/blog.kpolberg.net\/index.php?rest_route=\/wp\/v2\/posts\/686\/revisions\/689"}],"wp:attachment":[{"href":"https:\/\/blog.kpolberg.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=686"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.kpolberg.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=686"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.kpolberg.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=686"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}