WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Picore-3.14.4+ ----> UINPUT / EVDEV as modules  (Read 7402 times)

Offline lykkedk

  • Full Member
  • ***
  • Posts: 182
Re: Picore-3.14.4+ ----> UINPUT / EVDEV as modules
« Reply #15 on: September 09, 2014, 02:16:18 AM »
Goodmorning.

Quote
For testing your new kernel no need to rebuild tcz's. You can add modules to initrd or to put all modules not in base to a single tcz. It is ok to see wether these modules solve your original issue or not. If we can confirm, I will move them to modules in 6.0 kernel.

How do i actually make a .tcz with remaining kernel modules, and do i have to use modules with .ko, or with .ko.gz (modules inside initrd is with .ko.gz)

Jesper.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Picore-3.14.4+ ----> UINPUT / EVDEV as modules
« Reply #16 on: September 09, 2014, 02:37:10 AM »
create a folder mymodules somewhere and copy modules to mymodules/lib/modules/... Type

Code: [Select]
mksquashfs mymodules mymodules.tcz
and got the extension.

Of course install squashfs-tools-4.x.tcz before.
« Last Edit: September 09, 2014, 02:39:39 AM by bmarkus »
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline lykkedk

  • Full Member
  • ***
  • Posts: 182
Re: Picore-3.14.4+ ----> UINPUT / EVDEV as modules
« Reply #17 on: September 09, 2014, 03:13:44 AM »
 :) SuperB...

Through i seem to be doing something wrong.

Quote
tc@box:~$ uname -ra
Linux box 3.14.6-piCore #1 PREEMPT Mon Sep 8 15:12:35 CEST 2014 armv6l GNU/Linux

1. line Dmesg
Linux version 3.14.6-piCore (jesper@jlp) (gcc version 4.7.1 20120402 (prerelease) (crosstool-NG 1.15.2) ) #1 PREEMPT Mon Sep 8 15:12:35 CEST 2014


The initrd, i made yesterday with 109 modules inside, where all with extension .ko.gz

So now i tried to make :
Quote
mksquashfs mymodules mymodules.tcz

tc@box:~$ tce-load -i mymodules
mymodules.tcz: OK

So no matter if i use modules directory with .ko.gz, or modules directory with .ko i got fault when trying to load
I both have a directory with modules, with extension .ko.gz
And a directory with extension .ko

I tried to make mymodules.tcz with both, with same result

And  ??? Does it matter, that i took all modules including the 109pcs, allready buildin my initrd ?

Quote
tc@box:~$ sudo modprobe snd_pcm
modprobe: can't load module snd (kernel.tclocal/kernel/sound/core/snd.ko.gz): invalid module format
tc@box:~$ sudo modprobe snd
modprobe: can't load module snd (kernel.tclocal/kernel/sound/core/snd.ko.gz): invalid module format
tc@box:~$ sudo modprobe snd_pcm
modprobe: can't load module snd (kernel.tclocal/kernel/sound/core/snd.ko.gz): invalid module format
tc@box:~$ sudo modprobe lirc_dev
modprobe: can't load module lirc_dev (kernel.tclocal/kernel/drivers/media/rc/lirc_dev.ko.gz): invalid module format
tc@box:~$ sudo modprobe snd_bcm2835
modprobe: can't load module snd (kernel.tclocal/kernel/sound/core/snd.ko.gz): invalid module format

Jesper.




Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Picore-3.14.4+ ----> UINPUT / EVDEV as modules
« Reply #18 on: September 09, 2014, 03:39:39 AM »
Invalid module format means module was built for a different kernel than you are actually using or built wthe a different toolchain.

Use modinfo command to check module.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline lykkedk

  • Full Member
  • ***
  • Posts: 182
Re: Picore-3.14.4+ ----> UINPUT / EVDEV as modules
« Reply #19 on: September 09, 2014, 03:44:05 AM »
Yes...

I see now.

See line lrwxrwxrwx    1 root     root            45 Sep  8 13:41 kernel.tclocal -> ../../../usr/local/lib/modules/3.14.4-piCore+/

Does not match ??

It must be a fault in my initrd, as i am pretty sure my modules is build as per kernel.

Quote
tc@box:~$ ls -all /lib/modules/3.14.6-piCore
total 688
drwxrwxr-x    3 tc       staff            0 Jan  1  1970 ./
drwxrwxr-x    3 tc       staff            0 Jan  1  1970 ../
lrwxrwxrwx    1 root     root            53 Sep  9 06:52 build -> /tmp/tcloop/mymodules/lib/modules/3.14.6-piCore/build
drwxrwxr-x    9 tc       staff            0 Jan  1  1970 kernel/
lrwxrwxrwx    1 root     root            45 Sep  8 13:41 kernel.tclocal -> ../../../usr/local/lib/modules/3.14.4-piCore+/
-rw-r--r--    1 root     root        424435 Sep  9 06:52 modules.alias
lrwxrwxrwx    1 root     root            65 Sep  9 06:52 modules.alias.bin -> /tmp/tcloop/mymodules/lib/modules/3.14.6-piCore/modules.alias.bin
-rw-r--r--    1 root     root          7103 Sep  8 13:41 modules.builtin
lrwxrwxrwx    1 root     root            67 Sep  9 06:52 modules.builtin.bin -> /tmp/tcloop/mymodules/lib/modules/3.14.6-piCore/modules.builtin.bin
-rw-r--r--    1 root     root        130679 Sep  9 06:52 modules.dep
lrwxrwxrwx    1 root     root            63 Sep  9 06:52 modules.dep.bin -> /tmp/tcloop/mymodules/lib/modules/3.14.6-piCore/modules.dep.bin
lrwxrwxrwx    1 root     root            63 Sep  9 06:52 modules.devname -> /tmp/tcloop/mymodules/lib/modules/3.14.6-piCore/modules.devname
lrwxrwxrwx    1 root     root            61 Sep  9 06:52 modules.order -> /tmp/tcloop/mymodules/lib/modules/3.14.6-piCore/modules.order
lrwxrwxrwx    1 root     root            63 Sep  9 06:52 modules.softdep -> /tmp/tcloop/mymodules/lib/modules/3.14.6-piCore/modules.softdep
-rw-r--r--    1 root     root        139047 Sep  9 06:52 modules.symbols
lrwxrwxrwx    1 root     root            67 Sep  9 06:52 modules.symbols.bin -> /tmp/tcloop/mymodules/lib/modules/3.14.6-piCore/modules.symbols.bin
lrwxrwxrwx    1 root     root            54 Sep  9 06:52 source -> /tmp/tcloop/mymodules/lib/modules/3.14.6-piCore/source


