Debug firmware for HDR Fox T2 - working?

bottletop

Active Member
So I thought it would be a good idea to flash a HDR to the debug firmware for some diagnostics.
I found the debug kernels from the page https://wiki.hummy.tv/wiki/Firmware_Downloads

The odd thing is that after the firmware update, the HDR goes into a boot loop. It seems to just loop around the Humax loader screen and nothing more.
All 3 of the kernel debug CFW downloads seem to loop.
I have tried all 3 on 2 HDRs, same effect.
I have tried changing the loaders to see if makes a difference - it didn't.

I have since re-flashed to the latest CFW and all is fine now.
So if anyone has some spare time - can they verify they can use (or flash to) a HDR that has CFW with Debug Kernel?

Background info - I wanted try the debug kernel to see if may help diagnose a HDR that exhibits green screen issue. I tried these files with both a faulty HDR and a working HDR. I can't get around the boot loop issue.
 

/df

Well-Known Member
The same problem was reported here which was after the release of 3.13k. Maybe the latest debug kernels have never worked, or some additional config is needed.
 
OP
bottletop

bottletop

Active Member
The same problem was reported here which was after the release of 3.13k. Maybe the latest debug kernels have never worked, or some additional config is needed.
Thanks for that - I didn't search properly before posting.
I managed to find one that booted ok, but it doesn't show anything of significance regarding the HDMI output
HDR-Fox T2 1.03.12/3.10

