Title: No ttysWK device files [Print This Page] Author: EugenyB1 Time: 7/7/2023 19:36 Title: No ttysWK device files Last edited by EugenyB1 In 7/7/2023 23:27 Editor
Edit:
So we have two problems:
(1) my local bench assembles update.img without support of these sWK files - why? What should I do?
(2) I see nothing in the scope output when writing to any of these files with standard buildroot image running. Is device faulty?
More info:
I compiled this T-Firefly / rk3308-linux กค GitLab (howver the source code was downloaded approximately a year ago) and I do not see RS485 device files in the list.
RS485_1: /dev/ttysWK0
RS485_2: /dev/ttysWK1
RS485_3: /dev/ttysWK2
RS232 : /dev/ttysWK3
Copy the code
How to identify which device file corresponds to each RS485 serial port?
cat path/to/rk3308_linux_release_v1.5.0a_20221212_split_dir/*firefly_split* | tar -xzv
Copy the code
If they are not, execution fails.
2. The following must be performed within rk* directory, but there's no cd command in the instruction
.repo/repo/repo sync -l
Copy the code
Author: EugenyB1 Time: 7/8/2023 14:12
Update: confirmed that compiling from this distribution with application of those instructions produce working image with sWK* files.
Now second issue remains: why
echo "aaa" > /dev/ttyswK0
Copy the code
does not produce any waveform in the rs485_1 port.Author: 895816514 Time: 7/8/2023 16:50
Please send me log.
cat /proc/version
Copy the code
Author: 895816514 Time: 7/8/2023 17:33
The kernel I compiled using this configuration file is no problem. Do you have ttysWk with buildroot now?
Author: EugenyB1 Time: 7/9/2023 06:11 Last edited by EugenyB1 In 7/9/2023 06:44 Editor
Yes, I have these device files now.
But I have another problem.
./build.sh script does not compile and include my application. "make menuconfig" does not work from the project root, it works from buildroot/, and I compile my package using make in buildroot/, but ./build.sh anyway does not include the package.
I have put my package into buildroot/package/, and into external/ with no difference.
How to properly install the custom package into the compilation of your buildroot image? Edit: found instructions here https://wiki.t-firefly.com/en/Firefly-Linux-Guide/manual_buildroot.html in 11.2. Author: 895816514 Time: 7/10/2023 10:36
The ./build.sh script will use this firefly_rk3308_release config, so your "make menuconfig" is invalid, you can modify firefly_rk3308_release config or "make menuconfig", and compile manually under buildroot.