Toon firmware: issues (and solutions)

Forum about the Toon firmware, and its extensions

Moderators: marcelr, TheHogNL, Toonz

balans
Starting Member
Starting Member
Posts: 26
Joined: Wed Feb 01, 2017 7:21 pm

Re: Toon firmware: issues (and solutions)

Post by balans »

That info brought me to that location but i like i said i had to add that extra line happ_ther or else i got the 403
before the upgrade from 3.6 to 4.9 to 4.10 it worked
klaphekje
Starting Member
Starting Member
Posts: 36
Joined: Sat Oct 08, 2016 10:05 pm

Re: Toon firmware: issues (and solutions)

Post by klaphekje »

Ok, see below:

Code: Select all

eneco-001:~# modprobe -r zwave300
eneco-001:~# modprobe zwave300
eneco-001:~# lsmod
Module                  Size  Used by
zwave300                3994  0
rt5370sta             760630  1
rtl8191su             333662  0
eneco-001:~# dmesg
Linux version 2.6.36-R10-h27 (jbraam@dvl) (gcc version 4.5.3 20110223 (prerelease) (GCC                                                                                          ) ) #1 PREEMPT Tue Oct 25 20:03:05 CEST 2016
CPU: ARM926EJ-S [41069264] revision 4 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: Prodrive B.V ED2.0
Memory policy: ECC disabled, Data cache writeback
On node 0 totalpages: 32768
free_area_init_node: node 0, pgdat c03a119c, node_mem_map c03c5000
  Normal zone: 256 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 32512 pages, LIFO batch:7
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
Kernel command line: ubi.mtd=4 root=ubi0:rootfs rw rootfstype=ubifs mtdparts=mxc_nand:5                                                                                          12K@0x00100000(u-boot-env)ro,1536K(splash-image),3M(kernel),3M(kernel-backup),119M(root                                                                                          fs) console=ttymxc0,115200 mem=128M lpj=999424 lcd=TDA-WVGA0700F00048
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 128MB = 128MB total
Memory: 126092k/126092k available, 4980k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xffa00000 - 0xffe00000   (   4 MB)
    vmalloc : 0xc8800000 - 0xf4000000   ( 696 MB)
    lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .init : 0xc0008000 - 0xc0022000   ( 104 kB)
      .text : 0xc0022000 - 0xc0367000   (3348 kB)
      .data : 0xc037e000 - 0xc03a17a0   ( 142 kB)
Hierarchical RCU implementation.
        RCU-based detection of stalled CPUs is disabled.
        Verbose stalled-CPUs detection is disabled.
