Page 1 of 4 123 ... LastLast
Results 1 to 15 of 49

Thread: Samba running

  1. #1
    Join Date
    Feb 2004
    Posts
    103

    Samba running

    Hey,

    What would be the chance to get Samba running on this box. I really would love to have something running where I can map my windows drive to (so alternatively some webdav would prob also work)

    Then I can kick out my current Linux box that does all that.

    If not, what would be the main bottleneck?
    Memory?
    Speed?

    Ok, Thanks

    Erik

  2. #2
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    Go ahead and try compiling it. In my opinion it will be too large for flashing it, but you can probably run it from the external usb flash/disk. Also, the performance will be really low, due to the both CPU speed & usb 1.1 bandwidth limitations.

  3. #3
    Join Date
    Feb 2004
    Posts
    103
    Hi Oleg,

    Thanks for your reply. Well, tried it, but sofar not being successfull.

    Any suggestion to resolve this kind of problems

    Compiling smbd/server.c
    In file included from smbd/server.c:22:
    include/includes.h:636: conflicting types for `sys_errlist'
    /opt/brcm/hndtools-mipsel-uclibc-0.9.19/include/stdio.h:551: previous declaratio
    n of `sys_errlist'
    In file included from smbd/server.c:22:
    include/includes.h:874: conflicting types for `memmove'
    /opt/brcm/hndtools-mipsel-uclibc-0.9.19/include/string.h:42: previous declaratio
    n of `memmove'
    include/includes.h:878: conflicting types for `initgroups'
    /opt/brcm/hndtools-mipsel-uclibc-0.9.19/include/grp.h:148: previous declaration
    of `initgroups'
    make: *** [smbd/server.o] Error 1

  4. #4
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    Samba version?

  5. #5
    Seems that the new netgear WGT634 has samba and usb 2.0 built in! So you can access usb-disks from every program.


    http://www.netgear.com/products/deta...4U.php?view=hm

  6. #6
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    Looks cool. Seems it's use broadcom CPU, Linux 2.4.20 (at offset 0x6894 of firmware) and jffs2 as rootfs (at 0x140000).

  7. #7
    Broadcom CPU? The wireless chipset is from atheros, not broadcom! Or is the software cpu and the wireless chip integrated? If broadcom does cpus, they might have combined atheros chipset and broadcom cpu. Though i think not.

  8. #8
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    Yes, just downloaded pdf from FCC with internal fotos. So, the radio is from atheros, the CPU is broadcom BCM5364PKPB and seems it has switch and phys integrated into it, 2 dram chips and the flash chip from NEC.
    And yes, it runs linux 2.4.20 with apps compiled against the same uclibc as others. The root file system is jffs2 and has packed tools from http://leaf-project.org.

    The samba config follows (personally I think guest account = root is the best thing ever ;-) Samba version is 1.9.16 as seems. They mount usb disk under /share.

    [global]
    workgroup = workgroup
    netbios name = WGT634U
    guest account = root
    security = share
    browseable = yes
    guest ok = yes
    log level = 1
    max log size = 1
    os level = 0
    encrypt passwords = no
    [share]
    path = /share
    read only = No
    guest ok = Yes
    browseable = Yes
    [samples]
    path = /samples
    read only = No
    guest ok = Yes
    browseable = Yes

  9. #9
    Join Date
    Feb 2004
    Posts
    103
    Oleg,

    I was trying the last 2 version ( samba-2.2.8).
    I could give it a try with the last samba-1.9.18p8 version or the one like the netgear WGT634

    Is the soft for the netgear already released? than maybe it is possible to copy/extract it from that box.
    Last edited by erik_bies; 23-03-2004 at 05:57.

  10. #10
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    Yes, the firmware is available on the Netgear site. As for extracting - yes you can do that.

  11. #11
    Join Date
    Feb 2004
    Posts
    103
    Hi Oleg,

    May I ask how did you find the offset in the netgear img file.
    I'm trying to mount it, but it continues to give errors. I must have the offset of the jffs2 filesystem wrong.

    Any suggestion?


    BTW. compiling the 1.9.16 version gives similar errors. I don't know how they managed.
    Last edited by erik_bies; 29-03-2004 at 20:49.

  12. #12
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    Offsets a determined as follows - open the file in hex viewer. find the name piggy - this is compressed linux kernel and a few bytes before there is a gzip magic. One you've extracted the kernel using the dd an decompressed it, compress it again with -9 flag. You will get the compressed kernel size. With hex viewer look at the location after the kernel in the original image. You need to find the magic for fs. If I recall correctly there is a gap filled with 0xff in the netgear firmware and this gap is ends at 0x140000 there jffs2 lies (the first bytes is the jffs2 magic).
    Decompressing jffs2 is not a trivial task. You need to create mrd device in ram (mtdram) copy the contents of jffs2 image to it and then mount it.

  13. #13
    Join Date
    Apr 2004
    Location
    Adelaide, Australia
    Posts
    88
    Originally posted by justwords
    Seems that the new netgear WGT634 has samba and usb 2.0 built in! So you can access usb-disks from every program.


    http://www.netgear.com/products/deta...4U.php?view=hm
    Does anyone know if this unit has accessible serial ports like the WRT54Gv2 or the Asus WL-500G ?

    I really want a linux-based router that has USB 2.0 and two serial ports. Anyone know of one ?

    -- Rod

  14. #14
    Join Date
    Apr 2004
    Location
    Netherlands
    Posts
    1,308
    The Asus doesn't have USB 2.0, but the serial ports can be added using a USB hub and USB to RS232 converters...

  15. #15
    Join Date
    Apr 2004
    Location
    Adelaide, Australia
    Posts
    88
    Originally posted by Styno
    The Asus doesn't have USB 2.0, but the serial ports can be added using a USB hub and USB to RS232 converters...
    Do you have details of which USB to RS232 converters the Linux kernel will recognise ? And in particular, will the linux kernel recognised an external modem connected to the USB to RS232 converter?

    -- Rod

Page 1 of 4 123 ... LastLast

Similar Threads

  1. running php on wl500g
    By ronin in forum WL-500g Q&A
    Replies: 55
    Last Post: 06-03-2006, 09:36
  2. Running Unison on WL-500gx
    By rfoss in forum WL-500g Q&A
    Replies: 0
    Last Post: 29-08-2005, 14:43
  3. samba running > but no write access
    By atomilein in forum WL-500g Q&A
    Replies: 9
    Last Post: 25-04-2005, 15:05
  4. samba, ftp, I can`t get it running. PL Help!
    By atomilein in forum WL-500g Q&A
    Replies: 0
    Last Post: 23-04-2005, 08:51
  5. running a second webserver
    By ronin in forum WL-500g Q&A
    Replies: 25
    Last Post: 23-08-2004, 04:19

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •