Thanks for answering. Is it possible to give us a hint what amplifier and maybe what circut (resistors, capacitators, ...) your're using?
Posts by RSchubert
-
-
Can anyone confirm a working sound output without noise or has anyone the same effect?
-
I can confirm problems while debugging with the delivered toolchain.
The GDB shell says:
No line 48 in file "xxxx.cpp".
...It's not possible to set breakpoints in the source code because the line information in the executable seems to be completely wrong. Also the first stop that should be at "main" is somewhere in the code.
I have turned off all optimisations and tried different debug infos (-g2 -g ...).
I tried gdb 6.8a and 7.4.1 provided by buildroot. The problem stays the same - so maybe it's a problem of the compiler/linker.
-
It's solved with the patch.
Thanks
-
Is there a reference hardware design of how to connect some little speakers (e.g. 1W) to the PicoMOD7A (amplifier, resistors, capacitators, speaker)?
The cause of my question is that we have much noise on the speaker. We're using an audio amplifier and a little speaker. We can hear all the sound we're playing on the PicoMOD correctly. But we also hear much noise. This noise seems to depend on memory access. If I don't do anything on the memory bus the noise is very silent. If there's much traffic on the memory bus (also during the complete boot process) the noise can be very loud - it's as loud as playing a soundfile.
Thanks for any idea.
-
Yes, you're right. My mistake. I did not check this, because this was working on PicoMOD7 with Kernel 2.6.29 in my version too.
Thanks a lot.
-
When using double buffering and switching between the buffers it's nice to wait for the VSync.
returns 0xFFFFFFFF - EPERM (operation not permitted).In the kernel sc3_fb.c driver there's a function to handle the VSync but it never gets called:
Code- static int s3c_fb_ioctl(struct fb_info *info, unsigned int cmd, unsigned long arg) {
- struct s3c_fb_win *win = info->par;
- struct s3c_fb *sfb = win->parent;
- int ret;
- u32 crtc;
- switch (cmd) {
- case FBIO_WAITFORVSYNC:
- if (get_user(crtc, (u32 __user *)arg)) {
- ret = -EFAULT;
- break;
- }
- ret = s3c_fb_wait_for_vsync(sfb, crtc);
- break;
- default:
- ret = -ENOTTY;
- }
- return ret;
- }
In assembly debugging ioctl is calling "svc 0x00000000" what is returning 0xFFFFFFF2 (EFAULT - bad address).Thanks for help.
-
-
Yes, it seems this has something to do with using sound. If I start my firmware and initialize sound
this problem occurs. This is even if I don't play anything.When I'm using reboot and didn't start my firmware with the sound - it's working without the I2C hooking.
I also tried to run "speaker-test" and the problem is the same - I2C hooks on software reboot.
-
That's working. Thanks.
-
There's an option in the display settings of kernel configuration. Here you can set the resolution as well as the virtual resolution.
-
I still have some problems using double buffering. Indeed the kernel allocates 6MB of memory (1024x1536x32 bit) but the framebuffer information is still showing a resolution of 1024x768 and also virtual resolution of 1024x768.
Any Idea? Thanks. -
When restarting the PicoMOD7A in software (e.g. by executing "reboot") the I2C driver isn't initing correctly and is blocking the kernel. Here I attached my kernel debug:
Code- S3C Power Management, Copyright 2004 Simtec Electronics
- S5PV210: Initializing architecture
- s3c24xx-pwm s3c24xx-pwm.0: tin at 33350000, tdiv at 33350000, tin=divclk, base 0
- bio: create slab <bio-0> at 0
- print_constraints: 5V: 5000 mV
- print_constraints: 3V3: 3300 mV
- print_constraints: 2V9: 2900 mV
- print_constraints: 1V1: 1100 mV
- SCSI subsystem initialized
- usbcore: registered new interface driver usbfs
- usbcore: registered new interface driver hub
- usbcore: registered new device driver usb
- s3c-i2c s3c2440-hdmiphy-i2c: slave address 0x10
- s3c-i2c s3c2440-hdmiphy-i2c: bus frequency set to 65 KHz
- s3c-i2c s3c2440-hdmiphy-i2c: i2c-3: S3C I2C adapter
- s3c-i2c s3c2440-i2c.0: slave address 0x10
- s3c-i2c s3c2440-i2c.0: bus frequency set to 65 KHz
- s3c-i2c s3c2440-i2c.0: i2c-0: S3C I2C adapter
- s3c-i2c s3c2440-i2c.1: slave address 0x10
- s3c-i2c s3c2440-i2c.1: bus frequency set to 65 KHz
- s3c-i2c s3c2440-i2c.1: i2c-1: S3C I2C adapter
- s3c-i2c s3c2440-i2c.2: slave address 0x10
- s3c-i2c s3c2440-i2c.2: bus frequency set to 65 KHz
- s3c-i2c s3c2440-i2c.2: i2c-2: S3C I2C adapter
- Advanced Linux Sound Architecture Driver Version 1.0.24.
- Switching to clocksource s5p_clocksource_timer
- NET: Registered protocol family 2
- IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
- TCP established hash table entries: 8192 (order: 4, 65536 bytes)
- TCP bind hash table entries: 8192 (order: 5, 163840 bytes)
- TCP: Hash tables configured (established 8192 bind 8192)
- TCP reno registered
- UDP hash table entries: 128 (order: 0, 6144 bytes)
- UDP-Lite hash table entries: 128 (order: 0, 6144 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.
- s3c-adc samsung-adc-v3: attached adc driver
- squashfs: version 4.0 (2009/01/31) Phillip Lougher
- JFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
- ROMFS MTD (C) 2007 Red Hat, Inc.
- msgmni has been set to 495
- io scheduler noop registered
- io scheduler deadline registered
- io scheduler cfq registered (default)
- start plist test
- end plist test
- Console: switching to colour frame buffer device 128x96
- s3c-fb s5pv210-fb: window 0: fb
- dma-pl330 dma-pl330.0: Loaded driver for PL330 DMAC-267056
- dma-pl330 dma-pl330.0: DBUFF-8x4bytes Num_Chans-8 Num_Peri-32 Num_Events-32
- dma-pl330 dma-pl330.1: Loaded driver for PL330 DMAC-267056
- dma-pl330 dma-pl330.1: DBUFF-8x4bytes Num_Chans-8 Num_Peri-32 Num_Events-32
- s5pv210-uart.0: ttySAC0 at MMIO 0xe2900000 (irq = 74) is a S3C6400/10
- s5pv210-uart.1: ttySAC1 at MMIO 0xe2900400 (irq = 75) is a S3C6400/10
- s5pv210-uart.2: ttySAC2 at MMIO 0xe2900800 (irq = 76) is a S3C6400/10
- console [ttySAC2] enabled
- s5pv210-uart.3: ttySAC3 at MMIO 0xe2900c00 (irq = 77) is a S3C6400/10
- brd: module loaded
- loop: module loaded
- S3C24XX NAND Driver, (c) 2004 Simtec Electronics
- s3c24xx-nand s5p-nand: Tacls=8, 59ns Twrph0=8 59ns, Twrph1=8 59ns
- s3c24xx-nand s5p-nand: NAND hardware ECC
- NAND device: Manufacturer ID: 0x92, Chip ID: 0xf1 (Unknown NAND 128MiB 3,3V 8-bit)
- Scanning device for bad blocks
- 5 cmdlinepart partitions found on MTD device fsnand0
- Creating 5 MTD partitions on "fsnand0":
- 0x000000040000-0x0000000c0000 : "UBoot"
- 0x0000000c0000-0x000000100000 : "UBootEnv"
- 0x000000100000-0x000000500000 : "UserDef"
- 0x000000500000-0x000000800000 : "Kernel"
- 0x000000800000-0x000008000000 : "TargetFS"
- CAN device driver interface
- Reset MCP2515 CAN controller on SPI1-0
- mcp251x spi1.0: probed
- ax88796_mii_bus: probed
- ax88796 ax88796.0: eth0: 16bit, irq 42, d086e000, MAC: 00:05:51:04:3f:a0
- ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
- s5p-ehci s5p-ehci: S5P EHCI Host Controller
- s5p-ehci s5p-ehci: new USB bus registered, assigned bus number 1
- s5p-ehci s5p-ehci: irq 87, io mem 0xec200000
- s5p-ehci s5p-ehci: USB 0.0 started, EHCI 1.00
- usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
- usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
- usb usb1: Product: S5P EHCI Host Controller
- usb usb1: Manufacturer: Linux 3.3.7-F+S ehci_hcd
- usb usb1: SerialNumber: s5p-ehci
- hub 1-0:1.0: USB hub found
- hub 1-0:1.0: 1 port detected
- ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
- s5pv210-ohci s5pv210-ohci: S5PV210 OHCI Host Controller
- s5pv210-ohci s5pv210-ohci: new USB bus registered, assigned bus number 2
- s5pv210-ohci s5pv210-ohci: irq 87, io mem 0xec300000
- usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
- usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
- usb usb2: Product: S5PV210 OHCI Host Controller
- usb usb2: Manufacturer: Linux 3.3.7-F+S ohci_hcd
- usb usb2: SerialNumber: s5pv210-ohci
- hub 2-0:1.0: USB hub found
- hub 2-0:1.0: 1 port detected
- Initializing USB Mass Storage driver...
- usbcore: registered new interface driver usb-storage
- USB Mass Storage support registered.
- mousedev: PS/2 mouse device common for all mice
- atmel_mxt_ts 2-004a: __mxt_read_reg: i2c transfer failed
- atmel_mxt_ts: probe of 2-004a failed with error -5
- samsung-ts s3c64xx-ts: driver attached, registering input device
- input: S3C24XX TouchScreen as /devices/virtual/input/input0
- s3c-rtc s3c64xx-rtc: rtc core: registered s3c as rtc0
- usb 1-1: new high-speed USB device number 2 using s5p-ehci
- i2c /dev entries driver
- Linux media interface: v0.10
- Linux video capture interface: v2.00
- s5p-hdmiphy 3-0038: probe successful
- s5p-hdmi s5pv210-hdmi: probe sucessful
- Samsung TV Mixer driver, (c) 2010-2011 Samsung Electronics Co., Ltd.
- s5p-mixer s5p-mixer: probe start
- s5p-mixer s5p-mixer: resources acquired
- s5p-mixer s5p-mixer: added output 'S5P HDMI connector' from module 's5p-hdmi'
- s5p-mixer s5p-mixer: module s5p-sdo is missing
- s5p-mixer s5p-mixer: registered layer graph0 as /dev/video0
- s5p-mixer s5p-mixer: registered layer graph1 as /dev/video1
- s5p-mixer s5p-mixer: registered layer video0 as /dev/video2
- s5p-mixer s5p-mixer: probe successful
- usb 1-1: New USB device found, idVendor=0424, idProduct=2514
- uvcvideo: Unable to create debugfs directory
- usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
- usbcore: registered new interface driver uvcvideo
- USB Video Class driver (1.1.1)
- S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
- hub 1-1:1.0: USB hub found
- s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq disabled
- hub 1-1:1.0: 4 ports detected
- sdhci: Secure Digital Host Controller Interface driver
- sdhci: Copyright(c) Pierre Ossman
- s3c-sdhci s3c-sdhci.0: clock source 0: mmc_busclk.0 (133400000 Hz)
- s3c-sdhci s3c-sdhci.0: clock source 2: mmc_busclk.2 (47642857 Hz)
- mmc0: SDHCI controller on samsung-hsmmc [s3c-sdhci.0] using ADMA
- s3c-sdhci s3c-sdhci.2: clock source 0: mmc_busclk.0 (133400000 Hz)
- s3c-sdhci s3c-sdhci.2: clock source 2: mmc_busclk.2 (96000000 Hz)
- mmc1: no vmmc regulator found
- mmc1: SDHCI controller on samsung-hsmmc [s3c-sdhci.2] using ADMA
- usbcore: registered new interface driver usbhid
- usbhid: USB HID core driver
- sgtl5000 0-000a: sgtl5000 revision 17
- print_constraints: 0-000a: 850 <--> 1600 mV at 1200 mV normal
- sgtl5000 0-000a: Using internal LDO instead of VDDD
- s3c-i2c s3c2440-i2c.0: timeout waiting for bus idle
- s3c-i2c s3c2440-i2c.0: cannot get bus (error -110)
- s3c-i2c s3c2440-i2c.0: cannot get bus (error -110)
- s3c-i2c s3c2440-i2c.0: cannot get bus (error -110)
- s3c-i2c s3c2440-i2c.0: cannot get bus (error -110)
- s3c-i2c s3c2440-i2c.0: cannot get bus (error -110)
- s3c-i2c s3c2440-i2c.0: cannot get bus (error -110)
- s3c-i2c s3c2440-i2c.0: cannot get bus (error -110)
- s3c-i2c s3c2440-i2c.0: cannot get bus (error -110)
- s3c-i2c s3c2440-i2c.0: cannot get bus (error -110)
- s3c-i2c s3c2440-i2c.0: cannot get bus (error -110)
- s3c-i2c s3c2440-i2c.0: cannot get bus (error -110)
- s3c-i2c s3c2440-i2c.0: cannot get bus (error -110)
- s3c-i2c s3c2440-i2c.0: cannot get bus (error -110)
- s3c-i2c s3c2440-i2c.0: cannot get bus (error -110)
- s3c-i2c s3c2440-i2c.0: cannot get bus (error -110)
- s3c-i2c s3c2440-i2c.0: cannot get bus (error -110)
When rebooting by power off everything is starting correctly.
Thanks for help.
-
Exactly 10 mins after power on the display turns black. Seens like some kind of power saving. The only way to turn it on is a reboot. Where can I setup this parameters? The values in /sys/class/backlight/... stay the same as if it would remain on.
Thanks for help.
-
I changed the MAX_ZONE_ORDER to value 12. Now I can allocate the 6MB Display memory and it's working with that "ungood feeling".
The solution with predefined memory blocks for display operations in U-Boot would be great in one of the next updates.
Thanks very much.
-
On PicoMOD7 there was the possiblity to enable two framebuffers. So I can draw on one buffer then change the buffers and draw on the other buffer and so on (double buffering to avoid flicker). I tried to change the virtual resolution in kernel configuration to the double height but that ends in error allocating memory for framebuffer.
Resolution: 1024x768x32bit
virt. Resolution: 1024x768x32bit is working but with only one buffer
virt. Resolution: 1024x1536x32bit is not working (s3c-fb s5pv210-fb: failed to allocate display memory)Is there another way to enable double buffering?
Thanks for help.
-
I found out myself. Just removed the "ro" after "nfsroot=/rootfs" in the bootargs. Now I have write access.
-
The RootFS from F&S as well as my own RootFS are mount read only. Where can I change this? The bootargs don't set to ro, in etc/fstab it's mount as rw, I also find no setting in buildroot config...
Thanks again for help.
-
I changed the two defines, compiled and load U-Boot. Now I can set the nfs bootargs. It's booting from nfs.
Great - thanks
-
It's working now when calling "make menuconfig" with the correct env set. Sorry my mistake.
Thanks.