/Linux-5.11.2-for-NanoPi-NEO-musl-Alsa-CAN

Linux 5.11.2 for board Nano Pi Neo support SocketCan

Primary LanguageC

NanoPI NEO
http://wiki.friendlyarm.com/wiki/index.php/NanoPi_NEO

embedded Linux 5.11.2 _ musl native  image 1Gb 
https://drive.google.com/file/d/19s5KiI2sKwEWOq1tR6ug3npP2V8Y1PAC/view?usp=sharing
Support Can-module MCP2515 (can-utils), Alsa ,i2c .....  

make sure you write to the card and not the hard drive ... !!
The letter instead of the X is very important

sudo dd if=sdcard.img of=/dev/sdX bs=1M ; sync;
sdX (sd_card)

----------------------
ssh root@192.168.0.46

login     : root
password  : admin

user login  : plk
password    : admin

source for static cross- and native- musl-based toolchains
https://musl.cc/

armv7l-linux-musleabihf-native  20/02/2021
https://drive.google.com/file/d/1Av_5EBzpeLgX2UtKNu4NpnpGGmjpQy1R/view?usp=sharing
armv7l-linux-musleabihf-cross   20/02/2021
https://drive.google.com/file/d/1nkNJKoUlucLkpAf4NmJ61ecV2OW1vK1w/view?usp=sharing

https://musl.libc.org/
https://www.musl-libc.org/faq.html

gcc -v

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/armv7l-linux-musleabihf-native/bin/../libexec/gcc/armv7l-linux-musleabihf/10.2.1/lto-wrapper
Target: armv7l-linux-musleabihf
Configured with: ../src_gcc/configure
--enable-languages=c,c++,fortran 
--with-float=hard CC='armv7l-linux-musleabihf-gcc -static 
--static' CXX='armv7l-linux-musleabihf-g++ -static 
--static' FC='armv7l-linux-musleabihf-gfortran -static
--static' CFLAGS='-g0 -O2 -fno-align-functions -fno-align-jumps -fno-align-loops -fno-align-labels' CXXFLAGS='-g0 -O2 -fno-align-functions -fno-align-jumps -fno-align-loops -fno-align-labels' FFLAGS='-g0 -O2 -fno-align-functions -fno-align-jumps -fno-align-loops -fno-align-labels' LDFLAGS='-s -static 
--static' 
--disable-bootstrap
--disable-assembly
--disable-werror 
--target=armv7l-linux-musleabihf 
--prefix= --libdir=/lib 
--disable-multilib 
--with-sysroot=/ 
--enable-tls 
--disable-libmudflap 
--disable-libsanitizer 
--disable-gnu-indirect-function 
--disable-libmpx 
--enable-libstdcxx-time=rt 
--enable-deterministic-archives 
--enable-libstdcxx-time 
--enable-libquadmath 
--enable-libquadmath-support 
--disable-decimal-float 
--build=x86_64-pc-linux-gnu 
--host=armv7l-linux-musleabihf 'CC_FOR_BUILD=cc -static 
--static' 'CXX_FOR_BUILD=g++ -static --static'
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 10.2.1 20210116 (GCC) 


CAN start
---
/etc/network/interfaces

auto can0
iface can0 inet manual
    pre-up ip link set $IFACE type can bitrate 500000 restart-ms 100
    up ip link set $IFACE up
    down ip link set $IFACE down

systemd
---

can-setup.service
sudo cp can-setup.service /etc/systemd/system/
sudo chmod 644 /etc/systemd/system/can-setup.service
sudo systemctl daemon-reload
---
sudo systemctl start can-setup.service
sudo systemctl stop can-setup.service
---
auto-start
sudo systemctl enable can-setup.service
disabled auto-start
sudo systemctl disable can-setup.service