Hi @Boken-Lin , your explanation make sense. This is not the case. For some reason, it is now persistent without changing a thing. This is quite weird to me. Thanks!
Posts made by François Levaux
-
RE: [0.0.5 b251] /etc/config/fstab not persistent
-
RE: Simple Python wrapper and demo
@Boken-Lin posted GPIO8 is for on board LED:
https://community.onion.io/topic/360/0-0-5-b251-gpio8-vs-others/2 -
RE: [0.0.5 b251] gpio8 vs others
Thanks @Boken-Lin -- It makes more sense.
My understanding from https://wiki.onion.io/Tutorials/Using-the-GPIOs is that it's a standard GPIO. Would you need to update this diagram? -
RE: [0.0.5 b251] gpio8 vs others
So it's more interesting than I thought originally.
When upgrading system to b251, it overwrote /etc/config/fstab, which is documented in https://community.onion.io/topic/362/0-0-5-b251-etc-config-fstab-not-persistent
Then I didn't knew I had to export my GPIOs to get them on sysfs.
interesting thing is that I had only /sys/class/gpio/gpio8 present.Perhaps someone messed something with gpio8 ?
root@Omega-15B0:~# echo 8 > /sys/class/gpio/export ash: write error: Device or resource busy root@Omega-15B0:~# echo 8 > /sys/class/gpio/unexport ash: write error: Invalid argument root@Omega-15B0:~#
-
[0.0.5 b251] /etc/config/fstab not persistent
Since updating to 0.0.5 b251, /etc/config/fstab is not persistent
I used to change it to override the /overlay partition with my USB storage, as directed by https://wiki.onion.io/Tutorials/Using-USB-Storage-as-Rootfs
However, this file is not persistent across reboots.
I get this after reboot:
root@Omega-15B0:~# cat /etc/config/fstab config 'global' option anon_swap '0' option anon_mount '0' option auto_swap '1' option auto_mount '1' option delay_root '5' option check_fs '0' config 'mount' option target '/overlay' option uuid '3ca7-8276' option enabled '1'
While I should be getting:
root@Omega-15B0:~# cat /etc/config/fstab config 'global' option anon_swap '0' option anon_mount '0' option auto_swap '1' option auto_mount '1' option delay_root '5' option check_fs '0' config 'mount' option target '/overlay' option uuid '2cca1b40-e417-4a30-9917-d0efa4864f05' option enabled '1'
Any insight?
-
[0.0.5 b251] gpio8 vs others
Since updating to 0.0.5 b251, I lost all my GPIO's but gpio8 in /sys/class/gpio/
Is this expected?Also, gpio8 still has no support of 'direction'.
See https://community.onion.io/topic/40/simple-python-wrapper-and-demo from @dan-l -
RE: How to access Arduino Dock A0 from terminal
I would be interested as well, even better, use it with python
-
How to reformat USB with Ext4 for pivot-overlay
Hi friends,
If you've followed https://wiki.onion.io/Tutorials/Using-USB-Storage-as-Rootfs for pivot-overlay, you might had some errors in dmesg. This is because USB Storage needs to be formatted in Ext4!
To do this:
0. Update your packagesopkg update
- Plug your USB Storage
- Install e2fsprogs:
opkg install e2fsprogs
- Format the device as a ext4:
mkfs.ext4 /dev/sda1
(change sda1 for your device)
I've documented this here: http://gdgbasel.com/2015/12/06/installing-python-on-onion-omega/
Happy Hacking!