Mini2440 - Help with Samba Service

CRASHOVERRIDE
Hi,

   Anyone installed the samba service on mini2440 with success??? Because i
try to install through buildroot2012.05, but when i boot the kernel in the
board the kernel block in the "starting smb service:". The version used in
this case is 3.5.15.
   I try to cross compile the samba 3.6.6 provided in the samba homepage
and no luck again.
   If anyone can help me with this matter i would be apreciated.

Regards,
CRASHOVERRDIE

CRASHOVERRIDE
This is my boot and my error:

U-Boot 1.3.2-mini2440 (Oct  6 2009 - 12:51:09)

I2C:   ready
DRAM:  64 MB
Flash:  2 MB
NAND:  128 MiB
Found Environment offset in OOB..
USB:   S3C2410 USB Deviced
In:    serial
Out:   serial
Err:   serial
MAC: 04:25:fe:ed:00:18
Hit any key to stop autoboot:  0 
trying to detect SD Card...
Manufacturer:       0x02, OEM "TM"
Product name:       "SD02G", revision 4.8
Serial number:      2882826801
Manufacturing date: 6/2009
CRC:                0x61, b0 = 1
READ_BL_LEN=15, C_SIZE_MULT=7, C_SIZE=365
size = 1642070016

2616368 bytes read
## Booting kernel from Legacy Image at 31000000 ...
   Image Name:   Linux-3.4.4
   Created:      2012-07-03   0:28:03 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2616304 Bytes =  2.5 MB
   Load Address: 30008000
   Entry Point:  30008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0
