[PATCH v2 1/2] common: state: Add property to protect existing data

2018-04-12 Thread Daniel Schultz
After an update to a newer barebox version with an enabled state framework, existing data in storage memories could be overwritten. Add a new property to check in front of every write task, if the meta magic field only contains the magic number, zeros or ones. Signed-off-by: Daniel Schultz

[PATCH v2 2/2] ARM: dts: AM335x: Add keep-previous-content property

2018-04-12 Thread Daniel Schultz
Some of our customers may have data in the EEPROM region, which we newly have assigned as state partition. This property should prevent them of data loses. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- arch/arm/dts/am335x-phytec-state.dtsi | 1 + 1 file changed, 1 insertion(+)

Re: [PATCH 3/3] drivers: mtd: nand: omap: Return stat value

2018-02-23 Thread Daniel Schultz
On 02/16/2018 08:56 AM, Sascha Hauer wrote: On Thu, Feb 15, 2018 at 01:51:26PM +0100, Daniel Schultz wrote: Hi Sascha, On 01/30/2018 08:11 AM, Sascha Hauer wrote: On Mon, Jan 29, 2018 at 02:04:11PM +0100, Daniel Schultz wrote: The read page function should return the total count of flipped

Re: [PATCH 3/3] drivers: mtd: nand: omap: Return stat value

2018-02-15 Thread Daniel Schultz
Hi Sascha, On 01/30/2018 08:11 AM, Sascha Hauer wrote: On Mon, Jan 29, 2018 at 02:04:11PM +0100, Daniel Schultz wrote: The read page function should return the total count of flipped bits, otherwise the caller always thinks no bitflip occured. Signed-off-by: Daniel Schultz <d.s

[PATCH 3/3] drivers: mtd: nand: omap: Return stat value

2018-01-29 Thread Daniel Schultz
The read page function should return the total count of flipped bits, otherwise the caller always thinks no bitflip occured. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- drivers/mtd/nand/nand_omap_gpmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drive

[PATCH 2/3] ARM: configs: am335x_defconfig: Reorder configs

2018-01-29 Thread Daniel Schultz
These configs were added directly in the config file and not with menuconfig. Reorder these like menuconfig would place them. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- arch/arm/configs/am335x_defconfig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH 1/3] commands: ubi: ubiupdatevol: Reduce error code to 0 or 1

2018-01-29 Thread Daniel Schultz
do_ubiupdatevol can either return 0 or the ioctl return value. This is not in conformity with the other ubi comannds return values. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- commands/ubi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/ubi.c b/co

Re: [PATCH 1/2] common: state: Add property to protect existing data

2018-01-15 Thread Daniel Schultz
Hi, just wanted to remind you to these patches. Daniel On 12/14/2017 04:51 PM, Daniel Schultz wrote: After an update to a newer barebox version with an enabled state framework, existing data in storage memories could be overwritten. Add a new property to check in front of every write task

Re: [PATCH] ARM: boards: phytec-som-am335x: Fallback ram timings

2017-12-22 Thread Daniel Schultz
Hi, On 12/15/2017 08:49 AM, Sascha Hauer wrote: Hi Daniel, On Thu, Dec 14, 2017 at 04:51:15PM +0100, Daniel Schultz wrote: The 'get_ram_size' function can return false values with 1GB RAMs during warm reset. If a not-existing RAM size will be returned, the fallback RAM timings get loaded

[PATCH] ARM: boards: phytec-som-am335x: Revert unified MLO for 1GB

2017-12-22 Thread Daniel Schultz
and without memory access. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- arch/arm/boards/phytec-som-am335x/lowlevel.c | 1 + images/Makefile.am33xx | 6 ++ 2 files changed, 7 insertions(+) diff --git a/arch/arm/boards/phytec-som-am335x/lowlevel.c b/ar

[PATCH 2/2] ARM: dts: AM335x: Add keep-previous-content property

2017-12-14 Thread Daniel Schultz
Some of our customers may have data in the EEPROM region, which we newly have assigned as state partition. This property should prevent them of data loses. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- arch/arm/dts/am335x-phytec-state.dtsi | 1 + 1 file changed, 1 insertion(+)

[PATCH] ARM: boards: phytec-som-am335x: Fallback ram timings

2017-12-14 Thread Daniel Schultz
The 'get_ram_size' function can return false values with 1GB RAMs during warm reset. If a not-existing RAM size will be returned, the fallback RAM timings get loaded to prevent hangs. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- arch/arm/boards/phytec-som-am335x/lowlevel.c | 3

[PATCH 1/2] common: state: Add property to protect existing data

