Imaging solutions with Free Software & Open Hardware

Who's online

There are currently 0 users online.

02/25/16 [linux-elphel] By Mikhail Karpenko: WIP: dump memory region

Elphel GIT logs - Thu, 02/25/2016 - 20:01
Mikhail Karpenko committed changes to the Elphel GIT project linux-elphel:
WIP: dump memory region

02/25/16 [linux-elphel] By Andrey Filippov: indexing open files option

Elphel GIT logs - Thu, 02/25/2016 - 19:11
Andrey Filippov committed changes to the Elphel GIT project linux-elphel:
indexing open files option

02/25/16 [linux-elphel] By Andrey Filippov: changed external tools

Elphel GIT logs - Thu, 02/25/2016 - 18:34
Andrey Filippov committed changes to the Elphel GIT project linux-elphel:
changed external tools

02/25/16 [linux-elphel] By Andrey Filippov: more tweaking of the CDT

Elphel GIT logs - Thu, 02/25/2016 - 18:28
Andrey Filippov committed changes to the Elphel GIT project linux-elphel:
more tweaking of the CDT

02/25/16 [linux-elphel] By Andrey Filippov: added Eclipse .externalToolBuilders directory

Elphel GIT logs - Thu, 02/25/2016 - 13:05
Andrey Filippov committed changes to the Elphel GIT project linux-elphel:
added Eclipse .externalToolBuilders directory

02/25/16 [linux-elphel] By Mikhail Karpenko: Merge branch 'master' of https://github.com/Elphel/linux-elphel into debug

Elphel GIT logs - Thu, 02/25/2016 - 12:57
Mikhail Karpenko committed changes to the Elphel GIT project linux-elphel:
Merge branch 'master' of https://github.com/Elphel/linux-elphel into debug

02/25/16 [linux-elphel] By Andrey Filippov: exported buffer from elphel393-mem

Elphel GIT logs - Thu, 02/25/2016 - 11:46
Andrey Filippov committed changes to the Elphel GIT project linux-elphel:
exported buffer from elphel393-mem

02/24/16 [linux-elphel] By Andrey Filippov: Added /drivers/ata to indexer

Elphel GIT logs - Wed, 02/24/2016 - 23:57
Andrey Filippov committed changes to the Elphel GIT project linux-elphel:
Added /drivers/ata to indexer

02/24/16 [linux-elphel] By Andrey Filippov: Fixed source directory

Elphel GIT logs - Wed, 02/24/2016 - 23:07
Andrey Filippov committed changes to the Elphel GIT project linux-elphel:
Fixed source directory

02/23/16 [x393_sata] By Andrey Filippov: more debugging with the AHCI driver

Elphel GIT logs - Tue, 02/23/2016 - 23:45
Andrey Filippov committed changes to the Elphel GIT project x393_sata:
more debugging with the AHCI driver

Microzed issues

Wiki Recent Changes - Tue, 02/23/2016 - 15:35

List:

← Older revision Revision as of 22:35, 23 February 2016 (4 intermediate revisions not shown)Line 1: Line 1: ==List== ==List== -* <b style='color:green'>[SOLVED]</b> UART+===<b style='color:green'>[CLEARED]</b> UART=== <font size='2'> <font size='2'>   <b>Description:</b>   <b>Description:</b> Line 31: Line 31: </font> </font> -* SSH terminal+===<b style='color:green'>[CLEARED]</b> SSH terminal=== <font size='2'> <font size='2'>   <b>Description:</b>   <b>Description:</b>      Freezes, lags but remembers all typed symbols      Freezes, lags but remembers all typed symbols   <b>Possible reason:</b>   <b>Possible reason:</b> -     Bad network cable? Network problem?+     Devices with identical MACs in LAN </font> </font> -* RTC+===RTC=== <font size='2'> <font size='2'> -    Too many messages when rtc is missing    <b>Description:</b>   <b>Description:</b>  +    Not an issue      3x"hwclock: can't open '/dev/misc/rtc': No such file or directory" in boot log      3x"hwclock: can't open '/dev/misc/rtc': No such file or directory" in boot log   <b>Possible reason:</b>   <b>Possible reason:</b> -     driver+     a. Microzed doesn't have a real-time clock (rtc)  +    b. Reported by /etc/init.d/hwclock.sh - not the driver </font> </font> -* U-boot Falcon mode (boot from SPL directly to OS avoiding full u-boot)+===U-boot Falcon mode (boot from SPL directly to OS avoiding full u-boot)=== <font size='2'> <font size='2'>   <b>Description:</b>   <b>Description:</b> Line 53: Line 54:   <b>Possible reason:</b>   <b>Possible reason:</b>               -* U-boot spl reads u-boot-dtb.img 2 times+===U-boot spl reads u-boot-dtb.img 2 times=== <font size='2'> <font size='2'>   <b>Description:</b>   <b>Description:</b> Line 92: Line 93: </font> </font> -  -* hwclock multiple error messages  -<font size='2'>  - <b>Description:</b>  -    Not an issue  -    "hwclock: can't open '/dev/misc/rtc': No such file or directory" repeated 3 times  - <b>Possible reason:</b>  -    a. Microzed doesn't have a real-time clock (rtc)  -    b. Reported by /etc/init.d/hwclock.sh - not the driver  ==Useful pages== ==Useful pages== Oleg

