Re: Barebox State Framework

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,


2017-03-17 10:39 GMT+03:00 Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>:
> Hi,
>
> On Thu, Mar 16, 2017 at 04:55:07PM +0300, Çağlar Kilimci wrote:
>> Hello all,
>>
>> As my general purpose of updating a system with RUAC [1], I need to
>> use Barebox State Framework but I could not run it properly. I have
>> appended Barebox config these:
>>
>> 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
>>
>> And also, I include below into my dts:
>> state: state@0 {
>> magic = <0x27031977>;
>> compatible = "barebox,state";
>> backend-type = "raw";
>> backend = "partname:state";
>
> This looks wrong. This should be a phandle pointing to the partition you
> want to use.

Should it be like:
   backend = "mmc0:0";

Do you know or recommend any source to read about State Framework details?

>
> Otherwise it looks ok. Could you provide a boot log?

Here, it is:
barebox 2016.07.0 #1 Tue Mar 7 17:47:51 +03 2017


Board: Phytec phyCORE AM335x
omap-hsmmc 48060000.mmc: registered as 48060000.mmc
booting from MMC
mmc0: detected SD card version 2.0
mmc0: registered mmc0


barebox 2016.07.0 #1 Thu Mar 16 16:20:57 +03 2017


Board: Phytec phyCORE AM335x
cpsw 4a100000.ethernet: detected phy mask 0x3
mdio_bus: miibus0: probed
eth0: got preset MAC address: 88:c2:55:4d:f2:eb
am335x-phy-driver 47401b00.usb-phy: am_usbphy 87ff0bcc enabled
musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk
split, HB-ISO Rx, HB-ISO Tx, SoftConn)
musb-hdrc: MHDRC RTL version 2.0
musb-hdrc: setup fifo_mode 4
musb-hdrc: 28/31 max ep, 16384/16384 memory
i2c-omap 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
omap-hsmmc 48060000.mmc: registered as 48060000.mmc
mmc0: detected SD card version 2.0
mmc0: registered mmc0
omap_wdt 44e35000.wdt: OMAP Watchdog Timer Rev 0x01
nand: ONFI flash detected
nand: NAND device: Manufacturer ID: 0x2c, Chip ID: 0xf1 (Micron
MT29F1G08ABADAH4), 128MiB, page size: 2048, OOB size: 64
netconsole: registered as netconsole-1
malloc space: 0x87f7efa0 -> 0x8fefdf3f (size 127.5 MiB)
environment load /boot/barebox.env: No such file or directory
Maybe you have to create the partition.
running /env/bin/init...

Hit m for menu or any other key to stop autoboot:  1
blspec: blspec_scan_directory: mmc loader/entries

