Imaging solutions with Free Software & Open Hardware

Who's online

There are currently 0 users online.

Subscribe to Wiki Recent Changes feed
Track the most recent changes to the wiki in this feed. MediaWiki 1.28.0
Updated: 29 min 48 sec ago

Poky 2.0 manual

Wed, 03/09/2016 - 00:37

Reflash factory image (update software/firmware or corrupt flash partition):

← Older revision Revision as of 07:37, 9 March 2016 (13 intermediate revisions not shown)Line 12: Line 12: ==<font color="blue">Output files</font>== ==<font color="blue">Output files</font>== -Found in the poky's deploy directory: '''poky/build/tmp/deploy/images/'''+Found in the poky's deploy directory:  +* files for rootfs in NAND Flash: '''poky/build/tmp/deploy/images/elphel393/nand/'''  +* files for rootfs on MMC (micro SD card): '''poky/build/tmp/deploy/images/elphel393/mmc/''' These names are listed as they appear in the u-boot configuration header file - actual output files have different names: These names are listed as they appear in the u-boot configuration header file - actual output files have different names: * '''boot.bin''' - u-boot as the first stage bootloader = Secondary Program Loader that boots '''u-boot-dtb.img''' * '''boot.bin''' - u-boot as the first stage bootloader = Secondary Program Loader that boots '''u-boot-dtb.img''' * '''u-boot-dtb.img''' - full size u-boot with a stripped device tree (''cat u-boot.img some_stripped_devicetree.dtb > u-boot-dtb.img'') * '''u-boot-dtb.img''' - full size u-boot with a stripped device tree (''cat u-boot.img some_stripped_devicetree.dtb > u-boot-dtb.img'') -* '''devicetree.dtb''' - device tree with described interfaces, zynq registers, interrupts and drivers+* '''devicetree.dtb''' - device tree with listed interfaces, zynq registers, interrupts and drivers * '''uImage''' - kernel, drivers * '''uImage''' - kernel, drivers -* '''uramdisk.image.gz''' - applications+* '''rootfs.ubifs''' or '''rootfs.tar.gz''' - rootfs - + -Copy them on the micro SD card (FAT partition) > run '''boot''' once in the u-boot command line.+ ==<font color="blue">Boot options</font>== ==<font color="blue">Boot options</font>== -* Auto unpacking the root file system image to RAM when booting:+===Boot from micro SD card=== -** Check u-boot default environment variables when building the bootloader.+* The micro SD card/adapter must be modified for this boot mode (to keep CD pin high) - only then the camera will boot. -** Keep '''uramdisk.image.gz''' along with all the other files on the FAT partition of (micro)SD card.+* EXT4 partition mounted as '''/'''. -* <font style='color:rgba(100,100,100,1)'>Root file system on EXT2(EXT3,etc.) partition of (micro)SD card.</font>+====Instructions====  +PC:  +* After all of the targets are built use files from '''.../poky/build/tmp/deploy/images/elphel393/mmc/'''  +* Format to have 2 partitions: FAT32 and EXT4 (use gparted), the order of partitions is important or change bootargs in the device tree.  +* FAT32: copy the following files:  +*** '''boot.bin'''  +*** '''u-boot-dtb.img'''  +*** '''devicetree.dtb'''  +*** '''uImage'''  +* EXT4: mounted to some <mountpoint>  +** unpack the '''rootfs.tar.gz''', console:  + <font size='2'>tar -C <mountpoint> -xzpf rootfs.tar.gz</font>  +   +Camera:  +* Insert, power on  +   +===Boot from NAND flash===  +* The default boot option - power on.  +* A UBIFS image of rootfs is written to /dev/mtd4 ('''ubi0:elphel393''' in bootargs in the device tree)  +====Reflash factory image (update software/firmware or corrupt flash partition) ====  +* Use files from '''.../poky/build/tmp/deploy/images/elphel393/nand/'''  +* Copy all of the image files to a micro SD card (or boot first from the card then copy over network)  +* Boot from micro SD card.  +* Reflash what is needed:  +** Reflash SPL ('''boot.bin''', /dev/mtd0)  +<font size='2'>  + cd <path-to-image-files>  + # boot.bin  + # mtd0 is 1MB (8 eraseblocks,128K = 1 block, there are 64 pages of 2048 per block)  + # erase only first 2 blocks, other block are reserved for copies  + flash_unlock /dev/mtd0  + flash_erase /dev/mtd0 0 2  + nandwrite -n /dev/mtd0 -p boot.bin  +</font>  +** Reflash u-boot ('''u-boot-dtb.img''', /dev/mtd1)  +<font size='2'>  + cd <path-to-image-files>  + # u-boot-dtb.img  + # mtd1 is 4M (32 eraseblocks,128K = 1 block, there are 64 pages of 2048 per block)  + # erase only the 1st 8 blocks as image is <1M, leave unused area for backup copies  + flash_unlock /dev/mtd1  + flash_erase /dev/mtd1 0 8  + nandwrite -n /dev/mtd1 -p u-boot-dtb.img  +</font>  +** Reflash devicetree ('''devicetree.dtb''', /dev/mtd2)  +<font size='2'>  + cd <path-to-image-files>  + # u-boot-dtb.img  + # mtd2 is 1M (8 eraseblocks,128K = 1 block, there are 64 pages of 2048 per block)  + flash_unlock /dev/mtd2  + flash_erase /dev/mtd2 0 8  + nandwrite -n /dev/mtd2 -p devicetree.dtb  +</font>  +** Reflash kernel ('''uImage''', /dev/mtd3)  +<font size='2'>  + cd <path-to-image-files>  + # uImage  + # mtd3 is 16M (128 eraseblocks,128K = 1 block, there are 64 pages of 2048 per block)  + flash_unlock /dev/mtd3  + flash_erase /dev/mtd3 0 128  + nandwrite -n /dev/mtd3 -p uImage  +</font>  +** For rootfs there are 2 options:  +*** update - <font color='green'>recommended</font>, '''rootfs.ubifs'''  +*** reflash - <font color='red'>radical</font>, '''rootfs.ubi'''  +Update:  +<font size='2'>  + To be described...  + http://www.linux-mtd.infradead.org/faq/ubifs.html#L_mkfubifs  +</font>  +Reflash:  +<font size='2'>  + cd <path-to-image-files>  + flash_unlock /dev/mtd4  + flash_erase /dev/mtd4 0 2048  + ubiformat /dev/mtd4 -f rootfs.ubi -s 2048 -O 2048  +</font>  +'''Note:''' Considering to store the u-boot, device tree and kernel on UBUFS partitions in future. ==<font color="blue">Setup</font>== ==<font color="blue">Setup</font>== Line 50: Line 127:           '''#Part 2 : init environment and auto-fill Yocto's conf-files'''   '''#Part 2 : init environment and auto-fill Yocto's conf-files'''  + CONF_NOTES="meta/conf/conf-notes.txt"  +  + if [ -f $CONF_NOTES ]; then  +    rm $CONF_NOTES  + fi  +  + echo "Common \"elphel393\" targets are:" >> $CONF_NOTES  + echo "    u-boot" >> $CONF_NOTES  + echo "    device-tree" >> $CONF_NOTES  + echo "    linux-xlnx" >> $CONF_NOTES  + echo "    core-image-elphel393" >> $CONF_NOTES           CURRENT_PATH=$(dirname $(readlink -f "$0"))   CURRENT_PATH=$(dirname $(readlink -f "$0")) Oleg