NR_IRQS:272
MXC IRQ initialized
MXC GPIO hardware
Console: colour dummy device 80x30
Calibrating delay loop (skipped) preset value.. 199.88 BogoMIPS (lpj=999424)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
Configured for LCD: TDA-WVGA0700F00048
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Switching to clocksource mxc_timer1
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
msgmni has been set to 246
io scheduler noop registered (default)
imx-fb imx-fb.0: PreserveUBootFramebuffer(1): xres=800, yres=480 [skip _update_lcdc]
imx-fb imx-fb.0: PreserveUBootFramebuffer(2): xres=800, yres=480 [skip _update_lcdc]
Console: switching to colour frame buffer device 100x30
imx-fb imx-fb.0: fb0: DISP0 BG fb device registered successfully.
imx-fb imx-fb.0: PreserveUBootFramebuffer(3): xres=800, yres=480 [skip _update_lcdc]
imx-fb imx-fb.0: fb1: DISP0 FG fb device registered successfully.
Serial: IMX driver
imx-uart.0: ttymxc0 at MMIO 0x1000a000 (irq = 20) is a IMX
console [ttymxc0] enabled
imx-uart.1: ttymxc1 at MMIO 0x1000b000 (irq = 19) is a IMX
imx-uart.2: ttymxc2 at MMIO 0x1000c000 (irq = 18) is a IMX
NAND device: K9F1G08U0E detected, disabling sub-page writes
NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)
Scanning device for bad blocks
RedBoot partition parsing not available
5 cmdlinepart partitions found on MTD device mxc_nand
Creating 5 MTD partitions on "mxc_nand":
0x000000100000-0x000000180000 : "u-boot-env"
0x000000180000-0x000000300000 : "splash-image"
0x000000300000-0x000000600000 : "kernel"
0x000000600000-0x000000900000 : "kernel-backup"
0x000000900000-0x000008000000 : "rootfs"
UBI: attaching mtd4 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    126976 bytes
UBI: smallest flash I/O unit:    2048
UBI: VID header offset:          2048 (aligned 2048)
UBI: data offset:                4096
UBI: max. sequence number:       95149
UBI: attached mtd4 to ubi0
UBI: MTD device name:            "rootfs"
UBI: MTD device size:            119 MiB
UBI: number of good PEBs:        952
UBI: number of bad PEBs:         0
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     1
UBI: available PEBs:             0
UBI: total number of reserved PEBs: 952
UBI: number of PEBs reserved for bad PEB handling: 9
UBI: max/mean erase counter: 348/99
UBI: image sequence number:  1706006230
UBI: background thread "ubi_bgt0d" started, PID 309
at25 spi0.0: rdsr --> 255 (ff)
at25 spi0.0: probe err -6
spi_imx spi_imx.0: probed
FEC Ethernet Driver
fec_enet_mii_bus: probed
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
mxc-ehci mxc-ehci.0: initializing i.MX USB Controller
mxc-ehci mxc-ehci.0: portsc setup 1: 0x80000000
mxc-ehci mxc-ehci.0: Work around for USB enabled
ULPI transceiver vendor/product ID 0x0424/0x000d
mxc-ehci mxc-ehci.0: Freescale On-Chip EHCI Host Controller
mxc-ehci mxc-ehci.0: new USB bus registered, assigned bus number 1
mxc-ehci mxc-ehci.0: irq 56, io mem 0x10024000
mxc-ehci mxc-ehci.0: USB 2.0 started, EHCI 1.00
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: Freescale On-Chip EHCI Host Controller
usb usb1: Manufacturer: Linux 2.6.36-R10-h27 ehci_hcd
usb usb1: SerialNumber: mxc-ehci.0
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
mxc-ehci mxc-ehci.2: initializing i.MX USB Controller
mxc-ehci mxc-ehci.2: portsc setup 1: 0x80000000
mxc-ehci mxc-ehci.2: Work around for USB enabled
mxc-ehci mxc-ehci.2: Freescale On-Chip EHCI Host Controller
mxc-ehci mxc-ehci.2: new USB bus registered, assigned bus number 2
mxc-ehci mxc-ehci.2: irq 55, io mem 0x10024400
mxc-ehci mxc-ehci.2: USB 2.0 started, EHCI 1.00
usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: Freescale On-Chip EHCI Host Controller
usb usb2: Manufacturer: Linux 2.6.36-R10-h27 ehci_hcd
usb usb2: SerialNumber: mxc-ehci.2
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usbserial
usbserial: USB Serial Driver core
input: TSC2007 Touchscreen as /devices/virtual/input/input0
rtc-isl1208 1-006f: chip found, driver version 0.3
rtc-isl1208: dev (254:0)
rtc-isl1208 1-006f: rtc core: registered rtc-isl1208 as rtc0
i2c /dev entries driver
tmp431 0-004c: Could not read configuration register (-5)
imx2-wdt imx2-wdt.0: IMX2+ Watchdog Timer enabled. timeout=60s (nowayout=0)
Registered led device: led0
Registered led device: led1
adt7410 0-0048: adt7410 temperature sensor registered.
adt7410 0-0049: adt7410 temperature sensor registered.
nf_conntrack version 0.5.0 (1970 buckets, 7880 max)
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP cubic registered
NET: Registered protocol family 17
Bridge firewalling registered
rtc-isl1208 1-006f: setting system clock to 2018-01-05 19:05:57 UTC (1515179157)
UBIFS: mounted UBI device 0, volume 0, name "rootfs"
UBIFS: file system size:   117833728 bytes (115072 KiB, 112 MiB, 928 LEBs)
UBIFS: journal size:       9023488 bytes (8812 KiB, 8 MiB, 72 LEBs)
UBIFS: media format:       w4/r0 (latest is w4/r0)
UBIFS: default compressor: lzo
UBIFS: reserved for root:  0 bytes (0 KiB)
VFS: Mounted root (ubifs filesystem) on device 0:13.
Freeing init memory: 104K
usb 2-1: new high speed USB device using mxc-ehci and address 2
usb 2-1: New USB device found, idVendor=148f, idProduct=5370
usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 2-1: Product: 802.11 n WLAN
usb 2-1: Manufacturer: Ralink
usb 2-1: SerialNumber: 1.0
usbcore: registered new interface driver r871x_usb_drv
usbcore: registered new interface driver rt2870
eth0: Freescale FEC PHY driver [Generic PHY] (mii_bus:phy_addr=1:10, irq=-1)
(Efuse for 3062/3562/3572) Size=0x2d [2d0-2fc]
Key1Str is Invalid key length(0) or Type(0)
Key2Str is Invalid key length(0) or Type(0)
Key3Str is Invalid key length(0) or Type(0)
Key4Str is Invalid key length(0) or Type(0)
NVM is Efuse and its size =2d[2d0-2fc]
phy mode> Error! The chip does not support 5G band 15!
RTMPSetPhyMode: channel is out of range, use first channel=1
(Efuse for 3062/3562/3572) Size=0x2d [2d0-2fc]
AntCfgInit: primary/secondary ant 0/1
0x1300 = 00064300
Rcv Wcid(1) AddBAReq
Start Seq = 00000000
imx-fb imx-fb.0: PreserveUBootFramebuffer(4): xres=800, yres=480 [do _update_lcdc]
backlight ed2.0-bl.0: ramp brightness from 083 to 000 delay 1 [sync]
backlight ed2.0-bl.0: ramp brightness from 083 to 000 delay 1 [done]
backlight ed2.0-bl.0: ramp brightness from 000 to 100 delay 15 [sync]
backlight ed2.0-bl.0: ramp brightness from 000 to 100 delay 15 [done]
eth0: Freescale FEC PHY driver [Generic PHY] (mii_bus:phy_addr=1:10, irq=-1)
Rcv Wcid(1) AddBAReq
Start Seq = 00000000
backlight ed2.0-bl.0: ramp brightness from 083 to 000 delay 1 [sync]
backlight ed2.0-bl.0: ramp brightness from 083 to 000 delay 1 [done]
backlight ed2.0-bl.0: ramp brightness from 000 to 100 delay 15 [sync]
backlight ed2.0-bl.0: ramp brightness from 000 to 100 delay 15 [done]
backlight ed2.0-bl.0: ramp brightness from 083 to 000 delay 1 [sync]
backlight ed2.0-bl.0: ramp brightness from 083 to 000 delay 1 [done]
backlight ed2.0-bl.0: ramp brightness from 000 to 100 delay 15 [sync]
backlight ed2.0-bl.0: ramp brightness from 000 to 100 delay 15 [done]
Indicate_Legacy_Packet():flush reordering_timeout_mpdus! RxWI->Flags=128, pRxWI.TID=0,                                                                                           RxD->AMPDU=0!
186, flush one!
eneco-001:~#
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Toon firmware: issues (and solutions)

