Page 1 of 1

Enabling SLIP in the Pico Mini B Ubuntu kernel

Posted: 2024-11-24 21:09
by illantal
Hello everyone, I'm trying to make the ESP8266 SLIP interface https://github.com/martin-ger/esp_slip_router work with Mini B. I added these lines to the

Code: Select all

luckfox_rv1106_linux_defconfig
:

Code: Select all

CONFIG_SLIP=y
CONFIG_SLIP_COMPRESSED=y
CONFIG_SLIP_SMART=y
CONFIG_SLIP_MODE_SLIP6=y
But after rebuilding the Ubuntu with

Code: Select all

./build.sh
it doesn't work yet:

Code: Select all

pico@luckfox:~$ sudo slattach -L -p slip -s 115200 /dev/ttyS4&
[1] 901
pico@luckfox:~$ SLIP_set_disc(1): Invalid argument

[1]+  Exit 1                  sudo slattach -L -p slip -s 115200 /dev/ttyS4
Could you please show me how I can actually enable this feature in kernel and use the ESP8266 SLIP router with Pico Mini B? Thanks in advance for your help

Re: Enabling SLIP in the Pico Mini B Ubuntu kernel

Posted: 2024-11-25 2:02
by Crocodile
Hello, SLIP "SLIP_set_disc(1): Invalid argument " alert is most likely because a kernel setting is not started, you can try to get more information from dmesg or system log to determine what kernel options are missing, directly add options to luckfox_rv1106_linux_defconfig Sometimes it may not take effect due to option dependency problems, it is recommended to use./ build.sh kernelconfig to add config.、

I have no experience in using SLIP. You need to confirm more details by yourself

Re: Enabling SLIP in the Pico Mini B Ubuntu kernel

Posted: 2024-11-25 15:16
by illantal
Hello, I managed to fix this issue by reflashing the SD card in Windows using the SocToolKit, in Linux it somehow didn't work anymore by that blkenvflash script, but anyway thanks for your help