Quantcast
Channel: Forum - Recent Threads
Viewing all 1156 articles
Browse latest View live

linux 3.14 SPIBSC issue at boot

$
0
0

Hello,

I'm using a custom board with a single QSPI S25FL512S on SPIBSC0 with 32 MB of external SDRAM.

I would like to boot a non-XIP kernel with a writeable UBI or EXT3 File system.

Unfortunately, I cannot boot my system...

I've enabled CONFIG_SPI_SH_SPIBSC and I'm using the SAME spibsc params as the RSKRZA1 board.

Am I missing something ?

 

Here's my bootlog :

Booting Linux on physical CPU 0x0
Linux version 3.14.79-ltsi+ (dylan@dylan-K53SD) (gcc version 4.7.3 (Ubuntu/Linaro 4.7.3-12ubuntu1) ) #67 Fri Dec 15 15:55:33 CET 2017
CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine model: MIMO
debug: ignoring loglevel setting.
bootconsole [earlycon0] enabled
Memory policy: Data cache writeback
On node 0 totalpages: 8192
free_area_init_node: node 0, pgdat c04b66e0, node_mem_map c1fb9000
  Normal zone: 64 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 8192 pages, LIFO batch:0
CPU: All CPU(s) started in SVC mode.
pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
pcpu-alloc: [0] 0
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 8128
Kernel command line: console=ttySC2,115200 console=tty0 ignore_loglevel earlyprintk earlycon=scif,0xE8008000 root=/dev/mtdblock0
PID hash table entries: 128 (order: -3, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 27440K/32768K available (3455K kernel code, 163K rwdata, 1024K rodata, 140K init, 152K bss, 5328K reserved)
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    vmalloc : 0xc2800000 - 0xff000000   ( 968 MB)
    lowmem  : 0xc0000000 - 0xc2000000   (  32 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .text : 0xc0008000 - 0xc04680a0   (4481 kB)
      .init : 0xc0469000 - 0xc048c0ac   ( 141 kB)
      .data : 0xc048e000 - 0xc04b6f80   ( 164 kB)
       .bss : 0xc04b6f80 - 0xc04dcf88   ( 153 kB)
NR_IRQS:16 nr_irqs:16 16
sched_clock: 32 bits at 128 Hz, resolution 7812500ns, wraps every 16777216000000000ns
Console: colour dummy device 80x30
console [tty0] enabled
bootconsole [earlycon0] disabled
Calibrating delay loop (skipped) preset value.. 266.09 BogoMIPS (lpj=1041666)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0x83434c8 - 0x8343520
devtmpfs: initialized
VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
L310 cache controller enabled
l2x0: 8 ways, CACHE_ID 0x410000c8, AUX_CTRL 0x42020000, Cache size: 128 kB
No ATAGs?
hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
hw-breakpoint: maximum watchpoint size is 4 bytes.
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
sh_mtu2 sh-mtu2: ch0: used for clock events
sh_mtu2 sh-mtu2: ch0: used for periodic clock events
NET: Registered protocol family 2
TCP established hash table entries: 1024 (order: 0, 4096 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
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.
futex hash table entries: 256 (order: -1, 3072 bytes)
NFS: Registering the id_resolver key type
Key type id_resolver registered
Key type id_legacy registered
nfs4filelayout_init: NFSv4 File Layout Driver Registering...
jffs2: version 2.2. (NAND) (SUMMARY)  �© 2001-2006 Red Hat, Inc.
msgmni has been set to 53
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered (default)
io scheduler deadline registered
io scheduler cfq registered
SuperH (H)SCI(F) driver initialized
sh-sci.0: ttySC0 at MMIO 0xe8007000 (irq = 223, base_baud = 0) is a scif
sh-sci.2: ttySC2 at MMIO 0xe8008000 (irq = 231, base_baud = 0) is a scif
console [ttySC2] enabled
sh-sci.4: ttySC4 at MMIO 0xe8009000 (irq = 239, base_baud = 0) is a scif
sh-sci.5: ttySC5 at MMIO 0xe8009800 (irq = 243, base_baud = 0) is a scif
spibsc spibsc.0: timeout waiting for TEND
spibsc spibsc.0: error -110 for command 9f
spibsc_setup: WARNING: Could not detect SPI Flash Device
spibsc_setup: WARNING: This driver was not tested with this SPI Flash
spibsc spibsc.0: timeout waiting for TEND
spi_master spi5: failed to transfer one message from queue
m25p80: probe of spi5.0 failed with error -110
spibsc spibsc.0: probed
sh-eth r7s72100-ether: no valid MAC address supplied, using a random one.
libphy: sh_mii: probed
sh-eth r7s72100-ether eth0: Base address at 0xe8203000, 9e:55:1c:58:46:69, IRQ 359.
r8a66597_hcd r8a66597_hcd.0: USB Host Controller
r8a66597_hcd r8a66597_hcd.0: new USB bus registered, assigned bus number 1
r8a66597_hcd r8a66597_hcd.0: irq 73, io base 0xe8010000
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: USB Host Controller
usb usb1: Manufacturer: Linux 3.14.79-ltsi+ r8a66597_hcd
usb usb1: SerialNumber: r8a66597_hcd
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
usbcore: registered new interface driver usb-storage
sh-rtc sh-rtc: rtc core: registered sh as rtc0
i2c /dev entries driver
i2c-riic i2c-riic.0: version 2013-04-19: 100[kbps]
i2c-riic i2c-riic.2: version 2013-04-19: 100[kbps]
at24 3-0051: 16384 byte 24c128 EEPROM, writable, 64 bytes/write
i2c-riic i2c-riic.3: version 2013-04-19: 100[kbps]
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
TCP: cubic registered
NET: Registered protocol family 17
Key type dns_resolver registered
tfp410: right HDMI port enabled
tfp410: left HDMI port enabled
sh-rtc sh-rtc: setting system clock to 2017-12-15 14:34:06 UTC (1513348446)
VFS: Cannot open root device "mtdblock0" or unknown-block(0,0): error -6
Please append a correct "root=" boot option; here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
CPU: 0 PID: 1 Comm: swapper Not tainted 3.14.79-ltsi+ #67
[<c0012130>] (unwind_backtrace) from [<c00102bc>] (show_stack+0x10/0x14)
[<c00102bc>] (show_stack) from [<c033eccc>] (panic+0x70/0x1c8)
[<c033eccc>] (panic) from [<c0469f88>] (mount_block_root+0x208/0x250)
[<c0469f88>] (mount_block_root) from [<c046a0bc>] (mount_root+0xec/0x10c)
[<c046a0bc>] (mount_root) from [<c046a200>] (prepare_namespace+0x124/0x184)
[<c046a200>] (prepare_namespace) from [<c0469bb4>] (kernel_init_freeable+0x168/0x1ac)
[<c0469bb4>] (kernel_init_freeable) from [<c033d758>] (kernel_init+0x8/0xe4)
[<c033d758>] (kernel_init) from [<c000dc60>] (ret_from_fork+0x14/0x34)


Display issue in RZ/G1M while using HDMI Switch

$
0
0

Hi,

I am using three RZ/G1M starter kit boards to run three different AI application. I am using OpenCV to display the video output from each of those application to a single HDMI Monitor through a HDMI switch.

When I am switching to different HDMI out using the HDMI switch i am not getting the video out on my HDMI monitor and i am not getting any error from OpenCV also, and when i restart the weston using /etc/init,d/weston restart it continuous the video streaming from my application.

So i have to restart weston whenever i switch to a new HDMI out using HDMI switch.

I am using yocto-1.6

Is there anyway to configure weston to restart weston automatically when there is new HDMI connection established or how to detect the switchover in HDMI out.

 

Regards,

Gopi

Decrease SCI high baudrate deviation

$
0
0

Hi,

 

I need to use the SCI(5) with a baudrate around 1MHz. The driver calculates this to a value of 2 for the bitrate register. This results in large deviations (up to 12%) for the actual baudrate. It seems the only way to get a more precise value is to lower the prediv value or increase the peripheral clock. Both seem pretty much unchangeable. (The driver already picks the lowest prediv value).

Are there any other options?

Thanks!

 

Kind regards,

 

Remco Poelstra

SPI RTC(DS3234) Issue

$
0
0

Hello Renesas,

We are using RTC ds3234 connected through SPI interface (MSIOF1), facing
the below issue.

1. Chip Select is not toggling during data transfer.

Following are the settings done in dts:

&msiof1 {
         pinctrl-0 = <&msiof1_pins>;
         pinctrl-names = "default";
         status = "okay";
         rtc@1 {
                 compatible = "ds3234";
                 reg = <1>;
                 spi-max-frequency = <4000000>;
         };
};


    msiof1_pins: spi2 {
                 renesas,groups = "msiof1_clk_b", "msiof1_tx_b",
"msiof1_rx_b",
                                  "msiof1_ss2_b";
                 renesas,function = "msiof1";
    };

Working Environment :

RZ/G1M processors

Linux version : 3.10.31

Thanks & Regards,
Anush

Suspend Wakeup issue

$
0
0

Hello,

    We are trying to put board to suspend mode using "echo mem > /sys/power/state" command .

When i try wakeup using UART board hangs and i get below error:

PM: Syncing filesystems ... done.
PM: Preparing system for mem sleep
Freezing user space processes ... (elapsed 0.01 seconds) done.
Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
PM: Entering mem sleep
PM: suspend of devices complete after 203.287 msecs
PM: suspend devices took 0.210 seconds
PM: late suspend of devices complete after 0.740 msecs
i2c-rcar e6528000.i2c: error -110 : 1
pvrsrvkm pvrsrvkm: stop latency exceeded, new value 5100 ns
PM: noirq suspend of devices complete after 5042.923 msecs
Disabling non-boot CPUs ...
CPU1: shutdown
Enabling non-boot CPUs ...
CPU1: Booted secondary processor
CPU1 is up
PM: noirq resume of devices complete after 35.577 msecs

Since i was getting i2c5 error i did below testing

 

Observation:

  • i disabled i2c5 in dts it was working fine .
  • If we remove IO Expansion connector without disabling i2c5 in dts Suspend wakeup is working fine.

Devices connected to i2c5 bus are:

  • Main board:   HDMI, RTC(DS1307Z) 
  • IO Expansion connector : Ambiant light sensor(OPT3001DNPT).

Working Environment :
RZ/G1M processors
Linux version : 3.10.3

 

Thanks ,

Shourie

Audio not working linux 4.9

$
0
0

Hi,

 

I've updated to the latest linux 4.9 kernel.

When I now run `aplay -l` it shows:

**** List of PLAYBACK Hardware Devices ****
card 0: rskrza1max9856 [rskrza1-max9856], device 0: MAX9856 max9856-hifi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0

 

So this looks nice, but whenI then run `aplay file.wav` I get:

scu playback route is invalid.
scux-pcm-audio scux-pcm-audio.0: ASoC: can't open platform scux-pcm-audio.0: -1
aplay: main:807: audio open error: Operation not permitted

 

It looks to me it has something to do with the Device Tree, but I did re-flash the dtb file.

Am I missing something?

 

Kind regards,

 

Remco Poelstra

Performance difference in Yocto-1.6 and Yocto-2.0 running in RZ/G1M

$
0
0

Hi,

I am using RZ/G1M to run my application. When I am using yocto-2.0 the application is very slower(2 times)  when compared to running on yocto-1.6.

Is there any optimization i have to do since i am planning to use yocto - 2.0 which will resolve other problems..

Only difference i could find is gcc compiler version is different.

Yocto-1.6 - gcc-4.8

Yocto-2.0 - gcc-5.2

Thanks.

Has anyone interfaced a LAN9514 USB/Ethernet chip to a RZ/A1?

$
0
0

We are modifying an existing custom board built around a RZ/A1 and intend to add a LAN9514 for Ethernet functionality.

Has anyone tried this?  Any hints or sample code would be greatly appreciated.

Note: Our software environment is built around CMSIS RTOS, not Linux - if that matters.

Thanks.

Ref: http://www.microchip.com/wwwproducts/en/LAN9514


SCIF overrun errors with RTS/CTS

$
0
0

Hi,

 

I'm using a Laird Sterling-LWB module for bluetooth. It uses an HCI4 interface, which I've wired to SCIF5 on the CN44 connector. In my DTS I've made an alias to serialport 1:

aliases {

  serial0 = &scif2;

  serial1 = &scif5;

}

 

I've also configured the pins like:

scif5_pins: serial5 {

  pinmux = <RZA1_PINMUX(11, 10, 3)>, /*TXD*/

                 <RZA1_PINMUX(11, 11, 3)>, /*RXD*/

                  <RZA1_PINMUX(11, 7, 3)>, /*CTS*/

                  <RZA1_PINMUX(11, 8, 3)>; /*RTS*/

 }

And enabled the port:

&scif5 {

  pinctrl-names = "default";

  pinctrl-0 = <&scif5_pins>;

  status = "okay";

}

I run at a baudrate of 1041406 (the SCIF believes that it runs at 1152000, but this is the closest it can get). I've checked the incoming and outgoing baudrates and they are near perfect.

Unfortunately I get a lot of overrun errors when larger packets are received. I never see the CTS or RTS lines toggle though.

 

Did I miss something about getting the RTS and CTS lines to work? I would expect the RTS line to go high when the FIFO is (almost) full. (I checked that flow control is requested using termios.c_cflag).

Another question is why can't the ARM keep up with an UART running at 1MHz?

 

Thanks in advance.

 

Kind regards,

 

Remco Poelstra

Having trouble with USB Host Sample2 from RZ/A1 Framework

$
0
0

I'm trying to get familiar with the USB capabilities of the RZ/A1, so I'm trying the USB Host Sample2 from the RZ/A1 Framework (AN3639) on a RSK board.

The sample app compiles and seems to load into flash properly - but when I reset (or power cycle) the board, I see no activity on the debug serial port.

Anyone have experience with this app note?  I've successfully used the samples from the CMSIS-RTOS BSP app note, so I'm fairly sure my hardware and environment are functional.  And I've run the "Blinky" sample in RAM and it behaves as expected.  (Although I've not been able to get Blinky to run out of flash, either).

Thanks.

[RZ/G1E] Display image is wrong with VSPM filtering

$
0
0

Hi all,

I am trying a scaling, displaying, and file saving on RZ/G1E (BSP for starter kit + multimedia package).
But, display image is wrong. I attached the image.

 

This is the flow of concrete processing.

  H.264 dec -> scaling & NV12 format convert with VSPM (DATA-A)
    DATA-A -> format convert with VSPM -> display(wayland)
    DATA-A -> NV12 file saving

[Command]
# gst-launch-1.0 filesrc location=input.mp4 ! qtdemux ! omxh264dec ! vspmfilter outbuf-alloc=true ! video/x-raw,format=NV12,width=800,height=480 ! tee tee0. ! vspmfilter outbuf-alloc=false ! video/x-raw,format=BGRA ! waylandsink sync=false async=false tee0. ! filesink location=output.dat sync=false async=false

BTW, if set I420 format, display image is good.

# gst-launch-1.0 filesrc location=input.mp4 ! qtdemux ! omxh264dec ! vspmfilter outbuf-alloc=true ! video/x-raw,format=I420,width=800,height=480 ! tee tee0. ! vspmfilter outbuf-alloc=false ! video/x-raw,format=BGRA ! waylandsink sync=false async=false tee0. ! filesink location=output.dat sync=false async=false

Do you know how to resolve?

Best Regards,
Kenji

USB: Media Sector Size = 0 bytes

$
0
0

Not sure if this is an RZ issue, but I thought I'd start here...

I'm experimenting with the USB Host Sample 2 from the RZ/A1 Framework V1.03 (app note R01AN3638EJ0103) on the RSK board.  It seems to work as expected with one of my USB thumb drives, but a different drive reports a Media Sector Size of 0 bytes (instead of the normal 512).  Both drives work OK on my Windows machine.

Also, with the "bad" drive plugged in, the call to ioif_read() doesn't return.

Does this sound familiar?  Smells like a bug in the Renesas USB driver code.

Thanks.

 

[RZ/G1E] "MMD close kernelheap" with VSPM filtering

$
0
0

Hi all,

I am trying use vspmfilter with GStreamer on RZ/G1E (BSP for starter kit + multimedia package).
But, in my program, repeating the state transition of PLAYING and READY causes "MMD close kernelheap" error and stops.

=== My Program ===

  test_pipeline = gst_parse_launch("\
    udpsrc port=10200 ! application/x-rtp ! \
    rtph264depay ! video/x-h264,stream-format=byte-stream,alignment=au ! \
    h264parse ! omxh264dec ! tee name=tee0 ! \
      vspmfilter outbuf-alloc=true ! video/x-raw,format=I420,width=800,height=480 ! tee name=tee1 ! \
        vspmfilter outbuf-alloc=false ! video/x-raw,format=BGRA ! waylandsink async=false sync=false \
      tee0. ! queue ! omxh264enc ! rtph264pay ! udpsink host=192.168.0.1 port=10300 sync=false async=false", &error);

  while(1) {
    printf("set PLAYING\n");
    gst_element_set_state(test_pipeline, GST_STATE_PLAYING);
    sleep(5);

    printf("set READY\n");
    gst_element_set_state(test_pipeline, GST_STATE_READY);
    sleep(5);
  }

  g_main_loop_run(mainloop);

==================

Do you know how to resolve?

Best Regards,
Kenji

Audio Issue

$
0
0

Hi,

We have Sgtl5000 audio codec interfaced with RZ/G1M processor.

If we play a audio file after the system wakes up from the suspend mode we get noise along with the audio.

But before putting the system to suspend mode audio is working fine(No noise).

Please let me know what is the issue. 

RZ/A1 Interface and VDC 5 options

$
0
0

Hello,

 

We are using RZ/A1H platform 256 BGA package on our kit.

The common use of that controller in our project was for video processing, but now we should extended its features. Almost all of the peripheral pins of processor are used (8bit input and 16bit video output, 2 SD interface channels, SDRAM interface (16Mx16), and etc.), so we haven't so many options for alternative pins.

My question is:

Can we get the output video data (16bit) from channel 1 and get clock signals (PIXCLK, HS and VS) from channel 0?

There is information about "Output Controller" and "System Controller" in the User_Manual, but I could't find is this possible.

I would be glad for any response.

 

Regards,

Petar


macronix mx25L3233F suport on RZA1L

$
0
0

Hi all,

 

We have a custom made RZA1L based board and using latest BSP-4.9, using MACRONIX-MX25L3233F (32Mb)  flash, made the appropriate changes as per our board,

Pins Used for console

pfc_set_pin_function(7, 1, ALT4, 0, 0); /* P3_0 = TxD2 */
        pfc_set_pin_function(1, 10, ALT3, 0, 0);        /* P3_2 = RxD2 */

AND  for SPI  We used

pfc_set_pin_function(4, 4, ALT2, 0, 0); /* P9_2 = SPBCLK_0 */
pfc_set_pin_function(4, 5, ALT2, 0, 0); /* P9_3 = SPBSSL_0 */
pfc_set_pin_function(4, 6, ALT2, 0, 1); /* P9_4 = SPBIO00_0 (bi dir) */
pfc_set_pin_function(4, 7, ALT2, 0, 1); /* P9_5 = SPBIO10_0 (bi dir) */
pfc_set_pin_function(4, 2, ALT2, 0, 1); /* P9_6 = SPBIO20_0 (bi dir) */
pfc_set_pin_function(4, 3, ALT2, 0, 1); /* P9_7 = SPBIO30_0 (bi dir) */

And follwed the  instruction as per porting guide.  and selected macronix driver , build u-boot and flashing the image into the spi flash using  below command.

 

./build.sh jlink output/u-boot-2017.05/u-boot.bin 0x18000000

able to flash the  u-boot into the flash.

 

But not able to see anything in serial port.

 

Tried to  build  and download to RAM  Boot directly by using mode=3 but still not getting any on console.

 

Please any one here guide me what am i missing here and how to go about it.

 

Thanks and regards,

Nagaraja

Debugging prefetch_handler error in FreeRTOS for RZ/A1H platform

$
0
0

Hi,

 

I  have written an application on RZ/A1H starter kit+ which does play audio on speaker for FreeRTOS. I am using e2 studio for development and debugging.

Currently, Code runs fine for around 15-30 minutes when playing audio continuously after that prefetch handler gets called.

backtrace doesn't help here. It prints the prefetch handler location only.

Can you please guide me how to debug this issue?

Maximum capacity SD card supported by RZ/N1D 400 pin processor

$
0
0

Hi,

I have doubt on maximum capacity of SD card supported by RZ/N1D,400 pin processor.Please help me on this.

 

Kind Regards,

Faize 

RZ/T1: How to use the SWV interface?

$
0
0

I have the RSK+RZT1 Board and want to use the SWV interface in order to redirect the printf() function output to the SWV interface. How can I do this? This is my first expirience with ARM CPU and SWV interface.

I've tried the IAR Embedded Workbench and setting the library stdout to SWO and enabling the Terminal I/O but without any results.

RZ/G1 Android BSP

$
0
0

Hi All,

In the end of 2017 there was information that Renesas prepare Android BSP for RZ/G. Does anyone know readiness? Any possible to get it?

 

BR, Sergey Lysov 

Viewing all 1156 articles
Browse latest View live


Latest Images