Post by marcelr »

@klaphekje
That's an awfully quiet kernel module.
But anyway, it loads, so my hunch was wrong.

All the flashing seems to happen in the next line in the script, which is not entirely clear to me yet (this is top-notch streamline editing ;-)).

Code: Select all

DEV_FW="`sed /proc/mtd -r -n -e 's,^(mtd.): 00008000 00008000 "zwave300"$,/dev/\1,p'`"
Will need to dig a bit deeper, on a running toon. Will get back to you.

BTW is your toon's zwave functionality OK? This firmware dates back to 2014 at least, so there's no real need to upgrade ...
klaphekje
Starting Member
Starting Member
Posts: 36
Joined: Sat Oct 08, 2016 10:05 pm

Re: Toon firmware: issues (and solutions)

Post by klaphekje »

@Marcelr, Thanks.

My knowledge if this stuff is far to little to even understand it :P
Te be honest i don't know where is update comes from. I ran "opkg upgrade" and it exited with the error mentioned earlier. Since that update i cannot get a connection with the meteradapter anymore.
I don't need or even use the zwave functionality of Toon exept for the meteradapter.
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Toon firmware: issues (and solutions)

Post by marcelr »

I got a bit further (on an old machine, with an old kernel and modules).

On succesful loading, the kernel module zwave300 should give the following line in the syslog (visible using dmesg):

Code: Select all

zwave300 spi0.1: zwave (32 KiB)
The line

Code: Select all

DEV_FW="`sed /proc/mtd -r -n -e 's,^(mtd.): 00008000 00008000 "zwave300"$,/dev/\1,p'`"

in the postinstall script edits the file /proc/mtd:

Code: Select all

~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00080000 00020000 "u-boot-env"
mtd1: 00180000 00020000 "splash-image"
mtd2: 00300000 00020000 "kernel"
mtd3: 00300000 00020000 "kernel-backup"
mtd4: 07700000 00020000 "rootfs"
and adds a line for /dev/mtd5:

Code: Select all

~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00080000 00020000 "u-boot-env"
mtd1: 00180000 00020000 "splash-image"
mtd2: 00300000 00020000 "kernel"
mtd3: 00300000 00020000 "kernel-backup"
mtd4: 07700000 00020000 "rootfs"
mtd5: 00008000 00008000 "zwave300"
The kernel driver zwave300 takes care of the actual attachment of /dev/mtd5 to the writeable flash. It is only needed for firmware upgrading (I have a toon with the module zwave300 removed, and zwave functionality is just fine :-) ).
/dev/mtd5 contains an image of the zwave firmware, its size is 0x8000 bytes, or 32kiB. It probably resides on the zwave controller inside toon.