Poky 2.0 manual

Tue, 03/08/2016 - 22:54

Output files:

← Older revision Revision as of 05:54, 9 March 2016 (5 intermediate revisions not shown)Line 12: Line 12: ==<font color="blue">Output files</font>== ==<font color="blue">Output files</font>== -Found in the poky's deploy directory: '''poky/build/tmp/deploy/images/'''+Found in the poky's deploy directory:  +* files for rootfs in NAND Flash: '''poky/build/tmp/deploy/images/elphel393/nand/'''  +* files for rootfs on MMC (micro SD card): '''poky/build/tmp/deploy/images/elphel393/mmc/''' These names are listed as they appear in the u-boot configuration header file - actual output files have different names: These names are listed as they appear in the u-boot configuration header file - actual output files have different names: * '''boot.bin''' - u-boot as the first stage bootloader = Secondary Program Loader that boots '''u-boot-dtb.img''' * '''boot.bin''' - u-boot as the first stage bootloader = Secondary Program Loader that boots '''u-boot-dtb.img''' * '''u-boot-dtb.img''' - full size u-boot with a stripped device tree (''cat u-boot.img some_stripped_devicetree.dtb > u-boot-dtb.img'') * '''u-boot-dtb.img''' - full size u-boot with a stripped device tree (''cat u-boot.img some_stripped_devicetree.dtb > u-boot-dtb.img'') -* '''devicetree.dtb''' - device tree with described interfaces, zynq registers, interrupts and drivers+* '''devicetree.dtb''' - device tree with listed interfaces, zynq registers, interrupts and drivers * '''uImage''' - kernel, drivers * '''uImage''' - kernel, drivers -* '''uramdisk.image.gz''' - applications+* '''rootfs.ubi''' or '''rootfs.tar.gz''' - rootfs - + -Copy them on the micro SD card (FAT partition) > run '''boot''' once in the u-boot command line.+ ==<font color="blue">Boot options</font>== ==<font color="blue">Boot options</font>== -* Auto unpacking the root file system image to RAM when booting:+===Boot from micro SD card=== -** Check u-boot default environment variables when building the bootloader.+* The card/adapter must be modified for the boot mode from SD card - only then the camera will boot. -** Keep '''uramdisk.image.gz''' along with all the other files on the FAT partition of (micro)SD card.+  -* <font style='color:rgba(100,100,100,1)'>Root file system on EXT2(EXT3,etc.) partition of (micro)SD card.</font>+===Boot from NAND flash===  +* Power on ==<font color="blue">Setup</font>== ==<font color="blue">Setup</font>== Line 50: Line 51:           '''#Part 2 : init environment and auto-fill Yocto's conf-files'''   '''#Part 2 : init environment and auto-fill Yocto's conf-files'''  + CONF_NOTES="meta/conf/conf-notes.txt"  +  + if [ -f $CONF_NOTES ]; then  +    rm $CONF_NOTES  + fi  +  + echo "Common \"elphel393\" targets are:" >> $CONF_NOTES  + echo "    u-boot" >> $CONF_NOTES  + echo "    device-tree" >> $CONF_NOTES  + echo "    linux-xlnx" >> $CONF_NOTES  + echo "    core-image-elphel393" >> $CONF_NOTES           CURRENT_PATH=$(dirname $(readlink -f "$0"))   CURRENT_PATH=$(dirname $(readlink -f "$0")) Oleg