Quote
tc@box:~$ modinfo snd_bcm2835
filename:       kernel.tclocal/kernel/sound/arm/snd-bcm2835.ko.gz
license:        GPL
author:         Dom Cobley
description:    Alsa driver for BCM2835 chip
alias:          platform:bcm2835_alsa
depends:        snd-pcm,snd
vermagic:       3.14.4-piCore+ preempt mod_unload ARMv6 p2v8
parm:           force_bulk:Force use of vchiq bulk for audio

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Picore-3.14.4+ ----> UINPUT / EVDEV as modules
« Reply #20 on: September 09, 2014, 04:07:10 AM »
Mixing 3.14.4 and 3.14.6
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline lykkedk

  • Full Member
  • ***
  • Posts: 182
Re: Picore-3.14.4+ ----> UINPUT / EVDEV as modules
« Reply #21 on: September 09, 2014, 04:14:40 AM »
 :) .. uhhh Anyway...

Quote
Mixing 3.14.4 and 3.14.6

Not sure ! ?

While looking at this link here (inside initrd) :
root@box:/tmp/myinit/lib/modules/3.14.6-piCore# ls -all
total 52
drwxr-xr-x    3 500      500              0 Sep  9 08:02 .
drwxr-xr-x    3 root     root             0 Sep  9 08:02 ..
drwxr-xr-x    7 500      500              0 Sep  9 08:02 kernel
lrwxrwxrwx    1 root     root            45 Sep  9 08:02 kernel.tclocal -> ../../../usr/local/lib/modules/3.14.4-piCore+
-rw-r--r--    1 root     root         32288 Sep  9 08:02 modules.alias
-rw-r--r--    1 root     root          7103 Sep  9 08:02 modules.builtin
-rw-r--r--    1 root     root          5348 Sep  9 08:02 modules.dep
-rw-r--r--    1 root     root          4065 Sep  9 08:02 modules.symbols

The kernel.tclocal links to "false" kernel

Can't i just do
root@box:/tmp/myinit/lib/modules/3.14.6-piCore# rm kernel.tclocal
ln -s ../../../usr/local/lib/modules/3.14.6-piCore kernel.tclocal


root@box:/tmp/myinit/lib/modules/3.14.6-piCore# ls -all
total 52
drwxr-xr-x    3 500      500              0 Sep  9 08:07 .
drwxr-xr-x    3 root     root             0 Sep  9 08:02 ..
drwxr-xr-x    7 500      500              0 Sep  9 08:02 kernel
lrwxrwxrwx    1 root     root            44 Sep  9 08:07 kernel.tclocal -> ../../../usr/local/lib/modules/3.14.6-piCore
-rw-r--r--    1 root     root         32288 Sep  9 08:02 modules.alias
-rw-r--r--    1 root     root          7103 Sep  9 08:02 modules.builtin
-rw-r--r--    1 root     root          5348 Sep  9 08:02 modules.dep
-rw-r--r--    1 root     root          4065 Sep  9 08:02 modules.symbols

Or was it something else i had to do ?

Jesper.


Offline lykkedk

  • Full Member
  • ***
  • Posts: 182
Re: Picore-3.14.4+ ----> UINPUT / EVDEV as modules
« Reply #22 on: September 09, 2014, 08:07:08 AM »
 8) It's working.

I made the link inside the initrd point to the right kernel, and now i can load modules from
Mymodules.tcz

Doing modinfo, also tells me, i am using kernel 3.14.6 now.

So, after having build module evdev and uinput, i can load them, and when trying to load LIRC, there
Is no more complains about missing --uinput etc... Etc..

 :-\ bad thing through, i fighted the lirc 3 hours now, still cant get it to work.

Anyone here ever got it working ?..(i did once, around a half year ago on other picore)

I have compiled both lirc-0.9.0 (version i one had working) and the newest lirc-0.9.1a, there is a dep. Help2man, which i also compiled.

All 3 progs. I have as homemade .tcz

I havent sent those tcz to tinycore yet, as i wont before i got it working on my own.

If anyone will like to try it, i can sent them, no problem  :)

Btw. Lirc reciver is homemade connected to gpio 18, and is working on another distro, so hardware is still good!

My old working lirc link is here ::
http://forum.tinycorelinux.net/index.php?topic=16493.0

Jesper.