After succesful completion of the command above (DEV_FW= ...), environment variable DEV_FW is:

Code: Select all

~# echo $DEV_FW
/dev/mtd5
You can then dump the data from this device using dd (spaces or lack thereof are significant):

Code: Select all

dd if=/dev/mtd5 of=zwave.img bs=32k count=1
which gives a binary file of 32kiB, stored in zwave.img
You can compare this image with the firmware image in /HCBv2/data//firmware_zwave_ctrlr/4.55-serialapi_controller_static_norep_noflirs_nomr_ZW030x_EU.bin.
I did that by converting them to ascii text and then use diff to spot the difference. In my case, there was no difference apart from a bunch of 0xff bytes extra at the far end of zwave.img. Typically, that's a non-written part of the flash (all ones).

It's a long story. To check where you go wrong, I would repeat the commands I have sketched in this post, and see where the difference occurs.
michel30
Member
Member
Posts: 286
Joined: Fri Aug 25, 2017 4:42 pm

Re: Toon firmware: issues (and solutions)

Post by michel30 »

Hello All,

I was updating the Toon manual from 4.9 to 4.10
Toon is now running on 4.10 but it failed on some package

for example: happ-pwrusage_1.674-master_qb2

Upgrading happ-pwrusage on root from 1.665-ene-master to 1.674-master...
Collected errors:
* satisfy_dependencies_for: Cannot satisfy the following dependencies for happ-pwrusage:
* qmf-tenantize *
* opkg_install_cmd: Cannot install package happ-pwrusage.

I have some other package with the same error.

How can I get this package installed?
I have these package under /mnt/data/update and with opkg install *.ipk they will not install , always the same error message.

Thanks for your help.
klaphekje
Starting Member
Starting Member
Posts: 36
Joined: Sat Oct 08, 2016 10:05 pm

Re: Toon firmware: issues (and solutions)

Post by klaphekje »

Hi Marcel,
Strange, i can't get that far. It seems that the line "DEV_FW..." has no apparent effect. Therefore i can't dump the contents of mtd5.

Code: Select all

eneco-001:~# modprobe -r zwave300
eneco-001:~# modprobe zwave300
eneco-001:~# DEV_FW="`sed /proc/mtd -r -n -e 's,^(mtd.): 00008000 00008000 "zwave300"$,/dev/\1,p'`"
eneco-001:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00080000 00020000 "u-boot-env"
mtd1: 00180000 00020000 "splash-image"
mtd2: 00300000 00020000 "kernel"
mtd3: 00300000 00020000 "kernel-backup"
mtd4: 07700000 00020000 "rootfs"
eneco-001:~# echo $DEV_FW

eneco-001:~# dmesg
Linux version 2.6.36-R10-h27 (jbraam@dvl) (gcc version 4.5.3 20110223 (prerelease) (GCC) ) #1 PREEMPT Tue Oct 25 20:03:05 CEST 2016
CPU: ARM926EJ-S [41069264] revision 4 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: Prodrive B.V ED2.0
Memory policy: ECC disabled, Data cache writeback
On node 0 totalpages: 32768
free_area_init_node: node 0, pgdat c03a119c, node_mem_map c03c5000
  Normal zone: 256 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 32512 pages, LIFO batch:7
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
Kernel command line: ubi.mtd=4 root=ubi0:rootfs rw rootfstype=ubifs mtdparts=mxc_nand:512K@0x00100000(u-boot-env)ro,1536K(splash-image),3M(kernel),3M(kernel-backup),119M(rootfs) console=ttymxc0,115200 mem=128M lpj=999424 lcd=TDA-WVGA0700F00048
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 128MB = 128MB total
Memory: 126092k/126092k available, 4980k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xffa00000 - 0xffe00000   (   4 MB)
    vmalloc : 0xc8800000 - 0xf4000000   ( 696 MB)
    lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .init : 0xc0008000 - 0xc0022000   ( 104 kB)
      .text : 0xc0022000 - 0xc0367000   (3348 kB)
      .data : 0xc037e000 - 0xc03a17a0   ( 142 kB)
Hierarchical RCU implementation.
        RCU-based detection of stalled CPUs is disabled.
        Verbose stalled-CPUs detection is disabled.
