Hello,
To perform some actions with target hardware memory I had to use Linux kernel modules that write/read something in its memory.
For example. I have kernel module named action.ko that writes something to target memory (uses functions like readw(), writew(), ...). How can I run this Linux kernel module depending on user options?
LuCI page => User set option for this memory operation and press button => Running Linux kernel module action.ko
What steps should I pass to realise this? I really had to do kernel memory access via Linux kernel modules.
For example on LuCI page we have:
Enable Action ( )
Param 1 [ ]
Param 2 [ ]
Param 3 [ ]
Then user are doing:
Enable Action (*)
Param 1 [text1]
Param 2 [ ]
Param 3 [number3]
Pressing Save and Apply and LuCI performs running of our module:
insmod action.ko param1=text1 param3=number3
(winthout param2)
I didn't understand about uci_oncommit actions and how implement script depending on the configuration values...
Any help will be appreciated. And examples will be great.
Stanislav