2017-12-14 Thread Daniel Schultz
After an update to a newer barebox version with an enabled state framework, existing data in storage memories could be overwritten. Add a new property to check in front of every write task, if the meta magic field only contains the magic number, zeros or ones. Signed-off-by: Daniel Schultz

[PATCH] ARM: boards: phytec-som-am335x: Fix SPI boot script

2017-11-17 Thread Daniel Schultz
Because our SPI NOR flashes are too small, we require a root filesystem in a NAND media. The kernel bootargs has a wrong parameter and lead to: VFS: Cannot open root device "ubi0:root" or unknown-block(0,0): Changed 'ubi.mtd=nand0.root' to 'ubi.mtd=root'. Signed-off-by: Dani

[PATCH v3 7/7] ARM: phytec-som-am335x: Set MAC addresses from state

2017-11-03 Thread Daniel Schultz
If a state with the name 'am335x_phytec_mac_state' is available, valid MAC addresses from this state get registerd to their ethernet device. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- arch/arm/boards/phytec-som-am335x/board.c | 21 + 1 file changed, 21 inse

[PATCH v3 4/7] common: state: Add variable_type to state_variable

2017-11-03 Thread Daniel Schultz
Add a pointer in state_variable to the corresponding variable_type array element. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- Changes: v2: New patch v3: struct variable_type is passed as parameter in the create callbacks. common/state/state.c

[PATCH v3 5/7] common: state: Add variable type as enum

2017-11-03 Thread Daniel Schultz
The variable_type struct holds a name of its type. Checking the type of a variable with this string needs much resources. This patch introduce a enum of the variable type for better type checking. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- Changes: v3: New patch.

[PATCH v3 3/7] ARM: configs: am335x_defconfig: Add state config

2017-11-03 Thread Daniel Schultz
Enable the state framework for all AM335x boards. --- arch/arm/configs/am335x_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/configs/am335x_defconfig b/arch/arm/configs/am335x_defconfig index dd9c3c5..5a236fb 100644 --- a/arch/arm/configs/am335x_defconfig +++

[PATCH v3 1/7] ARM: boards: phytec-som-am335x: Add unified MLO

2017-11-03 Thread Daniel Schultz
reinitialized with the correct RAM timings. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- arch/arm/boards/phytec-som-am335x/lowlevel.c | 150 +++ images/Makefile.am33xx | 24 ++--- 2 files changed, 138 insertions(+), 36 deletions(-)

[PATCH v3 6/7] common: state: Add function to read state MAC

2017-11-03 Thread Daniel Schultz
This API function allows to receive a copy of a MAC address from variables in a state. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- Changes: v2: New patch v3: Changed return values Switched to the new STATE_VARIABLE_TYPE_* field Changed to

[PATCH v3 3/3] ARM: phytec-som-am335x: Add autoenable

2017-11-03 Thread Daniel Schultz
Add autoenable for components, which can be populated on an AM335x phyCORE SoM. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- arch/arm/boards/phytec-som-am335x/Kconfig | 13 + arch/arm/boards/phytec-som-am335x/board.c | 13 + arch/arm/mach-omap/K

[PATCH v3 2/3] common: oftree: Add autoenable functionality

2017-11-03 Thread Daniel Schultz
This patch adds an API to automatically enable either hardware components with existing device drivers or i2c clients. All functions take a device tree path to find the hardware and will fix up the node status in the kernel device tree, if it's accessible. Signed-off-by: Daniel Schultz <d.s

[PATCH v3 2/7] ARM: dts: AM335x: Add state framework

2017-11-03 Thread Daniel Schultz
This patch adds the state framework with an EEPROM partition and two nodes for MAC addresses. It will be available for all phycore AM335x images with EEPROMs. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- arch/arm/dts/am335x-phytec-phycore-som-emmc.dts| 1 + .../dts/am335x-

[PATCH v3 1/3] ARM: dts: AM335x: Add dummy i2c nodes

2017-11-03 Thread Daniel Schultz
These i2c nodes are needed for autoenable of i2c clients, because the autoenable API searches for device tree nodes to get the client address. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- arch/arm/dts/am335x-phytec-phycore-som.dtsi | 14 ++ 1 file changed, 14 inse

[PATCH v2 1/3] ARM: dts: AM335x: Add dummy i2c nodes

2017-11-02 Thread Daniel Schultz
These i2c nodes are needed for autoenable of i2c clients, because the autoenable API searches for device tree nodes to get the client address. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- arch/arm/dts/am335x-phytec-phycore-som.dtsi | 14 ++ 1 file changed, 14 inse

[PATCH v2 3/3] ARM: phytec-som-am335x: Add autoenable