Loading ARM Linux zImage '/boot/linuximage'
Loading devicetree from '/boot/oftree'
commandline: consoleblank=0 console=ttyO0,115200n8
root=/dev/mmcblk0p2 rootflags=data=journal
video=HDMI-A-1:1024x768-32@60 rootwait ro fsck.repair=yes
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 4.4.19 (user@2cd11a5230c0) (gcc version
6.3.0 (GCC) ) #1 Thu Mar 16 16:22:39 +03 2017
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing
instruction cache
[    0.000000] Machine model: Phytec AM335x phyBOARD-WEGA
[    0.000000] cma: Reserved 16 MiB at 0x8f000000
[    0.000000] Memory policy: Data cache writeback
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] AM335X ES2.1 (sgx neon )
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.
Total pages: 64960
[    0.000000] Kernel command line: consoleblank=0
console=ttyO0,115200n8  root=/dev/mmcblk0p2 rootflags=data=journal
video=HDMI-A-1:1024x768-32@60 rootwait ro fsck.repair=yes
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 233856K/262144K available (6231K kernel code,
265K rwdata, 2044K rodata, 284K init, 253K bss, 11904K reserved,
16384K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xd0800000 - 0xff800000   ( 752 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc081cf7c   (8276 kB)
[    0.000000]       .init : 0xc081d000 - 0xc0864000   ( 284 kB)
[    0.000000]       .data : 0xc0864000 - 0xc08a6620   ( 266 kB)
[    0.000000]        .bss : 0xc08a9000 - 0xc08e8498   ( 254 kB)
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with
128 interrupts
[    0.000000] OMAP clockevent source: timer2 at 25000000 Hz
[    0.000015] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps
every 85899345900ns
[    0.000040] clocksource: timer1: mask: 0xffffffff max_cycles:
0xffffffff, max_idle_ns: 76450417870 ns
[    0.000054] OMAP clocksource: timer1 at 25000000 Hz
[    0.000695] clocksource_probe: no matching clocksources found
[    0.000993] Console: colour dummy device 80x30
[    0.001029] Calibrating delay loop... 597.60 BogoMIPS (lpj=2988032)
[    0.058710] pid_max: default: 32768 minimum: 301
[    0.058857] Security Framework initialized
[    0.058921] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.058937] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.059820] Initializing cgroup subsys io
[    0.059854] Initializing cgroup subsys memory
[    0.059903] Initializing cgroup subsys devices
[    0.059929] Initializing cgroup subsys freezer
[    0.059947] Initializing cgroup subsys perf_event
[    0.059982] CPU: Testing write buffer coherency: ok
[    0.060419] Setting up static identity map for 0x80008200 - 0x80008270
[    0.063305] devtmpfs: initialized
[    0.082447] VFP support v0.3: implementor 41 architecture 3 part 30
variant c rev 3
[    0.100976] omap_hwmod: debugss: _wait_target_disable failed
[    0.159345] clocksource: jiffies: mask: 0xffffffff max_cycles:
0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.161191] pinctrl core: initialized pinctrl subsystem
[    0.162539] NET: Registered protocol family 16
[    0.165098] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.166002] cpuidle: using governor ladder
[    0.166025] cpuidle: using governor menu
[    0.171930] OMAP GPIO hardware version 0.1
[    0.182051] omap-gpmc 50000000.gpmc: could not find pctldev for
node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_nandflash,
deferring probe
[    0.185985] No ATAGs?
[    0.186016] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.207246] edma 49000000.edma: TI EDMA DMA engine driver
[    0.212266] SCSI subsystem initialized
[    0.213001] usbcore: registered new interface driver usbfs
[    0.213096] usbcore: registered new interface driver hub
[    0.213201] usbcore: registered new device driver usb
[    0.213703] omap_i2c 44e0b000.i2c: could not find pctldev for node
/ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0, deferring
probe
[    0.213893] Linux video capture interface: v2.00
[    0.213962] pps_core: LinuxPPS API ver. 1 registered
[    0.213972] pps_core: Software ver. 5.3.6 - Copyright 2005-2007
Rodolfo Giometti <giometti@xxxxxxxx>
[    0.214009] PTP clock support registered
[    0.215580] clocksource: Switched to clocksource timer1
[    0.229315] NET: Registered protocol family 2
[    0.230270] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    0.230315] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.230352] TCP: Hash tables configured (established 2048 bind 2048)
[    0.230440] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.230466] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.230655] NET: Registered protocol family 1
[    0.231131] RPC: Registered named UNIX socket transport module.
[    0.231147] RPC: Registered udp transport module.
[    0.231156] RPC: Registered tcp transport module.
[    0.231164] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.232522] hw perfevents: enabled with armv7_cortex_a8 PMU driver,
5 counters available
[    0.234987] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.235086] audit: initializing netlink subsys (disabled)
[    0.235157] audit: type=2000 audit(0.210:1): initialized
[    0.236391] VFS: Disk quotas dquot_6.6.0
[    0.236474] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.237248] NFS: Registering the id_resolver key type
[    0.237324] Key type id_resolver registered
[    0.237336] Key type id_legacy registered
[    0.237415] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.243794] NET: Registered protocol family 38
[    0.243870] io scheduler noop registered
[    0.243888] io scheduler deadline registered
[    0.243927] io scheduler cfq registered (default)
[    0.245372] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
[    0.247944] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.250478] omap_uart 44e09000.serial: no wakeirq for uart0
[    0.250700] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 158,
base_baud = 3000000) is a OMAP UART0
[    0.880824] console [ttyO0] enabled
[    0.885140] omap_uart 48022000.serial: no wakeirq for uart1
[    0.891210] 48022000.serial: ttyO1 at MMIO 0x48022000 (irq = 159,
base_baud = 3000000) is a OMAP UART1
[    0.902381] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
[    0.909546] [drm] Initialized drm 1.1.0 20060810
[    0.929816] brd: module loaded
[    0.941014] loop: module loaded
[    0.949293] CAN device driver interface
[    0.954663] c_can_platform 481d0000.can: c_can_platform device
registered (regs=fa1d0000, irq=163)
[    1.025661] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
[    1.032084] davinci_mdio 4a101000.mdio: detected phy mask fffffffc
[    1.040201] libphy: 4a101000.mdio: probed
[    1.044435] davinci_mdio 4a101000.mdio: phy[0]: device
4a101000.mdio:00, driver SMSC LAN8710/LAN8720
[    1.054109] davinci_mdio 4a101000.mdio: phy[1]: device
4a101000.mdio:01, driver SMSC LAN8710/LAN8720
[    1.064741] cpsw 4a100000.ethernet: Detected MACID = 88:c2:55:4d:f2:eb
[    1.072794] cpsw 4a100000.ethernet: cpsw: Detected MACID = 88:c2:55:4d:f2:ed
[    1.081549] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.088477] ehci-platform: EHCI generic platform driver
[    1.094231] ehci-omap: OMAP-EHCI Host Controller driver
[    1.099905] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.106568] usbcore: registered new interface driver usb-storage
[    1.115128] 47401300.usb-phy supply vcc not found, using dummy regulator
[    1.124788] musb-hdrc musb-hdrc.0.auto: Failed to request rx1.
[    1.131030] musb-hdrc musb-hdrc.0.auto: musb_init_controller failed
with status -517
[    1.140443] 47401b00.usb-phy supply vcc not found, using dummy regulator
[    1.149912] musb-hdrc musb-hdrc.1.auto: Failed to request rx1.
[    1.156137] musb-hdrc musb-hdrc.1.auto: musb_init_controller failed
with status -517
[    1.173208] mousedev: PS/2 mouse device common for all mice
[    1.180718] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc1
[    1.188621] i2c /dev entries driver
[    1.193476] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[    1.201974] omap_hsmmc 48060000.mmc: Got CD GPIO
[    1.248663] ledtrig-cpu: registered to indicate activity on CPUs
[    1.255389] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
[    1.265412] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
[    1.273735] oprofile: using arm/armv7
[    1.281314] Initializing XFRM netlink socket
[    1.286020] NET: Registered protocol family 10
[    1.292142] sit: IPv6 over IPv4 tunneling driver
[    1.298105] NET: Registered protocol family 17
[    1.302791] NET: Registered protocol family 15
[    1.307568] can: controller area network core (rev 20120528 abi 9)
[    1.314178] NET: Registered protocol family 29
[    1.318929] can: raw protocol (rev 20120528)
[    1.323426] can: broadcast manager protocol (rev 20120528 t)
[    1.329409] can: netlink gateway (rev 20130117) max_hops=1
[    1.335304] 8021q: 802.1Q VLAN Support v1.8
[    1.339842] Key type dns_resolver registered
[    1.344574] omap_voltage_late_init: Voltage driver support not added
[    1.352543] ThumbEE CPU extension supported.
[    1.359323] omap-gpmc 50000000.gpmc: GPMC revision 6.0
[    1.364806] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
[    1.372996] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xf1
[    1.379795] nand: Micron MT29F1G08ABADAH4
[    1.384016] nand: 128 MiB, SLC, erase size: 128 KiB, page size:
2048, OOB size: 64
[    1.392033] nand: using OMAP_ECC_BCH8_CODE_HW ECC scheme
[    1.397793] 8 ofpart partitions found on MTD device 8000000.nand
[    1.404134] Creating 8 MTD partitions on "8000000.nand":
[    1.409750] mmc0: host does not support reading read-only switch,
assuming write-enable
[    1.418232] 0x000000000000-0x000000020000 : "xload"
[    1.423914] mmc0: new high speed SDHC card at address aaaa
[    1.430927] 0x000000020000-0x000000040000 : "xload_backup1"
[    1.437473] mmcblk0: mmc0:aaaa SL32G 29.7 GiB
[    1.444299] 0x000000040000-0x000000060000 : "xload_backup2"
[    1.450389]  mmcblk0: p1 p2
[    1.455948] 0x000000060000-0x000000080000 : "xload_backup3"
[    1.463295] 0x000000080000-0x000000100000 : "barebox"
[    1.470229] 0x000000100000-0x000000180000 : "barebox_backup"
[    1.477746] 0x000000180000-0x0000001c0000 : "bareboxenv"
[    1.484694] 0x0000001c0000-0x000008000000 : "root"
[    1.555735] tps65910 0-002d: No interrupt support, no core IRQ
[    1.586529] tps65910-rtc tps65910-rtc: IRQ is not free.
[    1.592053] tps65910-rtc: probe of tps65910-rtc failed with error -22
[    1.599353] at24 0-0052: 4096 byte 24c32 EEPROM, writable, 32 bytes/write
[    1.607642] rtc-m41t80 0-0068: rtc core: registered rv4162 as rtc0
[    1.616512] dummy 0-0034: Error -121 writing to cec:0xff
[    1.622171] tda998x 0-0070: set_page 000a err -121
[    1.685668] tda998x 0-0070: set_page 000a err -121
[    1.745656] tda998x 0-0070: set_page 0001 err -121
[    1.750751] tda998x 0-0070: set_page 0001 err -121
[    1.755865] tda998x 0-0070: set_page 0200 err -121
[    1.760964] tda998x 0-0070: set_page 0201 err -121
[    1.766076] tda998x 0-0070: set_page 0202 err -121
[    1.771173] tda998x 0-0070: set_page 0203 err -121
[    1.776286] tda998x 0-0070: set_page 0204 err -121
[    1.781381] tda998x 0-0070: set_page 0205 err -121
[    1.786493] tda998x 0-0070: set_page 020e err -121
[    1.791588] tda998x 0-0070: set_page 0211 err -121
[    1.796701] tda998x 0-0070: set_page 0207 err -121
[    1.801796] tda998x 0-0070: set_page 0208 err -121
[    1.806909] tda998x 0-0070: set_page 0209 err -121
[    1.812003] tda998x 0-0070: set_page 020a err -121
[    1.817114] tda998x 0-0070: set_page 0206 err -121
[    1.822209] tda998x 0-0070: set_page 0027 err -121
[    1.827322] tda998x 0-0070: set_page 0000 err -121
[    1.832416] tda998x 0-0070: set_page 0002 err -121
[    1.837621] tilcdc 4830e000.lcdc: failed to bind 0-0070 (ops tda998x_ops): -6
[    1.845748] tilcdc 4830e000.lcdc: master bind failed: -6
[    1.851463] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[    1.865697] musb-hdrc musb-hdrc.0.auto: MUSB HDRC host driver
[    1.871777] musb-hdrc musb-hdrc.0.auto: new USB bus registered,
assigned bus number 1
[    1.880265] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.887435] usb usb1: New USB device strings: Mfr=3, Product=2,
SerialNumber=1
[    1.895031] usb usb1: Product: MUSB HDRC host driver
[    1.900266] usb usb1: Manufacturer: Linux 4.4.19 musb-hcd
[    1.905956] usb usb1: SerialNumber: musb-hdrc.0.auto
[    1.912146] hub 1-0:1.0: USB hub found
[    1.916172] hub 1-0:1.0: 1 port detected
[    1.929442] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.935516] musb-hdrc musb-hdrc.1.auto: new USB bus registered,
assigned bus number 2
[    1.943979] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.951146] usb usb2: New USB device strings: Mfr=3, Product=2,
SerialNumber=1
[    1.958755] usb usb2: Product: MUSB HDRC host driver
[    1.963976] usb usb2: Manufacturer: Linux 4.4.19 musb-hcd
[    1.969665] usb usb2: SerialNumber: musb-hdrc.1.auto
[    1.975809] hub 2-0:1.0: USB hub found
[    1.979793] hub 2-0:1.0: 1 port detected
[    1.984704] vdd_mpu: supplied by vcc5v
[    1.990998] input: user_buttons as
/devices/platform/user_buttons/input/input0
[    1.999688] rtc-m41t80 0-0068: setting system clock to 2017-03-17
13:21:34 UTC (1489756894)
[    2.009125] lcd_3v3: disabling
[    2.019520] EXT4-fs: Warning: mounting with data=journal disables
delayed allocation and O_DIRECT support!
[    2.029704] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to
feature incompatibilities
[    2.053774] EXT4-fs (mmcblk0p2): mounted filesystem with journalled
data mode. Opts: data=journal
[    2.063221] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    2.081914] devtmpfs: mounted
[    2.085413] Freeing unused kernel memory: 284K (c081d000 - c0864000)
[    2.446887] random: systemd: uninitialized urandom read (16 bytes
read, 24 bits of entropy available)
[    2.470448] random: systemd: uninitialized urandom read (16 bytes
read, 25 bits of entropy available)
[    2.497070] systemd[1]: systemd 232 running in system mode. (-PAM
-AUDIT -SELINUX -IMA -APPARMOR -SMACK +SYSVINIT -UTMP -LIBCRYPTSETUP
-GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN)
[    2.516872] systemd[1]: Detected architecture arm.

