Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
Hi all,
I spend some time on this forum for looking for right solution how to compile own kernel. I gathered all information and my experiences and finally wrote short guideline.
http://blog.gregs.eu/?p=149
enjoy!
-greg
Last edited by slackuser (2014-02-09 22:33:43)
Offline
Great !
I used to try to build my own kernel, but the LED light never turned green.
So, till now, I was just able to build new kernel module, but always failed to completely replace the kernel.
I will try your method some day (I would like to turn my DNS-313 into a ipsec+l2tp VPN server, with openswan + xl2tpd)
Last edited by Electrocut (2010-05-26 13:00:54)
Offline
Electrocut, it shouldn't be a problem to add some ipsec functionality. Unfortunately I tried to be minimalist. I added ext3, vfat, nfs and fuse support but it should be removed if you really don't use it.
I'm trying now migrate patches to 2.6.24.4. We'll see...
greg
Offline
I know this thread is a long time gone but any idea how I can change these instructions for a Rev B 313? And how would I go about adding something like ipsec or similar to the kernel?
Offline
I don't think the instructions are different for Rev B. Maybe the kernel is the same.
Can you check your kernel version, by typing uname -a, and dmesg?
Mine (DNS-313 Rev A):
root@terabox:/# uname -a Linux terabox 2.6.15 #179 Mon Nov 23 15:48:00 CST 2009 armv4l GNU/Linux root@terabox:/# root@terabox:/# dmesg Linux version 2.6.15 (root@CentServer) (gcc version 3.4.4) #179 Mon Nov 23 15:48:00 CST 2009 CPU: FA526id(wb) [66015261] revision 1 (ARMv4) Machine: GeminiA ...
Building just kernel modules is (at least for me) easier than trying to replace the kernel completely.
For VPN, openvpn will be easier than Ipsec, because you only need to build modules crc32.ko and tun.ko, there's no need to replace the kernel.
I built successfully some kernel modules for DNS-313, and posted instructions on topic Working: Openvpn 2.0.9
Offline
Output as follows. Its a standard installation (via the Windows disk) with ffp bunged on.
root@dlink_server:/mnt/sda3/home/root# uname -a Linux dlink_server 2.6.15 #78 Thu Jul 30 10:37:47 EDT 2009 armv4l unknown root@dlink_server:/mnt/sda3/home/root# dmseg -sh: dmseg: not found root@dlink_server:/mnt/sda3/home/root# dmesg Linux version 2.6.15 (root@Linux53) (gcc version 3.4.4) #78 Thu Jul 30 10:37:47 EDT 2009 CPU: FA526id(wb) [66015261] revision 1 (ARMv4) Machine: GeminiA Ignoring unrecognised tag 0x00000000 Memory policy: ECC disabled, Data cache writeback On node 0 totalpages: 16384 DMA zone: 16384 pages, LIFO batch:3 DMA32 zone: 0 pages, LIFO batch:0 Normal zone: 0 pages, LIFO batch:0 HighMem zone: 0 pages, LIFO batch:0 CPU0: D VIVT write-back cache CPU0: I cache: 16384 bytes, associativity 2, 16 byte lines, 512 sets CPU0: D cache: 8192 bytes, associativity 2, 16 byte lines, 256 sets Built 1 zonelists Kernel command line: root=/dev/ram0 rw mem=64M console=ttySL0,19200 initrd=0x00800000,4M ramdisk_size=4096 PID hash table entries: 512 (order: 9, 8192 bytes) Bus: 150MHz(2/1) Console: colour dummy device 80x30 sl2312 console setup : Disable IDE...config to SATA mode Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) Memory: 64MB = 64MB total Memory: 58240KB available (1743K code, 590K data, 84K init) Calibrating delay loop... 231.01 BogoMIPS (lpj=1155072) Mount-cache hash table entries: 512 *** Page_chain_cachep Init!*** CPU: Testing write buffer coherency: ok checking if image is initramfs...it isn't (no cpio magic); looks like an initrd Freeing initrd memory: 4096K NET: Registered protocol family 16 SCSI subsystem initialized usbcore: registered new driver usbfs usbcore: registered new driver hub NetWinder Floating Point Emulator V0.97 (double precision) VFS: Disk quotas dquot_6.5.1 Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) io scheduler noop registered io scheduler deadline registered Real Time Clock Driver v0.10 Gemini Gpio init g751 init flash probe init Register Gemini Power control Power event by Unknow Source Watchdog Timer Initialized ttySL0 at MMIO 0x42000000 (irq = 18) is a SL2312 RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize loop: loaded (max 8 devices) VSC-switch not found ---> phy_vendor = 0x1CC912 SL351x Giga Ethernet driver 0.1.6 built at Jul 30 2009 09:51:08 libata version 1.20 loaded. sata_lepus1 version 0.1 ata1: SATA max UDMA/133 cmd 0xC4800020 ctl 0xC4800036 bmdma 0xC4800000 irq 5 scsi0 : sata_lepus1 sata_lepus0 version 0.1 ata2: SATA max UDMA/133 cmd 0xC4804020 ctl 0xC4804036 bmdma 0xC4804000 irq 4 ata2: dev 0 cfg 49:2f00 82:746b 83:7f61 84:4123 85:7469 86:bc41 87:4123 88:407f ata2: dev 0 ATA-8, max UDMA/133, 625142448 sectors: LBA48 HD speed:U6 (0x46) ata2: dev 0 configured for UDMA/133 scsi1 : sata_lepus0 Vendor: ATA Model: WDC WD3200AAJS-0 Rev: 01.0 Type: Direct-Access ANSI SCSI revision: 05 SCSI device sda: 625142448 512-byte hdwr sectors (320073 MB) SCSI device sda: drive cache: write back SCSI device sda: 625142448 512-byte hdwr sectors (320073 MB) SCSI device sda: drive cache: write back sda: sda1 sda2 sda3 sda4 sd 1:0:0:0: Attached scsi disk sda sd 1:0:0:0: Attached scsi generic sg0 type 0 SL2312 MTD Driver Init....... Find EN29LV400A. Search for id:(1c 22ba) interleave(1) type(2) Found: EN29LV400AB SL2312 CFI Flash: Found 1 x16 devices at 0x0 in 16-bit bank number of JEDEC chips: 1 cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness. Creating 3 MTD partitions on "SL2312 CFI Flash": 0x00000000-0x00040000 : "RedBoot" 0x00040000-0x00060000 : "MTD1" 0x00060000-0x00080000 : "MTD2" SL2312 MTD Driver Init Success ...... FTC_FOTG2XX : Init FOTG2XX Driver Init FOTG2xx driver FTC_FOTG2XX : >>> Found FOTG2XX ... pFTC_OTG c0b8d440 hcd->self.controller c0b91400 hcd end hcd_buffer_create ehci-hcd-FOTG2XX ehci-hcd-FOTG2XX: new USB bus registered, assigned bus number 1 usb_register_bus ghcd_FOTG2XX hcd c0b91400 hcd_irq_For_OTG ehci->caps->length 10, hcd->regs f6800000 , ehci->regs f6800010 udev->state 1 drivers/usb/host/ehci-hcd-FOTG2XX.c: USB support enabled, EHCI rev 101. 0 hub 1-0:1.0: USB hub found hub 1-0:1.0: 1 port detected FTC_FOTG2XX : >>> +FOTG2XX_get_otg_transceiver FTC_FOTG2XX : registered host c0b91400 OTG2XX act as HOST only (don't need to wait gadget driver) +(OTGC_Init) pFTC_OTG->otg.default_a=1 +(OTGC_Init) pFTC_OTG->otg.default_a=1 OTG_enable_VBUS FTC_FOTG2XX : >>> Drive VBUS ok... +OTGP_Close() OTG2XX act as HOST only (remove gadget function) +OTGH_Open()(0x30=0x0) OTG_enable_VBUS mdwOTGC_Control_A_VBUS_VLD_Rd 80000 +OTGP_Close() OTG2XX act as HOST only (remove gadget function) +OTGH_Open()(0x30=0x0) ehci otg_set_host status 0 FTC_FOTG200_udc_1 : Init USB device Lower driver FOTG200_BASE_ADDRESS = 0xf6900000 ******reg_val = c0422037 FTC_FOTG200_udc_1 : ***** FOTG200 Peripheral 2.0 Test program ***** FTC_FOTG200_udc_1 : L0: System initial, Please wait... FTC_FOTG200_udc_1 : L1: System is ready(dev->EPUseDMA=0xff)... FTC_usb_probe_1 end Initializing USB Mass Storage driver... connect_change 1 clear_bit usbcore: registered new driver usb-storage USB Mass Storage support registered. NET: Registered protocol family 2 IP route cache hash table entries: 1024 (order: 0, 4096 bytes) TCP established hash table entries: 4096 (order: 2, 16384 bytes) TCP bind hash table entries: 4096 (order: 2, 16384 bytes) TCP: Hash tables configured (established 4096 bind 4096) TCP reno registered TCP bic registered NET: Registered protocol family 1 NET: Registered protocol family 17 RAMDISK: Compressed image found at block 0 EXT2-fs warning: checktime reached, running e2fsck is recommended VFS: Mounted root (ext2 filesystem). Freeing init memory: 84K Adding 506008k swap on /dev/sda1. Priority:-1 extents:1 across:506008k EXT2-fs warning: maximal mount count reached, running e2fsck is recommended EXT2-fs warning (device sda3): ext2_fill_super: mounting ext3 filesystem as ext2 Storlink egiga0 address = 14D64DA83D19 Can't find version control GMAC-0 Addr 1 Vendor ID: 0x001cc912 Link Up (0x796d) MII Link status: 0000796d Phy status: 0000002f MII REG 10 = 0x7c00 1000M/Full Flow Control Enable. Storlink egiga0 address = 14D64DA83D19 Enable MAC Flow Control... fuse init (API version 7.8) fuse distribution version: 2.6.3 ufsd: module license 'Commercial product' taints kernel. ufsd: driver loaded at bf00c000 built on Dec 16 2008 21:30:18 UFSD version 7.01 (Dec 16 2008, 21:21:41) NTFS read/write support included $Id: ufsdvfs.c,v 1.188 2008/12/04 15:52:27 shura Exp $ EXT2-fs warning: maximal mount count reached, running e2fsck is recommended Adding 506008k swap on /dev/sda1. Priority:-2 extents:1 across:506008k RTC_SET_TIME::2012-01-18 09:44:15 -----------------PM0_PID 1321--------------- -----------------UbuttonPid 1306---------------
I tried the Debian install which seems to unpack OK but its definitely based on the Rev A rather than the Rev B. The problem with it is that it won't then connect to the network regardless of what I do ie fixed IP or DHCP. I've read there's a problem with connecting to a gigabit switch but had hoped the RevB may have solved this.
Offline