02/22/16 [linux-elphel] By Mikhail Karpenko: add libahci with debug output

Elphel GIT logs - Mon, 02/22/2016 - 21:00
Mikhail Karpenko committed changes to the Elphel GIT project linux-elphel:
add libahci with debug output

02/22/16 [linux-elphel] By Mikhail Karpenko: add libahci_debug

Elphel GIT logs - Mon, 02/22/2016 - 20:45
Mikhail Karpenko committed changes to the Elphel GIT project linux-elphel:
add libahci_debug

02/22/16 [x393_sata] By Andrey Filippov: debugging with the driver

Elphel GIT logs - Mon, 02/22/2016 - 16:21
Andrey Filippov committed changes to the Elphel GIT project x393_sata:
debugging with the driver

02/20/16 [linux-elphel] By Mikhail Karpenko: WIP: AHCI driver

Elphel GIT logs - Sat, 02/20/2016 - 09:52
Mikhail Karpenko committed changes to the Elphel GIT project linux-elphel:
WIP: AHCI driver

02/19/16 [linux-elphel] By Mikhail Karpenko: add .cproject with include directories set

Elphel GIT logs - Fri, 02/19/2016 - 20:53
Mikhail Karpenko committed changes to the Elphel GIT project linux-elphel:
add .cproject with include directories set

Microzed issues

Wiki Recent Changes - Fri, 02/19/2016 - 18:19

← Older revision Revision as of 01:19, 20 February 2016 (One intermediate revision not shown)Line 1: Line 1: ==List== ==List== -* <b style='color:green'>[SOLVED]</b> UART+===<b style='color:green'>[SOLVED]</b> UART=== <font size='2'> <font size='2'>   <b>Description:</b>   <b>Description:</b> Line 31: Line 31: </font> </font> -* SSH terminal+===SSH terminal=== <font size='2'> <font size='2'>   <b>Description:</b>   <b>Description:</b> Line 38: Line 38:      Bad network cable? Network problem?      Bad network cable? Network problem? </font> </font> -* RTC+===RTC=== <font size='2'> <font size='2'> -     Too many messages when rtc is missing+     Not an issue  +    "hwclock: can't open '/dev/misc/rtc': No such file or directory" repeated 3 times   <b>Description:</b>   <b>Description:</b>      3x"hwclock: can't open '/dev/misc/rtc': No such file or directory" in boot log      3x"hwclock: can't open '/dev/misc/rtc': No such file or directory" in boot log   <b>Possible reason:</b>   <b>Possible reason:</b> -     driver+     a. Microzed doesn't have a real-time clock (rtc)  +    b. Reported by /etc/init.d/hwclock.sh - not the driver </font> </font> -* U-boot Falcon mode (boot from SPL directly to OS avoiding full u-boot)+===U-boot Falcon mode (boot from SPL directly to OS avoiding full u-boot)=== <font size='2'> <font size='2'>   <b>Description:</b>   <b>Description:</b> Line 53: Line 55:   <b>Possible reason:</b>   <b>Possible reason:</b>               -* U-boot spl reads u-boot-dtb.img 2 times+===U-boot spl reads u-boot-dtb.img 2 times=== <font size='2'> <font size='2'>   <b>Description:</b>   <b>Description:</b> Line 92: Line 94: </font> </font> -  -* hwclock multiple error messages  -<font size='2'>  - <b>Description:</b>  -    Not an issue  -    "hwclock: can't open '/dev/misc/rtc': No such file or directory" repeated 3 times  - <b>Possible reason:</b>  -    a. Microzed doesn't have a real-time clock (rtc)  -    b. Reported by /etc/init.d/hwclock.sh - not the driver  ==Useful pages== ==Useful pages== Oleg

Poky 2.0 manual

Wiki Recent Changes - Fri, 02/19/2016 - 18:13