Welcome to Poky (Yocto Project Reference Distro) 2.2+snapshot-20170307 (master)!

[    2.560427] systemd[1]: Set hostname to <phyboard-wega-am335x-1>.
[    2.713762] random: systemd-sysv-ge: uninitialized urandom read (16
bytes read, 26 bits of entropy available)
[    2.727953] random: systemd-gpt-aut: uninitialized urandom read (16
bytes read, 26 bits of entropy available)
[    2.744348] random: systemd-gpt-aut: uninitialized urandom read (16
bytes read, 27 bits of entropy available)
[    2.760456] random: systemd-sysv-ge: uninitialized urandom read (16
bytes read, 27 bits of entropy available)
[    2.865336] random: systemd: uninitialized urandom read (16 bytes
read, 30 bits of entropy available)
[    2.876610] random: systemd: uninitialized urandom read (16 bytes
read, 30 bits of entropy available)
[    2.887013] random: systemd: uninitialized urandom read (16 bytes
read, 31 bits of entropy available)
[    2.897914] random: systemd: uninitialized urandom read (16 bytes
read, 31 bits of entropy available)
[    3.109521] systemd[1]: Configuration file
/etc/systemd/system/ayran-startup.service is marked executable. Please
remove executable permission bits. Proceeding anyway.
[    3.137479] systemd[1]: Listening on Network Service Netlink Socket.
[  OK  ] Listening on Network Service Netlink Socket.
[    3.166414] systemd[1]: Started Forward Password Requests to Wall
Directory Watch.
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
[    3.196238] systemd[1]: Listening on Syslog Socket.
[  OK  ] Listening on Syslog Socket.
[    3.216171] systemd[1]: Listening on udev Kernel Socket.
[  OK  ] Listening on udev Kernel Socket.
[    3.236197] systemd[1]: Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket (/dev/log).
[    3.258139] systemd[1]: Created slice System Slice.
[  OK  ] Created slice System Slice.
[    3.276053] systemd[1]: dev-hugepages.mount: Couldn't determine
result for ConditionVirtualization=!private-users, assuming failed: No
such file or directory
[    3.291506] systemd[1]: Reached target Slices.
[  OK  ] Reached target Slices.
[    3.316858] systemd[1]: Started Dispatch Password Requests to
Console Directory Watch.
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
[    3.346036] systemd[1]: Reached target Paths.
[  OK  ] Reached target Paths.
[    3.366357] systemd[1]: Listening on Journal Socket.
[  OK  ] Listening on Journal Socket.
[    3.390589] systemd[1]: Starting File System Check on Root Device...
         Starting File System Check on Root Device...