2017-11-02 Thread Daniel Schultz
Add autoenable for components, which can be populated on an AM335x phyCORE SoM. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- Changes: v2: Created Phytec AM335x Kconfig PHYTEC_SOM_AM335X_OF_AUTOENABLE Changed function names arch/arm/boards/phytec-som-am335x/K

[PATCH v2 2/3] common: oftree: Add autoenable functionality

2017-11-02 Thread Daniel Schultz
This patch adds an API to automatically enable either hardware components with existing device drivers or i2c clients. All functions take a device tree path to find the hardware and will fix up the node status in the kernel device tree, if it's accessible. Signed-off-by: Daniel Schultz <d.s

[PATCH v2 2/6] ARM: dts: AM335x: Add state framework

2017-11-02 Thread Daniel Schultz
This patch adds the state framework with an EEPROM partition and two nodes for MAC addresses. It will be available for all phycore AM335x images with EEPROMs. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- arch/arm/dts/am335x-phytec-phycore-som-emmc.dts| 1 + .../dts/am335x-

[PATCH v2 6/6] ARM: phytec-som-am335x: Set MAC addresses from state

2017-11-02 Thread Daniel Schultz
If a state with the name 'am335x_phytec_mac_state' is available, valid MAC addresses from this state get registerd to their ethernet device. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- Changes: v2: Changed to new 'state_read_mac' function arch/arm/boards/phytec-som-

[PATCH v2 1/6] ARM: boards: phytec-som-am335x: Add unified MLO

2017-11-02 Thread Daniel Schultz
reinitialized with the correct RAM timings. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- arch/arm/boards/phytec-som-am335x/lowlevel.c | 150 +++ images/Makefile.am33xx | 24 ++--- 2 files changed, 138 insertions(+), 36 deletions(-)

[PATCH v2 4/6] common: state: Add variable_type to state_variable

2017-11-02 Thread Daniel Schultz
Add a pointer in state_variable to the corresponding variable_type array element. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- Changes: v2: New patch common/state/state.h | 1 + common/state/state_variables.c | 5 + 2 files changed, 6 insertions(+) diff

[PATCH v2 5/6] common: state: Add function to read state MAC

2017-11-02 Thread Daniel Schultz
This API function allows to receive a copy of a MAC address from variables in a state. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- Changes: v2: New patch common/state/state.c | 23 +++ include/state.h | 2 ++ 2 files changed, 25 insertions(+)

[PATCH v2 3/6] ARM: configs: am335x_defconfig: Add state config

2017-11-02 Thread Daniel Schultz
Enable the state framework for all AM335x boards. --- arch/arm/configs/am335x_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/configs/am335x_defconfig b/arch/arm/configs/am335x_defconfig index dd9c3c5..5a236fb 100644 --- a/arch/arm/configs/am335x_defconfig +++

[PATCH 4/5] common: state: Make find_var public

2017-10-27 Thread Daniel Schultz
Make find_var public to grant access to state variables. Make also the MAC node public to receive the stored address. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- common/state/state.h | 27 +-- include/state.h | 26 ++ 2

[PATCH 1/5] ARM: boards: phytec-som-am335x: Add unified MLO

2017-10-27 Thread Daniel Schultz
reinitialized with the correct RAM timings. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- arch/arm/boards/phytec-som-am335x/lowlevel.c | 150 +++ images/Makefile.am33xx | 24 ++--- 2 files changed, 138 insertions(+), 36 deletions(-)

[PATCH 2/3] ARM: dts: AM335x: Add dummy i2c nodes

2017-10-27 Thread Daniel Schultz
These i2c nodes are needed for autoenable of i2c clients, because the autoenable API searches for device tree nodes to get the client address. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- arch/arm/dts/am335x-phytec-phycore-som.dtsi | 14 ++ 1 file changed, 14 inse

[PATCH 2/5] ARM: dts: AM335x: Add state framework

2017-10-27 Thread Daniel Schultz
This patch adds the state framework with an EEPROM partition and two nodes for MAC addresses. It will be available for all phycore AM335x images with EEPROMs. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- arch/arm/dts/am335x-phytec-phycore-som-emmc.dts| 1 + .../dts/am335x-

[PATCH 1/3] common: Add autoenable for components

2017-10-27 Thread Daniel Schultz
This patch adds an API to automatically enable either hardware components with existing device drivers or i2c clients. All functions take a device tree path to find the hardware and will fix up the node status in the kernel device tree, if it's accessible. Signed-off-by: Daniel Schultz <d.s

[PATCH 3/3] ARM: phytec-som-am335x: Add autoenable

2017-10-27 Thread Daniel Schultz
Add autoenable for components, which can be populated on an AM335x phyCORE SoM. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- arch/arm/boards/phytec-som-am335x/board.c | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boards/phytec-som-am335x/board.c

[PATCH 3/5] ARM: configs: am335x_defconfig: Add state config

2017-10-27 Thread Daniel Schultz
Enable the state framework for all AM335x boards. --- arch/arm/configs/am335x_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/configs/am335x_defconfig b/arch/arm/configs/am335x_defconfig index dd9c3c5..5a236fb 100644 --- a/arch/arm/configs/am335x_defconfig +++

[PATCH 5/5] ARM: phytec-som-am335x: Set MAC addresses from state

2017-10-27 Thread Daniel Schultz
If a state with the name 'am335x_phytec_mac_state' is available, valid MAC addresses from this state get registerd to their ethernet device. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- arch/arm/boards/phytec-som-am335x/board.c | 22 ++ 1 file chang

Re: [RFC v4 01/10] Add initial RISC-V architecture support

2017-10-05 Thread Daniel Schultz
Hi, On 10/03/2017 12:21 AM, Antony Pavlov wrote: On Mon, 2 Oct 2017 12:08:58 +0200 Daniel Schultz <d.schu...@phytec.de> wrote: Hi, On 09/29/2017 02:07 PM, Oleksij Rempel wrote: Hi, hm... mostly looks identical with existing arch Am 29.09.2017 um 01:12 schrieb Antony Pavlov: Sign

Re: [RFC v4 01/10] Add initial RISC-V architecture support

2017-10-02 Thread Daniel Schultz
ITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + */ + +/** + * @file + * @brief Clocksource based on RISCV cycle CSR timer + */ + +#include +#include +#include +#include +#include + +static uint64_t rdcycle_read(void) +{ + register unsigned l

Re: [RFC v4 01/10] Add initial RISC-V architecture support

2017-10-02 Thread Daniel Schultz
lichen Grüßen, With best regards, Daniel Schultz ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

[PATCH 4/4] arm: configs: AM335x: Enable mmc-extcsd command

2017-08-22 Thread Daniel Schultz
This tool is for setting up eMMC devices. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- arch/arm/configs/am335x_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/am335x_defconfig b/arch/arm/configs/am335x_defconfig index 382133b..dd9c3c5 100644 ---

[PATCH 3/4] arm: dts: am335x: Add phycore emmc device tree

2017-08-22 Thread Daniel Schultz
Add a new device tree for phyCORE SOMs with EMMC enabled and NAND disabled. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- arch/arm/boards/phytec-som-am335x/lowlevel.c| 1 + arch/arm/dts/Makefile | 1 + arch/arm/dts/am335x-phytec-phycore-som-emmc.dt

[PATCH 2/4] arm: dts: Enable NAND in DTS instead of DTSI

2017-08-22 Thread Daniel Schultz
Starting with PCM-062, NAND isn't the main non-volatile memory for the AM335x. Because that, NAND has be disabled in the SOM dtsi file and will be enabled in a specific NAND SOM file. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- arch/arm/boards/phytec-som-am335x/lowl

[PATCH 1/4] arm: dts: am335x: Add emmc node to phycore-som

2017-08-22 Thread Daniel Schultz
Add the EMMC node to the phycore-som device tree. It's by default disabled, because NAND is the primary boot device. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- arch/arm/dts/am335x-phytec-phycore-som.dtsi | 24 1 file changed, 24 insertions(+) diff

[PATCH v6] arm: boards: phytec-som-am335x: Update boot scripts

2017-06-27 Thread Daniel Schultz
Expand the boot scripts by eMMC and clean them up. Add NV variable files and removed unnecessary kernel bootargs from the boot scripts. Add "rootflags='data=journal'" bootarg to SD card boot script. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- .../phytec-som-am335x/d

Re: [PATCH] defaultenv: bin: init: Add sourcing of config-expansions

2017-06-27 Thread Daniel Schultz
Hi, Am 26.06.2017 um 08:25 schrieb Sascha Hauer: On Tue, Jun 20, 2017 at 05:50:56PM +0200, Daniel Schultz wrote: Hi, Am 19.06.2017 um 09:34 schrieb Sascha Hauer: On Tue, Jun 13, 2017 at 03:37:00PM +0200, Daniel Schultz wrote: This patch adds a further layer to the config hierarchy

Re: [PATCH v5] arm: boards: phytec-som-am335x: Update boot scripts

2017-06-27 Thread Daniel Schultz
Hi Sascha, Am 26.06.2017 um 08:35 schrieb Sascha Hauer: On Tue, Jun 20, 2017 at 05:42:22PM +0200, Daniel Schultz wrote: Expand the boot scripts with EMMC and add a default file source for expansions. Removed "rw" and "rootwait" bootargs from existing boot scripts. Why i

Re: [PATCH v4] arm: boards: phytec-som-am335x: Update boot scripts