Poky 2.0 manual

Tue, 03/08/2016 - 21:51

Boot options:

← Older revision Revision as of 04:51, 9 March 2016 (4 intermediate revisions not shown)Line 12: Line 12: ==<font color="blue">Output files</font>== ==<font color="blue">Output files</font>== -Found in the poky's deploy directory: '''poky/build/tmp/deploy/images/'''+Found in the poky's deploy directory:  +* files for rootfs in NAND Flash: '''poky/build/tmp/deploy/images/elphel393/nand/'''  +* files for rootfs in on MMC (micro SD card): '''poky/build/tmp/deploy/images/elphel393/mmc/''' These names are listed as they appear in the u-boot configuration header file - actual output files have different names: These names are listed as they appear in the u-boot configuration header file - actual output files have different names: * '''boot.bin''' - u-boot as the first stage bootloader = Secondary Program Loader that boots '''u-boot-dtb.img''' * '''boot.bin''' - u-boot as the first stage bootloader = Secondary Program Loader that boots '''u-boot-dtb.img''' * '''u-boot-dtb.img''' - full size u-boot with a stripped device tree (''cat u-boot.img some_stripped_devicetree.dtb > u-boot-dtb.img'') * '''u-boot-dtb.img''' - full size u-boot with a stripped device tree (''cat u-boot.img some_stripped_devicetree.dtb > u-boot-dtb.img'') -* '''devicetree.dtb''' - device tree with described interfaces, zynq registers, interrupts and drivers+* '''devicetree.dtb''' - device tree with listed interfaces, zynq registers, interrupts and drivers * '''uImage''' - kernel, drivers * '''uImage''' - kernel, drivers -* '''uramdisk.image.gz''' - applications+* '''rootfs.ubi''' or '''rootfs.tar.gz''' - rootfs - + -Copy them on the micro SD card (FAT partition) > run '''boot''' once in the u-boot command line.+ ==<font color="blue">Boot options</font>== ==<font color="blue">Boot options</font>== -* Auto unpacking the root file system image to RAM when booting:+===Boot from micro SD card=== -** Check u-boot default environment variables when building the bootloader.+* The card/adapter must be modified for the boot mode from SD card - only then the camera will boot. -** Keep '''uramdisk.image.gz''' along with all the other files on the FAT partition of (micro)SD card.+  -* <font style='color:rgba(100,100,100,1)'>Root file system on EXT2(EXT3,etc.) partition of (micro)SD card.</font>+===Boot from NAND flash===  +* Power on ==<font color="blue">Setup</font>== ==<font color="blue">Setup</font>== Line 50: Line 51:           '''#Part 2 : init environment and auto-fill Yocto's conf-files'''   '''#Part 2 : init environment and auto-fill Yocto's conf-files'''  + CONF_NOTES="meta/conf/conf-notes.txt"  +  + if [ -f $CONF_NOTES ]; then  +    rm $CONF_NOTES  + fi  +  + echo "Common \"elphel393\" targets are:" >> $CONF_NOTES  + echo "    u-boot" >> $CONF_NOTES  + echo "    device-tree" >> $CONF_NOTES  + echo "    linux-xlnx" >> $CONF_NOTES  + echo "    core-image-elphel393" >> $CONF_NOTES           CURRENT_PATH=$(dirname $(readlink -f "$0"))   CURRENT_PATH=$(dirname $(readlink -f "$0")) Oleg