[    3.431628] systemd[1]: Starting Create list of required static
device nodes for the current kernel...
         Starting Create list of required st…ce nodes for the current kernel...
[    3.509434] systemd[1]: Mounting Configuration File System...
         Mounting Configuration File System...
[    3.544154] systemd[1]: Created slice system-getty.slice.
[  OK  ] Created slice system-getty.slice.
[    3.588380] systemd[1]: Listening on udev Control Socket.
[  OK  ] Listening on udev Control Socket[    3.625559] systemd[1]:
Listening on Journal Audit Socket.
.
[  OK  ] Listening on Journal Audit Socket.
[    3.643360] systemd[1]: Starting Journal Service...
         Starting Journal Service...
[    3.659947] systemd[1]: Created slice system-serial\x2dgetty.slice.
[  OK  ] Created slice system-serial\x2dgetty.slice.
[    3.716684] systemd[1]: Mounting POSIX Message Queue File System...
         Mounting POSIX Message Queue File System...
[    3.786342] systemd[1]: Reached target Remote File Systems.
[  OK  ] Reached target Remote File Systems.
[    3.816266] systemd[1]: Reached target Swap.
[  OK  ] Reached target Swap.
[    3.854892] systemd[1]: Mounting Temporary Directory...
         Mounting Temporary Directory...