Setup:

← Older revision Revision as of 01:13, 20 February 2016 Line 41: Line 41:           git clone -b master https://github.com/Elphel/meta-elphel393.git meta-elphel393   git clone -b master https://github.com/Elphel/meta-elphel393.git meta-elphel393 -  cd meta-elphel393; git checkout e8c6e139848a21b1bf0c05b306108e390bc44e24; cd ..+  cd meta-elphel393; git checkout c5237f99d94217bff8c9180bed93ee673c9590a1; cd ..           git clone -b master https://github.com/Xilinx/meta-xilinx.git meta-xilinx   git clone -b master https://github.com/Xilinx/meta-xilinx.git meta-xilinx Oleg

Microzed issues

Wiki Recent Changes - Fri, 02/19/2016 - 18:07

New page

==List==
* <b style='color:green'>[SOLVED]</b> UART
<font size='2'>
<b>Description:</b>
UART register contents: timeout=0 rxfifo_level=56, should be timeout=10 rxfifo_level=56
minicom prints 56 symbols at a time when rxfifo reaches its level.
remembers all typed symbols
sometimes the timeout register is set correctly
<b>Possible reason:</b>
In driver .startup and .termios conflict? Racing Resets or reset takes time?
<b>Solution:</b>
Added a delay after reset - some other functions in the driver also have it - some not. Luck?
<b>Patch:</b>
<i>diff --git a/drivers/tty/serial/xilinx_uartps.c b/drivers/tty/serial/xilinx_uartps.c
index f214c7f..164e32d 100644
--- a/drivers/tty/serial/xilinx_uartps.c
+++ b/drivers/tty/serial/xilinx_uartps.c
@@ -704,6 +704,9 @@ static void cdns_uart_set_termios(struct uart_port *port,
ctrl_reg |= CDNS_UART_CR_TXRST | CDNS_UART_CR_RXRST;
cdns_uart_writel(ctrl_reg, CDNS_UART_CR_OFFSET);

+ while (cdns_uart_readl(CDNS_UART_CR_OFFSET) &
+ (CDNS_UART_CR_TXRST | CDNS_UART_CR_RXRST))
+ cpu_relax();
/*
* Clear the RX disable and TX disable bits and then set the TX enable
* bit and RX enable bit to enable the transmitter and receiver.</i>
<b>Links:</b>
* https://forums.xilinx.com/t5/Zynq-All-Programmable-SoC/Zynq-Uart-timeout-problem/td-p/432016
* http://www.makelinux.net/ldd3/chp-7-sect-3
</font>

* SSH terminal
<font size='2'>
<b>Description:</b>
Freezes, lags but remembers all typed symbols
<b>Possible reason:</b>
Bad network cable? Network problem?
</font>
* RTC
<font size='2'>
Too many messages when rtc is missing
<b>Description:</b>
3x"hwclock: can't open '/dev/misc/rtc': No such file or directory" in boot log
<b>Possible reason:</b>
driver
</font>

* U-boot Falcon mode (boot from SPL directly to OS avoiding full u-boot)
<font size='2'>
<b>Description:</b>
Try
<b>Possible reason:</b>

* U-boot spl reads u-boot-dtb.img 2 times
<font size='2'>
<b>Description:</b>
Not an issue - prints "reading u-boot-dtb.img" 2 times. "Very Annoying","Every microsecond counts"!
<b>Possible reason:</b>
<b>u-boot/common/spl/spl_fat.c:</b>
<i>int spl_load_image_fat(block_dev_desc_t *block_dev,
int partition,
const char *filename)
{
int err;
struct image_header *header;

err = spl_register_fat_device(block_dev, partition);
if (err)
goto end;

header = (struct image_header *)(CONFIG_SYS_TEXT_BASE -
sizeof(struct image_header));

err = <b>file_fat_read</b>(filename, header, sizeof(struct image_header));
if (err <= 0)
goto end;

spl_parse_image_header(header);

err = <b>file_fat_read</b>(filename, (u8 *)spl_image.load_addr, 0);

end:
#ifdef CONFIG_SPL_LIBCOMMON_SUPPORT
if (err <= 0)
printf("%s: error reading image %s, err - %d\n",
__func__, filename, err);
#endif

return (err <= 0);
}</i>

</font>

* hwclock multiple error messages
<font size='2'>
<b>Description:</b>
Not an issue
"hwclock: can't open '/dev/misc/rtc': No such file or directory" repeated 3 times
<b>Possible reason:</b>
a. Microzed doesn't have a real-time clock (rtc)
b. Reported by /etc/init.d/hwclock.sh - not the driver

==Useful pages==
* http://processors.wiki.ti.com/index.php/Enabling_Stack_Dumping_in_Linux_Kernel
* https://lists.yoctoproject.org/pipermail/poky/2015-February/010037.html - change hostname in poky
* http://www.makelinux.net/ldd3/chp-7-sect-3
* http://www.denx.de/wiki/pub/U-Boot/MiniSummitELCE2013/2013-ELCE-U-Boot-Falcon-Boot.pdf Oleg

Microzed issues

Wiki Recent Changes - Fri, 02/19/2016 - 17:46

New page

==List==
* <b style='color:green'>[SOLVED]</b> UART
<font size='2'>
<b>Description:</b>
UART register contents: timeout=0 rxfifo_level=56, should be timeout=10 rxfifo_level=56
minicom prints 56 symbols at a time when rxfifo reaches its level.
remembers all typed symbols
sometimes the timeout register is set correctly
<b>Possible reason:</b>
In driver .startup and .termios conflict? Racing Resets or reset takes time?
<b>Solution:</b>
Added a delay after reset - some other functions in the driver also have it - some not. Luck?
<b>Patch:</b>
<i>diff --git a/drivers/tty/serial/xilinx_uartps.c b/drivers/tty/serial/xilinx_uartps.c
index f214c7f..164e32d 100644
--- a/drivers/tty/serial/xilinx_uartps.c
+++ b/drivers/tty/serial/xilinx_uartps.c
@@ -704,6 +704,9 @@ static void cdns_uart_set_termios(struct uart_port *port,
ctrl_reg |= CDNS_UART_CR_TXRST | CDNS_UART_CR_RXRST;
cdns_uart_writel(ctrl_reg, CDNS_UART_CR_OFFSET);

+ while (cdns_uart_readl(CDNS_UART_CR_OFFSET) &
+ (CDNS_UART_CR_TXRST | CDNS_UART_CR_RXRST))
+ cpu_relax();
/*
* Clear the RX disable and TX disable bits and then set the TX enable
* bit and RX enable bit to enable the transmitter and receiver.</i>
<b>Links:</b>
* https://forums.xilinx.com/t5/Zynq-All-Programmable-SoC/Zynq-Uart-timeout-problem/td-p/432016
* http://www.makelinux.net/ldd3/chp-7-sect-3
</font>

* SSH terminal
<font size='2'>
<b>Description:</b>
Freezes, lags but remembers all typed symbols
<b>Possible reason:</b>
Bad network cable? Network problem?
</font>
* RTC
<font size='2'>
Too many messages when rtc is missing
<b>Description:</b>
3x"hwclock: can't open '/dev/misc/rtc': No such file or directory" in boot log
<b>Possible reason:</b>
driver
</font>

* U-boot Falcon mode (boot from SPL directly to OS avoiding full u-boot)
<font size='2'>
<b>Description:</b>
Try
<b>Possible reason:</b>

* U-boot spl reads u-boot-dtb.img 2 times
<font size='2'>
<b>Description:</b>
Not an issue - prints "reading u-boot-dtb.img" 2 times. "Very Annoying","Every microsecond counts"!
<b>Possible reason:</b>
<b>u-boot/common/spl/spl_fat.c:</b>
<i>int spl_load_image_fat(block_dev_desc_t *block_dev,
int partition,
const char *filename)
{
int err;
struct image_header *header;

err = spl_register_fat_device(block_dev, partition);
if (err)
goto end;

header = (struct image_header *)(CONFIG_SYS_TEXT_BASE -
sizeof(struct image_header));

err = <b>file_fat_read</b>(filename, header, sizeof(struct image_header));
if (err <= 0)
goto end;

spl_parse_image_header(header);

err = <b>file_fat_read</b>(filename, (u8 *)spl_image.load_addr, 0);

end:
#ifdef CONFIG_SPL_LIBCOMMON_SUPPORT
if (err <= 0)
printf("%s: error reading image %s, err - %d\n",
__func__, filename, err);
#endif

return (err <= 0);
}</i>

</font>

==Useful pages==
* http://processors.wiki.ti.com/index.php/Enabling_Stack_Dumping_in_Linux_Kernel
* https://lists.yoctoproject.org/pipermail/poky/2015-February/010037.html - change hostname in poky
* http://www.makelinux.net/ldd3/chp-7-sect-3
* http://www.denx.de/wiki/pub/U-Boot/MiniSummitELCE2013/2013-ELCE-U-Boot-Falcon-Boot.pdf Oleg

Pages

Subscribe to www3.elphel.com aggregator