# dmesg
[4294667.296000] Primary instruction cache 32kB, physically tagged, 2-way, linesize 64 bytes.
[4294667.296000] Primary data cache 64kB, 4-way, linesize 64 bytes.
[4294667.296000] Synthesized TLB refill handler (23 instructions).
[4294667.296000] Synthesized TLB load handler fastpath (37 instructions).
[4294667.296000] Synthesized TLB store handler fastpath (37 instructions).
[4294667.296000] Synthesized TLB modify handler fastpath (36 instructions).
[4294667.296000] PID hash table entries: 2048 (order: 11, 8192 bytes)
[4294667.296000] Found MIPS counter frequency: 203 Mhz
[4294667.296000] Using 202.501 MHz high precision timer.
[4294667.296000] Console: colour dummy device 80x25
[4294667.297000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[4294667.298000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[4294667.309000] Memory: 124416k/262144k available (3129k kernel code, 137568k reserved, 739k data, 160k init, 0k highmem)
[4294667.310000] Calibrating delay loop... 402.43 BogoMIPS (lpj=201216)
[4294667.331000] Mount-cache hash table entries: 512
[4294667.332000] Checking for 'wait' instruction... available.
[4294667.334000] plat_prepare_cpus: ENABLING 2nd Thread...
[4294667.335000] TP0: prom_boot_secondary: Kick off 2nd CPU...
[4294667.336000] CPU revision is: 0002a044
[4294667.336000] FPU revision is: 00130001
[4294667.336000] Primary instruction cache 32kB, physically tagged, 2-way, linesize 64 bytes.
[4294667.336000] Primary data cache 64kB, 4-way, linesize 64 bytes.
[4294667.336000] Synthesized TLB refill handler (23 instructions).
[4294667.336000] Calibrating delay loop... 404.48 BogoMIPS (lpj=202240)
[4294667.357000] Brought up 2 CPUs
[4294667.434000] migration_cost=1000
[4294667.440000] NET: Registered protocol family 16
[4294667.441000] registering PCI controller with io_map_base unset
[4294667.442000] registering PCI controller with io_map_base unset
[4294667.443000] SCSI subsystem initialized
[4294667.444000] usbcore: registered new driver usbfs
[4294667.445000] usbcore: registered new driver hub
[4294667.446000] NET: Registered protocol family 2
[4294667.459000] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[4294667.460000] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[4294667.461000] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[4294667.462000] TCP: Hash tables configured (established 8192 bind 4096)
[4294667.463000] TCP reno registered
[4294667.464000] brcm-pm: disabling power to USB block
[4294667.465000] brcm-pm: disabling power to ENET block
[4294667.466000] brcm-pm: disabling power to SATA block
[4294667.468000] squashfs: version 3.2-r2 (2007/01/15) Phillip Lougher
[4294667.469000] NTFS driver 2.1.27 [Flags: R/O].
[4294667.470000] JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
[4294667.471000] io scheduler noop registered
[4294667.472000] io scheduler anticipatory registered (default)
[4294667.473000] io scheduler deadline registered
[4294667.474000] io scheduler cfq registered
[4294667.478000] Serial: 8250/16550 driver $Revision: 1.90 $ 3 ports, IRQ sharing disabled
[4294667.479000] serial8250: ttyS0 at MMIO 0x0 (irq = 22) is a 16550A
[4294667.480000] serial8250: ttyS1 at MMIO 0x0 (irq = 66) is a 16550A
[4294667.481000] serial8250: ttyS2 at MMIO 0x0 (irq = 67) is a 16550A
[4294667.482000] loop: loaded (max 8 devices)
[4294667.483000] brcm-pm: enabling power to ENET block
[4294667.484000] Broadcom BCM7413 P21 Ethernet Network Device v2.0 Mar 11 2016 23:36:26
[4294667.489000] Config Internal PHY Through MDIO: Auto-negotiation timed-out
[4294669.563000] : 10 MB Half-Duplex (assumed)
[4294669.564000] libata version 2.00 loaded.
[4294669.564000] brcm-pm: enabling power to SATA block
[4294669.565000] sata_svw 0000:01:00.0: version 4.0
[4294669.592000] ata1: SATA max UDMA/133 cmd 0xB0510000 ctl 0xB0510020 bmdma 0xB0510030 irq 42
[4294669.593000] ata2: SATA max UDMA/133 cmd 0xB0510100 ctl 0xB0510120 bmdma 0xB0510130 irq 42
[4294669.594000] scsi0 : sata_svw
[4294669.898000] ata1: SATA link down (SStatus 4 SControl 300)
[4294669.935000] ATA: abnormal status 0x7F on port 0xb051001c
[4294669.940000] scsi1 : sata_svw
[4294670.244000] ata2: SATA link down (SStatus 4 SControl 300)
[4294670.280000] ATA: abnormal status 0x7F on port 0xb051011c
[4294670.286000] BCM97XXX flash device: 0x02000000 @ 0x1e000000
[4294670.287000] Broadcom 9xxxx mapped flash: Found 1 x16 devices at 0x0 in 16-bit bank
[4294670.288000] Intel/Sharp Extended Query Table at 0x010A
[4294670.289000] Intel/Sharp Extended Query Table at 0x010A
[4294670.290000] Intel/Sharp Extended Query Table at 0x010A
[4294670.291000] Intel/Sharp Extended Query Table at 0x010A
[4294670.292000] Intel/Sharp Extended Query Table at 0x010A
[4294670.293000] Using buffer write method
[4294670.294000] cfi_cmdset_0001: Erase suspend on write enabled
[4294670.295000] erase region 0: offset=0x0,size=0x0,blocks=32768
[4294670.295000] erase region 1: offset=0x20000,size=0x0,blocks=131072
[4294670.295000] Creating 6 MTD partitions on "Broadcom 9xxxx mapped flash":
[4294670.296000] 0x0000000000000000-0x0000000001800000 : "rootfs"
[4294670.297000] 0x0000000001800000-0x0000000001a00000 : "humaxtv_db"
[4294670.298000] 0x0000000001a00000-0x0000000001c00000 : "backup"
[4294670.299000] 0x0000000001c00000-0x0000000001da0000 : "cfe"
[4294670.300000] 0x0000000001da0000-0x0000000001e00000 : "reserve0"
[4294670.301000] 0x0000000001e00000-0x0000000002000000 : "vmlinux"
[4294670.302000] physmap platform flash device: 02000000 at 1e000000
[4294670.303000] physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
[4294670.304000] Intel/Sharp Extended Query Table at 0x010A
[4294670.305000] Intel/Sharp Extended Query Table at 0x010A
[4294670.306000] Intel/Sharp Extended Query Table at 0x010A
[4294670.307000] Intel/Sharp Extended Query Table at 0x010A
[4294670.308000] Intel/Sharp Extended Query Table at 0x010A
[4294670.309000] Using buffer write method
[4294670.310000] cfi_cmdset_0001: Erase suspend on write enabled
[4294670.311000] erase region 0: offset=0x0,size=0x0,blocks=32768
[4294670.311000] erase region 1: offset=0x20000,size=0x0,blocks=131072
[4294670.311000] cmdlinepart partition parsing not available
[4294670.312000] RedBoot partition parsing not available
[4294670.313000] usbmon: debugfs is not available
[4294670.314000] ehci_hcd_brcm_init: Initializing 2 EHCI controller(s)
[4294670.315000] brcm-pm: enabling power to USB block
[4294670.316000] 10 Dec 2004 USB 2.0 'Enhanced' Host Controller (EHCI) Driver (EHCI-brcm-0)
[4294670.317000] drivers/usb/host/ehci-brcm.c: starting brcm EHCI USB Controller
[4294670.318000] - USB h/w setup mode <N>
[4294670.318000] - USB power enable set for active HIGH mode
[4294670.319000] brcm-ehci brcm-ehci.0: BRCM EHCI
[4294670.320000] brcm-ehci brcm-ehci.0: new USB bus registered, assigned bus number 1
[4294670.321000] brcm-ehci brcm-ehci.0: irq 62, io mem 0x10480300
[4294670.322000] brcm-ehci brcm-ehci.0: USB 0.0 started, EHCI 1.00, driver 10 Dec 2004
[4294670.323000] usb usb1: configuration #1 chosen from 1 choice
[4294670.324000] hub 1-0:1.0: USB hub found
[4294670.325000] hub 1-0:1.0: 2 ports detected
[4294670.427000] 10 Dec 2004 USB 2.0 'Enhanced' Host Controller (EHCI) Driver (EHCI-brcm-1)
[4294670.428000] drivers/usb/host/ehci-brcm.c: starting brcm EHCI USB Controller
[4294670.429000] brcm-ehci-1 brcm-ehci-1.1: BRCM EHCI
[4294670.430000] brcm-ehci-1 brcm-ehci-1.1: new USB bus registered, assigned bus number 2
[4294670.431000] brcm-ehci-1 brcm-ehci-1.1: irq 57, io mem 0x10480500
[4294670.432000] brcm-ehci-1 brcm-ehci-1.1: USB 0.0 started, EHCI 1.00, driver 10 Dec 2004
[4294670.433000] usb usb2: configuration #1 chosen from 1 choice
[4294670.434000] hub 2-0:1.0: USB hub found
[4294670.435000] hub 2-0:1.0: 2 ports detected
[4294670.537000] ohci_hcd_brcm_init: Initializing 2 OHCI controller(s)
[4294670.538000] 2005 April 22 USB 1.1 'Open' Host Controller (OHCI) Driver (OHCI-brcm-0)
[4294670.539000] drivers/usb/host/ohci-brcm.c: starting brcm OHCI USB Controller
[4294670.540000] - Resetting at b0480408
[4294670.541000] <-- brcm_start_hc
[4294670.542000] brcm-ohci-0 brcm-ohci-0.0: BRCM OHCI
[4294670.543000] brcm-ohci-0 brcm-ohci-0.0: new USB bus registered, assigned bus number 3
[4294670.544000] brcm-ohci-0 brcm-ohci-0.0: irq 63, io mem 0x10480400
[4294670.600000] usb usb3: configuration #1 chosen from 1 choice
[4294670.601000] hub 3-0:1.0: USB hub found
[4294670.602000] hub 3-0:1.0: 2 ports detected
[4294670.704000] 2005 April 22 USB 1.1 'Open' Host Controller (OHCI) Driver (OHCI-brcm-1)
[4294670.705000] drivers/usb/host/ohci-brcm.c: starting brcm OHCI USB Controller
[4294670.706000] - Resetting at b0480608
[4294670.707000] <-- brcm_start_hc
[4294670.708000] brcm-ohci-1 brcm-ohci-1.1: BRCM OHCI
[4294670.709000] brcm-ohci-1 brcm-ohci-1.1: new USB bus registered, assigned bus number 4
[4294670.710000] brcm-ohci-1 brcm-ohci-1.1: irq 64, io mem 0x10480600
[4294670.766000] usb usb4: configuration #1 chosen from 1 choice
[4294670.767000] hub 4-0:1.0: USB hub found
[4294670.768000] hub 4-0:1.0: 2 ports detected
[4294670.870000] Initializing USB Mass Storage driver...
[4294670.871000] usbcore: registered new driver usb-storage
[4294670.872000] USB Mass Storage support registered.
[4294670.873000] usbcore: registered new driver usbhid
[4294670.874000] drivers/usb/input/hid-core.c: v2.6:USB HID core driver
[4294671.383000] i8042.c: i8042 controller self test timeout.
[4294671.384000] mice: PS/2 mouse device common for all mice
[4294671.385000] ip_tables: (C) 2000-2006 Netfilter Core Team
[4294671.398000] TCP cubic registered
[4294671.399000] NET: Registered protocol family 1
[4294671.400000] NET: Registered protocol family 17
[4294671.405000] VFS: Mounted root (squashfs filesystem) readonly.
[4294671.406000] Freeing unused kernel memory: 160k freed
[4294671.856000] bcmdriver: module license 'Proprietary' taints kernel.
[4294674.621000] dummy_hcd dummy_hcd: Dummy host controller
[4294674.622000] dummy_hcd dummy_hcd: new USB bus registered, assigned bus number 5
[4294674.632000] usb usb5: configuration #1 chosen from 1 choice
[4294674.640000] hub 5-0:1.0: USB hub found
[4294674.644000] hub 5-0:1.0: 1 port detected
[4294675.002000] usb 5-1: new high speed USB device using dummy_hcd and address 2
[4294675.144000] usb 5-1: configuration #1 chosen from 1 choice
[4294675.155000] scsi2 : SCSI emulation for USB Mass Storage devices
[4294675.165000] usb-storage: device found at 2
[4294675.165000] usb-storage: waiting for device to settle before scanning
[4294680.169000] Vendor: Linux Model: File-Stor Gadget Rev: 0302
[4294680.176000] Type: Direct-Access ANSI SCSI revision: 02
[4294680.203000] SCSI device sda: 128 512-byte hdwr sectors (0 MB)
[4294680.315000] sda: Write Protect is off
[4294680.318000] sda: Mode Sense: 0f 00 00 00
[4294680.319000] sda: assuming drive cache: write through
[4294680.335000] SCSI device sda: 128 512-byte hdwr sectors (0 MB)
[4294680.448000] sda: Write Protect is off
[4294680.451000] sda: Mode Sense: 0f 00 00 00
[4294680.451000] sda: assuming drive cache: write through
[4294680.457000] sda: sda1
[4294680.463000] sda: p1 exceeds device capacity
[4294680.472000] sd 2:0:0:0: Attached scsi disk sda
[4294680.485000] sd 2:0:0:0: Attached scsi generic sg0 type 0
[4294680.499000] usb-storage: device scan complete
[4294681.876000] ext3: No journal on filesystem on sda1
[4294684.000000] ata1: exception Emask 0x10 SAct 0x0 SErr 0x40000 action 0x42 frozen
[4294687.107000] ata1: soft resetting port
[4294687.262000] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[4294687.297000] ata1.00: ATA-8, max UDMA/133, 976773168 sectors: LBA48 NCQ (depth 0/32)
[4294687.300000] ata1.00: configured for UDMA/133
[4294687.304000] ata1: EH complete
[4294688.306000] Vendor: ATA Model: ST3500312CS Rev: SC13
[4294688.313000] Type: Direct-Access ANSI SCSI revision: 05
[4294688.327000] SCSI device sdb: 976773168 512-byte hdwr sectors (500108 MB)
[4294688.335000] sdb: Write Protect is off
[4294688.339000] sdb: Mode Sense: 00 3a 00 00
[4294688.340000] SCSI device sdb: drive cache: write back
[4294688.349000] SCSI device sdb: 976773168 512-byte hdwr sectors (500108 MB)
[4294688.358000] sdb: Write Protect is off
[4294688.362000] sdb: Mode Sense: 00 3a 00 00
[4294688.362000] SCSI device sdb: drive cache: write back
[4294688.367000] sdb: sdb1 sdb2 sdb3
[4294688.414000] sd 0:0:0:0: Attached scsi disk sdb
[4294688.429000] sd 0:0:0:0: Attached scsi generic sg1 type 0
[4294688.545000] kjournald starting. Commit interval 5 seconds
[4294688.553000] EXT3 FS on sdb1, internal journal
[4294688.555000] EXT3-fs: mounted filesystem with ordered data mode.
[4294691.750000] kjournald starting. Commit interval 5 seconds
[4294691.754000] EXT3 FS on sdb2, internal journal
[4294691.755000] EXT3-fs: recovery complete.
[4294691.756000] EXT3-fs: mounted filesystem with ordered data mode.
[4294691.838000] kjournald starting. Commit interval 5 seconds
[4294691.839000] EXT3 FS on sdb3, internal journal
[4294691.840000] EXT3-fs: recovery complete.
[4294691.843000] EXT3-fs: mounted filesystem with ordered data mode.
[4294698.774000] Adding 1048568k swap on /mnt/hd3/.swap0. Priority:-1 extents:266 across:1212004k
[4294716.883000] usb 1-2: new high speed USB device using brcm-ehci and address 2
[4294717.035000] usb 1-2: configuration #1 chosen from 1 choice
[4294717.329000] rtusb init --->
[4294717.348000] usbcore: registered new driver rt2870
[4294718.962000] 0x1300 = 00064300
This is the corresponding humaxtv log that I enabled via the diagnostics menu
#cat humaxtv.log
Inserting nugget.
[nugget]: Wed Nov 16 12:35:03 2011: version 0.99 initialising.
[nugget]: Wed Nov 16 13:35:03 2011: Timezone: BST (3600)
[nugget]: Wed Nov 16 13:35:03 2011: memory segment index 0 (0x10312)
[nugget]: Wed Nov 16 13:35:03 2011: background thread starting.
[nugget]: Wed Nov 16 13:35:03 2011: Loaded crypto key from file.
Loaded crypto key from file.
00 00 00 00 00 00 00 00 00 [n gget]: Wed Nov 16 13:35:03 2011: 00ontrol socket listening on /tmp/..nugget 00 00 00 00 00
-------------------------------------
Initialising IR3 v1.12
IR3 debug: 0
IR3 Mode: 5 (0x10fd)
IR3 Options: 0
Found at +00000000
getplns() = 0x100ab78 (@00000000)
NEXUS_IrInput_Open(00000000, 7fe83aa0, 2aab238c, 7fe83abc) = 01018268
Wed Nov 16 12:35:03 2011 Applying minimum fan speed = 170 (aa)
-------------------------------------
Initialising Dustbin v1.0
Dustbin debug: 0
Dustbin media root: /mnt/hd2/My Video/
Dustbin path: /mnt/hd2/My Video/[Deleted Items]
-------------------------------------
DRV_DSC_Init_Begin
SIOCDELRT failed , ret->-1
route: SIOCADDRT: File exists
[scanFonts:448] [scanFonts:448] [scanFonts:448] [P_MEDIA_CheckValidMediaId] Invalid Media ID.
[DI_MEDIA_MP_GetStreamInfo] Error - Invalid Media Id.
[AP_BrowserManager_Proc:608] [AP_BrowserNetTime_startNetTimeTask:171] [AP_BrowserNetTime_startNetTimeTask:208] ########################################
Domain :.humaxtvportal.com
CertPath :htvdev_portal_ccert_2k_20101106.p12
###### New Cert is Added

IE: IEEE 802.11i/WPA2 Version 1
Group Cipher :
Pairwise Ciphers (1) :
Authentication Suites (1) :

IE: WPA Version 1
Group Cipher :
Pairwise Ciphers (2) :
Authentication Suites (1) :

IE: IEEE 802.11i/WPA2 Version 1
Group Cipher :
Pairwise Ciphers (2) :
Authentication Suites (1) :

IE: IEEE 802.11i/WPA2 Version 1
Group Cipher :
Pairwise Ciphers (1) :
Authentication Suites (1) :

IE: IEEE 802.11i/WPA2 Version 1
Group Cipher :
Pairwise Ciphers (1) :
Authentication Suites (1) :

IE: IEEE 802.11i/WPA2 Version 1
Group Cipher :
Pairwise Ciphers (1) :
Authentication Suites (1) :

IE: WPA Version 1
Group Cipher :
Pairwise Ciphers (2) :
Authentication Suites (1) :

IE: IEEE 802.11i/WPA2 Version 1
Group Cipher :
Pairwise Ciphers (2) :
Authentication Suites (1) :

IE: WPA Version 1
Group Cipher :
Pairwise Ciphers (2) :
Authentication Suites (1) :

IE: IEEE 802.11i/WPA2 Version 1
Group Cipher :
Pairwise Ciphers (2) :
Authentication Suites (1) :

IE: WPA Version 1
Group Cipher :
Pairwise Ciphers (2) :
Authentication Suites (1) :

IE: IEEE 802.11i/WPA2 Version 1
Group Cipher :
Pairwise Ciphers (2) :
Authentication Suites (1) :
########################################
########################################
Domain :none
CertPath :humax_tvportal_rootcert_2k_20101106_pub.pem
###### New Cert is Added
########################################
########################################
Domain :.bbc.co.uk
CertPath :hdrfoxt2_20101001.p12
###### New Cert is Added
########################################
########################################
Domain :.bbc.co.uk
CertPath :rootcert_1k.pem
###### New Cert is Added
route: SIOCADDRT: File exists
SIOCDELRT failed , ret->-1
########################################
[syncBoxInfo:1240] IP Address List: 192.168.2.30
mxDLNA [DLNA DMS DmsRunThread] Start (PID:288 TID:1041568976).......
[mxDlnaFileScanner_create] +++++
[mxDlnaFileScanner_addDirectory] SEARCH_LIST_PATH_EXACT_MATCHED
[mxDlnaFileScanner_create] -----
[mxDlnaFileScanner_addDirectory] SEARCH_LIST_PATH_EXACT_MATCHED
[mxDlnaFileScanner_addDirectory] SEARCH_LIST_PATH_EXACT_MATCHED
[mxDlnaFileScanner_addDirectory] SEARCH_LIST_PATH_EXACT_MATCHED
[ifss_start] +++++
 

/df

Well-Known Member
(What is?)
HDMI is managed by the settop program rather than the kernel. According to some Chinese bloke -- Sam (Zhen Feng) -- who wrote this up in his blog when it was current:
Code:
NEXUS_PlatformSettings platformSettings;

NEXUS_Platform_GetDefaultSettings(&platformSettings);

//.... Modify the necessary settings

NEXUS_Platform_Init(&platformSettings);

//... Get output handles (among other things)

NEXUS_PlatformConfiguration platformConfiguration;

NEXUS_Platform_GetConfiguration(&platformConfiguration);

//... The HDMI o/p handle is the 0th element of platformConfiguration.outputs.hdmi[NEXUS_NUM_HDMI_OUTPUTS]
...
Then the settop program can mung the HDMI o/p with these calls (linked from the program to the NEXUS shared library):
Code:
NEXUS_HdmiOutput_GetAudioConnector
NEXUS_HdmiOutput_GetBasicEdidData
NEXUS_HdmiOutput_GetCecConfiguration
NEXUS_HdmiOutput_GetCecMessageInfo
NEXUS_HdmiOutput_GetCecStatus
NEXUS_HdmiOutput_GetHdcpStatus
NEXUS_HdmiOutput_GetSettings
NEXUS_HdmiOutput_GetStatus
NEXUS_HdmiOutput_GetVideoConnector
NEXUS_HdmiOutput_HotplugCallback
NEXUS_HdmiOutput_ReceiveCecMessage
NEXUS_HdmiOutput_SendCecMessage
NEXUS_HdmiOutput_SetAVBlank
NEXUS_HdmiOutput_SetAudioMute
NEXUS_HdmiOutput_SetSettings
NEXUS_HdmiOutput_SetTmdsSignal
Incidentally, has anyone tested what happens with the green screen if you let the box boot with analogue video and connect the HDMI later?
 
Top