Comments (14)
Will have a look. The plugin with no arguments should disable the console on the serial port.
from sdm.
Yep, nice buglet! Will be fixed in V11.8.
from sdm.
thanka
from sdm.
Fixed in V11.8. Please verify.
from sdm.
so finally was able to look at this.
i'm seeing the following in boot/firmware/config.txt
enable_uart=1
i'm seeing /dev/ttyS0 usually it shows as /dev/ttyAMA0 going through raspi-config
i cannot connect over serial and lsof is showing me nothing.
it seems to be working other than the different device name.
from sdm.
What Pi model are you using this on?
from sdm.
verifying it on: Raspberry Pi Zero 2 W Rev 1.0
from sdm.
Thx. Will check it out.
from sdm.
I think ttyAMA* is not created by raspi-config any more, in favor of ttyS0
That said, I mis-read raspi-config a bit, so was not disabling the uart, hence enable_uart=1
This will be fixed in next release, and adding a new argument enableuart
, in case you want the shell disabled, and the uart enabled. 🤷♂️
from sdm.
I'm running the latest version of the OS.
https://downloads.raspberrypi.com/raspios_lite_arm64/images/raspios_lite_arm64-2024-03-15/
now i don't know all the ins and outs but in manually configuring from raspi-config i get the following:
serial disabled
console disabled
tcronin@tec-zero:~ $ ls -l /dev/ttyS0
crw-rw---- 1 root dialout 4, 64 Apr 29 20:50 /dev/ttyS0
tcronin@tec-zero:~ $ ls -l /dev/ttyAMA0
ls: cannot access '/dev/ttyAMA0': No such file or directory
tcronin@tec-zero:~ $ ls -l /dev/serial0
ls: cannot access '/dev/serial0': No such file or directory
/boot/firmware/config.text
enable_uart=0
tcronin@tec-zero:~ $ sudo lsof /dev/ttyS0
tcronin@tec-zero:~ $
serial enabled
console disabled
tcronin@tec-zero:~ $ ls -l /dev/ttyS0
crw-rw---- 1 root dialout 4, 64 Apr 29 20:56 /dev/ttyS0
tcronin@tec-zero:~ $ ls -l /dev/ttyAMA0
crw-rw---- 1 root dialout 204, 64 Apr 29 20:56 /dev/ttyAMA0
tcronin@tec-zero:~ $ ls -l /dev/serial0
lrwxrwxrwx 1 root root 7 Apr 29 20:56 /dev/serial0 -> ttyAMA0
/boot/firmware/config.text
enable_uart=1
tcronin@tec-zero:~ $ sudo lsof /dev/ttyS0
tcronin@tec-zero:~ $ sudo lsof /dev/ttyAMA0
tcronin@tec-zero:~ $
serial enabled
console enabled
/boot/firmware/cmdline.txt
added: console=serial0,115200
tcronin@tec-zero:~ $ sudo lsof /dev/ttyS0
tcronin@tec-zero:~ $ sudo lsof /dev/ttyAMA0
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
agetty 668 root 0u CHR 204,64 0t0 132 /dev/ttyAMA0
agetty 668 root 1u CHR 204,64 0t0 132 /dev/ttyAMA0
agetty 668 root 2u CHR 204,64 0t0 132 /dev/ttyAMA0
from sdm.
Thanks. I started with a fresh, unadulterated IMG the same as the one you used on a Pi2W. When it booted:
- No /dev/ttyS0
- No /dev/ttyAMA*
- no UART in config.txt
Used raspi-config to enable and rebooted
- console=serial0,115200 in cmdline.txt
- enable_uart=1 in config.sys
- /dev/serial0 is a link to /dev/ttyS0
Used raspi-config to disable and rebooted
- cmdline.txt and config.txt reverted to no console=serial0 and enable_uart=0
Curiously, no sign of /dev/ttyAMA* during any of these steps. Wonder how you got it?
Then used a lightly customized IMG and burned it with --plugin serial
- Serial port was disabled
Next used that same lightly customized IMG and burned with --plugin serial:enableshell
- Serial port shell was correctly enabled as with raspi-config
- Again, no sign of /dev/ttyAMA*
So, I believe this will work correctly in the next sdm release, targeting it for later this week. 🤞
from sdm.
most of my knowledge on this is googling, so not sure why as long as i can use serial gpio. Currently for a gps hat for a time server im trying to set up.
some cursory googling gives me this, still not clear on why the different name for the same port
https://unix.stackexchange.com/questions/307390/what-is-the-difference-between-ttys0-ttyusb0-and-ttyama0-in-linux
thanks again for the quick responses
from sdm.
I believe this is corrected in V12.0. Please test.Thx!
from sdm.
Closing due to no activity. @tim-oe please reopen if needed. Thx
from sdm.
Related Issues (20)
- Multiline plugin notes HOT 2
- Dump kernel image and DBT HOT 2
- More complex settings (pi ups) HOT 2
- Boot from nvme? HOT 2
- Hyphens and underscores in hostname HOT 4
- Error with --1piboot option HOT 1
- `invalid user` when using chown with custom user HOT 8
- Multiple sdm customize runs HOT 8
- Are plugin arguments robust to whitespace? HOT 15
- Can't set wifi ssid and password in the burn phase HOT 4
- Specify wlan1 instead of wlan0? HOT 3
- Get Luks key from OTP? HOT 1
- Installing on Fedora / Arch? HOT 3
- Network plugin fails to add wifi if nmconnections manually added previously HOT 5
- Example of installing SyncThing through SDM? HOT 21
- System don't boot after encryption - /dev/mapper/cryptroot does not exist HOT 14
- How to best update sdm? HOT 3
- apt returned an error; review /etc/sdm/apt.log --> /etc/sdm/apt.log does not exist HOT 10
- Steps to install zerotier using sdm HOT 9
- Additional configuration of (user-specific) ssh HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sdm.