View Single Post
Old 08-17-2012, 07:31 PM   #63
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
smbfs.ko for the 3 from the lab126 2.6.26 kernel, via the 2006q3 CS TC

Works with the 2006q3 CS TC as knc1 said. I feel this is probably the best route. I'm having trouble with the patches applying as the build directory in BR is "./built/linux-custom"

I have also amended it to do the:

Spoiler:
Code:
@@ -52,9 +52,7 @@
 # CONFIG_RELAY is not set
 # CONFIG_NAMESPACES is not set
 CONFIG_BLK_DEV_INITRD=y
-CONFIG_INITRAMFS_SOURCE="../../initramfs/skeleton-luigi.list ../../initramfs/image/"
-CONFIG_INITRAMFS_ROOT_UID=0
-CONFIG_INITRAMFS_ROOT_GID=0
+CONFIG_INITRAMFS_SOURCE=""
 CONFIG_CC_OPTIMIZE_FOR_SIZE=y
 CONFIG_SYSCTL=y
 # CONFIG_RADIX_TREE_CONCURRENT is not set
@@ -328,7 +326,7 @@

in arch/arm/configs/imx35_luigi_defconfig but I'm still fumbling my way through using patch and BR currently requires a typed in 'fix' to reference the correct file. I'll RTFM - again.

Anyways: the modules look much happier now:

[root@kindle root]# insmod /mnt/us/modules/smbfs.ko

[root@kindle root]# lsmod
Module Size Used by
smbfs 64800 0

Narry a moan

[root@kindle root]# rmmod smbfs
[root@kindle root]# strace -o /mnt/us/opt/insmod.trace insmod /mnt/us/modules/smbfs.ko

Spoiler:
Code:
execve("/sbin/insmod", ["insmod", "/mnt/us/modules/smbfs.ko"], [/* 21 vars */]) = 0
brk(0)                                  = 0x12000
uname({sys="Linux", node="kindle", ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001b000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/var/run/ld.so.cache", O_RDONLY)  = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=13788, ...}) = 0
mmap2(NULL, 13788, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4001c000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\250J\1\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1348230, ...}) = 0
mmap2(NULL, 1135004, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40025000
mprotect(0x4012e000, 28672, PROT_NONE)  = 0
mmap2(0x40135000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x108) = 0x40135000
mmap2(0x40138000, 8604, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40138000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40020000
set_tls(0x400204a0, 0x400204a0, 0x40024058, 0x40020b78, 0x40) = 0
mprotect(0x40135000, 8192, PROT_READ)   = 0
munmap(0x4001c000, 13788)               = 0
brk(0)                                  = 0x12000
brk(0x33000)                            = 0x33000
open("/mnt/us/modules/smbfs.ko", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\1\0(\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 16384) = 16384
read(3, "\2600\33\345\0 \303\345xA\33\345\0 \304\345\264\340\33\345\0 \316\345\220pK\345\234\21\33\345"..., 16384) = 16384
read(3, "\5\0\240\341\376\377\377\353\360\250\235\350\r\300\240\341\0\330-\351\4\260L\342\2726\320\341#3\1\340"..., 32768) = 32768
read(3, "\270\0\0\0\2\0\1\0\27\0\0\0dc\0\0\0\0\0\0\0\0\1\0P\0\0\0\24d\0\0"..., 65536) = 11088
read(3, "", 54448)                      = 0
close(3)                                = 0
init_module(0x12018, 76624, "")         = 0
exit_group(0)                           = ?
+++ exited with 0 +++


[smbfs.ko for the 3 from the lab126 2.6.26 kernel, via the 2006q3 CS TC]

So I will be using that TC for my testing on the arm of 'USING THE RIGHT HAMMER FOR THE JOB'

The link for the 2006q3 TC is available on the KEK project tools repository.
That's where I got mine.

I'll update the BR - "doing it like an Amazon" - guide when I have it slicker and solid. but in essence it still works. I will update the Best Practice choice of tools now.

Hopefully these Best Practices will help to form an accessible reference for the future digital hitch-hiker.

Insert requests for custom modules here. Thanks.

I'll remove the binfmt_misc.ko in the OP just in case...
Attached Files
File Type: gz smbfs.ko.tar.gz (34.3 KB, 350 views)
File Type: gz binfmt_misc.ko.tar.gz (5.3 KB, 318 views)

Last edited by twobob; 08-17-2012 at 07:40 PM.
twobob is offline   Reply With Quote