NR_IRQS:272
MXC IRQ initialized
MXC GPIO hardware
Console: colour dummy device 80x30
Calibrating delay loop (skipped) preset value.. 199.88 BogoMIPS (lpj=999424)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
Configured for LCD: TDA-WVGA0700F00048
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Switching to clocksource mxc_timer1
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
msgmni has been set to 246
io scheduler noop registered (default)
imx-fb imx-fb.0: PreserveUBootFramebuffer(1): xres=800, yres=480 [skip _update_lcdc]
imx-fb imx-fb.0: PreserveUBootFramebuffer(2): xres=800, yres=480 [skip _update_lcdc]
Console: switching to colour frame buffer device 100x30
imx-fb imx-fb.0: fb0: DISP0 BG fb device registered successfully.
imx-fb imx-fb.0: PreserveUBootFramebuffer(3): xres=800, yres=480 [skip _update_lcdc]
imx-fb imx-fb.0: fb1: DISP0 FG fb device registered successfully.
Serial: IMX driver
imx-uart.0: ttymxc0 at MMIO 0x1000a000 (irq = 20) is a IMX
console [ttymxc0] enabled
imx-uart.1: ttymxc1 at MMIO 0x1000b000 (irq = 19) is a IMX
imx-uart.2: ttymxc2 at MMIO 0x1000c000 (irq = 18) is a IMX
NAND device: K9F1G08U0E detected, disabling sub-page writes
NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)
Scanning device for bad blocks
RedBoot partition parsing not available
5 cmdlinepart partitions found on MTD device mxc_nand
Creating 5 MTD partitions on "mxc_nand":
0x000000100000-0x000000180000 : "u-boot-env"
0x000000180000-0x000000300000 : "splash-image"
0x000000300000-0x000000600000 : "kernel"
0x000000600000-0x000000900000 : "kernel-backup"
0x000000900000-0x000008000000 : "rootfs"
UBI: attaching mtd4 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    126976 bytes
UBI: smallest flash I/O unit:    2048
UBI: VID header offset:          2048 (aligned 2048)
UBI: data offset:                4096
UBI: max. sequence number:       95378
UBI: attached mtd4 to ubi0
UBI: MTD device name:            "rootfs"
UBI: MTD device size:            119 MiB
UBI: number of good PEBs:        952
UBI: number of bad PEBs:         0
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     1
UBI: available PEBs:             0
UBI: total number of reserved PEBs: 952
UBI: number of PEBs reserved for bad PEB handling: 9
UBI: max/mean erase counter: 348/99
UBI: image sequence number:  1706006230
UBI: background thread "ubi_bgt0d" started, PID 309
at25 spi0.0: rdsr --> 255 (ff)
at25 spi0.0: probe err -6
spi_imx spi_imx.0: probed
FEC Ethernet Driver
fec_enet_mii_bus: probed
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
mxc-ehci mxc-ehci.0: initializing i.MX USB Controller
mxc-ehci mxc-ehci.0: portsc setup 1: 0x80000000
mxc-ehci mxc-ehci.0: Work around for USB enabled
timeout polling for ULPI device
mxc-ehci mxc-ehci.0: unable to init transceiver, probably missing
mxc-ehci mxc-ehci.2: initializing i.MX USB Controller
mxc-ehci mxc-ehci.2: portsc setup 1: 0x80000000
mxc-ehci mxc-ehci.2: Work around for USB enabled
mxc-ehci mxc-ehci.2: Freescale On-Chip EHCI Host Controller
mxc-ehci mxc-ehci.2: new USB bus registered, assigned bus number 1
mxc-ehci mxc-ehci.2: irq 55, io mem 0x10024400
mxc-ehci mxc-ehci.2: USB 2.0 started, EHCI 1.00
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: Freescale On-Chip EHCI Host Controller
usb usb1: Manufacturer: Linux 2.6.36-R10-h27 ehci_hcd
usb usb1: SerialNumber: mxc-ehci.2
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usbserial
usbserial: USB Serial Driver core
input: TSC2007 Touchscreen as /devices/virtual/input/input0
rtc-isl1208 1-006f: chip found, driver version 0.3
rtc-isl1208: dev (254:0)
rtc-isl1208 1-006f: rtc core: registered rtc-isl1208 as rtc0
i2c /dev entries driver
tmp431 0-004c: Could not read configuration register (-5)
imx2-wdt imx2-wdt.0: IMX2+ Watchdog Timer enabled. timeout=60s (nowayout=0)
Registered led device: led0
Registered led device: led1
adt7410 0-0048: adt7410 temperature sensor registered.
adt7410 0-0049: adt7410 temperature sensor registered.
nf_conntrack version 0.5.0 (1970 buckets, 7880 max)
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP cubic registered
NET: Registered protocol family 17
Bridge firewalling registered
rtc-isl1208 1-006f: setting system clock to 2018-01-06 13:07:36 UTC (1515244056)
UBIFS: mounted UBI device 0, volume 0, name "rootfs"
UBIFS: file system size:   117833728 bytes (115072 KiB, 112 MiB, 928 LEBs)
UBIFS: journal size:       9023488 bytes (8812 KiB, 8 MiB, 72 LEBs)
UBIFS: media format:       w4/r0 (latest is w4/r0)
UBIFS: default compressor: lzo
UBIFS: reserved for root:  0 bytes (0 KiB)
VFS: Mounted root (ubifs filesystem) on device 0:13.
Freeing init memory: 104K
usb 1-1: new high speed USB device using mxc-ehci and address 2
usb 1-1: New USB device found, idVendor=148f, idProduct=5370
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1: Product: 802.11 n WLAN
usb 1-1: Manufacturer: Ralink
usb 1-1: SerialNumber: 1.0
usbcore: registered new interface driver r871x_usb_drv
usbcore: registered new interface driver rt2870
eth0: Freescale FEC PHY driver [Generic PHY] (mii_bus:phy_addr=1:10, irq=-1)
(Efuse for 3062/3562/3572) Size=0x2d [2d0-2fc]
Key1Str is Invalid key length(0) or Type(0)
Key2Str is Invalid key length(0) or Type(0)
Key3Str is Invalid key length(0) or Type(0)
Key4Str is Invalid key length(0) or Type(0)
NVM is Efuse and its size =2d[2d0-2fc]
phy mode> Error! The chip does not support 5G band 15!
RTMPSetPhyMode: channel is out of range, use first channel=1
(Efuse for 3062/3562/3572) Size=0x2d [2d0-2fc]
AntCfgInit: primary/secondary ant 0/1
0x1300 = 00064300
Rcv Wcid(1) AddBAReq
Start Seq = 00000000
imx-fb imx-fb.0: PreserveUBootFramebuffer(4): xres=800, yres=480 [do _update_lcdc]
backlight ed2.0-bl.0: ramp brightness from 083 to 000 delay 1 [sync]
backlight ed2.0-bl.0: ramp brightness from 083 to 000 delay 1 [done]
backlight ed2.0-bl.0: ramp brightness from 000 to 100 delay 15 [sync]
backlight ed2.0-bl.0: ramp brightness from 000 to 100 delay 15 [done]
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Toon firmware: issues (and solutions)