[    3.906615] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[    3.950498] systemd[1]: Starting Apply Kernel Variables...
         Starting Apply Kernel Variables...
[    4.025285] systemd[1]: Mounted Configuration File System.
[  OK  ] Mounted Configuration File System.
[    4.086166] systemd[1]: Mounted POSIX Message Queue File System.
[  OK  ] Mounted POSIX Message Queue File System.
[    4.106144] systemd[1]: Mounted Temporary Directory.
[  OK  ] Mounted Temporary Directory.
[    4.126637] systemd[1]: Started Journal Service.
[  OK  ] Started Journal Service.
[  OK  ] Started File System Check on Root Device.
[  OK  ] Started Create list of required sta…vice nodes for the current kernel.
[  OK  ] Started Apply Kernel Variables.
         Starting Create Static Device Nodes in /dev...
         Starting Remount Root and Kernel File Systems...
[  OK  ] Started Create Static Device Nodes in /dev.
[    4.386626] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
         Starting udev Kernel Device Manager...
[  OK  ] Started Remount Root and Kernel File Systems.
[  OK  ] Reached target Local File Systems (Pre).
         Mounting /var/volatile...
         Starting Flush Journal to Persistent Storage...
         Starting udev Coldplug all Devices...
[  OK  ] Mounted /var/volatile.
[  OK  ] Started udev Kernel Device Manager.
[    4.717758] systemd-journald[127]: Received request to flush
runtime journal from PID 1
[  OK  ] Reached target Local File Systems.
[  OK  ] Started Flush Journal to Persistent Storage.
         Starting Create Volatile Files and Directories...
[  OK  ] Started Create Volatile Files and Directories.
[  OK  ] Found device /dev/ttyO0.
[  OK  ] Started udev Coldplug all Devices.
[  OK  ] Reached target System Initialization.
         Starting sshd.socket.
[    5.741723] vdig1_1p8v: supplied by vcc5vDirectories.

[  OK  ] Reached target Timers.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Listening on sshd.socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
[  OK  ] Started Rauc Good-marking Service.
[  OK  ] Started Kernel Logging Service.
         Starting ACPI Event Daemon...
[  OK  ] Reached target Containers.
[  OK  ] Started Serial Getty on ttyO0.
[  OK  ] Started D-Bus System Message Bus.
         Starting Network Service...
[  OK  ] Started can0 interface setup.
[  OK  ] Started Getty on tty1.
[    6.844938] c_can_platform 481d0000.can can0: setting BTR=0209 BRPE=0000
[  OK  ] Reached target Login Prompts.
[  OK  ] Started System Logging Service.
[    6.955550] IPv6: ADDRCONF(NETDEV_CHANGE): can0: link becomes ready
[  OK  ] Started ACPI Event Daemon.
[    7.263422] [drm] Initialized pvr 1.14.3699939 20110701 on minor 0
[    7.418688] davinci_evm sound_iface: tlv320aic3x-hifi <->
48038000.mcasp mapping ok
[  OK  ] Started Network Service.
[    7.672754] net eth1: initializing cpsw version 1.12 (0)
[    7.678363] net eth0: initialized cpsw ale version 1.4
[    7.683746] net eth0: ALE Table size 1024
[    7.926395] net eth1: phy found : id is : 0x7c0f1
[    7.961977] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[    7.968187] 8021q: adding VLAN 0 to HW filter on device eth1
[  OK  ] Reached target Network.
         [    8.132915] net eth0: initializing cpsw version 1.12 (0)
Starting Lightning Fast Webserver With Light System Requirements...
         Starting Network Name Resolution...
[    8.286327] net eth0: phy found : id is : 0x7c0f1
[    8.295686] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    8.301807] 8021q: adding VLAN 0 to HW filter on device eth0
[  OK  ] Started Lightning Fast Webserver With Light System Requirements.
[  OK  ] Reached target Sound Card.
[  OK  ] Started Network Name Resolution.
[  OK  ] Reached target Multi-User System.
         Starting Startup service for dhcp-client...
[   11.306373] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full
- flow control rx/tx
[   11.314870] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready


Poky (Yocto Project Reference Distro) 2.2+snapshot-20170307
phyboard-wega-am335x-1 ttyO0

phyboard-wega-am335x-1 login:


Thank you for your time.

Sincerely,

2017-03-17 10:39 GMT+03:00 Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>:
> Hi,
>
> On Thu, Mar 16, 2017 at 04:55:07PM +0300, Çağlar Kilimci wrote:
>> Hello all,
>>
>> As my general purpose of updating a system with RUAC [1], I need to
>> use Barebox State Framework but I could not run it properly. I have
>> appended Barebox config these:
>>
>> 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
>>
>> And also, I include below into my dts:
>> state: state@0 {
>> magic = <0x27031977>;
>> compatible = "barebox,state";
>> backend-type = "raw";
>> backend = "partname:state";
>
> This looks wrong. This should be a phandle pointing to the partition you
> want to use.
>
> Otherwise it looks ok. Could you provide a boot log?
>
> Sascha
>
> --
> Pengutronix e.K.                           |                             |
> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



-- 
Çağlar Kilimci

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox




[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux