From: "Çağlar Kilimci" <ckilimci@gmail.com>
To: Sascha Hauer <s.hauer@pengutronix.de>
Cc: barebox <barebox@lists.infradead.org>
Subject: Re: State Framework and dtb
Date: Thu, 30 Mar 2017 13:33:26 +0300 [thread overview]
Message-ID: <CAGUZs0n93ZWNASvyyUddCPfSKPYavomXxGwHMd6caGGn3w65hw@mail.gmail.com> (raw)
In-Reply-To: <20170330063139.kfxjxb33cbrbzrdp@pengutronix.de>
Hi,
>> backend = &state_partition;
>
> This should be a phandle. Sorry, the example I gave you last time was
> wrong. It should be
>
> backend = <&state_partition>;
>
> Note the '<>'
It's alright. I applied the changes, but still no registered state
instances there. Similarly, if I free stored device tree and load it
back again; before probe it, I can observe state like this:
state@0 {
magic = <0x27031993>;
compatible = "barebox,state";
backend-type = "dtb";
backend = <0x5a>;
foo {
reg = <0x0 0x4>;
type = "uint32";
default = <0x0>;
};
bar {
reg = <0x10 0x4>;
type = "enum32";
names = "baz", "qux";
default = <0x1>;
};
};
I appended many configs even if I do not need all of them:
CONFIG_STATE=y
CONFIG_STATE_CRYPTO=y
CONFIG_CMD_SHA1SUM=y
CONFIG_CMD_SHA224SUM=y
CONFIG_CMD_SHA256SUM=y
CONFIG_CMD_SHA384SUM=y
CONFIG_CMD_SHA512SUM=y
CONFIG_CMD_STATE=y
CONFIG_STATE_DRV=y
CONFIG_DIGEST_HMAC=y
CONFIG_DIGEST_SHA1_GENERIC=y
CONFIG_DIGEST_HMAC_GENERIC=y
CONFIG_CRYPTO_KEYSTORE=y
CONFIG_BOOTCHOOSER=y
CONFIG_CMD_BOOTCHOOSER=y
CONFIG_LOGBUF=y
CONFIG_FIRMWARE=y
CONFIG_BOOTM_OFTREE_UIMAGE=y
CONFIG_IMD=y
CONFIG_IMD_TARGET=y
CONFIG_BAREBOXENV_TARGET=y
CONFIG_DDR_SPD=y
CONFIG_CMD_DMESG=y
CONFIG_CMD_IMD=y
CONFIG_CMD_MMC_EXTCSD=y
CONFIG_CMD_FIRMWARELOAD=y
CONFIG_CMD_DHRYSTONE=y
CONFIG_CMD_SPD_DECODE=y
CONFIG_OF_BAREBOX_ENV_IN_FS=y
CONFIG_NAND_ALLOW_ERASE_BAD=y
CONFIG_EEPROM_AT25=y
CONFIG_DIGEST_CRC32_GENERIC=y
# CONFIG_DEFAULT_COMPRESSION_XZ is not set
CONFIG_BAREBOXENV_TARGET=y
CONFIG_BAREBOXCRC32_TARGET=y
CONFIG_CMD_HWMON=y
CONFIG_AIODEV=y
CONFIG_LM75=y
CONFIG_DRIVER_SERIAL_ARM_DCC=y
CONFIG_DRIVER_SERIAL_CADENCE=y
CONFIG_DRIVER_NET_CALXEDA_XGMAC=y
CONFIG_DRIVER_NET_ENC28J60=y
CONFIG_DRIVER_NET_ENC28J60_WRITEVERIFY=y
CONFIG_AT803X_PHY=y
CONFIG_LXT_PHY=y
CONFIG_MARVELL_PHY=y
CONFIG_NATIONAL_PHY=y
CONFIG_MDIO_BITBANG=y
CONFIG_MDIO_GPIO=y
CONFIG_I2C_ALGOBIT=y
CONFIG_I2C_GPIO=y
CONFIG_I2C_DESIGNWARE=y
CONFIG_I2C_MUX=y
#
# Multiplexer I2C Chip support
#
CONFIG_I2C_MUX_PCA954x=y
CONFIG_MTD_RAW_DEVICE=y
CONFIG_MTD_CONCAT=y
CONFIG_MTD_DATAFLASH=y
CONFIG_MTD_DATAFLASH_WRITE_VERIFY=y
CONFIG_MTD_SST25L=y
CONFIG_MTD_DOCG3=y
CONFIG_MTD_MTDRAM=y
CONFIG_DRIVER_CFI=y
CONFIG_DRIVER_CFI_INTEL=y
CONFIG_DRIVER_CFI_AMD=y
CONFIG_DRIVER_CFI_BANK_WIDTH_1=y
CONFIG_DRIVER_CFI_BANK_WIDTH_2=y
CONFIG_DRIVER_CFI_BANK_WIDTH_4=y
# CONFIG_DRIVER_CFI_BANK_WIDTH_8 is not set
# CONFIG_CFI_BUFFER_WRITE is not set
CONFIG_NAND_ECC_BCH=y
CONFIG_NAND_ECC_HW_OOB_FIRST=y
CONFIG_MTD_NAND_ECC_SMC=y
CONFIG_MTD_NAND_DENALI=y
CONFIG_MTD_NAND_DENALI_TIMING_MODE=-1
CONFIG_SPI_CADENCE_QUADSPI=y
# CONFIG_USB_TWL4030 is not set
CONFIG_MCI_MMC_BOOT_PARTITIONS=y
CONFIG_MCI_DW=y
CONFIG_MCI_DW_PIO=y
CONFIG_MCI_SPI=y
CONFIG_MMC_SPI_CRC_ON=y
CONFIG_MFD_ACT8846=y
CONFIG_MFD_DA9053=y
CONFIG_MFD_DA9063=y
CONFIG_MFD_LP3972=y
CONFIG_MFD_MC13XXX=y
CONFIG_MFD_MC34704=y
CONFIG_MFD_MC9SDZ60=y
CONFIG_MFD_STMPE=y
CONFIG_MFD_SYSCON=y
CONFIG_MFD_TWLCORE=y
CONFIG_MFD_TWL4030=y
CONFIG_MFD_TWL6030=y
CONFIG_SRAM=y
# CONFIG_KEYBOARD_TWL6030 is not set
# CONFIG_GPIO_STMPE is not set
CONFIG_FIRMWARE_ALTERA_SERIAL=y
CONFIG_GENERIC_PHY=y
CONFIG_FS_CRAMFS=y
CONFIG_FS_SQUASHFS=y
CONFIG_SQUASHFS_XZ=y
CONFIG_XZ_DECOMPRESS=y
CONFIG_BCH=y
CONFIG_BITREV=y
CONFIG_CRC7=y
CONFIG_DIGEST_SHA1_ARM=y
CONFIG_DIGEST_SHA256_ARM=y
I do not understand where am I missing?
--
Çağlar Kilimci
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2017-03-30 10:33 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-29 13:24 Çağlar Kilimci
2017-03-30 6:31 ` Sascha Hauer
2017-03-30 10:33 ` Çağlar Kilimci [this message]
2017-03-31 6:21 ` Sascha Hauer
2017-03-31 6:54 ` Çağlar Kilimci
2017-03-31 7:02 ` Sascha Hauer
2017-03-31 7:18 ` Çağlar Kilimci
2017-03-31 7:23 ` Sascha Hauer
2017-03-31 11:41 ` Çağlar Kilimci
2017-03-31 13:00 ` Sascha Hauer
2017-04-03 20:59 ` Çağlar Kilimci
2017-04-04 6:22 ` Sascha Hauer
2017-04-04 6:49 ` Çağlar Kilimci
2017-04-04 8:04 ` Jan Remmet
[not found] ` <58e3539f.0582540a.1e64d.751fSMTPIN_ADDED_BROKEN@mx.google.com>
2017-04-04 10:27 ` Çağlar Kilimci
2017-04-04 10:48 ` Ian Abbott
2017-04-05 6:01 ` Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAGUZs0n93ZWNASvyyUddCPfSKPYavomXxGwHMd6caGGn3w65hw@mail.gmail.com \
--to=ckilimci@gmail.com \
--cc=barebox@lists.infradead.org \
--cc=s.hauer@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox