Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android fail #1

Open
fatalfeel opened this issue Aug 11, 2017 · 2 comments
Open

Android fail #1

fatalfeel opened this issue Aug 11, 2017 · 2 comments

Comments

@fatalfeel
Copy link

  1. sllin built-in module and boot message
    [ 1.527834] sllin: serial line LIN interface driver
    [ 1.528527] sllin: 10 dynamic interface channels.
    [ 1.529148] sllin: Break is generated manually with tiny sleep.

  2. root@matrix_io:/ # sllin_attach -w /dev/ttymxc2
    [ 539.350802] sllin: sllin_open() invoked
    [ 539.351382] sllin: Configured as MASTER
    [ 539.351887] sllin: Baudrate set to 19200
    attached tty /dev/ttymxc2 to netdevice sllin0
    Press any key to detach /dev/ttymxc2 ...

root@matrix_io:/ # ip link set sllin0 up
Cannot find device "sllin0" --->fail here

@fatalfeel
Copy link
Author

success use and need mark some lines and let it compile pass
https://github.com/karelzak/util-linux/blob/master/sys-utils/ldattach.c

in Android.mk
include $(CLEAR_VARS)

LOCAL_SRC_FILES := ldattach.c
LOCAL_MODULE := ldattach
LOCAL_MODULE_TAGS := optional
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/
LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -DHAVE_USLEEP

include $(BUILD_EXECUTABLE)

@fatalfeel
Copy link
Author

http://www.mediafire.com/file/q8doq6bznvt0zt7/canutils.tar.gz
put it in myandroid/external to build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant