You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running sudo ./uart_control gpio on Raspberry pi 4 returns a File name too long error.
Steps before this were: wget https://github.com/itemir/rpi_boat_utils/raw/master/uart_control/uart_control chmod +x ./uart_control sudo ./uart_control gpio
Trying to make it work with a daisy hat.
Full error message (very long) is below: ./uart_control: 1: {payload:{allShortcutsEnabled:false,path:uart_control,repo:{id:79987790,defaultBranch:master,name:rpi_boat_utils,ownerLogin:itemir,currentUserCanPush:false,isFork:false,isEmpty:false,createdAt:2017-01-25T06:04:28.000Z,ownerAvatar:https://avatars.githubusercontent.com/u/8331463?v=4,public:true,private:false,isOrgOwned:false},currentUser:null,refInfo:{name:master,listCacheKey:v0:1485324268.0,canEdit:false,refType:branch,currentOid:7f35bc67053736bb30b54bacd40d8188901a0252},tree:{items:[{name:README.md,path:uart_control/README.md,contentType:file},{name:uart_control,path:uart_control/uart_control,contentType:file}],templateDirectorySuggestionUrl:null,readme:{displayName:README.md,richText:<article class="markdown-body entry-content container-lg" itemprop="text"><h2 tabindex="-1" id="user-content-uart_control" dir="auto"><a class="heading-link" href="#uart_control">uart_control<svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></h2>\n<p dir="auto">Allows auto configuration of UART. UART is normally used by the console on Raspberry Pi 0, 1 and 2. On Raspberry Pi 3, UART is used by the Bluetooth module and console is assigned to a software based UART known as mini UART. Many custom boards require access to UART via GPIO pins 14 and 15. This requires a set of configuration changes that differ per platform. This command line utility allows making UART available to custom applications.</p>\n<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ sudo ./uart_control\nUsage:\n ./uart_control [ OPTION ]\n default Restores original state\n gpio Makes UART available on GPIO pins 14 & 15\n status Displays current status\n$"><pre class="notranslate"><code>$ sudo ./uart_control\nUsage:\n ./uart_control [ OPTION ]\n default Restores original state\n gpio Makes UART available on GPIO pins 14 & 15\n status Displays current status\n$\n</code></pre></div>\n<p dir="auto">You can see the status of UART with the status option:</p>\n<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ sudo ./uart_control status\nConsole : disabled\nUART : enabled\nBluetooth : enabled\n\nUART is available to GPIO 14 & 15.\n$"><pre class="notranslate"><code>$ sudo ./uart_control status\nConsole : disabled\nUART : enabled\nBluetooth : enabled\n\nUART is available to GPIO 14 & 15.\n$\n</code></pre></div>\n<p dir="auto">gpio option makes the UART available to GPIO pins 14 and 15:</p >\n<div class="snippet-clipboard-content notranslate position-relative overflow-auto" d ata-snippet-clipboard-copy-content="$ sudo ./uart_control gpio\nEnabling UART.\nDisabling console on UART.\nDisabling Bluetooth.\nRemoved symlink /etc/systemd/system/multi-user.target.wants/hciuart.service.\n\nUART made available on GPIO 14 & 15.\nYou now need to reboot.\n$"><pre class="notranslate"><code>$ sudo ./uart_control gpio\nEnabling UART.\nDisabling console on UART.\nDisabling Bluetooth.\nRemoved symlink /etc/systemd/system/multi-user.target.wants/hciuart.service.\n\nUART made available on GPIO 14 & 15.\nYou now need to reboot.\n$\n</code></pre></div>\n<p dir="auto">default option changes the state back to its original:</p>\n<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ sudo ./uart_control default\nEnabling UART.\nEnabling console on UART.\nEnabling Bluetooth.\nCreated symlink from /etc/systemd/system/multi-user.target.wants/hciuart.service to /lib/systemd/system/hciuart.service.\n\nDefault system settings restored.\nYou now need to reboot.\n$"><pre class="notranslate"><code>$ sudo ./uart_control default\nEnabling UART.\nEnabling console on UART.\nEnabling Bluetooth.\nCreated symlink from /etc/systemd/system/multi-user.target.wants/hciuart.service to /lib/systemd/system/hciuart.service.\n\nDefault system settings restored.\nYou now need to reboot.\n$\n</code></pre></div>\n</article>,errorMessage:null,headerInfo:{toc:[{level:2,text:uart_control,anchor:uart_control,htmlText:uart_control}],siteNavLoginPath:/login?return_to=https%3A%2F%2Fgithub.com%2Fitemir%2Frpi_boat_utils%2Ftree%2Fmaster%2Fuart_control}},totalCount:2,showBranchInfobar:false},fileTree:{:{items:[{name:aisd,path:aisd,contentType:directory},{name:aisplay,path:aisplay,contentType:directory},{name:charts_to_mbtiles,path:charts_to_mbtiles,contentType:directory},{name:dometic_to_voltage,path:dometic_to_voltage,contentType:directory},{name:gpsd2nmea,path:gpsd2nmea,contentType:directory},{name:monitoringd,path:monitoringd,contentType:directory},{name:sensord,path:sensord,contentType:directory},{name:traffic_counter,path:traffic_counter,contentType:directory},{name:uart_control,path:uart_control,contentType:directory},{name:.gitignore,path:.gitignore,contentType:file},{name:LICENSE,path:LICENSE,contentType:file},{name:README.md,path:README.md,contentType:file}],totalCount:12}},fileTreeProcessingTime:2.761526,foldersToFetch:[],treeExpanded:true,symbolsExpanded:false,csrf_tokens:{/itemir/rpi_boat_utils/branches:{post:u8earMWNffgFpp0ZiKsu5XURkfJ9IbhjwkxWXoDNd5JOP-vDTR3482amMti8YJeXYkZUxlM0Ji6YjV8Y8Z-Zrg},/itemir/rpi_boat_utils/branches/fetch_and_merge/master:{post:5SMVu8fUO066iIumc1gHA3LT70vOHBVo7IEOm2Tio6o4UNKtRxj2izDL1h4bMcm3OxV9ujkVWkw-TzhlV0EFUQ},/itemir/rpi_boat_utils/branches/fetch_and_merge/master?discard_changes=true:{post:idGejCGkm2rJu0YuNwLG3y2jN7OK0vkQbJFrHvJkkKpUolmaoWhWr0P4G5ZfawhrZGWlQn3btjS-X13gwcc2UQ}}},title:rpi_boat_utils/uart_control at master · itemir/rpi_boat_utils}: File name too long
The text was updated successfully, but these errors were encountered:
based on the error message, it looks like the uart_control file isn't the shell script but some JSON or HTML response from Github. Try to run the wget command again.
You can check the script by running cat uart_control. The output should look something like this:
Running
sudo ./uart_control gpio
on Raspberry pi 4 returns a File name too long error.Steps before this were:
wget https://github.com/itemir/rpi_boat_utils/raw/master/uart_control/uart_control
chmod +x ./uart_control
sudo ./uart_control gpio
Trying to make it work with a daisy hat.
Full error message (very long) is below:
./uart_control: 1: {payload:{allShortcutsEnabled:false,path:uart_control,repo:{id:79987790,defaultBranch:master,name:rpi_boat_utils,ownerLogin:itemir,currentUserCanPush:false,isFork:false,isEmpty:false,createdAt:2017-01-25T06:04:28.000Z,ownerAvatar:https://avatars.githubusercontent.com/u/8331463?v=4,public:true,private:false,isOrgOwned:false},currentUser:null,refInfo:{name:master,listCacheKey:v0:1485324268.0,canEdit:false,refType:branch,currentOid:7f35bc67053736bb30b54bacd40d8188901a0252},tree:{items:[{name:README.md,path:uart_control/README.md,contentType:file},{name:uart_control,path:uart_control/uart_control,contentType:file}],templateDirectorySuggestionUrl:null,readme:{displayName:README.md,richText:<article class="markdown-body entry-content container-lg" itemprop="text"><h2 tabindex="-1" id="user-content-uart_control" dir="auto"><a class="heading-link" href="#uart_control">uart_control<svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></h2>\n<p dir="auto">Allows auto configuration of UART. UART is normally used by the console on Raspberry Pi 0, 1 and 2. On Raspberry Pi 3, UART is used by the Bluetooth module and console is assigned to a software based UART known as mini UART. Many custom boards require access to UART via GPIO pins 14 and 15. This requires a set of configuration changes that differ per platform. This command line utility allows making UART available to custom applications.</p>\n<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ sudo ./uart_control\nUsage:\n ./uart_control [ OPTION ]\n default Restores original state\n gpio Makes UART available on GPIO pins 14 & 15\n status Displays current status\n$"><pre class="notranslate"><code>$ sudo ./uart_control\nUsage:\n ./uart_control [ OPTION ]\n default Restores original state\n gpio Makes UART available on GPIO pins 14 & 15\n status Displays current status\n$\n</code></pre></div>\n<p dir="auto">You can see the status of UART with the status option:</p>\n<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ sudo ./uart_control status\nConsole : disabled\nUART : enabled\nBluetooth : enabled\n\nUART is available to GPIO 14 & 15.\n$"><pre class="notranslate"><code>$ sudo ./uart_control status\nConsole : disabled\nUART : enabled\nBluetooth : enabled\n\nUART is available to GPIO 14 & 15.\n$\n</code></pre></div>\n<p dir="auto">gpio option makes the UART available to GPIO pins 14 and 15:</p >\n<div class="snippet-clipboard-content notranslate position-relative overflow-auto" d ata-snippet-clipboard-copy-content="$ sudo ./uart_control gpio\nEnabling UART.\nDisabling console on UART.\nDisabling Bluetooth.\nRemoved symlink /etc/systemd/system/multi-user.target.wants/hciuart.service.\n\nUART made available on GPIO 14 & 15.\nYou now need to reboot.\n$"><pre class="notranslate"><code>$ sudo ./uart_control gpio\nEnabling UART.\nDisabling console on UART.\nDisabling Bluetooth.\nRemoved symlink /etc/systemd/system/multi-user.target.wants/hciuart.service.\n\nUART made available on GPIO 14 & 15.\nYou now need to reboot.\n$\n</code></pre></div>\n<p dir="auto">default option changes the state back to its original:</p>\n<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ sudo ./uart_control default\nEnabling UART.\nEnabling console on UART.\nEnabling Bluetooth.\nCreated symlink from /etc/systemd/system/multi-user.target.wants/hciuart.service to /lib/systemd/system/hciuart.service.\n\nDefault system settings restored.\nYou now need to reboot.\n$"><pre class="notranslate"><code>$ sudo ./uart_control default\nEnabling UART.\nEnabling console on UART.\nEnabling Bluetooth.\nCreated symlink from /etc/systemd/system/multi-user.target.wants/hciuart.service to /lib/systemd/system/hciuart.service.\n\nDefault system settings restored.\nYou now need to reboot.\n$\n</code></pre></div>\n</article>,errorMessage:null,headerInfo:{toc:[{level:2,text:uart_control,anchor:uart_control,htmlText:uart_control}],siteNavLoginPath:/login?return_to=https%3A%2F%2Fgithub.com%2Fitemir%2Frpi_boat_utils%2Ftree%2Fmaster%2Fuart_control}},totalCount:2,showBranchInfobar:false},fileTree:{:{items:[{name:aisd,path:aisd,contentType:directory},{name:aisplay,path:aisplay,contentType:directory},{name:charts_to_mbtiles,path:charts_to_mbtiles,contentType:directory},{name:dometic_to_voltage,path:dometic_to_voltage,contentType:directory},{name:gpsd2nmea,path:gpsd2nmea,contentType:directory},{name:monitoringd,path:monitoringd,contentType:directory},{name:sensord,path:sensord,contentType:directory},{name:traffic_counter,path:traffic_counter,contentType:directory},{name:uart_control,path:uart_control,contentType:directory},{name:.gitignore,path:.gitignore,contentType:file},{name:LICENSE,path:LICENSE,contentType:file},{name:README.md,path:README.md,contentType:file}],totalCount:12}},fileTreeProcessingTime:2.761526,foldersToFetch:[],treeExpanded:true,symbolsExpanded:false,csrf_tokens:{/itemir/rpi_boat_utils/branches:{post:u8earMWNffgFpp0ZiKsu5XURkfJ9IbhjwkxWXoDNd5JOP-vDTR3482amMti8YJeXYkZUxlM0Ji6YjV8Y8Z-Zrg},/itemir/rpi_boat_utils/branches/fetch_and_merge/master:{post:5SMVu8fUO066iIumc1gHA3LT70vOHBVo7IEOm2Tio6o4UNKtRxj2izDL1h4bMcm3OxV9ujkVWkw-TzhlV0EFUQ},/itemir/rpi_boat_utils/branches/fetch_and_merge/master?discard_changes=true:{post:idGejCGkm2rJu0YuNwLG3y2jN7OK0vkQbJFrHvJkkKpUolmaoWhWr0P4G5ZfawhrZGWlQn3btjS-X13gwcc2UQ}}},title:rpi_boat_utils/uart_control at master · itemir/rpi_boat_utils}: File name too long
The text was updated successfully, but these errors were encountered: