Kernel 2.6.32 config file?

All discussions/development regarding the Marvell mv6281 Chip can be placed here.
Forum rules
We've moved! Head over to Synology Community (community.synology.com) to meet up with our team and other Synology enthusiasts!
Max_nl
Student
Student
Posts: 67
Joined: Tue Mar 20, 2012 4:45 pm

Kernel 2.6.32 config file?

Unread post by Max_nl » Wed Apr 04, 2012 12:48 am

My diskstation comes with Linux kernel 2.6.32.12:

Code: Select all

DiskStation> uname -a
Linux DiskStation 2.6.32.12 #2198 Wed Mar 7 15:39:07 CST 2012 armv5tel GNU/Linux synology_88f6281_212j
Does anyone know where I can find the .config file that was used to compile that version?


synogpl-2198-6281.tbz does contain config files for older Linux versions (e.g. in the linux-2.6.15 folder), but am unable to find them for the new version.


My intention is to compile the video4linux and USB video class kernel modules (uvcvideo.ko + videodev.ko) and some custom userspace software to hook up an USB webcam to the NAS.

Tried the .config file from the old kernel version with the new kernel + the arm-none-linux-gnueabi toolchain to cross-compile.
But not having much luck with that.

- First attempt resulted in: "Unknown symbol kmalloc_caches" when insmod'ing the compiled module.

- After changing the kernel memory allocator from SLUB to SLAB, the module does load correctly.
But get a kernel oops the moment I connect the webcam:

Code: Select all

[ 9415.850000] Linux video capture interface: v2.00
[ 9438.700000] usbcore: registered new interface driver uvcvideo
[ 9438.710000] USB Video Class driver (v0.1.0)
[ 9483.640000] usb 1-1.2: new high speed USB device using orion-ehci and address 4
[ 9483.760000] Got empty serial number. Generate serial number from product.
[ 9483.770000] usb 1-1.2: configuration #1 chosen from 1 choice
[ 9483.790000] Unable to handle kernel NULL pointer dereference at virtual address 00000028
[ 9483.800000] pgd = c0004000
[ 9483.800000] [00000028] *pgd=00000000
[ 9483.800000] Internal error: Oops: 5 [#1]
[ 9483.800000] last sysfs file: /sys/block/md1/md/dev-sdb2/slot
[ 9483.800000] Modules linked in: uvcvideo videodev cifs udf isofs loop usbhid hid usblp usb_storage xhci_hcd ohci_hcd ehci_hcd ds212j_synobios(P) sky2 synoacl_ext4(P) synoacl_vfs(P) hfsplus fuse vfat fat cryptosoft ecryptfs sha512_generic sha256_generic sha1_generic ecb cesa_ocf_drv(P) cesa_dev cryptodev(P) ocf(P) chainiv des_generic crc32c eseqiv krng ansi_cprng rng aes_generic md5 cbc cryptomgr pcompress aead crypto_hash crypto_blkcipher crypto_wq crypto_algapi cpufreq cpufreq_stats freq_table dm_snapshot crc_itu_t crc_ccitt quota_v2 quota_tree usbcore sg psnap llc raid456 raid10 raid0 linear async_raid6_recov async_pq raid6_pq async_xor xor async_memcpy async_tx dm_mod ipv6 raid1 md_mod [last unloaded: ds212j_synobios]
[ 9483.800000] CPU: 0    Tainted: P            (2.6.32.12 #2198)
[ 9483.800000] PC is at kref_get+0x8/0x4c
[ 9483.800000] LR is at kobject_get+0x1c/0x24
[ 9483.800000] pc : [<c022c544>]    lr : [<c022b808>]    psr: 20000013
[ 9483.800000] sp : c8badc10  ip : c8badc28  fp : c8badc3c
[ 9483.800000] r10: 00000000  r9 : ccbea1a8  r8 : c57d0be0
[ 9483.800000] r7 : cd9a4000  r6 : bf439918  r5 : bf4398e8  r4 : 0000000c
[ 9483.800000] r3 : 00000000  r2 : c57d0c30  r1 : 00000001  r0 : 00000028
[ 9483.800000] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
[ 9483.800000] Control: 0005397f  Table: 0fa20000  DAC: 00000017
[ 9483.800000] Process khubd (pid: 1693, stack limit = 0xc8bac270)
[ 9483.800000] Stack: (0xc8badc10 to 0xc8bae000)
[ 9483.800000] dc00:                                     0000000c bf4398e8 c8badc3c c8badc28
[ 9483.800000] dc20: c022b808 c022c54c ffffff9c bf4398e8 c8badc4c c8badc40 c0262934 c022b7fc
[ 9483.800000] dc40: c8badc64 c8badc50 bf1365cc c026292c bf439c44 bf4398e8 c8badccc c8badc68
[ 9483.800000] dc60: bf430eac bf1365c0 c8badca0 cda52668 ccbea180 c57d0c18 ffffff9c c57d0c38
[ 9483.800000] dc80: cda522a8 c8badca0 cda52668 00000001 c8badcd4 c57d0c30 bf439c44 ccbea180
[ 9483.800000] dca0: bf439918 ccbea180 bf4398e8 bf439918 cd9a4000 bf439c44 ccbea1a8 00000000
[ 9483.800000] dcc0: c8badcf4 c8badcd0 bf14044c bf430dcc ccbea1a0 c0265c20 bf439918 bf14d240
[ 9483.800000] dce0: c76faea0 ccbea1a8 c8badd14 c8badcf8 c0265998 bf14035c 00000000 c0265c20
[ 9483.800000] dd00: ccbea1a0 bf14d240 c8badd3c c8badd18 c0264a6c c02658f8 c9a61ce8 c43a2ef4
[ 9483.800000] dd20: 00000000 ccbea1a0 ccbea1a0 ccbea1d4 c8badd5c c8badd40 c0265b5c c0264a2c
[ 9483.800000] dd40: ccbea180 ccbea1a0 cd9a4000 bf14d240 c8badd6c c8badd60 c02649fc c0265b14
[ 9483.800000] dd60: c8baddb4 c8badd70 c0263348 c02649e0 cd9a4068 00000000 cd9a4000 c76faea8
[ 9483.800000] dd80: c8badda8 c8badd90 c026266c ccbea180 ccbea980 cd9a4000 00000000 c76faea0
[ 9483.800000] dda0: cec07517 cdc6ce00 c8bade24 c8baddb8 bf13ec7c c0262f4c 00000001 00000003
[ 9483.800000] ddc0: 00000000 00000000 00001388 c8baddd8 c00fce48 00000001 cdb43ea0 00000004
[ 9483.800000] dde0: 00000002 cdc6ce10 cdc6ce00 00000004 bf14adf7 00000000 cdb43400 cd9a4000
[ 9483.800000] de00: 00000001 bf14d85c bf14d100 00000085 cd9a4070 00000000 c8bade4c c8bade28
[ 9483.800000] de20: bf145d94 bf13e794 bf14d100 00000085 c8bade5c cd9a4068 c0265c20 bf14d85c
[ 9483.800000] de40: c8bade5c c8bade50 bf13f768 bf145d40 c8bade7c c8bade60 c0265998 bf13f748
[ 9483.800000] de60: 00000000 c0265c20 cd9a4068 bf14d100 c8badea4 c8bade80 c0264a6c c02658f8
[ 9483.800000] de80: c9a61ce8 c9a5eab4 00000000 cd9a4068 cd9a4068 cd9a409c c8badec4 c8badea8
[ 9483.800000] dea0: c0265b5c c0264a2c c8badee1 cd9a4068 c801be60 bf14d100 c8baded4 c8badec8
[ 9483.800000] dec0: c02649fc c0265b14 c8badf1c c8baded8 c0263348 c02649e0 ca658c68 00000000
[ 9483.800000] dee0: 39383100 0000333a c8badf1c c8badef8 bf137148 cd9a4068 cd9a4000 00000000
[ 9483.800000] df00: 00000029 00000085 00000002 00000101 c8badf44 c8badf20 bf138ef8 c0262f4c
[ 9483.800000] df20: 00000000 cd9a4000 c8ae6460 00000003 ca9fd018 00000002 c8badfc4 c8badf48
[ 9483.800000] df40: bf139bf8 bf138d00 c8120c70 c037f1c8 c8ae6680 ca658c00 ca9fd000 00000000
[ 9483.800000] df60: c8ae6680 ca658c00 000000e9 c8bac000 00000001 ffffffff 00000000 c80c5ca0
[ 9483.800000] df80: c010f0c0 c8badf84 c8badf84 c82bd4e0 01010001 c8badfa0 c0033968 c8badfcc
[ 9483.800000] dfa0: c8b97ec0 00000000 bf139218 00000000 00000000 00000000 c8badff4 c8badfc8
[ 9483.800000] dfc0: c010ee2c bf139228 00000000 00000000 c8badfd0 c8badfd0 00000000 00000000
[ 9483.800000] dfe0: 00000000 00000000 00000000 c8badff8 c002be8c c010edb4 00000000 00000000
[ 9483.800000] [<c022c544>] (kref_get+0x8/0x4c) from [<c0262934>] (get_device+0x1c/0x24)
[ 9483.800000] [<c0262934>] (get_device+0x1c/0x24) from [<bf1365cc>] (usb_get_dev+0x1c/0x24 [usbcore])
[ 9483.800000] unwind: Index not found bf1365cc
[ 9483.800000] Code: c00b8c58 c0149918 e1a0c00d e92dd830 (e5903000) 
[ 9483.810000] ---[ end trace 32944f75b93d1566 ]---
So might still have a wrong .config option somewhere... :(

Max_nl
Student
Student
Posts: 67
Joined: Tue Mar 20, 2012 4:45 pm

Re: Kernel 2.6.32 config file?

Unread post by Max_nl » Wed Apr 04, 2012 12:19 pm

Found it.

Kernel configs are now in the source/linux-2.6.32/synoconfigs subfolder
(while they were in the root folder with linux-2.6.15)

Locked

Return to “Marvell mv6281 Development Room”