Post by marcelr »

Hmm ..
Seems like you zwave driver is corrupted.
Or do you see this after modprobe'ing zwave300:

Code: Select all

zwave300 spi0.1: zwave (32 KiB)

??

I think this bit is essential for the firmware upload to work. So, before anything else, please make sure that the driver module is loaded, and functional. So both lsmod and dmesg should report something about zwave. See my previous post on this subject.
The zwave300 driver hasn't changed since its first release in 2012 or so. It is located in
/lib/modules/<kernel-version>/kernel/drivers/prodrive/zwave300_driver_r01/zwave300.ko,
and should have a size of 18424 bytes.
michel30
Member
Member
Posts: 286
Joined: Fri Aug 25, 2017 4:42 pm

Re: Toon firmware: issues (and solutions)

Post by michel30 »

Hello,

I also checked my size of this file with command: ls -lh zwave300.ko this is the result: 10.2K Oct 25 2016 zwave300.ko
michel30
Member
Member
Posts: 286
Joined: Fri Aug 25, 2017 4:42 pm

Re: Toon firmware: issues (and solutions)

Post by michel30 »

michel30 wrote:Hello All,

I was updating the Toon manual from 4.9 to 4.10
Toon is now running on 4.10 but it failed on some package

for example: happ-pwrusage_1.674-master_qb2

Upgrading happ-pwrusage on root from 1.665-ene-master to 1.674-master...
Collected errors:
* satisfy_dependencies_for: Cannot satisfy the following dependencies for happ-pwrusage:
* qmf-tenantize *
* opkg_install_cmd: Cannot install package happ-pwrusage.

I have some other package with the same error.

How can I get this package installed?
I have these package under /mnt/data/update and with opkg install *.ipk they will not install , always the same error message.

Thanks for your help.

To comeback on the issue above:

I did now opkg --force-depends install happ-pwrusage_1.674-master_qb2.ipk
Installing happ-pwrusage (1.674-master) to root...
Configuring happ-pwrusage.
//usr/lib/opkg/info/happ-pwrusage.postinst: line 4: qmf-tenantize.sh: not found
Collected errors:
* satisfy_dependencies_for: Cannot satisfy the following dependencies for happ-pwrusage:
* qmf-tenantize *

So I did a vi to //usr/lib/opkg/info/happ-pwrusage.postinst and on line 4 you see:

Code: Select all

#!/bin/sh
# create startup file with touch: this leaves possible contents of "0" intact
touch $D/HCBv2/etc/start.d/happ_pwrusage
[ "$D" ] || qmf-tenantize.sh