2017-06-20 Thread Daniel Schultz
Hi Sascha, Am 19.06.2017 um 09:25 schrieb Sascha Hauer: On Tue, Jun 13, 2017 at 03:37:08PM +0200, Daniel Schultz wrote: Expand the boot scripts with EMMC and add a default file source for expansions. Removed "rw" and "rootwait" bootargs from existing boot scripts. Ad

Re: [PATCH] defaultenv: bin: init: Add sourcing of config-expansions

2017-06-20 Thread Daniel Schultz
Hi, Am 19.06.2017 um 09:34 schrieb Sascha Hauer: On Tue, Jun 13, 2017 at 03:37:00PM +0200, Daniel Schultz wrote: This patch adds a further layer to the config hierarchy. It allows a dynamic configuration of expansions. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- defa

[PATCH v5] arm: boards: phytec-som-am335x: Update boot scripts

2017-06-20 Thread Daniel Schultz
Expand the boot scripts with EMMC and add a default file source for expansions. Removed "rw" and "rootwait" bootargs from existing boot scripts. Added "rootflags='data=journal'" bootarg to SD card boot script. Signed-off-by: Daniel Schultz <d.schu...@phyt

[PATCH] defaultenv: bin: init: Add sourcing of config-expansions

2017-06-13 Thread Daniel Schultz
This patch adds a further layer to the config hierarchy. It allows a dynamic configuration of expansions. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- defaultenv/defaultenv-2-base/bin/init | 1 + 1 file changed, 1 insertion(+) diff --git a/defaultenv/defaultenv-2-base/bin/i

Re: [PATCH v4] arm: boards: phytec-som-am335x: Update boot scripts

2017-06-13 Thread Daniel Schultz
mount pathes Daniel Am 13.06.2017 um 15:37 schrieb Daniel Schultz: Expand the boot scripts with EMMC and add a default file source for expansions. Removed "rw" and "rootwait" bootargs from existing boot scripts. Added "rootflags='data=journal'" bootarg to SD

[PATCH v4] arm: boards: phytec-som-am335x: Update boot scripts

2017-06-13 Thread Daniel Schultz
Expand the boot scripts with EMMC and add a default file source for expansions. Removed "rw" and "rootwait" bootargs from existing boot scripts. Added "rootflags='data=journal'" bootarg to SD card boot script. Signed-off-by: Daniel Schultz <d.schu...@phyt

Re: [PATCH] mtd: nand: omap: Fix BCH bit correction

2017-06-13 Thread Daniel Schultz
Hi Sascha, Am 12.06.2017 um 15:41 schrieb Sascha Hauer: Hi Daniel, On Fri, Jun 09, 2017 at 03:28:59PM +0200, Daniel Schultz wrote: Hi, Am 09.06.2017 um 11:08 schrieb Sascha Hauer: On Fri, Jun 09, 2017 at 10:17:55AM +0200, Daniel Schultz wrote: Hi Sascha, And can not work. Additionally

Re: [PATCH] mtd: nand: omap: Fix BCH bit correction

2017-06-09 Thread Daniel Schultz
Hi, Am 09.06.2017 um 11:08 schrieb Sascha Hauer: On Fri, Jun 09, 2017 at 10:17:55AM +0200, Daniel Schultz wrote: Hi Sascha, And can not work. Additionally eccsteps must be set to 1 in omap_correct_bch(). This effectively makes the loop in this function unnecessary which can then removed

Re: [PATCH] mtd: nand: omap: Fix BCH bit correction

2017-06-09 Thread Daniel Schultz
Hi Sascha, Am 07.06.2017 um 08:53 schrieb Sascha Hauer: On Wed, Jun 07, 2017 at 08:49:09AM +0200, Sascha Hauer wrote: On Wed, Jun 07, 2017 at 08:45:08AM +0200, Sascha Hauer wrote: +Cc Matt Reimer <mrei...@sdgsystems.com> On Tue, Jun 06, 2017 at 06:10:25PM +0200, Daniel Schultz wrote:

[PATCH] mtd: nand: omap: Fix BCH bit correction

2017-06-06 Thread Daniel Schultz
Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- drivers/mtd/nand/nand_omap_gpmc.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/nand_omap_gpmc.c b/drivers/mtd/nand/nand_omap_gpmc.c index 05c8486..61220da 100644 --- a/drivers/mt

[PATCH] mtd: nand: omap: Return corrected bits for BCH

2017-06-06 Thread Daniel Schultz
If using ECC mode OMAP_ECC_HAMMING_CODE_HW_ROMCODE (which is default for all AM335x with DTS support) the page_read function won't return the corrected bitflips. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- drivers/mtd/nand/nand_omap_gpmc.c | 6 -- 1 file changed, 4 inse

