dCore Import Debian Packages to Mountable SCE extensions > Allwinner A10
A10 boot files
persian:
Where is the location of [a10Core-kernel.config] at <linux-sunxi-g2d> directory for compilation ?
Rich:
Hi persian
--- Quote ---hid-input.c:(.devinit.text+0xdc): undefined reference to `input_allocate_polled_device'
hid-input.c:(.devinit.text+0x1a0): undefined reference to `input_register_polled_device'
--- End quote ---
Try setting INPUT_POLLDEV in menuconfig to Y and see if that helps.
persian:
Dear Roberts & Rich,
Thank you for your useful posts specially Reply #20 and Reply #26.
Finally I makes modules and installed them with the following command :
tc@box:/mnt/mmcblk0p2/tce/linux-sunxi-g2d$ sudo make modules_install INSTALL_MOD_PATH=/mnt/mmcblk0p2/My_Added_Modules
INSTALL drivers/misc/sun4i-gpio.ko
INSTALL drivers/spi/spi_sunxi.ko
DEPMOD 3.0.42
Warning: you may need to install module-init-tools
See http://www.codemonkey.org.uk/docs/post-halloween-2.6.txt
Also I imported and loaded [module-init-tools] but I got the following error when I tried to load sun4i-gpio.ko and spi_sunxi.ko modules with modprobe command:
tc@box:/mnt/mmcblk0p2/My_Added_Modules/lib/modules/3.0.42/kernel/drivers/misc$ modprobe sun4i-gpio
modprobe: module sun4i-gpio not found in modules.dep
or
tc@box:/mnt/mmcblk0p2/My_Added_Modules/lib/modules/3.0.42/kernel/drivers/misc$ modprobe sun4i-gpio.ko
modprobe: module sun4i-gpio not found in modules.dep
The content of [modules.dep] file (at location: /mnt/mmcblk0p2/My_Added_Modules/lib/modules/3.0.42/) is:
----------------------------------------------------
kernel/drivers/misc/sun4i-gpio.ko:
kernel/drivers/spi/spi_sunxi.ko:
What is my fault?
Thank you
roberts:
The modules would need to be standard locations and included in modules.dep in order to use modprobe.
But, no problem, use insmod with full path to module to test.
# insmod /mnt/your_drive/and_path_to/kernel/drivers/misc/sun4i-gpio.ko
# insmod /mnt/your_drive/and_path_to/kernel/drivers/misc/spi_sunxi.ko
Once you know it is working then make an sce extension with just those modules.
You can use 8192cu.sce as an exmple sce extension which it just a module.
unpack it with unsquashfs to see.
pack yours with mksquashfs
persian:
Dear Roberts,
It gives me an error that:
insmod: can't insert 'sun4i-gpio.ko': invalid module format
I think that this error is because of my kernel version is not the one on which I am running the insmod command, but I don't know what to do to sort out this problem?
I downloaded and used the [linux-sunxi-g2d.zip] source file (from http://tinycorelinux.net/5.x/armv7/src/) for making these modules.
Also I run dmesg and uname -a commands and the results are :
tc@box:/mnt/mmcblk0p2/My_Added_Modules/lib/modules/3.0.42/kernel/drivers/misc$ dmesg
:
:
[ 2239.490000] sun4i_gpio: module_layout: kernel tainted.
[ 2239.500000] Disabling lock debugging due to kernel taint
[ 2239.500000] sun4i_gpio: version magic '3.0.42 ARMv7 ' should be '3.0.42 preempt mod_unload modversions ARMv7 '
[ 3118.120000] spi_sunxi: version magic '3.0.42 ARMv7 ' should be '3.0.42 preempt mod_unload modversions ARMv7 '
tc@box:/mnt/mmcblk0p2/My_Added_Modules/lib/modules/3.0.42/kernel/drivers/misc$ uname -a
Linux box 3.0.42 #3 PREEMPT Fri Feb 8 18:38:58 PST 2013 armv7l GNU/Linux
I attached the driver modules as a compressed tar file to this post for your review.
Please help me about the action I should take to sort out this problem?
Thanks,
[EDIT] Attachment removed due to policy violation. Rich
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version