Poky 2.0 manual

Tue, 03/08/2016 - 21:33

Output files:

← Older revision Revision as of 04:33, 9 March 2016 (3 intermediate revisions not shown)Line 12: Line 12: ==<font color="blue">Output files</font>== ==<font color="blue">Output files</font>== -Found in the poky's deploy directory: '''poky/build/tmp/deploy/images/'''+Found in the poky's deploy directory:  +* files for rootfs in NAND Flash: '''poky/build/tmp/deploy/images/elphel393/nand/'''  +* files for rootfs in on MMC (micro SD card): '''poky/build/tmp/deploy/images/elphel393/mmc/''' These names are listed as they appear in the u-boot configuration header file - actual output files have different names: These names are listed as they appear in the u-boot configuration header file - actual output files have different names: * '''boot.bin''' - u-boot as the first stage bootloader = Secondary Program Loader that boots '''u-boot-dtb.img''' * '''boot.bin''' - u-boot as the first stage bootloader = Secondary Program Loader that boots '''u-boot-dtb.img''' * '''u-boot-dtb.img''' - full size u-boot with a stripped device tree (''cat u-boot.img some_stripped_devicetree.dtb > u-boot-dtb.img'') * '''u-boot-dtb.img''' - full size u-boot with a stripped device tree (''cat u-boot.img some_stripped_devicetree.dtb > u-boot-dtb.img'') -* '''devicetree.dtb''' - device tree with described interfaces, zynq registers, interrupts and drivers+* '''devicetree.dtb''' - device tree with listed interfaces, zynq registers, interrupts and drivers * '''uImage''' - kernel, drivers * '''uImage''' - kernel, drivers -* '''uramdisk.image.gz''' - applications+* '''rootfs.ubi''' or '''rootfs.tar.gz''' - rootfs - + -Copy them on the micro SD card (FAT partition) > run '''boot''' once in the u-boot command line.+ ==<font color="blue">Boot options</font>== ==<font color="blue">Boot options</font>== Line 50: Line 50:           '''#Part 2 : init environment and auto-fill Yocto's conf-files'''   '''#Part 2 : init environment and auto-fill Yocto's conf-files'''  + CONF_NOTES="meta/conf/conf-notes.txt"  +  + if [ -f $CONF_NOTES ]; then  +    rm $CONF_NOTES  + fi  +  + echo "Common \"elphel393\" targets are:" >> $CONF_NOTES  + echo "    u-boot" >> $CONF_NOTES  + echo "    device-tree" >> $CONF_NOTES  + echo "    linux-xlnx" >> $CONF_NOTES  + echo "    core-image-elphel393" >> $CONF_NOTES           CURRENT_PATH=$(dirname $(readlink -f "$0"))   CURRENT_PATH=$(dirname $(readlink -f "$0")) Oleg

Poky 2.0 manual

Tue, 03/08/2016 - 00:03

Setup:

← Older revision Revision as of 07:03, 8 March 2016 Line 50: Line 50:           '''#Part 2 : init environment and auto-fill Yocto's conf-files'''   '''#Part 2 : init environment and auto-fill Yocto's conf-files'''  + CONF_NOTES="meta/conf/conf-notes.txt"  +  + if [ -f $CONF_NOTES ]; then  +    rm $CONF_NOTES  + fi  +  + echo "Common \"elphel393\" targets are:" >> $CONF_NOTES  + echo "    u-boot" >> $CONF_NOTES  + echo "    device-tree" >> $CONF_NOTES  + echo "    linux-xlnx" >> $CONF_NOTES  + echo "    core-image-elphel393" >> $CONF_NOTES           CURRENT_PATH=$(dirname $(readlink -f "$0"))   CURRENT_PATH=$(dirname $(readlink -f "$0")) Oleg

Microzed issues

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

Microzed issues

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

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

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

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

Microzed issues

Fri, 02/19/2016 - 16:34

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 Oleg

Microzed issues

Fri, 02/19/2016 - 15:28

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>

</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 Oleg

Microzed issues

Fri, 02/19/2016 - 14:09

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>

==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 Oleg

Microzed issues

Thu, 02/18/2016 - 21:13

New page

==List==
* 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?
</font>
* SSH terminal
<font size='2'>
<b>Description:</b>
Freezes, lags but remembers all typed symbols
<b>Possible reason:</b>
UART 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>

==Useful pages==
* https://forums.xilinx.com/t5/Zynq-All-Programmable-SoC/Zynq-Uart-timeout-problem/td-p/432016
* http://processors.wiki.ti.com/index.php/Enabling_Stack_Dumping_in_Linux_Kernel
* https://lists.yoctoproject.org/pipermail/poky/2015-February/010037.html
* http://www.makelinux.net/ldd3/chp-7-sect-3 Oleg

Microzed issues

Thu, 02/18/2016 - 19:33

New page

==List==
* 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?
</font>
* SSH terminal
<font size='2'>
<b>Description:</b>
Freezes, lags but remembers all typed symbols
<b>Possible reason:</b>
UART 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> Oleg

Poky 2.0 manual

Thu, 02/18/2016 - 15:08

