State Framework and dtb

Çağlar Kilimci ckilimci at gmail.com
Thu Mar 30 03:33:26 PDT 2017


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 at 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



More information about the barebox mailing list