Linux version 3.4.4 (crashoverride@VPCF1) (gcc version 4.6.1 (Sourcery
CodeBench Lite 2011.09-70) ) #1 Tue Jul 3 01:27:50 WEST 2012
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
CPU: VIVT data cache, VIVT instruction cache
Machine: MINI2440
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
S3C24XX Clocks, Copyright 2004 Simtec Electronics
S3C244X: core 405.000 MHz, memory 101.250 MHz, peripheral 50.625 MHz
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: root=/dev/mmcblk0p3 rw rootwait rootfstype=ext3
console=ttySAC0,115200
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 59892k/59892k available, 5644k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    vmalloc : 0xc4800000 - 0xff000000   ( 936 MB)
    lowmem  : 0xc0000000 - 0xc4000000   (  64 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .text : 0xc0008000 - 0xc04626e8   (4458 kB)
      .init : 0xc0463000 - 0xc0486000   ( 140 kB)
      .data : 0xc0486000 - 0xc04b1f80   ( 176 kB)
       .bss : 0xc04b1fa4 - 0xc04eb770   ( 230 kB)
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:85
irq: clearing pending status 02000000
irq: clearing subpending status 00000002
sched_clock: 32 bits at 200 Hz, resolution 5000000ns, wraps every
4294967291ms
Console: colour dummy device 80x30
Calibrating delay loop... 201.52 BogoMIPS (lpj=503808)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0x30366848 - 0x303668a0
gpiochip_add: registered GPIOs 0 to 23 on device: GPIOA
gpiochip_add: registered GPIOs 32 to 47 on device: GPIOB
gpiochip_add: registered GPIOs 64 to 79 on device: GPIOC
gpiochip_add: registered GPIOs 96 to 111 on device: GPIOD
gpiochip_add: registered GPIOs 128 to 143 on device: GPIOE
gpiochip_add: registered GPIOs 160 to 167 on device: GPIOF
gpiochip_add: registered GPIOs 192 to 207 on device: GPIOG
gpiochip_add: registered GPIOs 224 to 234 on device: GPIOH
gpiochip_add: registered GPIOs 256 to 271 on device: GPIOJ
NET: Registered protocol family 16
MINI2440: Option string mini2440=0tb
MINI2440: 't' ignored, touchscreen not compiled in
MINI2440: LCD [0:240x320] 1:800x480 2:1024x768 3:320x240
S3C2440: Initialising architecture
S3C2440: IRQ Support
S3C244X: Clock Support, DVS off
bio: create slab <bio-0> at 0
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
s3c-i2c s3c2440-i2c: slave address 0x10
s3c-i2c s3c2440-i2c: bus frequency set to 98 KHz
s3c-i2c s3c2440-i2c: i2c-0: S3C I2C adapter
Advanced Linux Sound Architecture Driver Version 1.0.25.
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP: reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
NFS: Registering the id_resolver key type
jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
ROMFS MTD (C) 2007 Red Hat, Inc.
msgmni has been set to 116
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Console: switching to colour frame buffer device 60x53
fb0: s3c2410fb frame buffer device
s3c2440-uart.0: ttySAC0 at MMIO 0x50000000 (irq = 70) is a S3C2440
console [ttySAC0] enabled
s3c2440-uart.1: ttySAC1 at MMIO 0x50004000 (irq = 73) is a S3C2440
s3c2440-uart.2: ttySAC2 at MMIO 0x50008000 (irq = 76) is a S3C2440
brd: module loaded
at24 0-0050: 1024 byte 24c08 EEPROM, writable, 16 bytes/write
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c24xx-nand s3c2440-nand: Tacls=1, 9ns Twrph0=3 29ns, Twrph1=2 19ns
s3c24xx-nand s3c2440-nand: NAND soft ECC
NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V
8-bit)
Creating 4 MTD partitions on "nand":
0x000000000000-0x000000040000 : "u-boot"
ftl_cs: FTL header not found.
0x000000040000-0x000000060000 : "u-boot-env"
ftl_cs: FTL header not found.
0x000000060000-0x000000560000 : "kernel"
ftl_cs: FTL header not found.
0x000000560000-0x000008000000 : "root"
ftl_cs: FTL header not found.
dm9000 Ethernet Driver, V1.31
eth0: dm9000e at c4862300,c4864304 IRQ 51 MAC: 04:25:fe:ed:00:18 (chip)
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1
s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
usbcore: registered new interface driver libusual
mousedev: PS/2 mouse device common for all mice
s3c-rtc s3c2410-rtc: rtc disabled, re-enabling
s3c-rtc s3c2410-rtc: rtc core: registered s3c as rtc0
i2c /dev entries driver
s3c2410_wdt: S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq disabled
cpuidle: using governor ladder
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
s3c-sdi s3c2440-sdi: powered down.
s3c-sdi s3c2440-sdi: mmc0 - using pio, sw SDIO IRQ
s3c-sdi s3c2440-sdi: running at 0kHz (requested: 0kHz).
s3c-sdi s3c2440-sdi: running at 398kHz (requested: 400kHz).
s3c-sdi s3c2440-sdi: running at 398kHz (requested: 400kHz).
s3c-sdi s3c2440-sdi: running at 398kHz (requested: 400kHz).
s3c-sdi s3c2440-sdi: running at 398kHz (requested: 400kHz).
s3c-sdi s3c2440-sdi: running at 398kHz (requested: 400kHz).
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
s3c-sdi s3c2440-sdi: running at 398kHz (requested: 400kHkjournald starting.
 Commit interval 5 seconds
EXT3-fs (mmcblk0p3): using internal journal
EXT3-fs (mmcblk0p3): recovery complete
EXT3-fs (mmcblk0p3): mounted filesystem with ordered data mode
VFS: Mounted root (ext3 filesystem) on device 179:3.
Freeing init memory: 140K
Starting logging: OK
Initializing random number generator... done.
Starting network...
Starting SMB services: BUG: scheduling while atomic: mmcqd/0/763/0x00000100
Modules linked in:
[<c000dc44>] (unwind_backtrace+0x0/0xf0) from [<c0365f94>]
(__schedule+0x30c/0x35c)
[<c0365f94>] (__schedule+0x30c/0x35c) from [<c036537c>]
(__mutex_lock_slowpath+0x64/0x94)
[<c036537c>] (__mutex_lock_slowpath+0x64/0x94) from [<c01a97ec>]
(gpio_unexport+0x18/0xb0)
[<c01a97ec>] (gpio_unexport+0x18/0xb0) from [<c01a9898>]
(gpio_free+0x14/0x10c)
[<c01a9898>] (gpio_free+0x14/0x10c) from [<c02771d4>]
(s3c24xx_led_set+0x20/0x44)
[<c02771d4>] (s3c24xx_led_set+0x20/0x44) from [<c027767c>]
(led_heartbeat_function+0x60/0xf0)
[<c027767c>] (led_heartbeat_function+0x60/0xf0) from [<c0022d3c>]
(run_timer_softirq+0xe0/0x21c)
[<c0022d3c>] (run_timer_softirq+0xe0/0x21c) from [<c001d904>]
(__do_softirq+0x98/0x130)
[<c001d904>] (__do_softirq+0x98/0x130) from [<c001dd14>]
(irq_exit+0x48/0x50)
[<c001dd14>] (irq_exit+0x48/0x50) from [<c0009b10>] (handle_IRQ+0x34/0x84)
[<c0009b10>] (handle_IRQ+0x34/0x84) from [<c0008ea4>] (__irq_svc+0x24/0xa0)
[<c0008ea4>] (__irq_svc+0x24/0xa0) from [<c01a97ec>]
(gpio_unexport+0x18/0xb0)
[<c01a97ec>] (gpio_unexport+0x18/0xb0) from [<c01a9898>]
(gpio_free+0x14/0x10c)
[<c01a9898>] (gpio_free+0x14/0x10c) from [<c02771d4>]
(s3c24xx_led_set+0x20/0x44)
[<c02771d4>] (s3c24xx_led_set+0x20/0x44) from [<c0276b00>]
(led_trigger_event+0x54/0x64)
[<c0276b00>] (led_trigger_event+0x54/0x64) from [<c025f77c>]
(__mmc_start_req+0xec/0x150)
[<c025f77c>] (__mmc_start_req+0xec/0x150) from [<c025fdc4>]
(mmc_start_req+0x118/0x120)
[<c025fdc4>] (mmc_start_req+0x118/0x120) from [<c026c148>]
(mmc_blk_issue_rw_rq+0x64/0x3a8)
[<c026c148>] (mmc_blk_issue_rw_rq+0x64/0x3a8) from [<c026d440>]
(mmc_blk_issue_rq+0x2b4/0x49c)
[<c026d440>] (mmc_blk_issue_rq+0x2b4/0x49c...stripped-down

Juergen Beisert
You hit a kernel bug, not a samba bug.

CRASHOVERRIDE
Hi Juergen Beisert,

   The kernel without a samba package works fine, you have a kernel with a
samba package on board running? I really need help with this problem or
another way to share files from the board with windows.

Regards,
CRASHOVERRIDE

Juergen Beisert
You can try my BSP (refer http://www.friendlyarm.net/forum/topic/2737) and
enable the 'samba' server in the menu.

I tried it here:
Linux version 3.4.4-ptx-2012.06.0 (jb@isonoe) (gcc version 4.6.2
(OSELAS.Toolchain-2011.11.git) ) #2 PREEMPT Thu Jun 28 22:24:42 CEST 2012
[...]
Starting Samba server: /usr/sbin/smbd. /usr/sbin/nmbd. done
[...]
root@mini2440:~ ps ax
[...]
  391 ?        Ss     0:00 /usr/sbin/smbd -D
  393 ?        S      0:00 /usr/sbin/smbd -D
  394 ?        Ss     0:00 /usr/sbin/nmbd -D
[...]