serial port kernel config

japie
Hello,

This is probably a stupid question but what kernel driver do I have to
activate to get a "standard" serial port?
I have a mini2440-7", installed u-boot and a fresh buildroot system with
kernel 2.6.32.2 on sd-card and it is al running like a charm expect for
owfs, I am trying to access my serial 1-wire adapter but keep running into
trouble.
There are 3 serial devices /dev/s3c2410_serial0-2 but owfs has trouble
while setting the baudrate, do I need any other driver besides s3c2410?

open-nandra
Hi, there should be device /dev/ttySAC0-SAC2 for serial port.

japie
ttySAC* is not created, I use kernel dynamic device creation did I mis some
hardware config why there not created? (if the device is there the /dev
entry would be created right?)

open-nandra
Right. How do you dynamically create devices. With mdev?

japie
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y

But running "mdev -s" manually didn't add them, devtmpfs normally takes
care of things quite well, do I miss a driver:

Linux version 2.6.32.2-FriendlyARM (root@ubuntu) (gcc version 4.4.4
(Buildroot 0
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177                   
    
CPU: VIVT data cache, VIVT instruction cache                               
    
Machine: FriendlyARM Mini2440 development board                            
    
Memory policy: ECC disabled, Data cache writeback                          
    
CPU S3C2440A (id 0x32440001)                                               
    
S3C24XX Clocks, (c) 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: console=ttySAC0,115200 mini2440=1tb rootfstype=ext4
root=/t
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: 62352KB available (2144K code, 293K data, 80K init, 0K highmem)    
    
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1    
    
Hierarchical RCU implementation.                                           
    
NR_IRQS:85                                                                 
    
irq: clearing pending status 02000000                                      
    
irq: clearing subpending status 00000002                                   
    
Console: colour dummy device 80x30                                         
    
console [ttySAC0] enabled                                                  
    
Calibrating delay loop... 201.93 BogoMIPS (lpj=504832)                     
    
Mount-cache hash table entries: 512                                        
    
CPU: Testing write buffer coherency: ok                                    
    
S3C2440: Initialising architecture                                         
    
S3C2440: IRQ Support                                                       
    
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics                  
    
DMA channel 0 at c4808000, irq 33                                          
    
DMA channel 1 at c4808040, irq 34                                          
    
DMA channel 2 at c4808080, irq 35                                          
    
DMA channel 3 at c48080c0, irq 36                                          
    
S3C244X: Clock Support, DVS off                                            
    
bio: create slab <bio-0> at 0                                              
    
SCSI subsystem initialized                                                 
    
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                                
    
msgmni has been set to 121                                                 
    
alg: No test for stdrng (krng)                                             
    
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)       
    
io scheduler noop registered (default)                                     
    
Console: switching to colour frame buffer device 100x30                    
    
fb0: s3c2410fb frame buffer device                                         
    
leds    initialized                                                        
    
Hello, Mini2440 module is installed !                                      
    
buttons initialized                                                        
    
pwm     initialized                                                        
    
adc     initialized                                                        
    
s3c2440-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440 
    
s3c2440-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440 
    
s3c2440-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440 
    
loop: module loaded                                                        
    
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                       
    
usb usb1: New USB device found, idVendor=1d6b, idProduct=0001              
    
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1         
    
usb usb1: Product: S3C24XX OHCI                                            
    
usb usb1: Manufacturer: Linux 2.6.32.2-FriendlyARM ohci_hcd                
    
usb usb1: SerialNumber: s3c24xx                                            
    
usb usb1: configuration #1 chosen from 1 choice                            
    
hub 1-0:1.0: USB hub found                                                 
    
hub 1-0:1.0: 2 ports detected                                              
    
Initializing USB Mass Storage driver...                                    
    
usbcore: registered new interface driver usb-storage                       
    
USB Mass Storage support registered.                                       
    
usbcore: registered new interface driver ums-sddr09                        
    
usbcore: registered new interface driver ums-sddr55                        
    
mice: PS/2 mouse device common for all mice                                
    
s3c2410 TouchScreen successfully loaded                                    
    
input: s3c2410 TouchScreen as /devices/virtual/input/input0                
    
S3C24XX RTC, (c) 2004,2006 Simtec Electronics                              
    
s3c2410-rtc s3c2410-rtc: rtc disabled, re-enabling                         
    
s3c2410-rtc s3c2410-rtc: rtc core: registered s3c as rtc0                  
    
i2c /dev entries driver                                                    
    
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics                        
    
s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled    
    
s3c-sdi s3c2440-sdi: powered down.                                         
    
s3c-sdi s3c2440-sdi: mmc0 - using pio, hw SDIO IRQ                         
    
s3c-sdi s3c2440-sdi: running at 0kHz (requested: 0kHz).                    
    
usbcore: registered new interface driver usbhid                            
    
usbhid: v2.6:USB HID core driver                                           
    
s3c2410-rtc s3c2410-rtc: setting system clock to 2018-04-28 12:42:43 UTC
(15249)
s3c-sdi s3c2440-sdi: running at 398kHz (requested: 400kHz).                
    
Waiting for root device /dev/mmcblk0p3...                                  
    
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).                
    
s3c-sdi s3c2440-sdi: running at 398kHz (requested: 400kHz).                
    
s3c-sdi s3c2440-sdi: running at 16875kHz (requested: 25000kHz).            
    
s3c-sdi s3c2440-sdi: running at 16875kHz (requested: 25000kHz).            
    
mmc0: new SD card at address 0002                                          
    
mmcblk0: mmc0:0002 SN02G 1.87 GiB                                          
    
 mmcblk0: p1 p2 p3 p4                                                      
    
usb 1-1: new full speed USB device using s3c2410-ohci and address 2        
    
EXT4-fs (mmcblk0p3): warning: maximal mount count reached, running e2fsck
is red
EXT4-fs (mmcblk0p3): recovery complete                                     
    
EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode             
    
VFS: Mounted root (ext4 filesystem) on device 179:3.                       
    
Freeing init memory: 80K                                                   
    
usb 1-1: New USB device found, idVendor=058f, idProduct=9254               
    
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0          
    
usb 1-1: Product: Generic USB Hub                                          
    
usb 1-1: Manufacturer: ALCOR                                               
    
usb 1-1: configuration #1 chosen from 1 choice                             
    
hub 1-1:1.0: USB hub found                                                 
    
hub 1-1:1.0: 4 ports detected                                              
    
Adding 265032k swap on /dev/mmcblk0p1.  Priority:-1 extents:1
across:265032k SS

japie
If I understand correctly the naming scheme was altered so s3c2410_serial
should have be the same.
setserial is showing me /dev/s3c2410_serial1, UART: undefined, Port:
0x0000, IRQ: 73
Is this excepted behavior?

sanaaa
s3c2440-uart.0: s3c2410_serial0 at MMIO 0x29000000 (irq = 16) is a
S3C2440/10 
    
s3c2440-uart.1: s3c2410_serial1 at MMIO 0x29004000 (irq = 20) is a
S3C2440/10
    
s3c2440-uart.2: s3c2410_serial2 at MMIO 0x29008000 (irq = 24) is a
S3C2440/10
    
loop: module loaded 

but when i connect GPS at serial1 it says you donot have permisiion to read
/write? can any one help me here ??