← Older revision Revision as of 22:08, 18 February 2016 (One intermediate revision not shown)Line 15: Line 15: These names are listed as they appear in the u-boot configuration header file - actual output files have different names: These names are listed as they appear in the u-boot configuration header file - actual output files have different names: -* '''boot.bin'''+('''u-boot-dtb.img''') - u-boot as the first stage bootloader = Secondary Program Loader that boots '''u-boot-dtb.img'''+* '''boot.bin''' - u-boot as the first stage bootloader = Secondary Program Loader that boots '''u-boot-dtb.img'''  +* '''u-boot-dtb.img''' - full size u-boot with a stripped device tree (''cat u-boot.img some_stripped_devicetree.dtb > u-boot-dtb.img'') * '''devicetree.dtb''' - device tree with described interfaces, zynq registers, interrupts and drivers * '''devicetree.dtb''' - device tree with described interfaces, zynq registers, interrupts and drivers * '''uImage''' - kernel, drivers * '''uImage''' - kernel, drivers Line 40: 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 2bf73c48be5433002144bc9126bdc9c44b30b98c; cd ..+  cd meta-elphel393; git checkout e8c6e139848a21b1bf0c05b306108e390bc44e24; 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

Poky 2.0 manual

Wed, 02/17/2016 - 12:19

← Older revision Revision as of 19:19, 17 February 2016 Line 40: Line 40:           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 2bf73c48be5433002144bc9126bdc9c44b30b98c; cd ..+  cd meta-elphel393; git checkout e8c6e139848a21b1bf0c05b306108e390bc44e24; 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

Elphel 353 series quick start guide

Thu, 02/11/2016 - 13:13

Command line access:

← Older revision Revision as of 20:13, 11 February 2016 Line 117: Line 117: ==Command line access== ==Command line access== -a) '''SSH'''+a) '''SSH''' (outdated, drops connections, please, use Telnet) In the terminal window: ssh root@192.168.0.9 In the terminal window: ssh root@192.168.0.9 Oleg

Request for quote 393-1

Tue, 02/09/2016 - 15:59

Created page with "Elphel, Inc. invites the machine shops to Quote manufacturing of the following parts: {| class="wikitable" style="background:#fcfcfc; " border="1" |+ Metal Parts |- ! Part !! Q..."

New page

Elphel, Inc. invites the machine shops to Quote manufacturing of the following parts:
{| class="wikitable" style="background:#fcfcfc; " border="1"
|+ Metal Parts
|-
! Part !! QTY per Unit !! Notes
|-
| [[Elphel_camera_parts_0393-12#0393-12-29_-_Sensor_front_end.2C_CS-mount|0393-12-29 - Sensor front end, CS-mount ]] || 10 || 100 ||
|-
| [[Elphel_camera_parts_0393-12#0393-12-30_-_Sensor_adjustment_plate|0393-12-30 - Sensor adjustment plate ]] || 10 || 100 ||
|-
| [[Elphel_camera_parts_0393-11#0393-11-04_-_Cooling_fan_enclosure|0393-11-04 - Cooling fan enclosure ]] || 10 || 100 ||
|-
| [[Elphel_camera_parts_0393-11#0393-11-10_-_CPU_heat_plate|0393-11-10 - CPU heat plate]] || 10 || 100 ||
|-
| [[Elphel_camera_parts_0393-18#0353-18-30_-_tripod_mount_nut.2C_1.2F4-20_thread|0353-18-30 - tripod mount nut, 1/4-20 thread ]] || 10 || 100 ||
|-
| [[Elphel_camera_parts_0393-18#0353-18-31_-_tripod_mount_plate|0353-18-31 - tripod mount plate ]] || 10 || 100||
|-
|}


Please, read the [[Supplier_Terms_and_Conditions|Suppliers Terms and Conditions]] and send the Proposals by e-mail: [mailto://supplies@elphel.com supplies@elphel.com] Olga

Poky 2.0 manual

Mon, 02/01/2016 - 16:25

Setup:

← Older revision Revision as of 23:25, 1 February 2016 Line 40: Line 40:           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 9013e39faac2f99c8dda36244ae8a111c72214e1; cd ..+  cd meta-elphel393; git checkout 2bf73c48be5433002144bc9126bdc9c44b30b98c; 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

Pages