Re: [PATCH v3 4/4] arm: boards: beaglebone: Delete default env

2017-06-06 Thread Daniel Schultz
Hi Sascha, Am 17.05.2017 um 08:35 schrieb Sascha Hauer: On Fri, May 12, 2017 at 01:07:19PM +0200, Daniel Schultz wrote: The Beaglebone environment should be set from outside with an application specific environment. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- arch/arm/

Re: [PATCH v3 3/4] arm: boards: phytec-som-am335x: Update boot scripts

2017-06-06 Thread Daniel Schultz
Hi Sascha, Am 06.06.2017 um 07:46 schrieb Sascha Hauer: Hi Daniel, On Fri, Jun 02, 2017 at 10:07:34AM +0200, Daniel Schultz wrote: Hi, Am 17.05.2017 um 08:30 schrieb Sascha Hauer: On Fri, May 12, 2017 at 01:07:18PM +0200, Daniel Schultz wrote: Expand the boot scripts with EMMC and add

[PATCH] fs: Makefile: Add parseopt to all builds

2017-06-02 Thread Daniel Schultz
parseopt.h was included to fs.c with commit 9248b, but parseopt.o has a dependency to CONFIG_FS_NFS. Moved parseopt.o to the default build to eliminate build failures. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- fs/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 del

Re: [PATCH v3 2/4] arm: boards: phytec-som-am335x: Add automount script

2017-06-02 Thread Daniel Schultz
Hi, Am 17.05.2017 um 08:26 schrieb Sascha Hauer: On Fri, May 12, 2017 at 01:07:17PM +0200, Daniel Schultz wrote: Each MMC boot source is mounted to /mnt/mmcN.0. To make the not-mounted boot source available in Barebox, an automount script mounts this device also to /mnt/, if the directory

Re: [PATCH v2 1/5] arm: mach-omap: Change mountpoint of boot partitions

2017-05-12 Thread Daniel Schultz
/boot has to be performed. To ensure this problem each MMCn bootsource will be mounted to his own path in /mnt/mmcN.0 Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- arch/arm/mach-omap/omap_generic.c | 31 --- 1 file changed, 20 insertions(+), 11 deletion

[PATCH v3 1/4] arm: mach-omap: Change mountpoint of boot partitions

2017-05-12 Thread Daniel Schultz
-by: Daniel Schultz <d.schu...@phytec.de> --- Changes: v3: Added symlink from rootpath to BOOT_PATH arch/arm/mach-omap/omap_generic.c | 36 +--- 1 file changed, 25 insertions(+), 11 deletions(-) diff --git a/arch/arm/mach-omap/omap_generic.c b/arch/ar

[PATCH v3 3/4] arm: boards: phytec-som-am335x: Update boot scripts

2017-05-12 Thread Daniel Schultz
Expand the boot scripts with EMMC and add a default file source for expansions. Removed "rw" and "rootwait" bootargs from existing boot scripts. Added "rootflags='data=journal'" bootarg to SD card boot script. Signed-off-by: Daniel Schultz <d.schu...@phytec.de&g

[PATCH v3 2/4] arm: boards: phytec-som-am335x: Add automount script

2017-05-12 Thread Daniel Schultz
Each MMC boot source is mounted to /mnt/mmcN.0. To make the not-mounted boot source available in Barebox, an automount script mounts this device also to /mnt/, if the directory will be accessed. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- .../defaultenv-physom-am335x/init/aut

[PATCH v3 4/4] arm: boards: beaglebone: Delete default env

2017-05-12 Thread Daniel Schultz
The Beaglebone environment should be set from outside with an application specific environment. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- arch/arm/boards/beaglebone/Makefile | 1 - arch/arm/boards/beaglebone/b

Re: [PATCH v2 4/5] arm: boards: beaglebone: Delete default env

2017-05-09 Thread Daniel Schultz
Hi Sascha, Am 08.05.2017 um 14:57 schrieb Sascha Hauer: Hi Daniel, On Fri, May 05, 2017 at 04:46:57PM +0200, Daniel Schultz wrote: The Beaglebone environment should be set from outside with an application specific environment. I don't understand this. What are you trying to archieve and why

GCC 6.3 Linker error

2017-05-05 Thread Daniel Schultz
. -- Mit freundlichen Grüßen, With best regards, Daniel Schultz ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

[PATCH v2 3/5] arm: boards: phytec-som-am335x: Update boot scripts

2017-05-05 Thread Daniel Schultz
Expand the boot scripts with EMMC and add a default file source for expansions. Removed "rw" and "rootwait" bootargs from existing boot scripts. Added "rootflags='data=journal'" bootarg to SD card boot script. Signed-off-by: Daniel Schultz <d.schu...@phytec.de&g