exit 0 # all OK
so I did a search for qmf-tenantize.sh but this file in not on my Toon.
Does somebody has this file? or could say where to place it and what is in there?

Thanks.
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Toon firmware: issues (and solutions)

Post by marcelr »

michel30 wrote: I also checked my size of this file with command: ls -lh zwave300.ko this is the result: 10.2K Oct 25 2016 zwave300.ko
Apparently it has changed in FW 4.3.20. Missed that one, thank you.

EDIT: I just rebuilt this module, and end up with a 10.2kiB module as well. Apparently, earlier versions had some sort of debugging code inside. Shouldn't make a difference in terms of functionality, the underlying code for generating the module hasn't changed.
iMars
Starting Member
Starting Member
Posts: 17
Joined: Tue Nov 17, 2015 10:47 pm

Re: Toon firmware: issues (and solutions)

Post by iMars »

balans wrote:
balans wrote:It maybe my messed up installation but if lost happ_thermstat i end up forbidden 403
it used to work like a charm and i really need it for my domoticz setup.
Did i missed something?
resolving my problem
here my fix

edit qmf_release.xml with <item>happ_thermstat</item>

Code: Select all

        <hcb_web>
                <defaultEntry>/hdrv_zwave/</defaultEntry>
                <enforceWhitelist>1</enforceWhitelist>
                <whitelist>
                        <item>hdrv_zwave</item>
                        <item>hdrv_hue</item>
                        <item>happ_thermstat</item>
                </whitelist>
        </hcb_web>
with this extra line my happ_thermstat works again like before
This solved my issue :D I couldn't change the temperature of Toon via http (the whole reason for me to root Toon 8) ). The Fix 403-Forbidden error is probably old (correct me if I'm wrong). I don't have a "/HCBv2/config/hcb_project.xml", my listing is:

Code: Select all

eneco-001-016676:~# ls -la /HCBv2/config/
drwxr-xr-x    3 root     root          2384 Jan  7 13:56 .
drwxr-xr-x    5 root     root           352 Jan  5 16:55 ..
-rw-------    1 root     root          1105 Jan  5 16:59 config_flash_gui.xml
-rw-------    1 root     root          1135 Jan  5 16:59 config_flash_qwidget_diy.xml
-rw-------    1 root     root           112 Jan 26  2013 config_flash_qwidget_note.xml
-rw-------    1 root     root           112 Jan 26  2013 config_flash_widget_diag.xml
-rw-------    1 root     root           112 Jan 26  2013 config_flash_widget_settings.xml
-rw-------    1 root     root          1431 Jan  5 16:59 config_happ_eventmgr.xml
-rw-------    1 root     root          3001 Jan  5 16:59 config_happ_kpi.xml
-rw-------    1 root     root         30094 Jan  7 13:56 config_happ_pwrusage.xml
-rw-------    1 root     root          4461 Jan  7 13:45 config_happ_scsync.xml
-rw-------    1 root     root           524 Jan  5 16:59 config_happ_smartplug.xml
-rw-------    1 root     root           112 Jan 26  2013 config_happ_telmi.xml
-rw-------    1 root     root         11504 Jan  7 13:48 config_happ_thermstat.xml
-rw-------    1 root     root          7493 Jan  7 13:45 config_happ_usermsg.xml
-rw-------    1 root     root           766 Jan  5 16:59 config_happ_weather.xml
-rw-------    1 root     root           140 Jan  5 16:59 config_hcb_config.xml
-rw-------    1 root     root           140 Jan  5 16:59 config_hcb_core.xml
-rw-------    1 root     root          1203 Jan  5 16:59 config_hcb_netcon.xml
-rw-------    1 root     root         24646 Jan  7 11:20 config_hcb_rrd.xml
-rw-------    1 root     root           140 Jan  5 16:59 config_hcb_web.xml
-rw-------    1 root     root           759 Jan  7 13:24 config_hdrv_hue.xml
-rw-------    1 root     root           637 Jan  5 17:00 config_hdrv_hue.xml.bak
-rw-r--r--    1 root     root           761 Jan  7 13:23 config_hdrv_hue.xml.bak2
-rw-------    1 root     root          6995 Jan  7 13:26 config_hdrv_p1.xml
-rw-------    1 root     root          3893 Jan  6 18:32 config_hdrv_zwave.xml
-rw-------    1 root     root          1594 Jan  7 11:21 config_qt-gui.xml
drwxr-xr-x    2 root     root           160 Jun 22  2017 dropbox
-rw-r--r--    1 root     root           235 Jan  7 13:45 wizard-state.xml
eneco-001-016676:~# 
In "/qmf/etc" I have the "qmf_release.xml":

Code: Select all

eneco-001-016676:~# ls -la /qmf/etc/
drwxr-xr-x    5 1051     513            728 Jan  5 16:55 .
drwxr-xr-x   12 root     root          1056 Jan  5 16:55 ..
lrwxrwxrwx    1 root     root            24 Jan  5 16:55 env -> /mnt/persist/qmf/etc/env
drwxr-xr-x    2 1129     513            320 Jan  5 16:54 hdrv_p1
drwxr-xr-x    4 1051     513            432 Jan  5 16:54 lighttpd
-rw-r--r--    1 www-data www-data      1694 Nov 28 13:18 qmf_hardware.xml
-rw-r--r--    1 www-data www-data     22442 Jan  7 13:13 qmf_release.xml
-rw-r--r--    1 1129     513           1832 Nov  7 07:20 qmf_tenant.xml
drwxr-xr-x    2 root     root          1360 Jan  5 16:54 start.d
-rw-r--r--    1 1129     513            540 Nov  7 07:20 tenant-dict.json
eneco-001-016676:~# 
And there is the new location of "hcb_web":

Code: Select all

        <hcb_web>
                <defaultEntry>/hdrv_zwave/</defaultEntry>
                <enforceWhitelist>1</enforceWhitelist>
                <whitelist>
                        <item>hdrv_zwave</item>
                        <item>hdrv_hue</item>
                        <item>happ_thermstat</item>
                </whitelist>
        </hcb_web>
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Toon firmware: issues (and solutions)

Post by marcelr »

Has been fixed in toonstore-1.1.0 :-)
msv
Starting Member
Starting Member
Posts: 13
Joined: Mon Mar 15, 2010 12:58 pm

Re: Toon firmware: issues (and solutions)

Post by msv »

hi i wanted to upgrade from 4.8.25 to 4.10 (Toon is rooted) and i have open the openvpn to SC and removed toonstore but there is nothing to update.

The hosts file contains the following;

Code: Select all

127.0.0.1               localhost.localdomain           localhost               eneco-001-304331
172.29.48.1             feed.hae.int            feed
Also i try the following opkg update and i get the following output

Code: Select all

Downloading http://files.domoticaforum.eu/uploads/Toon/apps/wastecollection-2.6/Packages.gz.
Inflating http://files.domoticaforum.eu/uploads/Toon/apps/wastecollection-2.6/Packages.gz.
Updated list of available packages in /var/lib/opkg/tsc1.
Downloading http://files.domoticaforum.eu/uploads/Toon/apps/wastecollection-2.6/Packages.sig.
Signature check failed.
Remove wrong Signature file.
Downloading http://files.domoticaforum.eu/uploads/Toon/apps/../pkgs/wget-1.12/Packages.gz.
Inflating http://files.domoticaforum.eu/uploads/Toon/apps/../pkgs/wget-1.12/Packages.gz.
Updated list of available packages in /var/lib/opkg/tsc2.
Downloading http://files.domoticaforum.eu/uploads/Toon/apps/../pkgs/wget-1.12/Packages.sig.
Signature check failed.
Remove wrong Signature file.
Downloading http://files.domoticaforum.eu/uploads/Toon/apps/../pkgs/cron-3.0/Packages.gz.
Inflating http://files.domoticaforum.eu/uploads/Toon/apps/../pkgs/cron-3.0/Packages.gz.
Updated list of available packages in /var/lib/opkg/tsc3.
Downloading http://files.domoticaforum.eu/uploads/Toon/apps/../pkgs/cron-3.0/Packages.sig.
Signature check failed.
Remove wrong Signature file.
Downloading http://files.domoticaforum.eu/uploads/Toon/apps/../pkgs/tsc-certificates-1.0.1/Packages.gz.
Inflating http://files.domoticaforum.eu/uploads/Toon/apps/../pkgs/tsc-certificates-1.0.1/Packages.gz.
Updated list of available packages in /var/lib/opkg/tsc4.
Downloading http://files.domoticaforum.eu/uploads/Toon/apps/../pkgs/tsc-certificates-1.0.1/Packages.sig.
Signature check failed.
Remove wrong Signature file.
Someone anny idea?
lxz
Starting Member
Starting Member
Posts: 16
Joined: Mon Nov 13, 2017 12:45 pm

Re: Toon firmware: issues (and solutions)

Post by lxz »

Yes, you need to add an url to /etc/opkg/tsc-feed.conf. Not exactly sure which, but IIRC it is this line:

Code: Select all

src/gz base http://feed.hae.int/feeds/qb2/ene/4.10.6 
Not the most elegant way, but it worked for me :)
Post Reply

Return to “Toon Firmware”