[PATCH v2 1/5] arm: mach-omap: Change mountpoint of boot partitions

2017-05-05 Thread Daniel Schultz
-by: Daniel Schultz <d.schu...@phytec.de> --- arch/arm/mach-omap/omap_generic.c | 31 --- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/arch/arm/mach-omap/omap_generic.c b/arch/arm/mach-omap/omap_generic.c index 1d03eac..aa7424d 100644 --- a/ar

[PATCH v2 2/5] arm: boards: phytec-som-am335x: Add automount script

2017-05-05 Thread Daniel Schultz
Each MMC boot source is mounted to /mnt/mmcN.0. To make the not-mounted boot source available in Barebox, an automount script mounts this device also to /mnt/, if the directory will be accessed. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- .../defaultenv-physom-am335x/init/aut

[PATCH v2 4/5] arm: boards: beaglebone: Delete default env

2017-05-05 Thread Daniel Schultz
The Beaglebone environment should be set from outside with an application specific environment. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- arch/arm/boards/beaglebone/Makefile | 1 - arch/arm/boards/beaglebone/b

[PATCH v2 5/5] arm: boards: afi-gf: Update SD card boot script

2017-05-05 Thread Daniel Schultz
The default mount path for SD cards changed from /boot to /mnt/mmc0.0. Updated paths in SD card boot script. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- arch/arm/boards/afi-gf/defaultenv-gf/boot/sd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ar

[PATCH 4/7] arm: boards: phytec-som-am335x: Add automount script

2017-04-28 Thread Daniel Schultz
Each boot source is mounted to either /mnt/mmc or /mnt/emmc. To make the not-mounted boot source available in Barebox, an automount script mounts this device to /mnt/{mmc, emmc}, if the directory will be accessed. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- .../defaultenv-

[PATCH 1/7] arm: mach-omap: Change file flags in emmc handler

2017-04-28 Thread Daniel Schultz
This handler tries to read from a file descriptor with 'write only' flags and fails. Add read permissions for the file, so the handler can read the partition layout. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- arch/arm/mach-omap/am33xx_bbu_emmc.c | 2 +- 1 file changed, 1 ins

[PATCH 6/7] arm: boards: beaglebone: Update boot scripts

2017-04-28 Thread Daniel Schultz
Remove the current SD boot script and add support for MMC, EMMC and network bootsources. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- arch/arm/boards/beaglebone/defaultenv-beaglebone/boot/emmc | 9 + arch/arm/boards/beaglebone/defaultenv-beaglebone/boot/mmc

[PATCH 7/7] arm: boards: afi-gf: Update SD card boot script

2017-04-28 Thread Daniel Schultz
The default mount path for SD cards changed from /boot to /mnt/mmc. Updated paths in SD card boot script. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- arch/arm/boards/afi-gf/defaultenv-gf/boot/sd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/

[PATCH 2/7] arm: boards: Add MLO handler for EMMC devices

2017-04-28 Thread Daniel Schultz
This patch enables the barebox handler to flash MLOs on EMMC devices with 'barebox_update'. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- arch/arm/boards/phytec-som-am335x/board.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boards/phytec-som-am335x/board.c b/ar

[PATCH 5/7] arm: boards: phytec-som-am335x: Update boot scripts

2017-04-28 Thread Daniel Schultz
Expand the boot scripts with EMMC and add a default file source for expansions. Removed "rw" and "rootwait" bootargs from existing boot scripts. Added "rootflags='data=journal'" bootarg to SD card boot script. Signed-off-by: Daniel Schultz <d.schu...@phytec.de&g

[PATCH 3/7] arm: mach-omap: Change mountpoint of boot partitions

2017-04-28 Thread Daniel Schultz
-off-by: Daniel Schultz <d.schu...@phytec.de> --- arch/arm/mach-omap/omap_generic.c | 24 +++- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-omap/omap_generic.c b/arch/arm/mach-omap/omap_generic.c index 1d03eac..7c50806 100644 --- a/arch/ar

Re: Directory mirroring

2017-04-06 Thread Daniel Schultz
Hi Sascha, Am 06.04.2017 um 09:06 schrieb Sascha Hauer: Hi Daniel, On Tue, Apr 04, 2017 at 12:11:09PM +0200, Daniel Schultz wrote: Hi everyone, my boot partition is mounted to /boot/. Now, I want to make it accessible in /mnt/ as mmc or emmc, depending to the bootsource. Sadly, ln can only

Directory mirroring

2017-04-04 Thread Daniel Schultz
freundlichen Grüßen, With best regards, Daniel Schultz ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

[PATCH v2] arm: boards: phytec-som-am335x: Remove 1GB RAM type

2017-02-28 Thread Daniel Schultz
This machine was a prototype and was never shipped to customers. Since it has no dependencies to any image, it can be removed. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- Changes: v2: Removed machine in Makefile arch/arm/boards/phytec-som-am335x/lowlevel.c| 1 -

Re: GPLv3 file in barebox

2017-02-28 Thread Daniel Schultz
Acked-by: Daniel Schultz <d.schu...@phytec.de> Thanks -- Mit freundlichen Grüßen, With best regards, Daniel Schultz Am 09.02.2017 um 10:53 schrieb Sascha Hauer: Hi Daniel, We have found that commands/mmc_extcsd.c is licensed under GPLv3 which is incompatible to the barebox GPLv2 l

[PATCH] arm: am33xx: Initialize EMIF REG_PR_OLD_COUNT

2017-01-26 Thread Daniel Schultz
k and the Phytec SoM, because I don't have other boards. [1] https://patchwork.ozlabs.org/patch/704013/ Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- arch/arm/boards/beaglebone/lowlevel.c| 2 ++ arch/arm/boards/phytec-som-am335x/ram-timings.h | 11 +++ arch/arm/

Re: [PATCH 3/3] arm: dts: Added ocotp support for i.MX6UL

2016-12-08 Thread Daniel Schultz
Am 30.11.2016 um 17:38 schrieb Andrey Smirnov: On Wed, Nov 30, 2016 at 3:10 AM, Daniel Schultz <d.schu...@phytec.de> wrote: Ocotp is available for the iMX6(q|sx|sl) SoCs. This patch will extend the iMX6ul DT from the mainline kernel to support the ocotp driver on the iMX6ul SoC. Sign

[PATCH 2/3] arm: imx6: ocotp: Added write check

2016-11-30 Thread Daniel Schultz
Since it's forbidden to use a multicast address as ethernet address, the driver should check the addresses before they got written. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- arch/arm/mach-imx/ocotp.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/ma

[PATCH 1/3] arm: imx6: ocotp: Added support for the i.MX6UL

2016-11-30 Thread Daniel Schultz
This patch adds support for the i.MX6UL SoC. Also, the driver was extended to handle two MAC addresses. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- arch/arm/mach-imx/ocotp.c| 82 +--- dts/Bindings/nvmem/imx-ocotp.txt | 7 ++-- 2

[PATCH 3/3] arm: dts: Added ocotp support for i.MX6UL

2016-11-30 Thread Daniel Schultz
Ocotp is available for the iMX6(q|sx|sl) SoCs. This patch will extend the iMX6ul DT from the mainline kernel to support the ocotp driver on the iMX6ul SoC. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- arch/arm/dts/imx6ul-phytec-phycore-som.dts | 1 + arch/arm/dts/imx6u

[PATCH v2 1/2] ARM: am33xx: Add barebox_update eMMC option

2015-09-07 Thread Daniel Schultz
Bytes, there is space for the partition table in the header. The command will overwrite the bootstrap code area and will hold the partition table and the Boot signature. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- Changes: v2: The MLO will also written to 0x0

[PATCH v2 2/2] ARM: am335x: Register eMMC MLO handler

2015-09-07 Thread Daniel Schultz
Register the eMMC MLO handler to the barebox_update command. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- Changes: v2: No changes arch/arm/boards/beaglebone/board.c | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boards/beaglebone/board.c b/ar

[PATCH v4 4/4] commands: Add MMC ext. CSD register tool

2015-09-07 Thread Daniel Schultz
This tools can read/write to the extended CSD register of MMC devices. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- Changes: v2: Changed patch order v3: Splitted output in different functions to reduce the indentation. Minimized s

[PATCH] ARM: boards: Fix beaglebone enviroment

2015-09-03 Thread Daniel Schultz
This patch adds missing enviroment files to boot from different sources. Also adds the handling of default bootsources. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- .../arm/boards/beaglebone/defaultenv-beaglebone/boot/emmc | 6 ++ arch/arm/boards/beaglebone/defaultenv-beag

[PATCH v3 2/4] include: mci: Add new ext. CSD field defines

2015-09-02 Thread Daniel Schultz
Added missing defines for the extended CSD register until standard 5.1. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- Changes: v2: Changed patch order Removed whitespaces from old defines v3: No changes include/mci.

[PATCH v3 1/4] drivers: mci: Make two functions public

2015-09-02 Thread Daniel Schultz
There is no possibility to read/write to the extended CSD register of MMC devices from a command. To avoid duplicated driver code, two driver functions have to be public. Signed-off-by: Daniel Schultz <d.schu...@phytec.de> --- Changes: v2: Changed patch order

  1   2   >